/* 六岑 · 神秘 × 科技感 —— 默认深色 "void"；浅色「宣纸」由页眉按钮手动切换（data-theme=light） */
:root,:root[data-theme=dark]{
  --void0:#05060f;--void1:#0b0d24;--bg:#0b0d24;
  --card:rgba(18,22,56,.62);--card-s:#121638;--card2:rgba(30,26,74,.55);--field:#0a0c26;
  --ink:#e8ebff;--sub:#a9b0d8;
  --cy:#5ee7ff;--cy2:#7df9ff;--vi:#8b5cf6;--gold:#e8b955;--gold-t:#f0c968;--red:#ff4d3d;--red-t:#ff8a7d;
  --line:rgba(94,231,255,.22);--line2:rgba(139,92,246,.35);--track:rgba(94,231,255,.1);
  --tab:rgba(12,14,38,.78);--shadow:rgba(0,0,0,.55);--glow:rgba(94,231,255,.35);
  --btn-t:#f3c969;--btn-bg:rgba(10,12,36,.7);
  --t1:#fff3c4;--t2:#e8b955;--t3:#b98a35;
  --c-wood:#6ee087;--c-fire:#ff7a5c;--c-earth:#f0b84a;--c-metal:#f4ecd0;--c-water:#58d4ff;
  --serif:"Noto Serif SC","Source Han Serif SC","Songti SC","STSong","SimSun",serif;
  --kai:"Kaiti SC","STKaiti","KaiTi","Noto Serif SC","Songti SC",serif;
  --sans:-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --page:radial-gradient(120% 80% at 50% 0%,#14164a 0%,#0b0d24 45%,#05060f 100%);
  --neb:radial-gradient(60% 40% at 15% 12%,rgba(139,92,246,.28),transparent 70%),radial-gradient(55% 40% at 90% 55%,rgba(94,231,255,.14),transparent 70%),radial-gradient(70% 45% at 30% 100%,rgba(99,40,180,.25),transparent 70%);
  --wm-o:.04;
  color-scheme:dark}
:root[data-theme=light]{
  --void0:#e9e1d0;--void1:#f6efe3;--bg:#f6efe3;
  --card:rgba(255,250,240,.9);--card-s:#fffaf0;--card2:#fbf3e2;--field:#f6efe3;
  --ink:#3a2a1a;--sub:#6a5640;
  --cy:#0b6e8a;--cy2:#0b6e8a;--vi:#6b3fd0;--gold:#c9a45c;--gold-t:#86601a;--red:#c8382b;--red-t:#b32f23;
  --line:rgba(150,110,40,.4);--line2:rgba(107,63,208,.3);--track:#eadfc6;
  --tab:rgba(250,244,232,.88);--shadow:rgba(70,45,10,.16);--glow:rgba(150,110,40,.25);
  --btn-t:#5a3a05;--btn-bg:rgba(255,246,222,.9);
  --t1:#b98a35;--t2:#86601a;--t3:#6b4a10;
  --c-wood:#2c7a3b;--c-fire:#c8382b;--c-earth:#8a5a14;--c-metal:#7a5c0a;--c-water:#1f4590;
  --page:linear-gradient(180deg,#f6efe3,#efe5d0);
  --neb:none;--wm-o:.04;
  color-scheme:light}
*{box-sizing:border-box}
html{font-size:100%;-webkit-text-size-adjust:100%;background:var(--void0)}
body{margin:0;background:var(--page);color:var(--ink);font:1rem/1.65 var(--sans);-webkit-tap-highlight-color:transparent;min-height:100vh;position:relative;overflow-x:hidden}
/* 全局背景：星云 + 八卦水印（静态，fixed 合成层）；星空 canvas 由 fx.js 追加 */
body::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;background:var(--neb)}
/* 八卦水印：仅在页面顶端右上角（随页面滚走，不固定），<=5% 不透明度，不会压在正文标题上 */
body::after{content:"";position:absolute;z-index:0;pointer-events:none;top:-3rem;right:0;width:13rem;height:20rem;opacity:var(--wm-o);background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200'%3E%3Cg fill='none' stroke='%23e8b955' stroke-width='1.2'%3E%3Ccircle r='96'/%3E%3Ccircle r='70'/%3E%3Ccircle r='36'/%3E%3Cpath d='M-36 0a18 18 0 0 1 36 0a18 18 0 0 0 36 0'/%3E%3Cg id='t'%3E%3Cpath d='M-12 -88h24M-12 -82h10M2 -82h10M-12 -76h24'/%3E%3C/g%3E%3Cuse href='%23t' transform='rotate(45)'/%3E%3Cuse href='%23t' transform='rotate(90)'/%3E%3Cuse href='%23t' transform='rotate(135)'/%3E%3Cuse href='%23t' transform='rotate(180)'/%3E%3Cuse href='%23t' transform='rotate(225)'/%3E%3Cuse href='%23t' transform='rotate(270)'/%3E%3Cuse href='%23t' transform='rotate(315)'/%3E%3C/g%3E%3C/svg%3E") no-repeat 100% 50%/20rem 20rem}
#fx{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
:root[data-theme=light] #fx{display:none}
.defs{position:absolute;width:0;height:0;overflow:hidden}
.shell{max-width:30rem;margin:0 auto;min-height:100vh;min-height:100dvh;padding:0 1rem calc(7rem + env(safe-area-inset-bottom));position:relative;z-index:1}
.skip{position:absolute;left:-99rem}.skip:focus{left:.5rem;top:.5rem;background:var(--card-s);color:var(--ink);padding:.6rem .8rem;z-index:60;border-radius:.4rem}
a{color:inherit}
:focus-visible{outline:.15rem solid var(--cy);outline-offset:.15rem;border-radius:.3rem}
#app:focus{outline:none}
h1,h2,h3{font-family:var(--serif);margin:.25rem 0 .5rem;line-height:1.35}
h1{font-size:1.6rem}h2{font-size:1.15rem}
.mono{font-family:var(--mono)}

/* 页眉 */
.top{display:flex;align-items:center;justify-content:space-between;padding:.7rem 0 .5rem;min-height:3.5rem}
.brand{display:flex;align-items:center;gap:.55rem;text-decoration:none;min-height:2.75rem}
.brand-n{font:700 1.3rem var(--serif);letter-spacing:.08em}
.brand small{font:.68rem var(--mono);color:var(--sub);margin-left:.1rem;letter-spacing:.18em}
.seal{display:inline-grid;place-items:center;width:2rem;height:2rem;background:var(--red);color:#fff4d6;border-radius:.3rem;font:700 1.25rem/1 var(--serif);box-shadow:inset 0 0 0 .12rem rgba(255,244,214,.35),0 0 .9rem rgba(255,77,61,.45);transform:rotate(-3deg)}
.seal.big{width:4.5rem;height:4.5rem;font-size:3rem;border-radius:.5rem}
.iconbtn{width:2.75rem;height:2.75rem;border-radius:50%;border:.0625rem solid var(--cy);background:var(--btn-bg);color:var(--cy);display:grid;place-items:center;cursor:pointer;padding:0;box-shadow:0 0 .8rem var(--glow),inset 0 0 .6rem rgba(94,231,255,.12)}
.iconbtn svg{width:1.4rem;height:1.4rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;grid-area:1/1;filter:drop-shadow(0 0 .2rem currentColor)}
.i-sun{display:none}
:root[data-theme=dark] .i-moon{display:none}:root[data-theme=dark] .i-sun{display:block}

/* 玻璃卡片通用：渐变细边 + HUD 角标 + 网格纹 + 云纹角饰 */
.glass,.hero,.card,.panel,form,.list,.phead{position:relative;background:var(--card-s);border:.0625rem solid transparent;border-radius:.9rem;
  background:linear-gradient(var(--card-s),var(--card-s)) padding-box,linear-gradient(135deg,var(--cy),var(--vi) 50%,var(--gold)) border-box;
  box-shadow:0 .4rem 1.4rem var(--shadow),0 0 1.2rem rgba(139,92,246,.12)}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .glass,.hero,.card,.panel,form,.list,.phead{background:linear-gradient(var(--card),var(--card)) padding-box,linear-gradient(135deg,var(--cy),var(--vi) 50%,var(--gold)) border-box;-webkit-backdrop-filter:blur(12px) saturate(1.3);backdrop-filter:blur(12px) saturate(1.3)}
}
:root[data-theme=light] .glass,:root[data-theme=light] .hero,:root[data-theme=light] .card,:root[data-theme=light] .panel,:root[data-theme=light] form,:root[data-theme=light] .list,:root[data-theme=light] .phead{box-shadow:0 .3rem .9rem var(--shadow)}
.hero::before,.card::before,.panel::before,form::before,.list::before,.phead::before{content:"";position:absolute;inset:.35rem;pointer-events:none;z-index:2;
  --b:var(--cy);
  background:
  linear-gradient(var(--b),var(--b)) 0 0/.8rem .0625rem no-repeat,linear-gradient(var(--b),var(--b)) 0 0/.0625rem .8rem no-repeat,
  linear-gradient(var(--b),var(--b)) 100% 0/.8rem .0625rem no-repeat,linear-gradient(var(--b),var(--b)) 100% 0/.0625rem .8rem no-repeat,
  linear-gradient(var(--b),var(--b)) 0 100%/.8rem .0625rem no-repeat,linear-gradient(var(--b),var(--b)) 0 100%/.0625rem .8rem no-repeat,
  linear-gradient(var(--b),var(--b)) 100% 100%/.8rem .0625rem no-repeat,linear-gradient(var(--b),var(--b)) 100% 100%/.0625rem .8rem no-repeat;opacity:.85}
:root[data-theme=light] .hero::before,:root[data-theme=light] .card::before,:root[data-theme=light] .panel::before,:root[data-theme=light] form::before,:root[data-theme=light] .list::before,:root[data-theme=light] .phead::before{--b:var(--gold-t)}
.hero::after,.card::after,.panel::after,form::after,.list::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:0;
  background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28'%3E%3Cg fill='none' stroke='%23e8b955' stroke-width='1' stroke-linecap='round' opacity='.7'%3E%3Cpath d='M38 4q-6 0-6 6q-6-1-7 5q-6-1-6 5M38 9q-3 0-3 3q-3 0-4 3M38 14q-2 0-2 2'/%3E%3C/g%3E%3C/svg%3E") no-repeat right .45rem top .45rem/2.2rem,
  linear-gradient(rgba(94,231,255,.045) 1px,transparent 1px) 0 0/1.1rem 1.1rem,
  linear-gradient(90deg,rgba(94,231,255,.045) 1px,transparent 1px) 0 0/1.1rem 1.1rem}
:root[data-theme=light] .hero::after,:root[data-theme=light] .card::after,:root[data-theme=light] .panel::after,:root[data-theme=light] form::after,:root[data-theme=light] .list::after{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28'%3E%3Cg fill='none' stroke='%23a07a2a' stroke-width='1' stroke-linecap='round' opacity='.6'%3E%3Cpath d='M38 4q-6 0-6 6q-6-1-7 5q-6-1-6 5M38 9q-3 0-3 3q-3 0-4 3M38 14q-2 0-2 2'/%3E%3C/g%3E%3C/svg%3E") no-repeat right .45rem top .45rem/2.2rem}
.card>*,.panel>*,form>*,.list>*,.hero>*{position:relative;z-index:1}
.card>.banner{z-index:1}

/* 首页 · 罗盘主视觉 */
.hero{margin:.25rem 0 1.2rem;overflow:hidden;text-align:center;padding:0}
.hero .hero-art{position:absolute;inset:0;z-index:0}
.compass{position:relative;width:16.5rem;max-width:100%;aspect-ratio:1;margin:.2rem auto .5rem;flex:0 0 auto;pointer-events:none}
.compass svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.compass .taiji{inset:auto;left:50%;top:50%;width:4.4rem;height:4.4rem;margin:-2.2rem 0 0 -2.2rem}
.cring{transform-origin:50% 50%;will-change:transform}
.cring .tk{stroke:var(--cy);stroke-width:.9;fill:none}
.cring .tg{stroke:var(--gold);stroke-width:1.2;fill:none}
.cring .ln{stroke:var(--vi);stroke-width:.8;fill:none;stroke-dasharray:2 5}
.cring .sh{fill:var(--gold);font:700 8px var(--serif);text-anchor:middle;dominant-baseline:central}
.cring .yl{stroke:var(--cy);stroke-width:2.2;stroke-linecap:round;fill:none}
.taiji{filter:drop-shadow(0 0 .6rem rgba(94,231,255,.7)) drop-shadow(0 0 1.4rem rgba(139,92,246,.5))}
:root[data-theme=light] .taiji{filter:drop-shadow(0 0 .4rem rgba(150,110,40,.4))}
.hero-in{position:relative;z-index:2;padding:1.2rem 1rem 1rem;display:flex;flex-direction:column;align-items:center}
.hero-txt{display:grid;justify-items:center;padding:.1rem 0 .3rem}
.hero-cap{margin:0;color:var(--cy);font:.75rem var(--mono);letter-spacing:.42em;text-indent:.42em;text-transform:uppercase}
.hero h1{margin:.4rem 0 .5rem;display:grid;gap:.1rem;font-family:var(--serif);font-weight:900;line-height:1.15}
.hero-big,.phead h1,.banner-t,.title-g{color:var(--t2);background:linear-gradient(180deg,var(--t1) 0%,var(--t2) 50%,var(--t3) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.hero-big{font-size:4.6rem;letter-spacing:.14em;text-indent:.14em;filter:drop-shadow(0 0 .7rem rgba(232,185,85,.45))}
.hero-sub{margin:0;font:.8rem var(--sans);letter-spacing:.5em;text-indent:.5em;color:var(--ink)}
.hud{margin:0;display:flex;flex-wrap:wrap;justify-content:center;gap:.1rem .9rem;padding:.45rem .7rem;max-width:100%;border:.0625rem solid var(--line);border-radius:.4rem;background:rgba(5,6,15,.5);font:.75rem/1.5 var(--mono);color:var(--cy2);letter-spacing:.02em;text-align:center}
:root[data-theme=light] .hud{background:rgba(255,246,222,.7);color:var(--cy)}
.hud>span{white-space:nowrap}
.hud i{font-style:normal;color:var(--sub)}
.hud b{font-weight:600;color:var(--ink)}
.hud .live{display:inline-block;width:.4rem;height:.4rem;border-radius:50%;background:var(--cy);margin-right:.4rem;box-shadow:0 0 .4rem var(--cy)}
.sec{position:relative;font:.75rem var(--mono);color:var(--cy);letter-spacing:.32em;text-transform:uppercase;margin:.2rem 0 .6rem;padding-bottom:.4rem;overflow:hidden}
.sec::after{content:"";position:absolute;left:0;right:0;bottom:0;height:.0625rem;background:linear-gradient(90deg,transparent,var(--cy),transparent);opacity:.55}
.divider{display:flex;align-items:center;gap:.6rem;margin:1.1rem 0;color:var(--gold)}
.divider::before,.divider::after{content:"";flex:1;height:.0625rem;background:linear-gradient(90deg,transparent,var(--gold))}
.divider::after{background:linear-gradient(270deg,transparent,var(--gold))}
.divider i{width:.5rem;height:.5rem;background:var(--gold);transform:rotate(45deg);box-shadow:0 0 .5rem var(--gold)}

.tiles{list-style:none;margin:0 -1rem 1rem;padding:.4rem 1rem .9rem;display:flex;gap:.75rem;overflow-x:auto;scroll-snap-type:x proximity;scroll-padding:0 1rem;scrollbar-width:none}
.tiles::-webkit-scrollbar{display:none}
.tiles li{flex:0 0 6.6rem;scroll-snap-align:start}
.tile{display:block;text-decoration:none;min-height:2.75rem;overflow:hidden;border-radius:.8rem;border:.0625rem solid var(--line);background:var(--card);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 .25rem .9rem var(--shadow),inset 0 0 1rem rgba(139,92,246,.18);transition:box-shadow .25s,border-color .25s}
.tile .art{display:block;width:100%;aspect-ratio:6/5;height:auto}
.tile:hover,.tile:active{border-color:var(--cy);box-shadow:0 0 1.1rem var(--glow),inset 0 0 1rem rgba(94,231,255,.2)}
.tile span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding:.45rem .3rem .65rem;font:700 .9rem/1.35 var(--serif);text-align:center;color:var(--ink)}
.tabs{display:flex;gap:1.6rem;margin:.4rem 0 .9rem}
.tabs button{position:relative;background:none;border:0;padding:.5rem 0 .7rem;min-height:2.75rem;font:900 1.35rem/1.2 var(--serif);color:var(--sub);cursor:pointer;letter-spacing:.06em}
.tabs button[aria-selected=true]{color:var(--ink);text-shadow:0 0 .8rem var(--glow)}
.tabs button[aria-selected=true]::after{content:"";position:absolute;left:0;bottom:.15rem;width:2rem;height:.2rem;border-radius:.2rem;background:linear-gradient(90deg,var(--cy),var(--vi));box-shadow:0 0 .6rem var(--cy)}
.cards{list-style:none;margin:0;padding:0;display:grid;gap:.9rem}
.card{overflow:hidden;transition:box-shadow .25s}
.card:hover,.card:active{box-shadow:0 .4rem 1.4rem var(--shadow),0 0 1.4rem var(--glow)}
.banner{position:relative;aspect-ratio:2/1;border-radius:.9rem .9rem 0 0;overflow:hidden}
.banner .art{position:absolute;inset:0;width:100%;height:100%;display:block}
.banner-t{position:absolute;left:1.1rem;top:50%;transform:translateY(-50%);max-width:58%;font:900 2.1rem/1.2 var(--serif);letter-spacing:.1em;filter:drop-shadow(0 0 .5rem rgba(232,185,85,.35))}
.card-body{padding:.8rem 1rem 1rem}
.card-body h3{margin:0;font-size:1.1rem}
.card-body p{margin:.2rem 0 .9rem;color:var(--sub);font-size:.9rem}

/* 按钮：霓虹轮廓胶囊 */
.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;border:.0625rem solid transparent;border-radius:2rem;padding:.55rem 1.9rem;min-height:2.75rem;
  background:linear-gradient(var(--btn-bg),var(--btn-bg)) padding-box,linear-gradient(90deg,var(--cy),var(--vi)) border-box;color:var(--btn-t);font:inherit;font-weight:800;letter-spacing:.14em;text-decoration:none;cursor:pointer;
  box-shadow:0 0 .9rem rgba(94,231,255,.3),0 0 1.6rem rgba(139,92,246,.22),inset 0 0 .8rem rgba(94,231,255,.1);transition:box-shadow .25s,transform .15s}
.btn:hover{box-shadow:0 0 1.2rem rgba(94,231,255,.55),0 0 2rem rgba(139,92,246,.4),inset 0 0 .8rem rgba(94,231,255,.18)}
.btn:active{transform:translateY(.06rem) scale(.99)}
.btn.ghost{color:var(--ink);font-weight:700;box-shadow:none;background:linear-gradient(transparent,transparent) padding-box,linear-gradient(90deg,var(--line),var(--line2)) border-box}
.btn.ghost:hover{box-shadow:0 0 .9rem var(--glow)}
.row{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1rem}

/* 页头（子页面） */
.phead{overflow:hidden;min-height:6rem;margin:.2rem 0 .8rem;display:flex;align-items:center}
.phead .art{position:absolute;inset:0;width:100%;height:100%;display:block}
.phead h1{position:relative;z-index:3;margin:0;padding:.9rem 1rem;max-width:68%;font:900 1.7rem/1.3 var(--serif);letter-spacing:.08em;filter:drop-shadow(0 0 .5rem rgba(232,185,85,.3))}

/* 分类查找 */
.group h2{color:var(--gold-t);margin:1.2rem 0 .5rem;display:flex;align-items:center;gap:.5rem;letter-spacing:.2em}
.group h2::before{content:"";width:.28rem;height:1.1rem;background:var(--red);border-radius:.2rem;box-shadow:0 0 .5rem var(--red)}
.list{list-style:none;margin:0;padding:0;overflow:hidden}
.list li+li{border-top:.0625rem solid var(--line)}
.list a{display:flex;align-items:center;gap:.8rem;padding:.7rem .8rem;min-height:3.5rem;text-decoration:none}
.list a:active{background:rgba(94,231,255,.08)}
.list .art{flex:0 0 2.9rem;width:2.9rem;height:2.9rem}
.list div{flex:1;min-width:0}
.list b{display:block;font:700 1rem var(--serif)}
.list span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--sub);font-size:.8rem;line-height:1.45}
.chev{font:normal 1.6rem/1 var(--sans);color:var(--cy)}

