/* ============================================================================
   枢机二处 · 矿权投资快速估值小助手
   三套视觉方向共用一份结构：vein 矿脉霓虹 / strata 岩层剖面 / gauge 仪表暗舱
   ========================================================================== */

@font-face {
  font-family: "PuHuiTi";
  src: url("fonts/PuHuiTi-Regular.woff2") format("woff2"),
       local("Alibaba PuHuiTi 3.0"), local("AlibabaPuHuiTi-3-55-Regular");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "PuHuiTi";
  src: url("fonts/PuHuiTi-Medium.woff2") format("woff2"),
       local("AlibabaPuHuiTi-3-65-Medium");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "PuHuiTi";
  src: url("fonts/PuHuiTi-Bold.woff2") format("woff2"),
       local("AlibabaPuHuiTi-3-85-Bold");
  font-weight: 700; font-display: swap;
}

:root {
  --font: "PuHuiTi", -apple-system, "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif;
  --num: "PuHuiTi", ui-monospace, "SF Mono", Menlo, monospace;

  --bg:      #0B0B11;
  --bg-2:    rgba(255,255,255,.045);
  --bg-3:    rgba(255,255,255,.075);
  --ink:     #FFFFFF;
  --ink-2:   rgba(255,255,255,.72);
  --ink-3:   rgba(255,255,255,.40);
  --line:    rgba(255,255,255,.16);
  --line-2:  rgba(255,255,255,.09);

  --pur:     #A78BFA;
  --grn:     #34E4B4;
  --grad:    linear-gradient(96deg, var(--pur) 0%, var(--grn) 100%);
  --danger:  #FF6B7A;

  --glow-1:  0 0 14px rgba(167,139,250,.45);
  --glow-2:  0 0 26px rgba(52,228,180,.35);
  --txt-glow: 0 0 18px rgba(167,139,250,.55), 0 0 44px rgba(52,228,180,.25);

  --contour-a: .30;      /* 等高线不透明度 */
  --contour-w: 1.05;     /* 等高线线宽 */
  --contour-blur: 1;     /* 是否叠加发光层 (0/1) */
  --seal-filter: brightness(1.28) saturate(1.02);

  --r:  14px;
  --r-s: 9px;
  --pad: 22px;
}

/* ---- 岩层剖面：克制商务，主色只出现在结果数字 / 滑杆 / 主按钮 ---- */
[data-theme="strata"] {
  --bg: #141416;
  --bg-2: rgba(255,255,255,.04);
  --bg-3: rgba(255,255,255,.07);
  --ink: #F6F6F4;
  --ink-2: rgba(246,246,244,.66);
  --ink-3: rgba(246,246,244,.34);
  --line: rgba(246,246,244,.20);
  --line-2: rgba(246,246,244,.10);
  --pur: #8B5CF6;
  --grn: #2FD4A7;
  --glow-1: none;
  --glow-2: none;
  --txt-glow: none;
  --contour-a: .22;
  --contour-w: .85;
  --contour-blur: 0;
  --r: 4px;
  --r-s: 3px;
  --seal-filter: brightness(1.30) saturate(1.05);
}

/* ---- 仪表暗舱：读数窗 + 精密刻度尺 ---- */
[data-theme="gauge"] {
  --bg: #0D1114;
  --bg-2: rgba(190,225,220,.05);
  --bg-3: rgba(190,225,220,.09);
  --ink: #EAF3F0;
  --ink-2: rgba(234,243,240,.66);
  --ink-3: rgba(234,243,240,.36);
  --line: rgba(160,210,200,.22);
  --line-2: rgba(160,210,200,.11);
  --pur: #8B7CF5;
  --grn: #26C3A0;
  --glow-1: 0 0 10px rgba(38,195,160,.28);
  --glow-2: 0 0 18px rgba(38,195,160,.22);
  --txt-glow: 0 0 22px rgba(38,195,160,.30);
  --contour-a: .20;
  --contour-w: .9;
  --contour-blur: 0;
  --r: 2px;
  --r-s: 2px;
  --seal-filter: brightness(1.35) saturate(.9);
}

