/* ============================================================
   古凤林书法 · 国风设计系统
   墨色 / 米白 / 朱红
   ============================================================ */

:root {
  --ink: #211d19;          /* 墨色 */
  --ink-soft: #453f38;     /* 墨色·柔 */
  --ink-faint: #7d7468;    /* 墨色·淡 */
  --paper: #f6f1e7;        /* 米白·宣纸 */
  --paper-card: #fdfbf5;   /* 卡纸 */
  --paper-deep: #ede4d0;   /* 米白·深 */
  --cinnabar: #a63a2b;     /* 朱红·朱砂 */
  --cinnabar-deep: #7c2a20;
  --cinnabar-light: #c4574a;
  --gold: #b08d57;         /* 赭金 */
  --dai: #37424e;          /* 黛青 */
  --line: #ddd2bc;         /* 边框 */
  --shadow: 0 2px 6px rgba(33, 29, 25, .05), 0 14px 34px rgba(33, 29, 25, .07);
  --shadow-hover: 0 4px 10px rgba(33, 29, 25, .07), 0 22px 48px rgba(33, 29, 25, .12);
  --radius: 6px;
  --font-kai: 'Ma Shan Zheng', 'Kaiti SC', 'KaiTi', 'STKaiti', '楷体', serif;
  --font-song: 'Noto Serif SC', 'Songti SC', 'SimSun', '宋体', serif;
  --font-hei: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
  --maxw: 1140px;
}

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

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

body {
  font-family: var(--font-hei);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  background-color: var(--paper);
  /* 宣纸纹理：极淡的纤维噪点 */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- 通用文字 ---------- */
.kai { font-family: var(--font-kai); font-weight: 400; }
.song { font-family: var(--font-song); }
.text-cinnabar { color: var(--cinnabar); }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 241, 231, .93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ""; display: block; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cinnabar) 30%, var(--cinnabar) 70%, transparent);
  opacity: .35;
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-seal {
  width: 42px; height: 42px; flex: none;
  background: var(--cinnabar); color: var(--paper);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-song); font-weight: 700; font-size: 24px;
  box-shadow: inset 0 0 0 1.5px rgba(246, 241, 231, .75), 0 2px 6px rgba(124, 42, 32, .3);
  position: relative;
}
.brand-seal::after {
  content: ""; position: absolute; inset: 3.5px;
  border: 1px solid rgba(246, 241, 231, .55); border-radius: 5px;
}
.brand-name { font-family: var(--font-kai); font-size: 26px; color: var(--ink); line-height: 1.1; }
.brand-sub { font-size: 11px; letter-spacing: .28em; color: var(--ink-faint); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  font-family: var(--font-song); font-size: 16.5px; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 4px; position: relative;
  transition: color .25s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--cinnabar); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.main-nav a:hover, .main-nav a.active { color: var(--cinnabar); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.nav-cta {
  margin-left: 12px;
  background: var(--cinnabar); color: var(--paper) !important;
  padding: 9px 20px !important; border-radius: 4px;
  font-family: var(--font-song); font-size: 15.5px; letter-spacing: .05em;
  box-shadow: 0 3px 10px rgba(124, 42, 32, .28);
  transition: background .25s, transform .25s, box-shadow .25s;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--cinnabar-deep); transform: translateY(-1px); box-shadow: 0 5px 14px rgba(124, 42, 32, .35); }

