/* ============================================
   新华官网前台样式表 - style.css
   功能：定义前台展示页面的所有视觉样式
   包含：导航、Banner、页面区块、组件、动画、响应式
   ============================================ */

/* ============================================
   一、基础重置与通用样式 (Base Reset & Global)
   功能：清除浏览器默认样式，设置全局字体与基础表现
   ============================================ */

/* 全局盒模型重置：统一使用 border-box，清除默认边距 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: calc(14px + 0.3vw);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

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

a, button {
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

button {
    border: none;
    outline: none;
    font-family: inherit;
}

input, textarea, select {
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    outline: none;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ============================================
   二、系统区分样式 (OS Specific)
   功能：针对Windows/Mac/iOS/Android系统的专属优化
   ============================================ */

/* Windows系统：Edge/Chrome/360/QQ浏览器 */
body.Windows ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

body.Windows ::-webkit-scrollbar-track {
    background: #f0f0f0;
}

body.Windows ::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

body.Windows .btn-primary {
    border-radius: 4px;
}

body.Windows .card {
    border-radius: 4px;
}

/* Mac系统：Safari/Chrome */
body.Mac ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

body.Mac ::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

body.Mac .btn-primary {
    border-radius: 8px;
}

body.Mac .card {
    border-radius: 12px;
}

/* iOS系统：iPhone/iPad Safari */
body.iOS {
    -webkit-overflow-scrolling: touch;
}

body.iOS .btn-primary {
    border-radius: 12px;
    min-height: 44px;
    line-height: 1.5;
}

body.iOS .card {
    border-radius: 16px;
}

body.iOS input,
body.iOS select,
body.iOS textarea {
    min-height: 44px;
}

body.iOS .banner {
    -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(black), to(transparent));
}

/* Android系统：原生浏览器/微信/QQ/内置浏览器 */
body.Android .btn-primary {
    border-radius: 8px;
    min-height: 44px;
    padding: 12px 16px;
}

body.Android .card {
    border-radius: 8px;
}

body.Android input,
body.Android select,
body.Android textarea {
    border-radius: 4px;
    min-height: 44px;
}

/* ============================================
   二、顶部导航栏 (Navbar)
   对应元素：<nav> 及内部 .nav-container、.nav-links
   功能：固定在顶部的响应式导航菜单
   ============================================ */

/* 导航栏主容器：固定定位、毛玻璃背景、阴影过渡 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 25px rgba(0,0,0,0.12);
}

/* 导航栏内部容器：限制最大宽度并居中 */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
}

/* Logo区域：图片与文字横向排列 */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 导航栏Logo图片：自适应导航栏高度，保持原始比例 */
#nav-logo {
    height: auto;
    max-height: 65px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
}

/* 导航栏Logo文字：蓝紫渐变效果 */
#nav-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 汉堡菜单按钮：移动端专用 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 100;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

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

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

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

/* 导航链接列表：横向弹性布局 */
.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links li {
    padding: 8px 0;
}

/* 导航链接项：圆角、悬停过渡效果 */
.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

/* 导航链接悬停状态：淡蓝背景 */
.nav-links a:hover {
    background: rgba(26, 115, 232, 0.1);
    color: #1a73e8;
}

/* 导航链接激活状态：渐变背景白字 */
.nav-links a.active {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
}

/* ============================================
   三、首页全屏Banner区 (Hero Banner)
   对应元素：.banner、.banner-content、.banner-buttons
   功能：首页首屏大图展示，含标题、描述与CTA按钮
   ============================================ */

/* Banner主容器：全屏高度，背景图叠加渐变遮罩 */
.banner {
    height: 100vh;
    min-height: 650px;
    width: 100%;
    background: url('../images/banner.jpg') center center / cover no-repeat;
    background-color: #1a73e8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

/* Banner渐变遮罩层：极淡黑色遮罩，保证文字可读性同时保留图片原色 */
.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
}

/* Banner内容容器：相对定位提升层级 */
.banner-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

