/* ============================================================
   小楠不会取名 · Xiaonan Studio — styles.css
   Step 1: design tokens, glass tiers, 3-layer shadows,
   cursor vars, theme vars, reduced-motion fallback.
   Rule: JS springs drive ALL interaction — no CSS transitions
   on interactive elements.
   ============================================================ */

/* ---------- 1. Theme tokens ---------- */
:root {
  /* color tokens (light default) — 品牌色严格按给定 Hex 注入 */
  --bg-base: #F4F5F7;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --bg: var(--bg-base);
  --bg-2: var(--bg-base);
  --text: #1d1d1f;
  --text-2: rgba(29, 29, 31, .62);
  --text-3: rgba(29, 29, 31, .4);
  --text-muted: rgba(29, 29, 31, .66);  /* 12px 极小提示：浅色底 >= 4.5:1 */

  /* brand gradient: 指向品牌蓝令牌；配色方案仍可覆盖 --brand-* */
  --brand-1: var(--primary);
  --brand-2: var(--primary-hover);
  --brand-3: var(--primary);
  --brand-grad: linear-gradient(120deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));

  /* 背景光晕色（随配色方案 data-palette 联动） */
  --glow-1: rgba(37, 99, 235, .10);
  --glow-2: rgba(37, 99, 235, .07);
  --glow-3: rgba(29, 78, 216, .10);
  --cursor-glow: rgba(37, 99, 235, .16);

  /* glass tints */
  --glass-tint: rgba(255, 255, 255, .10);   /* tier 1 */
  --glass-tint-deep: rgba(255, 255, 255, .20); /* tier 2 */
  --glass-border: rgba(255,255,255,0.4);
  --glass-blur: 10px;
  --glass-blur-deep: 20px;
  --glass-sat: 170%;
  --glass-sat-deep: 190%;

  /* 3-layer shadow (interactive elements) */
  --shadow-outer: 0 8px 32px -8px rgba(0, 0, 0, .18);
  --shadow-inset-top: inset 0 1px 0 rgba(255, 255, 255, .6);
  --shadow-inset-bottom: inset 0 -1px 0 rgba(255, 255, 255, .15);
  --shadow-3: var(--shadow-outer), var(--shadow-inset-top), var(--shadow-inset-bottom);
  /* intensified ~30% for hover (JS may override via spring) */
  --shadow-3-hover: 0 12px 40px -8px rgba(0, 0, 0, .24), var(--shadow-inset-top), var(--shadow-inset-bottom);

  /* cursor spotlight vars (updated on mousemove) */
  --mx: 50%;
  --my: 50%;
  --spot-size: 340px;
  --spot-alpha: .10;

  /* layout */
  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 26px;
  --nav-h: 64px;
  --page-w: 1200px;

  /* type */
  --font-sys: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg-base: #0D1117;
  --bg: var(--bg-base);
  --bg-2: var(--bg-base);
  --text: #f5f5f7;
  --text-2: rgba(245, 245, 247, .6);
  --text-3: rgba(245, 245, 247, .38);
  --text-muted: rgba(245, 245, 247, .62); /* 12px 极小提示：深色底 >= 4.5:1 */

  --brand-1: var(--primary);
  --brand-2: var(--primary-hover);
  --brand-3: var(--primary);

  --glow-1: rgba(37, 99, 235, .09);
  --glow-2: rgba(37, 99, 235, .06);
  --glow-3: rgba(29, 78, 216, .09);
  --cursor-glow: rgba(37, 99, 235, .20);

  --glass-tint: rgba(255, 255, 255, .07);
  --glass-tint-deep: rgba(255, 255, 255, .12);
  --glass-border: rgba(255,255,255,0.08);

  --shadow-outer: 0 8px 32px -8px rgba(0, 0, 0, .55);
  --shadow-inset-top: inset 0 1px 0 rgba(255, 255, 255, .12);
  --shadow-inset-bottom: inset 0 -1px 0 rgba(255, 255, 255, .05);
  --shadow-3-hover: 0 12px 40px -8px rgba(0, 0, 0, .7), var(--shadow-inset-top), var(--shadow-inset-bottom);

  --spot-alpha: .14;

  color-scheme: dark;
}

/* 扩展配色方案：精简为 4 套（默认经典蓝 + 钛空银 / 翡翠绿 / 琥珀金） */
[data-palette="titanium"],
[data-palette="emerald"],
[data-palette="amber"] {
  --primary: var(--brand-1);
  --primary-hover: var(--brand-2);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: auto; /* JS-driven smooth scroll instead */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sys);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: rgba(37, 99, 235, .26); color: #fff; }

/* focus ring for keyboard users only */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Background layers ---------- */
/* base frosted backdrop */
.bg-base {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1200px 800px at 15% -10%, var(--glow-1), transparent 60%),
    radial-gradient(1000px 700px at 110% 20%, var(--glow-2), transparent 55%),
    radial-gradient(900px 900px at 50% 120%, var(--glow-3), transparent 60%),
    var(--bg);
  pointer-events: none;
}
[data-theme="dark"] .bg-base {
  background:
    radial-gradient(1200px 800px at 15% -10%, var(--glow-1), transparent 60%),
    radial-gradient(1000px 700px at 110% 20%, var(--glow-2), transparent 55%),
    radial-gradient(900px 900px at 50% 120%, var(--glow-3), transparent 60%),
    var(--bg);
}

/* canvas particle layer */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

/* soft glow ball following cursor (JS-positioned) */
.cursor-glow {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, var(--cursor-glow), transparent 65%);
  will-change: transform;
}
[data-theme="dark"] .cursor-glow {
  background: radial-gradient(circle, var(--cursor-glow), transparent 65%);
}

/* ---------- 3.5 精选 4 套高定配色（默认经典蓝 + 钛空银 / 翡翠绿 / 琥珀金） ---------- */
[data-palette="titanium"] {
  --brand-1: #475569; --brand-2: #334155; --brand-3: #64748B;
  --glow-1: rgba(71, 85, 105, .13); --glow-2: rgba(100, 116, 139, .09); --glow-3: rgba(51, 65, 85, .12);
  --cursor-glow: rgba(71, 85, 105, .18);
}
[data-palette="emerald"] {
  --brand-1: #059669; --brand-2: #047857; --brand-3: #10B981;
  --glow-1: rgba(5, 150, 105, .12); --glow-2: rgba(16, 185, 129, .09); --glow-3: rgba(4, 120, 87, .12);
  --cursor-glow: rgba(5, 150, 105, .18);
}
[data-palette="amber"] {
  --brand-1: #D97706; --brand-2: #B45309; --brand-3: #F59E0B;
  --glow-1: rgba(217, 119, 6, .12); --glow-2: rgba(245, 158, 11, .09); --glow-3: rgba(180, 83, 9, .12);
  --cursor-glow: rgba(217, 119, 6, .18);
}
/* 高配模式（data-motion="high"）专属：光学棱镜边缘高光与强化流光 */
[data-motion="high"] {
  --spot-size: 460px;
  --spot-alpha: .18;
}
[data-motion="high"] .spotlight.is-hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-3-hover), 0 0 24px -6px var(--cursor-glow);
}

/* 主题切换涟漪层（clip-path 由 JS 弹簧驱动，无 CSS transition） */
.theme-ripple {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: var(--bg);
  clip-path: circle(0% at 50% 50%);
  visibility: hidden;
}

/* ---------- 4. Glass tiers ---------- */
.glass-1,
.glass-2 {
  position: relative;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  background: var(--glass-tint);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-3);
  isolation: isolate;
}

.glass-2 {
  -webkit-backdrop-filter: blur(var(--glass-blur-deep)) saturate(var(--glass-sat-deep));
  backdrop-filter: blur(var(--glass-blur-deep)) saturate(var(--glass-sat-deep));
  background: var(--glass-tint-deep);
  border-radius: var(--radius-l);
}

/* liquid-glass specular highlight (top edge light) */
.glass-1::before,
.glass-2::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .glass-1::before,
[data-theme="dark"] .glass-2::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 34%);
}

/* radial spotlight following --mx/--my (hover feedback) */
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    var(--spot-size) circle at var(--mx) var(--my),
    rgba(255, 255, 255, var(--spot-alpha)),
    transparent 65%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.spotlight.is-hover::after { opacity: 1; }

/* ---------- 5. Interactive base (spring-driven, no CSS transition) ---------- */
.spring-el {
  will-change: transform;
  transform: translateZ(0);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  background: var(--glass-tint);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-3);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 32px -8px rgba(37, 99, 235, .35),
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -1px 0 rgba(255, 255, 255, .15);
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-sm { padding: 8px 16px; font-size: 13px; }

/* icon buttons (nav toggles) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  background: var(--glass-tint);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-3);
  will-change: transform;
}
.icon-btn svg { width: 19px; height: 19px; fill: currentColor; }

/* ---------- 6. Nav ---------- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(calc(100% - 28px), var(--page-w));
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 24px;
  border-radius: 999px;
  will-change: transform;
}

.nav-brand {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .02em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
}

.nav-right { display: flex; align-items: center; gap: 8px; }

/* language segmented control */
.lang-seg {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 4px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  background: var(--glass-tint);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-3);
}
.lang-seg button {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  height: 100%;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.lang-seg button[aria-pressed="true"] { color: var(--text); }
.lang-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .8);
  will-change: transform;
  z-index: 0;
}
[data-theme="dark"] .lang-thumb {
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .18);
}

/* ---------- 7. Pages / sections ---------- */
.page {
  display: none;
  padding: calc(var(--nav-h) + 32px) 16px 64px;
  max-width: var(--page-w);
  margin: 0 auto;
}
.page.is-active { display: block; }
/* hero 留白：仅首页底部 +20%（64px → 76px），不影响其他页面与 .section */
#page-home { padding-bottom: 76px; }

.section { margin-bottom: 96px; }
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 32px;
}

/* hero */
.hero {
  min-height: calc(100vh - var(--nav-h) - 60px);
  min-height: calc(100dvh - var(--nav-h) - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  perspective: 1200px;
}
.hero-title {
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.08;
}
/* 3D letter-flip spans injected by JS */
.hero-title .flip-letter {
  display: inline-block;
  will-change: transform;
  transform-style: preserve-3d;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.7;
}

/* bilibili card（通用 B 站样式卡，/bilibili 面板复用） */
.bili-card {
  width: min(560px, 100%);
  padding: 24px;
  text-align: left;
  will-change: transform, opacity;
  transform-style: preserve-3d;
}

/* ---------- 7b. 首屏个人名片（两层结构） ----------
   外层 .profile-scroll：只挂 perspective（预留滚动挂钩，当前初始即正面）
   内层 .profile-tilt：只做鼠标倾斜 ±8°（JS quickSpring 驱动） */
.profile-scroll {
  width: min(560px, 100%);
  perspective: 1000px;
}
.profile-card {
  position: relative;
  width: 100%;
  padding: 24px;
  text-align: left;
  transform-style: preserve-3d;
  /* 深玻璃 18-25% blur20 saturate170（glass-2 基础上微调） */
  background: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
}
[data-theme="dark"] .profile-card { background: rgba(255, 255, 255, .10); }
.profile-tilt {
  position: relative;
  border-radius: inherit;
  transform-style: preserve-3d;
  will-change: transform;
}
/* 光斑：跟随 --mx/--my 的径向聚光 */
.profile-spot {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  --mx: 50%;
  --my: 50%;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(255, 255, 255, .12),
    transparent 62%
  );
}
[data-theme="dark"] .profile-spot {
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(255, 255, 255, .08),
    transparent 62%
  );
}
/* 斜角高光 overlay：opacity 淡入允许 transition（规格豁免项），
   位置由 --glare-x/--glare-y 驱动（JS 写，无 transition） */
.profile-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity .25s;
  --glare-x: 50%;
  --glare-y: 50%;
  --glare-a: rgba(255, 255, 255, .35);
  --glare-b: rgba(255, 255, 255, .08);
  background: radial-gradient(
    120% 120% at var(--glare-x) var(--glare-y),
    var(--glare-a), var(--glare-b) 30%, transparent 55%
  );
  mix-blend-mode: overlay;
}
.profile-glare.is-on { opacity: 1; }
/* VIP：金色/霓虹高光变量（仅外观，不改判定/滚动/按钮） */
.profile-glare.vip {
  --glare-a: rgba(255, 214, 110, .5);
  --glare-b: rgba(148, 125, 255, .22);
}
/* 分层视差初始深度（JS pointermove 追加 translate） */
.profile-avatar { transform: translateZ(60px); will-change: transform; }
.profile-idwrap { transform: translateZ(30px); will-change: transform; }
.profile-actions { transform: translateZ(20px); will-change: transform; }
/* 降级：触屏/减动效 → 静态玻璃卡，保留可读高光 */
.profile-static .profile-glare { display: none; }
.profile-static .profile-avatar,
.profile-static .profile-idwrap,
.profile-static .profile-actions { transform: none; }
.bili-card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.bili-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  flex: none;
  box-shadow: var(--shadow-3);
}
.bili-name { font-size: 18px; font-weight: 700; }
.bili-sign { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.bili-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.bili-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .12);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, .18);
}
.bili-tag.pink { background: rgba(128, 128, 128, .10); color: var(--text-2); border-color: rgba(128, 128, 128, .22); }
.bili-desc { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }
.bili-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 软件库：小标题与展开按钮容器（替代原行内样式） */
.section-title.subhead { font-size: 22px; margin-top: 8px; }
.apps-expand-wrap { text-align: center; margin-top: 32px; }
.apps-expand-wrap .btn[hidden] { display: none; }

