/* 医美消费心理学网站样式表 - 重新设计 */

:root {
    /* 颜色系统 */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* 文字颜色 */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #f9fafb;
    --text-muted: #9ca3af;
    
    /* 背景颜色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-accent: #e0e7ff;
    
    /* 边框和阴影 */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-success: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* 间距 */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* 圆角 */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* 字体 */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.25rem;
    --font-5xl: 3rem;
    --font-6xl: 3.75rem;
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-muted: #9ca3af;
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-tertiary: #334155;
        --border-color: #475569;
        --border-light: #334155;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.nav-logo i {
    font-size: var(--font-2xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    color: var(--text-light);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 主要内容区域 */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* Hero 区域 */
.hero {
    padding: var(--space-3xl) 0;
    background: var(--gradient-primary);
    color: var(--text-light);
    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-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: var(--font-5xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-xl);
    font-weight: 300;
    margin-bottom: var(--space-2xl);
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: var(--font-3xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--font-sm);
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-sm);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--text-light);
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease 0.3s both;
}

.hero-graphic {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.hero-graphic::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--gradient-secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Section 样式 */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-title {
    font-size: var(--font-4xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-2xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 卡片样式 */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* 网格布局 */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Features 样式 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.feature-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-2xl);
    color: var(--text-light);
}

.feature-title {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Part Header 样式 */
.part-header {
    padding: var(--space-3xl) 0;
    background: var(--gradient-primary);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.part-header::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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.part-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.part-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.part-title {
    font-size: var(--font-5xl);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    line-height: 1.2;
}

.part-subtitle {
    font-size: var(--font-xl);
    font-weight: 300;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.part-description {
    font-size: var(--font-lg);
    line-height: 1.6;
    opacity: 0.8;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.overview-item {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.overview-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.overview-item i {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overview-item h3 {
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.overview-item p {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

/* Chapters List */
.chapters-list {
    display: grid;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.chapter-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-lg);
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.chapter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.chapter-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.chapter-number {
    background: var(--gradient-primary);
    color: var(--text-light);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-lg);
    flex-shrink: 0;
}

.chapter-info {
    flex: 1;
}

.chapter-title {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.chapter-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.chapter-topics {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.topic-tag {
    background: var(--bg-accent);
    color: var(--primary-color);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 500;
}

.chapter-link {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.chapter-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Flow Visualization */
.flow-visualization {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--border-light);
}

.flow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-xl);
    position: relative;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.flow-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-light);
    z-index: 1;
}

.flow-step {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    min-width: 120px;
    position: relative;
    z-index: 2;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.step-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--space-sm);
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: var(--font-lg);
}

.step-content h4 {
    font-size: var(--font-sm);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.step-content p {
    font-size: var(--font-xs);
    color: var(--text-secondary);
}

.flow-arrow {
    color: var(--text-muted);
    font-size: var(--font-xl);
    margin: 0 var(--space-xs);
}

/* Challenges Grid */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.challenge-item {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.challenge-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.challenge-item i {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.challenge-item h3 {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.challenge-item p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.challenge-item ul {
    list-style: none;
    padding: 0;
}

.challenge-item li {
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    font-size: var(--font-sm);
    position: relative;
    padding-left: var(--space-lg);
}

.challenge-item li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Reflection Box */
.reflection-box {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.reflection-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.reflection-box h3 {
    font-size: var(--font-2xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.reflection-box h3 i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reflection-box p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.reflection-list {
    list-style: none;
    padding: 0;
}

.reflection-list li {
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--space-lg);
    line-height: 1.6;
}

.reflection-list li::before {
    content: '💡';
    position: absolute;
    left: 0;
    color: var(--warning-color);
}

/* Study Tips */
.study-tips {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid var(--border-light);
}

.study-tips h3 {
    font-size: var(--font-2xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.study-tips h3 i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.tip-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tip-item i {
    font-size: var(--font-2xl);
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tip-item h4 {
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.tip-item p {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

/* Part Navigation */
.part-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
}

.nav-prev, .nav-next {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    font-weight: 600;
}

.nav-link:hover {
    background: var(--gradient-primary);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h4 {
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

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

.footer-section li {
    margin-bottom: var(--space-sm);
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-xl);
    text-align: center;
    color: var(--text-muted);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: var(--font-4xl);
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .flow-steps {
        flex-direction: column;
        align-items: stretch;
    }
    
    .flow-steps::before {
        display: none;
    }
    
    .flow-arrow {
        display: none;
    }
    
    .chapter-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .part-navigation {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-lg);
    }
    
    .section-title {
        font-size: var(--font-3xl);
    }
    
    .part-title {
        font-size: var(--font-3xl);
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 工具样式 */
.assessment-tool {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    border: 1px solid var(--border-light);
}

.question-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.question-text {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.answer-options {
    display: grid;
    gap: var(--space-md);
}

.answer-option {
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.answer-option:hover {
    border-color: var(--primary-color);
    background: var(--bg-accent);
}

.answer-option.selected {
    border-color: var(--primary-color);
    background: var(--bg-accent);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.result-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    border: 1px solid var(--border-light);
}

.result-score {
    font-size: var(--font-4xl);
    font-weight: 800;
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-level {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-primary);
    color: var(--text-light);
    border-radius: var(--radius-full);
    display: inline-block;
}

.result-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.recommendations {
    text-align: left;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.recommendations h4 {
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

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

.recommendations li {
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--space-lg);
}

.recommendations li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-light);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 成功状态 */
.success {
    background: var(--gradient-success);
    color: var(--text-light);
}

/* 警告状态 */
.warning {
    background: var(--gradient-warm);
    color: var(--text-light);
}

/* 错误状态 */
.error {
    background: var(--gradient-secondary);
    color: var(--text-light);
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* 选择文本样式 */
::selection {
    background: var(--primary-color);
    color: var(--text-light);
}

/* 焦点样式 */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .navbar,
    .footer,
    .hero-buttons,
    .part-navigation {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .hero,
    .part-header {
        background: none;
        color: var(--text-primary);
    }
    
    .hero-title,
    .part-title {
        color: var(--text-primary);
    }
}

/* ===================== */
/* 阅读页面专用样式 - 重新设计 */
/* ===================== */

/* 章节头部样式 */
.chapter-header {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: var(--space-3xl) 0 var(--space-2xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.chapter-header::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="pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="50" r="1.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23pattern)"/></svg>');
    opacity: 0.3;
}

.chapter-header .container {
    position: relative;
    z-index: 1;
}

.chapter-header h1 {
    font-size: var(--font-5xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.chapter-subtitle {
    font-size: var(--font-xl);
    font-weight: 300;
    margin-bottom: var(--space-lg);
    opacity: 0.95;
}

.chapter-meta {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.chapter-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(255,255,255,0.2);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    font-size: var(--font-sm);
}

/* 章节内容容器 */
.chapter-content {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

/* 内容区块样式 */
.content-section {
    margin-bottom: var(--space-3xl);
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.content-section-header {
    background: var(--gradient-accent);
    color: var(--text-light);
    padding: var(--space-xl) var(--space-lg);
    position: relative;
}

.content-section-header::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="pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23pattern)"/></svg>');
    opacity: 0.3;
}

.content-section-header h2 {
    font-size: var(--font-3xl);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.content-section-header p {
    font-size: var(--font-lg);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.content-section-body {
    padding: var(--space-xl) var(--space-lg);
}

/* 概念卡片网格 */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.concept-card-enhanced {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.concept-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.concept-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.concept-card-enhanced:hover::before {
    transform: scaleX(1);
}

.concept-icon-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: var(--font-xl);
    margin-bottom: var(--space-md);
}

/* 进度指示器 */
.progress-indicator {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
}

.progress-bar-enhanced {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    height: 12px;
    overflow: hidden;
    margin: var(--space-md) 0;
    position: relative;
}

.progress-bar-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-fill-enhanced {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    transition: width 0.8s ease;
    position: relative;
    overflow: hidden;
}

/* 交互式演示区域 */
.interactive-demo-enhanced {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    margin: var(--space-2xl) 0;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
}

.interactive-demo-enhanced::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="pattern" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%236366f1" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="%236366f1" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23pattern)"/></svg>');
    opacity: 0.5;
}

.interactive-demo-enhanced h3 {
    font-size: var(--font-2xl);
    margin-bottom: var(--space-lg);
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

/* 数据可视化 */
.stats-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.stat-card-enhanced {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.stat-card-enhanced:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card-enhanced:hover::after {
    opacity: 0.05;
}

.stat-number-enhanced {
    font-size: var(--font-4xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* 时间线增强 */
.timeline-enhanced {
    position: relative;
    padding-left: var(--space-xl);
    margin: var(--space-xl) 0;
}

.timeline-enhanced::before {
    content: '';
    position: absolute;
    left: var(--space-md);
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
}

.timeline-item-enhanced {
    position: relative;
    margin-bottom: var(--space-xl);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    transition: all 0.3s ease;
}

.timeline-item-enhanced::before {
    content: '';
    position: absolute;
    left: calc(var(--space-md) - 8px);
    top: var(--space-lg);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--border-color);
}

.timeline-item-enhanced:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

/* 引用块增强 */
.quote-block {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    position: relative;
}

.quote-block::before {
    content: '"';
    position: absolute;
    top: var(--space-md);
    left: var(--space-lg);
    font-size: var(--font-6xl);
    color: var(--primary-color);
    opacity: 0.2;
}

.quote-content {
    font-style: italic;
    font-size: var(--font-lg);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.quote-author {
    font-weight: 600;
    color: var(--text-secondary);
    text-align: right;
}

/* 练习区域 */
.exercise-section {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    margin: var(--space-2xl) 0;
}

.exercise-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.exercise-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: var(--font-xl);
}

/* 反思区域 */
.reflection-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    margin: var(--space-2xl) 0;
    border: 1px solid #f59e0b;
}

.reflection-section h3 {
    color: #92400e;
    margin-bottom: var(--space-lg);
}

/* 导航增强 */
.chapter-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-3xl);
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
}

.nav-btn-enhanced {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--gradient-primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-btn-enhanced:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.nav-btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
}

/* 可视化图表 */
.visualization-chart {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    text-align: center;
}

.chart-container {
    position: relative;
    height: 300px;
    margin: var(--space-lg) 0;
}

/* 智能卡片 */
.smart-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin: var(--space-lg) 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.smart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(99, 102, 241, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smart-card:hover::before {
    opacity: 1;
}

.smart-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .chapter-header h1 {
        font-size: var(--font-4xl);
    }
    
    .chapter-content {
        padding: var(--space-xl) var(--space-md);
    }
    
    .content-section-header h2 {
        font-size: var(--font-2xl);
    }
    
    .concept-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-enhanced {
        grid-template-columns: 1fr;
    }
    
    .timeline-enhanced {
        padding-left: var(--space-md);
    }
    
    .chapter-navigation {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .nav-btn-enhanced {
        width: 100%;
        justify-content: center;
    }
}