/* ============================================================
   易学 · 前台样式
   纸本、玄墨、朱砂、鎏金；宋体标题 + 无衬线正文
   ============================================================ */
:root {
  --paper: #f2ece1;
  --paper-2: #fbf7ef;
  --paper-3: #fffdf8;
  --ink: #17150f;
  --ink-2: #2c2821;
  --body: #4a443a;
  --muted: #8b8172;
  --line: #e2d8c8;
  --line-strong: #cdbfa8;
  --gold: #a98645;
  --gold-2: #c9a86b;
  --cinnabar: #b23a2f;
  --cinnabar-2: #d0574a;
  --jade: #2f6f63;
  --indigo: #243b53;
  --shadow-sm: 0 1px 2px rgba(35, 28, 18, .05), 0 8px 24px -16px rgba(35, 28, 18, .25);
  --shadow-md: 0 24px 60px -36px rgba(23, 21, 15, .45), 0 2px 8px rgba(23, 21, 15, .05);
  --radius: 12px;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--body);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  background:
    radial-gradient(1200px 600px at 8% -10%, rgba(169, 134, 69, .10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(178, 58, 47, .05), transparent 55%),
    linear-gradient(180deg, #f5efe4 0%, var(--paper) 40%, #efe7da 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 600; letter-spacing: .01em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; }
img, canvas, svg { display: block; max-width: 100%; }
::selection { background: rgba(178, 58, 47, .18); }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; position: relative; z-index: 1; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.cinnabar { color: var(--cinnabar); }
.serif { font-family: var(--serif); }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 228, .82);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid rgba(205, 191, 168, .55);
}
.header-inner { display: flex; align-items: center; gap: 34px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--serif); font-size: 22px; color: var(--ink); letter-spacing: .18em; }
.brand-text small { font-size: 9px; letter-spacing: .5em; color: var(--gold); margin-top: 5px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.site-nav a {
  position: relative; padding: 8px 16px; border-radius: 999px; font-size: 14px; color: var(--body);
  transition: color .2s, background .2s;
}
.site-nav a:hover { color: var(--ink); background: rgba(169, 134, 69, .10); }
.site-nav a.active { color: var(--ink); font-weight: 600; }
.site-nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 16px; height: 2px;
  background: var(--cinnabar); transform: translateX(-50%); border-radius: 2px;
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-note { font-size: 12px; color: var(--muted); letter-spacing: .08em; }

/* ---------- 导航下实时天时条 ---------- */
.astro-bar {
  position: relative; z-index: 30; background: #17150f; color: #e9dfcb;
  border-bottom: 1px solid rgba(201, 168, 107, .18);
}
.astro-bar-inner { display: flex; align-items: stretch; min-height: 38px; }
.astro-bar-item {
  flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px;
  padding: 7px 18px; border-right: 1px solid rgba(255, 255, 255, .07);
}
.astro-bar-item:last-child { border-right: none; }
.astro-bar-item span {
  flex: 0 0 auto; font-size: 9.5px; letter-spacing: .18em; color: var(--gold-2);
  text-transform: uppercase; white-space: nowrap;
}
.astro-bar-item b {
  font-size: 12px; font-weight: 500; color: #f1e7d3; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.astro-bar-item b.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 11.5px; }

/* ---------- 前台用户 ---------- */
.user-slot { position: relative; }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper-3);
  cursor: pointer; font-size: 12.5px; color: var(--ink); transition: all .2s;
}
.user-chip:hover { border-color: var(--gold); }
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-2), var(--cinnabar)); color: #fff8ec;
  font-family: var(--serif); font-size: 13px;
}
.user-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; z-index: 90;
  background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: 8px;
  box-shadow: var(--shadow-md); padding: 6px; animation: pageIn .18s ease both;
}
.user-menu button, .user-menu a {
  display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px 10px;
  border: none; background: transparent; border-radius: 5px; text-align: left;
  font-size: 12.5px; color: var(--body); cursor: pointer;
}
.user-menu button:hover, .user-menu a:hover { background: rgba(169, 134, 69, .10); color: var(--ink); }
.user-menu .count { margin-left: auto; font-size: 10px; color: var(--gold); font-family: var(--mono); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 6px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, background .2s, border-color .2s, color .2s, box-shadow .2s;
  background: var(--ink); color: #f8f3e8; letter-spacing: .04em;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(23, 21, 15, .6); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.gold { background: linear-gradient(135deg, #b28c48, #8f6c30); color: #fffaf0; }
.btn.cinnabar { background: var(--cinnabar); color: #fff7f2; }
.btn.ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.link { background: none; border: none; color: var(--cinnabar); padding: 4px 0; }
.btn.link:hover { box-shadow: none; text-decoration: underline; }
.icon-btn {
  width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 6px; background: var(--paper-3); cursor: pointer;
  transition: all .2s;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- 通用块 ---------- */
.page { animation: pageIn .45s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .28em; color: var(--gold); text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: .7; }
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 10px; }
.section-head p { color: var(--muted); font-size: 14px; max-width: 640px; margin-top: 8px; }
.card {
  background: linear-gradient(180deg, rgba(255, 253, 248, .96), rgba(250, 245, 236, .96));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* ---------- 首页 Hero ---------- */
.hero { padding: 68px 0 40px; display: grid; grid-template-columns: 1fr minmax(380px, 500px); gap: 64px; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 20px; }
.hero h1 { font-size: clamp(54px, 7.4vw, 96px); line-height: 1.02; letter-spacing: .08em; margin-left: -.06em; }
.hero h1 .accent { color: var(--cinnabar); }
.hero-sub { display: flex; align-items: center; gap: 16px; margin-top: 20px; font-family: var(--serif); font-size: 19px; color: var(--ink-2); letter-spacing: .22em; }
.hero-sub .line { width: 42px; height: 1px; background: var(--gold); }
.hero-desc { margin-top: 24px; max-width: 500px; font-size: 15px; color: var(--body); line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 34px; margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-meta div b { display: block; font-family: var(--serif); font-size: 24px; color: var(--ink); }
.hero-meta div span { font-size: 11px; letter-spacing: .16em; color: var(--muted); }

.cosmic {
  position: relative; border-radius: 22px; overflow: hidden; background: #050609;
  border: 1px solid rgba(201, 168, 107, .24);
  box-shadow: 0 40px 90px -48px rgba(9, 10, 14, .9), inset 0 0 0 1px rgba(255, 255, 255, .03);
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column;
}
.cosmic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 42%, transparent 40%, rgba(0, 0, 0, .45) 100%);
}
.cosmic-canvas { flex: 1; min-height: 0; position: relative; }
.cosmic-canvas canvas { width: 100%; height: 100%; }
.cosmic-overlay {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  color: rgba(246, 238, 222, .82); font-size: 11px; letter-spacing: .16em;
}
.cosmic-overlay .seal {
  border: 1px solid rgba(201, 168, 107, .55); color: var(--gold-2); padding: 6px 9px;
  border-radius: 4px; font-family: var(--serif); letter-spacing: .3em; writing-mode: vertical-rl;
  line-height: 1.1; height: 76px; display: flex; align-items: center;
}
.cosmic-top { position: absolute; top: 16px; left: 18px; right: 18px; z-index: 2; display: flex; justify-content: space-between; color: rgba(246, 238, 222, .55); font-size: 10px; letter-spacing: .22em; }
.dot-live { display: inline-flex; align-items: center; gap: 6px; }
.dot-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5bd6a8; box-shadow: 0 0 10px #5bd6a8; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---------- 天文条 ---------- */
.astro-strip { margin-top: 24px; }
.astro-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 253, 248, .72);
}
.astro-item { padding: 16px 20px; border-right: 1px solid var(--line); }
.astro-item:last-child { border-right: none; }
.astro-item span { display: block; font-size: 10px; letter-spacing: .2em; color: var(--muted); }
.astro-item b { display: block; font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 15px; margin-top: 6px; }
.astro-item b.mono { font-family: var(--mono); font-size: 14px; }

