:root {
    --primary-color: #4A90E2;
    --secondary-color: #7B68EE;
    --accent-color: #FF6B6B;
    --success-color: #4ECDC4;
    --warning-color: #FFE66D;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --text-light: #BDC3C7;
    --background-primary: #FFFFFF;
    --background-secondary: #F8F9FA;
    --background-dark: #2C3E50;
    --border-color: #E9ECEF;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.12);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-primary);
    overflow-x: hidden;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-icon {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* 隐藏在移动菜单中使用的按钮项 */
.nav-item-mobile {
    display: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #357ABD;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* 移动端菜单 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    padding: 5px;
    width: 32px;  /* 稍微加宽 */
    height: 24px; /* 增加高度以拉开间距 */
    position: relative;
}

.hamburger {
    width: 22px; /* 关键修改：再次缩短线条以确保旋转后不超出范围 */
    height: 2px;
    background: #555;
    transition: var(--transition);
    border-radius: 2px;
}

/* 汉堡菜单激活状态 (X) */
.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: translateY(9px) rotate(45deg); /* 减小位移，让X更紧凑 */
}
.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg); /* 减小位移，让X更紧凑 */
}

/* 主要内容区域 */
.main-content {
    margin-top: 70px;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-opacity='0.1'%3E%3Cpolygon fill='%23ffffff' points='50 0 60 40 100 50 60 60 50 100 40 60 0 50 40 40'/%3E%3C/g%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-white {
    background: white;
    color: var(--primary-color);
}

.btn-white:hover {
    background: var(--background-secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 功能特色区域 */
.features {
    padding: 100px 0;
    background: var(--background-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 工作流程区域 */
.workflow {
    padding: 100px 0;
    background: white;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.workflow-step {
    text-align: center;
    position: relative;
}

.workflow-step::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.workflow-step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.workflow-step h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.workflow-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 统计数据区域 */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA区域 */
.cta {
    padding: 100px 0;
    background: var(--background-secondary);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.cta p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 页脚 */
.footer {
    background: var(--background-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 30px;
    text-align: center;
    color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 隐藏桌面按钮，显示汉堡菜单 */
    .nav-buttons {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }

    /* 移动端菜单核心样式 */
    .nav-menu {
        position: absolute;
        top: 70px;
        left: -100%; /* 初始状态在屏幕外 */
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--background-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 0;
        padding-top: 20px;
        transition: left 0.3s ease-in-out;
    }

    .nav-menu.active {
        left: 0; /* 激活时滑入屏幕 */
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    /* 显示移动端专属的按钮 */
    .nav-item-mobile {
        display: block;
        padding: 15px 20px;
        width: 100%;
    }

    .nav-item-mobile .btn {
        width: 100%;
        justify-content: center;
    }
     .nav-item-mobile:first-of-type {
        margin-top: 15px;
        padding-top: 30px;
        border-top: 1px solid var(--border-color);
    }


    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .workflow-step::after {
        content: '↓';
        right: 50%;
        top: auto;
        bottom: -15px;
        transform: translateX(50%);
    }

    .workflow-step:last-child::after {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* 滚动动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 主题切换 */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

/* 暗色主题 */
[data-theme="dark"] {
    --text-primary: #FFFFFF;
    --text-secondary: #BDC3C7;
    --text-light: #7F8C8D;
    --background-primary: #1A1A1A;
    --background-secondary: #2C2C2C;
    --background-dark: #0F0F0F;
    --border-color: #404040;
}

[data-theme="dark"] .navbar {
    background: rgba(26, 26, 26, 0.95);
}

[data-theme="dark"] .feature-card {
    background: var(--background-secondary);
}

[data-theme="dark"] .nav-menu {
     background: var(--background-primary);
}

[data-theme="dark"] .workflow {
    background: var(--background-primary);
}
.text-color{
    color: #bdc3c7;
    text-decoration: none;
}