/* ============ 玄門 · Mystic Theme ============ */
:root {
  --bg: #05070f;
  --bg-2: #0a0f1e;
  --gold: #d8b56a;
  --gold-dim: #8a6f3a;
  --gold-bright: #f0d493;
  --ink: #e8e2d2;
  --ink-dim: #9a9484;
  --card: rgba(16, 20, 38, 0.55);
  --line: rgba(216, 181, 106, 0.22);
}

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

html { scroll-behavior: smooth; }

body {
  background: radial-gradient(ellipse at 50% -10%, #101a33 0%, var(--bg) 60%) fixed;
  color: var(--ink);
  font-family: "Noto Serif SC", serif;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: rgba(216, 181, 106, 0.35); }

/* ---------- 背景层 ---------- */
#starfield {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -3;
}

#sigil-layer {
  position: fixed; inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.sigil {
  position: absolute;
  left: 0; top: 0;
  display: flex; flex-direction: column; align-items: center;
  /* 楷体覆盖 GB18030 生僻字，上下构件同字体渲染 */
  font-family: KaiTi, "Kaiti SC", STKaiti, "Noto Serif SC", serif;
  color: var(--gold);
  line-height: 1;
  text-shadow:
    0 0 6px rgba(216, 181, 106, 0.55),
    0 0 22px rgba(216, 181, 106, 0.28);
  will-change: transform, opacity;
  user-select: none;
}
/* 讳字释义标签：靠近发光时浮现 */
.sigil-label {
  position: absolute;
  top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: "Noto Serif SC", serif;
  font-size: 13px; letter-spacing: 2px;
  color: var(--gold-bright);
  text-align: center;
  text-shadow: 0 0 10px rgba(216, 181, 106, 0.6);
  opacity: 0;
}
.sigil-label small {
  display: block;
  margin-top: 3px;
  font-family: "Cinzel", serif;
  font-size: 9px; letter-spacing: 1.5px;
  color: var(--ink-dim);
}
.sigil-label.above { top: auto; bottom: calc(100% + 10px); }
/* 雨头与下部构件叠成合体字 */
.sigil .sigil-top { font-size: 0.9em; margin-bottom: -0.14em; }
.sigil .sigil-bottom {
  display: flex; justify-content: center;
  font-size: 0.8em;
  line-height: 1;
  letter-spacing: -0.04em;
}
/* 下部两构件（左右结构）：横排缩至单字宽 */
.sigil .sigil-bottom.b2 { font-size: 0.52em; }
/* 下部四构件：2x2 方阵缩至单字宽 */
.sigil .sigil-bottom.b4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  font-size: 0.42em;
  column-gap: 0.08em;
  line-height: 0.95;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(5, 7, 15, 0.85), rgba(5, 7, 15, 0.35));
  border-bottom: 1px solid rgba(216, 181, 106, 0.12);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-seal {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: "Ma Shan Zheng", serif;
  font-size: 20px;
  transform: rotate(-4deg);
  box-shadow: 0 0 12px rgba(216, 181, 106, 0.25);
}
.brand-name { font-family: "Ma Shan Zheng", serif; font-size: 22px; letter-spacing: 2px; }
.brand-name em, .nav-links em { font-family: "Cinzel", serif; font-style: normal; font-size: 10px; letter-spacing: 2px; color: var(--ink-dim); margin-left: 4px; }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: 15px; letter-spacing: 1px;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.nav-links a:hover { color: var(--gold-bright); border-color: var(--gold); }
.nav-links a.nav-current { color: var(--gold-bright); border-color: var(--gold); }
.nav-cta { color: var(--gold-bright) !important; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: grid; place-items: center;
  position: relative;
  text-align: center;
  padding: 120px 24px 60px;
}

/* 太极图：居于八卦环中心，顺向缓转。
   居中用负边距定位（不用 transform），旋转轴心即元素中心，
   保证圆盘原地自转、圆心不漂移 */