/* ---------- 8. Cards grid ---------- */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.grid.dense { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }

.tool-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  will-change: transform;
  transform-style: preserve-3d;
  cursor: pointer;
}
.tool-card-top { display: flex; align-items: center; gap: 12px; }
.tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: var(--shadow-3);
  will-change: transform;
}
.tool-icon svg { width: 24px; height: 24px; }
.tool-name { font-size: 16px; font-weight: 700; }
.tool-meta { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.tool-use { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.tool-stats {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.tool-stats b { color: var(--text-2); font-weight: 600; }
.tool-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }

/* ---------- 9b. 首字母图标说明（软件库搜索框下方，12px 灰色提示） ---------- */
#page-apps .search-box { margin-bottom: 8px; }
.icon-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
}

/* ---------- 10. Search ---------- */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 50px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.search-box svg { width: 18px; height: 18px; fill: var(--text-3); flex: none; }
.search-box input {
  flex: 1;
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  min-width: 0;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box kbd {
  font-family: inherit;
  font-size: 11px;
  color: var(--text-3);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 4px 8px;
  flex: none;
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: var(--shadow-3), 0 0 0 2px rgba(37, 99, 235, .18);
}

/* category chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  background: var(--glass-tint);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-3);
  will-change: transform;
}
.chip[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

/* ---------- 11. Modal (FLIP target) ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  width: min(640px, 100%);
  max-height: 84vh;
  overflow: auto;
  padding: 32px;
  will-change: transform;
}

/* ---------- 12. Settings panel ---------- */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
}
.settings-row:last-child { border-bottom: 0; }
/* 设置页分组：外观(1-6) / 数据(7) / 游戏(8-9) —— 纯 CSS 组间距，不重排 DOM、不加容器 */
#page-settings .settings-row:nth-child(7),
#page-settings .settings-row:nth-child(8) { margin-top: 32px; }
.settings-label { font-size: 14px; font-weight: 600; }
.settings-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* toggle switch */
.toggle {
  position: relative;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: rgba(120, 120, 128, .28);
  flex: none;
  will-change: transform;
}
.toggle[aria-checked="true"] { background: var(--primary); }
.toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  will-change: transform;
}

/* segmented (settings options) */
.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: rgba(120, 120, 128, .16);
  gap: 4px;
}
.seg button {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  will-change: transform;
}
.seg button[aria-pressed="true"] {
  background: rgba(255, 255, 255, .8);
  color: #1d1d1f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .14);
}
[data-theme="dark"] .seg button[aria-pressed="true"] {
  background: rgba(255, 255, 255, .16);
  color: var(--text);
}

/* range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 4px;
  border-radius: 4px;
  background: rgba(120, 120, 128, .3);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .3);
  cursor: pointer;
}

/* ---------- 13. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 300;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  will-change: transform, opacity;
  opacity: 0;
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 1024px) {
  :root { --page-w: 920px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 56px; --radius-l: 20px; }
  .nav { padding: 0 4px 0 16px; }
  .nav-brand { font-size: 14px; }
  .icon-btn { width: 36px; height: 36px; }
  .lang-seg { height: 32px; }
  .lang-seg button { padding: 0 8px; font-size: 12px; }
  .page { padding: calc(var(--nav-h) + 24px) 12px 64px; }
  .section { margin-bottom: 64px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid.dense { grid-template-columns: 1fr 1fr; }
  .tool-card { padding: 12px; }
  .bili-card { padding: 16px; }
  .cursor-glow { display: none; } /* no pointer glow on touch */
}

@media (max-width: 400px) {
  .grid { grid-template-columns: 1fr; }
}

/* ---------- 15. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .cursor-glow,
  #bg-canvas { display: none; }
  .bg-base {
    background: var(--bg);
  }
  .hero-title .flip-letter { transform: none !important; }
}

/* JS sets this when user picks low/reduced/off motion in settings */
[data-motion="low"] .cursor-glow,
[data-motion="low"] #bg-canvas,
[data-motion="reduced"] .cursor-glow,
[data-motion="reduced"] #bg-canvas,
[data-motion="off"] .cursor-glow,
[data-motion="off"] #bg-canvas { display: none; }
[data-motion="low"] .bg-base,
[data-motion="reduced"] .bg-base,
[data-motion="off"] .bg-base { background: var(--bg); }

/* ---------- 16. Nav links (Fluid Pill Ready) ---------- */
.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.nav-active-pill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: 999px;
  background: var(--primary);
  z-index: 0;
  pointer-events: none;
  will-change: transform, width;
}
.nav-links a {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  will-change: transform;
}
.nav a.is-active,
.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: transparent; /* 背景交由底层的 nav-active-pill 负责 */
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-active-pill { display: none; } /* 移动端折叠菜单暂不启用胶囊 */
  .nav-links a.is-active, .nav-links a[aria-current="page"] { background: var(--primary); }
}

/* ---------- 17. Icon chip surface (brand-color SVGs stay visible) ---------- */
.tool-icon {
  background: rgba(255, 255, 255, .92);
  /* 图标底色恒为浅色，currentColor 也必须恒为深色：
     否则深色主题下 stroke="currentColor" 的品牌 SVG 会变成浅色压浅底（对比度 1.09:1）。
     沿用 .icon-letter 的同一个色值，不引入新颜色。 */
  color: #0B1220;
  overflow: hidden;
}
[data-theme="dark"] .tool-icon {
  background: rgba(240, 240, 245, .94);
}
/* 首字母占位图标：无官方 SVG 时使用。
   色相按名称首字母分 8 档（icons.js 输出 .tone-N），渐变一律为高明度浅色 + 深色字，
   白字压浅渐变的老问题被消除；浅色/深色主题下文字与底色对比度均 >= 4.5:1。
   图标自身带背景色，因此不随主题变化，也不需要任何行内 style。 */
.icon-letter {
  --icon-a: hsl(258 78% 78%);
  --icon-b: hsl(238 70% 72%);
  width: 100%;
  height: 100%;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--icon-a), var(--icon-b));
  color: #0B1220;
  font-weight: 800;
  font-size: 1.2em;
  box-shadow: inset 0 0 0 1px rgba(11, 18, 32, .10);
}
.icon-letter.tone-0 { --icon-a: hsl(4 78% 74%);   --icon-b: hsl(340 70% 70%); }
.icon-letter.tone-1 { --icon-a: hsl(32 82% 74%);  --icon-b: hsl(12 74% 70%); }
.icon-letter.tone-2 { --icon-a: hsl(88 62% 72%);  --icon-b: hsl(68 66% 68%); }
.icon-letter.tone-3 { --icon-a: hsl(152 58% 72%); --icon-b: hsl(132 54% 68%); }
.icon-letter.tone-4 { --icon-a: hsl(184 62% 72%); --icon-b: hsl(164 56% 68%); }
.icon-letter.tone-5 { --icon-a: hsl(212 82% 76%); --icon-b: hsl(192 70% 70%); }
.icon-letter.tone-6 { --icon-a: hsl(258 78% 78%); --icon-b: hsl(238 70% 72%); }
.icon-letter.tone-7 { --icon-a: hsl(308 68% 76%); --icon-b: hsl(288 62% 72%); }

/* ---------- 18. About / misc sections ---------- */
.settings-card { padding: 8px 24px; max-width: 640px; }
.about-card { padding: 32px; max-width: 720px; }
.about-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.about-facts .bili-tag { font-size: 13px; padding: 8px 12px; }
.about-p { font-size: 14px; color: var(--text-2); line-height: 1.8; margin-top: 12px; }

.ask-card { padding: 32px; max-width: 720px; min-height: 220px; }

.footer {
  text-align: center;
  padding: 32px 16px 48px;
  font-size: 13px;
  color: var(--text-3);
}
.footer-social { display: block; margin-top: 8px; color: var(--text-2); }

/* hero scroll hint */
.scroll-hint {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: .06em;
  animation: none; /* JS spring bobbing instead */
  will-change: transform;
}

/* home quick links row */
.quick-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- 19. Float dock (back-to-top) ---------- */
.float-dock {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dock-btn { width: 46px; height: 46px; }
.dock-btn svg { width: 21px; height: 21px; fill: currentColor; }
#backtop-btn { opacity: 0; pointer-events: none; } /* JS spring shows it */
@media (max-width: 640px) {
  .float-dock { right: 12px; bottom: 16px; }
  .dock-btn { width: 42px; height: 42px; }
}

/* ---------- 21. 游戏选择页 ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.game-card {
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.game-emoji { font-size: 44px; line-height: 1; }
.game-best { font-size: 13px; color: var(--text-2); }
.game-best b {
  font-size: 18px;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.game-card .btn { margin-top: 4px; }
@media (max-width: 640px) {
  .games-grid { grid-template-columns: 1fr; gap: 12px; }
  .game-card { padding: 24px 16px; }
}

/* ---------- 22. 设置页左侧全屏 ---------- */
#page-settings .section {
  width: 50vw;
  min-height: calc(100vh - var(--nav-h) - 60px);
  min-height: calc(100dvh - var(--nav-h) - 60px);
  margin: 0 auto 32px 0;
  padding: 32px 32px 64px;
}
#page-settings .settings-card { padding: 4px 24px; }
@media (max-width: 1024px) {
  #page-settings .section { width: min(680px, 92vw); margin: 0 auto 32px; padding: 24px 0 32px; }
}
@media (max-width: 640px) {
  #page-settings .section { width: 100vw; padding: 16px 16px 32px; }
  #page-settings .settings-card { padding: 4px 16px; }
}
/* ---------- 24. 反馈评论区 ---------- */
.fb-input {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(120, 120, 128, .10);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.6;
}
.fb-input:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.fb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 4px;
}
.fb-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.fb-item {
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(120, 120, 128, .08);
  border: 1px solid var(--glass-border);
}
.fb-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.fb-name { font-size: 13px; font-weight: 700; }
.fb-item.golden .fb-name {
  background: linear-gradient(120deg, #f7b733, #ffd166);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* 金色昵称权益：霓虹头像框（静态霓虹光晕，无 CSS transition） */
.fb-avatar {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 0 0 2px rgba(247, 183, 51, .65), 0 0 10px rgba(247, 183, 51, .55);
}
.fb-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .14);
  color: var(--primary);
  font-weight: 700;
}
.fb-badge.gold { background: rgba(247, 183, 51, .2); color: #c98a12; }
.fb-date { font-size: 11px; color: var(--text-3); margin-left: auto; }
.fb-text { font-size: 13px; line-height: 1.6; color: var(--text); word-break: break-word; }
/* 字数实时校验提示：接近上限变橙，达到上限变红（纯状态色，无动画） */
#fb-count.warn { color: #e08a00; }
#fb-count.over { color: #e0453a; font-weight: 700; }

/* VIP 金色外观（仅视觉） */
[data-vip="on"] .profile-card,
[data-vip="on"] .game-card {
  box-shadow: 0 0 0 2px rgba(247, 183, 51, .55), var(--shadow-3);
}

/* ---------- 25. 主题扩展包配色选择器（全部免费自由切换） ---------- */
.palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.palette-swatch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-tint);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow: var(--shadow-3);
  font-size: 13px;
  font-weight: 600;
  will-change: transform;
}
.palette-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.palette-swatch.is-active {
  box-shadow: 0 0 0 2px var(--primary), var(--shadow-3);
}

/* ---------- 27. 反馈区管理员 ---------- */
.fb-bar-right { display: flex; gap: 8px; align-items: center; }
.fb-admin-bar { display: flex; gap: 8px; margin-top: 8px; }
.fb-del { color: #e0453a; }
.fb-item.is-pinned {
  box-shadow: 0 0 0 2px rgba(247, 183, 51, .5);
  background: rgba(247, 183, 51, .07);
}

/* ---------- 28. 移动端折叠导航 / 流体排版 / 触控区域 ----------
   doesntbreak：320px 起不破版、触控 >=44x44、输入框 16px、dvh、宽内容自带滚动
   responsive-patterns：内容驱动断点（<=768 折叠 / >768 展开）、clamp() 字号阶梯
   注意：.hero-title / .section-title / .hero-sub 原本已是 clamp() 流体值且量级更贴合，
        这里只补通用 h1/h2/body/p 的流体基线，不用小号 clamp 覆盖既有组件类。 */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
body { font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem); }
p { font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem); }
.section-sub { font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem); }