/* ============================ 基础骨架 ============================ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overscroll-behavior: none; }
body {
  background: #08080C;
  font-family: var(--font);
  color: var(--ink);
  display: grid;
  place-items: center;
}
[data-theme="gauge"] body { background: #070A0C; }

#app {
  position: relative;
  width: 100vw; height: 100vh; height: 100dvh;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
  transition: background .45s ease;
}
@media (min-width: 700px) {
  body { background: radial-gradient(120% 90% at 50% 0%, #17171F 0%, #08080C 70%); }
  #app {
    width: 390px; height: 844px;
    border-radius: 44px;
    box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.07);
  }
}

#bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
[data-theme="gauge"] #app::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(160,210,200,.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(160,210,200,.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(125% 95% at 50% 42%, #000 35%, transparent 92%);
}

/* ---- 屏幕切换 ---- */
.screens { position: absolute; inset: 0; z-index: 1; }
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: calc(max(env(safe-area-inset-top), 14px) + 30px) var(--pad) max(env(safe-area-inset-bottom), 14px);
  opacity: 0; visibility: hidden;
  transform: translateX(22px);
  transition: opacity .34s ease, transform .34s cubic-bezier(.22,.9,.3,1), visibility .34s;
}
.screen.is-active { opacity: 1; visibility: visible; transform: none; }
.screen.is-left { transform: translateX(-22px); }

/* ============================ 品牌区 ============================ */
.brand { flex: none; text-align: center; }
.brand-row { display: flex; align-items: center; justify-content: center; gap: 12px; }
.seal {
  width: 38px; height: 36px; object-fit: contain; flex: none;
  filter: var(--seal-filter);
}
[data-theme="vein"] .seal { filter: var(--seal-filter) drop-shadow(0 0 6px rgba(224,60,60,.28)); }
.brand-name {
  margin: 0; font-size: 31px; font-weight: 700; letter-spacing: .20em;
  text-indent: .20em; line-height: 1.1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
[data-theme="vein"] .brand-name { filter: drop-shadow(0 0 16px rgba(167,139,250,.45)); }
.brand-sub {
  margin: 9px 0 0; font-size: 13.5px; letter-spacing: .14em; text-indent: .14em;
  color: var(--ink-2); font-weight: 400;
}
.brand.is-compact .brand-name { font-size: 25px; }
.brand.is-compact .seal { width: 30px; height: 29px; }
.brand.is-compact .brand-sub { font-size: 12px; margin-top: 7px; }

/* ============================ 页脚 ============================ */
.foot {
  flex: none; margin-top: auto; padding-top: 18px;
  text-align: center; font-size: 11px; letter-spacing: .18em; text-indent: .18em;
  color: var(--ink-3); user-select: none;
}
.foot b { font-weight: 400; cursor: default; }

/* ============================ 第 1 页 ============================ */
#s-role { justify-content: flex-start; }
#s-role .brand { margin-top: 8px; }
.role-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.role-btn {
  appearance: none; border: 1px solid var(--line); background: var(--bg-2);
  border-radius: var(--r); padding: 30px 8px;
  font-family: var(--font); font-size: 17px; font-weight: 500; letter-spacing: .1em;
  text-indent: .1em; color: var(--ink);
  cursor: pointer; position: relative; overflow: hidden;
  transition: border-color .25s, background .25s, transform .18s, box-shadow .3s;
}
.role-btn::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: var(--grad); transition: opacity .3s;
}
.role-btn::after {
  content: attr(data-hint); position: absolute; left: 0; right: 0; bottom: 11px;
  font-size: 10.5px; letter-spacing: .06em; text-indent: .06em;
  color: var(--ink-3); font-weight: 400;
}
.role-btn:hover, .role-btn:focus-visible {
  border-color: transparent; transform: translateY(-2px);
  box-shadow: var(--glow-1), var(--glow-2);
  outline: none;
}
.role-btn:hover::before, .role-btn:focus-visible::before { opacity: .16; }
.role-btn:active { transform: translateY(0) scale(.985); }
.role-note {
  margin: 26px 0 0; text-align: center; font-size: 11.5px; line-height: 1.9;
  color: var(--ink-3); letter-spacing: .04em;
}
.role-note em { font-style: normal; color: var(--ink-2); }