/* Banner顶部标签：毛玻璃胶囊样式 */
.banner-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Banner主标题：响应式字体 + 上浮入场动画 */
.banner h1 {
    font-size: clamp(2.8rem, 5vw + 1rem, 5rem);
    margin-bottom: 25px;
    animation: fadeInUp 1s ease;
    text-shadow: 0 4px 30px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* Banner描述文字：响应式字体 + 延迟入场动画 */
.banner p {
    font-size: clamp(1.1rem, 2vw + 0.5rem, 1.4rem);
    margin-bottom: 55px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    line-height: 1.8;
}

/* Banner按钮组：横向排列，带延迟入场动画 */
.banner-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

/* Banner底部波浪SVG装饰：用于过渡到下一区块 */
.banner-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23f8f9fc' fill-opacity='1' d='M0,64L48,69.3C96,75,192,85,288,80C384,75,480,53,576,48C672,43,768,53,864,64C960,75,1056,85,1152,80C1248,75,1344,53,1392,42.7L1440,32L1440,120L1392,120C1344,120,1248,120,1152,120C1056,120,960,120,864,120C768,120,672,120,576,120C480,120,384,120,288,120C192,120,96,120,48,120L0,120Z'%3E%3C/path%3E%3C/svg%3E") center bottom / cover no-repeat;
    z-index: 2;
}

/* ============================================
   四、按钮组件 (Buttons)
   包含：.btn-primary（实心白底）、.btn-secondary（描边透明）
   功能：首页Banner与全站通用CTA按钮
   ============================================ */

/* 主按钮（白底蓝字）：用于主要行动号召 */
.btn-primary {
    padding: 16px 45px;
    font-size: 1.1rem;
    background: #fff;
    color: #1a73e8;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.btn-secondary {
    padding: 16px 45px;
    font-size: 1.1rem;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

/* 次按钮（透明描边白字）：用于辅助操作 */
.btn-secondary:hover {
    background: #fff;
    color: #1a73e8;
    transform: translateY(-3px);
    border-color: #fff;
}

/* ============================================
   五、动画关键帧 (Keyframes)
   fadeInUp：元素从下方30px淡入上浮
   用于：Banner标题、描述、按钮的入场动画
   ============================================ */

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

/* ============================================
   六、通用页面区块 (Sections)
   对应元素：.section、.section-header、.section-desc
   功能：各内容板块的统一布局与标题样式
   ============================================ */

/* 页面区块主容器：限制最大宽度，上下内边距100px */
.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 区块头部：标题与副标题居中 */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

/* 区块英文小标题：蓝色大写字母，字间距加宽 */
.section-subtitle {
    color: #1a73e8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* 区块中文大标题：居中显示，底部带渐变装饰线 */
.section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1a237e;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

/* 标题下方渐变装饰线 */
.section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    border-radius: 2px;
}

/* 区块描述文字：限制最大宽度并居中 */
.section-desc {
    color: #666;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 25px auto 0;
    line-height: 1.8;
}

/* 区块底部：常用于放置"查看更多"按钮 */
.section-footer {
    text-align: center;
    margin-top: 45px;
}

/* 描边按钮（蓝边白底）：用于区块底部的次级操作 */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    border: 2px solid #1a73e8;
    border-radius: 50px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    background: #fff;
}

/* 描边按钮悬停：变为渐变填充白字 */
.btn-outline:hover {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

/* ============================================
   七、特色功能卡片 (Feature Cards)
   对应元素：.features、.feature-card、.feature-icon-wrap
   功能：首页"办学特色"等区块的网格卡片展示
   ============================================ */

/* 功能卡片网格：自适应列数，最小260px */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* 功能卡片：白色背景、圆角阴影、悬停上浮 */
.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 16px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

/* 卡片悬停：上移并加深阴影 */
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* 功能图标容器：浅蓝渐变背景，悬停变深蓝 */
.feature-icon-wrap {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: #1a73e8;
    margin-bottom: 25px;
    transition: all 0.3s;
}

/* 图标悬停：放大并反色（白字蓝底） */
.feature-card:hover .feature-icon-wrap {
    transform: scale(1.1);
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
}

/* 卡片标题 */
.feature-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2d3436;
}

