/*
 * 大同家道院 - H5页面样式
 * 作者: 陈来意
 * 版本: 1.0
 */

/* ===== 基础样式 ===== */
@font-face {
    font-family: 'FangZheng';
    src: url('../fonts/fangzheng.woff2') format('woff2');
    font-display: swap;
}

:root {
    /* 高端大气配色方案 - 2025版 */
    --primary-color: #8E2323;     /* 主色调：高贵深红色 */
    --primary-light: #B93B3B;     /* 浅红色 */
    --primary-dark: #6E1A1A;      /* 深红色 */
    --secondary-color: #F9F6F0;   /* 辅助色：淡米色 */
    --accent-color: #D4AF37;      /* 强调色：高贵金色 */
    --accent-light: #F1D875;      /* 浅金色 */
    --accent-dark: #AA8C2C;       /* 深金色 */
    --text-dark: #1A1A1A;         /* 深色文本 */
    --text-medium: #444444;       /* 中色文本 */
    --text-light: #666666;        /* 浅色文本 */
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #FAFAFA;           /* 最浅灰 */
    --gray-100: #F5F5F5;          /* 浅灰 */
    --gray-200: #EEEEEE;          /* 浅灰 */
    --gray-300: #E0E0E0;          /* 中浅灰 */
    --gray-400: #BDBDBD;          /* 中灰 */
    --gray-500: #9E9E9E;          /* 灰 */
    --gray-600: #757575;          /* 中深灰 */
    --gray-700: #616161;          /* 深灰 */
    --gray-800: #424242;          /* 更深灰 */
    --gray-900: #212121;          /* 最深灰 */
    --success: #4CAF50;           /* 成功色 */
    --warning: #FFC107;           /* 警告色 */
    --error: #F44336;             /* 错误色 */

    /* 字体变量 */
    --font-title: 'FangZheng', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-body: 'FangZheng', 'PingFang SC', 'Microsoft YaHei', sans-serif;

    /* 动画时间 */
    --transition-fast: 0.2s;
    --transition-medium: 0.3s;
    --transition-slow: 0.5s;
    --transition-extra-slow: 0.8s;

    /* 阴影 - 更加立体 */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.18);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-gold: 0 4px 12px rgba(212, 175, 55, 0.3);
    --shadow-red: 0 4px 12px rgba(142, 35, 35, 0.3);

    /* 边框 */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-circle: 50%;

    /* 布局 */
    --container-width: 1200px;
    --container-padding: 20px;
    --section-spacing: 100px;
    --element-spacing: 24px;

    /* 移动端底部导航 */
    --mobile-nav-height: 60px;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    --gradient-light: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: var(--font-body);
    color: var(--text-medium);
    background-color: var(--white);
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.3px;
}

body {
    overflow-y: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-medium);
}

a:hover {
    color: var(--primary-light);
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: 60px 0;
    padding-top: 100px; /* 增加顶部内边距，确保导航菜单定位到正确位置 */
    margin-top: -40px; /* 使用负margin抵消额外的padding-top，保持视觉效果不变 */
    position: relative;
    scroll-margin-top: 80px; /* 现代浏览器滚动定位偏移量 */
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-sm);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-medium);
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    color: var(--text-dark);
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
}

ul {
    list-style-type: none;
}

button, input, select, textarea {
    font-family: var(--font-body);
    outline: none;
    border: none;
}

/* ===== 加载动画 ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-medium), visibility var(--transition-medium);
}

body {
    overflow: hidden; /* 初始时防止滚动，加载完成后在JS中允许滚动 */
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-circle {
    stroke-dasharray: 283;
    stroke-dashoffset: 280;
    transform-origin: center;
    animation: loader-animation 2s ease-in-out infinite;
}

@keyframes loader-animation {
    0% {
        stroke-dashoffset: 280;
        transform: rotate(0deg);
    }
    50% {
        stroke-dashoffset: 75;
        transform: rotate(45deg);
    }
    100% {
        stroke-dashoffset: 280;
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 20px;
    font-size: 16px;
    color: var(--primary-color);
    letter-spacing: 2px;
}

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

/* ===== 页面部分 ===== */
section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
    padding-top: 80px; /* 添加顶部内边距，确保导航菜单定位到正确位置 */
    margin-top: -80px; /* 使用负margin抵消padding-top，保持视觉效果不变 */
    scroll-margin-top: 80px; /* 现代浏览器滚动定位偏移量 */
}

