/* ==========================================================================
   永兴学校官网 - 主样式表
   配色：LOGO 深蓝 #0d2b5e + LOGO 红 #c8102e + 金色点缀 #b8962e
   ========================================================================== */

:root {
    --primary: #0d2b5e;
    --primary-light: #1a3d75;
    --primary-dark: #08214a;
    --accent: #c8102e;
    --accent-dark: #a30d24;
    --gold: #b8962e;
    --gold-light: #d4b85a;
    --text: #2c3e50;
    --text-light: #6c7a89;
    --bg-light: #f7f8fa;
    --bg-white: #ffffff;
    --border: #e5e8ed;
    --shadow-sm: 0 2px 8px rgba(13,43,94,0.06);
    --shadow-md: 0 4px 16px rgba(13,43,94,0.1);
    --shadow-lg: 0 10px 30px rgba(13,43,94,0.15);
    --radius: 4px;
    --radius-lg: 8px;
    --container: 1280px;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg-white);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; outline: none; }

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

/* ==========================================================================
   顶部信息栏
   ========================================================================== */
.topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 8px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-left { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-left span i { color: var(--gold-light); margin-right: 5px; }
.topbar-right a { margin-left: 15px; transition: color var(--transition); }
.topbar-right a:hover { color: var(--gold-light); }

/* ==========================================================================
   顶部导航
   ========================================================================== */
.site-header {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand img { height: 60px; width: auto; }

.brand-text { line-height: 1.2; }
.brand-text .name { font-size: 22px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.brand-text .since { font-size: 12px; color: var(--gold); letter-spacing: 3px; margin-top: 4px; font-weight: 600; }
.brand-text .school-feature { font-size: 12px; color: var(--primary); letter-spacing: 2px; margin-top: 3px; font-weight: 600; }

.main-nav { display: flex; gap: 5px; align-items: center; }

.main-nav > li > a {
    display: block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    position: relative;
    transition: color var(--transition);
}

.main-nav > li > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width var(--transition);
}

.main-nav > li > a:hover,
.main-nav > li.active > a {
    color: var(--primary);
}

.main-nav > li > a:hover::after,
.main-nav > li.active > a::after { width: 60%; }

.nav-cta {
    margin-left: 10px;
    background: var(--accent);
    color: #fff !important;
    padding: 10px 22px !important;
    border-radius: var(--radius);
    font-size: 15px !important;
}

.nav-cta:hover { background: var(--accent-dark); transform: translateY(-2px); }
.nav-cta::after { display: none !important; }

/* 移动端汉堡菜单 */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 28px;
    color: var(--primary);
    cursor: pointer;
    padding: 5px 10px;
}

/* ==========================================================================
   Hero Banner
   ========================================================================== */
.hero {
    position: relative;
    height: 580px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.hero-slide.active img { opacity: 1; }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,43,94,0.72) 0%, rgba(13,43,94,0.5) 45%, rgba(13,43,94,0.42) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.hero-content .school-tag {
    font-size: 14px;
    letter-spacing: 6px;
    color: var(--gold-light);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 6px;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-content .slogan {
    font-size: 22px;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 4px;
}

.hero-content .slogan strong { color: var(--gold-light); font-weight: 600; }

.hero-cta { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

/* 轮播指示点 */
.hero-dots {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.hero-dot.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* 轮播左右箭头 */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    backdrop-filter: blur(2px);
}
.hero-arrow:hover { background: rgba(255,255,255,0.32); }
.hero-prev { left: 22px; }
.hero-next { right: 22px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    border: 0;
    text-decoration: none;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(200,16,46,0.3); }

.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }

.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); color: #fff; transform: translateY(-2px); }

/* ==========================================================================
   通用板块
   ========================================================================== */
.section { padding: 80px 0; }
.section.bg-light { background: var(--bg-light); }
.section.bg-dark { background: var(--primary); color: #fff; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header .en { font-size: 14px; color: var(--gold); letter-spacing: 4px; font-weight: 600; text-transform: uppercase; margin-bottom: 8px; }
.section-header h2 { font-size: 38px; font-weight: 700; color: var(--primary); margin-bottom: 12px; letter-spacing: 2px; }
.section.bg-dark .section-header h2 { color: #fff; }
.section-header .line { width: 60px; height: 3px; background: var(--gold); margin: 18px auto; }
.section-header p { color: var(--text-light); font-size: 16px; max-width: 720px; margin: 0 auto; }

/* ==========================================================================
   数据指标栏
   ========================================================================== */
.stats-bar {
    background: var(--bg-light);
    padding: 50px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item { text-align: center; padding: 20px 10px; }
.stat-num {
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 10px;
    font-family: Georgia, serif;
}
.stat-num small { font-size: 20px; margin-left: 2px; }
.stat-label { font-size: 15px; color: var(--text-light); letter-spacing: 1px; }

/* ==========================================================================
   学校简介
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img img { width: 100%; height: 400px; object-fit: cover; }

.about-text h3 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.about-text .subtitle {
    color: var(--gold);
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 600;
}

.about-text p {
    color: var(--text);
    line-height: 1.9;
    margin-bottom: 16px;
    font-size: 15px;
    text-indent: 2em;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.about-features li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features li i { color: var(--accent); }

/* ==========================================================================
   教育理念/三大支柱
   ========================================================================== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pillar-card {
    background: #fff;
    padding: 50px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    border-top: 4px solid transparent;
}

.pillar-card:hover { transform: translateY(-8px); border-top-color: var(--accent); }

.pillar-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.pillar-card h3 { font-size: 22px; color: var(--primary); margin-bottom: 12px; }
.pillar-card p { color: var(--text-light); font-size: 14px; line-height: 1.8; }

/* ==========================================================================
   特色课程卡片
   ========================================================================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.course-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    text-align: center;
}

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

.course-img { height: 180px; overflow: hidden; }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.course-card:hover .course-img img { transform: scale(1.08); }

.course-body { padding: 20px 15px; }
.course-body h4 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.course-body p { color: var(--text-light); font-size: 13px; line-height: 1.6; }

/* ==========================================================================
   校园动态
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 460px;
}

.news-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.news-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.85) 100%);
}

.news-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity var(--transition); }
.news-item:hover img { opacity: 1; }

.news-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: #fff;
    z-index: 2;
}

.news-text h4 { font-size: 18px; margin-bottom: 8px; line-height: 1.4; }
.news-meta { font-size: 12px; color: rgba(255,255,255,0.8); }

.news-item:first-child { grid-row: span 2; }
.news-item:first-child .news-text h4 { font-size: 24px; }

/* ==========================================================================
   校园画廊（光影校园）
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 200px 200px;
    gap: 12px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
    font-size: 14px;
    opacity: 0;
    transition: opacity var(--transition);
}

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

/* ==========================================================================
   招生专栏
   ========================================================================== */
.admission-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.admission-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../images/bg-pattern.png") repeat;
    opacity: 0.05;
}

.admission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.admission-info h2 { font-size: 36px; margin-bottom: 16px; }
.admission-info .highlight { color: var(--gold-light); }
.admission-info p { font-size: 16px; line-height: 1.9; margin-bottom: 12px; opacity: 0.9; }

.admission-info .phone {
    font-size: 36px;
    color: var(--gold-light);
    font-weight: 700;
    margin: 20px 0;
    font-family: Georgia, serif;
}

.process-list {
    background: rgba(255,255,255,0.08);
    padding: 30px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}

.process-list h3 { font-size: 22px; margin-bottom: 20px; }

.process-step {
    display: flex;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.process-step:last-child { border-bottom: 0; }

.step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-text { flex: 1; }
.step-text strong { display: block; margin-bottom: 4px; font-size: 16px; }
.step-text span { font-size: 13px; opacity: 0.8; }

/* ==========================================================================
   FAQ 折叠面板
   ========================================================================== */
.faq-list { max-width: 900px; margin: 0 auto; }

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item[open] { box-shadow: var(--shadow-md); border-color: var(--primary); }

.faq-q {
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    list-style: none;
    user-select: none;
}

.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: "+"; font-size: 24px; color: var(--gold); transition: transform var(--transition); }
.faq-item[open] .faq-q::after { transform: rotate(45deg); }

.faq-a { padding: 0 25px 20px; color: var(--text); line-height: 1.9; }

/* ==========================================================================
   师资团队
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition);
}

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

.team-photo { height: 220px; overflow: hidden; background: var(--bg-light); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }

.team-body { padding: 20px; }
.team-body h4 { font-size: 18px; color: var(--primary); margin-bottom: 4px; }
.team-body .title { color: var(--gold); font-size: 13px; margin-bottom: 10px; letter-spacing: 1px; }
.team-body p { color: var(--text-light); font-size: 13px; line-height: 1.6; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--gold); }

.footer-col p { line-height: 1.9; font-size: 14px; margin-bottom: 8px; }
.footer-col p i { color: var(--gold-light); margin-right: 8px; width: 16px; }

.footer-col ul li { padding: 5px 0; font-size: 14px; }
.footer-col ul li a { transition: padding-left var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); padding-left: 5px; }

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

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ==========================================================================
   面包屑导航
   ========================================================================== */
.breadcrumb {
    background: var(--bg-light);
    padding: 18px 0;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span.sep { margin: 0 10px; color: var(--border); }
.breadcrumb .current { color: var(--primary); font-weight: 500; }

/* ==========================================================================
   列表页（栏目页）
   ========================================================================== */
.page-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    padding: 50px 0;
}

.article-list .article-item {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.article-list .article-item:hover { background: var(--bg-light); padding-left: 15px; padding-right: 15px; margin-left: -15px; margin-right: -15px; }

.article-list .article-img {
    flex-shrink: 0;
    width: 220px;
    height: 150px;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-list .article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.article-list .article-item:hover .article-img img { transform: scale(1.06); }

.article-body { flex: 1; }
.article-body h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; line-height: 1.5; }
.article-body h3 a:hover { color: var(--accent); }
.article-meta { color: var(--text-light); font-size: 13px; margin-bottom: 8px; }
.article-meta span { margin-right: 15px; }
.article-meta i { color: var(--gold); margin-right: 4px; }
.article-desc { color: var(--text); font-size: 14px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.sidebar {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-lg);
    align-self: start;
    position: sticky;
    top: 100px;
}

.sidebar h3 { color: var(--primary); font-size: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--primary); margin-bottom: 15px; }
.sidebar ul li { padding: 12px 0; border-bottom: 1px dashed var(--border); }
.sidebar ul li:last-child { border-bottom: 0; }
.sidebar ul li a { display: block; transition: padding-left var(--transition); }
.sidebar ul li a:hover { color: var(--primary); padding-left: 5px; }
.sidebar ul li.active a { color: var(--accent); font-weight: 600; }

/* ==========================================================================
   内容页（详情页）
   ========================================================================== */
.article-page {
    padding: 50px 0;
}

.article-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.article-header h1 {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.article-header .article-meta {
    justify-content: center;
    font-size: 14px;
}

.article-content {
    font-size: 16px;
    line-height: 1.95;
    color: var(--text);
}

.article-content h2, .article-content h3, .article-content h4 {
    color: var(--primary);
    margin: 30px 0 15px;
    font-weight: 700;
}

.article-content h2 { font-size: 24px; border-left: 4px solid var(--gold); padding-left: 15px; }
.article-content h3 { font-size: 20px; }
.article-content p { margin-bottom: 16px; text-indent: 2em; }
.article-content img { max-width: 100%; height: auto; margin: 20px auto; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.article-content table { max-width: 100%; display: block; overflow-x: auto; border-collapse: collapse; }
.article-content iframe, .article-content video { max-width: 100%; }
.article-content a { color: var(--accent); }

.article-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.article-tags { margin-bottom: 20px; }
.article-tags span { color: var(--text-light); margin-right: 10px; }
.article-tags a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--text);
    border-radius: var(--radius);
    font-size: 13px;
    margin-right: 6px;
}
.article-tags a:hover { background: var(--primary); color: #fff; }

.prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.prev-next a {
    display: block;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    color: var(--text);
    transition: all var(--transition);
}

.prev-next a:hover { background: var(--primary); color: #fff; }
.prev-next .label { font-size: 12px; color: var(--text-light); display: block; margin-bottom: 4px; }
.prev-next a:hover .label { color: rgba(255,255,255,0.8); }

/* ==========================================================================
   分页
   ========================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    transition: all var(--transition);
}

.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination span.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination span.disabled { opacity: 0.5; }

/* ==========================================================================
   返回顶部
   ========================================================================== */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 99;
}

.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--accent); transform: translateY(-3px); }

/* ==========================================================================
   联系卡片 & 表单（响应式）
   ========================================================================== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.contact-card h3 { color: var(--primary); margin-bottom: 12px; font-size: 20px; }
.contact-card .contact-strong { font-size: 24px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.contact-card p { color: var(--text); font-size: 15px; }
.contact-card .contact-note { color: var(--text-light); font-size: 14px; }

.form-card {
    max-width: 800px;
    margin: 0 auto 60px;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-card.gray { background: var(--bg-light); }

.form-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field { min-width: 0; }

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

.form-required { color: var(--accent); }

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text);
    background: #fff;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,43,94,0.08);
}

.form-submit { text-align: center; }

/* ==========================================================================
   移动端底部快捷栏
   ========================================================================== */
.mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.mobile-bar .mb-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 9px 0 7px;
    gap: 3px;
    color: var(--text);
    font-size: 12px;
    text-decoration: none;
}

.mobile-bar .mb-item i { font-size: 20px; }

.mobile-bar .mb-item.mb-accent {
    background: var(--accent);
    color: #fff;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .admission-grid { grid-template-columns: 1fr; gap: 40px; }
    .pillars-grid, .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .news-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; height: auto; }
    .news-item:first-child { grid-row: span 2; grid-column: span 2; height: 400px; }
    .page-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    .header-inner { padding: 12px 0; }
    .brand img { height: 50px; }
    .brand-text .name { font-size: 16px; letter-spacing: 0; }
    .brand-text .since { font-size: 10px; }
    .brand-text .school-feature { font-size: 10px; }
    .menu-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 15px 20px;
        box-shadow: var(--shadow-md);
    }
    .main-nav.show { display: flex; }
    .main-nav > li > a { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .nav-cta { margin: 10px 0 0 0; text-align: center; }
    .hero { height: 420px; }
    .hero-content h1 { font-size: 36px; letter-spacing: 2px; }
    .hero-content .slogan { font-size: 16px; letter-spacing: 1px; }
    .hero-arrow { display: none; }
    .hero-dots { bottom: 16px; }
    .hero-dot { width: 8px; height: 8px; }
    .section { padding: 50px 0; }
    .section-header h2 { font-size: 28px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .stat-num { font-size: 36px; }
    .about-features { grid-template-columns: 1fr; }
    .pillars-grid, .courses-grid, .team-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px 150px 150px; }
    .news-grid { grid-template-columns: 1fr; grid-template-rows: repeat(6, 180px); }
    .news-item:first-child { grid-row: span 2; grid-column: span 1; height: 360px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .article-list .article-item { flex-direction: column; }
    .article-list .article-img { width: 100%; height: 200px; }
    .article-header h1 { font-size: 22px; }
    .admission-info h2 { font-size: 26px; }
    .admission-info .phone { font-size: 26px; }
    .hero-cta { flex-direction: column; width: 100%; padding: 0 30px; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    /* 联系卡片 & 表单 单列堆叠 */
    .contact-cards { grid-template-columns: 1fr; gap: 20px; }
    .form-grid { grid-template-columns: 1fr; gap: 15px; }
    .form-card { padding: 25px 20px; margin-bottom: 40px; }
    .form-title { font-size: 20px; }
    /* 上一篇/下一篇 堆叠 */
    .prev-next { grid-template-columns: 1fr; }
    /* 文章元信息换行 */
    .article-meta span { display: inline-block; margin-bottom: 4px; }
    /* 移动端底部快捷栏 */
    .mobile-bar { display: flex; }
    body { padding-bottom: 58px; }
    .back-top { bottom: 80px; right: 15px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero { height: 380px; }
    .hero-content h1 { font-size: 28px; }
    .hero-dots { bottom: 12px; }
    .stat-num { font-size: 30px; }
    .btn { padding: 12px 24px; font-size: 14px; }
    .contact-card { padding: 30px 20px; }
    .contact-card .contact-strong { font-size: 20px; }
}
