/* =========================================================
   艺林艺术培训学校 — 官网样式
   结构：1 变量 / 2 基础 / 3 布局 / 4 头部 / 5 首屏 / 6 通用区块
        7 课程 / 8 师资 / 9 成果 / 10 试听表单 / 11 校区 / 12 FAQ
        13 CTA / 14 页脚 / 15 动画与响应式
   ========================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #1c2b26;
  --ink-soft: #2f4a3f;
  --paper: #f7f3ea;
  --paper-2: #efe8da;
  --card: #fffdf8;
  --line: rgba(28, 43, 38, 0.13);
  --line-strong: rgba(28, 43, 38, 0.24);
  --gold: #a9824a;
  --cinnabar: #b4492f;
  --muted: #6d7a73;
  --shadow-sm: 0 1px 2px rgba(28, 43, 38, 0.05), 0 8px 24px -16px rgba(28, 43, 38, 0.35);
  --shadow-md: 0 2px 4px rgba(28, 43, 38, 0.04), 0 24px 48px -28px rgba(28, 43, 38, 0.4);
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --w: 1180px;
}

/* ---------- 2. 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.24;
  margin: 0;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

em { font-style: normal; }

::selection { background: rgba(180, 73, 47, 0.18); }

:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

/* ---------- 3. 布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap-narrow { max-width: 780px; }

.section { padding-block: clamp(64px, 8vw, 108px); }
.section-alt { background: var(--paper-2); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.5rem);
  margin-bottom: 14px;
}
.section-lead { color: var(--muted); font-size: 1.02rem; max-width: 62ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease,
    color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--cinnabar);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(180, 73, 47, 0.9);
}
.btn-primary:hover { background: #a83f27; }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-soft); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(28, 43, 38, 0.04); }

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- 4. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 234, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -26px rgba(28, 43, 38, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  color: var(--ink);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ink);
  color: #f7f3ea;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.16rem;
  letter-spacing: 0.14em;
}
.brand-text em {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a:not(.btn) {
  font-size: 0.93rem;
  color: var(--ink-soft);
  position: relative;
  padding-block: 4px;
}
.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav-links > a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 5. 首屏 ---------- */
.hero {
  padding-top: clamp(40px, 6vw, 76px);
  padding-bottom: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(169, 130, 74, 0.16), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.15rem, 4.9vw, 3.7rem);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero-lead {
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.15vw, 1.06rem);
  max-width: 30em;
  margin-bottom: 22px;
}

.hero-subjects {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  padding-left: 14px;
  border-left: 2px solid rgba(169, 130, 74, 0.55);
  margin: 0 0 26px;
  max-width: 34em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-note { font-size: 0.83rem; color: var(--muted); }

/* 首屏右侧插画 */
.hero-art { position: relative; }
.art-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 34px 30px 0;
  overflow: hidden;
}
.art-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 80% 0%, rgba(169, 130, 74, 0.14), transparent 60%);
  pointer-events: none;
}

.staff {
  position: relative;
  height: 132px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--line-strong) 0 1px,
    transparent 1px 26px
  );
  background-size: 100% 130px;
  background-position: 0 6px;
  border-radius: 6px;
}
.note {
  position: absolute;
  font-size: 1.55rem;
  color: var(--cinnabar);
  opacity: 0.85;
  animation: float 6s ease-in-out infinite;
}
.note-1 { left: 14%; top: 12%; animation-delay: 0s; }
.note-2 { left: 48%; top: 42%; animation-delay: 1.4s; color: var(--gold); }
.note-3 { left: 76%; top: 20%; animation-delay: 2.6s; }

.art-quote {
  position: relative;
  padding: 20px 0 26px;
  border-top: 1px dashed var(--line);
  margin-top: 6px;
}
.art-quote p {
  font-family: var(--font-display);
  font-size: 1.14rem;
  letter-spacing: 0.16em;
  margin-bottom: 4px;
}
.art-quote span { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.1em; }

.keyboard {
  height: 118px;
  margin-inline: -30px;
  background-color: #fbf8f1;
  background-image:
    repeating-linear-gradient(90deg, rgba(28, 43, 38, 0.18) 0 1px, transparent 1px 49px),
    repeating-linear-gradient(90deg, var(--ink) 0 27px, transparent 27px 49px);
  background-size: 49px 100%, 100% 62%;
  background-repeat: repeat-x, no-repeat;
  background-position: 0 0, 0 0;
  border-top: 2px solid var(--line-strong);
  box-shadow: inset 0 -14px 24px -18px rgba(28, 43, 38, 0.7);
}

