/* ============================================================
   水木硅谷 · 少儿编程与信息学奥赛 官网样式
   视觉系统：科技蓝 + 活力橙，圆角卡片，浅色底，移动端底部 Tab
   ============================================================ */
:root {
  --blue: #1B3A8F;
  --blue-deep: #0F2B6E;
  --blue-light: #2E6BFF;
  --blue-soft: #EAF1FF;
  --orange: #FF7A1A;
  --orange-soft: #FFF3E8;
  --gold: #F5B301;
  --ink: #1A2340;
  --gray: #5A6580;
  --line: #E4E9F5;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FE;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(27, 58, 143, .08);
  --shadow-lg: 0 20px 50px rgba(27, 58, 143, .14);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img, svg { vertical-align: middle; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 15px; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .kicker { display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue-light); background: var(--blue-soft); padding: 5px 14px; border-radius: 99px; letter-spacing: 2px; margin-bottom: 14px; }
.section-head h2 { font-size: 34px; line-height: 1.3; margin-bottom: 12px; }
.section-head p { color: var(--gray); font-size: 16px; }
.section-head .more { display: inline-block; margin-top: 18px; color: var(--blue-light); font-weight: 600; font-size: 14px; }
.section-head .more:hover { color: var(--orange); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 30px; border-radius: 99px; font-size: 16px; font-weight: 700; transition: all .25s; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, #FF8A2A, #FF6A00); color: #fff; box-shadow: 0 8px 20px rgba(255, 122, 26, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 122, 26, .45); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); transform: translateY(-2px); }
.btn-ghost { border: 2px solid var(--blue-light); color: var(--blue-light); }
.btn-ghost:hover { background: var(--blue-light); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------- 顶部导航 ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; color: var(--blue-deep); }
.logo .logo-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 900; box-shadow: 0 4px 12px rgba(27,58,143,.3); }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--gray); letter-spacing: 1px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 8px 16px; border-radius: 99px; font-size: 15px; font-weight: 600; color: var(--ink); transition: all .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--blue-light); background: var(--blue-soft); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-tel { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--blue); font-size: 15px; }
.nav-tel svg { color: var(--orange); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 22px; height: 2.5px; background: var(--blue-deep); border-radius: 2px; transition: .3s; }

/* 移动端抽屉菜单 */
.drawer { position: fixed; inset: 0; background: rgba(15,43,110,.5); z-index: 200; opacity: 0; pointer-events: none; transition: .3s; }
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(300px, 82%); background: #fff; padding: 24px; transform: translateX(100%); transition: .3s; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-panel a { display: block; padding: 14px 8px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
.drawer-panel .drawer-close { position: absolute; top: 16px; right: 16px; font-size: 24px; color: var(--gray); }
.drawer-cta { margin-top: 24px; }