/* 汉堡图标：三条线，纯 CSS，不引入新图标库 */
.nav-toggle { display: none; }
.nav-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-bars::before,
.nav-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-bars::before { top: -6px; }
.nav-bars::after { top: 6px; }
.nav-lang { display: none; }

@media (max-width: 768px) {
  /* 性能：降低玻璃层 blur（只改令牌值，.glass-* 的 backdrop-filter 声明保留） */
  :root { --glass-blur: 6px; --glass-blur-deep: 10px; }

  /* 顶部条：品牌 + 三个 44px 图标按钮，语言切换移进折叠菜单 */
  .nav { padding: 0 6px 0 12px; }
  .nav-brand { font-size: 13px; }
  .nav-right { gap: 4px; }
  .nav-right .lang-seg { display: none; }
  .nav-toggle { display: inline-flex; }
  .icon-btn { width: 44px; height: 44px; }
  .dock-btn { width: 44px; height: 44px; }

  /* 折叠菜单：绝对定位在导航下方，展开时才可见 */
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 8px;
    border-radius: var(--radius-m);
    /* 不透明底色 + 玻璃高光叠加：展开时下方首页文字不会透上来，菜单文字始终可读 */
    background: linear-gradient(var(--glass-tint-deep), var(--glass-tint-deep)), var(--bg-base);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-3);
    -webkit-backdrop-filter: blur(var(--glass-blur-deep)) saturate(var(--glass-sat-deep));
    backdrop-filter: blur(var(--glass-blur-deep)) saturate(var(--glass-sat-deep));
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 16px; font-size: 15px; }
  .nav-lang {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--glass-border);
  }
  .nav-lang button {
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
  }
  .nav-lang button[aria-pressed="true"] { background: var(--primary); color: #fff; }

  /* 触控目标：全部 >= 44x44，相邻目标靠 gap 保持 8px 间距 */
  .btn, .btn-sm { min-height: 44px; }
  .chip { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .seg button { min-height: 44px; }
  .toggle::after { content: ""; position: absolute; inset: -7px -3px; }
  .tool-actions .btn { min-height: 44px; }

  /* 输入框 16px：避免 iOS Safari 聚焦时自动缩放 */
  input, textarea, select { font-size: 16px; }
  .search-box input, .fb-input { font-size: 16px; }

  /* 小屏无横向滚动：修真正超宽元素，而不是只遮症状 */
  html, body { max-width: 100%; }
  body { overflow-x: clip; }
  .page { padding-left: 12px; padding-right: 12px; }
  #page-settings .section { width: 100%; }
  /* 单列：工具卡片与游戏卡片一律一列，不再挤成两列 */
  .grid, .grid.dense, .hot-grid, .games-grid { grid-template-columns: 1fr; }
  .tool-card, .game-card, .bili-card, .about-card, .ask-card, .settings-card,
  .tool-card *, .settings-row > div, .bili-card-head > div { min-width: 0; }

  /* 工具卡片内部三行结构：
     ① 首字母图标（左）+ 工具名称（右），垂直居中
     ② 描述最多两行（-webkit-line-clamp: 2）
     ③ 「官方下载」「详情」两个按钮等宽平铺，文字居中，触控 >= 44x44 */
  .tool-card { gap: 12px; }
  .tool-card-top { align-items: center; }
  .tool-card-top > div:nth-child(2) { flex: 1; min-width: 0; }
  .tool-icon { width: 48px; height: 48px; }
  .tool-name { font-size: 16px; }
  .tool-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .todo-tag-sm { display: none; }        /* 右上角「图标待换官方」小屏隐藏 */
  .tool-use {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  .tool-stats { display: none; }         /* 数据口径仍在详情里，卡片保持三行 */
  .tool-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
  }
  .tool-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    text-align: center;
    min-height: 44px;
  }
  .tool-name, .tool-use, .section-title, .section-sub, .hero-sub,
  .about-p, .settings-hint, .footer, .chip { overflow-wrap: anywhere; }
  .modal-backdrop { padding: 12px; }
  .modal { max-width: 100%; max-height: 84dvh; padding: 20px; }
  pre, table { max-width: 100%; overflow-x: auto; }

  /* 移动端隐藏光标光晕；降低名片 blur */
  .cursor-glow { display: none; }
  .profile-card {
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    backdrop-filter: blur(10px) saturate(160%);
  }
}

/* 极窄屏（320 / 375）：工具区与游戏区一律单列，避免卡片内容撑破 */
@media (max-width: 400px) {
  .grid, .grid.dense, .hot-grid, .games-grid { grid-template-columns: 1fr; }
  .bili-actions, .quick-row { gap: 8px; }
  .btn { padding: 10px 16px; }
  /* 覆盖旧 640px 断点里的 42px，保证 320/375 仍是 44x44 */
  .dock-btn { width: 44px; height: 44px; }
  #page-settings .section { width: 100%; }
  .nav-brand { max-width: 40%; overflow-wrap: anywhere; }
}

/* ---------- 29. 推荐页：检索框 / 筛选标签 / 多结果卡片 ---------- */
.ask-card { max-width: 1080px; min-height: 0; }
.ask-search { margin-bottom: 16px; }
.ask-filters { margin-bottom: 12px; }
.ask-hint { font-size: 13px; color: var(--text-2); margin-bottom: 16px; }
.ask-results { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
@media (max-width: 768px) {
  .ask-card { padding: 20px; }
  .ask-results { grid-template-columns: 1fr; }
}

/* ---------- 30. 统一排版工具类（替代所有静态行内 style） ----------
   语义类描述「这是什么」，间距类只描述阶值；全部落在 styles.css，HTML 不再带行内样式。 */
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

.bili-panel-narrow { max-width: 560px; margin: 0 auto; }
.about-slot-card { max-width: 720px; }
.settings-row-col { flex-direction: column; align-items: stretch; gap: 4px; }
.section-title-sm { font-size: 22px; }
.tool-name-md { font-size: 16px; }
.tool-name-lg { font-size: 18px; }
.tool-icon-lg { width: 56px; height: 56px; }
.todo-tag-sm { font-size: 11px; padding: 4px 8px; }

/* ---------- 31. 企业级空间 Bento 舞台 / 命令中枢 / 装机清单 ---------- */
.cmd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.cmd-trigger kbd {
  font-family: inherit;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(120, 120, 128, .14);
  color: var(--text-2);
}

/* 首屏非对称 Bento 矩阵 */
.hero-bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 16px;
}
.bento-main {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}
.bento-main .hero-title {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -.03em;
  line-height: 1.06;
}
.bento-main .hero-sub {
  max-width: 580px;
}
.bento-main .quick-row {
  justify-content: flex-start;
}
.bento-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bento-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(37, 99, 235, .12);
  color: var(--primary);
  border: 1px solid var(--glass-border);
}
.bento-pill.muted {
  background: rgba(120, 120, 128, .10);
  color: var(--text-2);
}
.bento-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

/* 首屏聚光灯命令唤醒条 */
.hero-cmd-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  text-align: left;
  color: var(--text-2);
  font-size: 14px;
}
.hero-cmd-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-cmd-bar kbd {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  color: var(--text-2);
}

/* 首屏遥测指标栏 */
.bento-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}
.metric-val {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.metric-lbl { font-size: 12px; color: var(--text-2); margin-top: 4px; }

/* 右侧焦点软件舱 */
.bento-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bento-spot-card {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.spot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.spot-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bento-mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bento-mini {
  padding: 16px 24px;
  cursor: pointer;
}
.mini-title { font-size: 16px; font-weight: 700; }
.mini-sub { font-size: 12px; color: var(--text-2); margin-top: 4px; }

/* 底部装机工作流矩阵 */
.bento-packs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.bento-packs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pack-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}
.pack-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pack-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(120, 120, 128, .12);
  color: var(--text-2);
}

/* 卡片装机单星标按钮 */
.btn-kit-toggle.is-in-kit {
  background: rgba(37, 99, 235, .16);
  color: var(--primary);
  border-color: var(--primary);
}

/* 浮动坞角标与装机单抽屉 */
.kit-dock-btn { position: relative; }
.kit-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.kit-badge[hidden] { display: none; }
.kit-modal { width: min(680px, 100%); }
.kit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}
.kit-list { display: flex; flex-direction: column; gap: 12px; }
.kit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(120, 120, 128, .08);
  border: 1px solid var(--glass-border);
}
.kit-item-left { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* Ctrl+K 全局命令面板 */
.cmd-backdrop { align-items: flex-start; padding-top: 12vh; }
.cmd-modal {
  width: min(640px, 100%);
  padding: 16px;
  overflow: hidden;
}
.cmd-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(120, 120, 128, .10);
  border: 1px solid var(--glass-border);
}
.cmd-input-wrap input {
  flex: 1;
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  font-size: 16px;
  color: var(--text);
}
.cmd-input-wrap kbd {
  font-family: inherit;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  color: var(--text-3);
}
.cmd-list {
  max-height: 52vh;
  overflow-y: auto;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
}
.cmd-item.is-sel {
  background: var(--primary);
  color: #fff;
}
.cmd-item.is-sel .tool-meta,
.cmd-item.is-sel .cmd-item-tag { color: rgba(255, 255, 255, .82); }
.cmd-item-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cmd-item-ico { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.cmd-item-tag { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.cmd-foot {
  display: flex;
  gap: 16px;
  padding: 12px 8px 4px;
  margin-top: 8px;
  border-top: 1px solid var(--glass-border);
  font-size: 12px;
  color: var(--text-3);
}
.cmd-foot kbd {
  font-family: inherit;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
}

/* 深度评测面板样式 */
.tool-details-box {
  background: rgba(120, 120, 128, .08);
  border: 1px solid var(--glass-border);
  padding: 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .hero-bento { grid-template-columns: 1fr; }
  .bento-packs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .cmd-trigger { display: none; }
  .bento-main { padding: 24px 16px; }
  .bento-packs-grid { grid-template-columns: 1fr; }
  .bento-metrics { gap: 8px; }
  .metric-val { font-size: 22px; }
}

/* ---------- 32. 浅色清透液态玻璃弹窗修复 & B站全宽 Bento 矩阵 ---------- */
/* 浅色模式下：遮罩改用清透乳白雾化，弹窗本体用高纯度亮白冰晶玻璃，彻底告别黑灰脏感 */
:root .modal-backdrop {
  background: rgba(244, 245, 247, .58);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
}
:root .modal,
:root .cmd-modal,
:root .kit-modal {
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow: 0 24px 64px -16px rgba(15, 23, 42, .14),
    0 4px 16px -4px rgba(15, 23, 42, .06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}
:root .cmd-input-wrap,
:root .kit-item,
:root .tool-details-box {
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(15, 23, 42, .08);
}
:root .cmd-item:hover:not(.is-sel) {
  background: rgba(37, 99, 235, .08);
}
/* 深色模式保持深邃曜石玻璃 */
[data-theme="dark"] .modal-backdrop {
  background: rgba(6, 10, 18, .62);
}
[data-theme="dark"] .modal,
[data-theme="dark"] .cmd-modal,
[data-theme="dark"] .kit-modal {
  background: rgba(22, 27, 36, .84);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 64px -16px rgba(0, 0, 0, .72),
    inset 0 1px 0 rgba(255, 255, 255, .14);
}
/* B站全宽创作者空间 Bento 矩阵 */
.bili-hub-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.bili-hub-head .section-sub { margin-bottom: 0; }
.bili-hub-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.bili-hero-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.bili-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.bili-avatar-xl {
  width: 72px;
  height: 72px;
  font-size: 32px;
}
.bili-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.bili-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .42);
  border: 1px solid var(--glass-border);
}
[data-theme="dark"] .bili-stats-bar {
  background: rgba(255, 255, 255, .05);
}
.bili-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}
.bili-stat-lbl {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
}
.bili-gear-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}
.bili-columns {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bili-col-card {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}
.bili-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
@media (max-width: 1024px) {
  .bili-hub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bili-hero-card { padding: 24px 16px; }
  .bili-col-card { padding: 16px; }
}

/* ---------- 33. 旗舰级 Bento 视觉质感增强（镜面流光 / 极光内衬 / 路线图） ---------- */
/* 核心大卡片顶部 1px 镜面高光流光带 + 细腻多层景深 */
.bento-main,
.bento-spot-card,
.bili-hero-card,
.bili-col-card,
.pack-card,
.about-card {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 20px 50px -16px rgba(15, 23, 42, .10),
    0 2px 8px -2px rgba(15, 23, 42, .04),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 0 0 1px rgba(255, 255, 255, .45);
}
[data-theme="dark"] .bento-main,
[data-theme="dark"] .bento-spot-card,
[data-theme="dark"] .bili-hero-card,
[data-theme="dark"] .bili-col-card,
[data-theme="dark"] .pack-card,
[data-theme="dark"] .about-card {
  box-shadow:
    0 24px 60px -16px rgba(0, 0, 0, .65),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .06);
}