.art-badge {
  position: absolute;
  right: -14px;
  bottom: 34px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transform: rotate(-2deg);
}
.art-badge strong { display: block; font-size: 0.92rem; letter-spacing: 0.04em; }
.art-badge span { font-size: 0.7rem; color: rgba(255, 255, 255, 0.68); letter-spacing: 0.1em; }

.stat-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip li {
  padding: 22px 18px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat-strip li:first-child { border-left: 0; }
.stat-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  color: var(--ink);
}
.stat-strip span { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; }

/* ---------- 7. 课程 ---------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.chip {
  font-family: inherit;
  font-size: 0.86rem;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.18s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.course-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease,
    opacity 0.2s ease;
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.course-card.is-hidden { display: none; }

.course-card.is-featured {
  background: linear-gradient(160deg, #fffdf8 0%, #fbf4e6 100%);
  border-color: rgba(169, 130, 74, 0.45);
}
.course-card.is-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(169, 130, 74, 0.18);
  pointer-events: none;
}

.course-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.course-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.7);
  font-family: var(--font-display);
  font-size: 1.14rem;
  line-height: 1;
  color: var(--ink);
}
.course-card.is-featured .course-icon {
  border-color: rgba(169, 130, 74, 0.55);
  color: var(--cinnabar);
  background: rgba(169, 130, 74, 0.08);
}
.course-flag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  border: 1px solid rgba(169, 130, 74, 0.5);
  border-radius: 999px;
  padding: 2px 9px;
}

.course-card h3 {
  font-size: 1.28rem;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.course-card h3 em {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.course-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.65;
}
.course-meta {
  list-style: none;
  padding: 14px 0 0;
  margin: auto 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.course-meta li { display: flex; gap: 10px; }
.course-meta span {
  flex: none;
  width: 34px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

/* 三列桌面下，奇数的最后一张居中，避免右下角空一格 */
@media (min-width: 1025px) {
  .course-card:last-child:nth-child(3n + 1) { grid-column: 2; }
  .price-block:last-child:nth-child(3n + 1) { grid-column: 2; }
}

.pricing-note {
  margin-top: 26px;
  max-width: 74ch;
  font-size: 0.88rem;
  color: var(--muted);
  background: rgba(169, 130, 74, 0.08);
  border-left: 2px solid var(--gold);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
}
.pricing-note strong { color: var(--ink-soft); }

/* ---------- 8. 师资 ---------- */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.teacher-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.teacher-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tint, var(--ink));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 16px;
  box-shadow: inset 0 -8px 16px -10px rgba(0, 0, 0, 0.6);
}
.teacher-card h3 { font-size: 1.14rem; margin-bottom: 3px; }
.teacher-role {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 10px;
}
.teacher-bio { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.65; }

.teacher-facts {
  margin: 0 0 4px;
  display: grid;
  gap: 8px;
}
.teacher-facts > div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}
.teacher-facts dt {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 3px;
}
.teacher-facts dd {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* 双人师资大卡片 */
.teacher-grid--two { grid-template-columns: repeat(2, 1fr); gap: 22px; }
.teacher-card--lg { padding: 30px 28px; }
.teacher-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.teacher-head .avatar {
  margin-bottom: 0;
  width: 96px;
  height: 96px;
  font-size: 1.85rem;
}
.teacher-head .avatar-photo {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 20px -14px rgba(28, 43, 38, 0.8);
  background: var(--paper-2);
}
.teacher-head .avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.teacher-head h3 { font-size: 1.32rem; margin-bottom: 2px; }
.teacher-head .teacher-role { margin-bottom: 0; font-size: 0.74rem; line-height: 1.5; }

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.teacher-tags li {
  font-size: 0.74rem;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(44, 74, 63, 0.07);
  color: var(--ink-soft);
}
.teacher-quote {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.teacher-note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 14px;
  border-left: 2px solid var(--line-strong);
}

/* ---------- 价格公示 ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.price-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}
.price-block h3 {
  font-size: 1.06rem;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.price-block dl { margin: 0; display: grid; gap: 8px; }
.price-block dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
}
.price-block dt { color: var(--ink-soft); }
.price-block dt em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.price-block dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  display: grid;
  justify-items: end;
  line-height: 1.3;
  color: var(--ink);
}
.price-block dd em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.price-notes {
  margin-top: 24px;
  display: grid;
  gap: 6px;
  max-width: 82ch;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.75;
}
.price-notes p { margin: 0; }
.price-notes strong { color: var(--ink-soft); }

/* ---------- 教师荣誉 ---------- */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.honor-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.honor-card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.honor-sub {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 14px;
}
.honor-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.honor-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
}
.honor-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.honor-list span {
  font-size: 0.73rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.honor-note { margin-top: 20px; font-size: 0.88rem; }
.honor-note p { margin-bottom: 4px; }

/* ---------- 10. 试听表单 ---------- */
.section-ink {
  background: var(--ink);
  color: #f4f0e6;
}
.section-ink .eyebrow { color: #cfa96a; }
.section-ink h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }
.section-ink p { color: rgba(244, 240, 230, 0.74); }

.trial-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 26px;
  display: grid;
  gap: 10px;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: rgba(244, 240, 230, 0.86);
}
.check-list li::before {
  content: "✓";
  color: #cfa96a;
  font-size: 0.8rem;
  margin-top: 4px;
}