.content {
    position: relative;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ===== 标题样式 ===== */
.section-title-container {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    margin-bottom: 30px;
}

.section-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 3px;
}

.section-title-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), var(--accent-dark));
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.2);
}

/* ===== 首页样式 ===== */
#home {
    background-color: var(--secondary-color);
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    margin-top: 60px; /* 为固定导航栏留出空间 */
}

.bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/banner.svg') center/cover no-repeat;
    animation: scale-bg 30s infinite alternate ease-in-out;
    will-change: transform;
    filter: brightness(0.9) contrast(1.1);
}

@keyframes scale-bg {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.02);
    }
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(142, 35, 35, 0.85) 0%, rgba(33, 33, 33, 0.9) 100%);
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.home-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.logo-container {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.8s forwards 0.3s, logo-pulse 6s infinite alternate ease-in-out 1s;
}

@keyframes logo-pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

.logo {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.main-title {
    font-size: 52px;
    color: var(--white);
    margin-bottom: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.8s forwards 0.5s;
    position: relative;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 3px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, var(--white) 30%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 22px;
    color: var(--white);
    text-align: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.8s forwards 0.7s;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.home-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in-up 0.8s forwards 0.9s;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-medium);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary, linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(142, 35, 35, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(142, 35, 35, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

@keyframes fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    text-align: center;
    font-size: 14px;
    opacity: 0;
    animation: fade-in 1s forwards 1.2s, float 3s infinite 2s;
    cursor: pointer;
    z-index: 10;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes float {
    0% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
    100% {
        transform: translateX(-50%) translateY(0px);
    }
}

.scroll-hint span {
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 3px solid var(--white);
    border-bottom: 3px solid var(--white);
    transform: rotate(45deg);
    margin: 10px auto 0;
    transition: all var(--transition-fast);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: scroll-arrow 2s infinite;
}

@keyframes scroll-arrow {
    0% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0.4;
    }
    50% {
        transform: rotate(45deg) translate(10px, 10px);
        opacity: 1;
    }
    100% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0.4;
    }
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* ===== 关于我们样式 ===== */
#about {
    background-color: var(--gray-100);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(142, 35, 35, 0.05) 0%, rgba(142, 35, 35, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

#about::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.about-intro {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding: 0 20px;
}

.about-intro::before, .about-intro::after {
    content: '"';
    font-family: var(--font-title);
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
}

.about-intro::before {
    top: -20px;
    left: 0;
}

.about-intro::after {
    bottom: -40px;
    right: 0;
}

.about-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    width: 100%;
    max-width: 320px;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(142, 35, 35, 0.03) 0%, rgba(142, 35, 35, 0) 100%);
    z-index: -1;
}

.about-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--primary-color);
}

.about-icon {
    margin-bottom: 25px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
    font-size: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(142, 35, 35, 0.2);
}

.about-card:hover .about-icon {
    transform: rotateY(180deg);
}

.about-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.about-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.4s ease;
}

.about-card:hover h3::after {
    width: 50px;
}

.about-card p {
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    margin-top: 60px;
}

.feature {
    flex: 1 1 300px;
    padding: 20px;
    margin-bottom: 30px;
}

.feature-icon {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 600;
}

.feature p {
    color: var(--text-medium);
    font-size: 16px;
    line-height: 1.6;
}

/* ===== 专家团队样式 ===== */
#teachers {
    background-color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

#teachers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/patterns/pattern1.svg') repeat;
    opacity: 0.03;
    z-index: 0;
}

.team-container {
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.teacher-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.4s ease;
    margin-bottom: 30px;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.teacher-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.teacher-photo {
    position: relative;
    overflow: hidden;
}

.teacher-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(142, 35, 35, 0) 70%, rgba(142, 35, 35, 0.2) 100%);
    z-index: 1;
}

.teacher-photo img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    transition: all 0.8s ease;
    filter: brightness(0.95);
}

.teacher-card:hover .teacher-photo img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

.teacher-social {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 2;
}

.teacher-card:hover .teacher-social {
    opacity: 1;
    transform: translateY(0);
}

.teacher-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-circle);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: all 0.3s ease;
    font-size: 20px;
}

.teacher-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px) scale(1.2);
    color: var(--accent-color);
}

.teacher-info {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.teacher-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    border-radius: 3px;
}