/* 汉堡按钮 */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--paper-card); border-radius: 4px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 88px;
  background:
    radial-gradient(ellipse 80% 60% at 78% 18%, rgba(179, 141, 87, .10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 8% 85%, rgba(166, 58, 43, .06), transparent 60%),
    var(--paper);
}
/* 背景水墨大字 */
.hero-watermark {
  position: absolute; right: -30px; top: 40px;
  font-family: var(--font-kai); font-size: clamp(180px, 26vw, 340px);
  color: var(--ink); opacity: .045; line-height: 1;
  writing-mode: vertical-rl; letter-spacing: .08em; pointer-events: none; user-select: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-song); font-size: 14.5px; letter-spacing: .22em;
  color: var(--cinnabar); border: 1px solid rgba(166, 58, 43, .35);
  padding: 6px 16px; border-radius: 100px; background: rgba(166, 58, 43, .05);
  margin-bottom: 26px;
}
.hero-eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--cinnabar); }
.hero-title {
  font-family: var(--font-kai); font-weight: 400;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.24; color: var(--ink); letter-spacing: .04em;
}
.hero-title .accent { color: var(--cinnabar); }
.hero-desc {
  margin: 26px 0 36px; font-size: 17px; color: var(--ink-soft);
  max-width: 34em; line-height: 1.9;
}
.hero-desc strong { color: var(--ink); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-song); font-size: 16.5px; letter-spacing: .06em;
  padding: 13px 30px; border-radius: 4px; cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  border: none;
}
.btn-primary {
  background: var(--cinnabar); color: var(--paper);
  box-shadow: 0 4px 14px rgba(124, 42, 32, .32);
}
.btn-primary:hover { background: var(--cinnabar-deep); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(124, 42, 32, .38); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-paper {
  background: var(--paper); color: var(--cinnabar-deep);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.btn-paper:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.btn-ghost {
  background: transparent; color: var(--paper); border: 1.5px solid rgba(246, 241, 231, .55);
}
.btn-ghost:hover { border-color: var(--paper); background: rgba(246, 241, 231, .12); transform: translateY(-2px); }

/* Hero 右侧：印章 + 圆相 */
.hero-art { display: flex; align-items: center; justify-content: center; position: relative; }
.enso {
  width: min(300px, 68vw); aspect-ratio: 1; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.enso svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.enso-text {
  position: relative; z-index: 1; text-align: center;
  font-family: var(--font-kai); color: var(--ink);
}
.enso-text .big { font-size: 58px; line-height: 1.15; display: block; }
.enso-text .small { font-family: var(--font-song); font-size: 13.5px; letter-spacing: .3em; color: var(--ink-faint); margin-top: 10px; display: block; }
.hero-seal {
  position: absolute; right: 4%; bottom: 2%;
  width: 84px; height: 84px; background: var(--cinnabar);
  border-radius: 10px; transform: rotate(-6deg);
  display: grid; grid-template-columns: 1fr 1fr; place-items: center;
  font-family: var(--font-song); font-weight: 700; font-size: 30px; color: var(--paper);
  box-shadow: 0 6px 18px rgba(124, 42, 32, .35);
}
.hero-seal span { line-height: 1; }
.hero-seal::after { content: ""; position: absolute; inset: 4px; border: 1.5px solid rgba(246, 241, 231, .5); border-radius: 7px; }

/* Hero 底部墨迹过渡 */
.hero-fade { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-fade svg { width: 100%; height: 56px; display: block; }

/* ---------- 章节标题 ---------- */
.section { padding: 84px 0; }
.section-deep { background: var(--paper-deep); }
.section-ink { background: var(--ink); color: rgba(246, 241, 231, .92); }

.section-head { text-align: center; margin-bottom: 56px; position: relative; }
.section-seal {
  width: 46px; height: 46px; margin: 0 auto 16px;
  background: var(--cinnabar); color: var(--paper); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-song); font-weight: 700; font-size: 24px;
  box-shadow: inset 0 0 0 1.5px rgba(246, 241, 231, .7), 0 3px 8px rgba(124, 42, 32, .25);
  position: relative;
}
.section-seal::after { content: ""; position: absolute; inset: 3.5px; border: 1px solid rgba(246, 241, 231, .5); border-radius: 5px; }
.section-title {
  font-family: var(--font-song); font-weight: 700;
  font-size: clamp(26px, 4vw, 36px); color: var(--ink); letter-spacing: .06em;
}
.section-ink .section-title { color: var(--paper); }
.section-sub {
  margin-top: 10px; font-size: 14px; letter-spacing: .32em;
  color: var(--ink-faint); text-transform: uppercase;
}
.section-ink .section-sub { color: rgba(246, 241, 231, .5); }
.brush-divider {
  margin: 18px auto 0; width: 120px; height: 10px; display: block;
}

/* ---------- 核心优势 ---------- */
.advantage-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.advantage-card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px 30px; text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.advantage-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cinnabar), var(--cinnabar-light));
  transform: scaleX(0); transition: transform .35s;
}
.advantage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(166, 58, 43, .3); }
.advantage-card:hover::before { transform: scaleX(1); }
.advantage-icon {
  width: 66px; height: 66px; margin: 0 auto 18px;
  border-radius: 50%; background: rgba(166, 58, 43, .08);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-kai); font-size: 32px; color: var(--cinnabar);
  border: 1.5px dashed rgba(166, 58, 43, .4);
}
.advantage-card h3 {
  font-family: var(--font-song); font-size: 19px; color: var(--ink);
  margin-bottom: 10px; letter-spacing: .05em;
}
.advantage-card p { font-size: 14.5px; color: var(--ink-faint); line-height: 1.85; }