.trial-contact { font-size: 0.9rem; }
.trial-contact a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.trial-contact a:hover { border-color: #fff; }

.trial-form {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
}
.form-title { font-size: 1.22rem; margin-bottom: 20px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.req { color: var(--cinnabar); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 11px 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(28, 43, 38, 0.1);
}
.field input::placeholder,
.field textarea::placeholder { color: #a3aca7; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.error {
  font-size: 0.76rem;
  color: var(--cinnabar);
  margin: 5px 0 0;
  min-height: 0;
}
.field.has-error input,
.field.has-error select {
  border-color: var(--cinnabar);
  box-shadow: 0 0 0 3px rgba(180, 73, 47, 0.1);
}

.form-privacy {
  font-size: 0.72rem !important;
  color: var(--muted) !important;
  margin-top: 12px;
  line-height: 1.6;
}

.form-success {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(44, 74, 63, 0.08);
  border: 1px solid rgba(44, 74, 63, 0.25);
}
.form-success strong { display: block; margin-bottom: 6px; font-size: 0.95rem; }
.form-success p { font-size: 0.84rem; color: var(--ink-soft); }
.form-success pre {
  font-family: var(--font-body);
  font-size: 0.8rem;
  white-space: pre-wrap;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0;
  color: var(--ink);
}
.form-success .btn { margin-top: 4px; }
.form-success[hidden] { display: none; }

/* ---------- 11. 校区 ---------- */
.campus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: stretch;
}

.campus-info dl { margin: 0 0 24px; }
.campus-info dl > div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
}
.campus-info dl > div:first-child { border-top: 1px dashed var(--line); }
.campus-info dt {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.campus-info dd { margin: 0; font-size: 0.92rem; line-height: 1.7; }
.campus-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.map-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #e8e2d4;
  border: 1px solid var(--line);
  min-height: 340px;
  isolation: isolate;
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28, 43, 38, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 43, 38, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
}
.map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 50%, rgba(255, 255, 255, 0.65), transparent 75%);
}
.map-road {
  position: absolute;
  z-index: 1;
  background: #fbf8f1;
  color: rgba(28, 43, 38, 0.5);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  display: flex;
  align-items: center;
}
.road-h {
  left: -10%;
  right: -10%;
  top: 46%;
  height: 26px;
  padding-left: 10%;
  box-shadow: 0 0 0 1px rgba(28, 43, 38, 0.12), 0 6px 14px -10px rgba(0, 0, 0, 0.5);
}
.road-v {
  top: -10%;
  bottom: -10%;
  left: 54%;
  width: 24px;
  writing-mode: vertical-rl;
  justify-content: center;
  padding-top: 8%;
  box-shadow: 0 0 0 1px rgba(28, 43, 38, 0.12);
}
.map-pin {
  position: absolute;
  z-index: 2;
  left: 54%;
  top: 46%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cinnabar);
  border: 3px solid #fff;
  box-shadow: 0 0 0 8px rgba(180, 73, 47, 0.16), 0 6px 14px -6px rgba(0, 0, 0, 0.6);
  animation: pulse 2.6s ease-out infinite;
}
.pin-label {
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.map-hint {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 0.7rem;
  color: var(--muted);
  margin: 0;
}

/* 校区实景照片 */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.photo-strip figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
}
.photo-strip picture {
  display: block;
  width: 100%;
  height: 100%;
}
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.photo-strip figure:hover img { transform: scale(1.04); }
.photo-strip figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 56px 18px 14px;
  display: grid;
  gap: 2px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  background: linear-gradient(
    to top,
    rgba(12, 18, 15, 0.94) 0%,
    rgba(12, 18, 15, 0.62) 40%,
    rgba(12, 18, 15, 0.12) 72%,
    transparent 100%
  );
}
.photo-strip strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}
.photo-strip span { font-size: 0.74rem; color: rgba(255, 255, 255, 0.82); }

