/* 根变量定义 - 基于logo颜色#005B9A的协调色彩方案 */
:root {
    --primary-color: #005B9A;        /* 主色调：logo颜色 */
    --secondary-color: #0066CC;       /* 次要色调：稍亮的蓝色 */
    --accent-color: #003D73;          /* 强调色：更深的蓝色 */
    --light-accent: #E6F2FF;          /* 浅色强调：非常浅的蓝色 */
    --text-color: #1e293b;            /* 深色文字 */
    --text-light: #64748b;            /* 浅色文字 */
    --background-color: #ffffff;      /* 白色背景 */
    --light-bg: #f8fafc;             /* 浅色背景 */
    --border-color: #e2e8f0;         /* 边框颜色 */
    --shadow: 0 4px 6px -1px rgba(0, 91, 154, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 91, 154, 0.15);
}

/* 暗色模式 - 自动跟随系统设置 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #005B9A;        /* 暗色模式主色 - 与亮色一致 */
        --secondary-color: #0066CC;       /* 次要色调 */
        --accent-color: #003D73;          /* 强调色 */
        --light-accent: #1e3a5f;          /* 深色强调 */
        --text-color: #e2e8f0;            /* 浅色文字 */
        --text-light: #94a3b8;            /* 次要浅色文字 */
        --background-color: #0f172a;      /* 深色背景 */
        --light-bg: #1e293b;             /* 深色区域背景 */
        --border-color: #334155;          /* 深色边框 */
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    }
}

/* 手动设置暗色模式 - 优先级高于自动模式 */
[data-theme="dark"] {
    --primary-color: #005B9A;
    --secondary-color: #0066CC;
    --accent-color: #003D73;
    --light-accent: #1e3a5f;
    --text-color: #e2e8f0;
    --text-light: #94a3b8;
    --background-color: #0f172a;
    --light-bg: #1e293b;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

/* 手动设置亮色模式 */
[data-theme="light"] {
    --primary-color: #005B9A;
    --secondary-color: #0066CC;
    --accent-color: #003D73;
    --light-accent: #E6F2FF;
    --text-color: #1e293b;
    --text-light: #64748b;
    --background-color: #ffffff;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 91, 154, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 91, 154, 0.15);
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable; /* 保持布局稳定，防止滚动条出现时产生位移 */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-color);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding-top: 70px; /* 为固定导航栏留出空间 */
}

/* 主要内容区域应该占据剩余空间 */
main,
.main-content,
.content-wrapper,
.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 确保页脚在底部 */
.footer {
    margin-top: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    height: 70px; /* 固定导航栏高度 */
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* 暗色模式下的导航栏 */
@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(15, 23, 42, 0.95);
    }
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
    border: none;
    outline: none;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    border: none;
    outline: none;
}


.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
}



.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    border: none;
    outline: none;
}



.nav-logo h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

@media (prefers-color-scheme: dark) {
    .nav-logo h2 {
        color: var(--text-color);
    }
}

[data-theme="dark"] .nav-logo h2 {
    color: var(--text-color);
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    height: 100%;
}

/* 主题切换按钮 */
.theme-toggle {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: var(--light-bg);
    color: var(--primary-color);
    transform: rotate(20deg);
}