.teacher-info h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.teacher-title {
    font-size: 17px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.teacher-desc {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.teacher-more {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--gray-100);
    color: var(--text-medium);
    border-radius: var(--border-radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    margin-top: auto;
    position: relative;
}

.teacher-more:hover {
    background-color: var(--primary-color);
    color: var(--white);
    letter-spacing: 0.5px;
}

/* ===== 课程体系样式 ===== */
#courses {
    background-color: var(--secondary-color);
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-medium);
    margin-bottom: 40px;
    font-weight: 400;
}

.section-subtitle span {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.section-subtitle span:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.course-slider {
    padding-bottom: 50px;
    margin-bottom: 40px;
}

.course-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    height: 100%;
    border: none;
    position: relative;
}

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

.course-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.course-card:hover::after {
    transform: scaleX(1);
}

.course-img {
    position: relative;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    transition: all var(--transition-fast);
}

.course-card:hover .course-img img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: all var(--transition-fast);
}

.course-card:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.overlay ul li {
    color: var(--white);
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.overlay ul li i {
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 12px;
}

.course-info {
    padding: 20px;
    text-align: center;
}

.course-info h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.course-info p {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 15px;
    line-height: 1.5;
}

.detail-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-fast);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.detail-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.detail-btn:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(196, 18, 48, 0.3);
}

.detail-btn:hover::before {
    opacity: 1;
}

.swiper-pagination {
    bottom: 0;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: var(--gray-400);
    opacity: 0.5;
    transition: all var(--transition-fast);
}

.swiper-pagination-bullet-active {
    width: 16px;
    border-radius: 4px;
    background-color: var(--primary-color);
    opacity: 1;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color);
    width: 36px;
    height: 36px;
    background-color: var(--white);
    border-radius: var(--border-radius-circle);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 统计数据样式 */
.stats-container {
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    transition: all var(--transition-fast);
    border: none;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.stat-item:hover::before {
    opacity: 1;
}

.stat-item .number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    display: inline-block;
}

.stat-item .label {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-medium);
    display: block;
    margin-top: 5px;
    letter-spacing: 0.5px;
}

/* ===== 用户权益样式 ===== */
#benefits {
    background-color: var(--white);
    padding: 80px 0;
}

.benefit-tabs {
    margin-top: 40px;
}

.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: var(--gray-100);
    color: var(--text-medium);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin: 0 10px;
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.tab-content {
    margin-top: 20px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.benefit-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 30px 25px;
    text-align: center;
    height: 100%;
    transition: all var(--transition-fast);
    border: none;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.benefit-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.benefit-card:hover::after {
    transform: scaleX(1);
}

.benefit-card.vip {
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(249,246,240,1) 100%);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(196, 18, 48, 0.1);
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 28px;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1;
}

.benefit-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius-circle);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: translateY(-5px);
    color: var(--white);
}

.benefit-card:hover .benefit-icon::before {
    opacity: 1;
}

.benefit-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.benefit-card p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
}

.course-card.flipped .course-front {
    transform: rotateY(180deg);
}

.course-card.flipped .course-back {
    transform: rotateY(0deg);
}

.course-icon {
    margin-bottom: 15px;
}

.course-front h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: center;
}

.course-front p {
    font-size: 14px;
    color: var(--accent-color);
}

.course-back h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--white);
}

.course-back ul {
    text-align: center;
}

.course-back li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
}

.course-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: var(--white);
    cursor: pointer;
}

/* ===== 报名样式 ===== */
#join {
    background-color: var(--gray-100);
    padding: 80px 0;
}

.signup-info {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.signup-info h3 {
    font-size: 22px;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 600;
}

.signup-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 1.6;
}

.icon-calendar:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D4B464' d='M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1'/%3E%3C/svg%3E") center/contain no-repeat;
    margin-right: 10px;
}

.icon-location:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23D4B464' d='M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z'/%3E%3C/svg%3E") center/contain no-repeat;
    margin-right: 10px;
}

.countdown {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: var(--border-radius-md);
    min-width: 60px;
}

.countdown-number {
    font-size: 24px;
    font-weight: 700;
    display: block;
    color: var(--white);
    margin-bottom: 5px;
}

.countdown-label {
    font-size: 12px;
    color: var(--white);
    text-transform: uppercase;
}

.signup-form {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    font-size: 15px;
    transition: all var(--transition-fast);
    background-color: var(--white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 18, 48, 0.1);
    outline: none;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-md);
    font-size: 15px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23616161' d='M7,10L12,15L17,10H7Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    transition: all var(--transition-fast);
    background-color: var(--white);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 18, 48, 0.1);
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-btn span {
    margin-right: 10px;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ===== 页脚样式 ===== */
.footer-section {
    background-color: var(--gray-800);
    color: var(--white);
    padding: 60px 0 0;
}

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

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--gray-400);
    font-size: 14px;
}

