/* ============================================================
   星占学社 · 站点样式（多页共用）
   白色底 + 彩虹点缀 + 中英双语。
   改色：顶部 :root 的七个 --c* 色值，和 --rainbow。
   改文字：去对应的 .html 文件。
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f7;
  --ink: #17171b;
  --ink-2: #3c3c44;
  --muted: #7c7c86;
  --line: rgba(23, 23, 27, .12);

  /* 彩虹七色（改这里即可换整站点缀色） */
  --c1: #e0504d;  /* 红 */
  --c2: #ef8a3c;  /* 橙 */
  --c3: #dfb43f;  /* 黄 */
  --c4: #58a55c;  /* 绿 */
  --c5: #3aa6a0;  /* 青 */
  --c6: #4a6fa5;  /* 蓝 */
  --c7: #7b6bb5;  /* 紫 */

  --rainbow: linear-gradient(90deg, #e0504d, #ef8a3c, #dfb43f, #58a55c, #3aa6a0, #4a6fa5, #7b6bb5);

  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --text: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; margin: 0; color: var(--ink); }
p { margin: 0 0 1em; }
a { color: inherit; }
b, strong { font-weight: 600; }
img { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

/* ---------- 顶部彩虹条 ---------- */
.rainbow-bar { height: 4px; background: var(--rainbow); }

/* ---------- 双语小字 ---------- */
.kicker, .label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--muted);
}
.en {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--muted);
}

/* ---------- 按钮与箭头 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.arrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color .2s ease;
}
.arrow::after { content: " →"; }
.arrow:hover { border-color: var(--ink); }
.arrow.muted { color: var(--muted); }

/* 彩虹下划线（用于标题关键字） */
.rainbow-line {
  background-image: var(--rainbow);
  background-repeat: no-repeat;
  background-size: 100% 4px;
  background-position: 0 100%;
  padding-bottom: 5px;
}

/* ---------- 页头 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead-inner { display: flex; align-items: center; gap: 30px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.seal {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--rainbow);
  color: #fff;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.05;
  text-align: center;
  padding: 2px 0;
}
.brand-name { font-size: 1.1rem; letter-spacing: .14em; color: var(--ink); line-height: 1.2; }
.brand-name em {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: .26em;
  color: var(--muted);
  margin-top: 3px;
}
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a {
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: .06em;
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.menu a em { font-style: normal; font-size: 9px; letter-spacing: .18em; color: var(--muted); margin-left: 5px; }
.menu a:hover { color: var(--ink); }
.menu a.active { border-bottom-color: var(--c5); }

/* ---------- 首屏 / 页首 ---------- */
.hero { padding: clamp(70px, 10vw, 120px) 0 clamp(52px, 7vw, 80px); }
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.4;
  letter-spacing: .01em;
  margin: 24px 0 0;
  max-width: 18em;
}
.hero .tagline {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: .02em;
  color: var(--muted);
  margin: 20px 0 0;
  max-width: 40em;
}
.hero .lede { font-size: 1rem; color: var(--ink-2); max-width: 40em; margin-top: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 0; }

.page-hero { padding: clamp(50px, 7vw, 84px) 0 clamp(30px, 4vw, 46px); }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.42;
  letter-spacing: .01em;
  margin: 20px 0 0;
  max-width: 16em;
}
.page-hero .lede { font-size: 1rem; color: var(--muted); max-width: 36em; margin-top: 16px; }

/* ---------- 章节骨架 ---------- */
.sec { border-top: 1px solid var(--line); padding: clamp(46px, 6.5vw, 80px) 0; }
.rail {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.rail-label { position: sticky; top: 92px; align-self: start; }
.rail-label .num { display: block; font-family: var(--serif); font-size: 1.4rem; color: var(--ink); line-height: 1; letter-spacing: .1em; }
.rail-label .lbl { display: block; font-family: var(--sans); font-size: 14px; letter-spacing: .2em; color: var(--ink); margin-top: 12px; }
.rail-label .lbl-en { display: block; font-family: var(--sans); font-size: 9.5px; letter-spacing: .26em; color: var(--muted); margin-top: 6px; text-transform: uppercase; }
.rail-body { max-width: var(--text); }
.prose p { font-size: 1rem; line-height: 1.95; }
.prose .lead { font-size: 1.22rem; line-height: 1.85; color: var(--ink); margin-bottom: 1em; }
.prose .sign { margin-top: 24px; font-size: .9rem; color: var(--muted); text-align: right; }

/* ---------- 牌种卡片 ---------- */
.sys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 30px; }
.sys {
  padding: 24px 22px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--a, var(--c5));
  border-radius: 6px;
}
.sys .sys-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.sys h3 { font-size: 1.2rem; letter-spacing: .03em; color: var(--ink); }
.sys .sys-en { font-family: var(--sans); font-size: 10px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.sys p { font-size: .9rem; color: var(--muted); margin: 12px 0 0; line-height: 1.8; }
.sys p.en { font-size: .82rem; color: var(--muted); margin-top: 6px; opacity: .8; }

/* 详情页牌种（宽块） */
.sys-detail { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.sys-detail .sys-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--a, var(--c5));
  margin-top: 8px;
}
.sys-detail h3 { font-size: 1.25rem; }
.sys-detail .sys-en { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; margin-top: 6px; }
.sys-detail p { font-size: .95rem; color: var(--ink-2); margin: 12px 0 0; }
.sys-detail p.en { font-size: .85rem; color: var(--muted); margin-top: 8px; }