/* ---------- 功能 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  position: relative; padding: 28px 26px 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(255, 253, 248, .7);
  transition: transform .25s, border-color .25s, background .25s; overflow: hidden;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--paper-3); }
.feature .num { font-family: var(--serif); font-size: 13px; color: var(--gold); letter-spacing: .2em; }
.feature .ico { width: 40px; height: 40px; margin: 16px 0 14px; color: var(--cinnabar); }
.feature h3 { font-size: 19px; }
.feature p { font-size: 13px; color: var(--body); margin-top: 10px; line-height: 1.8; }
.feature .go { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--gold); margin-top: 16px; letter-spacing: .1em; }
.feature:hover .go { color: var(--cinnabar); }

/* 核心能力下方的系统支撑说明 */
.support-line {
  margin-top: 18px; padding: 14px 18px; border: 1px dashed var(--line-strong);
  border-radius: 8px; background: rgba(255, 253, 248, .55);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
}
.support-line .support-label {
  font-family: var(--serif); color: var(--gold); letter-spacing: .18em; font-size: 11px;
  border-right: 1px solid var(--line-strong); padding-right: 12px;
}
.support-line a { color: var(--cinnabar); }
.support-line a:hover { text-decoration: underline; }
.support-line .sep { color: var(--line-strong); }