.footer-contact {
    margin-bottom: 30px;
}

.footer-contact h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 16px;
}

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

.footer-qrcode img {
    width: 120px;
    margin: 0 auto 15px;
    border-radius: var(--border-radius-md);
    padding: 5px;
    background-color: var(--white);
}

.footer-qrcode p {
    color: var(--gray-400);
    font-size: 14px;
}

.footer-copyright {
    background-color: var(--gray-900);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-copyright p {
    color: var(--gray-500);
    font-size: 14px;
    margin: 0;
}

/* ===== PC端导航栏样式 ===== */
.navbar {
    padding: 12px 0;
    transition: all var(--transition-medium);
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(230, 230, 230, 0.3);
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.nav-logo {
    height: 42px;
    margin-right: 12px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-brand:hover .nav-logo {
    transform: scale(1.05);
}

.navbar-nav {
    margin-left: auto;
}

.nav-link {
    color: var(--text-medium);
    font-weight: 500;
    padding: 8px 16px;
    margin: 0 6px;
    position: relative;
    transition: all var(--transition-fast);
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    transition: width var(--transition-medium);
    opacity: 0;
}

.nav-link:hover::after {
    width: 50%;
    opacity: 1;
}

.nav-link.active::after {
    width: 100%;
    opacity: 1;
}

.navbar-nav .nav-item:last-child .nav-link {
    background: var(--gradient-primary, linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%));
    color: white;
    border-radius: var(--border-radius-md);
    padding: 8px 18px;
    margin-left: 8px;
    box-shadow: 0 4px 12px rgba(142, 35, 35, 0.2);
}

.navbar-nav .nav-item:last-child .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(142, 35, 35, 0.3);
}

.navbar-nav .nav-item:last-child .nav-link::after {
    display: none;
}

/* 只在大屏幕上显示导航栏 */
@media (max-width: 767px) {
    .navbar {
        display: none;
    }
}

/* ===== 导航指示器 ===== */
.nav-indicators {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.15);
    margin: 8px 0;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: block;
    text-decoration: none;
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background-color: var(--primary-light);
}

/* ===== 成功提示 ===== */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
}

.success-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.success-content {
    background-color: var(--white);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    transform: scale(0.8);
    transition: transform var(--transition-fast);
}

.success-modal.show .success-content {
    transform: scale(1);
}

.success-icon {
    margin-bottom: 20px;
}

.success-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.success-content p {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 20px;
}

.close-modal {
    padding: 10px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.close-modal:hover {
    background-color: var(--accent-color);
}

/* ===== 返回顶部按钮 ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius-circle);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 99;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

/* ===== 移动端底部菜单 ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--mobile-nav-height);
    background-color: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-top: 1px solid rgba(142, 35, 35, 0.1);
    transition: transform 0.3s ease;
    animation: slide-up 0.5s ease-out;
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.mobile-nav-items {
    display: flex;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 10px;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--gray-600);
    font-size: 11px;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    padding: 6px 0;
    min-width: 60px;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.5px;
}

.mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    color: var(--gray-600);
    position: relative;
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item.active i {
    color: var(--primary-color);
    transform: translateY(-4px);
    text-shadow: 0 2px 8px rgba(142, 35, 35, 0.2);
}

.mobile-nav-item.active span {
    transform: translateY(-2px);
    font-weight: 700;
}

/* 活跃项底部指示器 */
.mobile-nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
    opacity: 0;
}

.mobile-nav-item.active::after {
    width: 35px;
    opacity: 1;
    box-shadow: 0 1px 3px rgba(142, 35, 35, 0.2);
}

/* 活跃项背景效果 */
.mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(142, 35, 35, 0.1) 0%, rgba(142, 35, 35, 0) 70%);
    border-radius: var(--border-radius-circle);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
    opacity: 0;
}

.mobile-nav-item.active::before {
    width: 45px;
    height: 45px;
    opacity: 1;
}

/* 点击反馈效果 */
.mobile-nav-item:active i,
.mobile-nav-item.active-touch i {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

/* 图标下方小点指示 */
.mobile-nav-item i::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 4px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s ease;
    opacity: 0;
}