/* ---------- 认证三级 ---------- */
.degrees { list-style: none; margin: 0; padding: 0; }
.degrees li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0 clamp(16px, 3vw, 30px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.degrees li:first-child { border-top: 1px solid var(--line); }
.degrees .deg-no {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--a, var(--c5));
  letter-spacing: .1em;
  padding-top: 3px;
}
.degrees h3 { font-size: 1.22rem; color: var(--ink); letter-spacing: .03em; }
.degrees h3 em { font-style: normal; font-family: var(--sans); font-size: 10px; letter-spacing: .2em; color: var(--muted); margin-left: 12px; }
.degrees p { margin: 8px 0 0; font-size: .95rem; color: var(--ink-2); }
.degrees p.en { font-size: .84rem; color: var(--muted); }
.degrees .cond { font-size: .86rem; color: var(--muted); }
.degrees .cond b { color: var(--ink); font-weight: 600; }

/* ---------- 证书 ---------- */
.cert-band {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 54px);
  align-items: start;
  margin-top: 40px;
}
.cert-card {
  position: relative;
  padding: 24px 24px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px -30px rgba(23, 23, 27, .35);
  overflow: hidden;
}
.cert-card .cert-rainbow { height: 4px; background: var(--rainbow); margin: -24px -24px 22px; }
.cert-head { font-family: var(--sans); font-size: 9px; letter-spacing: .28em; text-align: center; color: var(--muted); }
.cert-title { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .3em; text-align: center; margin: 16px 0 2px; color: var(--ink); text-indent: .3em; }
.cert-sub { font-family: var(--sans); font-size: 8px; letter-spacing: .32em; text-align: center; color: var(--muted); text-transform: uppercase; }
.cert-name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .16em; text-align: center; color: var(--ink); margin: 24px 0 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); text-indent: .16em; }
.cert-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-family: var(--sans); font-size: 10px; letter-spacing: .04em; color: var(--muted); }
.cert-meta span b { color: var(--ink); font-weight: 600; }
.cert-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--muted);
}
.cert-seal {
  flex: none;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid #c0392b;
  color: #c0392b;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.15;
  text-align: center;
  transform: rotate(-9deg);
  opacity: .85;
}
.cert-cap { font-family: var(--sans); font-size: 10px; letter-spacing: .18em; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* ---------- 条款与名录 ---------- */
.terms { margin: 0; padding: 0; list-style: none; }
.terms li { font-size: .9rem; color: var(--muted); padding: 8px 0 8px 16px; position: relative; line-height: 1.8; }
.terms li::before { content: "·"; position: absolute; left: 2px; color: var(--c5); }

.roster-h { font-family: var(--sans); font-size: 11px; letter-spacing: .26em; color: var(--muted); margin: 30px 0 6px; }
.roster { list-style: none; margin: 0; padding: 0; }
.roster li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--ink-2);
}
.roster .r-name { color: var(--ink); letter-spacing: .06em; }
.roster .r-city { font-family: var(--sans); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.roster .r-deg { font-family: var(--sans); font-size: 10px; letter-spacing: .16em; color: var(--c5); white-space: nowrap; }
.roster-note { font-size: .84rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- 创办人 ---------- */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.plate { padding: 10px; border: 1px solid var(--line); background: var(--bg-soft); border-radius: 8px; margin: 0; }
.plate-inner {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border-radius: 5px;
  overflow: hidden;
  background: #ececef;
}
.plate-inner img { width: 100%; height: 100%; object-fit: cover; }
.plate-cap { font-family: var(--sans); font-size: 10px; letter-spacing: .2em; color: var(--muted); text-align: center; padding: 9px 0 3px; }
.founder .prose p { font-size: .98rem; }
.founder .prose p.en { font-size: .86rem; color: var(--muted); }
.creds { list-style: none; margin: 24px 0 0; padding: 0; }
.creds li { font-size: .9rem; color: var(--muted); padding: 10px 0; border-top: 1px solid var(--line); }

/* ---------- 问答 ---------- */
.faq { margin: 0; }
.faq dt { font-size: 1.02rem; color: var(--ink); font-weight: 600; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.faq dt:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.faq dd { margin: 8px 0 0; font-size: .94rem; color: var(--ink-2); line-height: 1.9; max-width: 60ch; }

/* ---------- 联系 ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 70px); align-items: start; }
.wechat-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.wechat-line .label { letter-spacing: .22em; }
.wechat-line code { font-family: var(--mono); font-size: 1rem; color: var(--ink); letter-spacing: .03em; }
.copy {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 5px 12px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.copy:hover { color: var(--ink); border-color: var(--ink); }
.copy.done { color: var(--c4); border-color: var(--c4); }

.qrs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.qr { text-align: center; }
.qr .plate { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; }
.qr .plate-inner {
  width: 100%;
  max-width: 190px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
}
.qr .plate-inner img { width: 100%; height: 100%; object-fit: contain; }
.qr .plate-cap { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; color: var(--muted); padding: 9px 0 3px; }

/* ---------- 页脚 ---------- */
.footer { padding: 46px 0 34px; border-top: 4px solid transparent; border-image: var(--rainbow) 1; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 30px; }
.footer h4 { font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .24em; color: var(--ink); margin: 0 0 14px; }
.footer p, .footer li, .footer a { font-size: .86rem; color: var(--muted); text-decoration: none; line-height: 1.85; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer a:hover { color: var(--ink); }
.footer-brand p { color: var(--muted); font-size: .86rem; max-width: 26em; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--muted);
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .rail { grid-template-columns: 1fr; gap: 16px; }
  .rail-label { position: static; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .rail-label .lbl, .rail-label .lbl-en { margin-top: 0; }
  .founder { grid-template-columns: 1fr; }
  .founder .plate { max-width: 260px; }
  .cert-band { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .masthead-inner { flex-wrap: wrap; gap: 0 16px; padding-top: 12px; padding-bottom: 10px; }
  .menu { order: 3; width: 100%; margin: 10px 0 0; gap: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .menu::-webkit-scrollbar { display: none; }
  .menu a { white-space: nowrap; font-size: 13px; }
  .menu a em { display: none; }
  .brand-name { font-size: 1.05rem; }
  .hero { padding-top: 48px; }
  .sys-detail { grid-template-columns: 1fr; gap: 12px; }
  .sys-detail .sys-dot { margin-top: 0; }
  .qrs { grid-template-columns: 1fr; }
  .footer { padding-bottom: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .masthead, .rainbow-bar, .mobile-cta { display: none; }
}

/* ============================================================
   顶部彩虹（首页，载入时画出，之后常驻不消失）
   ============================================================ */
.hero-rainbow {
  width: min(620px, 100%);
  height: 118px;
  overflow: hidden;
  margin: 0 auto 10px;
}
.hero-rainbow svg { width: 100%; height: auto; display: block; }
.hero-rainbow path {
  fill: none;
  stroke-width: 11;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: rainbow-draw .5s ease forwards;
}
.hero-rainbow path:nth-child(1) { stroke: #e0504d; }
.hero-rainbow path:nth-child(2) { stroke: #ef8a3c; animation-delay: .08s; }
.hero-rainbow path:nth-child(3) { stroke: #dfb43f; animation-delay: .16s; }
.hero-rainbow path:nth-child(4) { stroke: #58a55c; animation-delay: .24s; }
.hero-rainbow path:nth-child(5) { stroke: #3aa6a0; animation-delay: .32s; }
.hero-rainbow path:nth-child(6) { stroke: #4a6fa5; animation-delay: .40s; }
.hero-rainbow path:nth-child(7) { stroke: #7b6bb5; animation-delay: .48s; }

@keyframes rainbow-draw { to { stroke-dashoffset: 0; } }

/* 减少动态：直接显示彩虹 */
@media (prefers-reduced-motion: reduce) {
  .hero-rainbow path { animation: none; stroke-dashoffset: 0; }
}

/* ============================================================
   开屏彩虹：全屏画出 → 收上顶部常驻（不消失）
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: pointer;
  animation: intro-bg-out .8s ease 2.5s forwards;
}
.intro.settled { pointer-events: none; }
.intro-svg {
  width: min(440px, 78vw);
  height: auto;
  overflow: visible;
  animation: intro-settle .9s ease 2.5s forwards;
}
.intro-svg path {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: rainbow-draw .5s ease forwards;
}
.intro-svg path:nth-child(1) { stroke: #e0504d; }
.intro-svg path:nth-child(2) { stroke: #ef8a3c; animation-delay: .08s; }
.intro-svg path:nth-child(3) { stroke: #dfb43f; animation-delay: .16s; }
.intro-svg path:nth-child(4) { stroke: #58a55c; animation-delay: .24s; }
.intro-svg path:nth-child(5) { stroke: #3aa6a0; animation-delay: .32s; }
.intro-svg path:nth-child(6) { stroke: #4a6fa5; animation-delay: .40s; }
.intro-svg path:nth-child(7) { stroke: #7b6bb5; animation-delay: .48s; }

.intro-brand {
  margin-top: 8px;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: .22em;
  text-indent: .22em;
  color: var(--ink);
  opacity: 0;
  animation: intro-brand-in .6s ease 1.15s forwards,
             intro-brand-out .5s ease 2.5s forwards;
}
.intro-brand em {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .32em;
  color: var(--muted);
  margin-top: 9px;
  text-indent: 0;
  text-transform: uppercase;
}

@keyframes intro-bg-out { to { background: transparent; } }
@keyframes intro-brand-in { to { opacity: 1; } }
@keyframes intro-brand-out { to { opacity: 0; } }
@keyframes intro-settle {
  to { transform: translateY(calc(-50vh + 40px)) scale(.45); opacity: .62; }
}

/* 减少动态：直接跳过开屏，显示顶部彩虹 */
@media (prefers-reduced-motion: reduce) {
  .intro { animation: none; opacity: 0; visibility: hidden; }
  .intro-svg path { animation: none; stroke-dashoffset: 0; }
  .intro-brand { animation: none; opacity: 1; }
}

/* ============================================================
   证书查询
   ============================================================ */
.verify-box { max-width: 520px; margin-top: 30px; }
.verify-row { display: flex; gap: 12px; }
.verify-input {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 16px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.verify-input:focus { border-color: var(--c5); }
.verify-btn {
  padding: 13px 26px;
  border: none;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .06em;
  cursor: pointer;
}
.verify-btn:hover { opacity: .88; }
.verify-result {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: none;
}
.verify-result.show { display: block; }
.verify-result.ok { border-color: #bcd7bc; background: #f1f8f1; }
.verify-result.miss { border-color: #e2c5c3; background: #faf3f2; }
.verify-result h3 { font-size: 1.12rem; margin-bottom: 10px; }
.verify-result.ok h3 { color: #2e7d32; }
.verify-result.miss h3 { color: #b3433f; }
.verify-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: .92rem; color: var(--ink-2); }
.verify-meta b { font-weight: 600; }
.verify-hint { font-size: .86rem; color: var(--muted); margin-top: 16px; line-height: 1.8; }

/* ============================================================
   著作展示
   ============================================================ */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 28px; }
.book { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.book .book-cover {
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f0eef4, #e6e2ee);
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-align: center;
  padding: 12px;
}
.book .book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book figcaption { padding: 12px 14px 14px; }
.book figcaption h3 { font-size: 1rem; }
.book figcaption p { font-size: .82rem; color: var(--muted); margin: 4px 0 0; }

/* ============================================================
   如何开始
   ============================================================ */
.how { list-style: none; margin: 28px 0 0; padding: 0; }
.how li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.how li:last-child { border-bottom: 1px solid var(--line); }
.how .how-n { font-family: var(--serif); font-size: 1.1rem; color: var(--c5); }
.how h3 { font-size: 1.05rem; }
.how p { font-size: .92rem; color: var(--muted); margin: 4px 0 0; }

/* ---------- ADS 徽章 ---------- */
.ads-badge { width: 34px; height: 34px; flex: none; display: block; }

/* ---------- 课程代码表 ---------- */
.codes { margin: 22px 0 0; padding: 0; }
.codes div { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.codes dt { font-family: var(--mono); font-size: .95rem; color: var(--c5); }
.codes dd { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* ---------- 著作（大图 + 书目） ---------- */
.book-feature { margin: 26px 0 0; }
.book-feature img { width: 100%; display: block; border-radius: 8px; border: 1px solid var(--line); }
.book-feature figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; text-align: center; }
.book-list { list-style: none; padding: 0; margin: 22px 0 0; }
.book-list li { padding: 12px 0; border-top: 1px solid var(--line); font-size: .94rem; color: var(--ink-2); }
.book-list b { color: var(--ink); }

/* ---------- 原创卡牌 ---------- */
.deck-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.deck { margin: 0; }
.deck img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 8px; border: 1px solid var(--line); }
.deck figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; text-align: center; }
@media (max-width: 640px) { .deck-grid { grid-template-columns: 1fr; } }

/* ---------- 文章 ---------- */
.post { padding: 26px 0; border-top: 1px solid var(--line); }
.post:first-of-type { border-top: 0; padding-top: 0; }
.post-date { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--gold); margin: 0 0 8px; }
.post h2 { font-size: 1.25rem; color: var(--ink); margin: 0 0 10px; }
.post p { font-size: .95rem; color: var(--ink-2); margin: 0 0 .8em; line-height: 1.9; }
.post p.en { font-size: .84rem; color: var(--muted); }
