body {
    font-family: 'Segoe UI', 'PingFang SC', '微软雅黑', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgb(0, 0, 0);
    line-height: 1.6;
    color: #fff;
}

#starCanvasContainer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#starCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* 页面头部 */
.header {
    min-height: 70px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background-color: rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

.logo {
    margin-right: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo:active {
    transform: scale(0.95);
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: 1.5px;
    transition: text-shadow 0.3s ease;
}

.logo:hover h1 {
    text-shadow: 0 0 15px rgba(66, 133, 244, 0.6);
}

.logo h1 span {
    color: #4285f4;
    font-weight: 800;
    transition: color 0.3s ease;
}

.logo:hover h1 span {
    color: #5a95f4;
    text-shadow: 0 0 15px rgba(66, 133, 244, 0.8);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    display: flex;
}

.nav-item {
    font-size: clamp(0.8rem, 1vw + 0.5rem, 1rem);
    font-weight: 500;
    margin: 0 16px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.nav-item:hover {
    color: #4285f4;
    transform: translateY(-2px);
}

.nav-item.active {
    color: #4285f4;
    font-weight: 600;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: #4285f4;
    bottom: 0;
    left: 0;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(66, 133, 244, 0.5);
}

.nav-item i {
    margin-right: 5px;
}

.right-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.damoxing {
    text-align: center;
    margin-left: 12px;
    color: #fff;
    opacity: 0.85;
    transition: all 0.3s;
    cursor: pointer;
    padding: 7px 12px;
    border-radius: 6px;
    position: relative;
    font-size: 14px;
}

.damoxing:hover {
    color: #4285f4;
    opacity: 1;
    transform: translateY(-2px);
}

.damoxing:active {
    transform: scale(0.95);
}

.damoxing i {
    margin-right: 5px;
}

.theme-toggle {
    margin-left: 20px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 亮色模式下的主题切换按钮样式 */
body.light-mode .theme-toggle {
    color: rgba(0, 0, 0, 0.7);
}

body.light-mode .theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 汉堡菜单按钮样式 */
.mobile-menu-btn {
    display: none;
    /* 默认不显示 */
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1100;
    border-radius: 50%;
    background-color: rgba(50, 50, 50, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: none !important;
}

.mobile-menu-btn:hover {
    background-color: rgba(66, 133, 244, 0.3);
    outline: none;
    box-shadow: none !important;
}

.hamburger {
    width: 22px;
    height: 18px;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2),
.hamburger span:nth-child(3) {
    top: 8px;
}

.hamburger span:nth-child(4) {
    top: 16px;
}

/* 汉堡菜单激活状态 */
.mobile-menu-btn.active .hamburger span:nth-child(1) {
    top: 8px;
    width: 0%;
    left: 50%;
}

.mobile-menu-btn.active .hamburger span:nth-child(2) {
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
}

.mobile-menu-btn.active .hamburger span:nth-child(4) {
    top: 8px;
    width: 0%;
    left: 50%;
}

/* 移动菜单容器默认隐藏并在屏幕外 */
.mobile-menu-container {
    contain: strict;
    visibility: hidden;
    /* 默认隐藏 */
    position: fixed;
    top: 0;
    right: -300px;
    /* 默认在屏幕外 */
    width: 300px;
    height: 100vh;
    background-color: rgba(25, 25, 30, 0.97);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1050;
    padding: 80px 20px 100px;
    /* 增加底部内边距确保滚动到底部时可以看到最后的菜单项 */
    overflow-y: auto;
    /* 改为auto以更好地适应内容 */
    transition: all 0.3s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    /* 确保不超过视口高度 */
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: rgba(66, 133, 244, 0.5) rgba(25, 25, 30, 0.3);
}

/* Webkit浏览器的滚动条样式 */
.mobile-menu-container::-webkit-scrollbar {
    width: 8px;
}

.mobile-menu-container::-webkit-scrollbar-track {
    background: rgba(25, 25, 30, 0.3);
    border-radius: 4px;
}

.mobile-menu-container::-webkit-scrollbar-thumb {
    background-color: rgba(66, 133, 244, 0.5);
    border-radius: 4px;
}

.mobile-menu-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(66, 133, 244, 0.7);
}

.mobile-menu-container.active {
    right: 0;
    visibility: visible;
}

/* 移动菜单内部样式 */
.mobile-nav-section {
    margin-bottom: 25px;
}

/* 确保最后一个导航区块有足够的底部边距 */
.mobile-nav-section:last-child {
    margin-bottom: 40px;
}

.mobile-nav-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-item {
    padding: 12px 15px;
    font-size: clamp(0.8rem, 1vw + 0.5rem, 1rem);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.mobile-nav-item:hover {
    background-color: rgba(66, 133, 244, 0.2);
    color: #fff;
}

.mobile-nav-item.active {
    color: #fff;
}

.mobile-nav-item i {
    margin-right: 10px;
    color: #4285f4;
    width: 20px;
    text-align: center;
}

.mobile-model-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-damoxing {
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.mobile-damoxing:hover {
    color: #fff;
}

.mobile-damoxing i {
    margin-right: 10px;
    color: #4285f4;
    width: 20px;
    text-align: center;
}

/* 覆盖层 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 亮色模式下的汉堡菜单样式 */
body.light-mode .hamburger span {
    background-color: #333;
}

body.light-mode .mobile-menu-container {
    contain: strict;
    background-color: rgba(245, 245, 247, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}

body.light-mode .mobile-nav-title {
    color: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .mobile-nav-item {
    color: rgba(0, 0, 0, 0.8);
}

body.light-mode .mobile-nav-item:hover {
    background-color: rgba(66, 133, 244, 0.08);
    color: #000;
    transform: translateX(2px);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

body.light-mode .mobile-nav-item.active {
    background-color: transparent;
    color: #000;
    font-weight: 600;
}

body.light-mode .mobile-damoxing {
    color: rgba(0, 0, 0, 0.8);
    background-color: transparent;
}

body.light-mode .mobile-damoxing:hover {
    background-color: rgba(66, 133, 244, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.15);
}

/* 移动端响应式调整 */
@media (max-width: 1300px) {
    .mobile-menu-btn {
        display: flex;
        /* 在移动端显示 */
    }

    .nav-links,
    .right-content {
        display: none;
    }

    .hero-section {
        min-height: 150px;
        padding: 30px 15px 25px;
    }

    .container-byte {
        width: 95%;
        margin-bottom: 20px;
    }

    #typedText {
        font-size: 1.6rem;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        overflow: visible;
        padding: 0 10px;
    }

    .cursor {
        top: -1px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 15px 20px;
        min-height: 120px;
    }

    .container-byte {
        width: 100%;
        margin-bottom: 15px;
    }

    #typedText {
        font-size: 1.4rem;
        padding: 0 5px;
    }

    .cursor {
        min-height: 1.2em;
        top: 0px;
    }

    .container {
        flex: 0 0 100%;
        margin: 0 0 15px 0;
    }

    .fcontainer {
        gap: 10px;
    }

    .search-container {
        width: 92%;
    }

    .search-input {
        height: 40px;
        line-height: 40px;
        padding: 0 40px 0 12px;
        font-size: 14px;
    }

    .search-btn {
        width: 30px;
        height: 30px;
        right: 5px;
        font-size: 14px;
    }

    .product-intro {
        contain: layout;
        padding: 15px;
        border-radius: 12px;
    }

    .product-icon {
        height: 40px;
        width: 40px;
        font-size: 20px;
    }
}

/* 亮色模式 */
body.light-mode {
    background-color: #f5f5f7;
    color: #333;
}

body.light-mode .header {
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .logo h1 {
    color: #333;
}

body.light-mode .nav-item {
    color: rgba(0, 0, 0, 0.7);
}

body.light-mode .nav-item:hover {
    color: #000;
}

body.light-mode .damoxing {
    color: rgba(0, 0, 0, 0.7);
}

body.light-mode .damoxing:hover {
    color: #4285f4;
    text-shadow: 0 0 5px rgba(66, 133, 244, 0.3);
}

body.light-mode .search-input {
    background-color: rgba(0, 0, 0, 0.05);
    color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

body.light-mode .category-title h2 {
    color: #333;
}

body.light-mode .category-title p {
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .product-intro {
    contain: layout;
    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .product-intro:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(66, 133, 244, 0.3);
}

body.light-mode .product-intro h1 {
    color: #333;
}

body.light-mode .product-intro p {
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .tag {
    background-color: rgba(66, 133, 244, 0.1);
    color: rgba(0, 0, 0, 0.7);
}

body.light-mode .product-intro:hover .tag {
    background-color: rgba(66, 133, 244, 0.2);
    color: #000;
}

body.light-mode .product-intro::after {
    background-color: rgba(66, 133, 244, 0.1);
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .product-intro:hover::after {
    background-color: rgba(66, 133, 244, 0.2);
    color: rgba(0, 0, 0, 0.8);
}

body.light-mode .product-intro:active {
    transform: translateY(-5px) scale(0.98);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode footer {
    background-color: rgba(240, 240, 240, 0.9);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

body.light-mode .social-links a {
    color: rgba(0, 0, 0, 0.6);
}

body.light-mode .social-links a:hover {
    color: #4285f4;
}

body.light-mode footer p {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode footer a {
    color: rgba(0, 0, 0, 0.5);
}

body.light-mode footer a:hover {
    color: #4285f4;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .container {
        flex: 0 0 calc(25% - 16px);
    }
}

@media (max-width: 1200px) {
    .container {
        flex: 0 0 calc(33.33% - 16px);
    }
}

@media (max-width: 1024px) {
    .fcontainer {
        padding: 10px 3%;
        gap: 15px;
    }

    .container {
        flex: 0 0 calc(33.33% - 15px);
        min-width: 220px;
    }

    #typedText {
        font-size: 1.8rem;
    }

    .cursor {
        height: 28px;
    }
}

@media (max-width: 900px) {
    .header {
        padding: 0 15px;
        height: 60px;
        min-height: 60px;
    }

    .logo h1 {
        font-size: 22px;
        margin-right: 0;
    }

    .search-input {
        height: 48px;
        line-height: 48px;
        font-size: 15px;
    }

    .search-btn {
        width: 34px;
        height: 34px;
    }

    .nav-item {
        margin: 0 10px;
    }

    .product-intro {
        contain: layout;
        padding: 18px;
    }

    .product-icon {
        margin-bottom: 12px;
        font-size: 22px;
        height: 45px;
        width: 45px;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .container {
        flex: 0 0 100%;
        margin: 0 0 15px 0;
    }

    .fcontainer {
        gap: 10px;
        justify-content: space-evenly;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 15px 20px;
    }

    #typedText {
        font-size: 1.4rem;
    }

    .container {
        flex: 0 0 100%;
        margin: 0 0 15px 0;
    }

    .fcontainer {
        gap: 10px;
    }
}

/* 动画效果优化 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
    will-change: transform, opacity;
    position: relative;
    z-index: 1;
}

/* 自动排列动画 */
@media (min-width: 901px) {
    .container:nth-child(1) {
        animation-delay: 0.1s;
    }

    .container:nth-child(2) {
        animation-delay: 0.2s;
    }

    .container:nth-child(3) {
        animation-delay: 0.3s;
    }

    .container:nth-child(4) {
        animation-delay: 0.4s;
    }

    .container:nth-child(5) {
        animation-delay: 0.5s;
    }

    .container:nth-child(6) {
        animation-delay: 0.6s;
    }

    .container:nth-child(7) {
        animation-delay: 0.7s;
    }

    .container:nth-child(8) {
        animation-delay: 0.8s;
    }
}

/* 解决背景模糊问题 */
.product-intro {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* 优化元素重叠 */
.product-intro {
    z-index: 1;
    position: relative;
}

/* 增强滑动体验 */
.product-intro {
    will-change: transform, opacity;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 移动设备特定优化 */
@media (max-width: 768px) {
    .product-intro {
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
}

/* 触摸设备优化 */
.touch-device .product-intro {
    contain: layout;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-intro:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    background-color: rgba(30, 30, 35, 0.95);
    border-color: rgba(66, 133, 244, 0.3);
    color: #ffffff;
}

.product-intro:active {
    transform: translateY(-5px) scale(0.98);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* 优化不同屏幕尺寸下的打字效果 */
@media (min-width: 1400px) {
    #typedText {
        font-size: 2.2rem;
    }

    .cursor {
        min-height: 1.3em;
    }
}

@media (max-width: 1024px) {
    #typedText {
        font-size: 1.8rem;
    }

    .cursor {
        height: 28px;
    }
}

@media (max-width: 900px) {
    #typedText {
        font-size: 1.6rem;
    }

    .cursor {
        min-height: 1.2em;
    }
}

@media (max-width: 480px) {
    #typedText {
        font-size: 1.4rem;
    }

    .cursor {
        min-height: 1.2em;
        top: 0px;
    }
}

/* 英雄区域 */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 40px 15px 30px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(66, 133, 244, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
}

.container-byte {
    width: 100%;
    max-width: 800px;
    margin-bottom: 25px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    min-height: 70px;
    /* 确保足够高度容纳多行文本 */
}

#typedText {
    width: 100%;
    min-height: 40px;
    font-family: 'Segoe UI', 'PingFang SC', '微软雅黑', Arial, sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #fff;
    text-align: center;
    position: relative;
    user-select: none;
    padding: 0 10px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(66, 133, 244, 0.5);
    line-height: 1.3;
    display: inline-block;
    box-sizing: border-box;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    overflow: visible;
}

/* 打字光标样式 */
.cursor {
    display: inline-block;
    width: 2px;
    background-color: #4285f4;
    margin-left: 3px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
    position: relative;
    top: -2px;
    /* 微调光标垂直位置 */
    height: auto;
    min-height: 1.2em;
}

/* 移除旧的光标样式 */
#typedText::after {
    content: none;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.search-container {
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.search-input {
    width: 100%;
    padding: 0 50px 0 15px;
    height: 46px;
    line-height: 46px;
    border-radius: 30px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.3);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background-color: #4285f4;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: #5a95f5;
}

.search-clear {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.search-clear.visible {
    opacity: 1;
    visibility: visible;
}

.search-clear:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

/* 亮色模式下的清除按钮样式 */
body.light-mode .search-clear {
    color: rgba(0, 0, 0, 0.6);
    background-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .search-clear:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.8);
}

/* 分类标题 */
.category-title {
    text-align: center;
    margin: 50px 0 20px;
    padding: 0 20px;
}

.category-title h2 {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.category-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 3px;
    background-color: #4285f4;
    transform: translateX(-50%);
    border-radius: 3px;
}

.category-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.category-title h2 i {
    margin-right: 10px;
    color: #4285f4;
}

/* 产品容器组 */
.fcontainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 10px 5%;
    max-width: 1500px;
    margin: 0 auto;
    gap: 16px;
}

.container {
    flex: 0 0 calc(20% - 16px);
    margin: 0;
    transition: all 0.3s;
    perspective: 1000px;
    min-width: 220px;
    max-width: 300px;
    aspect-ratio: 5/6;
    display: flex;
}

.product-intro {
    contain: layout;
    background-color: rgba(30, 30, 30, 0.7);
    padding: 22px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

.product-intro::after {
    content: '';
    display: none;
    /* 隐藏原有的伪元素文本 */
}

/* 新增访问按钮样式 */
.visit-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background-color: rgba(66, 133, 244, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    text-align: center;
    letter-spacing: 1px;
}

.product-intro:hover .visit-btn {
    opacity: 1;
    transform: translateY(0);
}

.visit-btn:hover {
    background-color: rgba(66, 133, 244, 0.4);
    color: #fff;
    transform: scale(1.05);
}

.visit-btn:active {
    transform: scale(0.95);
}

/* 亮色模式下的按钮样式 */
body.light-mode .visit-btn {
    background-color: rgba(66, 133, 244, 0.2);
    color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-mode .product-intro:hover .visit-btn {
    background-color: rgba(66, 133, 244, 0.3);
    color: rgba(0, 0, 0, 0.9);
}

body.light-mode .visit-btn:hover {
    background-color: rgba(66, 133, 244, 0.5);
    color: #000;
}

/* 触摸设备上的按钮样式（缩小30%） */
.touch-device .visit-btn {
    position: absolute;
    opacity: 0.8;
    transform: scale(0.7);
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 14px;
    right: 10px;
    bottom: 10px;
    background-color: rgba(66, 133, 244, 0.3);
    transform-origin: right bottom;
}

.touch-device .product-intro.touch-active .visit-btn {
    opacity: 1;
    background-color: rgba(66, 133, 244, 0.5);
    transform: scale(0.7);
    transform-origin: right bottom;
}

.product-icon {
    margin-bottom: 16px;
    font-size: 26px;
    color: #4285f4;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(66, 133, 244, 0.15);
    border-radius: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-intro:hover .product-icon {
    background-color: rgba(66, 133, 244, 0.25);
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.product-intro h1 {
    color: #fff;
    font-size: 20px;
    margin: 0 0 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-intro p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    font-size: 14px;
    margin: 0 0 15px;
    flex-grow: 1;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag {
    background-color: rgba(66, 133, 244, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s;
}

.product-intro:hover .tag {
    background-color: rgba(66, 133, 244, 0.2);
    color: #fff;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
    background-color: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    margin: 0 15px;
    transition: all 0.3s;
    display: inline-block;
}

.social-links a:hover {
    color: #4285f4;
    transform: scale(1.2);
}

footer p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s;
}

footer a:hover {
    color: #4285f4;
}