/* ============================================================
   宣传站样式（重做版 2026-10-16）
   ------------------------------------------------------------
   参照的**设计手法**（不是抄颜色）：整屏氛围渐变背景、极大留白、
   大标题低字重 + 宽字距、悬浮卡片大圆角柔阴影无边框、胶囊按钮、极简细导航。
   颜色沿用学校的金 / 棕暖色系。

   原则：
   · 不引任何外部字体 / CDN —— 微信内置浏览器里少一次外网请求就少一次白屏
   · 手机优先；≥960px 给电脑一套更舒展的排版
   · 少用边框，用留白和柔和阴影分层（边框多了会显得廉价）
   ============================================================ */

:root {
  /* 墨色：深暖褐，比纯黑温和，配金色不脏 */
  --ink: #241a12;
  --ink-2: #6b5f52;
  --ink-3: #a2968a;
  /* 底色：暖白，不用纯白（纯白 + 大留白会刺眼） */
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f4efe7;
  --gold: #c8a24a;
  --gold-d: #96731f;
  --gold-l: #ecd9ab;
  --line: rgba(36, 26, 18, .08);
  --line-2: rgba(36, 26, 18, .14);
  --danger: #b3261e;
  --ok: #2e7d32;

  --r-lg: 26px;
  --r: 18px;
  --r-sm: 12px;
  --r-pill: 999px;

  /* 阴影分三层叠加，比单层大黑阴影自然得多 */
  --sh-1: 0 1px 2px rgba(60, 44, 26, .04), 0 2px 8px rgba(60, 44, 26, .04);
  --sh-2: 0 2px 6px rgba(60, 44, 26, .05), 0 10px 28px rgba(60, 44, 26, .07);
  --sh-3: 0 4px 12px rgba(60, 44, 26, .06), 0 24px 60px rgba(60, 44, 26, .10);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 78px;                 /* 给吸底按钮留位置 */
}
img { max-width: 100%; display: block; }
a { color: var(--gold-d); text-decoration: none; }
[hidden] { display: none !important; }   /* 作者样式会盖过 UA 的 hidden，必须显式写 */
::selection { background: var(--gold-l); }

/* ---------------- 骨架 ---------------- */
.wrap { max-width: 680px; margin: 0 auto; }
.container { padding: 0 20px; }

/* 小节：手机 44px 上下，电脑 84px —— 留白是"高级感"的主要来源 */
.sec { padding: 44px 0 6px; }
.sec-inner { padding: 0 20px; }