/* 卡片描述文字 */
.feature-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 卡片装饰圆：右上角半透明大圆，悬停放大 */
.feature-decoration {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.08) 0%, rgba(13, 71, 161, 0.08) 100%);
    border-radius: 50%;
    transition: all 0.4s;
}

.feature-card:hover .feature-decoration {
    transform: scale(1.5);
}

/* ============================================
   八、数据统计区 (Stats Section)
   对应元素：.stats-section、.stats-grid、.stat-item
   功能：展示学校核心数据（如师资、学员数等）
   ============================================ */

/* 数据区块：相对定位用于背景层叠 */
.stats-section {
    position: relative;
    padding: 80px 20px;
    overflow: hidden;
}

/* 数据区渐变背景层 */
.stats-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
}

/* 数据区网格纹理叠加：白色十字形SVG图案 */
.stats-bg::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='%23ffffff' fill-opacity='0.05'%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");
}

/* 数据内容容器：限制宽度并居中 */
.stats-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

/* 数据项网格：自适应列数，最小200px */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

/* 单项数据卡片：毛玻璃效果，悬停加深 */
.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.4s;
    color: #fff;
}

.stat-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

/* 数据图标 */
.stat-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* 数据数字：大号白字渐变 */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 数据标签 */
.stat-label {
    font-size: 1rem;
    opacity: 0.85;
}

/* ============================================
   九、教师预览卡片 (Teacher Cards)
   改造后：每个老师独占一行，横向左头像+中姓名+右简介
   ============================================ */

/* 教师卡片网格：改为纵向一列，每个卡片占满整行 */
.teachers-preview-grid {
    display: grid;
    grid-template-columns: 1fr; /* 单列，一行一个老师 */
    gap: 30px;
}

/* 教师卡片：白色背景，顶部带渐变装饰线，左中右三列横向铺满 */
.teacher-card {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.4s;
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    width: 100%;
}

/* 卡片顶部渐变装饰线 */
.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    border-radius: 16px 16px 0 0;
}

.teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* 教师左侧：头像区域，固定宽度，取消渐变灰色背景 */
.teacher-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    min-width: 160px;
    background: #ffffff;
    border-right: 1px solid #f0f0f0;
}

/* 教师头像：竖向长方形，确保头部完整露出 */
.teacher-avatar {
    width: 120px;
    height: 150px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: #fff;
    border: 4px solid #f5f5f5;
    transition: all 0.3s;
    overflow: hidden;
    flex-shrink: 0;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.teacher-card:hover .teacher-avatar {
    border-color: #1a73e8;
    transform: scale(1.05);
}

/* 教师中间区域：姓名+学科，固定宽度居中，取消渐变灰色背景 */
.teacher-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 20px;
    min-width: 160px;
    background: #ffffff;
    border-right: 1px solid #f0f0f0;
}

.teacher-center h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    color: #1e293b;
}

/* 教师科目：黑色字体，标签与值分别控制字重 */
.teacher-subject {
    color: #000;
    font-size: 0.95rem;
    text-align: center;
}

/* 科目标签"所教学科："：普通字重，不加粗 */
.teacher-subject .subject-label {
    font-weight: 400;
    color: #000;
}

/* 科目内容值：加粗显示 */
.teacher-subject .subject-value {
    font-weight: 600;
    color: #000;
}

/* 教师右侧简介区：弹性占满剩余全部宽度 */
.teacher-right {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.teacher-right p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   十、画廊预览网格 (Gallery Preview)
   对应元素：.gallery-preview-grid、.gallery-item
   功能：校园风采等页面的图片网格展示
   ============================================ */

/* 画廊网格：自适应列数，最小250px */
.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
}

/* 画廊单项：固定4:3比例，圆角阴影 */
.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s;
    position: relative;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* 画廊悬停：轻微上移放大 */
.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* 画廊图片：填充容器，悬停放大 */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* 画廊遮罩层：底部渐变黑色，悬停显示标题 */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 15px;
    color: #fff;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ============================================
   十一、在线报名区块 (Signup Section)
   对应元素：.signup-section、.signup-form、.form-group
   功能：首页左侧介绍 + 右侧报名表单的双栏布局
   ============================================ */