/* ============================ 表单 ============================ */
.form { flex: none; margin-top: 20px; display: flex; flex-direction: column; gap: 2px; }
.field {
  display: grid; grid-template-columns: 94px 1fr; align-items: center;
  gap: 10px; min-height: 46px;
}
.field[hidden], .assoc[hidden] { display: none; }
.field > label {
  font-size: 12.5px; color: var(--ink-2); text-align: right; line-height: 1.35;
  letter-spacing: 0; white-space: nowrap;
}
.field .req { color: var(--pur); margin-left: 2px; }
.ctl {
  position: relative; display: flex; align-items: center; gap: 8px;
  min-height: 34px; border-bottom: 1px solid var(--line-2);
  transition: border-color .25s;
}
.ctl:focus-within { border-bottom-color: var(--pur); }
.field.is-bad .ctl { border-bottom-color: var(--danger); }
.field.is-bad > label { color: var(--danger); }

input.txt {
  flex: 1; min-width: 0; appearance: none; background: none; border: 0;
  font-family: var(--font); font-size: 15px; color: var(--ink);
  padding: 6px 0; outline: none; letter-spacing: .01em;
}
input.txt::placeholder { color: var(--ink-3); font-size: 13.5px; }
input.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.unit { flex: none; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }

/* 下拉（自建 picker，避免原生 select 在深色下的观感） */
.pick {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 6px; padding: 6px 0; cursor: pointer; font-size: 15px; color: var(--ink);
  background: none; border: 0; font-family: var(--font); text-align: left; outline: none;
}
.pick.is-empty { color: var(--ink-3); font-size: 13.5px; }
.pick .caret {
  flex: none; width: 7px; height: 7px; border-right: 1.4px solid var(--ink-3);
  border-bottom: 1.4px solid var(--ink-3); transform: rotate(45deg) translate(-2px,-2px);
}
.field.is-bad .pick .caret { border-color: var(--danger); }
.ctl.triple { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 4px; align-items: center; }
.ctl.triple > * { border: 0; }
.ctl.triple .pick, .ctl.duo .pick { justify-content: flex-start; gap: 7px; }
.ctl.triple .pick > span, .ctl.duo .pick > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctl.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }

/* 分段选择 */
.seg { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; padding: 5px 0; }
.seg button {
  flex: 1 1 0; min-width: 0; appearance: none; cursor: pointer;
  font-family: var(--font); font-size: 12.5px; color: var(--ink-2);
  padding: 8px 2px; border: 1px solid var(--line-2); background: transparent;
  border-radius: var(--r-s); white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s, box-shadow .25s;
}
.seg button:hover { color: var(--ink); border-color: var(--line); }
.seg button[aria-pressed="true"] {
  color: var(--bg); font-weight: 500; border-color: transparent;
  background: var(--grad); box-shadow: var(--glow-1);
}
[data-theme="strata"] .seg button[aria-pressed="true"] { color: #101012; }
.seg.narrow { flex: none; }
.seg.narrow button { flex: 0 0 auto; padding: 8px 16px; }

/* 伴生矿二级区 */
.assoc {
  grid-column: 1 / -1; margin: 2px 0 6px;
  border-left: 1px solid var(--line-2); padding: 4px 0 4px 10px;
  display: grid; gap: 2px;
  animation: slideDown .3s cubic-bezier(.22,.9,.3,1);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } }
.assoc .field { grid-template-columns: 83px 1fr; min-height: 40px; }
.assoc .field > label { font-size: 11.5px; }

/* 主按钮 */
.cta {
  flex: none; margin: 26px 0 4px; align-self: center;
  width: 200px; padding: 15px 0; border: 0; border-radius: var(--r);
  font-family: var(--font); font-size: 16px; font-weight: 500; letter-spacing: .08em;
  text-indent: .08em; color: #0C0C10;
  background: var(--grad); cursor: pointer;
  box-shadow: var(--glow-1), var(--glow-2);
  transition: transform .18s, filter .25s, box-shadow .3s;
}
.cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.cta:active { transform: translateY(0) scale(.985); }
[data-theme="strata"] .cta { box-shadow: none; }
[data-theme="strata"] .cta:hover { box-shadow: 0 6px 22px rgba(139,92,246,.28); }

.form-err {
  flex: none; text-align: center; font-size: 12px; color: var(--danger);
  min-height: 17px; margin-top: 8px; opacity: 0; transition: opacity .2s;
}
.form-err.show { opacity: 1; }

/* ============================ 第 3 页 结果 ============================ */
.back {
  flex: none; align-self: flex-start; appearance: none; background: none; border: 0;
  font-family: var(--font); font-size: 12.5px; color: var(--ink-3); cursor: pointer;
  padding: 2px 6px 2px 0; margin-bottom: 4px; transition: color .2s;
}
.back:hover { color: var(--ink-2); }

.res-title {
  flex: none; margin: 30px 0 0; text-align: center;
  font-size: 15px; font-weight: 400; color: var(--ink-2); letter-spacing: .05em;
}
.res-title b { color: var(--ink); font-weight: 500; }

.res-row {
  flex: none; display: flex; align-items: flex-end; justify-content: center;
  gap: 10px; margin: 20px 0 8px;
}
.res-box {
  flex: 1 1 auto; max-width: 218px; min-height: 74px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-2); padding: 6px 12px;
  transition: box-shadow .35s, border-color .35s;
}
[data-theme="vein"] .res-box {
  border-color: rgba(167,139,250,.42);
  box-shadow: inset 0 0 30px rgba(167,139,250,.12), 0 0 24px rgba(167,139,250,.16);
}
[data-theme="gauge"] .res-box {
  background: rgba(0,0,0,.28);
  box-shadow: inset 0 2px 12px rgba(0,0,0,.55), 0 0 0 1px rgba(38,195,160,.14);
}
.res-num {
  font-family: var(--num); font-size: 40px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="vein"] .res-num { filter: drop-shadow(0 0 14px rgba(52,228,180,.5)); }
[data-theme="gauge"] .res-num { background: none; color: var(--grn); text-shadow: var(--txt-glow); }
.res-unit {
  flex: none; font-size: 25px; font-weight: 500; color: var(--ink); padding-bottom: 5px;
}

/* ---- 滑杆 ---- */
.sliders { flex: none; margin-top: 26px; display: flex; flex-direction: column; gap: 26px; }
.slider { user-select: none; touch-action: none; }
.sl-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 16px;
}
.sl-name { font-size: 13.5px; color: var(--ink-2); letter-spacing: .06em; }
.sl-unit { font-size: 11.5px; color: var(--ink-3); font-family: var(--num); }
.sl-body { position: relative; padding: 0 2px; cursor: pointer; }

.sl-thumbrow { position: relative; height: 15px; }
.sl-thumb {
  position: absolute; bottom: 1px; width: 15px; height: 13px;
  transform: translateX(-50%);
  background: var(--grad);
  clip-path: polygon(0 0, 100% 0, 50% 100%);   /* 倒等腰三角形 */
  transition: left .22s cubic-bezier(.3,1.3,.5,1);
  will-change: left;
}
[data-theme="vein"] .sl-thumb { filter: drop-shadow(0 0 8px rgba(52,228,180,.75)); }
[data-theme="gauge"] .sl-thumb { background: var(--grn); filter: drop-shadow(0 0 7px rgba(38,195,160,.7)); }
.slider.is-dragging .sl-thumb { transition: none; }