/* ---------- 课程卡片 ---------- */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.course-card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.course-banner {
  padding: 26px 24px 20px; position: relative;
  background: linear-gradient(135deg, var(--paper-deep), #f3ecdd);
  border-bottom: 1px solid var(--line);
}
.course-banner .glyph {
  font-family: var(--font-kai); font-size: 46px; color: var(--cinnabar);
  line-height: 1; display: block; margin-bottom: 8px;
}
.course-banner h3 { font-family: var(--font-song); font-size: 21px; color: var(--ink); letter-spacing: .04em; }
.course-tag {
  position: absolute; top: 16px; right: 16px;
  font-size: 12px; color: var(--cinnabar-deep);
  background: rgba(166, 58, 43, .1); border: 1px solid rgba(166, 58, 43, .25);
  padding: 3px 10px; border-radius: 100px; letter-spacing: .05em;
}
.course-body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.course-body p { font-size: 14.5px; color: var(--ink-faint); line-height: 1.85; flex: 1; }
.course-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px;
}
.course-meta span {
  font-size: 12.5px; color: var(--dai); background: rgba(55, 66, 78, .07);
  padding: 3px 10px; border-radius: 3px; letter-spacing: .03em;
}
.course-link {
  font-family: var(--font-song); font-size: 15px; color: var(--cinnabar);
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  transition: gap .25s;
}
.course-link:hover { gap: 12px; }
.course-link::after { content: "→"; }

/* ---------- 学员作品 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-item { text-align: center; }
.work-frame {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); position: relative;
  background:
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(33, 29, 25, .045) 26px 27px),
    linear-gradient(160deg, #f7f2e6, #ece2cd);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.work-item:hover .work-frame { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow-hover); }
.work-frame .ink-char {
  font-family: var(--font-kai); font-size: clamp(72px, 10vw, 110px);
  color: rgba(33, 29, 25, .14); line-height: 1; user-select: none;
}
.work-frame .photo-tag {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 12px; color: var(--ink-faint);
  background: rgba(253, 251, 245, .85); border: 1px dashed var(--line);
  padding: 3px 10px; border-radius: 3px; letter-spacing: .08em;
}
.work-item h4 {
  font-family: var(--font-song); font-size: 16.5px; color: var(--ink);
  margin: 16px 0 4px; letter-spacing: .03em;
}
.work-item p { font-size: 13.5px; color: var(--ink-faint); }

/* ---------- 作品筛选 ---------- */
.filter-bar { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 46px; }
.filter-btn {
  font-family: var(--font-song); font-size: 15px; letter-spacing: .05em;
  padding: 8px 22px; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--paper-card); color: var(--ink-soft);
  cursor: pointer; transition: border-color .25s, color .25s, background .25s, box-shadow .25s;
}
.filter-btn:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.filter-btn.active {
  background: var(--cinnabar); border-color: var(--cinnabar); color: var(--paper);
  box-shadow: 0 3px 10px rgba(124, 42, 32, .25);
}
.work-item.hide { display: none; }

/* ---------- CTA 横幅 ---------- */
.cta-banner { position: relative; overflow: hidden; }
.cta-banner::before {
  content: "書"; position: absolute; right: -20px; bottom: -70px;
  font-family: var(--font-kai); font-size: 300px; line-height: 1;
  color: rgba(246, 241, 231, .05); pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 1; text-align: center;
  max-width: 760px; margin: 0 auto; padding: 88px 24px;
}
.cta-kicker { font-family: var(--font-song); letter-spacing: .4em; font-size: 14px; color: var(--cinnabar-light); margin-bottom: 18px; }
.cta-title {
  font-family: var(--font-kai); font-size: clamp(34px, 5.4vw, 52px);
  color: var(--paper); line-height: 1.3; margin-bottom: 20px; letter-spacing: .05em;
}
.cta-desc { color: rgba(246, 241, 231, .72); font-size: 16px; margin-bottom: 38px; line-height: 1.9; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 联系信息（首页） ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.contact-card .icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(166, 58, 43, .08); color: var(--cinnabar);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
  border: 1px solid rgba(166, 58, 43, .25);
}
.contact-card h3 { font-family: var(--font-song); font-size: 18px; color: var(--ink); margin-bottom: 8px; letter-spacing: .05em; }
.contact-card p { font-size: 15px; color: var(--ink-faint); line-height: 1.9; }
.contact-card a { color: var(--cinnabar); font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .phone-num {
  font-family: var(--font-song); font-size: 24px; color: var(--ink);
  letter-spacing: .02em; display: block; margin: 4px 0 2px;
}

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: rgba(246, 241, 231, .78); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px;
  padding: 64px 0 44px;
}
.footer-brand .brand-name { color: var(--paper); }
.footer-brand .brand-sub { color: rgba(246, 241, 231, .45); }
.footer-brand p { margin-top: 18px; font-size: 14px; line-height: 1.9; color: rgba(246, 241, 231, .6); }
.footer h4 {
  font-family: var(--font-song); font-size: 16.5px; color: var(--paper);
  margin-bottom: 18px; letter-spacing: .1em; position: relative; padding-bottom: 10px;
}
.footer h4::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px;
  background: var(--cinnabar);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14.5px; color: rgba(246, 241, 231, .68); transition: color .25s, padding-left .25s; }
