/* ============================================================
   Colin OS · Wiser 风格暗黑金 PWA 主题
   纯黑 + 暗黑金 #D4AF37 · 圆角卡片 · 微光阴影 · 毛玻璃
   ============================================================ */

:root {
  --bg: #0b0b0f;
  --bg-2: #121218;
  --bg-3: #1a1a23;
  --gold: #d4af37;
  --gold-soft: #e8c766;
  --gold-dim: rgba(212, 175, 55, 0.16);
  --gold-line: rgba(212, 175, 55, 0.28);
  --text: #edeae2;
  --muted: #9a97a3;
  --muted-2: #6e6b78;
  --card: rgba(255, 255, 255, 0.035);
  --card-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --danger: #e5484d;
  --ok: #58c98b;
  --serif: "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
  --tabbar-h: 62px;
  --header-h: 56px;
  --audio-h: 66px;
  --radius: 20px;
  --shadow-glow: 0 8px 40px rgba(212, 175, 55, 0.10), 0 2px 12px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; -webkit-tap-highlight-color: transparent; }
html, body { max-width: 100%; overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--gold-soft); text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ============ App 列外壳（桌面居中手机列，移动全屏） ============ */
.os-shell {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(212, 175, 55, 0.07), transparent 60%),
    var(--bg);
}
@media (min-width: 601px) {
  .os-shell {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
  }
}

/* ============ 顶部品牌 Header ============ */
.os-header {
  position: sticky;
  top: 0;
  z-index: 150;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(11, 11, 15, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--gold-line);
}
.os-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.os-brand img { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.os-brand .bt { display: flex; flex-direction: column; min-width: 0; }
.os-brand .bt b {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.12em;
  background: linear-gradient(100deg, #f4dd8d, var(--gold) 55%, #a9852a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.os-brand .bt em { font-style: normal; font-size: 9.5px; letter-spacing: 0.32em; color: var(--muted-2); text-transform: uppercase; white-space: nowrap; }
.os-header .streak-mini {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--gold-soft);
  border: 1px solid var(--gold-line);
  background: var(--gold-dim);
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.os-header .streak-mini svg { width: 13px; height: 13px; }

/* ============ 主视图 ============ */
.os-view { padding: 16px 16px calc(var(--tabbar-h) + var(--audio-h) + env(safe-area-inset-bottom) + 26px); }
.view-head { margin: 4px 2px 14px; }
.view-head h1 { font-family: var(--serif); font-size: 24px; font-weight: 800; letter-spacing: 0.02em; }
.view-head h1 span { color: var(--gold); }
.view-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ============ 底部 4 大 TabBar ============ */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 560px;
  z-index: 300;
  display: flex;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: rgba(13, 13, 18, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid var(--gold-line);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.55);
}
.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0 2px;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.18s ease, transform 0.18s ease;
  border-radius: 12px;
}
.tab-btn svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: 0.18s; }
.tab-btn .tdot { width: 4px; height: 4px; border-radius: 50%; background: transparent; transition: 0.18s; }
.tab-btn.on { color: var(--gold); transform: translateY(-2px); }
.tab-btn.on svg { filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.55)); }
.tab-btn.on .tdot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.tab-btn:active { transform: scale(0.94); }

/* ============ 通用卡片 ============ */
.cardx {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}
.cardx:active { transform: scale(0.985); }
.cardx.tap:hover { border-color: var(--gold-line); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.cardx .cat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--gold-soft); background: var(--gold-dim);
  border: 1px solid var(--gold-line);
  padding: 3px 10px; border-radius: 999px; margin-bottom: 9px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cardx h3 { font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.cardx h3 .en { display: block; font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--muted-2); letter-spacing: 0.05em; margin-top: 2px; }
.cardx .desc { font-size: 13px; color: var(--muted); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cardx .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 11.5px; color: var(--muted-2); }
.cardx .meta .go { color: var(--gold); font-weight: 700; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }

/* 分区标题行 */
.sec-row { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 12px; }
.sec-row h2 { font-family: var(--serif); font-size: 18px; font-weight: 800; }
.sec-row h2 i { font-style: normal; color: var(--gold); }
.sec-row span { font-size: 11.5px; color: var(--muted-2); }

/* ============ 搜索 / 筛选 ============ */
.searchbar { position: relative; margin-bottom: 12px; }
.searchbar input {
  width: 100%; box-sizing: border-box;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 14px;
  color: var(--text); font-size: 14px; padding: 11px 40px 11px 14px; outline: none;
  transition: border-color 0.18s;
}
.searchbar input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12); }
.searchbar input::placeholder { color: var(--muted-2); }
.searchbar .sicon { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; stroke: var(--muted-2); fill: none; stroke-width: 2; }
.chiprow { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; -ms-overflow-style: none; scrollbar-width: none; }
.chiprow::-webkit-scrollbar { display: none; }
.chip {
  flex: none; font-size: 12px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); background: var(--bg-2);
  padding: 7px 14px; border-radius: 999px; transition: 0.15s; white-space: nowrap;
}
.chip.on { color: #0b0b0f; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); border-color: var(--gold); font-weight: 800; }

/* ============ 15 分钟 / 完整 双视图切换 ============ */
.seg {
  display: flex; gap: 4px; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 14px; padding: 4px; margin: 14px 0;
}
.seg button {
  flex: 1; padding: 9px 6px; border-radius: 10px; font-size: 13px; font-weight: 700;
  color: var(--muted); transition: 0.18s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.seg button.on {
  color: #0b0b0f;
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  box-shadow: 0 3px 14px rgba(212, 175, 55, 0.35);
}
.reader { animation: fadeUp 0.3s ease; }
.reader .rmeta { font-size: 12px; color: var(--muted-2); display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.reader .rmeta b { color: var(--gold-soft); }
.reader .lede { font-size: 15px; line-height: 1.9; color: var(--text); padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 14px; margin-bottom: 14px; overflow-wrap: anywhere; }
.reader h4 { font-family: var(--serif); font-size: 16px; color: var(--gold-soft); margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.reader h4::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-line), transparent); }
.reader ul.pts { list-style: none; }
.reader ul.pts li { position: relative; padding: 11px 14px 11px 34px; font-size: 14px; line-height: 1.8; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 9px; overflow-wrap: anywhere; }
.reader ul.pts li::before { content: ""; position: absolute; left: 14px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(212, 175, 55, 0.6); }
.reader ol.steps { margin-left: 20px; }
.reader ol.steps li { font-size: 14px; line-height: 1.9; color: var(--text); margin-bottom: 8px; overflow-wrap: anywhere; }
.mtagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mtag { font-size: 12px; color: var(--gold-soft); background: var(--gold-dim); border: 1px solid var(--gold-line); padding: 5px 12px; border-radius: 999px; }

/* ============ 悬浮音频播放器 ============ */
.audio-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 560px;
  z-index: 450;
  background: rgba(16, 16, 22, 0.92);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid var(--gold-line);
  padding: 9px 14px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.audio-bar.closed { transform: translateX(-50%) translateY(120%); opacity: 0; pointer-events: none; }
.audio-in { display: flex; align-items: center; gap: 11px; }
.aplay {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #b8942c);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
  transition: transform 0.15s;
}
.aplay:active { transform: scale(0.92); }
.aplay svg { width: 18px; height: 18px; fill: #0b0b0f; }
.aplay.playing { animation: pulse 1.6s ease infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4); } 50% { box-shadow: 0 4px 26px rgba(212, 175, 55, 0.65); } }
.audio-mid { flex: 1; min-width: 0; }
.audio-mid .ttl { font-size: 12.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-mid .sub { font-size: 10.5px; color: var(--muted-2); margin-top: 1px; }
.aprog { height: 4px; background: rgba(255, 255, 255, 0.09); border-radius: 99px; margin-top: 7px; overflow: hidden; }
.aprog .fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); border-radius: 99px; transition: width 0.4s linear; }
.audio-right { flex: none; display: flex; align-items: center; gap: 6px; }
.rate-btn {
  font-size: 11px; font-weight: 800; color: var(--gold-soft);
  border: 1px solid var(--gold-line); background: var(--gold-dim);
  padding: 5px 9px; border-radius: 999px; transition: 0.15s;
}
.rate-btn.on { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #0b0b0f; border-color: var(--gold); }
.aclose { width: 26px; height: 26px; border-radius: 50%; color: var(--muted-2); display: flex; align-items: center; justify-content: center; font-size: 15px; border: 1px solid var(--line); }

/* 播放图标切换 */
.ic-play, .ic-pause { display: none; }
.aplay[data-state="play"] .ic-play { display: block; }
.aplay[data-state="pause"] .ic-pause { display: block; }

/* ============ 闪卡（3D 翻牌 + 滑动） ============ */
.fc-wrap { max-width: 460px; margin: 0 auto; }
.fc-progress { display: flex; align-items: center; justify-content: center; gap: 7px; margin-bottom: 16px; }
.fc-progress .pd { width: 22px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); transition: 0.25s; }
.fc-progress .pd.done { background: var(--gold); box-shadow: 0 0 8px rgba(212, 175, 55, 0.5); }
.fc-progress .pd.cur { background: var(--gold-soft); width: 34px; }
.fc-stage { perspective: 1400px; }
.fc-card {
  position: relative;
  height: 400px;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.2, 0.75, 0.3, 1);
  will-change: transform;
}
.fc-card.flipped { transform: rotateY(180deg); }
.fc-card.dragging { transition: none; }
.fc-card.swipe-out-l { transition: transform 0.35s ease, opacity 0.35s ease; transform: translateX(-120%) rotate(-8deg); opacity: 0; }
.fc-card.swipe-out-r { transition: transform 0.35s ease, opacity 0.35s ease; transform: translateX(120%) rotate(8deg); opacity: 0; }
.fc-face {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: 26px;
  padding: 26px 22px;
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--gold-line);
}
.fc-face.front {
  background:
    radial-gradient(400px 240px at 50% -8%, rgba(212, 175, 55, 0.14), transparent 65%),
    linear-gradient(165deg, #17171f, #0e0e14);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.fc-face.back {
  transform: rotateY(180deg);
  background:
    radial-gradient(400px 240px at 50% 108%, rgba(212, 175, 55, 0.12), transparent 65%),
    linear-gradient(165deg, #14141c, #0d0d12);
  box-shadow: var(--shadow-glow);
}
.fc-face .corner { position: absolute; width: 44px; height: 44px; border: 2px solid var(--gold-line); }
.fc-face .corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; border-radius: 14px 0 0 0; }
.fc-face .corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; border-radius: 0 0 14px 0; }
.fc-face .fkind { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.fc-face .fkind .tag { font-size: 10.5px; font-weight: 800; letter-spacing: 0.18em; color: var(--gold); border: 1px solid var(--gold-line); background: var(--gold-dim); padding: 4px 11px; border-radius: 999px; }
.fc-face .fkind .idx { font-size: 11px; color: var(--muted-2); font-weight: 700; letter-spacing: 0.1em; }
.fc-face .fbody { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; overflow-y: auto; }
.fc-face .fq { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.75; color: var(--text); overflow-wrap: anywhere; }
.fc-face .fperson { margin-top: 14px; font-size: 13px; color: var(--gold-soft); font-weight: 700; }
.fc-face .fqp { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.fc-face.back .fb-title { font-size: 11px; font-weight: 800; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 9px; }
.fc-face.back .fb-txt { font-size: 14px; line-height: 1.85; color: var(--text); overflow-wrap: anywhere; }
.fc-face.back .fb-acts { margin-top: 14px; }
.fc-face.back .fb-acts li { font-size: 13px; line-height: 1.7; color: var(--muted); margin-left: 18px; margin-bottom: 6px; overflow-wrap: anywhere; }
.fc-face .fhint { text-align: center; font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.08em; padding-top: 10px; }
.fc-actions { display: flex; gap: 12px; margin-top: 20px; }
.fc-actions button {
  flex: 1; padding: 14px 0; border-radius: 16px; font-size: 14.5px; font-weight: 800;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.fc-actions button:active { transform: scale(0.96); }
.btn-remember { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: #0b0b0f; box-shadow: 0 6px 22px rgba(212, 175, 55, 0.35); }
.btn-review { background: var(--bg-3); color: var(--muted); border: 1px solid var(--line); }
.fc-actions button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fc-done { text-align: center; padding: 46px 20px; animation: fadeUp 0.4s ease; }
.fc-done .big { font-size: 52px; margin-bottom: 10px; }
.fc-done h3 { font-family: var(--serif); font-size: 21px; color: var(--gold-soft); }
.fc-done p { color: var(--muted); font-size: 13.5px; margin-top: 8px; }

/* ============ 我的 / OS 页 ============ */
.profile-hero { text-align: center; padding: 26px 16px 22px; background: linear-gradient(170deg, rgba(212, 175, 55, 0.1), rgba(255, 255, 255, 0.02)); border: 1px solid var(--gold-line); border-radius: 24px; margin-bottom: 16px; }
.profile-hero .pav { width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid var(--gold); padding: 4px; box-shadow: 0 0 24px rgba(212, 175, 55, 0.3); }
.profile-hero .pav img { width: 100%; height: 100%; border-radius: 50%; }
.profile-hero h2 { font-family: var(--serif); font-size: 21px; }
.profile-hero p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.streak-big { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
.streak-big svg { width: 26px; height: 26px; }
.streak-big b { font-size: 34px; font-weight: 900; color: var(--gold); text-shadow: 0 0 22px rgba(212, 175, 55, 0.45); }
.streak-big span { font-size: 13px; color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 15px 8px; text-align: center; }
.stat-box b { display: block; font-size: 22px; font-weight: 900; color: var(--gold-soft); }
.stat-box span { font-size: 11px; color: var(--muted-2); letter-spacing: 0.05em; }
.os-list { display: flex; flex-direction: column; gap: 10px; }
.os-li { display: flex; align-items: center; gap: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 15px 16px; transition: 0.15s; }
.os-li:active { transform: scale(0.985); }
.os-li .ic { flex: none; width: 40px; height: 40px; border-radius: 13px; background: var(--gold-dim); border: 1px solid var(--gold-line); display: flex; align-items: center; justify-content: center; }
.os-li .ic svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.os-li .tx { flex: 1; min-width: 0; }
.os-li .tx b { display: block; font-size: 14.5px; font-weight: 700; }
.os-li .tx span { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.os-li .arr { color: var(--muted-2); font-size: 18px; flex: none; }
.tier-pill { font-size: 11px; font-weight: 800; padding: 4px 11px; border-radius: 999px; flex: none; }
.tier-pill.l1 { color: var(--muted); border: 1px solid var(--line); background: var(--bg-3); }
.tier-pill.l2 { color: #0b0b0f; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); }
.tier-pill.l3 { color: #0b0b0f; background: linear-gradient(135deg, #e8c766, #f4dd8d); box-shadow: 0 0 14px rgba(212, 175, 55, 0.4); }

/* ============ 安装引导条 ============ */
.install-bar {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-130%);
  width: calc(100% - 24px);
  max-width: 536px;
  z-index: 280;
  background: rgba(18, 18, 24, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  padding: 13px 15px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s ease;
}
.install-bar.show { transform: translateX(-50%) translateY(0); }
.install-bar .iic { flex: none; width: 38px; height: 38px; border-radius: 11px; }
.install-bar .itx { flex: 1; min-width: 0; }
.install-bar .itx b { display: block; font-size: 13.5px; color: var(--text); }
.install-bar .itx span { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.install-bar .ibtn { flex: none; font-size: 12.5px; font-weight: 800; color: #0b0b0f; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); padding: 8px 15px; border-radius: 999px; }
.install-bar .ix { flex: none; color: var(--muted-2); font-size: 16px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ============ 详情面板（底部抽屉 / 桌面居中） ============ */
.sheet-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); z-index: 400; opacity: 0; pointer-events: none; transition: opacity 0.28s; }
.sheet-mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 0;
  width: 100%; max-width: 560px;
  max-height: 88vh;
  z-index: 410;
  background: linear-gradient(180deg, #14141b, #0d0d12);
  border: 1px solid var(--gold-line);
  border-bottom: none;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -14px 60px rgba(0, 0, 0, 0.7);
  transform: translateX(-50%) translateY(102%);
  transition: transform 0.34s cubic-bezier(0.3, 0.8, 0.3, 1);
  display: flex; flex-direction: column;
}
.sheet.open { transform: translateX(-50%) translateY(0); }
.sheet .grab { flex: none; width: 40px; height: 4.5px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); margin: 10px auto 4px; }
.sheet .sheet-body { overflow-y: auto; padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.sheet .sclose { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--muted); font-size: 16px; z-index: 5; }
.sheet h2.stitle { font-family: var(--serif); font-size: 20px; line-height: 1.45; padding-right: 38px; overflow-wrap: anywhere; }
.sheet .ssub { font-size: 12.5px; color: var(--gold-soft); margin-top: 5px; }
@media (min-width: 601px) {
  .sheet { bottom: auto; top: 50%; transform: translateX(-50%) translateY(-46%) scale(0.96); border-radius: 26px; border-bottom: 1px solid var(--gold-line); max-height: 84vh; opacity: 0; transition: transform 0.28s, opacity 0.28s; }
  .sheet.open { transform: translateX(-50%) translateY(-50%) scale(1); opacity: 1; }
}

/* ============ 折叠块（详情内） ============ */
details.fk { border: 1px solid var(--line); border-radius: 14px; margin-top: 10px; background: rgba(255, 255, 255, 0.025); overflow: hidden; }
details.fk summary { cursor: pointer; list-style: none; padding: 12px 14px; font-size: 12.5px; font-weight: 800; color: var(--gold-soft); letter-spacing: 0.06em; display: flex; align-items: center; gap: 8px; user-select: none; }
details.fk summary::-webkit-details-marker { display: none; }
details.fk summary::after { content: "+"; margin-left: auto; width: 20px; height: 20px; border: 1px solid var(--gold-line); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
details.fk[open] summary::after { content: "−"; }
details.fk .fk-b { padding: 2px 14px 13px; }
details.fk li { font-size: 13.5px; line-height: 1.75; margin-left: 18px; margin-bottom: 6px; overflow-wrap: anywhere; }
details.fk .fk-b .bt { font-size: 13.5px; line-height: 1.8; overflow-wrap: anywhere; }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(16px);
  bottom: calc(var(--tabbar-h) + var(--audio-h) + env(safe-area-inset-bottom) + 18px);
  z-index: 500; background: rgba(20, 20, 27, 0.95); border: 1px solid var(--gold-line);
  color: var(--gold-soft); font-size: 13px; font-weight: 700;
  padding: 11px 20px; border-radius: 999px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  opacity: 0; transition: 0.3s; pointer-events: none; max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 动画 ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeUp 0.32s ease; }

/* ============ 诊所：模型卡 ============ */
.model-no { font-size: 11px; font-weight: 900; color: var(--gold); letter-spacing: 0.08em; }
.pro-badge { position: absolute; top: 12px; right: 12px; font-size: 9.5px; font-weight: 900; letter-spacing: 0.14em; color: #0b0b0f; background: linear-gradient(135deg, #f4dd8d, var(--gold)); padding: 3px 8px; border-radius: 6px; }
.lock-note { font-size: 11px; color: var(--muted-2); margin-top: 8px; display: flex; align-items: center; gap: 5px; }
.lock-note svg { width: 12px; height: 12px; stroke: var(--muted-2); fill: none; stroke-width: 2; }
.fstat { display: none; align-items: center; justify-content: space-between; background: var(--gold-dim); border: 1px solid var(--gold-line); border-radius: 12px; padding: 9px 13px; margin-bottom: 12px; font-size: 12.5px; color: var(--gold-soft); }
.fstat.show { display: flex; }
.fstat .fclear { font-size: 11.5px; font-weight: 800; color: #0b0b0f; background: var(--gold); padding: 5px 12px; border-radius: 999px; }
.acc-hint { text-align: center; font-size: 11.5px; color: var(--muted-2); padding: 18px 0 6px; letter-spacing: 0.06em; }
.acc { border: 1px solid var(--line); border-radius: 18px; background: var(--card); margin-bottom: 10px; overflow: hidden; }
.acc-h { display: flex; align-items: center; gap: 11px; padding: 15px 16px; cursor: pointer; user-select: none; }
.acc-h:active { background: rgba(255, 255, 255, 0.03); }
.acc-h .pm { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--gold-line); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.acc-h .at { flex: 1; font-size: 14.5px; font-weight: 800; color: var(--text); overflow-wrap: anywhere; }
.acc-h .ac { flex: none; font-size: 11px; color: var(--muted-2); }
.acc-b { display: none; padding: 0 10px 12px; }
.acc.open .acc-b { display: block; }
.acc.open .acc-h { border-bottom: 1px solid var(--line); }

/* 模型诊所弹层内 */
.lockwrap { position: relative; margin-top: 12px; border-radius: 16px; overflow: hidden; }
.lockwrap .blur-zone { filter: blur(5px); opacity: 0.45; pointer-events: none; user-select: none; }
.lock-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(11, 11, 15, 0.55); z-index: 3; }
.unlock-btn { font-size: 13.5px; font-weight: 800; color: #0b0b0f; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); padding: 12px 22px; border-radius: 999px; box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4); }
.mcard { background: transparent; }
.mcard h3 { font-family: var(--serif); font-size: 19px; line-height: 1.4; padding-right: 36px; overflow-wrap: anywhere; }
.mcard .mtags { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 12px; }
.mcard p { font-size: 14px; line-height: 1.85; color: var(--text); text-align: left; overflow-wrap: anywhere; }
.mcard .mlabel { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; color: var(--gold); margin: 16px 0 7px; }

/* 支付 Modal（复用 v6 数据结构） */
.modal { position: fixed; inset: 0; z-index: 600; display: none; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.65); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal.pay { z-index: 650; }
.modal .mcard { width: 100%; max-width: 560px; background: linear-gradient(180deg, #15151d, #0e0e13); border: 1px solid var(--gold-line); border-radius: 26px 26px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); position: relative; text-align: center; }
.mclose { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--muted); font-size: 16px; z-index: 5; }
.mprice { font-size: 30px; font-weight: 900; color: var(--gold); margin: 12px 0 6px; text-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
.mqr { width: 150px; height: 150px; border-radius: 14px; border: 1px solid var(--gold-line); margin: 10px auto; display: block; background: #fff; padding: 6px; }
.mcta { width: 100%; margin-top: 10px; padding: 13px 0; border-radius: 14px; font-size: 14.5px; font-weight: 800; color: #0b0b0f; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); }
.mdebug { margin-top: 12px; font-size: 11px; color: var(--muted-2); text-decoration: underline; }
@media (min-width: 601px) {
  .modal { align-items: center; }
  .modal .mcard { border-radius: 26px; max-width: 440px; }
}

/* 离线徽标 */
.offline-pill { position: fixed; top: calc(var(--header-h) + 10px); left: 50%; transform: translateX(-50%); z-index: 270; font-size: 11px; font-weight: 700; color: var(--muted); background: rgba(20, 20, 27, 0.9); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; display: none; }
.offline-pill.show { display: block; }

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