/* 卡片角落柔和极光光晕内衬 */
.bili-card-glow,
.bento-main::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.bili-hero-card > *,
.bento-main > * {
  position: relative;
  z-index: 1;
}

/* 实时呼吸状态灯 */
.live-dot {
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
}

/* B站未来企划路线图 (Roadmap) */
.bili-roadmap {
  padding: 16px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .52);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
[data-theme="dark"] .bili-roadmap {
  background: rgba(255, 255, 255, .04);
}
.roadmap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.roadmap-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--text-2);
}
.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.roadmap-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 6px;
  flex: none;
  box-shadow: 0 0 0 4px var(--glow-1);
}
.roadmap-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.roadmap-desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  margin-top: 4px;
}

/* 右侧频道图标徽章与角标 */
.bili-col-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--glow-1);
  color: var(--primary);
  border: 1px solid var(--glass-border);
  flex: none;
}
.bili-arrow {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-3);
}

/* ---------- 34. 修复 B站卡片散架 / 深色详情框配色 / 手机端大卡片专项适配 ---------- */
/* 1. 修复 B站左右卡片被 space-between 强行拉开导致的顶部留白与文字散架 */
.bili-hero-card {
  justify-content: flex-start;
  gap: 20px;
}
.bili-col-card {
  justify-content: flex-start;
  gap: 8px;
}
.bili-gear-row {
  margin-top: auto;
}

/* 2. 修复深色模式下详情评测框 (.tool-details-box)、输入框与清单项变成刺眼亮灰色的问题 */
[data-theme="dark"] .cmd-input-wrap,
[data-theme="dark"] .kit-item,
[data-theme="dark"] .tool-details-box {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  color: var(--text);
}
[data-theme="dark"] .cmd-item:hover:not(.is-sel) {
  background: rgba(255, 255, 255, .08);
}

/* 3. 手机端（<= 768px）所有大卡片（首页 Bento / B站主卡 / 关于卡 / 装机包 / 模态框）紧凑友好适配 */
@media (max-width: 768px) {
  .hero-bento {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 8px;
  }
  .bento-main,
  .bento-spot-card,
  .bili-hero-card,
  .bili-col-card,
  .pack-card,
  .about-card,
  .ask-card {
    padding: 16px;
    border-radius: 18px;
    gap: 16px;
  }
  .bento-main .hero-title {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.15;
  }
  .bento-main .hero-sub,
  .bili-desc,
  .about-p {
    font-size: 13px;
    line-height: 1.6;
  }
  .hero-cmd-bar {
    padding: 10px 12px;
    font-size: 13px;
  }
  .hero-cmd-bar kbd { display: none; }
  .bento-main .quick-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .bento-main .quick-row .btn {
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
  }
  .bento-metrics,
  .bili-stats-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 8px;
    text-align: center;
  }
  .metric-val,
  .bili-stat-num {
    font-size: 16px;
  }
  .metric-lbl,
  .bili-stat-lbl {
    font-size: 11px;
  }
  .bento-mini-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .bento-mini {
    padding: 12px 16px;
  }
  .mini-title { font-size: 14px; }
  .mini-sub { font-size: 11px; }
  .bili-hub-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .bili-hub-head .bili-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }
  .bili-hub-head .bili-actions .btn {
    padding: 8px 8px;
    font-size: 12px;
  }
  .bili-avatar-xl {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
  .modal {
    padding: 16px;
    border-radius: 18px;
  }
  .tool-details-box {
    padding: 12px;
    font-size: 12px;
  }
}

/* ---------- 35. 半虚化大图标水印 / 按钮防换行 / 随身工具台 / 手机端轻触感卡片 ---------- */

/* 1. 焦点镇站神器卡片：右上角半虚化放大背景水印图标 (Ambient Watermark) */
.bento-spot-card {
  position: relative;
  overflow: hidden;
}
.spot-watermark {
  position: absolute;
  top: 12px;
  right: -18px;
  width: 185px;
  height: 185px;
  opacity: 0.11;
  filter: blur(2.5px) saturate(140%);
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="dark"] .spot-watermark {
  opacity: 0.15;
}
.spot-watermark svg,
.spot-watermark img,
.spot-watermark .icon-letter {
  width: 100% !important;
  height: 100% !important;
  border-radius: 36px;
  font-size: 96px;
}
.bento-spot-card > .spot-head,
.bento-spot-card > .spot-body {
  position: relative;
  z-index: 1;
}

/* 2. 彻底禁止卡片按钮文字折成两行（修复推荐页与软件库「官方下/载」「已加/入」问题） */
.tool-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.tool-actions .btn {
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 12px;
  flex-shrink: 0;
}
.ask-results {
  grid-template-columns: repeat(auto-fill, minmax(276px, 1fr));
}

/* 3. 随身实用工作台 (Instant Web Studio) */
.util-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.util-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}
.util-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.util-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.timer-display {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.util-presets {
  margin-bottom: 0;
}
.util-presets .chip {
  padding: 4px 12px;
  font-size: 12px;
}
.clock-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.clock-box {
  padding: 12px;
  border-radius: 14px;
  background: rgba(120, 120, 128, .08);
  border: 1px solid var(--glass-border);
}
.clock-city {
  font-size: 12px;
  color: var(--text-2);
}
.clock-time {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.calc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(120, 120, 128, .08);
  border: 1px solid var(--glass-border);
}
.calc-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  font-size: 13px;
  color: var(--text);
}
.calc-out {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}
.util-textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(120, 120, 128, .08);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
}
.util-textarea:focus {
  outline: 2px solid var(--primary);
}

/* 手机端智能过滤横幅 */
.mobile-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
}
.mobile-filter-banner[hidden] { display: none; }

@media (max-width: 1024px) {
  .util-bento-grid { grid-template-columns: 1fr; }
}

/* 4. 手机端（<= 768px）专属舒适轻触感卡片（关闭过重形变，顺滑滑动，紧凑按钮） */
@media (max-width: 768px) {
  .tool-card {
    padding: 14px 16px;
    border-radius: 16px;
    gap: 10px;
    transform: none !important;
    box-shadow: 0 4px 16px -4px rgba(0, 0, 0, .08);
  }
  .tool-card-top {
    gap: 12px;
  }
  .tool-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
  }
  .tool-actions {
    gap: 8px;
  }
  .tool-actions .btn {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 12px;
    flex: 1 1 0;
  }
  .util-card {
    padding: 16px;
  }
  .timer-display {
    font-size: 36px;
  }
}

/* ---------- 36. 完品级 3D 翻页时钟 & 番茄分钟分解工作站 ---------- */
/* 翻页卡片基础几何：所有翻页动作由 Spring 写 transform，无任何 CSS transition */
.flip-3d-rig {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 26px);
  transform-style: preserve-3d;
}
.flip-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.flip-card {
  position: relative;
  width: clamp(110px, 15vw, 200px);
  height: clamp(150px, 21vw, 280px);
  border-radius: 22px;
  transform-style: preserve-3d;
  box-shadow: var(--fc-shadow);
}
.flip-half {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  border: 1px solid var(--fc-border);
}
.flip-top {
  top: 0;
  border-radius: 22px 22px 0 0;
  background: var(--fc-card-top);
}
.flip-bottom {
  bottom: 0;
  border-radius: 0 0 22px 22px;
  background: var(--fc-card-bot);
}
.flip-num {
  position: absolute;
  left: 0;
  width: 100%;
  height: 200%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--fc-text);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.flip-top .flip-num,
.flip-leaf-front .flip-num { top: 0; }
.flip-bottom .flip-num,
.flip-leaf-back .flip-num { bottom: 0; }
.flip-leaf {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 50%;
  transform-origin: bottom center;
  transform-style: preserve-3d;
  z-index: 3;
  pointer-events: none;
}
.flip-leaf-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  border: 1px solid var(--fc-border);
  border-radius: 22px 22px 0 0;
}
.flip-leaf-front { background: var(--fc-card-top); }
.flip-leaf-back {
  background: var(--fc-card-bot);
  border-radius: 0 0 22px 22px;
  transform: rotateX(180deg);
}
.flip-hinge {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: var(--fc-hinge);
  z-index: 4;
}
.flip-sep {
  align-self: center;
  transform: translateY(-14px);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 800;
  color: var(--fc-muted);
}
.flip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--fc-muted);
}

.flip-stage {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  perspective: 1400px;
  overflow: hidden;
  user-select: none;
}
.flip-stage.is-open { display: flex; }