.footer-links a:hover { color: var(--cinnabar-light); padding-left: 6px; }
.footer-contact li { font-size: 14.5px; margin-bottom: 12px; color: rgba(246, 241, 231, .68); line-height: 1.7; }
.footer-contact .k { color: rgba(246, 241, 231, .45); margin-right: 6px; }
.footer-qr { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.footer-qr img { width: 92px; height: 92px; border-radius: 6px; border: 2px solid rgba(246, 241, 231, .2); }
.footer-qr .t { font-size: 13px; color: rgba(246, 241, 231, .55); line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(246, 241, 231, .12);
  padding: 22px 0; text-align: center;
  font-size: 13px; color: rgba(246, 241, 231, .42); letter-spacing: .05em;
}

/* ---------- 内页页头 ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 85% 10%, rgba(179, 141, 87, .12), transparent 60%),
    var(--paper-deep);
  padding: 72px 0 60px; text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: attr(data-glyph); position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  font-family: var(--font-kai); font-size: clamp(160px, 24vw, 260px);
  color: rgba(33, 29, 25, .05); line-height: 1; pointer-events: none; user-select: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.crumb { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 16px; letter-spacing: .08em; }
.crumb a { color: var(--ink-faint); transition: color .25s; }
.crumb a:hover { color: var(--cinnabar); }
.crumb .sep { margin: 0 8px; color: var(--line); }
.page-hero h1 {
  font-family: var(--font-kai); font-weight: 400;
  font-size: clamp(38px, 6vw, 58px); color: var(--ink); letter-spacing: .06em; line-height: 1.25;
}
.page-hero .page-desc { margin-top: 16px; color: var(--ink-faint); font-size: 16px; max-width: 40em; margin-left: auto; margin-right: auto; }

/* ---------- 课程详情页 ---------- */
.course-detail {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 40px;
}
.course-detail-head {
  display: flex; align-items: center; gap: 26px;
  padding: 34px 38px;
  background: linear-gradient(135deg, var(--paper-deep), #f3ecdd);
  border-bottom: 1px solid var(--line);
}
.course-detail-head .glyph {
  flex: none; width: 92px; height: 92px; border-radius: 12px;
  background: var(--cinnabar); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-kai); font-size: 52px;
  box-shadow: 0 6px 16px rgba(124, 42, 32, .3);
}
.course-detail-head h2 { font-family: var(--font-song); font-size: 27px; color: var(--ink); letter-spacing: .04em; }
.course-detail-head .en { font-size: 12.5px; letter-spacing: .3em; color: var(--ink-faint); margin-top: 4px; text-transform: uppercase; }
.course-detail-body { padding: 38px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.course-detail-body h3, .course-block h3 {
  font-family: var(--font-song); font-size: 18px; color: var(--ink);
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px; letter-spacing: .05em;
}
.course-detail-body h3::before, .course-block h3::before {
  content: ""; width: 5px; height: 20px; background: var(--cinnabar); border-radius: 2px; flex: none;
}
.info-list li {
  font-size: 15px; color: var(--ink-soft); padding: 9px 0 9px 26px; position: relative;
  border-bottom: 1px dashed var(--line); line-height: 1.8;
}
.info-list li:last-child { border-bottom: none; }
.info-list li::before {
  content: ""; position: absolute; left: 4px; top: 17px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--cinnabar); opacity: .75;
}
.info-list .k { color: var(--ink-faint); margin-right: 8px; }
.goal-box {
  grid-column: 1 / -1;
  background: rgba(166, 58, 43, .05); border: 1px solid rgba(166, 58, 43, .18);
  border-radius: var(--radius); padding: 26px 30px;
}
.goal-box h3 { margin-bottom: 12px; }
.goal-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.goal-tags span {
  font-size: 14px; color: var(--cinnabar-deep);
  background: var(--paper-card); border: 1px solid rgba(166, 58, 43, .3);
  padding: 6px 16px; border-radius: 100px; letter-spacing: .03em;
}

/* 课程对比表 */
.compare-table {
  width: 100%; border-collapse: collapse; background: var(--paper-card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); font-size: 14.5px;
}
.compare-table th, .compare-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table thead th {
  background: var(--ink); color: var(--paper);
  font-family: var(--font-song); font-size: 15px; letter-spacing: .08em; font-weight: 700;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: rgba(237, 228, 208, .5); }
.compare-table td:first-child { font-family: var(--font-song); color: var(--ink); font-weight: 700; white-space: nowrap; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* ---------- 师资页 ---------- */
.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.teacher-card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 38px 30px 32px; text-align: center;
  transition: transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.teacher-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 90px;
  background: linear-gradient(180deg, rgba(237, 228, 208, .8), transparent);
}
.teacher-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.teacher-avatar {
  position: relative; width: 108px; height: 108px; margin: 0 auto 20px;
  border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #f4eedf, var(--paper-deep));
  border: 3px solid var(--paper-card);
  box-shadow: 0 0 0 1.5px var(--line), 0 8px 20px rgba(33, 29, 25, .12);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-kai); font-size: 54px; color: var(--cinnabar);
}
.teacher-card h3 { font-family: var(--font-song); font-size: 22px; color: var(--ink); letter-spacing: .05em; }
.teacher-role {
  display: inline-block; margin: 8px 0 16px; font-size: 13px;
  color: var(--cinnabar-deep); background: rgba(166, 58, 43, .09);
  border: 1px solid rgba(166, 58, 43, .25); border-radius: 100px; padding: 3px 14px;
  letter-spacing: .1em;
}
.teacher-card > p { font-size: 14.5px; color: var(--ink-faint); line-height: 1.9; text-align: left; }
.teacher-points { text-align: left; margin-top: 16px; }
.teacher-points li {
  font-size: 14px; color: var(--ink-soft); padding: 7px 0 7px 24px; position: relative; line-height: 1.7;
}
.teacher-points li::before {
  content: "◦"; position: absolute; left: 6px; color: var(--cinnabar); font-weight: 700;
}

