﻿/* TeacherMa - 游戏编程教育网站样式 */

/* CSS变量 */
:root {
    --primary-color: #2f6fed;
    --primary-dark: #1f4fb8;
    --primary-light: #7fa6ff;
    --secondary-color: #FF6B35;
    --secondary-dark: #E55A2B;
    --accent-color: #2196F3;
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f1a;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --border-color: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text {
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}


.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* 英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(76, 175, 80, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(33, 150, 243, 0.08) 0%, transparent 70%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.title-line {
    display: block;
    color: var(--white);
}

.title-line.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
}

.btn-icon {
    font-size: 1.2rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-showcase {
    width: 100%;
    max-width: 460px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.hero-shot {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.hero-shot img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.hero-shot-label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(6px);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.code-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.code-title {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.code-block pre {
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* 首页品牌动态区 */
.brand-dynamic {
    padding: 72px 0;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f6fd 100%);
    border-top: 1px solid #e7edf7;
    border-bottom: 1px solid #e7edf7;
}

.brand-dynamic-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
}

.dynamic-video-panel,
.dynamic-notice-panel {
    background: #ffffff;
    border: 1px solid #e4ebf6;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.panel-head h2 {
    font-size: 1.22rem;
    color: #1b2b48;
}

.panel-meta {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #325d9c;
    background: #ecf3ff;
    border: 1px solid #d7e6ff;
    border-radius: 999px;
    padding: 4px 10px;
}

.dynamic-video-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #dce7f8;
    background: #0d1424;
}

.dynamic-video {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity .45s ease;
}

.dynamic-video.is-switching {
    opacity: .4;
}

.dynamic-video-overlay {
    position: absolute;
    left: 12px;
    bottom: 12px;
    right: 12px;
    pointer-events: none;
}

.dynamic-video-overlay span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 20, 36, 0.75);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    font-size: 0.82rem;
    padding: 6px 12px;
}

.panel-note {
    margin-top: 10px;
    color: #5f6f87;
    font-size: 0.9rem;
}

.notice-card {
    border: 1px solid #deebff;
    background: linear-gradient(145deg, #ffffff 0%, #f6f9ff 100%);
    border-radius: 12px;
    padding: 18px 16px;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

.notice-tag {
    color: #2f6fed;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.notice-card h3 {
    font-size: 1.35rem;
    color: #162746;
    line-height: 1.35;
}

.notice-card p {
    color: #55677f;
    line-height: 1.82;
    font-size: .98rem;
}

.notice-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #1f4fb8;
    font-weight: 700;
}

.notice-link i {
    transition: transform .3s ease;
}

.notice-link:hover i {
    transform: translateX(4px);
}

.notice-card.is-fading {
    opacity: .3;
    transform: translateY(3px);
    transition: opacity .35s ease, transform .35s ease;
}

.keyword { color: #c792ea; }
.class-name { color: #82aaff; }
.method { color: #89ddff; }
.string { color: #c3e88d; }
.comment { color: #546e7a; font-style: italic; }

/* 主题图片 */
.theme-gallery {
    padding: 90px 0;
    background: var(--white);
}

.theme-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.theme-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.theme-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.theme-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.theme-card-content {
    padding: 24px;
}

.theme-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.theme-card-content p {
    color: var(--text-light);
}

/* 课程特色 */
.features {
    padding: 100px 0;
    background: var(--light-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 课程预览 */
.courses-preview {
    padding: 100px 0;
    background: var(--white);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.course-image {
    height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.minecraft-bg {
    background: linear-gradient(135deg, rgba(15, 52, 30, 0.95) 0%, rgba(30, 90, 50, 0.9) 50%, rgba(20, 65, 35, 0.95) 100%),
                url('pics/minecraft.png') center/cover no-repeat;
}

.roblox-bg {
    background: linear-gradient(135deg, rgba(139, 26, 26, 0.95) 0%, rgba(180, 40, 40, 0.9) 50%, rgba(150, 30, 30, 0.95) 100%),
                url('pics/roblox.png') center/cover no-repeat;
}

.cpp-bg {
    background: linear-gradient(135deg, rgba(22, 36, 82, 0.95) 0%, rgba(34, 58, 132, 0.9) 50%, rgba(25, 42, 96, 0.95) 100%),
                url('pics/c++/cpp-01.png') center/cover no-repeat;
}

.forge-bg {
    background: linear-gradient(135deg, rgba(104, 53, 13, 0.95) 0%, rgba(158, 84, 28, 0.9) 50%, rgba(108, 52, 20, 0.95) 100%),
                url('pics/forge-mod-hero.png') center/cover no-repeat;
}

.mc-english-bg {
    background: linear-gradient(135deg, rgba(24, 50, 88, 0.95) 0%, rgba(38, 82, 138, 0.9) 50%, rgba(26, 58, 96, 0.95) 100%),
                url('pics/mc.png') center/cover no-repeat;
}

.course-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
}

.course-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.course-info {
    padding: 30px;
}

.course-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.course-info p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.course-meta {
    display: flex;
    gap: 20px;
    color: var(--text-lighter);
    font-size: 0.9rem;
}

.tutorial-gallery {
    padding: 100px 0;
    background: var(--light-bg);
}

.tutorial-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.tutorial-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tutorial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.tutorial-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.tutorial-card p {
    margin: 0;
    padding: 14px 16px 16px;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

.tutorial-gallery-actions {
    margin-top: 28px;
    text-align: center;
}

.tutorial-gallery-actions .btn {
    min-width: 230px;
    justify-content: center;
}

/* 学习路径 */
.learning-path {
    padding: 100px 0;
    background: var(--dark-bg);
}

.learning-path .section-title {
    color: var(--white);
}

.path-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.path-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
}

.path-item {
    text-align: center;
    position: relative;
}

.path-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.path-content h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.path-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

/* 页脚 */
.footer {
    background: var(--darker-bg);
    padding: 60px 0 20px;
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.legal-links {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 14px;
    font-size: 0.85rem;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
}

.legal-links a:hover {
    color: var(--white);
}

.cookie-consent {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: min(460px, calc(100vw - 30px));
    background: rgba(18, 24, 39, 0.96);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    padding: 18px 18px 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.32);
    z-index: 2200;
}

.cookie-consent.hidden {
    display: none;
}

.cookie-consent h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.cookie-consent p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
}

.cookie-links {
    margin-top: 8px;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-links a {
    color: #9dd2ff;
    text-decoration: underline;
    font-size: 0.88rem;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    cursor: pointer;
}

.cookie-btn.accept {
    background: var(--primary-color);
    color: var(--white);
}

.cookie-btn.reject {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .theme-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .path-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-dynamic-grid {
        grid-template-columns: 1fr;
    }

    .tutorial-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .path-timeline::before {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }

    .dynamic-video {
        height: 250px;
    }

    .notice-card {
        min-height: 250px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .tutorial-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .path-timeline {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cookie-consent {
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: auto;
    }

    .cookie-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
}

/* ==================== 课程页面通用样式 ==================== */
.course-header {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 70px;
    overflow: hidden;
}

.minecraft-header {
    background: linear-gradient(135deg, rgba(15, 52, 30, 0.92) 0%, rgba(26, 71, 42, 0.88) 50%, rgba(15, 45, 25, 0.92) 100%),
                url('pics/mc.png') center/cover no-repeat;
}

.roblox-header {
    background: linear-gradient(135deg, rgba(90, 20, 20, 0.92) 0%, rgba(120, 30, 30, 0.88) 50%, rgba(80, 20, 20, 0.92) 100%),
                url('pics/roblox.png') center/cover no-repeat;
}

.cpp-header {
    background: linear-gradient(135deg, rgba(20, 34, 84, 0.92) 0%, rgba(31, 53, 122, 0.88) 50%, rgba(18, 30, 72, 0.92) 100%),
                url('pics/c++/cpp-02.png') center/cover no-repeat;
}

.forge-header {
    background: linear-gradient(135deg, rgba(94, 45, 10, 0.92) 0%, rgba(145, 77, 24, 0.88) 50%, rgba(89, 40, 12, 0.92) 100%),
                url('pics/forge-mod-hero.png') center/cover no-repeat;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 90%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(255,255,255,0.08) 0%, transparent 40%);
}

.course-header .header-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.course-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.course-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.course-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.course-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
}

.stat-item .stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* 课程概述 */
.course-overview {
    padding: 80px 0;
    background: var(--light-bg);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.overview-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.overview-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.overview-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.overview-card ul {
    list-style: none;
}

.overview-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.overview-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* 课程大纲 */
.curriculum {
    padding: 80px 0;
    background: var(--white);
}

.curriculum-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.curriculum-phase {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.phase-header {
    background: linear-gradient(135deg, var(--dark-bg), #2a2a4a);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.phase-number {
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.phase-header h3 {
    flex: 1;
    color: var(--white);
    font-size: 1.3rem;
}

.phase-duration {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.phase-detail-link {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.phase-detail-link:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.7);
}

.phase-detail-page {
    padding: 80px 0;
    background: var(--light-bg);
}

.phase-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.phase-detail-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.phase-detail-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.phase-detail-card ul {
    list-style: disc;
    margin-left: 20px;
}

.phase-detail-card li {
    color: var(--text-light);
    margin-bottom: 8px;
}

/* 阶段页与周页的操作按钮：苗条化 + 现代感 */
.phase-detail-page .phase-detail-card p .btn,
.doc .card p .btn {
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-top: 10px;
}

.phase-detail-page .phase-detail-card p .btn-primary,
.doc .card p .btn-primary {
    box-shadow: 0 6px 16px rgba(47, 111, 237, 0.28);
}

.phase-detail-page .phase-detail-card p .btn-secondary,
.doc .card p .btn-secondary {
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.28);
}

.phase-detail-page .phase-detail-card p .btn-primary:hover,
.doc .card p .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(47, 111, 237, 0.3);
}

.phase-detail-page .phase-detail-card p .btn-secondary:hover,
.doc .card p .btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(255, 107, 53, 0.3);
}

/* cpp-phase 页面中的周链接：胶囊风格，不用下划线也能明显识别可点击 */
.phase-detail-card ul a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    padding: 3px 10px 4px;
    border-radius: 999px;
    border: 1px solid rgba(47, 111, 237, 0.28);
    background: linear-gradient(135deg, rgba(47, 111, 237, 0.14), rgba(47, 111, 237, 0.05));
    color: #1f56c8;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(47, 111, 237, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.phase-detail-card ul a::after {
    content: "›";
    font-size: 1rem;
    line-height: 1;
    opacity: 0.78;
    transform: translateX(0);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.phase-detail-card ul a:hover {
    color: #1b4aac;
    border-color: rgba(47, 111, 237, 0.45);
    background: linear-gradient(135deg, rgba(47, 111, 237, 0.2), rgba(47, 111, 237, 0.08));
    box-shadow: 0 10px 22px rgba(47, 111, 237, 0.18);
    transform: translateY(-1px);
}

.phase-detail-card ul a:hover::after {
    opacity: 1;
    transform: translateX(2px);
}

.phase-detail-card ul a:active {
    transform: translateY(0);
}

.phase-detail-card ul a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.24), 0 10px 22px rgba(47, 111, 237, 0.18);
}

.phase-content {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.module {
    padding: 20px;
    background: var(--light-bg);
    border-radius: 10px;
}

.module h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.module ul {
    list-style: none;
}

.module li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.module li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* 项目作品 */
.projects {
    padding: 80px 0;
    background: var(--light-bg);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-top: -40px;
    margin-bottom: 50px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.project-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 技术栈 */
.tech-stack {
    padding: 80px 0;
    background: var(--white);
}

.tech-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tech-icon {
    font-size: 2.5rem;
}

.tech-name {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* 对比优势 */
.comparison {
    padding: 80px 0;
    background: var(--light-bg);
}

.comparison-grid {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.comparison-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 24px;
    transition: var(--transition);
}

.comparison-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.comparison-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f56c8;
    background: #eef4ff;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.comparison-item h3 {
    font-size: 1.12rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.comparison-item p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Forge 下载区 */
.forge-downloads {
    padding: 80px 0;
    background: var(--white);
}

.forge-downloads .section-subtitle code {
    background: rgba(47, 111, 237, 0.1);
    border: 1px solid rgba(47, 111, 237, 0.2);
    padding: 3px 8px;
    border-radius: 8px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    color: #1e4fb7;
}

.forge-download-list {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.forge-download-item {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.forge-download-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.forge-download-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex: 0 0 auto;
}

.forge-download-text h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.05rem;
    word-break: break-word;
}

.forge-download-text p {
    margin: 6px 0 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.forge-download-btn {
    white-space: nowrap;
}

.forge-download-empty {
    max-width: 760px;
    margin: 0 auto;
    background: var(--light-bg);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 26px;
    text-align: center;
    color: var(--text-light);
}

.forge-download-empty i {
    color: #b26a1a;
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.forge-download-empty p {
    margin: 0;
}

/* CTA区域 */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 15px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ==================== 关于我们页面样式 ==================== */
.about-header {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 70px;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95) 0%, rgba(25, 35, 60, 0.92) 50%, rgba(15, 25, 45, 0.95) 100%),
                url('pics/desktop1.png') center/cover no-repeat;
}

.about-header .header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.about-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.page-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* 使命与愿景 */
.mission-vision {
    padding: 80px 0;
    background: var(--white);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.mv-card {
    background: var(--light-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
}

.mv-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.mv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.mv-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 核心价值观 */
.values {
    padding: 80px 0;
    background: var(--light-bg);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.value-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 15px;
}

.value-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.value-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 教学特色 */
.teaching-features {
    padding: 80px 0;
    background: var(--white);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 30px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-number {
    display: inline-block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 10px;
}

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-content p {
    color: var(--text-light);
}

.feature-visual {
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.visual-icon {
    font-size: 3rem;
}

/* 统计数据 */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-bg), #2a2a4a);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-box {
    text-align: center;
}

.stat-box .stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-unit {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-box p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
}

/* 教学理念 */
.philosophy {
    padding: 80px 0;
    background: var(--light-bg);
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.philosophy-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.philosophy-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.philosophy-quote {
    margin-top: 30px;
    padding: 25px;
    background: var(--white);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
}

.philosophy-quote blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.philosophy-quote cite {
    color: var(--text-light);
    font-size: 0.9rem;
}

.philosophy-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(56, 142, 60, 0.85) 50%, rgba(46, 125, 50, 0.9) 100%),
                url('pics/mc.png') center/cover;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.85) 0%, rgba(56, 142, 60, 0.8) 100%);
    border-radius: 50%;
}

.image-placeholder span {
    font-size: 4rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.image-placeholder p {
    font-size: 1.2rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ==================== 联系方式页面样式 ==================== */
.contact-header {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 70px;
    background: linear-gradient(135deg, rgba(35, 40, 45, 0.95) 0%, rgba(55, 65, 75, 0.92) 50%, rgba(35, 40, 45, 0.95) 100%),
                url('pics/contact-roblox-play.jpg') center/cover no-repeat;
}

.contact-header .header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* 教程实战截图页面 */
.tutorial-page-header {
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 70px;
    background: linear-gradient(135deg, rgba(20, 35, 60, 0.9) 0%, rgba(80, 40, 30, 0.88) 100%),
                url('pics/tutorial-minecraft-landscape.png') center/cover no-repeat;
}

.tutorial-page-header .header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.tutorial-page-gallery {
    padding: 80px 0;
    background: var(--light-bg);
}

.tutorial-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tutorial-page-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tutorial-page-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.tutorial-page-card .card-content {
    padding: 16px 18px 20px;
}

.tutorial-page-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.tutorial-page-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 联系信息 */
.contact-info {
    padding: 80px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.contact-card p {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 10px;
}

.contact-note {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

/* 咨询表单 */
.contact-form-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.form-header p {
    color: var(--text-light);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    color: var(--text-light);
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 常见问题 */
.faq-section {
    padding: 80px 0;
    background: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-icon {
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.faq-question h3 {
    flex: 1;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--text-light);
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--light-bg);
}

.faq-answer p {
    padding: 20px 25px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 在线咨询 */
.online-consult {
    padding: 80px 0;
    background: var(--dark-bg);
}

.consult-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consult-text h2 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 10px;
}

.consult-text p {
    color: rgba(255, 255, 255, 0.7);
}

.consult-buttons {
    display: flex;
    gap: 15px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border: 2px solid var(--white);
    border-radius: 50px;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark-bg);
}

/* 响应式补充 */
@media (max-width: 1024px) {
    .overview-grid,
    .projects-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .philosophy-content {
        grid-template-columns: 1fr;
    }
    
    .philosophy-image {
        order: -1;
    }
    
    .consult-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .course-header h1,
    .about-header h1 {
        font-size: 2rem;
    }
    
    .course-stats {
        flex-direction: column;
        gap: 20px;
    }

    .phase-header {
        flex-wrap: wrap;
    }

    .phase-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-grid,
    .projects-grid,
    .contact-grid,
    .values-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .forge-download-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .forge-download-btn {
        width: 100%;
        justify-content: center;
    }
    
    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 30px 20px;
    }

    .tutorial-page-grid {
        grid-template-columns: 1fr;
    }
}