/* 自定义背景图底层与护眼暗化层 */
.flip-bg-img {
  position: absolute;
  inset: -12px;
  background-size: cover;
  background-position: center;
  z-index: 0;
  pointer-events: none;
}
.flip-bg-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: transparent;
}
.flip-stage.has-custom-bg .flip-bg-mask {
  background: rgba(8, 12, 20, .48);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* 4 套精选内置外观主题：1.纯黑(dark) / 2.纯白(light) / 3.深海极光(ocean) / 4.暖阳焦糖(warm) */
.flip-stage[data-clock-theme="dark"] {
  --fc-bg-grad: radial-gradient(circle at 50% 35%, #131926 0%, #07090E 78%);
  --fc-card-top: linear-gradient(180deg, #1E2433 0%, #151A26 100%);
  --fc-card-bot: linear-gradient(180deg, #121722 0%, #1B2130 100%);
  --fc-text: #F8FAFC;
  --fc-muted: rgba(248, 250, 252, .52);
  --fc-border: rgba(255, 255, 255, .14);
  --fc-hinge: rgba(0, 0, 0, .82);
  --fc-accent: #3B82F6;
  --fc-shadow: 0 36px 80px -16px rgba(0, 0, 0, .85), 0 12px 28px -8px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.flip-stage[data-clock-theme="light"] {
  --fc-bg-grad: radial-gradient(circle at 50% 35%, #FFFFFF 0%, #E5EAF2 82%);
  --fc-card-top: linear-gradient(180deg, #FFFFFF 0%, #F4F6FA 100%);
  --fc-card-bot: linear-gradient(180deg, #EDEFF5 0%, #FFFFFF 100%);
  --fc-text: #0F172A;
  --fc-muted: rgba(15, 23, 42, .52);
  --fc-border: rgba(15, 23, 42, .10);
  --fc-hinge: rgba(15, 23, 42, .16);
  --fc-accent: #2563EB;
  --fc-shadow: 0 32px 72px -16px rgba(15, 23, 42, .16), 0 10px 24px -6px rgba(15, 23, 42, .08), inset 0 2px 0 rgba(255, 255, 255, 1);
}
.flip-stage[data-clock-theme="ocean"] {
  --fc-bg-grad: radial-gradient(circle at 30% 25%, #0F3A4A 0%, #07131E 80%);
  --fc-card-top: linear-gradient(180deg, rgba(22, 62, 78, .88) 0%, rgba(14, 42, 56, .92) 100%);
  --fc-card-bot: linear-gradient(180deg, rgba(12, 36, 48, .92) 0%, rgba(18, 52, 68, .88) 100%);
  --fc-text: #ECFEFF;
  --fc-muted: rgba(207, 250, 254, .56);
  --fc-border: rgba(103, 232, 249, .22);
  --fc-hinge: rgba(4, 18, 26, .85);
  --fc-accent: #10B981;
  --fc-shadow: 0 36px 80px -16px rgba(0, 0, 0, .82), inset 0 1px 0 rgba(165, 243, 252, .28);
}
.flip-stage[data-clock-theme="warm"] {
  --fc-bg-grad: radial-gradient(circle at 65% 28%, #2E1F14 0%, #110C08 82%);
  --fc-card-top: linear-gradient(180deg, #352519 0%, #261A11 100%);
  --fc-card-bot: linear-gradient(180deg, #21160E 0%, #2E2015 100%);
  --fc-text: #FEF3C7;
  --fc-muted: rgba(254, 243, 199, .52);
  --fc-border: rgba(251, 191, 36, .18);
  --fc-hinge: rgba(10, 6, 3, .86);
  --fc-accent: #F59E0B;
  --fc-shadow: 0 36px 80px -16px rgba(0, 0, 0, .86), inset 0 1px 0 rgba(253, 230, 138, .24);
}

.flip-stage { background: var(--fc-bg-grad); color: var(--fc-text); }

/* 卡片几何造型自定义：圆润(classic) / 硬朗直角(sharp) / 透明玻璃(glass) */
.flip-stage[data-clock-style="sharp"] .flip-card,
.flip-stage[data-clock-style="sharp"] .flip-top,
.flip-stage[data-clock-style="sharp"] .flip-bottom,
.flip-stage[data-clock-style="sharp"] .flip-leaf-front,
.flip-stage[data-clock-style="sharp"] .flip-leaf-back {
  border-radius: 10px;
}
.flip-stage[data-clock-style="glass"] .flip-top,
.flip-stage[data-clock-style="glass"] .flip-bottom,
.flip-stage[data-clock-style="glass"] .flip-leaf-front,
.flip-stage[data-clock-style="glass"] .flip-leaf-back {
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
.flip-stage[data-clock-theme="light"][data-clock-style="glass"] .flip-top,
.flip-stage[data-clock-theme="light"][data-clock-style="glass"] .flip-bottom {
  background: rgba(255, 255, 255, .62);
}

/* 顶部与番茄工具栏 */
.flip-toolbar,
.flip-pomo-bar,
.flip-3d-rig,
.flip-foot {
  position: relative;
  z-index: 5;
}
.flip-toolbar {
  width: min(1240px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.flip-mode-switch,
.flip-controls,
.flip-pomo-presets,
.flip-pomo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.flip-ctrl-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--fc-border);
  background: rgba(120, 120, 128, .16);
  color: var(--fc-text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.flip-ctrl-btn.is-active,
.flip-btn-accent {
  background: var(--fc-accent);
  color: #fff;
  border-color: transparent;
}
.flip-ctrl-btn[hidden],
.flip-pomo-bar[hidden],
.pomo-minute-track[hidden],
.flip-unit[hidden],
.flip-sep[hidden] {
  display: none !important;
}

.flip-pomo-bar {
  width: min(1040px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 20px;
  background: rgba(120, 120, 128, .12);
  border: 1px solid var(--fc-border);
}

/* 底部按分钟分解颗粒矩阵 (Minute Breakdown Capsules) */
.flip-foot {
  width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.pomo-minute-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 820px;
}
.pomo-min-pill {
  width: 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(120, 120, 128, .26);
  border: 1px solid var(--fc-border);
}
.pomo-min-pill.is-done {
  background: var(--fc-accent);
  box-shadow: 0 0 8px var(--fc-accent);
}
.pomo-min-pill.is-current {
  background: #10B981;
  width: 28px;
}
.flip-sub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--fc-muted);
}

/* ---------- 36.5 3D 时钟全屏沉浸态（自动隐藏控制台 + 巨型化时钟 + 自定义图片高清展示） ---------- */
.flip-stage:fullscreen,
.flip-stage:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  padding: 24px;
}

/* 当上传了自定义背景图且处于沉浸态时，减弱模糊度，让用户上传的壁纸更清晰通透 */
.flip-stage.has-custom-bg.is-immersive .flip-bg-mask {
  background: rgba(8, 12, 20, .32);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* 3 秒无操作进入沉浸态（is-immersive）：隐藏顶栏、番茄栏、底栏与鼠标指针，只留纯粹时钟 */
.flip-stage.is-immersive {
  cursor: none;
}
.flip-stage.is-immersive .flip-toolbar,
.flip-stage.is-immersive .flip-pomo-bar,
.flip-stage.is-immersive .flip-sub-row {
  opacity: 0;
  pointer-events: none;
}

/* 全屏或沉浸态下，时钟卡片与数字进一步放大，撑满整个电脑/手机视野 */
.flip-stage:fullscreen .flip-card,
.flip-stage:-webkit-full-screen .flip-card,
.flip-stage.is-immersive .flip-card {
  width: clamp(120px, 28vw, 330px);
  height: clamp(160px, 36vw, 420px);
}
.flip-stage:fullscreen .flip-num,
.flip-stage:-webkit-full-screen .flip-num,
.flip-stage.is-immersive .flip-num {
  font-size: clamp(84px, 21vw, 250px);
}

/* ---------- 37. 翻页时钟降 AI 极简重构：紧凑顶栏 + 巨型全屏居中 + 3D 开关 ---------- */
.flip-stage {
  justify-content: center;
  align-items: center;
  padding: 0;
}

/* 顶部两行合并为紧凑悬浮舱，彻底消除原本上下两行之间的大片空白 */
.flip-top-deck {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, 94vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
}
.flip-toolbar {
  width: 100%;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(120, 120, 128, .10);
  border: 1px solid var(--fc-border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.flip-pomo-bar {
  width: 100%;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(120, 120, 128, .08);
  border: 1px solid var(--fc-border);
}
.flip-ctrl-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: .01em;
}

/* 底部进度条同样悬浮在底边，不挤占中央时钟空间 */
.flip-foot {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 92vw);
  gap: 10px;
  z-index: 10;
}

/* 中央翻页卡片巨型化，真正撑满全屏视野 */
.flip-card {
  width: clamp(140px, 28vw, 360px);
  height: clamp(180px, 36vw, 440px);
  border-radius: clamp(20px, 3vw, 36px);
}
/* 番茄模式下只有两张卡片（分:秒），尺寸进一步放大 */
.flip-stage[data-clock-mode="pomo"] .flip-card {
  width: clamp(160px, 34vw, 420px);
  height: clamp(200px, 42vw, 490px);
}
.flip-num {
  font-size: clamp(96px, 21vw, 270px);
}
.flip-stage[data-clock-mode="pomo"] .flip-num {
  font-size: clamp(110px, 25vw, 310px);
}

/* 3D 关闭状态（data-clock-3d="off"）：锁定纯平面正视图，关闭透视阴影倾斜 */
.flip-stage[data-clock-3d="off"] {
  perspective: none;
}
.flip-stage[data-clock-3d="off"] .flip-3d-rig {
  transform: none !important;
}

/* 3 秒无操作沉浸态：隐藏顶部悬浮舱与底部文字 */
.flip-stage.is-immersive .flip-top-deck,
.flip-stage.is-immersive .flip-foot {
  opacity: 0;
  pointer-events: none;
}

/* 顶部纯文字入口（无图标） */
.flip-nav-clock {
  padding: 0 10px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(120, 120, 128, .10);
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

@media (max-width: 640px) and (orientation: portrait) {
  .flip-card,
  .flip-stage[data-clock-mode="pomo"] .flip-card {
    width: min(78vw, 270px);
    height: min(26vh, 200px);
  }
  .flip-num,
  .flip-stage[data-clock-mode="pomo"] .flip-num {
    font-size: min(16vh, 130px);
  }
}

/* ---------- 38. 翻页时钟「3/4 数字重叠」根治 + Fliqlo 级巨型全屏 + 工作台扩至 6 卡 ---------- */
/* 38.1 四层翻页面强制 100% 不透明：彻底禁止半透明/滤镜导致的上下数字穿透重影 */
.flip-half,
.flip-leaf-face {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  isolation: isolate;
  background-clip: padding-box;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.flip-top,
.flip-leaf-front {
  background: var(--fc-card-top) !important;
}
.flip-bottom,
.flip-leaf-back {
  background: var(--fc-card-bot) !important;
}
/* 已废弃的晶透玻璃风格：即便 localStorage 里还留着旧值也强制回落为实心卡 */
.flip-stage[data-clock-style="glass"] .flip-top,
.flip-stage[data-clock-style="glass"] .flip-bottom,
.flip-stage[data-clock-style="glass"] .flip-leaf-front,
.flip-stage[data-clock-style="glass"] .flip-leaf-back {
  background: var(--fc-card-top) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.flip-stage[data-clock-style="glass"] .flip-bottom,
.flip-stage[data-clock-style="glass"] .flip-leaf-back {
  background: var(--fc-card-bot) !important;
}

/* 38.2 翻页过程动态阴影层（纯 opacity 驱动，无任何 CSS transition） */
.flip-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}
.top-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, 0) 62%);
}
.bot-shade {
  background: linear-gradient(0deg, rgba(0, 0, 0, .30) 0%, rgba(0, 0, 0, 0) 58%);
}
.front-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .52) 100%);
}
.back-shade {
  background: linear-gradient(0deg, rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .56) 100%);
}
.flip-stage[data-clock-theme="light"] .top-shade,
.flip-stage[data-clock-theme="light"] .bot-shade {
  background: linear-gradient(180deg, rgba(15, 23, 42, .16) 0%, rgba(15, 23, 42, 0) 60%);
}
.flip-stage[data-clock-theme="light"] .bot-shade {
  background: linear-gradient(0deg, rgba(15, 23, 42, .14) 0%, rgba(15, 23, 42, 0) 58%);
}

/* 38.3 中缝铰链加粗为 4px，翻页时上下两半的物理断裂感更真实 */
.flip-hinge {
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  z-index: 6;
}

/* 38.4 巨型化：无论是否全屏，中央时钟都撑满视野（Fliqlo 量级）
   宽度同时受视口宽（27vw）与视口高（46vh）约束，再用 aspect-ratio 反推高度，
   保证任何比例屏幕上卡片都保持 5:6 的机械卡比例，不会被拉成瘦长条。 */
.flip-card,
.flip-stage:fullscreen .flip-card,
.flip-stage:-webkit-full-screen .flip-card,
.flip-stage.is-immersive .flip-card {
  width: min(clamp(150px, 27vw, 430px), 46vh);
  height: auto;
  aspect-ratio: 5 / 6;
  border-radius: clamp(18px, 2.4vw, 30px);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, .06) inset,
    0 30px 70px -18px rgba(0, 0, 0, .78),
    0 90px 150px -60px rgba(0, 0, 0, .62);
}
.flip-stage[data-clock-mode="pomo"] .flip-card,
.flip-stage[data-clock-mode="pomo"]:fullscreen .flip-card,
.flip-stage[data-clock-mode="pomo"]:-webkit-full-screen .flip-card,
.flip-stage[data-clock-mode="pomo"].is-immersive .flip-card {
  width: min(clamp(180px, 38vw, 540px), 62vh);
  height: auto;
  aspect-ratio: 5 / 6;
}
/* 字号 = 卡片宽度的 0.734 倍：实测两位数字宽约等于 1.2 倍字号，
   这样两位数字总宽稳定落在卡片内宽的 88%，既不溢出也不显小。 */
.flip-num,
.flip-stage:fullscreen .flip-num,
.flip-stage:-webkit-full-screen .flip-num,
.flip-stage.is-immersive .flip-num {
  font-size: min(clamp(110px, 19.8vw, 315px), 33.8vh);
  text-shadow: 0 4px 14px rgba(0, 0, 0, .22);
}
.flip-stage[data-clock-mode="pomo"] .flip-num,
.flip-stage[data-clock-mode="pomo"]:fullscreen .flip-num,
.flip-stage[data-clock-mode="pomo"].is-immersive .flip-num {
  font-size: min(clamp(120px, 26vw, 396px), 45.5vh);
}
.flip-3d-rig {
  gap: clamp(10px, 1.6vw, 26px);
}
.flip-sep {
  font-size: min(clamp(44px, 8vw, 110px), 13vh);
  transform: translateY(-18px);
}

/* 38.5 工作台扩至 6 卡：桌面 3 列 × 2 行，中屏 2 列，手机 1 列 */
.util-bento-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.util-card {
  min-width: 0;
}

/* 极简打卡月历 */
.cal-week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3, var(--text-2));
  text-align: center;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(120, 120, 128, .07);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.cal-day.is-blank {
  background: none;
  border-color: transparent;
  cursor: default;
  pointer-events: none;
}
.cal-day.is-today {
  border-color: var(--primary);
  color: var(--primary);
}
.cal-day.is-marked {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
}
.cal-day.is-marked.is-today {
  box-shadow: 0 0 0 2px rgba(120, 120, 128, .32) inset;
}

/* 重要倒数日 */
.cd-num-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.cd-days-num {
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.cd-days-unit {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
}

/* 密码生成 & 随机抽签 */
.gen-output-box {
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(120, 120, 128, .08);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .04em;
  word-break: break-all;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

@media (max-width: 1080px) {
  .util-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .util-bento-grid {
    grid-template-columns: 1fr;
  }
  .cd-days-num {
    font-size: 38px;
  }
}

/* 38.6 小屏竖屏时卡片按可用高度收缩，避免上下溢出 */
@media (max-height: 620px) and (orientation: landscape) {
  .flip-card,
  .flip-stage[data-clock-mode="pomo"] .flip-card {
    height: clamp(150px, 52vh, 320px);
  }
  .flip-num,
  .flip-stage[data-clock-mode="pomo"] .flip-num {
    font-size: clamp(80px, 19vh, 200px);
  }
}

/* 38.7 手机竖屏最终覆盖：必须在 38.4 之后，保证巨型化不撑破小屏。
   竖屏窄屏三卡并排只能做到 109px 宽，太小；改为「时:分」一行、秒单独一行居中。 */
@media (max-width: 640px) and (orientation: portrait) {
  .flip-stage[data-clock-mode="clock"] .flip-3d-rig {
    flex-wrap: wrap;
    row-gap: 10px;
    max-width: 100%;
  }
  .flip-stage[data-clock-mode="clock"] #flip-u-s {
    flex-basis: 100%;
  }
  .flip-stage[data-clock-mode="clock"] #flip-sep-2 {
    display: none;
  }

  .flip-card,
  .flip-stage:fullscreen .flip-card,
  .flip-stage.is-immersive .flip-card {
    width: min(42vw, 180px);
    height: auto;
    aspect-ratio: 5 / 6;
    border-radius: 14px;
  }
  .flip-stage[data-clock-mode="pomo"] .flip-card,
  .flip-stage[data-clock-mode="pomo"]:fullscreen .flip-card,
  .flip-stage[data-clock-mode="pomo"].is-immersive .flip-card {
    width: min(40vw, 190px);
  }
  .flip-num,
  .flip-stage:fullscreen .flip-num,
  .flip-stage.is-immersive .flip-num {
    font-size: min(30.8vw, 132px);
  }
  .flip-stage[data-clock-mode="pomo"] .flip-num,
  .flip-stage[data-clock-mode="pomo"]:fullscreen .flip-num,
  .flip-stage[data-clock-mode="pomo"].is-immersive .flip-num {
    font-size: min(29vw, 140px);
  }
  .flip-sep {
    font-size: min(9vw, 40px);
    transform: translateY(-8px);
  }
  .flip-3d-rig {
    gap: 4px;
  }
  /* 底部两段文字在窄屏改为上下两行居中，避免挤成两列错位 */
  .flip-foot {
    bottom: 14px;
  }
  .flip-sub-row {
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    letter-spacing: .02em;
    text-align: center;
    line-height: 1.4;
  }
  .flip-sub-row > span:nth-child(2) {
    display: none;
  }
}

/* ---------- 39. 双语模式（data-lang="both"）企业级上下分层排版与防劈裂修复 ---------- */

/* 39.1 严禁把完整单词（Xiaonan / Studio）从中间劈断换行 */
.hero-title,
.section-title,
.tool-name,
.pack-card .tool-name {
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* 拆字母动画的每个英文单词整体不换行，避免 Xiaona / n 这种断词 */
.hero-title .flip-word {
  display: inline-block;
  white-space: nowrap;
}
.hero-title .flip-space {
  display: inline-block;
}
.hero-title-zh {
  display: block;
}

/* 39.2 双语模式：内容区「上中下英」双层结构，层次分明不挤成一坨 */
[data-lang="both"] .i18n-zh {
  display: block;
}
[data-lang="both"] .i18n-en {
  display: block;
  font-size: 0.84em;
  font-weight: 500;
  opacity: 0.72;
  margin-top: 3px;
  line-height: 1.45;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: break-word;
}
/* 段落里的英文次级行放宽行高，长句更好读 */
[data-lang="both"] p .i18n-en,
[data-lang="both"] .bili-desc .i18n-en,
[data-lang="both"] .tool-use .i18n-en {
  margin-top: 5px;
  line-height: 1.6;
}

/* 39.3 首页大标题：中文主标题在上，英文以品牌蓝副标题排在正下方 */
.i18n-en-title {
  display: block;
  font-size: clamp(16px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.25;
  color: var(--primary);
  margin-top: 8px;
}

/* 39.4 万一紧凑控件里混进了双语 span，强制压回单行微距分隔，绝不撑破按钮 */
[data-lang="both"] button .i18n-zh,
[data-lang="both"] button .i18n-en,
[data-lang="both"] .btn .i18n-zh,
[data-lang="both"] .btn .i18n-en,
[data-lang="both"] .bento-pill .i18n-zh,
[data-lang="both"] .bento-pill .i18n-en,
[data-lang="both"] .chip .i18n-zh,
[data-lang="both"] .chip .i18n-en,
[data-lang="both"] .bili-tag .i18n-zh,
[data-lang="both"] .bili-tag .i18n-en {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  opacity: 1;
  margin-top: 0;
  line-height: inherit;
}
[data-lang="both"] button .i18n-en::before,
[data-lang="both"] .btn .i18n-en::before,
[data-lang="both"] .bento-pill .i18n-en::before,
[data-lang="both"] .chip .i18n-en::before {
  content: " · ";
}

/* 39.5 双语模式下按钮统一禁止折行，避免「官方下载 · Official download」把 + 清单挤走 */
[data-lang="both"] .tool-actions .btn,
[data-lang="both"] .bili-actions .btn,
[data-lang="both"] .quick-row .btn {
  white-space: nowrap;
}

/* 39.6 详情模态里的长英文段落保持可读行宽 */
[data-lang="both"] .tool-details-box .i18n-en {
  margin-top: 6px;
}

/* 39.7 标题类英文副行按标题层级单独收敛字号，避免大标题的英文副行喧宾夺主 */
[data-lang="both"] .section-title .i18n-en,
[data-lang="both"] .subhead .i18n-en {
  font-size: clamp(13px, 1.5vw, 19px);
  font-weight: 600;
  letter-spacing: .02em;
  opacity: .62;
  margin-top: 4px;
  line-height: 1.35;
}
[data-lang="both"] .hero-sub .i18n-en {
  font-size: clamp(12px, 1.5vw, 15px);
  opacity: .68;
  line-height: 1.65;
}
[data-lang="both"] .settings-hint .i18n-en,
[data-lang="both"] .icon-note .i18n-en {
  font-size: .92em;
  opacity: .7;
}
/* 详情框里每条建议的英文副行略收紧，保持信息密度 */
[data-lang="both"] .tool-details-box .i18n-en {
  font-size: .9em;
  opacity: .7;
  margin-top: 4px;
}

/* 39.8 兜底：万一紧凑徽章里仍混入双语 span，用中点分隔并压成单行 */
[data-lang="both"] .bili-tag .i18n-en::before,
[data-lang="both"] .pack-badge .i18n-en::before,
[data-lang="both"] .metric-lbl .i18n-en::before {
  content: " · ";
}

/* ---------- 40. 视频动态壁纸 / 可调虚化度 / 环境音景调音台 / 三卡旗舰工作台 ---------- */
.flip-stage {
  --fc-blur: 6px;
}

/* 视频壁纸层：与 .flip-bg-img 同样外扩 12px，避免虚化时边缘露出黑边 */
.flip-bg-video {
  position: absolute;
  top: -12px;
  left: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  background: transparent;
}
.flip-bg-video[hidden] {
  display: none !important;
}

/* 虚化大小由 CSS 变量 --fc-blur 动态控制（0px 高清原画 ~ 32px 深度毛玻璃） */
.flip-stage.has-custom-bg .flip-bg-mask,
.flip-stage.has-custom-bg.is-immersive .flip-bg-mask {
  background: rgba(6, 10, 18, .36);
  -webkit-backdrop-filter: blur(var(--fc-blur));
  backdrop-filter: blur(var(--fc-blur));
}

/* 顶栏虚化滑块胶囊 */
.flip-blur-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid var(--fc-border);
  background: rgba(120, 120, 128, .16);
  color: var(--fc-text);
  font-size: 12px;
  font-weight: 600;
}
.flip-blur-slider {
  width: 72px;
}
.blur-setting-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
}
.blur-setting-wrap .ui-slider {
  width: 120px;
  flex: 0 0 auto;
}
#set-blur-val {
  min-width: 38px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 精致苹果风滑块（全局复用） */
.ui-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(120, 120, 128, .22);
  outline: none;
  cursor: pointer;
}
.ui-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  cursor: pointer;
}
.ui-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  cursor: pointer;
}
.ui-slider::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(120, 120, 128, .22);
}
.ui-slider:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* 环境音景三轨混音台 */
.sound-mixer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(120, 120, 128, .07);
  border: 1px solid var(--glass-border);
}
.mixer-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 10px;
}
.mixer-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
}

