/* ============================================================
   大琨艺术培训学校 · 站点样式
   设计取向：宣纸底 + 墨色字 + 朱砂点缀，标题用宋体，正文用黑体
   纯静态，无外部依赖
   ============================================================ */

* { box-sizing: border-box; }

:root {
  --paper: #f8f4ec;
  --paper-2: #f1eadd;
  --white: #fffdf8;
  --ink: #1d1b18;
  --ink-2: #4a453e;
  --ink-3: #8b8276;
  --line: #ded4c1;
  --line-2: #ece3d2;
  --red: #9c2e24;
  --red-2: #7f241c;
  --gold: #97783f;
  --wrap: 1130px;
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --shadow-s: 0 1px 2px rgba(29, 27, 24, .05);
  --shadow-m: 0 18px 40px -26px rgba(29, 27, 24, .45);
}

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(120, 100, 70, .035) 1px, transparent 1px);
  background-size: 20px 20px;
  color: var(--ink);
  font: 16.5px/1.85 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

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

/* ---------- 顶部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(248, 244, 236, .9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 26px;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-seal {
  width: 40px; height: 40px; flex: 0 0 40px;
  background: var(--red); color: #fff;
  font: 600 20px/1 var(--serif);
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 2px 6px rgba(124, 36, 28, .25);
}
.brand-text strong {
  display: block; font-family: var(--serif); font-size: 19px;
  letter-spacing: 1.5px; line-height: 1.2; font-weight: 600;
}
.brand-text span {
  display: block; font-size: 11.5px; color: var(--ink-3);
  letter-spacing: 2.4px; margin-top: 3px;
}

.nav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; min-width: 0; }
.nav a {
  position: relative; color: var(--ink-2); font-size: 15px;
  padding: 8px 12px; border-radius: 2px; letter-spacing: .5px;
  transition: color .18s;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--red); font-weight: 600; }
.nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 2px; background: var(--red);
}

.header-tel {
  flex: 0 0 auto; white-space: nowrap;
  font-weight: 700; color: var(--red); font-size: 16px;
  padding: 9px 16px; border: 1px solid rgba(156, 46, 36, .35);
  border-radius: 2px; letter-spacing: .5px;
  transition: background .18s;
}
.header-tel:hover { background: rgba(156, 46, 36, .07); text-decoration: none; }

/* ---------- 区块与标题 ---------- */
main { padding-bottom: 0; }

section { padding: 68px 0; }
section.tight { padding: 40px 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; }

h1 {
  font-size: 38px; line-height: 1.32; margin: 0 0 18px;
  letter-spacing: 1px;
}
h2 { font-size: 27px; line-height: 1.45; margin: 0 0 12px; letter-spacing: .8px; }
h2::before {
  content: ""; display: block; width: 28px; height: 2px;
  background: var(--red); margin-bottom: 16px;
}
h3 { font-size: 20px; line-height: 1.5; margin: 0 0 8px; letter-spacing: .4px; }

h2 + .sub, h1 + .lead {
  color: var(--ink-2); font-size: 17px; margin: 0 0 34px; max-width: 44em;
}
p { max-width: 46em; text-wrap: pretty; }

.eyebrow {
  font-size: 12px; letter-spacing: 3px; color: var(--gold);
  margin: 0 0 16px; text-transform: uppercase;
}