/* ---------- 联系页 ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact-panel {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 38px;
}
.contact-panel h2 {
  font-family: var(--font-song); font-size: 24px; color: var(--ink);
  margin-bottom: 8px; letter-spacing: .05em;
}
.contact-panel .panel-sub { font-size: 14px; color: var(--ink-faint); margin-bottom: 30px; }
.contact-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.contact-row:last-of-type { border-bottom: none; }
.contact-row .icon {
  flex: none; width: 46px; height: 46px; border-radius: 10px;
  background: rgba(166, 58, 43, .07); border: 1px solid rgba(166, 58, 43, .22);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--cinnabar);
}
.contact-row .k { font-size: 13px; color: var(--ink-faint); letter-spacing: .12em; margin-bottom: 3px; }
.contact-row .v { font-size: 16px; color: var(--ink); line-height: 1.65; }
.contact-row .v a { color: var(--cinnabar); font-weight: 500; }
.contact-row .v a:hover { text-decoration: underline; }
.contact-row .v .phone-big {
  font-family: var(--font-song); font-size: 25px; letter-spacing: .02em; color: var(--ink);
}
.qr-block {
  margin-top: 26px; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(160deg, #f7f2e6, #efe6d2);
  border: 1px solid var(--line);
  display: flex; gap: 22px; align-items: center;
}
.qr-block img {
  width: 148px; height: 148px; border-radius: 8px; flex: none;
  border: 3px solid var(--paper-card); box-shadow: 0 4px 14px rgba(33, 29, 25, .14);
}
.qr-block .t { font-size: 14px; color: var(--ink-faint); line-height: 1.9; }
.qr-block .t strong { display: block; font-family: var(--font-song); font-size: 17px; color: var(--ink); margin-bottom: 6px; letter-spacing: .04em; }

/* 表单 */
.form-panel {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 38px; position: relative; overflow: hidden;
}
.form-panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--cinnabar), var(--cinnabar-light), var(--cinnabar));
}
.form-panel h2 { font-family: var(--font-song); font-size: 24px; color: var(--ink); margin-bottom: 8px; letter-spacing: .05em; }
.form-panel .panel-sub { font-size: 14px; color: var(--ink-faint); margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; letter-spacing: .05em;
  font-family: var(--font-song); font-weight: 700;
}
.form-field label .req { color: var(--cinnabar); margin-left: 2px; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-hei); font-size: 15px; color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 4px;
  padding: 12px 14px; width: 100%;
  transition: border-color .25s, box-shadow .25s, background .25s;
  appearance: none;
}
.form-field textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--cinnabar); background: var(--paper-card);
  box-shadow: 0 0 0 3px rgba(166, 58, 43, .12);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #b3aa9b; }