/* 月历顶部导航（‹ 2026-11 › 今） */
.cal-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cal-nav-btn {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 7px;
  border: 1px solid var(--glass-border);
  background: rgba(120, 120, 128, .10);
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.cal-nav-btn:hover {
  color: var(--primary);
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3, var(--text-2));
  text-align: center;
  letter-spacing: .02em;
}

/* 月历底部内嵌倒数日条 */
.cd-inline-bar {
  display: grid;
  grid-template-columns: 1fr 104px auto;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--glass-border);
}
.cd-title-in,
.cd-date-in {
  min-width: 0;
  width: 100%;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--glass-border);
  background: rgba(120, 120, 128, .08);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  outline: none;
}
.cd-title-in:focus,
.cd-date-in:focus {
  border-color: var(--primary);
}
.cd-pill-num {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* 三卡工作台：桌面 3 列，中屏 2 列（月历跨列），手机 1 列 */
.util-bento-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1080px) {
  .util-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .util-bento-grid #util-cal-card {
    grid-column: 1 / -1;
  }
}
@media (max-width: 720px) {
  .util-bento-grid {
    grid-template-columns: 1fr;
  }
  .util-bento-grid #util-cal-card {
    grid-column: auto;
  }
  .cd-inline-bar {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }
  .cd-title-in {
    grid-column: 1 / 2;
  }
  .cd-date-in {
    grid-column: 1 / 2;
  }
  .cd-pill-num {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* 40.1 三卡等高微调：压缩月历格高度、放大时钟盒、按钮统一吸底，
     避免日历把整行撑高后，时钟卡与混音台卡中间出现大片空洞。 */
.util-card {
  justify-content: flex-start;
  gap: 14px;
  padding: 22px;
}
.util-card .bili-actions {
  margin-top: auto;
}
.cal-day {
  height: 30px;
  aspect-ratio: auto;
  font-size: 12px;
}
.cal-grid {
  gap: 4px;
}
.cal-weekdays {
  margin-bottom: 2px;
}
.clock-box {
  padding: 18px 14px;
}
.clock-time {
  font-size: 26px;
}
.mixer-row {
  padding: 3px 0;
}
.cd-inline-bar {
  margin-top: auto;
}

/* ============================================================
   41. 工作台卡头双语排版修正（第十三轮收尾）
   第十二轮的 39.4 把 .bento-pill 内双语 span 强制 inline + " · "，
   第十三轮已在 JS 放开 .util-card .bento-pill，这里必须同步放开 CSS，
   否则卡头会出现「3D 翻页时钟 & · 3D Flip Clock & / 双时区 Dual TZ」
   这种中英交错折行，并撑宽胶囊压到右侧的月份导航。
   ============================================================ */
[data-lang="both"] .util-card-head {
  flex-wrap: wrap;
  row-gap: 10px;
}
[data-lang="both"] .util-card-head .bento-pill {
  display: inline-flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  max-width: 100%;
  padding: 5px 12px;
  line-height: 1.3;
}
[data-lang="both"] .util-card-head .bento-pill .i18n-zh {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.3;
}
[data-lang="both"] .util-card-head .bento-pill .i18n-en {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.3;
  opacity: .62;
}
/* 卡头胶囊走双行结构，绝不再加 " · " 分隔符 */
[data-lang="both"] .util-card-head .bento-pill .i18n-en::before {
  content: none;
}
/* 右侧状态文字（支持图片/视频壁纸、25:00、月份）保持单行不挤 */
[data-lang="both"] .util-card-head .util-status,
[data-lang="both"] .util-card-head .cal-nav {
  flex: 0 0 auto;
}
/* 月历卡：胶囊 + 四个导航按钮同排会太挤，双语时让导航整体换到第二行靠右 */
[data-lang="both"] #util-cal-card .util-card-head {
  row-gap: 8px;
}
[data-lang="both"] #util-cal-card .cal-nav {
  margin-left: auto;
}

/* 41.1 三卡等高后，内容少的卡（时钟卡）中间会留一块死白：
   让双时区盒子吃掉剩余高度并垂直居中，视觉重心回到卡片中部 */
#util-clock-card .clock-dual {
  flex: 1 1 auto;
  align-content: center;
}
/* 「今」按钮 24px 对 12px 中文略紧，给 2px 余量避免字形贴边 */
.cal-nav-btn {
  width: 26px;
  height: 26px;
  font-size: 12.5px;
}