/* ---------------- 顶部导航 ---------------- */
.topbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 40; height: var(--nav-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  background: rgba(250, 248, 245, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.topbar.solid { border-bottom-color: var(--line); background: rgba(250, 248, 245, .94); }
.topbar .brand {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: .01em;
}
.topbar .brand .mark {
  width: 26px; height: 26px; flex: none; border-radius: 8px;
  background: linear-gradient(140deg, var(--gold), var(--gold-d));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(150, 115, 31, .28);
}
.topbar .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .nav-links { display: none; margin-left: auto; gap: 26px; }
.topbar .nav-links a { color: var(--ink-2); font-size: 14.5px; transition: color .2s var(--ease); }
.topbar .nav-links a:hover { color: var(--ink); }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar .nav-links + .right { margin-left: 24px; }
.topbar .tel {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  padding: 6px 13px; font-size: 13.5px; color: var(--ink); background: transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.topbar .tel:hover { background: var(--surface); border-color: var(--gold); }
.topbar .login {
  display: inline-flex; align-items: center;
  border-radius: var(--r-pill); padding: 7px 15px;
  font-size: 13.5px; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  box-shadow: 0 2px 10px rgba(150, 115, 31, .25);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.topbar .login:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(150, 115, 31, .32); }

/* body 要让开固定导航的高度 */
.spacer-nav { height: var(--nav-h); }

/* ---------------- 首屏 Hero ---------------- */
/* 通栏：氛围背景铺满整个视口宽度，内容仍然收在容器里（DeepSeek 那种"整屏感"）
   用 100vw + 负 margin 破出父容器，不需要把 DOM 挪出去 */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  width: 100vw; margin-left: calc(50% - 50vw);
  padding: 52px 0 46px;
  background:
    radial-gradient(58% 62% at 16% 8%, rgba(236, 217, 171, .95) 0%, rgba(236, 217, 171, 0) 62%),
    radial-gradient(52% 58% at 88% 4%, rgba(200, 162, 74, .34) 0%, rgba(200, 162, 74, 0) 60%),
    radial-gradient(70% 70% at 50% 100%, rgba(255, 252, 246, 1) 0%, rgba(255, 252, 246, 0) 70%),
    linear-gradient(168deg, #fdfaf4 0%, #f7efe0 46%, #faf8f5 100%);
}
/* 顶部一条极淡的金色光带，增加"精致"而不喧哗 */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 60% at 50% -10%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 60%);
}
.hero.has-img { padding: 0; }
.hero.has-img .hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero.has-img .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero.has-img > .hero-inner {
  position: relative;
  background: linear-gradient(100deg, rgba(28, 20, 12, .74) 0%, rgba(28, 20, 12, .46) 58%, rgba(28, 20, 12, .28) 100%);
  padding: 62px 0 56px;
}
.hero-inner { padding: 0 20px; max-width: 720px; margin: 0 auto; text-align: center; }
.hero.has-img .hero-inner { text-align: left; }
.hero.has-img .hero-inner > * { color: #fff; }

.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; color: var(--gold-d); letter-spacing: .02em;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(200, 162, 74, .35);
  border-radius: var(--r-pill); padding: 5px 14px; margin-bottom: 22px;
}
.hero.has-img .eyebrow { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: #fff; }
.hero .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

/* ★ 大标题：字重 500、宽字距、紧行高 —— 这是"高级感"最关键的一处
   （DeepSeek 用的是 400 字重 + 18px 字距；我们字数多，收到 .06em 更稳） */
.hero h1 {
  font-size: clamp(28px, 7.4vw, 52px);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: .06em;
  color: var(--ink);
  text-wrap: balance;
}
.hero .sub {
  margin-top: 18px; font-size: 15.5px; line-height: 1.85;
  color: var(--ink-2); max-width: 620px; letter-spacing: .01em;
}
.hero-inner > .sub { margin-left: auto; margin-right: auto; }
.hero.has-img .sub { color: rgba(255, 255, 255, .9); }
.hero .bullets {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 9px; justify-content: center;
}
.hero.has-img .bullets { justify-content: flex-start; }
.hero .bullets span {
  font-size: 13px; color: var(--ink-2);
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 6px 15px;
}
.hero.has-img .bullets span { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }
.hero .cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero.has-img .cta { justify-content: flex-start; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1;
  letter-spacing: .01em; cursor: pointer; border: none;
  padding: 15px 30px; border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--gold-d), var(--gold));
  color: #fff;
  /* ★ 不许在词中间断行："立即报名"被拆成"立即报/名"在手机上很常见也很难看 */
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(150, 115, 31, .22);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(150, 115, 31, .3); }
.btn:active { transform: translateY(0); }
.btn.block { width: 100%; }
.btn.sm { padding: 10px 18px; font-size: 13.5px; }
.btn.ghost {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); box-shadow: var(--sh-1);
}
.btn.ghost:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(60, 44, 26, .1); }
.btn.ghost-light {
  background: rgba(255, 255, 255, .18); color: #fff;
  border: 1px solid rgba(255, 255, 255, .5); box-shadow: none;
}
.btn.ghost-light:hover { background: rgba(255, 255, 255, .28); }
.btn:disabled { opacity: .55; transform: none; cursor: default; box-shadow: none; }

/* ---------------- 小节标题 ---------------- */
.sec-title {
  font-size: 21px; font-weight: 600; letter-spacing: .02em; color: var(--ink);
  margin-bottom: 22px; line-height: 1.4;
}
.sec-title .eyebrow-sm {
  display: block; font-size: 12.5px; font-weight: 500; letter-spacing: .14em;
  color: var(--gold-d); text-transform: uppercase; margin-bottom: 8px;
}
.sec-title.center { text-align: center; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--surface); border-radius: var(--r);
  padding: 22px; box-shadow: var(--sh-1);
  margin-bottom: 16px;
}
.card.flat { box-shadow: none; background: var(--surface-2); }