/* 表单 */
form{padding:.4rem 1rem 1rem;margin:.4rem .25rem 1rem}
label,legend{display:block;font-weight:700;margin:.9rem 0 .35rem}
fieldset{border:0;padding:0;margin:0;min-width:0}
input,select{width:100%;min-height:2.75rem;font:inherit;padding:.5rem .75rem;border:.0625rem solid var(--line);border-radius:.6rem;background:var(--field);color:var(--ink);color-scheme:inherit}
input:focus,select:focus{outline:.15rem solid var(--cy);outline-offset:.05rem;border-color:var(--cy);box-shadow:0 0 .8rem var(--glow)}
.radios{display:flex;gap:.8rem}
.radios label{display:flex;align-items:center;gap:.5rem;font-weight:600;margin:0;min-height:2.75rem;padding:0 1rem;border:.0625rem solid var(--line);border-radius:2rem;background:var(--field);flex:1}
.radios input{width:1.25rem;height:1.25rem;min-height:0;accent-color:var(--cy)}
.err{color:var(--red-t);min-height:1.4rem;margin:.6rem 0 .3rem;font-size:.9rem;font-weight:600}
form .btn{width:100%;font-size:1.05rem}

/* 结果卡片 */
.panel{padding:1rem;margin:1rem .25rem}
.panel>h2:first-child{position:relative;padding:0 0 .55rem .7rem;font-size:1.05rem;overflow:hidden;margin-bottom:.7rem}
.panel>h2:first-child::before{content:"";position:absolute;left:0;top:.2rem;height:1.05rem;width:.22rem;border-radius:.2rem;background:var(--red);box-shadow:0 0 .5rem var(--red)}
.panel>h2:first-child::after{content:"";position:absolute;left:0;right:0;bottom:0;height:.0625rem;background:linear-gradient(90deg,var(--cy),transparent 80%);opacity:.6}
.panel p{margin:.4rem 0}
.panel p a,.plain a{display:inline-flex;align-items:center;min-height:2.75rem;color:var(--cy);font-weight:600}
.pillars{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;text-align:center}
.pcell{--ec:var(--cy);position:relative;border:.0625rem solid var(--ec);border-radius:.5rem;background:rgba(5,6,15,.45);overflow:hidden;box-shadow:0 0 .9rem color-mix(in srgb,var(--ec) 45%,transparent),inset 0 0 1rem color-mix(in srgb,var(--ec) 18%,transparent)}
:root[data-theme=light] .pcell{background:var(--card2)}
.pcell.e-木{--ec:var(--c-wood)}.pcell.e-火{--ec:var(--c-fire)}.pcell.e-土{--ec:var(--c-earth)}.pcell.e-金{--ec:var(--c-metal)}.pcell.e-水{--ec:var(--c-water)}
.pcell small{display:block;background:color-mix(in srgb,var(--ec) 22%,transparent);color:var(--ink);font:.75rem var(--mono);padding:.3rem 0;letter-spacing:.25em;text-indent:.25em;border-bottom:.0625rem solid color-mix(in srgb,var(--ec) 50%,transparent)}
.pcell.day small{background:color-mix(in srgb,var(--gold) 28%,transparent)}
.pcell b{display:block;font:900 2rem/1.3 var(--serif);text-shadow:0 0 .7rem currentColor}
.pcell em{display:block;margin-top:.2rem;padding:.3rem 0;border-top:.0625rem dashed color-mix(in srgb,var(--ec) 55%,transparent);font:normal .75rem var(--mono);color:var(--sub)}
.el-木{color:var(--c-wood)}.el-火{color:var(--c-fire)}.el-土{color:var(--c-earth)}.el-金{color:var(--c-metal)}.el-水{color:var(--c-water)}
.bar{display:grid;grid-template-columns:3rem 1fr 2.2rem;align-items:center;gap:.6rem;margin:.6rem 0}
.blabel{font-weight:700}
.bval{text-align:right;font:.85rem var(--mono);color:var(--sub)}
.bar .track{height:.4rem;background:var(--track);border-radius:1rem;overflow:hidden}
.bar .fill{height:100%;background:linear-gradient(90deg,var(--vi),var(--cy));border-radius:1rem;transform-origin:left;box-shadow:0 0 .6rem var(--cy)}
.bar .fill.木{background:linear-gradient(90deg,#1f8a3b,var(--c-wood));box-shadow:0 0 .6rem var(--c-wood)}
.bar .fill.火{background:linear-gradient(90deg,#d6381f,var(--c-fire));box-shadow:0 0 .6rem var(--c-fire)}
.bar .fill.土{background:linear-gradient(90deg,#a8741a,var(--c-earth));box-shadow:0 0 .6rem var(--c-earth)}
.bar .fill.金{background:linear-gradient(90deg,#d2b25a,var(--c-metal));box-shadow:0 0 .6rem var(--c-metal)}
.bar .fill.水{background:linear-gradient(90deg,#2a6fd6,var(--c-water));box-shadow:0 0 .6rem var(--c-water)}
:root[data-theme=light] .bar .fill{box-shadow:none}
.score{font:900 3.2rem/1.2 var(--mono);color:var(--gold-t);text-align:center;margin:0;text-shadow:0 0 1rem rgba(232,185,85,.45)}
.chip{display:inline-block;width:1rem;height:1rem;border-radius:50%;vertical-align:-.15rem;border:.0625rem solid var(--line);margin-right:.3rem}
.note{color:var(--sub);font-size:.88rem}
.note.notebox{font-size:.85rem;line-height:1.6;margin:.5rem 0 .8rem;padding:.7rem .9rem;border:.0625rem solid var(--line);border-left:.2rem solid var(--gold);border-radius:.5rem;background:var(--card)}
.foot{text-align:center;color:var(--sub);font-size:.78rem;padding:1.5rem .5rem}
.mail{color:var(--cy)}
.basis summary{cursor:pointer;font-weight:700;min-height:2.75rem;display:flex;align-items:center;color:var(--gold-t);font-family:var(--serif)}
.basis p{font-size:.9rem}
ul.plain{margin:.3rem 0;padding-left:1.2rem;font-size:.85rem;color:var(--sub)}
.scroll{overflow-x:auto;margin:.6rem 0}
table{border-collapse:collapse;width:100%;font-size:.85rem}
.stk{white-space:normal}.stk .itm{display:block;white-space:nowrap;line-height:1.5}
table.t-pil tbody th{white-space:normal;width:3.7rem;min-width:3.7rem}
caption{text-align:left;font-weight:700;padding:.3rem 0;color:var(--gold-t);font-family:var(--serif)}
th,td{border:.0625rem solid var(--line);padding:.35rem .3rem;font-size:max(.75rem,12px);text-align:left;vertical-align:top}
thead th{background:rgba(94,231,255,.1);color:var(--gold-t);font-family:var(--mono);font-weight:600;font-size:max(.75rem,12px);white-space:nowrap}
td.nw{white-space:nowrap}
:root[data-theme=light] thead th{background:#f1e6cc}
tbody th{font-weight:700;white-space:nowrap;background:rgba(139,92,246,.1)}
:root[data-theme=light] tbody th{background:#f1e6cc}

/* 卦象：发光阴阳爻 */
.hexbox{display:flex;align-items:center;gap:1rem;margin:.4rem 0}
.hexbox small{color:var(--sub);font:700 1rem var(--serif);min-width:2.5rem}
.hexsvg{display:block;width:5.6rem;height:auto;fill:var(--cy);filter:drop-shadow(0 0 .25rem var(--cy))}
.hexsvg .mv{fill:var(--gold);filter:drop-shadow(0 0 .2rem var(--gold))}
:root[data-theme=light] .hexsvg{fill:var(--ink);filter:none}
:root[data-theme=light] .hexsvg .mv{fill:var(--red-t);filter:none}
.hexsvg.mini{width:3rem}
.yaoci{list-style:none;margin:.4rem 0;padding:0}
.yaoci li{display:grid;grid-template-columns:3.4rem 3.2rem 1fr;align-items:center;gap:.6rem;padding:.35rem 0;border-bottom:.0625rem solid var(--line)}
.yaoci b{font-family:var(--kai);white-space:nowrap}
.yaoci .yglyph{width:3.4rem;height:auto}
.yaoci li.yextra{margin-top:.3rem}
.hexgrid{list-style:none;margin:1rem 0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem}
.hexgrid a{display:grid;justify-items:center;align-content:center;gap:.1rem;padding:.55rem .2rem;border:.0625rem solid var(--line);border-radius:.5rem;background:var(--card);text-decoration:none;min-height:5.2rem;transition:box-shadow .2s,border-color .2s}
.hexgrid small{overflow-wrap:anywhere}
@media (max-width:26rem){.hexgrid{grid-template-columns:repeat(3,1fr)}}
.hexgrid a:hover,.hexgrid a:active{border-color:var(--cy);box-shadow:0 0 .9rem var(--glow)}
.hexgrid b{font:900 1.15rem var(--serif)}
.hexgrid small{font-size:.75rem;color:var(--sub);white-space:nowrap}

/* 浮动底栏 */
.tabbar{position:fixed;z-index:20;left:50%;transform:translateX(-50%);bottom:calc(.75rem + env(safe-area-inset-bottom));width:min(calc(100% - 1.5rem),28.5rem);display:flex;background:var(--card-s);border:.0625rem solid var(--line);border-radius:1.25rem;padding:.3rem;box-shadow:0 .5rem 1.6rem var(--shadow),0 0 1.2rem rgba(139,92,246,.18)}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.tabbar{background:var(--tab);-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4)}}
.tabbar a{flex:1;display:grid;justify-items:center;align-content:center;gap:.1rem;min-height:3rem;padding:.3rem 0;border-radius:1rem;text-decoration:none;color:var(--sub);font-size:.76rem;transition:color .2s}
.tabbar a[aria-current=page]{color:var(--cy2);font-weight:800;background:radial-gradient(70% 90% at 50% 0%,rgba(94,231,255,.16),transparent)}
:root[data-theme=light] .tabbar a[aria-current=page]{color:var(--cy)}
.tabbar svg{width:1.6rem;height:1.6rem;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.tabbar a[aria-current=page] svg{filter:drop-shadow(0 0 .3rem var(--cy)) drop-shadow(0 0 .7rem var(--cy))}

/* 404 */
.notfound{position:relative;z-index:1;max-width:30rem;margin:4rem auto;padding:0 1rem;text-align:center}
.notfound .seal{margin:0 auto 1rem}
.wordmark{font:900 4.5rem var(--mono);color:var(--cy);margin:.2rem 0;text-shadow:0 0 1.2rem var(--cy)}
.notfound .foot{margin-top:2rem}

/* 线条图标（艺术图中使用） */
.art .c{stroke:var(--ic-c,#5ee7ff)}.art .g{stroke:var(--ic-g,#e8b955)}
.art .ic{fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.art .ic *{fill:none}
.art .ic .gf{fill:var(--ic-g,#e8b955);stroke:none}
.art .ic .cf{fill:var(--ic-c,#5ee7ff);stroke:none}
.art .glowg{filter:drop-shadow(0 0 2px #5ee7ff) drop-shadow(0 0 5px rgba(139,92,246,.8))}

/* 推演中 overlay */
.boot{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:rgba(5,6,15,.82);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);cursor:pointer;color:#e8ebff}
.boot-in{display:grid;justify-items:center;gap:1rem;padding:1rem}
.boot-ring{position:relative;width:5.5rem;height:5.5rem;border-radius:50%;border:.125rem solid rgba(94,231,255,.2);border-top-color:#5ee7ff;border-right-color:#8b5cf6;box-shadow:0 0 1.4rem rgba(94,231,255,.4)}
.boot-ring::after{content:"";position:absolute;inset:.7rem;border-radius:50%;border:.0625rem dashed rgba(232,185,85,.7)}
.boot-t{margin:0;font:700 1.15rem var(--serif);letter-spacing:.3em;text-indent:.3em;color:#f3c969}
.boot-log{margin:0;min-height:3.6rem;font:.78rem/1.2rem var(--mono);color:#7df9ff;text-align:left}
.boot-log span{display:block;opacity:0}
.boot-log span.on{opacity:1}
.boot-skip{margin:0;font:.68rem var(--mono);color:#a9b0d8;letter-spacing:.2em}

/* 动效：仅 transform / opacity；尊重减少动态偏好 */
@media (prefers-reduced-motion:no-preference){
  @keyframes rise{from{opacity:0;transform:translateY(.7rem)}}
  @keyframes grow{from{transform:scaleX(0)}}
  @keyframes spin{to{transform:rotate(360deg)}}
  @keyframes spinr{to{transform:rotate(-360deg)}}
  @keyframes scan{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
  @keyframes scan2{from{transform:translateX(-100%)}to{transform:translateX(250%)}}
  @keyframes pulse{50%{opacity:.4}}
  #app>*{animation:rise .5s ease both}
  #app>*:nth-child(2){animation-delay:.07s}#app>*:nth-child(3){animation-delay:.14s}#app>*:nth-child(4){animation-delay:.21s}#app>*:nth-child(5){animation-delay:.28s}#app>*:nth-child(6){animation-delay:.35s}#app>*:nth-child(n+7){animation-delay:.42s}
  .cards>li{animation:rise .45s ease both}.cards>li:nth-child(2){animation-delay:.06s}.cards>li:nth-child(3){animation-delay:.12s}.cards>li:nth-child(n+4){animation-delay:.18s}
  .bar .fill{animation:grow .9s .2s ease both}
  .cring.r1{animation:spin 120s linear infinite}
  .cring.r2{animation:spinr 80s linear infinite}
  .cring.r3{animation:spin 50s linear infinite}
  .hud .live{animation:pulse 2.4s ease-in-out infinite}
  .sec::after{background:linear-gradient(90deg,transparent,var(--cy) 50%,transparent);width:40%;right:auto;animation:scan2 3.6s ease-in-out infinite}
  .panel>h2:first-child::after{width:100%;background:linear-gradient(90deg,transparent,var(--cy) 40%,transparent);animation:scan 3.2s ease-in-out infinite}
  .boot-ring{animation:spin .9s linear infinite}
  .boot-log span{transition:opacity .15s}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  #fx{display:none}
}

/* ---- 静态 SEO 说明文章（<article class="seo">）：无 JS 也可读 ---- */
article.seo{margin:1rem 0;padding:1rem 1.1rem;font-size:.95rem;line-height:1.75;color:var(--ink)}
article.seo h1{font-size:1.5rem;margin:.2rem 0 .6rem}
article.seo h2{font-size:1.15rem;margin:1.2rem 0 .4rem;color:var(--gold-t)}
article.seo h3{font-size:1rem;margin:.8rem 0 .3rem}
article.seo .lead{font-size:1rem}
article.seo a{color:var(--cy)}
article.seo details{border-top:.0625rem solid var(--line);padding:.2rem 0}
article.seo summary{cursor:pointer;min-height:2.75rem;display:flex;align-items:center;font-weight:700}
article.seo ul.rel,article.seo ul.yao,article.seo ol.steps,article.seo ul.plain2,article.seo ol.hexcat{margin:.3rem 0;padding-left:1.2rem}
article.seo ul.rel{list-style:none;padding-left:0}
article.seo ul.rel li{padding:.35rem 0;border-bottom:.0625rem dashed var(--line)}
article.seo ul.rel li>span{display:block;color:var(--sub);font-size:.88rem}
article.seo ul.plain3{display:grid;grid-template-columns:1fr 1fr;gap:.2rem .8rem}
article.seo ul.plain3 li{border:0}
article.seo ul.yao{list-style:none;padding-left:0}
article.seo ul.yao li{padding:.4rem 0;border-bottom:.0625rem dashed var(--line)}
article.seo ul.yao b{color:var(--gold-t);margin-right:.5em;font-family:var(--serif)}
article.seo ul.yao i{color:var(--sub);font-style:normal;font-size:.85rem;margin-left:.5em}
article.seo ol.hexcat{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem}
article.seo ol.hexcat a{display:grid;justify-items:center;min-height:2.75rem;align-content:center;border:.0625rem solid var(--line);border-radius:.5rem;text-decoration:none;padding:.3rem .1rem}
article.seo ol.hexcat small{color:var(--sub);font-size:.75rem}
@media (max-width:26rem){article.seo ol.hexcat{grid-template-columns:repeat(3,1fr)}}
article.seo .hexbox{display:grid;justify-items:center;gap:.3rem;margin:.6rem 0}
article.seo .hexsvg.big{width:8rem}
article.seo .gu{font-family:var(--kai);font-size:1.1rem}
article.seo .disc,article.seo .crumb{color:var(--sub);font-size:.85rem}
article.seo .crumb{margin-bottom:.4rem}
article.seo .crumb i{margin:0 .35em;font-style:normal}
article.seo .pn{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}
article.seo .pn .btn{flex:1;padding:.55rem 1rem;text-decoration:none;text-align:center}
article.seo .chip-k{display:inline-block;border:.0625rem solid var(--line);border-radius:1rem;padding:.1rem .7rem;font-size:.82rem;color:var(--gold-t)}
article.seo .chip-k.fun{color:var(--red-t)}