/* 报名表单区块：白色背景 */
.signup-section {
    padding: 100px 20px;
    background: #fff;
}

/* 报名区内层：双栏网格布局 */
.signup-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* 左侧介绍区 */
.signup-left {
    padding-right: 20px;
}

.signup-left h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 20px;
}

.signup-left p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 35px;
}

/* 报名优势列表：2列网格 */
.signup-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 单个优势项：图标+文字横向排列 */
.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 0.95rem;
}

.benefit-item i {
    color: #1a73e8;
    font-size: 1.1rem;
}

/* 右侧表单区 */
.signup-right {
    padding-left: 20px;
}

/* 报名表单卡片：浅灰背景、圆角边框 */
.signup-form {
    background: #fafbfc;
    padding: 50px;
    border-radius: 20px;
    border: 1px solid #e8eef3;
}

/* 双列表单行：用于姓名/电话等并排字段 */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* 表单组（前台）：控制标签与输入框间距 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
}

/* 必填标记：红色星号 */
.form-group .required {
    color: #e74c3c;
    margin-left: 4px;
}

/* 前台表单输入框：统一样式与聚焦发光效果 */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e0e4e8;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-group textarea {
    resize: vertical; /* 仅允许纵向拉伸 */
    min-height: 100px;
}

/* 前台提交按钮：渐变背景、全宽、阴影 */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26, 115, 232, 0.5);
}

/* 提交按钮禁用状态：降低透明度 */
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   十二、图片模态框 (Image Modal)
   对应元素：.modal、.modal-close
   功能：点击画廊图片后全屏查看大图
   ============================================ */

/* 模态框遮罩层：高透明度黑背景，默认隐藏 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

/* 模态框激活状态：由JS切换显示 */
.modal.active {
    display: flex;
}

/* 模态框内大图：限制最大尺寸 */
.modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* 模态框关闭按钮：右上角，悬停旋转90度 */
.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.modal-close:hover {
    transform: rotate(90deg);
}

/* ============================================
   十三、内页Banner (Page Banner)
   对应元素：.page-banner、.breadcrumb
   功能：非首页的顶部横幅与面包屑导航
   ============================================ */

/* 内页Banner：高度400px，比首页Banner小
   背景图由JS动态读取 school_info.banner_bgs 设置，未设置时使用默认图 images/banner.jpg
   各页面通过 data-page 属性（about/teachers/gallery/history/signup）区分不同背景
*/
.page-banner {
    height: 400px;
    width: 100%;
    background: center center / cover no-repeat;
    background-color: #1a73e8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

/* 内页Banner渐变遮罩层：极淡黑色遮罩，保证文字可读性同时保留图片原色 */
.page-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
}

/* 提升Banner子元素层级，使其位于遮罩之上 */
.page-banner > * {
    position: relative;
    z-index: 2;
}

/* 内页标题：响应式字体 */
.page-banner h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3.2rem);
    margin-bottom: 15px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
    font-weight: 700;
}

/* 内页副标题 */
.page-banner p {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.2rem);
    opacity: 0.95;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* 面包屑导航：首页 > 当前页 */
.breadcrumb {
    margin-top: 20px;
}

.breadcrumb a, .breadcrumb span {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb .sep {
    margin: 0 10px;
}

/* ============================================
   十四、时间轴组件 (Timeline)
   对应元素：.timeline、.timeline-item、.timeline-dot
   功能：学校历史或发展历程的纵向时间线展示
   ============================================ */

/* 时间轴容器：限制宽度并居中 */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* 时间轴中线：垂直渐变线，居中定位 */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #1a73e8 0%, #0d47a1 100%);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* 时间轴单项：相对定位用于圆点居中 */
.timeline-item {
    position: relative;
    padding: 40px 0;
}

/* 奇数项内容靠左 */
.timeline-item:nth-child(odd) .timeline-content {
    margin-right: calc(50% + 40px);
    text-align: right;
}

/* 偶数项内容靠右 */
.timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 40px);
}