.sl-rail { position: relative; height: 6px; border-radius: 3px; background: var(--bg-3); }
.sl-rail::before {
  content: ""; position: absolute; inset: 0; border-radius: 3px;
  background: var(--grad); opacity: .85;
}
[data-theme="strata"] .sl-rail::before { opacity: .55; }
[data-theme="vein"] .sl-rail { box-shadow: 0 0 16px rgba(167,139,250,.35); }
[data-theme="gauge"] .sl-rail { height: 3px; border-radius: 0; }
[data-theme="gauge"] .sl-rail::before { border-radius: 0; opacity: .7; }

.sl-tick {
  position: absolute; top: 50%; width: 5px; height: 5px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg); box-shadow: 0 0 0 1px rgba(255,255,255,.35);
  transition: background .2s, box-shadow .2s;
}
[data-theme="gauge"] .sl-tick {
  top: -4px; width: 1px; height: 15px; border-radius: 0; transform: translateX(-50%);
  background: rgba(160,210,200,.45); box-shadow: none;
}
.sl-tick.on { background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
[data-theme="gauge"] .sl-tick.on { background: var(--ink); height: 21px; top: -7px; }

.sl-labels { position: relative; height: 32px; margin-top: 11px; }
.sl-lab {
  position: absolute; top: 0; font-family: var(--num); font-size: 11px;
  color: var(--ink-3); white-space: nowrap; line-height: 1.35;
  font-variant-numeric: tabular-nums; text-align: center;
  transition: color .2s, font-weight .2s;
}
.sl-lab.on { color: var(--ink); font-weight: 500; }
.sl-lab.first { transform: none; text-align: left; }
.sl-lab.last  { transform: translateX(-100%); text-align: right; }
.sl-lab.mid   { transform: translateX(-50%); }

/* ---- 联系 / 免责 ---- */
.contact {
  flex: none; margin-top: 34px; padding: 16px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2);
  display: flex; align-items: center; gap: 14px;
}
.qr {
  flex: none; width: 66px; height: 66px; border-radius: var(--r-s);
  border: 1px dashed var(--line); display: grid; place-items: center;
  font-size: 9.5px; color: var(--ink-3); line-height: 1.5; text-align: center;
}
.contact-txt { flex: 1; min-width: 0; }
.contact-txt h3 {
  margin: 0 0 8px; font-size: 12.5px; font-weight: 500; color: var(--ink);
  letter-spacing: .02em; line-height: 1.6; text-wrap: pretty;
}
.contact-txt p { margin: 0; font-size: 11.5px; line-height: 1.85; color: var(--ink-3); }
.contact-txt .todo { color: var(--ink-2); font-family: var(--num); }

.disclaimer {
  flex: none; margin-top: 16px;
  font-size: 10.5px; line-height: 1.95; color: var(--ink-3); letter-spacing: .01em;
}
.disclaimer b { display: block; margin-bottom: 4px; color: var(--ink-2); font-weight: 500; letter-spacing: .08em; }