/* ---------- 顶部活动条 ---------- */
.topbar { background: linear-gradient(90deg, var(--blue-deep), var(--blue)); color: #fff; font-size: 13px; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.topbar b { color: var(--gold); }
.topbar .topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar a:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 80% -10%, rgba(46,107,255,.18), transparent 60%), linear-gradient(160deg, #F0F5FF 0%, #FFFFFF 60%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 80px 0 90px; }
.hero h1 { font-size: 46px; line-height: 1.25; color: var(--blue-deep); margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--blue-light), var(--orange)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .sub { font-size: 17px; color: var(--gray); max-width: 560px; margin-bottom: 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--blue); box-shadow: 0 4px 12px rgba(27,58,143,.06); }
.hero-badges span::before { content: "★"; color: var(--gold); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--gray); }
.hero-art { position: relative; }
.hero-art .code-card { background: var(--blue-deep); border-radius: 20px; padding: 28px; color: #cfe0ff; font-family: "Cascadia Code", Consolas, monospace; font-size: 14px; line-height: 1.9; box-shadow: var(--shadow-lg); transform: rotate(2deg); }
.hero-art .code-card .kw { color: #7dd3fc; }
.hero-art .code-card .fn { color: #fbbf24; }
.hero-art .code-card .st { color: #86efac; }
.hero-art .code-card .cm { color: #64748b; }
.float-chip { position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 16px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; animation: float 4s ease-in-out infinite; }
.float-chip .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 15px; }
.fc-1 { top: -14px; left: -20px; color: var(--orange); animation-delay: 0s; }
.fc-1 .ic { background: var(--orange-soft); }
.fc-2 { bottom: 40px; right: -14px; color: var(--blue); animation-delay: 1.2s; }
.fc-2 .ic { background: var(--blue-soft); }
.fc-3 { bottom: -18px; left: 30px; color: var(--gold); animation-delay: 2.1s; }
.fc-3 .ic { background: #FFF8E1; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- 数据带 ---------- */
.stats-band { background: linear-gradient(120deg, var(--blue-deep), var(--blue)); color: #fff; border-radius: 24px; margin-top: -46px; position: relative; z-index: 5; box-shadow: var(--shadow-lg); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 20px; }
.stat { text-align: center; border-right: 1px solid rgba(255,255,255,.15); }
.stat:last-child { border-right: none; }
.stat .num { font-size: 40px; font-weight: 900; background: linear-gradient(90deg, #fff, #FFD58A); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .label { font-size: 14px; opacity: .85; margin-top: 4px; }

/* ---------- 课程卡片 ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 26px; transition: all .3s; position: relative; overflow: hidden; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-card .cc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.course-card .cc-age { font-size: 12px; font-weight: 800; color: #fff; padding: 4px 12px; border-radius: 99px; }
.course-card .cc-tag { font-size: 12px; font-weight: 700; color: var(--gray); background: var(--bg-soft); padding: 4px 10px; border-radius: 6px; }
.course-card h3 { font-size: 20px; margin-bottom: 4px; }
.course-card .cc-level { font-size: 12px; font-weight: 700; color: var(--blue-light); letter-spacing: 1px; margin-bottom: 10px; }
.course-card .cc-desc { color: var(--gray); font-size: 14px; min-height: 66px; }
.course-card .cc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.course-card .cc-meta span { font-size: 12px; color: var(--blue); background: var(--blue-soft); padding: 4px 10px; border-radius: 99px; }
.course-card .cc-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: 14px; }
.course-card .price { font-size: 22px; font-weight: 900; color: var(--orange); }
.course-card .price small { font-size: 12px; font-weight: 500; color: var(--gray); }
.course-card .price .orig { font-size: 13px; text-decoration: line-through; color: #B9C1D6; font-weight: 500; margin-left: 6px; }

/* ---------- 培养路径时间轴 ---------- */
.path-wrap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; position: relative; }
.path-wrap::before { content: ""; position: absolute; top: 30px; left: 6%; right: 6%; height: 3px; background: linear-gradient(90deg, var(--blue-light), var(--orange)); border-radius: 3px; }
.path-item { text-align: center; position: relative; padding-top: 8px; }
.path-item .dot { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-light); display: grid; place-items: center; font-weight: 900; color: var(--blue-light); box-shadow: 0 0 0 6px var(--bg-soft); position: relative; z-index: 2; font-size: 14px; }
.path-item:nth-child(2n) .dot { border-color: var(--orange); color: var(--orange); }
.path-item:nth-child(2n) .dot { box-shadow: 0 0 0 6px var(--bg-soft); }
.path-item .p-stage { font-size: 12px; font-weight: 800; color: var(--blue-light); margin-bottom: 4px; }
.path-item h4 { font-size: 16px; margin-bottom: 6px; }
.path-item p { font-size: 12.5px; color: var(--gray); line-height: 1.6; }

/* ---------- 赛事图谱 ---------- */
.contest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contest-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; align-items: center; gap: 14px; transition: all .25s; }
.contest-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contest-item .c-logo { width: 46px; height: 46px; border-radius: 12px; color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 14px; flex-shrink: 0; }
.contest-item h4 { font-size: 16px; }
.contest-item .c-level { font-size: 11px; font-weight: 700; color: var(--gray); }
.contest-item p { font-size: 12px; color: var(--gray); margin-top: 2px; }

/* ---------- 金牌成绩 ---------- */
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.result-card { background: linear-gradient(160deg, #fff, var(--bg-soft)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; transition: all .3s; }
.result-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.result-card .r-num { font-size: 44px; font-weight: 900; color: var(--blue-deep); }
.result-card .r-num em { font-style: normal; color: var(--orange); }
.result-card h4 { font-size: 17px; margin: 6px 0 8px; }
.result-card p { font-size: 13px; color: var(--gray); }
.result-card .r-note { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--gold); background: #FFF8E1; padding: 3px 12px; border-radius: 99px; }

/* 奖牌墙（成果页）*/
.medal-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.medal-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; text-align: center; transition: all .3s; }
.medal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.medal-card .m-ic { font-size: 40px; margin-bottom: 8px; }
.medal-card h4 { font-size: 15px; margin-bottom: 4px; }
.medal-card p { font-size: 12.5px; color: var(--gray); }

/* ---------- 师资 ---------- */
.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.teacher-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 26px 22px; text-align: center; transition: all .3s; position: relative; }
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.teacher-card .avatar { width: 86px; height: 86px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-light)); color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 800; box-shadow: 0 8px 20px rgba(27,58,143,.25); }
.teacher-card .t-tag { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; color: #fff; background: var(--orange); padding: 3px 10px; border-radius: 99px; }
.teacher-card h3 { font-size: 18px; }
.teacher-card .t-title { font-size: 13px; font-weight: 700; color: var(--blue-light); margin: 2px 0 6px; }
.teacher-card .t-edu { font-size: 12.5px; color: var(--gray); }
.teacher-card .t-honor { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--blue-deep); background: var(--blue-soft); padding: 4px 12px; border-radius: 99px; }
.teacher-card .t-intro { font-size: 13px; color: var(--gray); margin-top: 10px; line-height: 1.7; }

/* ---------- 教学特色 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: all .3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-card .f-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; margin-bottom: 16px; background: var(--blue-soft); }
.feature-card:nth-child(2n) .f-ic { background: var(--orange-soft); }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--gray); }

/* ---------- 家长口碑 ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 26px; position: relative; }
.testimonial-card::before { content: "“"; position: absolute; top: 6px; left: 18px; font-size: 64px; color: var(--blue-soft); font-family: Georgia, serif; line-height: 1; }
.testimonial-card .stars { color: var(--gold); font-size: 15px; margin-bottom: 12px; }
.testimonial-card p { font-size: 14px; color: var(--gray); margin-bottom: 16px; }
.testimonial-card .who { display: flex; align-items: center; gap: 10px; }
.testimonial-card .who .av { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.testimonial-card .who b { font-size: 14px; display: block; }
.testimonial-card .who span { font-size: 12px; color: var(--gray); }

/* ---------- 资讯 ---------- */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: all .3s; position: relative; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card .n-hot { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; color: #fff; background: var(--orange); padding: 2px 10px; border-radius: 99px; }
.news-card .n-meta { display: flex; gap: 12px; align-items: center; font-size: 12.5px; color: var(--gray); margin-bottom: 10px; }
.news-card .n-cat { font-weight: 800; color: var(--blue-light); background: var(--blue-soft); padding: 2px 10px; border-radius: 99px; }
.news-card h3 { font-size: 16.5px; line-height: 1.5; margin-bottom: 8px; }
.news-card p { font-size: 13.5px; color: var(--gray); }
.news-card .n-more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--blue-light); }
.news-card .n-more:hover { color: var(--orange); }

/* 资讯详情列表页样式 */
.news-detail-list { max-width: 860px; margin: 0 auto; }
.news-item { display: flex; gap: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; transition: all .25s; }
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-item .n-date { text-align: center; flex-shrink: 0; width: 74px; border-right: 1px dashed var(--line); padding-right: 20px; }
.news-item .n-date b { display: block; font-size: 26px; color: var(--blue); }
.news-item .n-date span { font-size: 12px; color: var(--gray); }

/* ---------- CTA 横幅 ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-deep), var(--blue-light)); border-radius: 26px; padding: 54px 48px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.cta-band h2 { font-size: 28px; margin-bottom: 8px; }
.cta-band p { opacity: .9; font-size: 15px; }
.cta-band .btn { position: relative; z-index: 2; }

/* ---------- 预约表单 ---------- */
.lead-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.lead-info h3 { font-size: 24px; margin-bottom: 12px; }
.lead-info p { color: var(--gray); margin-bottom: 20px; }
.lead-points li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14.5px; color: var(--ink); }
.lead-points li::before { content: "✓"; color: #fff; background: var(--blue-light); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; margin-top: 3px; }
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.lead-form h4 { font-size: 20px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; outline: none; transition: .2s; background: var(--bg-soft); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-light); background: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.field textarea { resize: vertical; min-height: 90px; }
.form-tip { font-size: 12px; color: var(--gray); margin-top: 10px; }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success .ok { font-size: 46px; margin-bottom: 10px; }
.form-success h4 { font-size: 20px; margin-bottom: 8px; }
.form-success p { color: var(--gray); font-size: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--blue-deep); color: rgba(255,255,255,.85); padding: 60px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-grid a { display: block; font-size: 14px; padding: 5px 0; color: rgba(255,255,255,.75); }
.footer-grid a:hover { color: var(--gold); }
.footer-about p { font-size: 13.5px; margin-top: 12px; line-height: 1.8; }
.footer-contact li { display: flex; gap: 10px; font-size: 14px; margin-bottom: 10px; align-items: flex-start; }
.footer-contact li::before { content: "•"; color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- 浮动按钮 ---------- */
.float-bar { position: fixed; right: 22px; bottom: 110px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.float-bar .fb { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #fff; box-shadow: var(--shadow-lg); transition: all .25s; position: relative; }
.float-bar .fb:hover { transform: scale(1.1); }
.fb-wechat { background: #07C160; }
.fb-phone { background: var(--orange); }
.fb-top { background: var(--blue); }
.fb .fb-tip { position: absolute; right: 62px; top: 50%; transform: translateY(-50%); background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 8px; box-shadow: var(--shadow); white-space: nowrap; opacity: 0; pointer-events: none; transition: .2s; }
.fb:hover .fb-tip { opacity: 1; }

/* 微信弹窗 */
.wechat-modal { position: fixed; inset: 0; background: rgba(15,43,110,.55); z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.wechat-modal.show { display: flex; }
.wechat-box { background: #fff; border-radius: 22px; padding: 34px 30px; text-align: center; max-width: 340px; width: 100%; position: relative; animation: pop .3s ease; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wechat-box .close { position: absolute; top: 12px; right: 16px; font-size: 22px; color: var(--gray); }
.wechat-box .qr { width: 170px; height: 170px; margin: 18px auto; border-radius: 14px; background: var(--bg-soft); display: grid; place-items: center; color: var(--blue); font-weight: 800; font-size: 13px; border: 1px dashed var(--blue-light); }
.wechat-box h4 { font-size: 19px; }
.wechat-box p { font-size: 13.5px; color: var(--gray); margin-top: 6px; }
.wechat-box .wc-id { display: inline-block; margin-top: 12px; background: var(--blue-soft); color: var(--blue); font-weight: 800; padding: 8px 20px; border-radius: 99px; font-size: 15px; }

/* ---------- 内页 Hero ---------- */
.page-hero { background: linear-gradient(150deg, #EDF3FF, #fff); padding: 64px 0; text-align: center; }
.page-hero h1 { font-size: 38px; color: var(--blue-deep); margin-bottom: 10px; }
.page-hero p { color: var(--gray); font-size: 16px; max-width: 640px; margin: 0 auto; }
.crumbs { font-size: 13px; color: var(--gray); margin-bottom: 14px; }
.crumbs a { color: var(--blue-light); }

/* FAQ 手风琴 */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq-item .faq-q { padding: 18px 22px; font-weight: 700; font-size: 15.5px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-item .faq-q::after { content: "+"; font-size: 22px; color: var(--blue-light); transition: .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-item .faq-a { display: none; padding: 0 22px 18px; font-size: 14px; color: var(--gray); line-height: 1.8; }
.faq-item.open .faq-a { display: block; }

/* 关于页 */
.about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.about-card h3 { font-size: 18px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.about-card p { font-size: 14px; color: var(--gray); }
.milestone { position: relative; padding-left: 28px; border-left: 3px solid var(--blue-soft); margin-left: 10px; }
.milestone li { position: relative; padding: 0 0 26px 20px; }
.milestone li::before { content: ""; position: absolute; left: -35px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--blue-light); box-shadow: 0 0 0 4px var(--blue-soft); }
.milestone b { display: block; font-size: 15px; color: var(--blue-deep); }
.milestone span { font-size: 13px; color: var(--gray); }

/* ---------- 移动端底部 Tab ---------- */
.mobile-tab { display: none; }
@media (max-width: 860px) {
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 25px; }
  .nav-links, .nav-tel { display: none; }
  .nav-burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; padding: 44px 0 56px; gap: 34px; }
  .hero h1 { font-size: 31px; }
  .hero .sub { font-size: 15px; }
  .hero-art { max-width: 340px; margin: 0 auto; width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 14px; }
  .stat .num { font-size: 30px; }
  .course-grid, .feature-grid, .testimonial-grid, .news-list, .result-grid { grid-template-columns: 1fr; }
  .teacher-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .contest-grid { grid-template-columns: 1fr 1fr; }
  .path-wrap { grid-template-columns: 1fr 1fr; gap: 22px 10px; }
  .path-wrap::before { display: none; }
  .medal-wall { grid-template-columns: 1fr 1fr; }
  .lead-wrap { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; }
  .cta-band h2 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .news-item { flex-direction: column; gap: 10px; }
  .news-item .n-date { border-right: none; border-bottom: 1px dashed var(--line); width: auto; text-align: left; padding: 0 0 8px; display: flex; align-items: baseline; gap: 8px; }
  .float-bar { right: 14px; bottom: 96px; }
  .float-bar .fb { width: 46px; height: 46px; font-size: 19px; }
  body { padding-bottom: 64px; }
  /* 底部 Tab */
  .mobile-tab { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); z-index: 150; box-shadow: 0 -4px 16px rgba(27,58,143,.06); }
  .mobile-tab a { flex: 1; text-align: center; padding: 8px 0 10px; font-size: 10.5px; color: var(--gray); display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .mobile-tab a .mt-ic { font-size: 20px; }
  .mobile-tab a.active { color: var(--blue-light); font-weight: 700; }
  .mobile-tab a.active .mt-ic { transform: translateY(-1px); }
  .mobile-tab .mt-center { position: relative; }
  .mobile-tab .mt-center .mt-btn { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #FF8A2A, #FF6A00); color: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 8px 20px rgba(255,122,26,.4); }
  .mobile-tab a .mt-label { display: block; }
  .page-hero h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .teacher-grid { grid-template-columns: 1fr; }
  .contest-grid { grid-template-columns: 1fr; }
  .hero-badges span { font-size: 12px; }
}

/* ============================================================
   清华大学风格主题覆盖（V2）
   清华紫 #660874 · 清华红 #B01F24 · 米白底 · 宋体标题
   仅覆盖颜色与字体，不改变任何布局尺寸，保证不错位
   ============================================================ */
:root {
  --blue: #660874;
  --blue-deep: #4A0E63;
  --blue-light: #7B2CBF;
  --blue-soft: #F1EAF7;
  --orange: #B01F24;
  --orange-soft: #FBE9EB;
  --gold: #E8A800;
  --ink: #221D2B;
  --gray: #4C4656;
  --line: #E4DFEC;
  --bg-soft: #F6F3FA;
  --shadow: 0 10px 30px rgba(74, 14, 99, 0.10);
  --shadow-lg: 0 20px 50px rgba(74, 14, 99, 0.16);
  --radius: 6px;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
}
body { background: var(--bg); }
h1, h2, h3 { font-family: var(--font-serif); }

/* 头部：清华红顶条 + 白色基底 */
.site-header::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 1;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 62%, var(--blue) 62%);
}
.topbar { background: linear-gradient(90deg, var(--blue-deep), var(--blue)); }
.topbar b { color: #F5C6C8; }

/* 导航：紫字红下划线（清华官网式，居中不偏移） */
.nav-links a { color: var(--ink); font-weight: 500; background: none !important; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px;
  background: var(--orange); transform: translateX(-50%); transition: width .25s;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a:hover::after, .nav-links a.active::after {
  left: 50% !important; right: auto !important; width: 62% !important; transform: translateX(-50%);
  background: var(--orange);
}
.nav-links a.active { color: var(--blue); font-weight: 700; background: none !important; }

/* 按钮：清华红主 CTA / 紫色辅助 */
.btn-primary { background: linear-gradient(135deg, #C8102E, #8A1420); box-shadow: 0 8px 20px rgba(176, 31, 36, .3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(176, 31, 36, .42); }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ghost { border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover { border-color: var(--blue-deep); color: var(--blue-deep); background: var(--blue-soft); }

/* Hero：淡紫氛围 + 红紫渐变标题字 */
.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(123, 44, 191, 0.14), transparent 60%), linear-gradient(160deg, #F6F2FA 0%, #FFFFFF 60%); }
.hero h1 .grad { background: linear-gradient(90deg, var(--blue), var(--orange)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-badges span { color: var(--blue); border-color: #DCD3EA; }
.hero-badges span::before { color: var(--orange); }
.hero-art .code-card { background: var(--blue-deep); }

/* 数据带：紫渐变 */
.stats-band { background: linear-gradient(120deg, var(--blue-deep), var(--blue)); }
.stat .num { background: linear-gradient(90deg, #fff, #FFD9C8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* 区块标题：红色点缀短横 */
.section-head h2 { position: relative; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 3px;
  background: var(--orange); margin: 14px auto 0;
}
.section-head .kicker { color: var(--blue); background: var(--blue-soft); }

/* 路径 / 成绩 / 师资 / 特色 / 口碑 / 资讯 细节换色 */
.path-item .dot { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 6px var(--bg-soft); }
.path-item:nth-child(2n) .dot { border-color: var(--orange); color: var(--orange); }
.result-card .r-num { color: var(--blue-deep); }
.result-card .r-num em { color: var(--orange); }
.result-card .r-note { color: #B8860B; }
.teacher-card .avatar { background: linear-gradient(135deg, var(--blue), var(--blue-light)); box-shadow: 0 8px 20px rgba(74, 14, 99, .25); }
.teacher-card .t-tag { background: var(--orange); }
.teacher-card .t-honor { color: var(--blue-deep); background: var(--blue-soft); }
.feature-card .f-ic { background: var(--blue-soft); }
.feature-card:nth-child(2n) .f-ic { background: var(--orange-soft); }
.testimonial-card::before { color: #E9DFF4; }
.news-card .n-cat { color: var(--blue); background: var(--blue-soft); }
.news-card .n-more { color: var(--blue); }
.news-card .n-more:hover { color: var(--orange); }
.news-item .n-date b { color: var(--blue); }

/* CTA 横幅：红紫渐变，按钮改白底红字保证清晰 */
.cta-band { background: linear-gradient(120deg, var(--orange), var(--blue)); }
.cta-band .btn-primary { background: #fff; color: var(--orange); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }

/* 表单细节 */
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.lead-points li::before { background: var(--blue); }

/* 页脚：深紫 */
.site-footer { background: var(--blue-deep); }
.footer-grid a:hover { color: #F5C6C8; }
.footer-bottom { border-top-color: rgba(255, 255, 255, 0.12); }

/* 内页 Hero */
.page-hero { background: linear-gradient(150deg, #F4EFF9, #fff); }
.crumbs a { color: var(--blue); }

/* 浮动按钮 */
.fb-phone { background: var(--orange); }
.fb-top { background: var(--blue); }

/* 移动端 Tab */
.mobile-tab a.active { color: var(--blue); }
.mobile-tab .mt-center .mt-btn { background: linear-gradient(135deg, #C8102E, #8A1420); box-shadow: 0 8px 20px rgba(176, 31, 36, .4); }

/* 微信弹窗 */
.wechat-box .qr { border-color: var(--blue); color: var(--blue); }
.wc-id { background: var(--blue-soft); color: var(--blue); }

/* V2.1 清晰度微调：金色装饰字加深、浅色底白字加投影、划线原价加深 */
.hero-badges span::before,
.testimonial-card .stars,
.fc-3 { color: #B8860B; }
.result-card .r-note { color: #B8860B; }
.course-card .cc-age,
.contest-item .c-logo { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.price .orig { color: #8E97B0; }
.hero-art .code-card .cm { color: #9DB2D8; }

/* V2.2 对比度收尾：原价划线加深（原选择器优先级不足）、金色备注再加深、徽标投影加强 */
.course-card .price .orig { color: #8E97B0 !important; }
.result-card .r-note { color: #8A5F00 !important; }
.course-card .cc-age { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }

/* V2.3 徽标文字可读性收尾 */
.course-card .price .orig { color: #7C86A3 !important; }
.contest-item .c-logo { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }

/* ============================================================
   3D 特效（V3）：页面切换 3D 翻转 + 栏目区块 3D 入场
   尊重系统「减弱动效」设置；仅 JS 启用时区块才隐藏
   ============================================================ */
html.flip-page body {
  transition: transform .55s cubic-bezier(.65, .05, .36, 1), opacity .5s ease;
  transform-origin: 50% 50%;
}
html.flip-page-out body {
  transform: perspective(1400px) rotateY(-16deg) scale(.93);
  opacity: 0;
}
@keyframes pageFlipIn {
  from { transform: perspective(1400px) rotateY(14deg) scale(.95); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
body.flip-in-anim { animation: pageFlipIn .6s cubic-bezier(.22, 1, .36, 1); }

/* 栏目区块 3D 入场 */
html.js3d .r3d-el {
  opacity: 0;
  transform: perspective(1200px) rotateX(16deg) translateY(50px) scale(.97);
  transform-origin: 50% 0;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1), opacity .7s ease;
  will-change: transform, opacity;
}
html.js3d .r3d-el.r3d-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  body.flip-in-anim { animation: none; }
  html.flip-page body { transition: none; }
  html.js3d .r3d-el { opacity: 1; transform: none; transition: none; }
}