/* 41.2 深色主题下 .bento-pill 沿用 --primary(#2563EB) 深蓝，压在深色卡片上对比度不足，
   文字几乎看不清。深色下把胶囊文字提亮成浅蓝、底色加深一档，保持同一色相不破坏整体配色。 */
[data-theme="dark"] .bento-pill {
  color: #8CB4FF;
  background: rgba(96, 150, 255, .16);
  border-color: rgba(140, 180, 255, .20);
}
[data-theme="dark"] .bento-pill.muted {
  color: var(--text-2);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .10);
}

/* ============================================================
   42. 云端网页站 / 全球 6 国时区 / 节假日备忘日历 / B站私信反馈舱
   第十四轮新增
   ============================================================ */

/* ---------- 42.1 云端网页站（Awesome Design 卡片） ---------- */
.web-hub-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}
.web-hub-head .section-sub { margin-bottom: 0; }
.web-region-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}
.web-region-switch button {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.web-region-switch button[aria-pressed="true"] {
  background: rgba(255, 255, 255, .82);
  color: #1d1d1f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .14);
}
[data-theme="dark"] .web-region-switch button[aria-pressed="true"] {
  background: rgba(255, 255, 255, .16);
  color: var(--text);
}

.web-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.web-card {
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  border-radius: 20px;
}
.web-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.web-favicon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--glass-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
  flex: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}
[data-theme="dark"] .web-favicon {
  background: rgba(30, 41, 59, .85);
}
.web-domain {
  font-size: 11.5px;
  color: var(--text-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.web-meta {
  min-width: 0;
  flex: 1 1 auto;
}
.web-name {
  font-size: 15px;
  line-height: 1.3;
  word-break: keep-all;
}
.web-meta-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  min-width: 0;
}
.web-meta-sub .web-domain {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.web-badge {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(16, 185, 129, .14);
  color: #059669;
  white-space: nowrap;
}
[data-theme="dark"] .web-badge { color: #34D399; }
.web-badge.is-global {
  background: rgba(37, 99, 235, .14);
  color: var(--primary);
}
[data-theme="dark"] .web-badge.is-global { color: #8CB4FF; }
.web-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--glass-border);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}
[data-theme="dark"] .web-card-foot { color: #8CB4FF; }

/* ---------- 42.2 全球 6 国时区矩阵 ---------- */
.world-clock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  cursor: pointer;
}
.wclock-item {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(120, 120, 128, .07);
  border: 1px solid var(--glass-border);
  min-width: 0;
}
.wclock-item.is-primary {
  background: rgba(37, 99, 235, .07);
}
.clock-city-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.clock-city-row .clock-city {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tz-chip {
  flex: none;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(120, 120, 128, .14);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.wclock-item .clock-time {
  font-size: 19px;
  letter-spacing: -.02em;
}
.clock-time-sm {
  font-size: 15px;
  margin-top: 2px;
}
.tz-slider-row {
  display: grid;
  grid-template-columns: 58px 1fr 26px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(120, 120, 128, .07);
}
.tz-slider-row .ui-slider { width: 100%; }

/* ---------- 42.3 节假日角标 + 每日备忘 ---------- */
.cal-day { position: relative; }
.cal-day.is-selected {
  outline: 2px solid var(--primary);
  outline-offset: -1px;
  font-weight: 800;
}
.cal-day.is-holiday::before {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #F59E0B;
}
.cal-day.is-marked.is-holiday::before { background: #FDE68A; }
.cal-memo-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--glass-border);
}
.cal-memo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cal-sel-date {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-theme="dark"] .cal-sel-date { color: #8CB4FF; }
.cal-export-btn {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(120, 120, 128, .12);
  cursor: pointer;
}
.cal-export-btn:hover { color: var(--primary); }

/* ---------- 42.4 B站私信反馈舱 ---------- */
.feedback-hub {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 22px;
}
.feedback-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.feedback-head .settings-hint {
  margin-top: 6px;
  max-width: 62ch;
}
.dm-type-chips { margin-bottom: 10px; }
.dm-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.dm-input {
  padding: 11px 14px;
  font-size: 13.5px;
}
#fb-send-bili { white-space: nowrap; }

@media (max-width: 640px) {
  .dm-input-row { grid-template-columns: 1fr; }
  .feedback-hub { padding: 18px; }
  .web-region-switch { width: 100%; }
  .web-region-switch button { flex: 1 1 auto; padding: 7px 8px; font-size: 11.5px; }
}

/* 42.1b 网页卡片：标题独占宽度、徽章与域名同排、底部显示分类 */
.web-cat-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 42.5 三卡等高后，混音台内容少会在中部留白：让滑块组吃掉剩余高度并垂直居中 */
#util-timer-card .sound-mixer {
  flex: 1 1 auto;
  justify-content: center;
}

/* 42.1c 网页卡底部操作条：分类名可省略号，操作文案不换行 */
.web-open-lbl {
  flex: none;
  white-space: nowrap;
}

/* ============================================================
   43. 设置页全宽双列 Bento 仪表盘（第十五轮）
   注意：#page-settings 里有两个 .settings-card，
   第二个是「反馈评论区」，绝不能一起套网格 → 只作用于 #page-settings #set-bento。
   ============================================================ */
#page-settings .section {
  width: min(1160px, 94vw);
  max-width: 1160px;
}

#page-settings #set-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  width: 100%;
  max-width: 100%;
  padding: 24px 26px;
  border-radius: 24px;
  align-items: stretch;
}

/* :nth-child(n) 用来压过前面 #page-settings .settings-row:nth-child(7|8) 的 margin-top */
#page-settings #set-bento .settings-row:nth-child(n) {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 0;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: rgba(120, 120, 128, .06);
}
[data-theme="dark"] #page-settings #set-bento .settings-row:nth-child(n) {
  background: rgba(255, 255, 255, .045);
}

/* 配色方案横跨两列，四套色板铺满整行更大气 */
#page-settings #set-bento .settings-row:nth-child(3) {
  grid-column: 1 / -1;
}
/* 共 10 行，最后一行单独占左列会留空洞，让它横跨收尾 */
#page-settings #set-bento .settings-row:nth-child(10) {
  grid-column: 1 / -1;
}

@media (max-width: 860px) {
  #page-settings .section { width: 100%; }
  #page-settings #set-bento {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 10px;
    border-radius: 20px;
  }
  #page-settings #set-bento .settings-row:nth-child(3),
  #page-settings #set-bento .settings-row:nth-child(10) { grid-column: auto; }
  #page-settings #set-bento .settings-row:nth-child(n) { padding: 14px 16px; }
}

/* 43.1 窄屏下虚化滑块行会顶出屏幕：让滑块可收缩、数值不换行 */
@media (max-width: 860px) {
  #page-settings #set-bento .blur-setting-wrap {
    min-width: 0;
    width: 100%;
    justify-content: flex-end;
  }
  #page-settings #set-bento .blur-setting-wrap .ui-slider {
    flex: 1 1 auto;
    width: auto;
    min-width: 60px;
  }
}

/* 43.2 窄屏下「动效 / 密度」等分段控件会被压成竖排单字：
   允许整行换行，控件掉到第二行并靠右，按钮文字永不折行 */
@media (max-width: 860px) {
  #page-settings #set-bento .settings-row:nth-child(n) {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  #page-settings #set-bento .settings-row .seg {
    flex: 0 0 auto;
    margin-left: auto;
  }
  #page-settings #set-bento .seg button {
    white-space: nowrap;
  }
}

/* ---------- 45. 6 国时区单卡精准点击交互高亮（第十五轮追加，时差推演滑块已移除） ---------- */
.wclock-item {
  cursor: pointer;
  position: relative;
}
.wclock-item:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, .11);
}
.tz-slider-row { display: none !important; }

/* ============================================================
   44. 主播专享应用分享 (Creator Picks: Windows/手机双板块 + 可展开调校备注)
   ============================================================ */
.picks-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.picks-head .section-sub { margin-bottom: 0; max-width: 62ch; }
.picks-tab-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
  background: rgba(120, 120, 128, .16);
}
.picks-tab-switch button {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.picks-tab-switch button[aria-pressed="true"] {
  background: rgba(255, 255, 255, .82);
  color: #1d1d1f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .14);
}
[data-theme="dark"] .picks-tab-switch button[aria-pressed="true"] {
  background: rgba(255, 255, 255, .16);
  color: var(--text);
}
.picks-panel[hidden],
.pick-note-drawer[hidden] {
  display: none !important;
}

.pick-showcase-card {
  padding: 32px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pick-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.pick-app-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: #141820;
  border: 1px solid rgba(255, 255, 255, .14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .45);
}
.pick-meta {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pick-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.pick-noad-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  background: rgba(16, 185, 129, .15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, .32);
}
[data-theme="dark"] .pick-noad-badge { color: #34D399; }
.pick-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pick-review-body {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text);
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(120, 120, 128, .06);
  border: 1px solid var(--glass-border);
}

/* 可展开的「内存少于多少自动优化」小备注抽屉 */
.pick-note-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pick-note-toggle {
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .24);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
[data-theme="dark"] .pick-note-toggle {
  background: rgba(59, 130, 246, .12);
  color: #60A5FA;
}
.pick-note-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  flex: none;
}
.pick-note-arrow {
  margin-left: auto;
  font-size: 12px;
  flex: none;
}
.pick-note-drawer {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--glass-border);
  will-change: transform, opacity;
}
[data-theme="dark"] .pick-note-drawer {
  background: rgba(15, 23, 42, .55);
}
.pick-note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pick-note-step {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(120, 120, 128, .06);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pick-step-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}
[data-theme="dark"] .pick-step-num { color: #8CB4FF; }
.pick-note-step p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.pick-empty-card {
  padding: 48px 24px;
  border-radius: 24px;
  text-align: center;
}

@media (max-width: 860px) {
  .pick-showcase-card { padding: 20px 16px; }
  .pick-note-grid { grid-template-columns: 1fr; }
  .picks-tab-switch { width: 100%; }
  .picks-tab-switch button { flex: 1 1 auto; padding: 8px 10px; font-size: 11.5px; }
}

/* ---------- 46. 云端网页站 56 款高清图标底座与品牌色立体徽标补全 ---------- */
.web-favicon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--glass-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
  box-shadow: 0 6px 16px -4px rgba(15, 23, 42, .10), inset 0 1px 0 rgba(255, 255, 255, .9);
}
[data-theme="dark"] .web-favicon {
  background: rgba(30, 41, 59, .92);
}
.web-favicon.has-svg svg {
  width: 62%;
  height: 62%;
}
.web-favicon img {
  width: 64%;
  height: 64%;
  object-fit: contain;
  border-radius: 6px;
}
.web-fav-fallback {
  width: 100%;
  height: 100%;
  background: var(--wf-bg, var(--primary));
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  align-items: center;
  justify-content: center;
  letter-spacing: -.02em;
}
.web-title-col {
  min-width: 0;
  flex: 1;
}
.web-title-col .tool-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 46.1 图标分层兜底 + 标题不截断（覆盖 46 的 nowrap 方案） ---------- */
.web-favicon {
  position: relative;
}
.web-fav-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wf-bg, var(--primary));
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.web-favicon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  border-radius: inherit;
  background-color: inherit;
  opacity: 0;
}
.web-favicon img.is-loaded { opacity: 1; }

/* 徽章挪到域名同一行，标题独占整行宽度，长名字不再被省略号砍掉 */
.web-title-col .tool-name {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  font-size: 15px;
  line-height: 1.32;
  word-break: keep-all;
}
.web-meta-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  min-width: 0;
}
.web-meta-sub .web-domain {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.web-meta-sub .web-badge {
  margin-left: auto;
  flex: none;
}

/* 46.2 时钟卡内容垂直居中（容器已改名 world-clock-grid，旧的 clock-dual 规则失效） */
#util-clock-card .world-clock-grid {
  flex: 1 1 auto;
  align-content: center;
}

/* ---------- 46.3 窄屏修正：版本切换不裁切 + 私藏卡头部重排 ---------- */
@media (max-width: 640px) {
  .web-region-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    border-radius: 18px;
  }
  .web-region-switch button {
    flex: none;
    width: 100%;
    padding: 8px 6px;
    font-size: 11.5px;
    border-radius: 14px;
  }
  .web-region-switch button:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .pick-card-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }
  .pick-app-icon { grid-column: 1; grid-row: 1; }
  .pick-meta { grid-column: 2; grid-row: 1; min-width: 0; }
  .pick-cta-group { grid-column: 1 / -1; grid-row: 2; }
  .pick-cta-group .btn { flex: 1 1 auto; justify-content: center; }
  .pick-title-row { gap: 6px; }
}

/* ============================================================
   47. 终极精修：无闪烁图标栈 / macOS 磁吸 Dock / Nothing 点阵时钟 / 律动频谱与呼吸球
   ============================================================ */