/* ---------------- 课程 ---------------- */
.courses { display: grid; gap: 16px; }
.course {
  background: var(--surface); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.course:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.course .body { padding: 24px 22px 22px; }
.course h3 {
  font-size: 19px; font-weight: 600; letter-spacing: .01em; color: var(--ink);
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.course .tag {
  font-size: 11.5px; font-weight: 500; letter-spacing: .02em;
  color: var(--gold-d); background: rgba(200, 162, 74, .13);
  border-radius: var(--r-pill); padding: 3px 10px;
}
.course .desc { margin-top: 11px; font-size: 14px; color: var(--ink-2); line-height: 1.85; }
.course .meta { margin-top: 14px; font-size: 13px; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; }
.course .foot {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;                    /* 窄屏时按钮整行换下去，不挤成竖排 */
}
.price { color: var(--ink); font-size: 25px; font-weight: 600; letter-spacing: -.01em; }
.price::first-letter { font-size: 16px; }
.price small { color: var(--ink-3); font-size: 13px; font-weight: 400; text-decoration: line-through; margin-left: 7px; }
.price.pending { color: var(--gold-d); font-size: 16px; font-weight: 500; }
.course .actions { display: flex; gap: 9px; }

/* 手机窄屏：价格和按钮分两行，两个按钮等宽铺满 —— 
   挤在一行时两个按钮都会被压到来回换行（"了解详情/立即报名"各断成两截） */
@media (max-width: 480px) {
  .course .foot { flex-direction: column; align-items: stretch; gap: 13px; }
  .course .actions { display: flex; }
  .course .actions .btn { flex: 1; }
}

/* ---------------- 优势 ---------------- */
.grid-adv { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adv {
  background: var(--surface); border-radius: var(--r); padding: 22px 20px;
  box-shadow: var(--sh-1);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.adv:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.adv .ico {
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: linear-gradient(140deg, rgba(236, 217, 171, .9), rgba(200, 162, 74, .28));
}
.adv h4 { font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.adv p { font-size: 13.5px; color: var(--ink-2); margin-top: 7px; line-height: 1.8; }

/* ---------------- 师资 ---------------- */
.teachers { display: grid; gap: 14px; }
.teacher {
  background: var(--surface); border-radius: var(--r); padding: 22px;
  display: flex; gap: 16px; box-shadow: var(--sh-1);
}
.teacher img, .teacher .ph {
  width: 66px; height: 66px; border-radius: 50%; object-fit: cover; flex: none;
  background: linear-gradient(140deg, var(--gold-l), rgba(200, 162, 74, .35));
}
.teacher .ph { display: flex; align-items: center; justify-content: center; font-size: 24px; }
.teacher h4 { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.teacher .role { font-size: 13px; color: var(--gold-d); margin-top: 3px; }
.teacher p { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.8; }

/* ---------------- 图库 ---------------- */
.gal { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gal figure {
  background: var(--surface); border-radius: var(--r-sm); overflow: hidden;
  box-shadow: var(--sh-1); transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.gal figure:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.gal figcaption { font-size: 12.5px; color: var(--ink-3); padding: 10px; text-align: center; }

/* ---------------- 流程 ---------------- */
.steps { display: grid; gap: 4px; }
.step { display: flex; gap: 16px; padding: 14px 0; }
.step .n {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, var(--gold), var(--gold-d)); color: #fff;
  font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(150, 115, 31, .22);
}
.step h4 { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.step p { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; line-height: 1.8; }

/* ---------------- FAQ ---------------- */
.faq { border-bottom: 1px solid var(--line); }
.faq:last-child { border-bottom: none; }
.faq summary {
  list-style: none; cursor: pointer; padding: 17px 0;
  font-size: 15.5px; font-weight: 500; color: var(--ink);
  display: flex; justify-content: space-between; gap: 14px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M6 1v10M1 6h10' stroke='%2396731f' stroke-width='1.6' stroke-linecap='round'/></svg>") center/12px no-repeat;
  transition: transform .25s var(--ease);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .a { font-size: 14px; color: var(--ink-2); line-height: 1.9; padding: 0 34px 18px 0; white-space: pre-wrap; }

/* ---------------- 联系 ---------------- */
.contact-cols { display: grid; gap: 22px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row .k { color: var(--ink-3); font-size: 13.5px; flex: none; width: 68px; padding-top: 1px; }
.contact-row .v { color: var(--ink); font-size: 15px; word-break: break-all; }
.qr { width: 138px; border-radius: var(--r-sm); box-shadow: var(--sh-1); }

/* ---------------- 吸底 CTA ---------------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; gap: 11px; max-width: 680px; margin: 0 auto;
  padding: 11px 20px calc(11px + env(safe-area-inset-bottom));
  background: rgba(250, 248, 245, .93);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
}
.sticky .btn { flex: 1; padding: 14px 12px; font-size: 15px; }

/* ---------------- 弹窗 ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(28, 20, 12, .42);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: none; align-items: flex-end;
  opacity: 0; transition: opacity .25s var(--ease);
}
.modal.show { display: flex; opacity: 1; }
.modal-box {
  background: var(--surface); width: 100%; max-width: 680px; margin: 0 auto;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
  max-height: 92vh; overflow-y: auto;
  box-shadow: var(--sh-3);
  animation: sheet-up .3s var(--ease);
}
@keyframes sheet-up { from { transform: translateY(18px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-box h3 { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.modal-box .sub { font-size: 13.5px; color: var(--ink-2); margin: 7px 0 20px; }
.btn-close {
  float: right; border: none; background: var(--surface-2); color: var(--ink-2);
  width: 30px; height: 30px; border-radius: 50%; font-size: 19px; line-height: 1;
  cursor: pointer; transition: background .2s var(--ease);
}
.btn-close:hover { background: var(--gold-l); }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 7px; }
.field input[type=text], .field input[type=tel], .field input[type=password], .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15.5px; color: var(--ink);
  background: var(--surface-2); border: 1px solid transparent;
  border-radius: 14px; padding: 14px 16px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 84px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--surface); border-color: var(--gold);
}
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.7; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); line-height: 1.75; margin-bottom: 18px; }
.consent input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--gold-d); }
.alert { border-radius: 14px; padding: 12px 15px; font-size: 13.5px; margin-bottom: 16px; display: none; }
.alert.err { background: #fdecea; color: var(--danger); }
.alert.err.show { display: block; }
.ok-pane { text-align: center; padding: 14px 0 6px; }
.ok-pane .big { font-size: 46px; line-height: 1; }
.ok-pane h3 { margin: 16px 0 8px; }
.ok-pane .muted { margin-top: 6px; }

.muted { color: var(--ink-2); font-size: 13.5px; }
.center { text-align: center; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------------- 底 ---------------- */
.foot {
  padding: 54px 20px 40px; text-align: center;
  font-size: 12.5px; color: var(--ink-3); line-height: 2;
  border-top: 1px solid var(--line); margin-top: 54px;
}
.foot a { color: var(--ink-3); }
.foot a:hover { color: var(--gold-d); }

/* ---------------- AI 引导 ---------------- */
/* 首屏那个"想学点什么"的输入框：白色悬浮卡片 + 大圆角 + 柔阴影（不用边框） */
.ai-entry {
  margin: 30px auto 0; max-width: 620px;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: 8px 8px 8px 20px;
  display: flex; align-items: center; gap: 10px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.ai-entry:focus-within { box-shadow: 0 6px 20px rgba(60,44,26,.10), 0 30px 70px rgba(60,44,26,.14); }
.ai-entry input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 15.5px; color: var(--ink); padding: 14px 0;
}
.ai-entry input::placeholder { color: var(--ink-3); }
.ai-entry .send {
  flex: none; width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(140deg, var(--gold), var(--gold-d)); color: #fff;
  font-size: 17px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(150,115,31,.28);
  transition: transform .2s var(--ease);
}
.ai-entry .send:hover { transform: scale(1.06); }
.ai-entry .send:disabled { opacity: .5; transform: none; }
.ai-hint { margin-top: 12px; font-size: 12.5px; color: var(--ink-3); text-align: center; }

/* 对话面板 */
.ai-box { display: flex; flex-direction: column; max-height: 88vh; }
.ai-log { flex: 1; overflow-y: auto; padding: 6px 2px 12px; display: flex; flex-direction: column; gap: 12px; min-height: 140px; }
.ai-msg { max-width: 86%; padding: 12px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.ai-msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--gold-d), var(--gold)); color: #fff; border-bottom-right-radius: 6px; }
.ai-msg.ai { align-self: flex-start; background: var(--surface-2); color: var(--ink); border-bottom-left-radius: 6px; }
.ai-msg.typing { color: var(--ink-3); }
.ai-msg.typing::after { content: '…'; animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.ai-suggest { align-self: flex-start; width: 100%; margin-top: 2px; }
.ai-suggest .card { margin: 0; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ai-input { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.ai-input input {
  flex: 1; min-width: 0; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface-2); border: 1px solid transparent; border-radius: 14px; padding: 13px 16px;
}
.ai-input input:focus { outline: none; background: var(--surface); border-color: var(--gold); }
.ai-foot { margin-top: 10px; font-size: 12px; text-align: center; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: center; }
.ai-chips button {
  font-family: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-pill);
  padding: 7px 14px; transition: border-color .2s var(--ease), color .2s var(--ease);
}
.ai-chips button:hover { border-color: var(--gold); color: var(--ink); }

/* ---------------- 进场动画 ----------------
 * ★★ 关键设计：**默认就是可见的**，`.reveal` 本身**不设 opacity:0**。
 *   动画只在 JS 加上 `.in` 时播一次。
 *   第一版把 `opacity:0` 写在 `.reveal` 上，结果：
 *     · fullPage 截图（元素从没进过视口）内容全不见了
 *     · 任何 IntersectionObserver 没触发的情况（打印、抓取、老浏览器）
 *       内容都是隐藏的 —— 这是拿"内容能不能看见"去赌一个动画
 *   现在的写法：动画挂了最多是"没有淡入效果"，内容一定看得见。
 */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.reveal.in { animation: fade-up .62s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .reveal.in { animation: none; }
  html { scroll-behavior: auto; }
}

/* 窄屏：顶部只留品牌 + 登录。电话去掉 —— 吸底的「在线咨询」本来就能拨号，
   挤在一起反而把校名截成"杭州市临安…"，看着像没做完。 */
@media (max-width: 560px) {
  .topbar .tel { display: none; }
  .topbar .brand { font-size: 14.5px; }
  .topbar .login { padding: 6px 13px; font-size: 13px; }
}

/* ============================================================
   电脑端（≥960px）：容器变宽、两栏/多栏、更大留白
   ============================================================ */
@media (min-width: 960px) {
  body { padding-bottom: 0; font-size: 16px; line-height: 1.75; }
  .wrap { max-width: 1140px; }
  .sec { padding: 84px 0 10px; }
  .sec-inner { padding: 0 40px; }
  .sticky { display: none; }              /* 电脑端按钮就在页面里，不用吸底 */

  .topbar { height: 68px; padding: 0 40px; }
  :root { --nav-h: 68px; }
  .topbar .nav-links { display: flex; }
  .topbar .right { margin-left: 0; }
  .topbar .brand { font-size: 16.5px; }

  .hero { padding: 96px 0 88px; }
  .hero-inner { padding: 0 40px; max-width: 1140px; margin: 0 auto; }
  .hero.has-img > .hero-inner { padding: 120px 40px 110px; }
  .hero .sub { font-size: 17.5px; margin-top: 22px; }
  .hero .cta { margin-top: 38px; }
  .hero .bullets { margin-top: 32px; }

  .sec-title { font-size: 30px; margin-bottom: 34px; letter-spacing: .03em; }
  .sec-title.center { font-size: 32px; }

  .courses { grid-template-columns: 1fr 1fr; gap: 22px; }
  .course .body { padding: 30px 28px 26px; }
  /* auto-fit：3 条优势就铺 3 栏，5 条铺 5 栏 —— 不会因为列数写死而留个空格子 */
  .grid-adv { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
  .adv { padding: 28px 24px; }
  .teachers { grid-template-columns: 1fr 1fr; gap: 20px; }
  .teacher { padding: 26px; }
  .gal { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 22px; }
  .step { flex-direction: column; gap: 14px; padding: 0; }
  .step .n { width: 36px; height: 36px; font-size: 15px; }
  .contact-cols { grid-template-columns: 1.25fr 1fr; gap: 48px; }
  .card { padding: 30px; margin-bottom: 22px; }

  .modal { align-items: center; }
  .modal-box { border-radius: var(--r-lg); max-width: 520px; padding: 34px 30px 30px; }
  .btn { padding: 16px 34px; }
  .ai-entry { max-width: 660px; }
  .ai-box { max-width: 620px; height: 76vh; }
  .ai-msg { max-width: 78%; }
}