/* ---------- 卦格 ---------- */
.hex-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.hex-mini {
  position: relative; padding: 14px 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255, 253, 248, .8); text-align: center; cursor: pointer;
  transition: all .2s; overflow: hidden;
}
.hex-mini:hover { border-color: var(--gold); background: var(--paper-3); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.hex-mini .no { font-size: 9px; color: var(--muted); letter-spacing: .08em; }
.hex-mini .mini-lines { display: flex; flex-direction: column-reverse; gap: 3px; align-items: center; margin: 8px 0; }
.hex-mini .mini-lines i { display: block; height: 3px; border-radius: 1px; background: var(--ink); }
.hex-mini .mini-lines i.yang { width: 30px; }
.hex-mini .mini-lines i.yin { width: 12px; }
.hex-mini .mini-lines i.split { background: transparent; display: flex; gap: 6px; width: 30px; }
.hex-mini .mini-lines i.split::before, .hex-mini .mini-lines i.split::after { content: ""; height: 3px; width: 12px; background: var(--ink); border-radius: 1px; }
.hex-mini .nm { font-family: var(--serif); font-size: 13px; color: var(--ink); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hex-mini .full { font-size: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

/* ---------- 摇卦 ---------- */
.cast-hero { padding: 56px 0 20px; text-align: center; }
.cast-hero h1 { font-size: clamp(38px, 5vw, 60px); margin-top: 14px; letter-spacing: .12em; }
.cast-hero p { max-width: 620px; margin: 14px auto 0; color: var(--muted); font-size: 14px; }
.cast-stage { margin: 34px auto 0; max-width: 880px; padding: 38px; text-align: center; }
.cast-stage .seal-line { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); font-size: 11px; letter-spacing: .3em; }
.cast-stage .seal-line::before, .cast-stage .seal-line::after { content: ""; width: 48px; height: 1px; background: var(--line-strong); }
.coins { display: flex; justify-content: center; gap: 18px; margin: 26px 0 8px; height: 64px; align-items: center; }
.coin {
  width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6e6b8, #c9a86b 45%, #8f6c30 100%);
  border: 1px solid #7c5c25; position: relative; box-shadow: 0 8px 18px -10px rgba(80, 55, 10, .8), inset 0 0 0 3px rgba(255, 250, 235, .28);
  display: grid; place-items: center; color: #5c4214; font-family: var(--serif); font-size: 15px;
}
.coin::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid rgba(92, 66, 20, .55); background: var(--paper); }
.coin.flip { animation: coinFlip .7s cubic-bezier(.3, .1, .2, 1) infinite; }
.coin:nth-child(2) { animation-delay: .12s; }
.coin:nth-child(3) { animation-delay: .24s; }
@keyframes coinFlip { 0% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(540deg) translateY(-14px); } 100% { transform: rotateY(1080deg) translateY(0); } }
.cast-stage h2 { font-size: 28px; margin-top: 14px; letter-spacing: .16em; }
.cast-stage .hint { color: var(--muted); font-size: 13px; margin-top: 8px; }
.cast-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.cast-result { margin-top: 40px; }
.result-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.gua-board { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gua-card {
  background: var(--paper-3); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 16px 16px; text-align: center; position: relative; transition: border-color .2s, transform .2s;
}
.gua-card:hover { border-color: var(--line-strong); }
.gua-card.main { grid-column: span 2; border-color: rgba(169, 134, 69, .55); background: linear-gradient(180deg, #fffdf8, #f8f1e4); }
.gua-card .kind { font-size: 11px; letter-spacing: .28em; color: var(--gold); }
.gua-card .gua-lines { display: flex; flex-direction: column-reverse; gap: 7px; align-items: center; margin: 16px 0 12px; }
.yao { height: 11px; display: flex; gap: 9px; justify-content: center; align-items: center; position: relative; }
.yao i { display: block; height: 11px; border-radius: 2px; background: linear-gradient(180deg, #3a352c, #17150f); }
.yao i.yang { width: 108px; }
.yao i.yin { width: 40px; }
.yao .mvdot { position: absolute; right: -20px; width: 7px; height: 7px; border-radius: 50%; background: var(--cinnabar); box-shadow: 0 0 0 3px rgba(178, 58, 47, .12); }
.gua-card .gua-name { font-family: var(--serif); font-size: 22px; color: var(--ink); letter-spacing: .08em; }
.gua-card .gua-no { font-size: 11px; color: var(--muted); margin-top: 4px; letter-spacing: .1em; }
.gua-card .gua-note { font-size: 11px; color: var(--muted); margin-top: 8px; }
.gua-card.dim { opacity: .5; }
.gua-card.enter .yao { animation: yaoIn .5s ease both; }
.gua-card.enter .yao:nth-child(2) { animation-delay: .06s; }
.gua-card.enter .yao:nth-child(3) { animation-delay: .12s; }
.gua-card.enter .yao:nth-child(4) { animation-delay: .18s; }
.gua-card.enter .yao:nth-child(5) { animation-delay: .24s; }
.gua-card.enter .yao:nth-child(6) { animation-delay: .3s; }
@keyframes yaoIn { from { opacity: 0; transform: scaleX(.4); } to { opacity: 1; transform: none; } }

.result-side { display: flex; flex-direction: column; gap: 16px; }
.reading p { font-size: 13.5px; line-height: 1.9; color: var(--body); }
.reading h3 { font-size: 17px; margin-bottom: 10px; }
.moving-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(169, 134, 69, .10); border: 1px solid rgba(169, 134, 69, .24);
  color: #7a6030; font-size: 11.5px; letter-spacing: .06em;
}
.tag.red { background: rgba(178, 58, 47, .08); border-color: rgba(178, 58, 47, .22); color: var(--cinnabar); }
.astro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.astro-cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 16px; background: rgba(255, 253, 248, .55); }
.astro-cell span { display: block; font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.astro-cell b { display: block; margin-top: 5px; font-size: 13.5px; color: var(--ink); font-weight: 600; font-family: var(--serif); }
.astro-cell b.mono { font-family: var(--mono); font-size: 12.5px; }

.history-list { display: flex; flex-direction: column; }
.history-row {
  display: grid; grid-template-columns: 92px 1.2fr 1fr auto; gap: 16px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s;
}
.history-row:last-child { border-bottom: none; }
.history-row:hover { background: rgba(169, 134, 69, .06); }
.history-row .when { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.history-row .guas { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink); }
.history-row .guas .arrow { color: var(--line-strong); }
.history-row .astro { font-size: 11.5px; color: var(--muted); }
.history-row .more { font-size: 11px; color: var(--gold); letter-spacing: .1em; }

/* ---------- 卦库 ---------- */
.library-head { padding: 48px 0 22px; }
.library-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 22px 0 26px; }
.search {
  display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 42px; min-width: 260px;
  background: var(--paper-3); border: 1px solid var(--line); border-radius: 6px;
}
.search input { border: none; outline: none; background: transparent; font-size: 14px; width: 100%; color: var(--ink); }
.search svg { color: var(--muted); flex: 0 0 auto; }
.trigram-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.trigram-filter button {
  width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper-3);
  font-family: var(--serif); cursor: pointer; color: var(--body); transition: all .2s; font-size: 13px;
  display: grid; place-items: center; line-height: 1;
}
.trigram-filter button small { display: block; font-size: 8px; color: var(--muted); }
.trigram-filter button:hover { border-color: var(--gold); }
.trigram-filter button.on { background: var(--ink); color: #f8f3e8; border-color: var(--ink); }
.trigram-filter button.on small { color: rgba(248, 243, 232, .6); }
.library-count { font-size: 12px; color: var(--muted); margin-left: auto; letter-spacing: .08em; }
.library-grid { margin-bottom: 40px; }
.library-grid .hex-mini { padding: 16px 10px 14px; }
.library-grid .hex-mini .nm { font-size: 14px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); font-size: 14px; }
.empty .big { font-family: var(--serif); font-size: 40px; color: var(--line-strong); margin-bottom: 12px; }

/* ---------- 详情弹层 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 17, 12, .55);
  backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 20px 40px; overflow-y: auto; animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(860px, 100%); background: var(--paper-2); border: 1px solid var(--line-strong);
  border-radius: 16px; box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .6);
  animation: modalIn .3s cubic-bezier(.2, .8, .2, 1) both; position: relative;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 253, 248, .9); cursor: pointer; display: grid; place-items: center;
  color: var(--body); transition: all .2s;
}
.modal-close:hover { border-color: var(--cinnabar); color: var(--cinnabar); transform: rotate(90deg); }
.modal-body { padding: 34px 36px 32px; }

/* ---------- 划线 / 笔记 ---------- */
mark.hl {
  background: linear-gradient(180deg, transparent 52%, rgba(201, 168, 107, .38) 52%);
  color: inherit; border-bottom: 1px solid rgba(169, 134, 69, .55);
  padding: 0 1px; cursor: pointer; border-radius: 2px;
}
mark.hl:hover { background: rgba(201, 168, 107, .3); }
.selection-bar {
  position: fixed; z-index: 160; display: flex; gap: 4px; padding: 4px;
  background: #17150f; border: 1px solid rgba(201, 168, 107, .4); border-radius: 7px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .7); animation: pageIn .15s ease both;
}
.selection-bar button {
  border: none; background: transparent; color: #f1e7d3; font-size: 12px;
  padding: 6px 10px; border-radius: 4px; cursor: pointer; white-space: nowrap;
}
.selection-bar button:hover { background: rgba(201, 168, 107, .18); }
.aux-backdrop {
  position: fixed; inset: 0; z-index: 170; background: rgba(20, 17, 12, .45);
  backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .18s ease;
}
.aux-modal {
  width: min(520px, 100%); max-height: 86vh; overflow-y: auto; background: var(--paper-2);
  border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .65); animation: modalIn .25s ease both;
  position: relative;
}
.aux-body { padding: 26px 28px 24px; }
.aux-body h3 { font-size: 20px; letter-spacing: .06em; }
.aux-body .sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.aux-close {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper-3); color: var(--body); display: grid; place-items: center;
}
.aux-close:hover { border-color: var(--cinnabar); color: var(--cinnabar); }
.quote-box {
  margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--gold);
  background: rgba(201, 168, 107, .10); border-radius: 0 6px 6px 0;
  font-family: var(--serif); font-size: 14px; line-height: 1.9; color: var(--ink-2);
  max-height: 150px; overflow-y: auto;
}
.aux-body textarea {
  width: 100%; min-height: 130px; margin-top: 14px; padding: 10px 12px; resize: vertical;
  border: 1px solid var(--line); border-radius: 6px; background: var(--paper-3);
  font-family: inherit; font-size: 13px; color: var(--ink); line-height: 1.8; outline: none;
}
.aux-body textarea:focus { border-color: var(--gold); }
.aux-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.auth-tabs { display: flex; gap: 6px; margin-top: 18px; padding: 3px; background: rgba(169, 134, 69, .08); border-radius: 7px; }
.auth-tabs button { flex: 1; padding: 7px; border: none; border-radius: 5px; background: transparent; font-size: 12.5px; color: var(--muted); }
.auth-tabs button.on { background: var(--paper-3); color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.auth-form label { font-size: 11.5px; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }
.auth-form input { height: 38px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-3); padding: 0 10px; font-size: 13px; color: var(--ink); outline: none; }
.auth-form input:focus { border-color: var(--gold); }
.note-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.note-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-3); }
.note-item .q { font-family: var(--serif); font-size: 13.5px; color: var(--ink); line-height: 1.8; }
.note-item .n { font-size: 12px; color: var(--body); margin-top: 6px; white-space: pre-wrap; }
.note-item .meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 10px; color: var(--muted); }
.note-item .meta .spacer { flex: 1; }
.note-item .meta button { border: none; background: none; color: var(--cinnabar); font-size: 11px; cursor: pointer; }
.user-note-count { font-family: var(--mono); font-size: 10px; color: var(--gold); }
.detail-top { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center; }
.detail-lines { display: flex; flex-direction: column-reverse; gap: 9px; align-items: center; padding: 18px; background: rgba(255, 253, 248, .8); border: 1px solid var(--line); border-radius: 12px; }
.detail-lines .yao i.yang { width: 118px; }
.detail-lines .yao i.yin { width: 44px; }
.detail-title .no { font-size: 11px; letter-spacing: .24em; color: var(--gold); }
.detail-title h2 { font-size: 38px; letter-spacing: .1em; margin: 6px 0 2px; }
.detail-title .full { font-size: 14px; color: var(--muted); letter-spacing: .18em; }
.detail-title .keywords { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.classic { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.classic-block { padding: 18px 20px; background: rgba(255, 253, 248, .7); border: 1px solid var(--line); border-radius: 10px; }
.classic-block h4 { font-size: 13px; letter-spacing: .2em; color: var(--gold); margin-bottom: 8px; }
.classic-block p { font-family: var(--serif); font-size: 16px; line-height: 1.9; color: var(--ink-2); }
.classic-block .modern { font-family: var(--sans); font-size: 13.5px; color: var(--body); line-height: 1.9; }
.yao-texts { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.yao-texts .row { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed rgba(205, 191, 168, .5); }
.yao-texts .row:last-child { border-bottom: none; }
.yao-texts .row span { color: var(--gold); letter-spacing: .08em; }
.yao-texts .row p { color: var(--body); }
.yao-texts .row .yao-image { font-size: 11.5px; color: var(--muted); margin-top: 3px; font-family: var(--sans); }
.related-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.related {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 253, 248, .65);
  cursor: pointer; transition: all .2s;
}
.related:hover { border-color: var(--gold); background: var(--paper-3); }
.related span { display: block; font-size: 10px; letter-spacing: .16em; color: var(--muted); }
.related b { display: block; font-family: var(--serif); font-size: 15px; color: var(--ink); margin-top: 4px; }

/* ---------- 十翼 ---------- */
.wings-head { padding: 46px 0 18px; }
.wings-head h1 { font-size: clamp(40px, 5.4vw, 62px); letter-spacing: .16em; margin-top: 10px; }
.wings-head p { max-width: 760px; margin-top: 10px; font-size: 14px; }
.wings-body { padding-bottom: 70px; }
.wings-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.wings-tabs button {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper-3);
  font-size: 13px; color: var(--body); cursor: pointer; transition: all .2s;
}
.wings-tabs button:hover { border-color: var(--gold); }
.wings-tabs button.on { background: var(--ink); border-color: var(--ink); color: #f8f3e8; }
.wings-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.wings-tools select {
  height: 36px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-3);
  padding: 0 10px; font-size: 13px; color: var(--ink); min-width: 220px; outline: none;
}
.wings-reader { background: linear-gradient(180deg, rgba(255, 253, 248, .8), rgba(250, 245, 236, .75)); border: 1px solid var(--line); border-radius: 14px; padding: 30px 34px 20px; box-shadow: var(--shadow-sm); }
.wing-hex-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wing-hex-head h2 { font-size: 32px; letter-spacing: .08em; margin-top: 4px; }
.wing-yao-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.wing-yao { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(169, 134, 69, .08); color: var(--gold); border: 1px solid rgba(169, 134, 69, .18); }
.wing-yao.yang { color: var(--ink); }
.wing-yao.yin { color: var(--cinnabar); }
.wing-section { padding: 22px 0 6px; border-bottom: 1px dashed rgba(205, 191, 168, .55); }
.wing-section:last-child { border-bottom: none; }
.wing-section-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.wing-section-title span { font-family: var(--serif); font-size: 12px; color: var(--gold); letter-spacing: .2em; }
.wing-section-title h3 { font-size: 18px; letter-spacing: .08em; }
.wing-section p { font-family: var(--serif); font-size: 17px; line-height: 2.05; color: var(--ink-2); letter-spacing: .01em; }
.wing-yao-images { display: flex; flex-direction: column; gap: 10px; }
.wing-yao-line { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: baseline; }
.wing-yao-line > span { font-family: var(--serif); color: var(--gold); font-size: 13px; }
.wing-yao-line p { font-size: 14px; line-height: 1.9; font-family: var(--serif); }
@media (max-width: 820px) {
  .wings-reader { padding: 20px 18px 10px; }
  .wing-section p { font-size: 16px; line-height: 2; }
  .wings-head { padding-top: 30px; }
}

/* ---------- 工作室 ---------- */.studio-head { padding: 44px 0 10px; }
.studio-grid { display: grid; grid-template-columns: minmax(340px, 500px) 1fr; gap: 34px; align-items: start; padding-bottom: 60px; }
.studio-stage { position: sticky; top: 96px; max-width: 560px; }
@media (max-width: 1080px) { .studio-stage { margin-inline: auto; } }
.stage-card { padding: 14px; background: #0a0b0f; border: 1px solid rgba(201, 168, 107, .22); border-radius: 18px; box-shadow: var(--shadow-md); }
.stage-canvas { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #000; }
.stage-canvas canvas { width: 100%; height: 100%; }
.stage-tools { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.stage-tools .btn { flex: 1 1 auto; padding: 9px 12px; font-size: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #e9dfcb; }
.stage-tools .btn:hover { background: rgba(255, 255, 255, .12); }
.stage-caption { color: rgba(233, 223, 203, .55); font-size: 11px; line-height: 1.8; margin-top: 12px; letter-spacing: .05em; }
.control-stack { display: flex; flex-direction: column; gap: 18px; }
.control-card { padding: 22px 24px; }
.control-card h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.control-card h3::before { content: ""; width: 3px; height: 16px; background: var(--cinnabar); border-radius: 2px; }
.control-card .desc { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.field { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; }
.field > label { flex: 0 0 104px; color: var(--body); }
.field input[type=range] { flex: 1; accent-color: var(--cinnabar); height: 4px; }
.field .val { flex: 0 0 48px; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.field input[type=color] { width: 38px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-3); cursor: pointer; }
.field input[type=text] {
  flex: 1; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-3);
  padding: 7px 10px; font-size: 13px; color: var(--ink); outline: none;
}
.field input[type=text]:focus { border-color: var(--gold); }
.preset-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.preset-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper-3); cursor: pointer; font-size: 12px; transition: all .2s;
}
.preset-chip:hover { border-color: var(--gold); }
.preset-chip.on { border-color: var(--gold); background: rgba(169, 134, 69, .10); }
.preset-chip .dots { display: flex; }
.preset-chip .dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .08); }
.preset-chip .dots i + i { margin-left: -4px; }
.seg { display: flex; gap: 4px; flex-wrap: wrap; }
.seg button {
  padding: 5px 12px; border-radius: 4px; border: 1px solid var(--line); background: var(--paper-3);
  font-size: 12px; cursor: pointer; transition: all .2s;
}
.seg button:hover { border-color: var(--gold); }
.seg button.on { background: var(--ink); color: #f8f3e8; border-color: var(--ink); }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; margin-top: 12px; cursor: pointer; line-height: 1.6; }
.check input { margin-top: 3px; accent-color: var(--cinnabar); }
.sig-info { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.8; padding: 10px 12px; background: rgba(169, 134, 69, .07); border-radius: 6px; border: 1px solid rgba(169, 134, 69, .16); }
.formula {
  display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); background: rgba(255, 253, 248, .7);
  border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 8px 0; white-space: pre-wrap; overflow-x: auto;
}
.math-note { font-size: 12px; color: var(--muted); line-height: 1.9; }
.math-note b { color: var(--ink-2); }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; padding: 40px 0 70px; }
.about-copy h1 { font-size: clamp(38px, 5vw, 56px); letter-spacing: .12em; }
.about-copy .lead { font-size: 16px; line-height: 2; margin-top: 20px; color: var(--body); }
.about-copy h2 { font-size: 22px; margin-top: 38px; }
.about-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.about-list .item { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 253, 248, .6); }
.about-list .item b { display: block; font-size: 14px; color: var(--ink); font-family: var(--serif); letter-spacing: .06em; }
.about-list .item p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.about-list .item .idx { font-family: var(--serif); color: var(--gold); font-size: 13px; }
.info-card { padding: 26px; }
.info-card h3 { font-size: 16px; margin-bottom: 14px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed rgba(205, 191, 168, .6); font-size: 12.5px; }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--muted); }
.kv b { color: var(--ink); font-weight: 500; text-align: right; }
.code-inline { font-family: var(--mono); font-size: 11.5px; background: rgba(169, 134, 69, .10); border: 1px solid rgba(169, 134, 69, .18); padding: 1px 6px; border-radius: 4px; color: #7a6030; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 20px; background: #14120e; color: rgba(246, 238, 222, .62); padding: 48px 0 30px; position: relative; z-index: 1; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand-text b { color: #f4ecdc; }
.site-footer p { font-size: 12px; line-height: 1.9; margin-top: 14px; max-width: 420px; color: rgba(246, 238, 222, .48); }
.footer-col h4 { color: #e9dfcb; font-size: 13px; letter-spacing: .16em; margin-bottom: 14px; font-family: var(--serif); }
.footer-col a, .footer-col span { display: block; font-size: 12px; color: rgba(246, 238, 222, .5); padding: 4px 0; }
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: rgba(246, 238, 222, .32); flex-wrap: wrap; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; right: 20px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  min-width: 220px; max-width: 360px; padding: 12px 16px; border-radius: 8px; font-size: 13px;
  background: #1c1913; color: #f3ebda; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6);
  border: 1px solid rgba(201, 168, 107, .3); animation: toastIn .3s ease both;
}
.toast.error { border-color: rgba(178, 58, 47, .6); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 加载 ---------- */
.loading { display: grid; place-items: center; padding: 80px 20px; color: var(--muted); font-size: 13px; letter-spacing: .2em; }
.spinner { width: 34px; height: 34px; border: 1px solid var(--line); border-top-color: var(--cinnabar); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 全屏观象 ---------- */
.logo-fullscreen {
  position: fixed !important; inset: 0 !important; z-index: 9999 !important;
  width: 100vw !important; height: 100vh !important; margin: 0 !important;
  background: #000 !important; border: none !important; border-radius: 0 !important;
  display: flex !important; align-items: center; justify-content: center !important;
  padding: 0 !important;
}
.logo-fullscreen .stage-canvas {
  width: min(100vw, 100vh) !important; height: min(100vw, 100vh) !important;
  aspect-ratio: auto !important; border-radius: 0 !important; flex: 0 0 auto;
}
.logo-fullscreen .stage-canvas canvas { width: 100% !important; height: 100% !important; }
.logo-fullscreen .stage-tools, .logo-fullscreen .stage-caption { display: none !important; }
.logo-fullscreen::after {
  content: "ESC 退出全屏"; position: fixed; right: 20px; bottom: 18px;
  color: rgba(255, 255, 255, .42); font-size: 11px; letter-spacing: .18em;
}
.gua-board.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gua-board.five .gua-card { padding: 14px 8px; }
.gua-board.five .yao i.yang { width: 64px; }
.gua-board.five .yao i.yin { width: 24px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero .cosmic { width: min(520px, 100%); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-stage { position: static; }
  .detail-top { grid-template-columns: 1fr; }
  .detail-lines { width: 220px; margin: 0 auto; }
  .result-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .container { width: calc(100% - 32px); }
  .astro-bar-inner { overflow-x: auto; scrollbar-width: none; }
  .astro-bar-inner::-webkit-scrollbar { display: none; }
  .astro-bar-item { flex: 0 0 auto; min-width: 168px; padding: 6px 12px; }
  .astro-bar-item span { font-size: 9px; }
  .astro-bar-item b { font-size: 11px; }
  .header-note { display: none; }
  .header-inner { gap: 12px; height: 64px; }
  .site-nav { overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 7px 10px; font-size: 13px; white-space: nowrap; }
  .hero { padding-top: 44px; }
  .astro-inner { grid-template-columns: 1fr 1fr; }
  .astro-item:nth-child(2) { border-right: none; }
  .astro-item:nth-child(1), .astro-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .hex-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
  .cast-stage { padding: 26px 18px; }
  .gua-board { grid-template-columns: 1fr 1fr; }
  .astro-grid { grid-template-columns: 1fr 1fr; }
  .history-row { grid-template-columns: 70px 1fr auto; }
  .history-row .astro { display: none; }
  .modal-body { padding: 26px 20px; }
  .classic { grid-template-columns: 1fr; }
  .related-row { grid-template-columns: 1fr; }
  .gua-board.five { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .library-head { padding-top: 30px; }
  .library-count { margin-left: 0; width: 100%; }
  .field > label { flex-basis: 92px; }
}
@media (max-width: 520px) {
  .brand-text small { display: none; }
  .brand-text b { font-size: 19px; }
  .header-actions .btn { padding: 8px 12px; }
  .hex-grid { gap: 7px; }
  .hex-mini { padding: 10px 6px 9px; }
  .hex-mini .mini-lines i.yang, .hex-mini .mini-lines i.split { width: 24px; }
  .hex-mini .mini-lines i.yin { width: 9px; }
  .hex-mini .mini-lines i.split::before, .hex-mini .mini-lines i.split::after { width: 9px; }
  .library-grid .hex-mini .nm { font-size: 12px; }
  .hero-meta { gap: 18px; }
  .hero-meta div b { font-size: 19px; }
  .astro-grid { grid-template-columns: 1fr; }
  .gua-card.main { grid-column: span 2; }
}