.taiji {
  position: absolute;
  width: min(30vmin, 280px); height: min(30vmin, 280px);
  top: 50%; left: 50%;
  margin-left: max(-15vmin, -140px);     /* = -width/2，负值取较大者 */
  margin-top:  max(-15vmin, -140px);
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(216, 181, 106, 0.18));
  animation: taiji-spin 180s linear infinite;
}
.taiji svg { width: 100%; height: 100%; display: block; }
@keyframes taiji-spin { to { transform: rotate(360deg); } }

.trigram-ring {
  position: absolute;              /* 父层 #sigil-layer 为 fixed，故随视口居中 */
  width: min(58vmin, 520px); height: min(58vmin, 520px);   /* 内环：讳字轨道内侧 */
  top: 50%; left: 50%;
  margin-left: max(-29vmin, -260px);     /* = -width/2 */
  margin-top:  max(-29vmin, -260px);
  opacity: 0.5;
  /* 与外层讳字环（顺时针）逆向旋转 */
  animation: ring-spin 120s linear infinite reverse;
}
.trigram-ring .trigram {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(20px, 4vmin, 34px);
  color: var(--gold);
  text-shadow: 0 0 14px rgba(216, 181, 106, 0.5);
}
.trigram-ring::before, .trigram-ring::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(216, 181, 106, 0.16);
}
.trigram-ring::after { inset: 14%; }

@keyframes ring-spin { to { transform: rotate(360deg); } }

.hero-content { position: relative; z-index: 2; }

.hero-seal {
  display: inline-block;
  padding: 8px 12px;
  border: 2px solid #a33b2e;
  color: #d05545;
  font-family: "Ma Shan Zheng", serif;
  font-size: 18px; letter-spacing: 4px;
  transform: rotate(-3deg);
  margin-bottom: 28px;
  background: rgba(163, 59, 46, 0.08);
  box-shadow: 0 0 18px rgba(163, 59, 46, 0.25);
}

.hero-title {
  font-family: "Ma Shan Zheng", serif;
  font-size: clamp(64px, 14vw, 150px);
  letter-spacing: clamp(8px, 2vw, 24px);
  background: linear-gradient(180deg, #f5e3b5 20%, var(--gold) 60%, var(--gold-dim) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(216, 181, 106, 0.35));
  line-height: 1.1;
}

.hero-sub {
  font-family: "Cinzel", serif;
  font-size: clamp(11px, 1.6vw, 15px);
  letter-spacing: clamp(4px, 1vw, 9px);
  color: var(--ink-dim);
  margin-top: 14px;
}

.hero-tag {
  margin-top: 34px;
  font-size: clamp(15px, 2vw, 19px);
  letter-spacing: 3px;
  color: var(--ink);
  line-height: 1.9;
}
.hero-tag span { display: none; }

.hero-actions { margin-top: 44px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 34px;
  font-size: 15px; letter-spacing: 2px;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: all 0.3s;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b28d43);
  color: #120d05;
  font-weight: 600;
  box-shadow: 0 0 24px rgba(216, 181, 106, 0.35);
}
.btn-gold:hover { box-shadow: 0 0 40px rgba(216, 181, 106, 0.6); transform: translateY(-2px); }
.btn-ghost { color: var(--gold-bright); background: rgba(216, 181, 106, 0.06); }
.btn-ghost:hover { background: rgba(216, 181, 106, 0.16); transform: translateY(-2px); }

/* ---------- 命卜法 三入口 ---------- */
.hero-paths {
  margin-top: 42px;
  font-family: "Cinzel", serif;
  font-size: 12px; letter-spacing: 5px;
  color: var(--ink-dim);
}
.pillar-row {
  margin-top: 22px;
  display: flex; gap: 20px; justify-content: center; align-items: center; flex-wrap: wrap;
}
/* 横向卷轴：收起时只见字徽，左右为轴杆；
   悬停时纸面展开→字徽滑至中上方→介绍缓缓浮现。
   注：.reveal 的 transition 在文件后段会覆盖同名属性，
   故此处用 .pillar-row .pillar 提高优先级 */