.divider { height: 1px; background: var(--line-2); border: 0; margin: 0; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 76px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(156, 46, 36, .07), transparent 70%),
    linear-gradient(180deg, #fdfaf3 0%, var(--paper) 100%);
}
.hero::after {
  content: "書"; position: absolute; right: -30px; bottom: -90px;
  font: 700 340px/1 var(--serif);
  color: rgba(29, 27, 24, .04);
  pointer-events: none; user-select: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero + section { padding-top: 46px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.28; letter-spacing: 2px; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { font-size: 17.5px; color: var(--ink-2); margin-bottom: 0; max-width: 30em; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; border: 1px solid var(--line);
  border-radius: 2px; box-shadow: var(--shadow-m);
  background: var(--white);
}
.hero-media .tag {
  position: absolute; left: -14px; bottom: 22px;
  background: var(--red); color: #fff;
  font-size: 12.5px; letter-spacing: 2px;
  padding: 8px 16px; border-radius: 2px;
  box-shadow: 0 6px 16px -8px rgba(124, 36, 28, .8);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 34px; }
.chip {
  font-size: 13.5px; color: var(--ink-2);
  border: 1px solid var(--line); background: rgba(255, 253, 248, .7);
  border-radius: 2px; padding: 6px 12px; letter-spacing: .3px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px; border-radius: 2px;
  font-size: 16px; font-weight: 600; letter-spacing: .8px;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.btn-primary {
  background: linear-gradient(180deg, #a93328, var(--red));
  color: #fff; box-shadow: 0 8px 20px -12px rgba(124, 36, 28, .9);
}
.btn-primary:hover {
  background: var(--red-2); color: #fff; text-decoration: none;
  transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(124, 36, 28, .9);
}
.btn-ghost { border: 1px solid var(--ink-3); color: var(--ink); }
.btn-ghost:hover { background: var(--white); text-decoration: none; border-color: var(--ink-2); }

/* ---------- 结论框 ---------- */
.fit-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 2px;
  padding: 32px 36px;
  box-shadow: var(--shadow-s);
}
.fit-box h3 { font-size: 21px; margin-bottom: 16px; letter-spacing: .6px; }
.fit-box p { margin: 0 0 12px; color: var(--ink-2); font-size: 15.8px; }
.fit-box p:last-child { margin-bottom: 0; }
.fit-box strong { color: var(--ink); font-weight: 600; }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--ink);
  border-radius: 2px;
  padding: 28px 28px 24px;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover {
  border-top-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
}
.card .meta {
  font-size: 12px; color: var(--ink-3); letter-spacing: 1.8px;
  margin-bottom: 14px;
}
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 18px; }
.card .more { margin-top: auto; font-size: 14.5px; font-weight: 600; color: var(--red); }
.card .more:hover { text-decoration: none; letter-spacing: .5px; }

.card-plain { background: transparent; border: 0; padding: 0; box-shadow: none; }
.card-plain:hover { transform: none; box-shadow: none; }

/* ---------- 步骤 ---------- */
.steps { counter-reset: s; display: grid; gap: 26px; }
.step { position: relative; padding-left: 60px; }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line);
  color: var(--red);
  font: 600 15px/1 var(--serif); letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 18.5px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.3px; }

/* ---------- 问答 ---------- */
body { counter-reset: q; }
.faq-item {
  counter-increment: q;
  position: relative;
  border-bottom: 1px solid var(--line-2);
  padding: 28px 0 28px 62px;
}
.faq-item:first-of-type { border-top: 1px solid var(--line-2); }
.faq-item:last-child { border-bottom: 1px solid var(--line-2); }
.faq-item::before {
  content: counter(q, decimal-leading-zero);
  position: absolute; left: 0; top: 30px;
  font: 600 17px/1 var(--serif); color: var(--red); opacity: .55;
  letter-spacing: 1px;
}
.faq-item h3 { font-size: 19px; margin-bottom: 10px; }
.faq-item p { margin: 0; color: var(--ink-2); font-size: 15.8px; }
.faq-item p + p { margin-top: 8px; }

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--line);
  border-radius: 2px; background: var(--white);
  box-shadow: var(--shadow-s);
}
table { width: 100%; border-collapse: collapse; font-size: 15.3px; min-width: 640px; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th {
  background: var(--paper-2); font-weight: 600; font-size: 13px;
  letter-spacing: 1.4px; white-space: nowrap; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
tbody tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; font-weight: 700; color: var(--red); font-family: var(--serif); font-size: 19px; }

/* ---------- 提示条 ---------- */
.note {
  background: var(--paper-2);
  border-radius: 2px; padding: 20px 24px;
  font-size: 14.8px; color: var(--ink-2); line-height: 1.9;
  border-left: 2px solid var(--gold);
}
.note strong { color: var(--ink); }

/* ---------- 信息列表 ---------- */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: grid; grid-template-columns: 104px 1fr; gap: 18px;
  padding: 16px 0; border-bottom: 1px solid var(--line-2);
  font-size: 15.5px; align-items: start;
}
.info-list li:last-child { border-bottom: 0; }
.info-list .k { font-family: var(--serif); color: var(--ink-3); font-size: 14.5px; letter-spacing: 1.2px; padding-top: 2px; }
.info-list .v { color: var(--ink); }