/* ---------- 12. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--gold);
  transition: transform 0.22s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 12px 0 2px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 66ch;
  line-height: 1.8;
}

/* ---------- 13. CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, #24352e, #1a2621 55%, #2b2018);
  color: #f4f0e6;
  padding-block: clamp(44px, 6vw, 72px);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-inner h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: #fff; margin-bottom: 6px; }
.cta-inner p { margin: 0; color: rgba(244, 240, 230, 0.7); font-size: 0.92rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 14. 页脚 ---------- */
.site-footer {
  background: var(--paper);
  padding-top: clamp(44px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 8px;
}
.footer-brand p { font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 4px; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.footer-col a:hover { color: var(--cinnabar); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }

/* ---------- 15. 动画与响应式 ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(-4deg); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(180, 73, 47, 0.28), 0 6px 14px -6px rgba(0, 0, 0, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(180, 73, 47, 0), 0 6px 14px -6px rgba(0, 0, 0, 0.6); }
  100% { box-shadow: 0 0 0 0 rgba(180, 73, 47, 0), 0 6px 14px -6px rgba(0, 0, 0, 0.6); }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .course-grid,
  .teacher-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 520px; }
}

@media (max-width: 860px) {
  .trial-grid,
  .campus-grid { grid-template-columns: 1fr; }
  .result-stats { grid-template-columns: repeat(2, 1fr); }
  .map-card { min-height: 280px; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(28, 43, 38, 0.7);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links > a:not(.btn) {
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
  }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 14px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip li:nth-child(3) { border-left: 0; }
  .stat-strip li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .wrap { padding-inline: 18px; }
  .course-grid,
  .teacher-grid,
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .art-badge { right: 8px; bottom: 24px; }
  .faq summary { font-size: 0.98rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* 打印时去掉装饰，方便导出招生简章 */
@media print {
  .site-header,
  .hero-art,
  .cta-band,
  .btn,
  .filter { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 20px; }
}

/* ---------- 新增区块的响应式 ---------- */
@media (max-width: 1024px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .teacher-grid--two { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .price-grid,
  .honor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .photo-strip { grid-template-columns: 1fr; }
}


/* ---------- 师资：九宫格 ---------- */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.faculty-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.faculty-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.faculty-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  overflow: hidden;
}
.faculty-photo picture { display: block; width: 100%; height: 100%; }
.faculty-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.faculty-card:hover .faculty-photo img { transform: scale(1.03); }

.faculty-photo--initial {
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 30% 10%, rgba(169, 130, 74, 0.18), transparent 62%),
    linear-gradient(160deg, #f3eddd, #e6dcc6 78%);
}
.faculty-photo--initial span {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.4rem);
  color: rgba(28, 43, 38, 0.55);
  letter-spacing: 0.04em;
}

.faculty-body {
  padding: 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.faculty-body h3 { font-size: 1.14rem; letter-spacing: 0.02em; }
.faculty-role {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  line-height: 1.55;
}
.faculty-facts {
  display: grid;
  gap: 4px;
  margin: 2px 0 6px;
}
.faculty-facts > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  font-size: 0.8rem;
  line-height: 1.6;
}
.faculty-facts dt { color: var(--muted); font-size: 0.72rem; padding-top: 1px; }
.faculty-facts dd { margin: 0; color: var(--ink-soft); }

.faculty-more {
  margin-top: auto;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}
.faculty-more summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--cinnabar);
  letter-spacing: 0.04em;
}
.faculty-more summary::-webkit-details-marker { display: none; }
.faculty-more summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1rem;
  line-height: 1;
}
.faculty-more[open] summary::after { content: "−"; }
.faculty-more .prose {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.faculty-more .prose p { margin: 0 0 8px; }
.faculty-more .prose h4 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 10px 0 4px;
  font-weight: 600;
}
.faculty-more .prose ul { margin: 0; padding-left: 16px; }
.faculty-more .prose li { margin-bottom: 3px; }

@media (max-width: 1024px) {
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .faculty-grid { grid-template-columns: 1fr; }
}


/* 书法作品：完整展示，不裁切 */
.faculty-photo--art picture { background: #efe9dc; }
.faculty-photo--art img {
  object-fit: contain;
  padding: 14px;
  background: #efe9dc;
}