.form-field .err { font-size: 12.5px; color: var(--cinnabar); margin-top: 5px; display: none; }
.form-field.invalid input, .form-field.invalid select { border-color: var(--cinnabar); }
.form-field.invalid .err { display: block; }
.form-submit {
  margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.form-submit .btn-primary { padding: 14px 42px; font-size: 16.5px; }
.form-submit .hint { font-size: 13px; color: var(--ink-faint); }
.form-success {
  display: none; text-align: center; padding: 40px 10px;
}
.form-success.show { display: block; animation: fadeUp .5s ease both; }
.form-success .ok-icon {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
  background: rgba(166, 58, 43, .09); border: 2px solid var(--cinnabar);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: var(--cinnabar);
}
.form-success h3 { font-family: var(--font-song); font-size: 22px; color: var(--ink); margin-bottom: 10px; }
.form-success p { font-size: 15px; color: var(--ink-faint); line-height: 1.9; max-width: 30em; margin: 0 auto 24px; }
.form-success .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 地图占位 */
.map-block {
  margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: var(--paper-card);
}
.map-block .map-head {
  padding: 18px 26px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-song); font-size: 17px; color: var(--ink); letter-spacing: .05em;
}
.map-block .map-head .pin { color: var(--cinnabar); font-size: 20px; }
.map-canvas {
  height: 300px; position: relative;
  background:
    linear-gradient(rgba(33, 29, 25, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 29, 25, .05) 1px, transparent 1px),
    linear-gradient(160deg, #f3edde, #e9dfc8);
  background-size: 36px 36px, 36px 36px, 100% 100%;
  display: flex; align-items: center; justify-content: center;
}
.map-canvas .marker { text-align: center; }
.map-canvas .marker .dot {
  width: 22px; height: 22px; border-radius: 50% 50% 50% 0;
  background: var(--cinnabar); transform: rotate(-45deg);
  margin: 0 auto 14px; box-shadow: 0 6px 14px rgba(124, 42, 32, .4);
  position: relative;
}
.map-canvas .marker .dot::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--paper);
}
.map-canvas .marker .label {
  font-family: var(--font-song); font-size: 16px; color: var(--ink);
  background: rgba(253, 251, 245, .92); border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 4px; box-shadow: var(--shadow);
}
.map-note { padding: 14px 26px; font-size: 13.5px; color: var(--ink-faint); border-top: 1px dashed var(--line); }

/* ---------- 动画（仅在 JS 可用时启用，避免内容永久隐藏） ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { order: -1; }
  .enso { width: min(240px, 56vw); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 24px;
    transform: translateY(-130%); transition: transform .35s ease;
    box-shadow: 0 24px 40px rgba(33, 29, 25, .12);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 14px 6px; border-bottom: 1px dashed var(--line); font-size: 17px; }
  .main-nav a::after { display: none; }
  .nav-cta { margin: 16px 0 0; text-align: center; justify-content: center; }
  .contact-layout { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .teacher-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .course-detail-body { grid-template-columns: 1fr; gap: 26px; }
  .course-detail-head { flex-direction: column; text-align: center; padding: 30px 26px; }
  .section { padding: 64px 0; }
}
@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .header-inner { padding: 0 18px; }
  .brand-name { font-size: 22px; }
  .advantage-grid, .course-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding: 64px 0 72px; }
  .qr-block { flex-direction: column; text-align: center; }
  .cta-actions .btn, .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions { gap: 12px; }
}