/* 时间轴圆点：白色圆形蓝边框，位于中线 */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    border: 4px solid #1a73e8;
    box-shadow: 0 0 15px rgba(26, 115, 232, 0.4);
    z-index: 10;
    transition: all 0.3s;
}

/* 圆点悬停：放大并反色 */
.timeline-item:hover .timeline-dot {
    transform: translate(-50%, -50%) scale(1.3);
    background: #1a73e8;
}

/* 时间轴内容卡片：白色背景圆角 */
.timeline-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.4s;
}

.timeline-item:hover .timeline-content {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* 时间轴年份：大号蓝紫渐变字 */
.timeline-year {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

/* 时间轴事件标题 */
.timeline-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2d3436;
}

/* 时间轴事件描述 */
.timeline-content p {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ============================================
   十五、联系信息卡片 (Contact Info)
   对应元素：.contact-info、.contact-item
   功能：联系我们页面的多种联系方式展示
   ============================================ */

/* 联系信息网格：自适应列数 */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* 单个联系卡片：白色背景，悬停上浮 */
.contact-item {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.4s;
}

.contact-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* 联系图标：蓝紫渐变 */
.contact-item i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

/* 联系方式标题 */
.contact-item h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3436;
}

/* 联系方式详情 */
.contact-item p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   十六、关于我们区块 (About Section)
   对应元素：.about-section
   功能：学校简介页面的分段内容展示
   ============================================ */

/* 关于内容卡片：白色背景，左侧装饰线标题 */
.about-section {
    background: #fff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

/* 关于区块标题：左侧带渐变竖线装饰 */
.about-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2d3436;
    position: relative;
    padding-left: 20px;
    font-weight: 600;
}

/* 标题左侧渐变竖线 */
.about-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 25px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    border-radius: 2px;
}

/* 关于区块正文：宽松行高 */
.about-section p {
    color: #666;
    line-height: 2;
    margin-bottom: 12px;
    font-size: 1rem;
}

/* ============================================
   十七、Toast 提示消息 (Toast Notifications)
   对应元素：.toast、.toast.success、.toast.error
   功能：操作反馈的右上角浮动提示（前台版）
   ============================================ */

/* Toast容器：固定在导航栏下方，滑入动画 */
.toast {
    position: fixed;
    top: 90px;
    right: 20px;
    padding: 18px 28px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    z-index: 3000;
    animation: slideIn 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
    font-size: 0.95rem;
}

/* 成功状态：绿青渐变 */
.toast.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* 错误状态：红橙渐变 */
.toast.error {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
}

/* Toast滑入动画：从右侧100%滑入 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   十八、页脚 (Footer)
   对应元素：<footer>、.footer-content、.footer-brand、.footer-about、.footer-enroll、.footer-contact
   功能：全站底部信息、导航链接与版权
   说明：四个区域各有独立CSS类，便于分别定制样式
        .footer-brand    - 品牌信息区域（Logo + 简介）
        .footer-about    - 关于我们链接区域
        .footer-enroll   - 招生信息链接区域
        .footer-contact  - 联系方式区域
   ============================================ */

/* 页脚主容器：深色背景 */
footer {
    background: #1e272e;
    color: #fff;
    margin-top: 60px;
}

/* 页脚上部：内边距 */
.footer-top {
    padding: 70px 20px 40px;
}

/* 页脚内容网格：自适应列数 */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

/* 通用页脚列样式（兼容旧代码） */
.footer-col {
    padding: 0 15px;
}

/* ============================================
   18.1 品牌信息区 (.footer-brand)
   功能：展示学校Logo名称和简短介绍
   ============================================ */
.footer-brand {
    padding: 0 15px;
}

/* 页脚Logo：浅蓝渐变，品牌名称 */
.footer-brand .footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #42a5f5 0%, #90caf9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

/* 品牌简介文字：半透明白色 */
.footer-brand .footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ============================================
   18.2 关于我们区 (.footer-about)
   功能：关于我们分类下的导航链接列表
   UI优化：标题带下划线装饰，链接带左侧竖线高亮效果
   ============================================ */