.theme-toggle:active {
    transform: scale(0.95) rotate(20deg);
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:not(.dropdown-toggle):not(.nav-logo a)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -15px; /* 调整下划线位置，因为nav-link高度变为了100% */
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:not(.dropdown-toggle):not(.nav-logo a):hover::after {
    width: 100%;
}

.hamburger {
    display: none !important;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger动画效果 */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 主页横幅 - 不受主题影响，保持固定配色 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #005B9A 0%, #003D73 100%) !important;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #E6F2FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #E6F2FF;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 91, 154, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-svg {
    width: 400px;
    height: 400px;
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* 强制显示登录和注册链接 */
a[href="login.html"], a[href="register.html"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-svg {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-svg {
        width: 250px;
        height: 250px;
    }
}

/* 产品介绍 */
.products {
    padding: 6rem 0;
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 暗色模式下的产品卡片 */
@media (prefers-color-scheme: dark) {
    .product-card {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(51, 65, 85, 0.8);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
}

[data-theme="dark"] .product-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(51, 65, 85, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* 亮色模式下的产品卡片 - 强制白色 */
[data-theme="light"] .product-card {
    background: white !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.product-icon i {
    font-size: 2rem;
    color: white;
}

.product-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

/* 暗色模式下的产品卡片标题 - 增强对比度 */
@media (prefers-color-scheme: dark) {
    .product-card h3 {
        color: #f1f5f9;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
}

[data-theme="dark"] .product-card h3 {
    color: #f1f5f9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 亮色模式下的产品卡片标题 - 强制深色 */
[data-theme="light"] .product-card h3 {
    color: #1e293b !important;
    text-shadow: none !important;
}

.product-description {
    color: #64748b;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.product-features {
    list-style: none;
    margin: 0.5rem 0;
    padding: 0;
    flex-grow: 1;
}

.product-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    color: #64748b;
    line-height: 1.4;
    padding: 0.2rem 0;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.product-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    min-width: 20px;
    text-align: left;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.2rem;
}

/* 关于成方 */
.about {
    padding: 6rem 0;
    background: var(--background-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-light);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-graphic {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--light-bg), var(--border-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

.about-graphic i {
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.8;
}

/* 联系我们 */
.contact {
    padding: 6rem 0;
    background: var(--light-bg);
}

.contact-content {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 暗色模式下的联系信息卡片 */
@media (prefers-color-scheme: dark) {
    .contact-item {
        background: rgba(30, 41, 59, 0.95);
        border: 1px solid rgba(51, 65, 85, 0.8);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    }
}

[data-theme="dark"] .contact-item {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(51, 65, 85, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* 亮色模式下的联系信息卡片 - 强制白色 */
[data-theme="light"] .contact-item {
    background: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 暗色模式下hover效果 */
@media (prefers-color-scheme: dark) {
    .contact-item:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    }
}

[data-theme="dark"] .contact-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.contact-item i {
    width: 140px;
    height: 100%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    position: relative;
}

.contact-item .fa-envelope {
    background: var(--primary-color);
}

.contact-item .fa-phone {
    background: var(--primary-color);
}

.contact-item .fa-qq {
    background: var(--primary-color);
}

.contact-item .fa-weixin {
    background: var(--primary-color);
}

.contact-item .wechat-official {
    background: var(--primary-color);
    position: relative;
}

.contact-item .wechat-official::after {
    content: '公';
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 2;
}

.contact-item > div {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item h4 {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    line-height: 1.3;
}

/* 暗色模式下的联系信息标题 - 增强对比度 */
@media (prefers-color-scheme: dark) {
    .contact-item h4 {
        color: #f1f5f9;
    }
}

[data-theme="dark"] .contact-item h4 {
    color: #f1f5f9;
}

/* 亮色模式下的联系信息标题 - 强制深色 */
[data-theme="light"] .contact-item h4 {
    color: #0f172a !important;
}

.contact-item p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
}

/* 暗色模式下的联系信息文本 */
@media (prefers-color-scheme: dark) {
    .contact-item p {
        color: #cbd5e1;
    }
}

[data-theme="dark"] .contact-item p {
    color: #cbd5e1;
}

/* 亮色模式下的联系信息文本 - 强制深色 */
[data-theme="light"] .contact-item p {
    color: #475569 !important;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 暗色模式下的表单 */
@media (prefers-color-scheme: dark) {
    .contact-form {
        background: rgba(30, 41, 59, 0.95);
        border: 1px solid rgba(51, 65, 85, 0.8);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
}

[data-theme="dark"] .contact-form {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(51, 65, 85, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 页脚 - 不受主题影响，保持固定配色 */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #003D73 100%) !important;
    color: white;
    padding: 2.5rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    max-width: 600px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    background: linear-gradient(135deg, #ffffff, #e6f2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
}


.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.2rem 0;
    position: relative;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-section ul li a:hover::before {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.copyright-text {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem !important;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}


/* 联系信息样式 */
.footer-contact-info {
    margin-top: 1rem;
}

.footer-contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-contact-info .contact-item i {
    color: var(--primary-color);
    width: 18px;
    text-align: center;
    font-size: 1rem;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex !important;
        z-index: 1001;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        position: fixed;
        left: 0;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-menu li {
        margin: 0.5rem 0;
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
    }
    
    .dropdown-toggle {
        justify-content: center;
    }

    .nav-link:hover {
        background-color: #f8f9fa;
    }
}

/* 更小屏幕的优化 */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }

    .nav-logo h2 {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex !important;
        z-index: 1001;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        position: fixed;
        left: 0;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 1.5rem 0;
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-link {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        text-align: center;
    }
    
    .dropdown-toggle {
        justify-content: center;
    }
    
    /* 下拉菜单字体统一 */
    .dropdown-item h4 {
        font-size: 0.9rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 360px) {
    .nav-container {
        padding: 0 10px;
    }

    .nav-logo h2 {
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex !important;
        z-index: 1001;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        position: fixed;
        left: 0;
        top: 65px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        height: calc(100vh - 65px);
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        overflow-y: auto;
        z-index: 1000;
    }

    .nav-link {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .dropdown-toggle {
        justify-content: center;
    }
    
    /* 下拉菜单字体统一 */
    .dropdown-item h4 {
        font-size: 0.8rem;
    }

    .hero-container {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-image {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-card {
        padding: 2rem;
        height: auto;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }

    .contact-item {
        flex-direction: row;
        min-height: 80px;
        text-align: left;
        width: 100%;
    }

    .contact-item i {
        width: 80px;
        height: 100%;
        font-size: 1.8rem;
        flex-shrink: 0;
    }

    .contact-item > div {
        padding: 1rem 1.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .contact-item h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .contact-item p {
        font-size: 0.9rem;
    }
}

/* 下载中心样式 */
.download-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

.download-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.download-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.download-section {
    padding: 4rem 0;
    background: var(--background-color);
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.download-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

/* 暗色模式下的下载卡片 */
@media (prefers-color-scheme: dark) {
    .download-card {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(51, 65, 85, 0.8);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
}

[data-theme="dark"] .download-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(51, 65, 85, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* 亮色模式下的下载卡片 - 强制白色背景 */
[data-theme="light"] .download-card {
    background: white !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.download-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.download-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.version-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.version {
    background: var(--light-accent);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 暗色模式下的版本标签 */
@media (prefers-color-scheme: dark) {
    .version {
        background: rgba(0, 135, 212, 0.2);
        color: #3db0f7;
    }
}

[data-theme="dark"] .version {
    background: rgba(0, 135, 212, 0.2);
    color: #3db0f7;
}

.release-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.download-requirements {
    margin-bottom: 2rem;
}

.download-requirements h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

/* 暗色模式下的标题 - 增强对比度 */
@media (prefers-color-scheme: dark) {
    .download-requirements h4 {
        color: #f1f5f9;
    }
}

[data-theme="dark"] .download-requirements h4 {
    color: #f1f5f9;
}

.download-requirements ul {
    list-style: none;
    padding: 0;
}

.download-requirements li {
    color: var(--text-light);
    margin-bottom: 0.4rem;
    padding-left: 1.2rem;
    position: relative;
}

.download-requirements li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-btn i {
    font-size: 0.9rem;
}

/* 版本下载列表样式 */
.version-download-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 100%;
    width: 100%;
    align-items: stretch;
}

.version-item {
    display: block;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 5rem;
    transition: all 0.3s ease;
    height: 80px;
    box-sizing: border-box;
    position: relative;
    min-height: 80px;
    overflow: hidden;
}

/* 暗色模式下的版本项 */
@media (prefers-color-scheme: dark) {
    .version-item {
        background: rgba(30, 41, 59, 0.8);
        border-color: rgba(51, 65, 85, 0.8);
    }
}

[data-theme="dark"] .version-item {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(51, 65, 85, 0.8);
}

/* 亮色模式下的版本项 - 强制浅色背景 */
[data-theme="light"] .version-item {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.version-item:hover {
    border-color: var(--primary-color);
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 91, 154, 0.15);
}

/* 暗色模式下hover */
@media (prefers-color-scheme: dark) {
    .version-item:hover {
        background: rgba(30, 41, 59, 0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }
}

[data-theme="dark"] .version-item:hover {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 亮色模式下hover - 强制白色背景 */
[data-theme="light"] .version-item:hover {
    background: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(0, 91, 154, 0.15) !important;
}

.version-info {
    position: absolute;
    left: 5rem;
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.version-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1;
}

@media (prefers-color-scheme: dark) {
    .version-number {
        color: #f1f5f9;
    }
}

[data-theme="dark"] .version-number {
    color: #f1f5f9;
}

/* 亮色模式下的版本号 - 强制深色 */
[data-theme="light"] .version-number {
    color: #1e293b !important;
}

.version-date {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
    padding: 0;
    line-height: 1;
}

@media (prefers-color-scheme: dark) {
    .version-date {
        color: #cbd5f0;
    }
}

[data-theme="dark"] .version-date {
    color: #cbd5f0;
}

/* 亮色模式下的版本日期 - 强制深色 */
[data-theme="light"] .version-date {
    color: #475569 !important;
}

.version-item .btn {
    position: absolute;
    right: 5rem;
    top: 50%;
    transform: translateY(-50%);
    min-width: 150px;
    height: 50px;
    padding: 0 2rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    border-radius: 8px;
    line-height: 1;
}

/* 亮色模式下的下载按钮 */
[data-theme="light"] .version-item .btn {
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
}

/* 确保版本项目容器正确对齐 */

/* 历史版本下拉菜单样式 */
.history-version {
    position: relative;
}

.history-dropdown {
    position: relative;
    width: 100%;
}

.history-toggle {
    width: 100%;
    justify-content: center;
    position: relative;
}

.history-toggle i.fa-chevron-down {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.history-dropdown.active .history-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.history-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* 暗色模式下的历史菜单 */
@media (prefers-color-scheme: dark) {
    .history-menu {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(51, 65, 85, 0.8);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
}

[data-theme="dark"] .history-menu {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(51, 65, 85, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* 亮色模式下的历史菜单 - 强制白色背景 */
[data-theme="light"] .history-menu {
    background: white !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.history-dropdown.active .history-menu {
    max-height: 300px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* 亮色模式下的历史项目 - 强制浅色背景 */
[data-theme="light"] .history-item:hover {
    background: #f8fafc !important;
    color: var(--primary-color) !important;
}

.version-info {
    font-weight: 600;
    color: var(--primary-color);
}

.date-info {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .version-item {
        height: 150px;
        min-height: 150px;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .version-info {
        position: static;
        transform: none;
        left: auto;
        top: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .version-item .btn {
        position: static !important;
        transform: none !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        min-width: auto !important;
        height: 50px !important;
        min-height: 50px !important;
        margin: 0 !important;
        padding: 12px 20px !important;
        line-height: 1.2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .version-number {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .version-date {
        font-size: 1rem;
        text-align: center;
    }
}

/* 480px以下屏幕下载按钮优化 */
@media (max-width: 480px) {
    .version-item {
        height: 140px;
        min-height: 140px;
        padding: 1.5rem;
        gap: 1rem;
        position: relative;
        overflow: visible;
    }
    
    .version-item .btn {
        position: static !important;
        transform: none !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        height: 45px !important;
        min-height: 45px !important;
        font-size: 0.9rem !important;
        min-width: auto !important;
        margin: 0 !important;
        padding: 10px 18px !important;
        line-height: 1.2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .version-number {
        font-size: 1.2rem;
    }
    
    .version-date {
        font-size: 0.9rem;
    }
}

/* 360px以下屏幕下载按钮优化 */
@media (max-width: 360px) {
    .version-item {
        height: 130px;
        min-height: 130px;
        padding: 1rem;
        gap: 0.8rem;
        position: relative;
        overflow: visible;
    }
    
    .version-item .btn {
        position: static !important;
        transform: none !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        height: 40px !important;
        min-height: 40px !important;
        font-size: 0.8rem !important;
        min-width: auto !important;
        margin: 0 !important;
        padding: 8px 16px !important;
        line-height: 1.2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .version-number {
        font-size: 1.1rem;
    }
    
    .version-date {
        font-size: 0.8rem;
    }
}

.download-instructions {
    padding: 6rem 0;
    background: var(--light-bg);
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.instruction-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.instruction-card:hover {
    transform: translateY(-3px);
}

.instruction-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.instruction-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.instruction-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.instruction-card li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.instruction-card li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 导航栏激活状态 */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .footer-links {
        justify-content: center;
    }

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    /* 导航栏优化 */
    .nav-container {
        padding: 0 10px;
    }

    .nav-logo h2 {
        font-size: 1.2rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    /* 主要内容区域优化 */
    .container {
        padding: 0 15px;
    }

    .hero-container {
        padding: 2rem 15px;
        text-align: center;
        grid-template-columns: 1fr !important;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-image {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* 产品卡片优化 */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        padding: 1.5rem;
        text-align: center;
    }

    .product-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .product-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .product-features {
        margin: 1rem 0;
    }

    .product-features li {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    /* 轮播图优化 */
    .carousel-container {
        margin: 0 10px;
        border-radius: 12px;
    }

    .carousel-wrapper {
        border-radius: 12px;
    }

    .carousel-controls {
        padding: 0 10px;
    }

    .carousel-controls .btn {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    /* 页脚优化 */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.8rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links span {
        display: none;
    }

    /* 联系表单优化 */
    .contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    /* 下载页面优化 */
    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .download-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .download-info {
        width: 100%;
    }

    .download-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }

    .download-actions .btn {
        width: 100%;
    }

    /* 联系我部分优化 */
    .contact {
        padding: 4rem 0;
    }

    .contact-content {
        margin-top: 2rem;
    }

    .contact-info {
        gap: 0.8rem;
    }

    .contact-item {
        border-radius: 10px;
        min-height: 70px;
    }

    .contact-item i {
        width: 70px;
        height: 100%;
        font-size: 1.6rem;
    }

    .contact-item > div {
        padding: 0.8rem 1rem;
    }

    .contact-item h4 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }

    .contact-item p {
        font-size: 0.8rem;
    }

    .contact-item .wechat-official::after {
        top: 15px;
        right: 15px;
        font-size: 0.8rem;
        width: 20px;
        height: 20px;
        line-height: 20px;
    }
}

/* 超小屏幕优化 (320px以下) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .nav-container {
        padding: 0 5px;
    }

    .nav-logo h2 {
        font-size: 1rem;
    }

    .hero-container {
        padding: 1.5rem 10px;
        grid-template-columns: 1fr !important;
    }
    
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-image {
        display: none;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.8rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }

    .product-card {
        padding: 1rem;
    }

    .product-card h3 {
        font-size: 1.1rem;
    }

    .product-card p {
        font-size: 0.8rem;
    }

    .carousel-container {
        margin: 0 5px;
    }

    .carousel-controls .btn {
        width: 35px;
        height: 35px;
        font-size: 0.7rem;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.7rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.8rem;
    }

    /* 联系我部分超小屏幕优化 */
    .contact {
        padding: 3rem 0;
    }

    .contact-content {
        margin-top: 1.5rem;
    }

    .contact-info {
        gap: 0.6rem;
    }

    .contact-item {
        border-radius: 8px;
        min-height: 60px;
    }

    .contact-item i {
        width: 60px;
        height: 100%;
        font-size: 1.4rem;
    }

    .contact-item > div {
        padding: 0.6rem 0.8rem;
    }

    .contact-item h4 {
        font-size: 0.8rem;
        margin-bottom: 0.1rem;
    }

    .contact-item p {
        font-size: 0.7rem;
    }

    .contact-item .wechat-official::after {
        top: 12px;
        right: 12px;
        font-size: 0.7rem;
        width: 18px;
        height: 18px;
        line-height: 18px;
    }
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 轮播图样式 */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 66.67%; /* 8/12 = 0.6667 = 66.67% */
    background-color: #f8f9fa;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    background-color: #f8f9fa;
    transition: opacity 0.3s ease;
}

.carousel-image:not([src]) {
    opacity: 0;
}

.carousel-image[src] {
    opacity: 1;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 0 0 15px 15px;
}

.carousel-caption h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.carousel-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn i {
    color: var(--primary-color);
    font-size: 1rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 中等屏幕响应式 */
@media (max-width: 1024px) {
    .carousel-container {
        max-width: 100%;
        margin: 0 2rem;
    }
}

/* 响应式轮播图 */
@media (max-width: 768px) {
    .carousel-container {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .carousel-wrapper {
        height: 0;
        padding-bottom: 66.67%; /* 保持12:8比例 */
    }
    
    .carousel-caption {
        padding: 1.5rem 1rem 1rem;
    }
    
    .carousel-caption h4 {
        font-size: 1rem;
    }
    
    .carousel-caption p {
        font-size: 0.8rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-btn i {
        font-size: 0.9rem;
    }
}

/* 产品页面样式 */
.product-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.product-hero-content {
    position: relative;
    z-index: 1;
}


.product-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
}

.product-icon-large {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-icon-large i {
    font-size: 3rem;
    color: white;
}

.product-info h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.product-tagline {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.product-overview {
    padding: 4rem 0;
    background: var(--light-bg);
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.overview-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.overview-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.overview-image {
    display: flex;
    justify-content: center;
}

/* 产品功能模块 */
.product-features-section {
    padding: 4rem 0;
    background: var(--background-color);
}

.product-modules {
    padding: 4rem 0;
    background: var(--light-bg);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.module-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.module-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.module-icon i {
    font-size: 1.5rem;
    color: white;
}

.module-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.module-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.module-features {
    list-style: none;
    padding: 0;
}

.module-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.module-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* 响应式产品页面 */
@media (max-width: 768px) {
    .product-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .product-icon-large {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    
    .product-info h1 {
        font-size: 2.5rem;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

/* 产品下拉菜单样式 */
.nav-item.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-toggle.active i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 70px; /* 改为固定与导航栏同高 */
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    width: 300px;
    z-index: 1000;
    display: none;
    padding: 0.5rem;
    margin-top: 0; /* 移除多余的外边距 */
}

/* 暗色模式下的下拉菜单 */
@media (prefers-color-scheme: dark) {
    .dropdown-menu {
        background: rgba(30, 41, 59, 0.98);
        border-color: var(--border-color);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
}

[data-theme="dark"] .dropdown-menu {
    background: rgba(30, 41, 59, 0.98);
    border-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 亮色模式下的下拉菜单 - 强制白色 */
[data-theme="light"] .dropdown-menu {
    background: white !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.dropdown-menu.active {
    display: block;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.dropdown-item:hover {
    background: var(--light-bg);
    border-color: var(--border-color);
    transform: translateX(5px);
}

.dropdown-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    text-align: center;
}

.dropdown-item div h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.dropdown-item div p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* 移动端下拉菜单 */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--light-bg);
        margin: 0;
        padding: 0;
        display: none;
        width: 100%;
        border-radius: 0;
    }
    
    .dropdown-menu.active {
        display: block;
        animation: none;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
        margin: 0;
        text-align: center;
        justify-content: center;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .dropdown-item:hover {
        transform: none;
        background: var(--border-color);
    }
    
    .dropdown-item i {
        font-size: 1.2rem;
        color: var(--primary-color);
        text-align: center;
    }
    
    .dropdown-item div {
        text-align: center;
    }
    
    .dropdown-item h4 {
        font-size: 1rem;
        margin: 0 0 0.25rem 0;
        color: var(--text-color);
    }
    
    .dropdown-item p {
        font-size: 0.8rem;
        margin: 0;
        color: var(--text-muted);
    }
}

/* 搜索结果消息样式 */
.search-result-message {
    margin: 1rem 0;
    padding: 0;
}

.search-result-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--light-accent);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.search-result-info i {
    color: var(--primary-color);
    font-size: 1rem;
}

.search-result-info span {
    flex: 1;
    font-weight: 500;
}

.search-result-info button {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-info button:hover {
    background: var(--primary-color);
    color: white;
}

.search-result-info button i {
    margin-right: 0.25rem;
}
