:root {
  --ink: #101713;
  --ink-soft: #253028;
  --paper: #f8f1e4;
  --paper-deep: #efe3cf;
  --gold: #a98545;
  --cinnabar: #9f201c;
  --text: #1c211d;
  --muted: #6e675b;
  --header-height: 72px;
}

@font-face {
  font-family: "Douzhuan Songti";
  src: url("assets/fonts/songti-subset.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 900;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: #f5ead8;
  -webkit-text-size-adjust: 100%;
  font-family: "Douzhuan Songti", "Songti SC", "STSong", "Noto Serif SC", "Microsoft YaHei", serif;
}
body::before {
  content: "";
  position: fixed;
  inset: -18% -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(169, 133, 69, .16), transparent 24%),
    radial-gradient(circle at 82% 68%, rgba(16, 23, 19, .09), transparent 28%);
  animation: pageBreath 9s ease-in-out infinite;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: var(--paper);
  background: rgba(16, 23, 19, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(169, 133, 69, .35);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 28%, var(--gold) 0 4px, transparent 4.5px),
    radial-gradient(circle at 50% 72%, var(--ink) 0 4px, transparent 4.5px),
    linear-gradient(90deg, var(--gold) 0 50%, var(--ink) 50% 100%);
  box-shadow: 0 0 0 1px rgba(169, 133, 69, .18);
}
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.site-nav a { color: rgba(248, 241, 228, .86); }
.site-nav a:hover { color: #fffaf0; }
.nav-toggle { display: none; }

.section-panel {
  padding: clamp(56px, 8vw, 110px) clamp(20px, 6vw, 84px);
  scroll-margin-top: calc(var(--header-height) + 18px);
}
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(248, 241, 228, .96) 0%, rgba(248, 241, 228, .82) 34%, rgba(248, 241, 228, .25) 58%, rgba(248, 241, 228, .05) 100%),
    url("assets/hero-reference-shuimo-taiji.png") center / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 21% 40%, rgba(255, 250, 240, .72), transparent 31%),
    linear-gradient(180deg, rgba(255, 250, 240, .2), rgba(16, 23, 19, .06));
  animation: inkBreath 8s ease-in-out infinite;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 690px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--cinnabar);
  letter-spacing: .18em;
  font-size: 13px;
  font-weight: 800;
}
h1, h2, h3 {
  letter-spacing: 0;
  text-wrap: balance;
}
h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.04;
}
#hero-title span {
  display: block;
}
#authority-title span {
  display: block;
}
#services-title {
  max-width: 820px;
}
#channels-title span {
  display: block;
}
h2 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.26;
}
h3 { margin: 0; font-size: 21px; }
.hero-lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 4px;
  font-weight: 800;
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: #fffaf0; background: var(--cinnabar); box-shadow: 0 16px 32px rgba(159, 32, 28, .2); }
.btn.ghost { color: var(--ink); border: 1px solid rgba(169, 133, 69, .75); }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: #695f50;
  font-size: 14px;
}
.hero-proof span {
  background: rgba(255, 250, 240, .66);
  border: 1px solid rgba(169, 133, 69, .32);
  padding-left: 10px;
  padding: 7px 10px;
}

