/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #D4A574;
    --primary-dark: #8B4513;
    --secondary-color: #1A1A2E;
    --bg-light: #F5E6D3;
    --text-dark: #2C1810;
    --text-light: #666;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #4a90d9 0%, #5ba3e8 50%, #7ec8f0 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: 28px;
}

.brand-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dark);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* 主视觉区 */
.hero {
    padding: 140px 5% 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(212,165,116,0.1) 0%, rgba(74,144,217,0.6) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 42px;
    color: var(--bg-light);
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 40px;
    letter-spacing: 3px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 56px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139,69,19,0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139,69,19,0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

/* 圣凡成就路线图 */
.roadmap-section {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
}

.roadmap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.roadmap-phase {
    background: linear-gradient(135deg, #faf8f5, var(--white));
    border: 2px solid var(--bg-light);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    min-width: 160px;
    transition: all 0.3s;
}

.roadmap-phase:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.roadmap-phase.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-dark);
    color: var(--white);
}

.roadmap-phase.highlight h3,
.roadmap-phase.highlight p {
    color: var(--white);
}

.phase-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.roadmap-phase h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.roadmap-phase p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.phase-weeks {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
}

.roadmap-arrow {
    font-size: 24px;
    color: var(--primary-color);
}

/* 课程区域 */
.courses-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, var(--white) 100%);
}

.phase-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.phase-tab {
    padding: 12px 30px;
    border: 2px solid var(--bg-light);
    background: var(--white);
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.phase-tab:hover,
.phase-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.course-card {
    background: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.course-week {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.course-title {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.course-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.course-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.courses-actions {
    text-align: center;
}

/* 功课区域 */
.practice-section {
    padding: 80px 0;
    background: var(--white);
}

.practice-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.practice-card {
    background: linear-gradient(135deg, #faf8f5, var(--white));
    border: 2px solid var(--bg-light);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.practice-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.practice-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.practice-info {
    flex: 1;
}

.practice-info h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.practice-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.progress-bar {
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 3px;
    transition: width 0.3s;
}

.progress-text {
    font-size: 12px;
    color: var(--primary-dark);
    font-weight: 500;
}

/* 资料库区域 */
.library-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, var(--white) 100%);
}

.library-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* 法语区域 */
.quote-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #4a90d9 0%, #5ba3e8 50%, #7ec8f0 100%);
}

.dharma-quote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.dharma-quote p {
    font-size: 22px;
    color: var(--bg-light);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}

.dharma-quote cite {
    font-size: 16px;
    color: var(--primary-color);
    font-style: normal;
}

/* 底部 */
.footer {
    padding: 40px 0;
    background: linear-gradient(135deg, #4a90d9 0%, #5ba3e8 50%, #7ec8f0 100%);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--bg-light);
    font-size: 18px;
}

.footer-quote {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-copyright {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 4%;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 13px;
    }
    
    .hero {
        padding: 120px 4% 60px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    .roadmap {
        flex-direction: column;
    }
    
    .roadmap-arrow {
        transform: rotate(90deg);
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .practice-card {
        flex-direction: column;
        text-align: center;
    }
}