/* ============================ 底部弹层（picker / 调参） ============================ */
.sheet-mask {
  position: absolute; inset: 0; z-index: 40; background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .28s, visibility .28s;
}
.sheet-mask.show { opacity: 1; visibility: visible; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 41;
  max-height: 74%; display: flex; flex-direction: column;
  background: var(--bg); border-top: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  transform: translateY(102%); transition: transform .32s cubic-bezier(.22,.9,.3,1);
  padding-bottom: max(env(safe-area-inset-bottom), 10px);
}
@media (min-width: 700px) { .sheet { border-radius: 18px 18px 44px 44px; } }
.sheet.show { transform: none; }
.sheet-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px 11px; border-bottom: 1px solid var(--line-2);
}
.sheet-head h4 { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: .06em; }
.sheet-head button {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 13px; color: var(--ink-3); padding: 4px 2px;
}
.sheet-head button:hover { color: var(--ink); }
.sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 12px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 13px 20px; cursor: pointer;
  appearance: none; background: none; border: 0; text-align: left;
  font-family: var(--font); font-size: 15px; color: var(--ink-2);
  transition: background .18s, color .18s;
}
.opt:hover { background: var(--bg-2); color: var(--ink); }
.opt.on { color: var(--ink); font-weight: 500; }
.opt.on::after {
  content: ""; width: 6px; height: 11px; flex: none;
  border-right: 1.8px solid var(--grn); border-bottom: 1.8px solid var(--grn);
  transform: rotate(45deg);
}
.opt small { color: var(--ink-3); font-size: 11.5px; font-weight: 400; }

/* ============================ 调参面板（主教用，客户不可见） ============================ */
.tuner-grid { padding: 4px 20px 0; display: grid; gap: 0; }
.tuner-sec {
  margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line-2);
  font-size: 10.5px; letter-spacing: .18em; color: var(--ink-3);
}
.tuner-sec:first-child { border-top: 0; margin-top: 2px; }
.tuner-row {
  display: grid; grid-template-columns: 1fr 92px 46px; align-items: center;
  gap: 9px; padding: 7px 0;
}
.tuner-row > span { font-size: 12.5px; color: var(--ink-2); }
.tuner-row > span small { display: block; color: var(--ink-3); font-size: 10px; letter-spacing: .04em; }
.tuner-row input {
  appearance: none; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--r-s); padding: 7px 9px; color: var(--ink);
  font-family: var(--num); font-size: 13px; text-align: right; outline: none;
  font-variant-numeric: tabular-nums;
}
.tuner-row input:focus { border-color: var(--pur); }
.tuner-row em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.tuner-out {
  margin: 12px 0 4px; padding: 12px 14px; border-radius: var(--r-s);
  background: var(--bg-2); border: 1px solid var(--line-2);
  font-family: var(--num); font-size: 11.5px; line-height: 1.95; color: var(--ink-2);
  font-variant-numeric: tabular-nums; white-space: pre-wrap;
}
.tuner-acts { display: flex; gap: 8px; padding: 10px 20px 4px; flex-wrap: wrap; }
.tuner-acts button {
  flex: 1 1 auto; appearance: none; cursor: pointer; padding: 10px 12px;
  border: 1px solid var(--line); background: transparent; border-radius: var(--r-s);
  font-family: var(--font); font-size: 12px; color: var(--ink-2); white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.tuner-acts button:hover { color: var(--ink); border-color: var(--pur); }

/* ============================ 视觉方向切换器 ============================ */
.theme-pick {
  position: absolute; top: max(env(safe-area-inset-top), 14px); right: 12px; z-index: 30;
  display: flex; gap: 2px; padding: 3px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(0,0,0,.34); backdrop-filter: blur(8px);
}
.theme-pick button {
  appearance: none; border: 0; background: none; cursor: pointer;
  font-family: var(--font); font-size: 10px; letter-spacing: .04em;
  color: var(--ink-3); padding: 4px 8px; border-radius: 999px;
  transition: color .2s, background .2s;
}
.theme-pick button:hover { color: var(--ink-2); }
.theme-pick button.on { color: var(--ink); background: var(--bg-3); }

.toast {
  position: absolute; left: 50%; bottom: 92px; z-index: 60;
  transform: translate(-50%, 10px);
  padding: 10px 18px; border-radius: 999px;
  background: rgba(0,0,0,.8); border: 1px solid var(--line-2);
  font-size: 12px; color: var(--ink); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
