/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 颜色变量 */
:root {
    --primary-color: #3B82F6;
    --secondary-color: #10B981;
    --accent-color: #F59E0B;
    --text-color: #111827;
    --text-light: #6B7280;
    --bg-color: #FFFFFF;
    --bg-light: #F9FAFB;
    --border-color: #E5E7EB;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #60A5FA);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #34D399);
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #FBBF24);
    --gradient-bg: linear-gradient(135deg, #F9FAFB 0%, #FFFFFF 100%);
}

/* 深色模式 */
[data-theme="dark"] {
    --primary-color: #60A5FA;
    --secondary-color: #34D399;
    --accent-color: #FBBF24;
    --text-color: #F9FAFB;
    --text-light: #D1D5DB;
    --bg-color: #111827;
    --bg-light: #1F2937;
    --border-color: #374151;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
    --gradient-bg: linear-gradient(135deg, #111827 0%, #1F2937 100%);
}

/* 页面加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 全局样式 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.65;
    color: var(--text-color);
    background: var(--gradient-bg);
    transition: var(--transition);
    overflow-x: hidden;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* 元素进入视口动画 */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.fade-in-left {
    animation: fadeInLeft 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.fade-in-right {
    animation: fadeInRight 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.scale-in {
    animation: scaleIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.float {
    animation: float 3s ease-in-out infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* 视差滚动效果 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 现代化的悬停效果 */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.hover-glow {
    transition: var(--transition);
    position: relative;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(67, 97, 238, 0.4);
}

.hover-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.hover-glow:hover::before {
    opacity: 1;
}

/* 文字渐变效果 */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* 呼吸动画 */
@keyframes breathe {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.breathe {
    animation: breathe 3s ease-in-out infinite;
}

/* 延迟动画 */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 流体容器 */
.container-fluid {
    width: 100%;
    padding: 0 24px;
}

/* 内容区域 */
.content-section {
    padding: 80px 0;
    position: relative;
}

/* 紧凑内容区域 */
.content-section.compact {
    padding: 60px 0;
}

/* 宽内容区域 */
.content-section.wide {
    padding: 100px 0;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    line-height: 1.2;
}

h1 {
    font-size: 2.75rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.35rem;
}

/* 段落样式 */
p {
    margin-bottom: 1.25rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* 链接样式 */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border: none;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: inherit;
    letter-spacing: 0.02em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.primary-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.primary-btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.6);
}

.secondary-btn {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.4);
}

.secondary-btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 15px 40px rgba(244, 63, 94, 0.6);
}

.btn-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 10px 20px;
    border-radius: 16px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--primary-color);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.btn-link:hover {
    background-color: rgba(124, 58, 237, 0.2);
    transform: translateX(8px) scale(1.05);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.btn-link::after {
    content: '→';
    margin-left: 8px;
    transition: var(--transition);
}

.btn-link:hover::after {
    margin-left: 16px;
}

/* 头部导航 */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .header {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo h1 {
    font-size: 1.7rem;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.logo p {
    font-size: 0.85rem;
    margin: 4px 0 0;
    color: var(--text-light);
    transition: var(--transition);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.logo:hover p {
    color: var(--primary-color);
    transform: translateX(4px);
}

/* 导航菜单 */
.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-list li a {
    padding: 10px 18px;
    border-radius: 10px;
    transition: var(--transition);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
    font-weight: 500;
    font-size: 0.95rem;
}

[data-theme="dark"] .nav-list li a {
    background: transparent;
    border: none;
}

.nav-list li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-list li a:hover {
    color: var(--primary-color);
    background: transparent;
    border: none;
    transform: translateY(-1px);
    box-shadow: none;
}

.nav-list li a:hover::before {
    width: 80%;
}

[data-theme="dark"] .nav-list li a:hover {
    background: transparent;
}

.nav-list li a.active {
    color: var(--primary-color);
    font-weight: 600;
    background: transparent;
    border: none;
    box-shadow: none;
    transform: none;
}

.nav-list li a.active::before {
    width: 80%;
}

/* 头部操作按钮 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle,
.user-btn,
.mobile-menu-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移动端菜单按钮默认隐藏 */
.mobile-menu-btn {
    display: none;
}

.mobile-menu-btn:hover,
.theme-toggle:hover,
.user-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    border-color: var(--primary-color);
}

/* 滚动时的头部样式 */
.header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .header.scrolled {
    background-color: rgba(26, 26, 26, 0.9);
}

/* 移动端导航 */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    z-index: 1100;
    transition: var(--transition);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    align-self: flex-end;
    margin-bottom: 20px;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-list a {
    padding: 14px 18px;
    border-radius: 12px;
    transition: var(--transition);
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    box-shadow: none;
    font-weight: 500;
    margin-bottom: 8px;
}

[data-theme="dark"] .mobile-nav-list a {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid var(--border-color);
}

.mobile-nav-list a:hover {
    background-color: rgba(255, 255, 255, 1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

[data-theme="dark"] .mobile-nav-list a:hover {
    background-color: rgba(40, 40, 40, 1);
}

.mobile-nav-list a.active {
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(67, 97, 238, 0.1);
    border: 1px solid var(--primary-color);
    box-shadow: none;
}

[data-theme="dark"] .mobile-nav-list a.active {
    background: rgba(76, 201, 240, 0.1);
    border: 1px solid var(--primary-color);
}

/* 英雄区域 */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 160px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: moveBackground 25s ease-in-out infinite;
}

@keyframes moveBackground {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* 英雄区域装饰元素 */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulse 8s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-content h2 {
    font-size: 4rem;
    margin-bottom: 32px;
    color: white;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, #FFFFFF, rgba(255,255,255,0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 56px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.hero-buttons .btn {
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-buttons .btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* 英雄区域响应式 */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 200px;
    }
}

/* 模块区域 */
.modules {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.modules::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.modules h3 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 20px;
}

.modules h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.module-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 56px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.9));
    transform: translateY(0);
}

[data-theme="dark"] .module-card {
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.9));
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.module-card:hover::before {
    transform: scaleX(1);
}

.module-card:hover {
    transform: translateY(-16px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

[data-theme="dark"] .module-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.module-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    font-size: 2.5rem;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: float 4s ease-in-out infinite;
}

.module-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.module-card:hover .module-icon::before {
    transform: rotate(45deg) translateX(100%);
}

.module-card:hover .module-icon {
    transform: scale(1.2) rotate(8deg);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

.module-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    z-index: -1;
}

.module-card h4 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: var(--text-color);
    transition: var(--transition);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.module-card:hover h4 {
    color: var(--primary-color);
    transform: translateY(-4px);
}

.module-card p {
    margin-bottom: 32px;
    color: var(--text-light);
    line-height: 1.7;
    transition: var(--transition);
    font-size: 1.05rem;
}

.module-card:hover p {
    color: var(--text-color);
    transform: translateY(-4px);
}

/* 模块区域动画 */
.module-card {
    animation: fadeInUp 0.6s ease-out;
}

.module-card:nth-child(1) {
    animation-delay: 0.1s;
}

.module-card:nth-child(2) {
    animation-delay: 0.2s;
}

.module-card:nth-child(3) {
    animation-delay: 0.3s;
}

.module-card:nth-child(4) {
    animation-delay: 0.4s;
}

.module-card:nth-child(5) {
    animation-delay: 0.5s;
}

.module-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* 工具区域 */
.tools {
    padding: 100px 0;
    background-color: var(--bg-color);
    position: relative;
}

.tools h3 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 20px;
}

.tools h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.tool-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 56px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.9));
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

[data-theme="dark"] .tool-card {
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(31, 41, 55, 0.9));
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    z-index: -1;
    margin: -1px;
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover {
    transform: translateY(-16px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    color: white;
}

[data-theme="dark"] .tool-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.tool-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 32px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    animation: float 4s ease-in-out infinite;
}

.tool-card:hover i {
    color: white;
    transform: scale(1.3) rotate(12deg);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.tool-card h4 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.tool-card:hover h4 {
    color: white;
    transform: translateY(-4px);
}

.tool-card p {
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    line-height: 1.7;
    font-size: 1.05rem;
}

.tool-card:hover p {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
}

/* 在线词典样式 */
.dictionary-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 32px;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

[data-theme="dark"] .dictionary-container {
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dictionary-search {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.dictionary-input {
    flex: 1;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

[data-theme="dark"] .dictionary-input {
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dictionary-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.dictionary-btn {
    padding: 20px 40px;
    border: none;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    white-space: nowrap;
}

.dictionary-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.6);
}

.dictionary-btn:active {
    transform: translateY(0) scale(0.98);
}

.dictionary-result {
    min-height: 300px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0, 1.2, 1) 0.4s both;
}

[data-theme="dark"] .dictionary-result {
    background: rgba(31, 41, 55, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dictionary-result h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    font-weight: 700;
}

.dictionary-result .phonetic {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-style: italic;
}

.dictionary-result .part-of-speech {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.dictionary-result .definition {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.dictionary-result .example {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
    background: rgba(243, 244, 246, 0.8);
    padding: 16px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 16px;
    font-style: italic;
}

[data-theme="dark"] .dictionary-result .example {
    background: rgba(45, 55, 72, 0.8);
}

.dictionary-result .error {
    color: var(--secondary-color);
    font-size: 1.1rem;
    text-align: center;
    padding: 40px 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dictionary-container {
        padding: 32px 24px;
    }
    
    .dictionary-search {
        flex-direction: column;
    }
    
    .dictionary-btn {
        width: 100%;
        text-align: center;
    }
    
    .dictionary-result {
        padding: 24px;
    }
    
    .dictionary-result h4 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dictionary-container {
        padding: 24px 16px;
    }
    
    .dictionary-input {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .dictionary-btn {
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    .dictionary-result {
        padding: 20px;
    }
    
    .dictionary-result h4 {
        font-size: 1.3rem;
    }
}

/* 学习进度区域 */
.progress-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.progress-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.progress-section h3 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 20px;
}

.progress-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.progress-content {
    display: flex;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
    justify-content: center;
}

.progress-card {
    flex: 1;
    min-width: 350px;
    background-color: var(--bg-color);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.progress-card h4 {
    margin-bottom: 25px;
    font-size: 1.4rem;
    color: var(--text-color);
    transition: var(--transition);
}

.progress-card:hover h4 {
    color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.progress-card p {
    color: var(--text-light);
    transition: var(--transition);
}

.progress-card:hover p {
    color: var(--text-color);
}

/* 学习进度区域动画 */
.progress-card {
    animation: fadeInUp 0.8s ease-out;
}

/* 进度条数值显示 */
.progress-fill::before {
    content: attr(data-percent);
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-color) 100%);
    padding: 80px 0 40px;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .footer {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-color) 100%);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-info h3 {
    margin-bottom: 24px;
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.footer-info p {
    margin-bottom: 24px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
}

[data-theme="dark"] .social-links a {
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 1.3rem;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links ul li a {
    color: var(--text-light);
    transition: var(--transition);
    font-size: 1.05rem;
    display: inline-block;
    position: relative;
    padding-left: 20px;
}

.footer-links ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-10px);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    transform: translateX(8px);
}

.footer-links ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact h4 {
    margin-bottom: 24px;
    font-size: 1.3rem;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-contact p {
    margin-bottom: 16px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.footer-contact p i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    text-align: center;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 1.05rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-info h3 {
        font-size: 1.5rem;
    }
    
    .footer-links h4,
    .footer-contact h4 {
        font-size: 1.2rem;
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 900px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav {
        order: 3;
        width: 100%;
    }
    
    .nav-list {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-list li a {
        padding: 10px 16px;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 28px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 700px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    h3 {
        font-size: 1.375rem;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .hero-buttons .btn {
        width: 240px;
    }
    
    .progress-content {
        flex-direction: column;
    }
    
    .progress-card {
        width: 100%;
        margin-bottom: 24px;
    }
    
    /* 隐藏桌面端导航，显示移动端菜单按钮 */
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block !important;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 100%;
        padding: 0 16px;
    }
    
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .logo h1 {
        font-size: 1.375rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-content h2 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        width: 200px;
        padding: 12px 24px;
    }
    
    .modules,
    .tools,
    .progress-section {
        padding: 60px 0;
    }
    
    .modules h3,
    .tools h3,
    .progress-section h3 {
        font-size: 1.375rem;
        margin-bottom: 32px;
    }
    
    .module-card {
        padding: 36px 28px;
        border-radius: 16px;
    }
    
    .tool-card {
        padding: 36px 28px;
        border-radius: 16px;
    }
    
    .mobile-nav {
        width: 280px;
    }
    
    .mobile-nav-list a {
        padding: 12px 16px;
        border-radius: 10px;
    }
}

@media (max-width: 360px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons .btn {
        width: 180px;
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .module-card {
        padding: 32px 24px;
    }
    
    .tool-card {
        padding: 32px 24px;
    }
}