.footer-about {
    padding: 0 15px;
}

/* 分类标题：白色加粗，底部带蓝色装饰线 */
.footer-about h4 {
    margin-bottom: 22px;
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    position: relative;
    padding-bottom: 10px;
}

/* 标题底部装饰线：左侧蓝色短线条 */
.footer-about h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, #42a5f5, #1a73e8);
    border-radius: 2px;
}

/* 链接列表容器 */
.footer-about ul {
    list-style: none;
}

/* 列表项：每行间距 */
.footer-about ul li {
    margin-bottom: 12px;
}

/* 链接样式：半透明白色，带左侧竖线装饰 */
.footer-about ul li a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    /*padding-left: 12px;*/
    position: relative;
    line-height: 1.5;
}

/* 链接左侧装饰线：默认透明，悬停时显示蓝色 */
.footer-about ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #42a5f5;
    border-radius: 2px;
    transition: height 0.3s ease;
}

/* 链接悬停：变亮 + 左移 + 左侧竖线展开 */
.footer-about ul li a:hover {
    color: #42a5f5;
    padding-left: 16px;
}

.footer-about ul li a:hover::before {
    height: 14px;
}

/* ============================================
   18.3 招生信息区 (.footer-enroll)
   功能：招生信息分类下的导航链接列表
   UI优化：标题带下划线装饰，链接带箭头图标，更有引导性
   ============================================ */
.footer-enroll {
    padding: 0 15px;
}
.footer-enroll .u1 {
    padding-left: 30px;
}
.footer-enroll .u2 li {
    left: 0px;
}

/* 分类标题：白色加粗，底部带蓝色装饰线 */
.footer-enroll h4 {
    margin-left: 30px;
    margin-bottom: 22px;
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    position: relative;
    padding-bottom: 10px;
}

/* 标题底部装饰线：左侧蓝色短线条 */
.footer-enroll h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, #42a5f5, #1a73e8);
    border-radius: 2px;
}

/* 链接列表容器 */
.footer-enroll ul {
    list-style: none;
}

/* 列表项：每行间距 */
.footer-enroll ul li {
    margin-bottom: 12px;
}

/* 链接样式：半透明白色，带右侧箭头图标 */
.footer-enroll ul li a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1.5;
    position: relative;
}

/* 链接右侧箭头图标：使用Font Awesome图标代替 */
.footer-enroll ul li a::after {
    content: '→';
    margin-left: 8px;
    font-size: 0.85rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.3s ease;
    color: #42a5f5;
}

/* 链接悬停：变亮 + 箭头滑入 */
.footer-enroll ul li a:hover {
    color: #42a5f5;
    padding-right: 6px;
}

.footer-enroll ul li a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   18.4 联系方式区 (.footer-contact)
   功能：展示学校联系信息（地址、电话、邮箱）
   ============================================ */
.footer-contact {
    padding: 0 15px;
}

/* 分类标题：白色加粗，底部带蓝色装饰线 */
.footer-contact h4 {
    margin-bottom: 22px;
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    position: relative;
    padding-bottom: 10px;
}

/* 标题底部装饰线：左侧蓝色短线条 */
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, #42a5f5, #1a73e8);
    border-radius: 2px;
}

/* 联系信息列表容器 */
.footer-contact ul {
    list-style: none;
}

/* 列表项：每行间距 */
.footer-contact ul li {
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 联系信息图标：蓝色 */
.footer-contact ul li i {
    color: #42a5f5;
    flex-shrink: 0;
    margin-top: 3px;
}

/* 兼容旧的 footer-col 样式（保留以支持过渡） */
.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #42a5f5;
}

.footer-col ul li i {
    margin-right: 10px;
    color: #42a5f5;
}