/* ---------- 图片 ---------- */
.figure {
  margin: 34px auto 0; max-width: 680px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 2px; overflow: hidden; box-shadow: var(--shadow-s);
}
.figure.is-portrait { max-width: 420px; }
.figure img { width: 100%; height: auto; display: block; }
.figure figcaption {
  font-size: 13.5px; line-height: 1.75; color: var(--ink-3);
  padding: 12px 18px; border-top: 1px solid var(--line-2);
  background: #fffefa;
}

/* ---------- 学生作品 ---------- */
.gallery {
  display: grid; gap: 24px; margin-top: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: start;
}
.gallery .figure {
  margin: 0; max-width: none;
  padding: 10px 10px 0; background: var(--white);
  transition: transform .25s, box-shadow .25s;
}
.gallery .figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.gallery .figure figcaption { font-size: 12.8px; padding: 10px 8px 12px; border-top: 0; background: transparent; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #17150f; color: #b8b0a3;
  padding: 64px 0 30px; font-size: 14.5px;
  border-top: 3px solid var(--red);
}
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 44px; }
.foot-grid h4 {
  color: #efe7d8; font-family: var(--serif); font-size: 15px;
  margin: 0 0 16px; font-weight: 600; letter-spacing: 1.5px;
}
.site-footer p { margin: 0 0 10px; line-height: 2; }
.site-footer a { color: #cfc6b6; }
.site-footer a:hover { color: #fff; }
.foot-brand {
  font-family: var(--serif); font-size: 22px; color: #f3ece0;
  font-weight: 600; letter-spacing: 2px; margin-bottom: 16px;
}
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin-bottom: 10px; }
.copyright {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid #2d2921;
  color: #7d7568; font-size: 12.5px; letter-spacing: .5px;
}

/* ---------- 面包屑 ---------- */
.crumb { font-size: 12.5px; color: var(--ink-3); padding: 20px 0 0; letter-spacing: .5px; }
.crumb a { color: var(--ink-3); }


/* ---------- 子页页头 ---------- */
.page-intro {
  padding: 56px 0 16px;
  position: relative;
}
.page-intro h1 { font-size: 36px; max-width: 22em; }
.page-intro .lead { margin-bottom: 0; }
.page-intro::after {
  content: ""; position: absolute; left: 24px; bottom: 0;
  width: 56px; height: 2px; background: var(--red);
}
@media (max-width: 860px) {
  .page-intro { padding: 34px 0 12px; }
  .page-intro h1 { font-size: 25px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-media { order: -1; }
  .hero h1 { font-size: 32px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .header-inner { flex-wrap: wrap; gap: 4px 16px; padding: 12px 0 10px; }
  .nav { order: 3; width: 100%; max-width: 100%; min-width: 0; margin-left: 0; gap: 0; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .nav a { padding: 6px 10px; font-size: 14px; white-space: nowrap; }
  .header-tel { margin-left: auto; font-size: 15px; padding: 7px 12px; }
  .brand-seal { width: 34px; height: 34px; flex: 0 0 34px; font-size: 17px; }
  .brand-text strong { font-size: 17px; }

  .hero { padding: 44px 0 44px; }
  .hero::after { font-size: 220px; bottom: -60px; }
  .hero h1 { font-size: 28px; letter-spacing: 1px; }
  .hero .lead { font-size: 16px; }
  .chips { margin: 22px 0 26px; gap: 6px; }
  .chip { font-size: 12.5px; padding: 5px 10px; }
  .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }

  h1 { font-size: 27px; }
  h2 { font-size: 22px; }
  h2::before { width: 22px; margin-bottom: 12px; }
  section { padding: 44px 0; }
  .fit-box { padding: 24px 22px; }
  .fit-box h3 { font-size: 18px; }
  .card { padding: 22px 20px 20px; }
  .card h3 { font-size: 19px; }
  .faq-item { padding: 24px 0 24px 46px; }
  .faq-item::before { top: 26px; font-size: 15px; }
  .step { padding-left: 52px; }
  .step::before { width: 36px; height: 36px; font-size: 13px; }
  .info-list li { grid-template-columns: 84px 1fr; gap: 12px; font-size: 15px; }
  .info-list .k { font-size: 13.5px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .site-footer { padding: 44px 0 24px; }
  .gallery { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
  .figure { margin-top: 26px; }
}
