/* ===== CSS变量定义 ===== */
:root {
    /* 日系清新配色 */
    --pink: #FFB7C5;        /* 樱花粉 */
    --pink-dark: #FF8FA3;
    --pink-light: #FFE4E9;
    --green: #7BA05B;       /* 抹茶绿 */
    --green-dark: #5C7A3D;
    --green-light: #C5D9A8;
    --blue: #5DADE2;        /* 天空蓝 */
    --blue-dark: #3498DB;
    --blue-light: #AED6F1;
    --orange: #F39C12;      /* 暖橙色 */
    --orange-dark: #E67E22;
    --orange-light: #F8C471;
    
    /* 中性色 */
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --text-light: #B2BEC3;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E8E8E8;
    
    /* 渐变 */
    --gradient-pink: linear-gradient(135deg, #FFB7C5 0%, #FF8FA3 100%);
    --gradient-blue: linear-gradient(135deg, #5DADE2 0%, #3498DB 100%);
    --gradient-green: linear-gradient(135deg, #7BA05B 0%, #5C7A3D 100%);
    --gradient-orange: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-pink: 0 4px 20px rgba(255, 183, 197, 0.4);
    --shadow-blue: 0 4px 20px rgba(93, 173, 226, 0.3);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* 过渡 */
    --transition: all 0.3s ease;
}

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, li {
    list-style: none;
}

img {
    /*max-width: 100%;*/
    /*height: auto;*/
    /*display: block;*/
}

/* ===== 容器 ===== */
.container {
    width: 100%;
    max-width: 1343px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== Header Banner ===== */
.header-banner {
    position: relative;
    height: auto;
    min-height: 102px;
    overflow: hidden;
    background: linear-gradient(135deg, #e75f43 0%, #E8F4F8 50%, #F0F8E8 100%);
}

.header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFB7C5' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.header-banner .container {
    position: relative;
    z-index: 1;
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.header-banner .logo {
    max-width: 380px;
    height: auto;
}

.header-banner .logo img {
    max-width: 100%;
    height: auto;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 导航标签 */
.nav-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-tab {
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-tab:hover {
    background: white;
    color: var(--blue-dark);
}

.nav-tab.active {
    background: var(--blue);
    color: white;
    font-weight: 600;
}

/* ===== Main Navigation ===== */
.main-nav {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 15px;
}

.nav-link {
    padding: 10px 20px;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-size: 15px;
}

.nav-link:hover {
    background: #e75f43;
    color: white;
}

.nav-link.active {
    background: #e75f43;
    color: white;
}

/* ===== Section通用样式 ===== */
.section {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== 项目介绍 ===== */
.project-section {
    background: white;
}

.project-h4 {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===== 课程体系 ===== */
.system-section {
    background: linear-gradient(135deg, #e75f43 0%, #E8F4F8 100%);
}

.course-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.course-tab {
    padding: 12px 28px;
    background: white;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 15px;
    box-shadow: var(--shadow-sm);
}

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

.course-tab.active {
    background:#e75f43;
    color: white;
    box-shadow: var(--shadow-pink);
}

.course-content {
    display: none;
}

.course-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.course-detail {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.course-info-card {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--border-color);
}

.course-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-orange);
    color: white;
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.course-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.course-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
}

.meta-item i {
    font-style: normal;
}

/* 课程描述网格 */
.course-desc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.desc-item {
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.desc-item h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e75f43;
}

.desc-item ul {
    list-style: none;
}

.desc-item li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.desc-item li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #e75f43;
    border-radius: 50%;
}

/* ===== 课程优势 ===== */
.advantages-section {
    background: white;
}

.advantages-grid {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.advantage-card {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 24px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.advantage-card:hover,
.advantage-card.active {
    background: white;
    border-color: #e75f43;
    box-shadow: var(--shadow-pink);
    transform: translateY(-4px);
}

.advantage-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.advantage-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.advantage-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== 实景课堂 ===== */
.scenes-section {
    background: linear-gradient(180deg, var(--bg-light) 0%, white 100%);
}

.scenes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 180px);
    gap: 16px;
}

.scene-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.scene-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--blue);
}

.scene-card.large {
    grid-column: span 2;
    grid-row: span 1;
    flex-direction: row;
    gap: 20px;
    text-align: left;
    justify-content: flex-start;
    padding-left: 40px;
}

.scene-card.large .scene-icon {
    font-size: 50px;
}

.scene-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.scene-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.scene-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== 联系我们 ===== */
.contact-section {
    /*background: linear-gradient(135deg, #5dade2 0%, #E8F4F8 100%);*/
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e75f43;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: normal;
}

.info-content p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== Footer ===== */
.footer {
    background: #2D3436;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 392px;
    margin: 0 auto;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-links .divider {
    color: rgba(255, 255, 255, 0.3);
}

.footer-copyright {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright p {
    margin-bottom: 4px;
}

/* ===== 浮动咨询按钮 ===== */
.float-consult {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 99;
}

.float-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #F39C12;
    color: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-pink);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

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

.btn-icon {
    font-size: 18px;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--gradient-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-blue);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ===== 响应式设计 ===== */

/* 平板端 (max-width: 992px) */
@media (max-width: 992px) {
    .course-desc-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .scenes-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 160px);
    }
    
    .scene-card.large {
        grid-column: span 2;
        grid-row: span 1;
        padding-left: 20px;
        justify-content: center;
    }
    
    .advantage-card {
        flex: 0 0 calc(50% - 8px);
        max-width: none;
    }
}

/* 移动端 (max-width: 768px) */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    /* Header */
    .header-banner {
        min-height: auto;
        padding: 0;
    }
    
    .header-banner .container {
        padding: 15px 12px;
        flex-wrap: nowrap;
    }
    
    .header-banner .logo {
        max-width: 380px;
        margin-left: -60px;
    }
    
    /* 移动端菜单按钮显示 */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* 导航标签移动端样式 */
    .nav-tabs {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 20px;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: all 0.3s ease;
    }
    
    .nav-tabs.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
    
    .nav-tab {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    /* Main Nav */
    .main-nav .container {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    /* Section */
    .section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    /* Project */
    .project-h4 {
        font-size: 14px;
    }
    
    /* Course */
    .course-tabs {
        gap: 8px;
    }
    
    .course-tab {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .course-detail {
        padding: 16px;
    }
    
    .course-name {
        font-size: 20px;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .desc-item {
        padding: 12px;
    }
    
    .desc-item h4 {
        font-size: 14px;
    }
    
    .desc-item li {
        font-size: 13px;
    }
    
    /* Advantages */
    .advantages-grid {
        gap: 10px;
    }
    
    .advantage-card {
        flex: 0 0 100%;
        padding: 20px 16px;
    }
    
    .advantage-icon {
        font-size: 32px;
    }
    
    .advantage-card h3 {
        font-size: 16px;
    }
    
    /* Scenes */
    .scenes-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 12px;
    }
    
    .scene-card,
    .scene-card.large {
        grid-column: span 1;
        grid-row: span 1;
        padding: 20px;
        flex-direction: column;
        text-align: center;
        min-height: 120px;
    }
    
    .scene-card.large {
        padding-left: 20px;
    }
    
    .scene-icon {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .scene-card h3 {
        font-size: 14px;
    }
    
    .scene-card p {
        font-size: 12px;
    }
    
    /* Contact */
    .contact-info {
        padding: 20px;
    }
    
    .info-item {
        padding: 12px 0;
        gap: 12px;
    }
    
    .info-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .info-content h4 {
        font-size: 12px;
    }
    
    .info-content p {
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-links {
        font-size: 12px;
        gap: 6px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
    
    /* Float */
    .float-consult {
        bottom: 70px;
        right: 15px;
    }
    
    .float-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 18px;
        right: 15px;
        bottom: 15px;
    }
}

/* 小屏幕手机 (max-width: 480px) */
@media (max-width: 480px) {
    .header-banner .logo {
        max-width: 340px;
        margin-left: -8px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .course-name {
        font-size: 18px;
    }
    
    .advantage-card h3 {
        font-size: 15px;
    }
    
    .footer-links {
        gap: 4px;
    }
    
    .footer-links .divider {
        display: none;
    }
    
    .footer-links a {
        padding: 4px 8px;
    }
}

/* 横屏手机优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-tabs {
        padding: 10px 20px;
        gap: 8px;
    }
    
    .nav-tab {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* 高分辨率移动设备 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .header-banner .logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* 安全区域适配 (iOS) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .float-consult {
        bottom: calc(80px + env(safe-area-inset-bottom));
    }
    
    .back-to-top {
        bottom: calc(20px + env(safe-area-inset-bottom));
    }
    
    .footer {
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* 打印样式 */
@media print {
    .float-consult,
    .back-to-top,
    .mobile-menu-btn,
    .main-nav {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
}