.pillar-row .pillar {
  position: relative;
  width: 128px; height: 118px;
  background: linear-gradient(180deg, rgba(22, 27, 50, 0.85), rgba(13, 17, 32, 0.82));
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(6px);
  text-decoration: none;
  flex-shrink: 0;
  transition: width 0.8s cubic-bezier(0.4, 0.1, 0.3, 1),
              transform 0.5s, border-color 0.4s, box-shadow 0.4s;
}
/* 卷轴左右轴杆 */
.pillar::before, .pillar::after {
  content: "";
  position: absolute; top: -8px; bottom: -8px; width: 13px;
  border-radius: 7px;
  background: linear-gradient(90deg, #9a7c42, #4d3c1d 55%, #2c2110);
  border: 1px solid rgba(216, 181, 106, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
.pillar::before { left: -7px; }
.pillar::after  { right: -7px; }
.pillar-row .pillar:hover {
  width: 340px;
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5), 0 0 26px rgba(216, 181, 106, 0.18);
}
/* 字徽：收起居中；展卷的同时缩小，展毕再上移至卷面中上方 */
.pillar-glyph {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  font-family: "Ma Shan Zheng", KaiTi, "Kaiti SC", serif;
  font-size: 40px;
  color: var(--gold-bright);
  text-shadow: 0 0 16px rgba(216, 181, 106, 0.55);
  background: radial-gradient(circle, rgba(216, 181, 106, 0.14), transparent 70%);
  transition: top 0.5s ease, transform 0.5s ease,
              width 0.5s ease, height 0.5s ease, font-size 0.5s ease;
}
.pillar:hover .pillar-glyph {
  top: 12px;
  transform: translate(-50%, 0);
  width: 44px; height: 44px; font-size: 24px;
  transition: width 0.75s cubic-bezier(0.4, 0.1, 0.3, 1),
              height 0.75s cubic-bezier(0.4, 0.1, 0.3, 1),
              font-size 0.75s cubic-bezier(0.4, 0.1, 0.3, 1),
              top 0.5s cubic-bezier(0.34, 1.3, 0.5, 1) 0.82s,
              transform 0.5s cubic-bezier(0.34, 1.3, 0.5, 1) 0.82s;
}
/* 介绍：待字徽归位后缓缓浮现（展开延迟，收卷即隐） */
.pillar-info {
  position: absolute; top: 62px; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.35s ease;
}
.pillar:hover .pillar-info {
  opacity: 1; transform: none;
  transition: opacity 0.4s ease 1.2s, transform 0.45s ease 1.2s;
}
.pillar-name {
  font-size: 17px; letter-spacing: 3px;
  color: var(--ink);
  white-space: nowrap;
}
.pillar-sub {
  margin-top: 7px;
  width: 290px;
  text-align: center;
  font-family: "Cinzel", "Noto Serif SC", serif;
  font-size: 10px; letter-spacing: 1px; line-height: 1.7;
  color: var(--ink-dim);
}
/* 中央主卷轴：法 */
.pillar.feature {
  width: 148px; height: 142px;
  border-color: var(--gold);
  box-shadow: 0 0 32px rgba(216, 181, 106, 0.16);
}
.pillar.feature .pillar-glyph { width: 94px; height: 94px; font-size: 52px; }
.pillar.feature .pillar-name { font-size: 20px; }
.pillar.feature .pillar-sub  { font-size: 10.5px; }
.pillar.feature .pillar-info { top: 74px; }
.pillar.feature:hover {
  width: 380px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(216, 181, 106, 0.3);
}
.pillar.feature:hover .pillar-glyph { top: 16px; width: 52px; height: 52px; font-size: 30px; }
.hero-consult {
  display: inline-block;
  margin-top: 28px;
  font-size: 13px; letter-spacing: 1.5px;
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.25s;
}
.hero-consult:hover { border-color: var(--gold); }

/* ---------- 服务分组 ---------- */
.svc-group { margin-top: 64px; scroll-margin-top: 84px; }
.svc-group-title {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  font-size: 22px; letter-spacing: 3px;
  font-weight: 400;
  color: var(--gold-bright);
}
.svc-group-title em {
  font-family: "Cinzel", serif; font-style: normal;
  font-size: 12px; letter-spacing: 3px;
  color: var(--gold);
  margin-left: 8px;
}
.sg-glyph {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  font-family: "Ma Shan Zheng", KaiTi, "Kaiti SC", serif;
  font-size: 24px;
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(216, 181, 106, 0.5);
  background: radial-gradient(circle, rgba(216, 181, 106, 0.12), transparent 70%);
}
.svc-group .card-grid { margin-top: 32px; }

/* ---------- 独立板块页 ---------- */
.pg-glyph {
  width: 96px; height: 96px;
  margin: 0 auto 26px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: "Ma Shan Zheng", KaiTi, "Kaiti SC", serif;
  font-size: 52px;
  color: var(--gold-bright);
  text-shadow: 0 0 20px rgba(216, 181, 106, 0.6);
  background: radial-gradient(circle, rgba(216, 181, 106, 0.15), transparent 70%);
}
.pg-intro {
  max-width: 660px; margin: 20px auto 54px;
  color: var(--ink-dim);
  font-size: 15px; line-height: 2; letter-spacing: 1px;
}
.pg-prep {
  max-width: 700px; margin: 58px auto 0;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(6px);
  padding: 30px 34px;
  text-align: center;
}
.pg-prep h3 {
  font-size: 17px; letter-spacing: 2px;
  color: var(--gold-bright);
  font-weight: 400;
}
.pg-prep h3 em {
  font-family: "Cinzel", serif; font-style: normal;
  font-size: 11px; letter-spacing: 2px;
  color: var(--gold);
  margin-left: 8px;
}
.pg-prep p { margin-top: 14px; font-size: 14px; line-height: 2; color: var(--ink-dim); }
.pg-actions {
  margin-top: 46px;
  display: flex; gap: 22px;
  justify-content: center; align-items: center; flex-wrap: wrap;
}
.pg-back {
  font-size: 13px; letter-spacing: 1px;
  color: var(--ink-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.pg-back:hover { color: var(--gold-bright); border-color: var(--gold); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; translate: -50%;
  font-size: 26px; color: var(--gold);
  animation: hint-bob 2s ease-in-out infinite;
  opacity: 0.7;
}
@keyframes hint-bob { 50% { transform: translateY(8px); opacity: 0.3; } }

/* ---------- Sections ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 110px 24px 40px;
}

.section-title {
  font-family: "Ma Shan Zheng", serif;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: 6px;
  text-align: center;
  color: var(--gold-bright);
  text-shadow: 0 0 20px rgba(216, 181, 106, 0.3);
}
.section-title em {
  display: block;
  font-family: "Cinzel", serif; font-style: normal;
  font-size: clamp(10px, 1.3vw, 13px);
  letter-spacing: 6px;
  color: var(--ink-dim);
  margin-top: 10px;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px; height: 1px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-desc {
  text-align: center;
  color: var(--ink-dim);
  letter-spacing: 1.5px;
  margin: 18px 0 50px;
  font-size: 15px;
}

/* ---------- 卡片 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 34px 26px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5), 0 0 26px rgba(216, 181, 106, 0.15);
}

.card-glyph {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  font-family: "Ma Shan Zheng", serif;
  font-size: 30px;
  color: var(--gold-bright);
  text-shadow: 0 0 14px rgba(216, 181, 106, 0.5);
  background: radial-gradient(circle, rgba(216, 181, 106, 0.12), transparent 70%);
}

.card h3 { font-size: 19px; letter-spacing: 2px; color: var(--ink); margin-bottom: 12px; }
.card h3 em { display: block; font-family: "Cinzel", serif; font-style: normal; font-size: 11px; letter-spacing: 2px; color: var(--gold); margin-top: 5px; }
.card p { font-size: 14px; line-height: 1.8; color: var(--ink-dim); }
/* 可点击的"更多需求"卡片 */
a.card { text-decoration: none; display: block; }
.card-cta { border-style: dashed; border-color: rgba(216, 181, 106, 0.35); }
.card-cta:hover { border-color: var(--gold); }

/* ---------- 案例 ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.case {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: 26px 26px 20px;
  backdrop-filter: blur(6px);
  transition: transform 0.35s, box-shadow 0.35s;
}
.case:hover { transform: translateY(-6px); box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5); }

.case-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.case-no { font-family: "Cinzel", serif; font-size: 12px; letter-spacing: 2px; color: var(--gold); }
.case-tag {
  font-size: 11px; letter-spacing: 1px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--gold-bright);
  background: rgba(216, 181, 106, 0.08);
}

.case h3 { font-size: 17px; letter-spacing: 1px; color: var(--ink); margin-bottom: 10px; }
.case-body { font-size: 13.5px; line-height: 1.9; color: var(--ink-dim); }
.case-meta {
  display: flex; justify-content: space-between;
  margin-top: 16px; padding-top: 12px;
  border-top: 1px dashed rgba(216, 181, 106, 0.18);
  font-family: "Cinzel", serif;
  font-size: 11px; letter-spacing: 1px;
  color: var(--gold-dim);
}

.case-note {
  text-align: center;
  font-size: 12px;
  color: var(--ink-dim);
  opacity: 0.7;
  margin-top: 26px;
  letter-spacing: 1px;
}

/* ---------- 师承 ---------- */
.about-wrap {
  max-width: 760px; margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(6px);
  padding: 40px 44px;
  line-height: 2.1;
  font-size: 15.5px;
  letter-spacing: 1px;
  position: relative;
}
.about-wrap::before, .about-wrap::after {
  content: "☯";
  position: absolute;
  color: rgba(216, 181, 106, 0.35);
  font-size: 20px;
}
.about-wrap::before { top: 12px; left: 14px; }
.about-wrap::after { bottom: 12px; right: 14px; }
.about-sub { margin-top: 18px; color: var(--ink-dim); font-size: 13.5px; letter-spacing: 0.5px; line-height: 1.9; }

/* ---------- 联系 ---------- */
.contact-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 20px;
  max-width: 900px; margin: 0 auto;
}
.contact-item {
  width: min(300px, 100%);
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(6px);
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.contact-item:hover { transform: translateY(-5px); border-color: var(--gold); }
.contact-item .ci-label {
  font-family: "Cinzel", serif;
  font-size: 11px; letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}
.contact-item .ci-value {
  margin-top: 12px;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--ink);
  word-break: break-all;
}
.contact-item .ci-value.placeholder { color: var(--ink-dim); font-size: 14px; }
.contact-item .ci-value.small { font-size: 13.5px; }   /* 长邮箱单行放下，与微信卡片对称 */
.contact-item .ci-value + .ci-value { margin-top: 5px; } /* 多行值间距 */
.contact-item.mini {                                   /* Telegram：下行居中的小卡 */
  width: 200px;
  padding: 18px 16px;
}
.contact-item.mini .ci-qr {
  display: block;
  width: 118px;
  margin: 12px auto 0;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.contact-note {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 1px;
}

/* ---------- 页脚 ---------- */
.footer {
  margin-top: 90px;
  padding: 40px 24px 34px;
  text-align: center;
  border-top: 1px solid rgba(216, 181, 106, 0.12);
  color: var(--gold);
  letter-spacing: 3px;
  font-size: 14px;
}
.footer-small {
  margin-top: 12px;
  font-family: "Cinzel", serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--ink-dim);
}

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 语言切换 ---------- */
.lang-menu { position: relative; }
.lang-toggle {
  font-family: "Cinzel", serif;
  font-size: 12px; letter-spacing: 1px;
  color: var(--gold-bright);
  background: rgba(216, 181, 106, 0.08);
  border: 1px solid var(--line);
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.lang-toggle:hover { border-color: var(--gold); background: rgba(216, 181, 106, 0.18); }
.lang-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 130px;
  display: none;
  flex-direction: column;
  background: rgba(10, 14, 28, 0.95);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  z-index: 200;
}
.lang-dropdown.open { display: flex; }
.lang-dropdown button {
  background: none; border: none;
  font-family: "Noto Serif SC", "Noto Serif JP", "Noto Serif KR", "Noto Serif Thai", serif;
  font-size: 14px; letter-spacing: 1px;
  color: var(--ink);
  text-align: left;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-dropdown button:hover { background: rgba(216, 181, 106, 0.12); color: var(--gold-bright); }
.lang-dropdown button.active { color: var(--gold-bright); }

/* ---------- 各语言字体适配 ---------- */
body[data-lang="ja"] { font-family: "Noto Serif JP", "Noto Serif SC", serif; }
body[data-lang="ko"] { font-family: "Noto Serif KR", "Noto Serif SC", serif; }
body[data-lang="th"] { font-family: "Noto Serif Thai", "Noto Serif SC", serif; }

/* 非中文态：Hero 标题用 Cinzel 拉丁大标题 */
body:not([data-lang="cn"]) .hero-title {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: clamp(46px, 10vw, 118px);
  letter-spacing: clamp(6px, 1.6vw, 20px);
}
/* 日/韩/泰态：Cinzel 不含其字形，改用对应衬线字体并收紧字距 */
body[data-lang="ja"] .hero-title { font-family: "Noto Serif JP", "Noto Serif SC", serif; letter-spacing: 0.18em; }
body[data-lang="ko"] .hero-title { font-family: "Noto Serif KR", "Noto Serif SC", serif; letter-spacing: 0.12em; }
body[data-lang="th"] .hero-title {
  font-family: "Noto Serif Thai", "Noto Serif SC", serif;
  font-size: clamp(36px, 8vw, 92px);
  letter-spacing: 0.06em;
}
/* ---------- 响应式 ---------- */

/* 平板 */
@media (max-width: 860px) {
  .nav-inner { padding: 10px 16px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  .nav-links em { display: none; }
  .section { padding: 84px 20px 34px; }
}

/* 手机 */
@media (max-width: 640px) {
  /* 导航：品牌收紧，链接区横向可滑（子页六项不再挤压）；
     语言切换独立于滚动容器外，不被裁切 */
  .nav-inner { padding: 9px 12px; gap: 8px; }
  .brand { gap: 8px; flex-shrink: 0; }
  .brand-seal { width: 26px; height: 26px; font-size: 15px; }
  .brand-name { font-size: 16px; letter-spacing: 1px; }
  .brand-name em { display: none; }
  .nav-links {
    gap: 0; flex: 1; min-width: 0;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 12px; padding: 6px 7px; white-space: nowrap; }
  .nav-links em { display: none; }
  .nav-inner > .lang-menu { flex-shrink: 0; margin-left: 4px; }
  .lang-toggle { padding: 8px 10px; font-size: 11px; }
  .lang-dropdown { min-width: 112px; }
  .lang-dropdown button { padding: 11px 14px; }

  /* Hero */
  .hero { padding: 96px 16px 52px; }
  .hero-seal { font-size: 15px; letter-spacing: 3px; margin-bottom: 20px; padding: 6px 10px; }
  .hero-sub { margin-top: 10px; }
  .hero-tag { font-size: 14px; letter-spacing: 2px; margin-top: 26px; line-height: 1.8; }
  .hero-paths { margin-top: 32px; font-size: 11px; letter-spacing: 3px; }
  .hero-consult { margin-top: 24px; padding: 10px 6px; font-size: 12.5px; }
  .scroll-hint { bottom: 14px; font-size: 22px; }

  /* 中央阵法随窄屏放大占比，视觉不空 */
  .taiji {
    width: min(38vmin, 280px); height: min(38vmin, 280px);
    margin-left: max(-19vmin, -140px); margin-top: max(-19vmin, -140px);
  }
  .trigram-ring {
    width: min(74vmin, 520px); height: min(74vmin, 520px);
    margin-left: max(-37vmin, -260px); margin-top: max(-37vmin, -260px);
  }
  .trigram-ring .trigram { font-size: clamp(16px, 4.5vmin, 34px); }

  /* 卷轴 → 纵向手卷菜单：触屏无悬停，改常开展示、点按直达 */
  .pillar-row { flex-direction: column; gap: 14px; padding: 0 4px; margin-top: 20px; }
  .pillar-row .pillar,
  .pillar-row .pillar:hover {
    width: min(100%, 400px); height: 90px;
    margin: 0 auto;
    transform: none;
    flex-shrink: 0;
  }
  .pillar-row .pillar:active { border-color: var(--gold); }
  .pillar::before, .pillar::after { top: -6px; bottom: -6px; width: 10px; }
  .pillar::before { left: -5px; }
  .pillar::after  { right: -5px; }
  .pillar-row .pillar .pillar-glyph,
  .pillar-row .pillar:hover .pillar-glyph,
  .pillar-row .pillar.feature .pillar-glyph,
  .pillar-row .pillar.feature:hover .pillar-glyph {
    left: 36px; top: 50%;
    transform: translate(-50%, -50%);
    width: 52px; height: 52px; font-size: 27px;
    transition: none;
  }
  .pillar-row .pillar .pillar-info,
  .pillar-row .pillar:hover .pillar-info,
  .pillar-row .pillar.feature .pillar-info,
  .pillar-row .pillar.feature:hover .pillar-info {
    top: 50%; left: 82px; right: 16px;
    transform: translateY(-50%);
    opacity: 1;
    align-items: flex-start;
    transition: none;
  }
  .pillar-name { font-size: 15.5px; letter-spacing: 2px; }
  .pillar-sub  { width: auto; text-align: left; font-size: 10px; margin-top: 5px; line-height: 1.55; }
  .pillar-row .pillar.feature,
  .pillar-row .pillar.feature:hover { height: 98px; transform: none; }
  .pillar.feature .pillar-name { font-size: 17px; }

  /* 区块 */
  .section { padding: 72px 16px 30px; }
  .section-title { letter-spacing: 4px; }
  .section-title::after { margin-top: 16px; }
  .section-desc { font-size: 13.5px; margin: 14px 0 36px; }
  .svc-group { margin-top: 48px; scroll-margin-top: 70px; }
  .svc-group-title { font-size: 18px; gap: 12px; }
  .sg-glyph { width: 38px; height: 38px; font-size: 20px; }

  /* 卡片 / 案例：单列 */
  .card-grid { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 24px 20px; }
  .card-glyph { width: 54px; height: 54px; font-size: 26px; margin-bottom: 14px; }
  .case-grid { grid-template-columns: 1fr; gap: 14px; }
  .case { padding: 20px 18px 16px; }
  .about-wrap { padding: 26px 22px; font-size: 14px; line-height: 1.95; }

  /* 子页面 */
  .pg-glyph { width: 74px; height: 74px; font-size: 40px; margin-bottom: 20px; }
  .pg-intro { font-size: 14px; line-height: 1.9; margin: 16px auto 40px; }
  .pg-prep { padding: 22px 20px; margin-top: 44px; }
  .pg-actions { gap: 14px; margin-top: 36px; }
  .btn { padding: 13px 26px; font-size: 14px; }

  /* 联系 / 页脚 */
  .contact-grid { gap: 14px; }
  .contact-item { padding: 20px 18px; }
  .contact-item.mini { width: 180px; padding: 14px 12px; }
  .contact-item.mini .ci-qr { width: 104px; }
  .footer { margin-top: 60px; padding: 30px 16px 26px; }
}