.authority, .teacher, .method, .services, .channels, .consult {
  background:
    linear-gradient(rgba(255, 250, 240, .92), rgba(255, 250, 240, .92)),
    url("assets/hero-reference-shuimo-taiji.png") center / cover no-repeat;
}
.section-heading p, article p, .consult-card p {
  color: var(--muted);
  line-height: 1.75;
}
.metrics, .three-grid, .service-list, .problem-grid, .deliverables {
  display: grid;
  gap: 16px;
}
.metrics { grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
.metrics article, .three-grid article, .service-list article, .problem-grid article, .consult-card, .deliverables article {
  border: 1px solid rgba(169, 133, 69, .28);
  background: rgba(255, 250, 240, .78);
  padding: 24px;
  border-radius: 6px;
}
.metrics strong {
  display: block;
  margin-bottom: 6px;
  color: var(--cinnabar);
  font-size: 28px;
}
.metrics span { color: var(--muted); line-height: 1.6; }
.teacher {
  display: grid;
  grid-template-columns: minmax(240px, .62fr) minmax(0, 1.38fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  border-top: 1px solid rgba(169, 133, 69, .22);
  border-bottom: 1px solid rgba(169, 133, 69, .22);
}
.teacher-portrait {
  position: relative;
  overflow: hidden;
  width: min(100%, 390px);
  justify-self: center;
  border: 1px solid rgba(169, 133, 69, .46);
  background: #efe3cf;
  box-shadow: 0 18px 46px rgba(16, 23, 19, .14);
  animation: cardBreath 7s ease-in-out infinite;
}
.teacher-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(16, 23, 19, .16));
}
.teacher-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.75;
  object-fit: cover;
  object-position: center 26%;
}
.teacher-nameplate {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(169, 133, 69, .52);
  background: linear-gradient(90deg, rgba(248, 241, 228, .9), rgba(248, 241, 228, .68));
  color: var(--cinnabar);
  font-family: "Noto Serif SC", serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  box-shadow: 0 10px 24px rgba(16, 23, 19, .12);
  backdrop-filter: blur(4px);
}
.teacher-copy {
  max-width: 760px;
}
.teacher-bio {
  margin-top: 26px;
  padding: 10px 0 10px 26px;
  border-left: 4px solid var(--gold);
  background: linear-gradient(90deg, rgba(255, 250, 240, .42), rgba(255, 250, 240, 0) 76%);
}
.teacher-bio p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.82;
}
.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.teacher-tags span {
  padding: 9px 12px;
  border: 1px solid rgba(169, 133, 69, .36);
  background: rgba(255, 250, 240, .6);
  color: #5d503d;
  font-weight: 700;
}
.three-grid { grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.three-grid span { color: var(--gold); font-weight: 800; }
.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 28px;
}
.method-orbit {
  min-height: 210px;
  border: 1px solid rgba(169, 133, 69, .34);
  background:
    radial-gradient(circle at 50% 50%, rgba(169, 133, 69, .22) 0 3px, transparent 4px),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 24px, rgba(169, 133, 69, .24) 25px 26px),
    linear-gradient(135deg, rgba(16, 23, 19, .1), rgba(255, 250, 240, .36));
}
.service-list { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
.new-home {
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(16, 23, 19, .88), rgba(16, 23, 19, .64), rgba(16, 23, 19, .42)),
    url("assets/hero-reference-shuimo-taiji.png") center / cover no-repeat;
}
.new-home .eyebrow { color: #e4c47d; }
.new-home .section-heading p { max-width: 560px; color: #ddd0b6; }
.problem-grid { grid-template-columns: repeat(6, 1fr); margin-top: 30px; }
.problem-grid article {
  background: rgba(255, 250, 240, .09);
  border-color: rgba(228, 196, 125, .28);
}
.problem-grid p { margin-bottom: 0; color: #d8ccb3; }
.deliverables {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 16px;
}
.deliverables article {
  min-height: 108px;
  background: rgba(255, 250, 240, .95);
  color: var(--ink);
}
.deliverables span { display: block; margin-top: 8px; color: var(--muted); }
.channels {
  border-top: 1px solid rgba(169, 133, 69, .22);
}
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.channel-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
  align-content: space-between;
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(169, 133, 69, .3);
  border-radius: 6px;
  background: rgba(255, 250, 240, .78);
  box-shadow: 0 16px 38px rgba(16, 23, 19, .08);
}
.channel-type {
  margin: 0 0 10px;
  color: var(--cinnabar);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .2em;
}
.channel-card h3 {
  margin-bottom: 10px;
}
.channel-card p:not(.channel-type) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.channel-media {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  justify-self: center;
  align-self: end;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(169, 133, 69, .24);
  background: #fffaf0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .52);
}
.channel-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.consult-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
}
.consult-copy {
  max-width: 720px;
}
.consult-card p { margin: 0; }
.wechat-id {
  margin-top: 18px !important;
  color: var(--cinnabar) !important;
  font-weight: 800;
}
.qr-card {
  flex: 0 0 220px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(169, 133, 69, .36);
  background: #fffaf0;
  box-shadow: 0 18px 46px rgba(16, 23, 19, .12);
}
.qr-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.qr-card figcaption {
  margin-top: 10px;
  color: var(--ink);
  text-align: center;
  font-weight: 800;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 6vw, 84px);
  color: var(--paper);
  background: var(--ink);
  border-top: 1px solid rgba(169, 133, 69, .45);
}
.site-footer p { margin: 8px 0 0; color: #cfc3ac; }
.btn.light { color: var(--paper); border-color: rgba(248, 241, 228, .45); }

@media (max-width: 980px) {
  .metrics, .problem-grid, .deliverables { grid-template-columns: repeat(2, 1fr); }
  .teacher { grid-template-columns: 1fr; }
  .teacher-portrait { width: min(100%, 380px); }
  .three-grid, .service-list, .channel-grid { grid-template-columns: 1fr; }
  .channel-card {
    grid-template-columns: minmax(0, 1fr) 180px;
    grid-template-rows: auto;
    align-items: center;
  }
  .channel-media {
    max-width: 180px;
  }
}
@media (max-width: 860px) {
  :root { --header-height: 72px; }
  body { overflow-x: hidden; }
  .site-header { min-height: var(--header-height); }
  .site-nav {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 22px;
    background: rgba(16, 23, 19, .98);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(248, 241, 228, .12); }
  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    width: 40px;
    height: 40px;
    place-content: center;
    border: 1px solid rgba(248, 241, 228, .25);
    background: transparent;
  }
  .nav-toggle span { width: 18px; height: 2px; background: var(--paper); }
  .hero {
    min-height: calc(100svh - var(--header-height));
    align-items: flex-start;
    padding-top: clamp(82px, 16vh, 128px);
    padding-bottom: 46px;
    background:
      linear-gradient(180deg, rgba(248, 241, 228, .98) 0%, rgba(248, 241, 228, .93) 42%, rgba(248, 241, 228, .6) 68%, rgba(16, 23, 19, .26) 100%),
      url("assets/hero-reference-shuimo-taiji.png") 62% center / cover no-repeat;
  }
  h1 { font-size: clamp(40px, 11.4vw, 52px); line-height: 1.12; }
  h2 { font-size: clamp(32px, 9.4vw, 44px); line-height: 1.24; }
  .hero-lede { font-size: 17px; line-height: 1.9; }
  .method-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { padding: 0 24px; }
  .brand { font-size: 22px; }
  .nav-toggle { width: 44px; height: 44px; }
  .section-panel { padding: 64px 24px; }
  .hero {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: clamp(76px, 13vh, 108px);
  }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .metrics, .problem-grid, .deliverables { grid-template-columns: 1fr; }
  .consult-card, .site-footer { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .hero-proof { font-size: 13px; }
  .teacher { gap: 34px; }
  .teacher-portrait { width: min(86vw, 320px); }
  .teacher-nameplate {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 10px 12px;
    font-size: 18px;
  }
  .teacher-bio {
    padding: 6px 0 6px 18px;
    background: linear-gradient(90deg, rgba(255, 250, 240, .36), rgba(255, 250, 240, 0) 82%);
  }
  .teacher-bio p { font-size: 17px; line-height: 1.78; }
  .metrics article, .three-grid article, .service-list article, .problem-grid article, .consult-card, .deliverables article {
    padding: 22px;
  }
  .problem-grid, .deliverables, .service-list, .three-grid { gap: 14px; }
  .channel-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .channel-media {
    width: min(100%, 280px);
    max-width: 280px;
    justify-self: center;
  }
  .qr-card {
    width: min(100%, 280px);
    flex-basis: auto;
    align-self: center;
  }
}
@media (max-width: 380px) {
  .section-panel, .hero { padding-left: 22px; padding-right: 22px; }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
@keyframes pageBreath {
  0%, 100% { opacity: .72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.035); }
}
@keyframes inkBreath {
  0%, 100% { opacity: .78; }
  50% { opacity: .96; }
}
@keyframes cardBreath {
  0%, 100% { transform: translateY(0); box-shadow: 0 24px 64px rgba(16, 23, 19, .18); }
  50% { transform: translateY(-4px); box-shadow: 0 30px 72px rgba(16, 23, 19, .22); }
}