.btn-block {
  width: 100%;
}

/* 47.1 软件库双层无闪烁图标栈（底层首字母色块 + 上层高清图加载完才显现） */
.tool-icon-stack {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}
.tool-icon-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
  border-radius: inherit;
  background: rgba(255, 255, 255, .96);
  opacity: 0;
}
[data-theme="dark"] .tool-icon-img {
  background: rgba(240, 240, 245, .96);
}
.tool-icon-img.is-loaded {
  opacity: 1;
}

/* 47.2 苹果 macOS 物理弹簧磁吸快捷坞 (Gaussian Spring Dock) */
.macos-dock-wrap {
  display: flex;
  justify-content: center;
}
.macos-dock {
  display: inline-flex;
  align-items: flex-end;
  gap: 12px;
  height: 72px;
  padding: 10px 18px;
  border-radius: 24px;
}
.dock-item {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--glass-border);
  color: #0B1220;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform-origin: 50% 100%;
  will-change: transform;
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, .16), inset 0 1px 0 rgba(255, 255, 255, .9);
}
[data-theme="dark"] .dock-item {
  background: rgba(240, 240, 245, .92);
}
.dock-item svg {
  width: 58%;
  height: 58%;
  pointer-events: none;
}
/* 坞内图标沿用双层栈，但缩到 58% 并收窄圆角，避免字母块撑满整格 */
.dock-item .tool-icon-stack {
  width: 58%;
  height: 58%;
  border-radius: 9px;
  pointer-events: none;
}
.dock-item .tool-icon-img {
  padding: 2px;
}
.dock-tip {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, .90);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.dock-item:hover .dock-tip {
  opacity: 1;
}

/* 47.3 Nothing OS 20列像素动态频谱 & Moodist 4-7-8 物理弹簧呼吸视窗 */
.mood-stage {
  position: relative;
  height: 52px;
  border-radius: 14px;
  background: #0B0F17;
  border: 1px solid rgba(255, 255, 255, .10);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
}
.pixel-spectrum {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  align-items: end;
  gap: 4px;
}
.spec-bar {
  width: 100%;
  height: 18%;
  border-radius: 999px;
  background: radial-gradient(circle, #F8FAFC 35%, rgba(248, 250, 252, .35) 100%);
  will-change: height;
}
.spec-bar.is-accent {
  background: #D71921;
  box-shadow: 0 0 8px rgba(215, 25, 33, .65);
}
.breathe-box {
  position: absolute;
  inset: 0;
  background: #0B0F17;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.breathe-box[hidden] {
  display: none !important;
}
.breathe-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, #60A5FA, #2563EB);
  box-shadow: 0 0 18px rgba(59, 130, 246, .75);
  will-change: transform;
}
.breathe-txt {
  font-size: 12.5px;
  font-weight: 800;
  color: #F8FAFC;
  letter-spacing: .04em;
}

/* 47.4 全屏 3D 时钟第 5 主题：Nothing OS 极客点阵红黑皮肤 (data-clock-theme="nothing") */
.flip-stage[data-clock-theme="nothing"] {
  --fc-bg-grad: radial-gradient(circle at 50% 50%, #0D0F12 0%, #050608 100%);
  --fc-card-top: linear-gradient(180deg, #111318 0%, #0C0E12 100%);
  --fc-card-bot: linear-gradient(180deg, #0A0C10 0%, #111318 100%);
  --fc-text: #F4F4F6;
  --fc-muted: rgba(244, 244, 246, .48);
  --fc-border: rgba(255, 255, 255, .16);
  --fc-hinge: #D71921;
  --fc-accent: #D71921;
  --fc-shadow: 0 40px 90px -20px rgba(0, 0, 0, .92), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.flip-stage[data-clock-theme="nothing"] .flip-top::after,
.flip-stage[data-clock-theme="nothing"] .flip-bottom::after,
.flip-stage[data-clock-theme="nothing"] .flip-leaf-front::after,
.flip-stage[data-clock-theme="nothing"] .flip-leaf-back::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: 8px 8px;
  pointer-events: none;
}
.flip-stage[data-clock-theme="nothing"] .flip-num {
  font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  letter-spacing: -.05em;
}
.flip-stage[data-clock-theme="nothing"] #flip-u-s .flip-num,
.flip-stage[data-clock-theme="nothing"] #flip-sep-2 {
  color: #D71921;
}

@media (max-width: 768px) {
  .macos-dock {
    gap: 8px;
    padding: 8px 12px;
    height: 60px;
    max-width: 94vw;
    overflow-x: auto;
  }
  .dock-item {
    width: 40px;
    height: 40px;
    flex: none;
  }
}

/* ============================================================
   48. 精致微光 (520px -> 240px) + 首次登机舱 + 第 5 次访问彩蛋 + 访客通行证
   ============================================================ */

/* 48.1 鼠标跟随光圈收敛：520px 大蓝雾 -> 240px 光学微聚光
   注意：--cursor-glow 只在「未选配色」时覆盖，已选钛空银/翡翠绿/琥珀金
   仍沿用各自配色专属光晕，不被经典蓝覆盖。 */
:root {
  --spot-size: 210px;
  --spot-alpha: .075;
}
:root:not([data-palette]) {
  --cursor-glow: rgba(37, 99, 235, .11);
}
[data-theme="dark"] {
  --spot-alpha: .10;
}
[data-theme="dark"]:not([data-palette]) {
  --cursor-glow: rgba(37, 99, 235, .14);
}
[data-motion="high"] {
  --spot-size: 260px;
  --spot-alpha: .12;
}
.cursor-glow {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, var(--cursor-glow) 0%, rgba(37, 99, 235, .03) 45%, transparent 70%);
}

/* 48.2 首页顶部访客通行证胶囊 */
.visitor-badge-btn {
  cursor: pointer;
  border: 1px solid rgba(37, 99, 235, .28);
}
.visitor-badge-btn:hover {
  background: var(--primary);
  color: #fff;
}
.visitor-badge-btn .bento-dot.live-dot {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

/* 48.3 首次访问登机引导舱 & 性能三选一卡片 */
.onboard-modal {
  width: min(620px, 100%);
  padding: 28px;
}
.ob-name-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.ob-name-in {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
}
.ob-perf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ob-perf-card {
  padding: 14px 12px;
  border-radius: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  border: 1.5px solid var(--glass-border);
}
.ob-perf-card .tool-name {
  font-size: 13.5px;
}
.ob-perf-card.is-sel {
  border-color: var(--primary);
  background: rgba(37, 99, 235, .10);
  box-shadow: 0 0 0 1px var(--primary);
}
[data-theme="dark"] .ob-perf-card.is-sel {
  background: rgba(59, 130, 246, .16);
}
.ob-backup-bar {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(120, 120, 128, .07);
  border: 1px solid var(--glass-border);
}
.ob-backup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* 48.4 第 5 次访问 B站求赞彩蛋模态 */
.fifth-modal {
  width: min(540px, 100%);
  padding: 28px;
}
.fifth-modal .pick-review-body {
  font-size: 13.5px;
  line-height: 1.75;
}

@media (max-width: 640px) {
  .ob-perf-grid {
    grid-template-columns: 1fr;
  }
  .onboard-modal,
  .fifth-modal {
    padding: 20px 16px;
  }
}

/* ============================================================
   49. 网页站「微缩浏览器视窗卡片 (Mini Browser Window Card)」创意重构
   彻底告别软件库的方形 APP 图标，采用仿真浏览器顶栏 + 胶囊地址栏 + 品牌极光顶线
   ============================================================ */
.web-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.web-browser-card {
  position: relative;
  padding: 0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  border: 1px solid var(--glass-border);
}

/* 顶部 3px 品牌专属色彩光带 */
.web-browser-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--wb-accent, var(--primary));
  opacity: .85;
  z-index: 2;
}

/* 1. 仿真浏览器顶栏 (Browser Chrome Bar) */
.wb-chrome-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
  background: rgba(120, 120, 128, .07);
  border-bottom: 1px solid var(--glass-border);
}
[data-theme="dark"] .wb-chrome-bar {
  background: rgba(255, 255, 255, .04);
}

/* 经典三色微缩窗口圆点（悬停时点亮彩色，由 CSS 状态驱动，非交互 transition） */
.wb-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
}
.wb-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(120, 120, 128, .32);
}
.web-browser-card:hover .wb-dots span:nth-child(1) { background: #FF5F56; }
.web-browser-card:hover .wb-dots span:nth-child(2) { background: #FFBD2E; }
.web-browser-card:hover .wb-dots span:nth-child(3) { background: #27C93F; }

/* 浏览器中央 HTTPS 胶囊地址栏 */
.wb-address-pill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .66);
  border: 1px solid var(--glass-border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--text-2);
}
[data-theme="dark"] .wb-address-pill {
  background: rgba(15, 23, 42, .55);
}
.wb-lock-ico {
  color: #10B981;
  flex: none;
}
.wb-url-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 右侧一键复制网址小按钮 */
.wb-copy-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  background: rgba(120, 120, 128, .08);
  border: 1px solid transparent;
  flex: none;
}
.wb-copy-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(37, 99, 235, .10);
}

/* 2. 浏览器视窗主体内容区 */
.wb-viewport {
  padding: 16px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.wb-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wb-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
}
.wb-brand-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wb-accent, var(--primary));
  box-shadow: 0 0 8px var(--wb-accent, var(--primary));
}
.wb-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -.01em;
}
.wb-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

/* 3. 视窗底部状态条 */
.wb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 12px;
  border-top: 1px solid var(--glass-border);
  background: rgba(120, 120, 128, .03);
}
.wb-https-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-3);
}
.wb-open-cta {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
}
[data-theme="dark"] .wb-open-cta {
  color: #8CB4FF;
}

/* 双语模式下描述上下双行，避免中英挤在一行 */
[data-lang="both"] .wb-desc .i18n-en {
  display: block;
  font-size: .86em;
  opacity: .72;
}

/* ============================================================
   50. 焦点神器右上角「上一款 / 换一款」紧凑按钮组
   ============================================================ */
.spot-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.spot-nav-group .btn[hidden] {
  display: none !important;
}

/* ============================================================
   51. 小米级 6瓣流体花朵呼吸视窗 + 网页站高可读性大字排版优化
   （上接第 50 节 spot-nav-group；编号顺延避免重复）
   ============================================================ */

/* 51.1 呼吸视窗加高到 88px，容纳 6 瓣绽放莲花与实时进度条 */
.mood-stage {
  height: 88px;
  padding: 10px 16px;
}
.breathe-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 0 18px;
  background: radial-gradient(circle at 22% 50%, #102338 0%, #090D14 100%);
}

/* 小米 / Apple Watch 6瓣叠加几何花朵容器 */
.flower-rig {
  position: relative;
  width: 56px;
  height: 56px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
.petal {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(94, 234, 212, .82), rgba(14, 165, 233, .62) 58%, rgba(37, 99, 235, .35));
  mix-blend-mode: screen;
  box-shadow: 0 0 12px rgba(45, 212, 191, .32);
  will-change: transform;
}
.flower-core {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ECFEFF;
  box-shadow: 0 0 14px #5EEAD4;
  z-index: 2;
}

.breathe-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.breathe-phase-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.breathe-txt {
  font-size: 14px;
  font-weight: 800;
  color: #F0FDFA;
  letter-spacing: .02em;
}
.breathe-sec {
  font-size: 14px;
  font-weight: 900;
  color: #5EEAD4;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.breathe-prog-bar {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.breathe-prog-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38BDF8, #2DD4BF);
  will-change: width;
}
.breathe-sub {
  font-size: 11px;
  color: rgba(240, 253, 250, .62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 51.2 网页站（Web Hub）高可读性视觉强化：字号放大、主域名提亮、实心直达胶囊 */
.web-grid {
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}
.web-browser-card {
  border-radius: 22px;
}
.wb-chrome-bar {
  padding: 12px 16px;
  background: rgba(120, 120, 128, .09);
}
.wb-address-pill {
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, .88);
}
[data-theme="dark"] .wb-address-pill {
  background: rgba(15, 23, 42, .78);
  color: #E2E8F0;
}
.wb-viewport {
  padding: 18px 20px 16px;
  gap: 12px;
}
.wb-brand-pill {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}
.wb-title {
  font-size: 17.5px;
  font-weight: 850;
  line-height: 1.35;
  color: var(--text);
}
.wb-desc {
  font-size: 13.8px;
  line-height: 1.68;
  color: var(--text-2);
  font-weight: 500;
}
.wb-foot {
  padding: 12px 20px 14px;
}
.wb-open-cta {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .12);
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 800;
}
.web-browser-card:hover .wb-open-cta {
  background: var(--primary);
  color: #fff;
}