.mobile-nav-item.active i::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* ===== 响应式样式 ===== */
@media (max-width: 767px) {
    body {
        padding-bottom: var(--mobile-nav-height); /* 为底部菜单留出空间 */
        font-size: 15px; /* 减小基础字体大小 */
    }
    
    section {
        scroll-margin-top: 120px; /* 移动端增加滚动偏移量，确保准确定位 */
        padding: 50px 0; /* 减小内边距使布局更紧凑 */
        min-height: 80vh; /* 减小最小高度使内容更紧凑 */
    }
    
    .container {
        padding: 0 12px; /* 减小容器内边距 */
    }
    
    .section-title {
        font-size: 26px; /* 减小标题字体大小 */
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 15px; /* 减小副标题字体大小 */
        margin-bottom: 25px;
        line-height: 1.5;
    }
    
    /* 移动端卡片样式优化 */
    .about-card, .teacher-card, .course-card, .benefit-card {
        margin-bottom: 15px;
        padding: 18px;
        border-radius: 12px;
    }
    
    /* 移动端字体大小优化 */
    p {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    /* 移动端按钮样式优化 */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* 移动端图标大小优化 */
    .about-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    /* 移动端标题优化 */
    .about-card h3, .teacher-card h3, .course-card h3, .benefit-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    /* 移动端间距优化 */
    .gap-30 {
        gap: 15px;
    }
    
    /* 移动端首页内容优化 */
    .main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    /* 移动端导航栏优化 */
    .navbar {
        padding: 8px 0;
    }
    
    .navbar-brand {
        font-size: 18px;
    }
    
    .nav-logo {
        height: 30px;
    }
    
    /* 移动端图片优化 */
    .teacher-photo img {
        height: auto;
        max-height: 300px;
    }
    
    /* 移动端表单元素优化 */
    input, select, textarea {
        padding: 10px;
        margin-bottom: 12px;
        font-size: 14px;
    }


    .mobile-nav {
        display: block;
    }

    .nav-indicators {
        display: none; /* 移动端隐藏侧边导航指示器 */
    }

    .navbar {
        display: none; /* 移动端隐藏顶部导航栏 */
    }

    #home {
        margin-top: 0; /* 移动端不需要为顶部导航栏留出空间 */
    }

    .back-to-top {
        bottom: calc(var(--mobile-nav-height) + 15px); /* 调整返回顶部按钮位置，避免被底部菜单遮挡 */
        right: 15px;
        width: 36px;
        height: 36px;
    }

    .footer-section {
        padding-bottom: calc(var(--mobile-nav-height) + 40px); /* 为底部菜单留出空间 */
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .section-title:after {
        width: 40px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .main-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    section {
        padding: 40px 0;
    }

    .home-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    /* 移动端卡片样式优化 */
    .about-card, .teacher-card, .course-card, .benefit-card {
        margin-bottom: 20px;
    }

    /* 移动端表单样式优化 */
    .form-group {
        margin-bottom: 15px;
    }

    .form-control, .form-select {
        padding: 10px 15px;
    }

    /* 移动端统计数据样式 */
    .stat-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    .stat-item .number {
        font-size: 32px;
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: 32px;
    }

    .main-title {
        font-size: 48px;
    }

    .subtitle {
        font-size: 24px;
    }

    .content {
        padding: 40px;
    }

    .about-card {
        max-width: 350px;
    }

    .teacher-slider {
        max-width: 400px;
        height: 500px;
    }

    .course-cards {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .course-card {
        margin: 15px;
    }

    .signup-info, .signup-form-container {
        max-width: 400px;
    }

    .contact-info {
        max-width: 400px;
    }
}

@media (min-width: 1024px) {
    .content {
        padding: 60px;
    }

    .about-card {
        max-width: 300px;
    }

    .course-card {
        max-width: 280px;
    }
}

/* 移动端导航触摸反馈效果 */
.mobile-nav-item:active,
.mobile-nav-item.active-touch {
    transform: scale(0.95);
    opacity: 0.9;
}

.mobile-nav-item:active::before,
.mobile-nav-item.active-touch::before {
    width: 40px;
    height: 40px;
    opacity: 0.8;
    background-color: rgba(142, 35, 35, 0.2);
}

/* 确保移动导航在移动设备上正确显示 */
@media (max-width: 767px) {
    .mobile-nav-item {
        cursor: pointer;
        min-width: 60px;
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-nav-item span {
        font-size: 11px;
        margin-top: 2px;
    }
    
    .mobile-nav-item i {
        font-size: 20px;
    }
}