/* 页脚底部版权栏：顶部细线分隔 */
.footer-bottom {
    text-align: center;
    padding: 25px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* ============================================
   十九、响应式适配 (Responsive)
   功能：针对不同屏幕尺寸调整布局、字体与间距
   断点：1024px（平板）、768px（手机）、480px（小屏）
          1920px（大屏显示器）、500px高度（横屏）
   ============================================ */

/* 平板端适配（最大宽度1024px） */
@media (max-width: 1024px) {
    .section {
        padding: 80px 20px;
    }
    
    .section h2 {
        font-size: 2.2rem;
    }
    
    .signup-inner {
        gap: 40px;
    }
    
    .signup-form {
        padding: 40px 30px;
    }
}

/* 手机端适配（最大宽度768px） */
@media (max-width: 768px) {
    /* Banner标题与描述缩小，按钮纵向排列 */
    .banner {
        min-height: 550px;
    }
    
    .banner-content {
        padding: 0 20px;
    }
    
    .banner-tag {
        font-size: 0.85rem;
        padding: 8px 16px;
        margin-bottom: 15px;
    }
    
    .banner h1 {
        font-size: clamp(2rem, 6.5vw, 2.8rem);
        letter-spacing: 1px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .banner p {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
        margin-bottom: 30px;
        line-height: 1.6;
    }
    
    .banner-buttons {
        flex-direction: column;
        gap: 15px;
        width: 90%;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 16px 30px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
        justify-content: center;
        min-height: 50px;
        box-sizing: border-box;
        outline: none;
        border: none !important;
        background: #fff !important;
        color: #1a73e8 !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
    
    .btn-secondary {
        background: transparent !important;
        color: #fff !important;
        border: 2px solid rgba(255,255,255,0.9) !important;
        box-shadow: none;
    }
    
    .nav-container {
        flex-direction: row;
        height: auto;
        padding: 10px 15px;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .logo-wrap {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    
    .logo-wrap img {
        max-width: 100%;
        max-height: 100%;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 10px 15px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        display: none;
        z-index: 99;
        border-radius: 0 0 12px 12px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        font-size: 0.95rem;
        padding: 12px 15px;
        border-radius: 8px;
        display: block;
        color: #333;
    }
    
    .section {
        padding: 60px 15px;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-item {
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .teachers-preview-grid,
    .gallery-preview-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .teacher-card {
        flex-direction: column;
    }
    
    .teacher-left {
        min-width: auto;
        padding: 25px 20px 15px;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .teacher-right {
        padding: 20px 25px 25px;
    }
    
    .teacher-avatar {
        width: 100px;
        height: 100px;
        border-radius: 10px;
        font-size: 2rem;
    }
    
    .signup-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .signup-left,
    .signup-right {
        padding: 0;
    }
    
    .signup-left h2 {
        font-size: 1.8rem;
    }
    
    .signup-benefits {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .signup-form {
        padding: 35px 25px;
    }
    
    .page-banner {
        height: 300px;
    }
    
    .page-banner h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        text-align: left;
    }
    
    .timeline-dot {
        left: 20px;
        width: 20px;
        height: 20px;
    }
    
    .about-section {
        padding: 30px 20px;
    }
    
    .about-section h3 {
        font-size: 1.3rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-item {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-col {
        padding: 0;
    }
    
    /* 品牌区和联系方式：手机端占满整行居中 */
    .footer-brand,
    .footer-contact {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    /* 品牌区：Logo居中对齐 */
    .footer-brand .footer-logo {
        text-align: center;
    }
    
    /* 招生信息和关于我们：手机端左对齐 */
    .footer-enroll,
    .footer-about {
        text-align: left;
    }
    
    /* 联系方式标题居中 */
    .footer-contact h4 {
        text-align: center;
    }
    
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* 联系方式列表项：居中排列 */
    .footer-contact ul li {
        justify-content: center;
        text-align: center;
    }
    
    .modal-close {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }
    
    .btn-outline {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
}

/* 小屏手机适配（最大宽度480px） */
@media (max-width: 480px) {
    .banner {
        min-height: 500px;
    }
    
    .banner-content {
        padding: 0 15px;
    }
    
    .banner h1 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
        margin-bottom: 12px;
    }
    
    .banner p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .banner-buttons {
        width: 100%;
        gap: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 15px 25px;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .nav-links a {
        font-size: 0.78rem;
        padding: 6px 8px;
    }
    
    .logo-wrap {
        width: 70px;
        height: 70px;
    }
    
    .section {
        padding: 50px 12px;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-item {
        padding: 20px 12px;
    }
    
    .teacher-card {
        flex-direction: column;
    }
    
    .teacher-left {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 20px;
        min-width: auto;
    }
    
    .teacher-center {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 15px 20px;
        min-width: auto;
    }
    
    .teacher-center h3 {
        font-size: 1.1rem;
    }
    
    .teacher-center .teacher-subject {
        font-size: 0.85rem;
    }
    
    .teacher-right {
        padding: 20px;
    }
    
    .teacher-right p {
        font-size: 0.9rem;
    }
    
    .teacher-avatar {
        width: 90px;
        height: 115px;
        border-radius: 8px;
    }
    
    .signup-form {
        padding: 25px 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
    
    .page-banner {
        height: 250px;
    }
    
    .page-banner h1 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .footer-col {
        text-align: left;
    }
    
    /* 品牌区和联系方式：小屏手机端占满整行居中 */
    .footer-brand,
    .footer-contact {
        grid-column: 1 / -1;
        text-align: center;
    }
    
    /* 品牌区：Logo居中对齐 */
    .footer-brand .footer-logo {
        text-align: center;
    }
    
    /* 招生信息和关于我们：小屏手机端左对齐 */
    .footer-enroll,
    .footer-about {
        text-align: left;
    }
    
    /* 联系方式标题居中 */
    .footer-contact h4 {
        text-align: center;
    }
    
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* 联系方式列表项：居中排列 */
    .footer-contact ul li {
        justify-content: center;
        text-align: center;
    }
}

/* 大屏显示器适配（最小宽度1920px）：加宽容器与标题 */
@media (min-width: 1920px) {
    html {
        font-size: calc(16px + 0.3vw);
    }
    
    .section {
        max-width: 1400px;
    }
    
    .banner h1 {
        font-size: 5.5rem;
    }
    
    .nav-container {
        max-width: 1400px;
    }
}

/* 超大屏显示器适配（最小宽度2560px） */
@media (min-width: 2560px) {
    html {
        font-size: calc(18px + 0.3vw);
    }
    
    .section {
        max-width: 1600px;
    }
    
    .banner h1 {
        font-size: 6.5rem;
    }
    
    .nav-container {
        max-width: 1600px;
    }
}

/* 横屏且高度较小设备：Banner高度自适应 */
@media (max-height: 500px) and (orientation: landscape) {
    .banner {
        height: auto;
        min-height: 100vh;
        padding: 80px 20px;
    }
    
    .banner-content {
        padding: 20px 0;
    }
    
    .banner h1 {
        font-size: clamp(1.5rem, 15vw, 3rem);
    }
    
    .banner p {
        font-size: clamp(0.8rem, 3vw, 1.2rem);
    }
}

/* ============================================
   响应式字体大小优化
   使用clamp()实现流畅的字体大小过渡
   ============================================ */

/* 移动端字体优化 */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
    
    .container {
        width: min(1200px, 94%);
        margin: 0 auto;
        padding: 1rem 0.8rem;
    }
}

/* 平板横屏 */
@media (min-width: 768px) and (max-width: 1024px) {
    html {
        font-size: 16px;
    }
    
    .container {
        width: min(1200px, 94%);
        margin: 0 auto;
        padding: 1.5rem 1rem;
    }
}

/* PC Windows/Mac 电脑端 */
@media (min-width: 1025px) {
    html {
        font-size: 17px;
    }
    
    .container {
        width: min(1200px, 94%);
        margin: 0 auto;
        padding: 2rem 1rem;
    }
}

/* ============================================
   二十、iOS特殊处理 (iOS Fixes)
   功能：修复iOS Safari中的背景固定问题
   ============================================ */

/* iOS设备：Banner背景附件改为scroll，防止fixed背景异常 */
@supports (-webkit-touch-callout: none) {
    .banner,
    .page-banner {
        background-attachment: scroll;
    }
}