/* 白玉京前台 · v3 设计系统
   深海蓝 + 珊瑚点缀；玻璃拟态（半透明白 + 1px 高光边）。v3.3 起按
   业主定版：内容卡片/面板统一为透明磨砂玻璃块（backdrop blur ≤16px，
   只落在卡片这类小表面上，绝不铺满屏遮罩），页面底层加 CSS 柔色
   光斑让玻璃有东西可透；滚动入场为淡入 + 缩放 + 立体倾斜落平。
   移动优先：极简顶栏 + 底部悬浮玻璃菜单（胶囊滑动指示）；
   首页：原版海洋开场占满首屏，其后为流式页面（公告横幅卡 / 快捷
   入口 / 文章卡片流），不再分段吸附。Part B 共用基础件。 */

:root {
  --bg: #eef3f8;
  --bg-grad: linear-gradient(180deg, #e8f0f8 0%, #f4f7fa 320px, #f4f7fa 100%);
  --surface: rgba(255, 255, 255, .82);
  --surface-solid: #ffffff;
  --surface-card: rgba(255, 255, 255, .94);  /* 近不透明实色：小件（钮/关闭钮）用 */
  --glass-card: rgba(255, 255, 255, .60);    /* v3.3 磨砂玻璃块：卡片/面板面 */
  --glass-strong: rgba(255, 255, 255, .87);  /* 强磨砂：顶栏/栏目栏/正文板，压住底图保可读 */
  --glass-blur-card: blur(16px) saturate(1.5);
  --surface-soft: rgba(255, 255, 255, .62);
  --ink: #16283c;
  --ink-2: #47617c;
  --muted: #8496a9;
  --line: rgba(22, 52, 84, .12);
  --glass-edge: rgba(255, 255, 255, .75);
  --accent: #e8503a;          /* 珊瑚红，呼应公告猫图的底色 */
  --accent-soft: rgba(232, 80, 58, .1);
  --sea: #0d3464;
  --sea-deep: #071d3f;
  --sea-mid: #17507f;
  --link: #1663b8;
  --shadow: 0 10px 30px rgba(9, 35, 66, .10), 0 2px 6px rgba(9, 35, 66, .06);
  --shadow-lg: 0 24px 60px rgba(6, 26, 50, .28);
  --radius: 18px;
  --glass-blur: saturate(1.5) blur(14px);
  --hint-bg: rgba(255, 244, 214, .85);
  --hint-line: rgba(217, 164, 32, .45);
  --hint-ink: #7c5a03;
  --field-bg: rgba(255, 255, 255, .9);
  --pre-bg: rgba(13, 52, 100, .06);
}
html[data-theme="dark"] {
  --bg: #081426;
  --bg-grad: linear-gradient(180deg, #0a1e38 0%, #081426 340px, #081426 100%);
  --surface: rgba(16, 36, 60, .78);
  --surface-solid: #10243c;
  --surface-card: rgba(16, 36, 60, .94);
  --glass-card: rgba(17, 38, 64, .55);
  --glass-strong: rgba(17, 38, 64, .84);
  --surface-soft: rgba(20, 44, 72, .6);
  --ink: #e7eef6;
  --ink-2: #a9bfd4;
  --muted: #71879c;
  --line: rgba(160, 195, 235, .16);
  --glass-edge: rgba(190, 220, 255, .22);
  --accent-soft: rgba(232, 80, 58, .18);
  --link: #6cb2f5;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --hint-bg: rgba(84, 62, 8, .5);
  --hint-line: rgba(217, 164, 32, .4);
  --hint-ink: #f0d48a;
  --field-bg: rgba(10, 26, 46, .9);
  --pre-bg: rgba(160, 195, 235, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--bg); background-image: var(--bg-grad);
  background-attachment: fixed;
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65; font-size: 15.5px;
  transition: background-color .35s, color .35s;
}
/* v3.3 环境光斑：固定的柔色径向光斑（纯 CSS、无图），垫在所有内容
   之下，给磨砂玻璃卡片提供可透出的色彩层次。 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px 420px at 10% -6%, rgba(130, 185, 255, .38), rgba(130, 185, 255, 0) 65%),
    radial-gradient(520px 460px at 97% 20%, rgba(255, 165, 145, .30), rgba(255, 165, 145, 0) 65%),
    radial-gradient(720px 560px at 50% 110%, rgba(255, 224, 165, .32), rgba(255, 224, 165, 0) 65%),
    radial-gradient(430px 380px at 80% 86%, rgba(150, 220, 198, .22), rgba(150, 220, 198, 0) 65%);
}
html[data-theme="dark"] body::before {
  background:
    radial-gradient(560px 420px at 10% -6%, rgba(50, 110, 190, .28), rgba(50, 110, 190, 0) 65%),
    radial-gradient(520px 460px at 97% 20%, rgba(190, 80, 60, .16), rgba(190, 80, 60, 0) 65%),
    radial-gradient(720px 560px at 50% 110%, rgba(160, 120, 40, .14), rgba(160, 120, 40, 0) 65%),
    radial-gradient(430px 380px at 80% 86%, rgba(40, 130, 110, .14), rgba(40, 130, 110, 0) 65%);
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; line-height: 1.35; margin: 4px 0 12px; letter-spacing: .5px; }
h2.sec-title {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 16.5px; margin: 28px 0 12px; letter-spacing: 1px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur-card); backdrop-filter: var(--glass-blur-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge);
  transition: background .3s, color .3s, border-color .3s;
}
.sec-count {
  font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 2px 9px;
}
/* chip 跳转落点：分区标题短暂高亮 */
.lib-sec.flash .sec-title {
  background: var(--accent-soft); color: var(--accent);
  border-color: rgba(232, 80, 58, .45);
}
.lead { color: var(--ink-2); font-size: 15.5px; }
.empty { color: var(--muted); padding: 18px 0; }
.tag {
  color: var(--accent); font-size: 12px; letter-spacing: 2px; margin: 0 0 6px;
  font-weight: 600;
}

/* ---------- glass primitives ---------- */
/* v3.3 性能口径（业主定版磨砂玻璃块）：backdrop-filter 只落在卡片、
   面板、chips 条这类小表面上，blur ≤16px；全屏遮罩（FLIP 背景、弹窗
   背板）只用半透明纯色，绝不整屏实时模糊。 */
.glass {
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur-card); backdrop-filter: var(--glass-blur-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge);
  border-radius: var(--radius);
}

/* ---------- top bar: brand + 3 icon buttons only ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: var(--surface-card);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .12);
}
.topbar-in {
  max-width: 1080px; margin: 0 auto; height: 56px; padding: 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.brand {
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: 21px; font-weight: 700; letter-spacing: 5px; color: var(--ink);
  margin-right: auto; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.icon-btn {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; color: var(--ink-2);
  cursor: pointer; padding: 0; transition: background .2s, color .2s, transform .15s;
}
.icon-btn:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 21px; height: 21px; display: block; }

/* ---------- page shell ---------- */
.page { max-width: 1080px; margin: 0 auto; padding: 76px 16px 128px; }
.home-main { padding: 0; }
.site-footer { max-width: 1080px; margin: 0 auto; padding: 8px 16px 120px; }
.fine { color: var(--muted); font-size: 13px; margin: 0; text-align: center; }

/* ---------- buttons / cards / panels ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff !important;
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--accent);
  font-size: 15px; cursor: pointer; box-shadow: 0 6px 16px rgba(232, 80, 58, .28);
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.ghost {
  background: var(--surface-card); color: var(--ink) !important; border-color: var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge);
}
.btn.small { padding: 6px 16px; font-size: 14px; }
button {
  background: var(--surface-solid); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 15px; font-size: 14px; cursor: pointer; color: var(--ink);
  transition: border-color .2s, transform .12s;
}
button:hover { border-color: var(--accent); }
button:active { transform: scale(.97); }
button:disabled { opacity: .5; cursor: not-allowed; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card, .panel {
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur-card); backdrop-filter: var(--glass-blur-card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge);
}
.card h3 { margin: 0 0 8px; font-size: 16.5px; }
.card h3 a { color: var(--ink); }
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.panel { margin: 16px 0; }
.panel h2 { margin-top: 4px; font-size: 17px; }

/* ---------- bottom dock: floating glass menu + sliding capsule ---------- */
.dock {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; gap: 2px; padding: 7px;
  width: min(520px, calc(100vw - 20px));
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 var(--glass-edge);
}
.dock-capsule {
  position: absolute; top: 7px; left: 0; height: calc(100% - 14px); width: 0;
  border-radius: 999px; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .14));
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -6px 12px rgba(23, 80, 127, .10),
              0 4px 14px rgba(9, 35, 66, .14);
}
html[data-theme="dark"] .dock-capsule {
  background: linear-gradient(180deg, rgba(190, 220, 255, .20), rgba(190, 220, 255, .05));
  box-shadow: inset 0 1px 0 rgba(220, 240, 255, .35), 0 4px 14px rgba(0, 0, 0, .35);
}
.dock-item {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 7px 2px 6px; border-radius: 999px; color: var(--ink-2);
  font-size: 11.5px; line-height: 1.25; letter-spacing: 1px;
  transition: color .25s; -webkit-tap-highlight-color: transparent;
}
.dock-item:hover { text-decoration: none; }
.dock-item svg { width: 22px; height: 22px; display: block; }
.dock-item.active { color: var(--accent); font-weight: 600; }
.col-cell.col-shop .col-ico { color: var(--muted); }
.col-cell.col-shop .col-name { color: var(--muted); }
.col-cell.col-shop:hover { border-color: var(--muted); }
.dock-item:active { transform: scale(.94); }
.dock-item { transition: color .25s, transform .12s; }

/* ---------- home: sea opening + flowing page ----------
   只有开场（.sea）占满一屏；其后是普通流式页面（.home-flow），
   不再分段吸附、不留整屏空白。 */
.segments {
  height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none;
}
.segments::-webkit-scrollbar { display: none; }

/* segment 1 · original sea opening (assets/sea/)
   老站构图：poster-under 打底、poster-above 覆于其上，视频就绪后盖住
   海报；海报档（.poster-mode）下两张海报随滚动交叉淡化。无任何叠加
   文字——视频本身（含内嵌英文标）就是整个开场。 */
.sea { position: relative; height: 100dvh; min-height: 480px; overflow: hidden; background: #0a2a40; }
.sea.gone { display: none; }
.sea-stage {
  position: absolute; inset: 0;
  transform: translate3d(0, 0, 0) scale(1.08); /* JS 按滚动进度改写（视差） */
  will-change: transform;
}
.sea-layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.sea-poster-under { z-index: 0; }
.sea-poster-above { z-index: 1; }
.sea-video { z-index: 2; }
.sea.poster-mode .sea-video { display: none; }

/* announcement banner + flowing blocks（开场之后的流式区） */
.home-flow { max-width: 1080px; margin: 0 auto; padding: 14px 16px 128px; }
.announce { margin-bottom: 14px; }
.announce-card {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  background: var(--surface-solid);
}
.announce-card img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 32%;
}
.ann-strip {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 10px 26px rgba(30, 10, 5, .18);
}
html[data-theme="dark"] .ann-strip { background: rgba(14, 30, 52, .55); border-color: rgba(190, 220, 255, .25); }
.ann-tag {
  flex: 0 0 auto; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600;
  padding: 4px 12px; border-radius: 8px; letter-spacing: 2px;
}
.ann-title {
  flex: 1 1 auto; min-width: 0; font-size: 15.5px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .3s;
}
.ann-strip .btn { flex: 0 0 auto; }
.ann-dots { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); display: flex; gap: 7px; }
.ann-dot {
  width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .65); box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  transition: width .3s, background .3s;
}
.ann-dot.on { width: 26px; background: var(--accent); }

/* announcement modal（「查看」原地弹窗，不跳页） */
.ann-modal {
  position: fixed; inset: 0; z-index: 96;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s linear .25s;
}
.ann-modal.open { visibility: visible; opacity: 1; transition: opacity .25s; }
.ann-modal-backdrop { position: absolute; inset: 0; background: rgba(5, 18, 36, .52); }
.ann-modal-panel {
  position: relative; width: min(420px, 100%); padding: 20px 20px 16px;
  border-radius: 20px; color: var(--ink);
  background: rgba(255, 255, 255, .70);
  -webkit-backdrop-filter: var(--glass-blur-card); backdrop-filter: var(--glass-blur-card);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), var(--shadow-lg);
  transform-origin: 50% 100%; transform: translateY(14px) scale(.96); opacity: 0;
  transition: transform .28s, opacity .28s;
}
.ann-modal.open .ann-modal-panel { transform: none; opacity: 1; }
html[data-theme="dark"] .ann-modal-panel { background: rgba(14, 30, 52, .68); border-color: rgba(190, 220, 255, .25); }
.ann-modal-panel h3 { margin: 12px 0 8px; font-size: 17px; line-height: 1.5; }
.ann-modal-panel p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); white-space: pre-line; }
.ann-modal-close { width: 100%; }

/* flowing blocks: quick entries / latest / services / about */
.flow-card {
  margin-bottom: 14px;
  content-visibility: auto;            /* 屏外卡片跳过渲染，滚动更跟手 */
  contain-intrinsic-size: auto 300px;
}
.flow-card > h2 { font-size: 17px; margin: 0 0 14px; letter-spacing: 1px; }
.flow-card > h2 .more { float: right; font-size: 13.5px; font-weight: 400; letter-spacing: 0; }
.col-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.col-cell {
  display: block; padding: 11px 4px 9px; text-align: center; border-radius: 14px;
  background: var(--surface-soft); border: 1px solid var(--line); color: var(--ink);
  box-shadow: inset 0 1px 0 var(--glass-edge); transition: transform .15s, border-color .2s;
}
.col-cell:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.col-cell:active { transform: scale(.96); }
.col-cell .col-ico { display: block; color: var(--accent); margin-bottom: 5px; }
.col-cell .col-ico svg { width: 22px; height: 22px; display: block; margin: 0 auto; }
.col-cell .col-name { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.col-cell .col-count { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.svc-mini { display: flex; flex-direction: column; gap: 4px; }
.svc-mini p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.svc-mini strong { color: var(--ink); }

/* ---------- article cards (library + home latest) ---------- */
.art-list { display: flex; flex-direction: column; gap: 10px; }
.art-card {
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur-card); backdrop-filter: var(--glass-blur-card);
  border: 1px solid var(--line); border-radius: 16px; padding: 15px 18px 13px;
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge);
  cursor: pointer; transition: transform .18s, border-color .2s;
}
.art-card:hover { transform: translateY(-2px); border-color: rgba(232, 80, 58, .45); }
.art-card:active { transform: scale(.985); }
.art-card h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; line-height: 1.45; }
.art-card h3 a { color: var(--ink); }
.art-card h3 a:hover { color: var(--accent); text-decoration: none; }
.art-sum { margin: 0 0 6px; color: var(--ink-2); font-size: 14px; }
.meta { margin: 0; color: var(--muted); font-size: 12.5px; display: flex; gap: 14px; }
.meta-col { color: var(--accent); font-weight: 600; }

/* ---------- library: in-page search + capsule chips ---------- */
.lib-search { display: flex; gap: 8px; margin: 14px 0 6px; }
.lib-search input[type="search"] {
  flex: 1 1 auto; min-width: 0; padding: 11px 16px; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; background: var(--field-bg);
  box-shadow: inset 0 1px 0 var(--glass-edge); outline: none;
}
.lib-search input[type="search"]:focus { border-color: var(--accent); }
.chips {
  position: sticky; top: 64px; z-index: 40;
  display: flex; gap: 2px; padding: 5px; margin: 12px 0 4px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur-card); backdrop-filter: var(--glass-blur-card);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge);
}
.chips::-webkit-scrollbar { display: none; }
.chip-capsule {
  position: absolute; top: 5px; left: 0; height: calc(100% - 10px); width: 0; opacity: 0;
  border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .16));
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 4px 12px rgba(9, 35, 66, .12);
}
html[data-theme="dark"] .chip-capsule {
  background: linear-gradient(180deg, rgba(190, 220, 255, .22), rgba(190, 220, 255, .06));
}
.chip {
  position: relative; z-index: 1; flex: 0 0 auto; border: 0; background: transparent;
  padding: 8px 15px; border-radius: 999px; font-size: 14px; color: var(--ink-2);
  transition: color .25s; box-shadow: none;
}
.chip:hover { border-color: transparent; color: var(--ink); }
.chip.active { color: var(--accent); font-weight: 600; }
.lib-sec { scroll-margin-top: 152px; }

/* ---------- article page ---------- */
/* 文章页整篇落在磨砂玻璃板上（业主 2026-11-22 定）：背景照片经
   blur+saturate 折射进来，正文不再直接压在照片上。 */
.doc {
  max-width: 780px; margin: 0 auto;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur-card); backdrop-filter: var(--glass-blur-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge);
  border-radius: var(--radius);
  padding: 26px 28px 30px;
}
@media (max-width: 640px) { .doc { padding: 20px 17px 24px; } }
.doc h1 { font-size: 27px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 7px; }
.related {
  background: var(--glass-card);
  -webkit-backdrop-filter: var(--glass-blur-card); backdrop-filter: var(--glass-blur-card);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; margin: 26px 0 0; box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge);
}
.related h2 { font-size: 15px; margin: 0 0 8px; }
.related ul { margin: 0; padding-left: 18px; }
.related li { margin: 5px 0; font-size: 14.5px; }
.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.pager-link {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; font-size: 14px; color: var(--ink-2); max-width: 48%;
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge);
}
.pager-link:hover { color: var(--accent); text-decoration: none; }
.pager-link.next { margin-left: auto; text-align: right; }
.hint {
  background: var(--hint-bg); border: 1px solid var(--hint-line); border-radius: 12px;
  padding: 14px 18px; margin: 20px 0; color: var(--hint-ink); font-size: 14px;
}

/* ---------- FLIP article overlay ---------- */
html.flip-open, html.flip-open body { overflow: hidden; }
html.flip-open .segments { overflow: hidden; }
.flip { position: fixed; inset: 0; z-index: 90; }
.flip[hidden] { display: none; }
.flip-backdrop {
  position: absolute; inset: 0; background: rgba(5, 18, 36, .52);
  opacity: 0; transition: opacity .35s;
}
.flip.show .flip-backdrop { opacity: 1; }
.flip-panel {
  position: fixed; overflow: hidden; display: flex; flex-direction: column;
  background: var(--surface-solid); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 var(--glass-edge);
}
.flip-body { overflow-y: auto; padding: 22px 22px 30px; flex: 1 1 auto; }
.flip-body .doc { max-width: none; }
.flip-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; line-height: 1; color: var(--ink-2);
  background: var(--surface-card); border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge);
}
.flip-skel { padding: 6px 0; }
.skel-line {
  height: 15px; border-radius: 7px; margin: 12px 0;
  background: linear-gradient(90deg, var(--pre-bg) 25%, rgba(140, 170, 205, .22) 50%, var(--pre-bg) 75%);
  background-size: 200% 100%; animation: shimmer 1.1s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- scroll reveal (v3.3): 上下文淡入 + 缩放 + 立体 ----------
   元素进入视口时从纵深里浮起落平：透明 → 实、.96 → 1、rotateX 7° → 0，
   transform-origin 在底部中心；只动 transform/opacity。JS（FRONT_JS）
   用 IntersectionObserver 加 .rv/.in，动画结束即摘除这两个类，
   元素各自的 hover 过渡随即恢复。perspective() 写在元素自身
   transform 里而非父级属性，避免父级透视/变换破坏 fixed 子元素
   （公告弹窗）与 sticky chips。减动效偏好时 JS 根本不加 .rv。 */
.rv {
  opacity: 0;
  transform: perspective(900px) rotateX(7deg) scale(.96) translateY(16px);
  transform-origin: 50% 100%;
  transition: transform .62s cubic-bezier(.22, .9, .26, 1.02), opacity .5s ease-out;
}
.rv.in {
  opacity: 1;
  transform: perspective(900px) rotateX(0deg) scale(1) translateY(0);
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 104px; transform: translate(-50%, 16px);
  z-index: 95; max-width: calc(100vw - 40px); padding: 10px 18px; border-radius: 999px;
  background: rgba(10, 28, 50, .88); color: #eaf3ff; font-size: 14px; letter-spacing: .5px;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  box-shadow: var(--shadow-lg); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- forms / tables (shared with Part B) ---------- */
label { display: block; margin: 10px 0; font-size: 14px; color: var(--ink-2); }
input[type="email"], input[type="password"], input[type="text"], input:not([type]), select {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; min-width: 240px; background: var(--field-bg); color: var(--ink);
}
fieldset {
  border: 1px solid var(--line); border-radius: 12px; margin: 14px 0;
  background: var(--surface);
}
legend { font-size: 15px; color: var(--ink); padding: 0 6px; }
label.opt { display: block; margin: 6px 0; }
pre {
  background: var(--pre-bg); border-radius: 8px; padding: 10px 12px;
  font-size: 13px; white-space: pre-wrap; word-break: break-all; min-height: 0;
}
pre:empty { display: none; }
.error { color: #d43a2a; }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface-solid); font-size: 14px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.tbl th { background: var(--pre-bg); color: var(--ink-2); }

/* ---------- responsive / motion prefs ---------- */
@media (max-width: 640px) {
  .pager-link { max-width: 100%; }
  .home-flow { padding: 12px 12px 120px; }
  .ann-dots { bottom: 80px; }
  .ann-title { font-size: 14.5px; }
  .col-grid { gap: 7px; }
  .col-cell { padding: 9px 2px 7px; border-radius: 12px; }
  .col-cell .col-ico svg { width: 20px; height: 20px; }
  .col-cell .col-name { font-size: 12.5px; }
  input[type="email"], input[type="password"], input[type="text"], input:not([type]), select { min-width: 0; width: 100%; }
  .brand { letter-spacing: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}

/* ---------- 全站背景照片（站长指定图，通体） ---------- */
.bg-photo {
  position: fixed; inset: 0; z-index: -2;
  background: url("/assets/meadow-bg.jpg") center center / cover no-repeat;
}
body::before { content: none !important; }

/* ---------- login modal (frosted glass) ---------- */
.login-overlay {
  position: fixed; inset: 0; z-index: 90; display: flex;
  align-items: center; justify-content: center; padding: 18px;
  background: rgba(10, 22, 40, .34);
  opacity: 1; transition: opacity .22s ease;
}
.login-overlay[hidden] { display: none; }
.login-card {
  position: relative; width: min(92vw, 380px); max-height: 88dvh; overflow-y: auto;
  border-radius: 22px; padding: 22px 20px 16px;
  background: var(--glass-card);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--line, rgba(120,140,160,.35)); box-shadow: var(--shadow-lg);
  transform: translateY(0) scale(1); transition: transform .22s ease;
}
.login-overlay[hidden] .login-card { transform: translateY(10px) scale(.97); }
.login-card h2 { margin: 0 0 14px; font-size: 20px; }
.login-card label { display: block; margin: 10px 0; font-size: 14px; }
.login-card input { width: 100%; margin-top: 5px; }
.login-x {
  position: absolute; top: 8px; right: 12px; border: 0; background: none;
  font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 6px;
}
.login-go { width: 100%; margin-top: 8px; }
.login-err { color: #c0392b; font-size: 13px; min-height: 1em; margin: 6px 0 0; white-space: pre-wrap; }
.login-err.ok { color: #1d7a3a; }
html[data-theme="dark"] .login-err.ok { color: #4cc38a; }
.login-switch { text-align: center; margin: 12px 0 4px; font-size: 13.5px; }
.login-switch a { color: var(--link); cursor: pointer; }
.login-card .fine { text-align: center; margin-top: 10px; }
.login-card #lcRe, .panel #rgRe { color: var(--link); cursor: pointer; font-size: 13px; }
.mystery h2 { margin-top: 0; }

/* ---------- UX fixes 2026-11-23: login tabs / code rows / hints ---------- */
.account-btn { width: auto; border-radius: 999px; padding: 0 13px; gap: 6px; }
.icon-label { font-size: 13.5px; letter-spacing: .5px; }
.login-tabs { display: flex; gap: 6px; margin: 0 0 6px; }
.ltab {
  flex: 1 1 0; padding: 8px 2px; border-radius: 999px; font-size: 13.5px;
  background: var(--surface-soft); color: var(--ink-2);
}
.ltab.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.login-switch a { cursor: pointer; }
.code-row { display: flex; gap: 8px; align-items: stretch; margin: 5px 0 4px; }
.code-row input { flex: 1 1 auto; min-width: 0; margin-top: 0; }
.code-row .btn, .code-row button { flex: 0 0 auto; white-space: nowrap; }
.login-hint {
  background: var(--hint-bg); border: 1px solid var(--hint-line);
  color: var(--hint-ink); border-radius: 10px; padding: 9px 12px;
  font-size: 13px; line-height: 1.55; text-align: left;
}
.login-hint a { color: inherit; font-weight: 600; text-decoration: underline; }
.svc-cta { margin-top: 12px; }
.to-top {
  position: fixed; right: 16px; bottom: 108px; z-index: 55;
  border-radius: 999px; padding: 8px 15px; font-size: 13px;
  background: var(--surface-card); box-shadow: var(--shadow);
}
.flip-top {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  border-radius: 999px; padding: 7px 14px; font-size: 13px;
  background: var(--surface-card); box-shadow: var(--shadow);
}
.flip-skel-title { margin: 2px 0 4px; font-size: 20px; }

/* ---------- v3.4 可读性修正（2026-11-23 双站复扫） ----------
   背景换成亮色雪山照片后，.60 透明玻璃压不住底图，多页文字发虚。
   v3.4.1 修正（同日，业主反馈整页灰蒙蒙、照片特色被埋）：初版把
   玻璃调得太实（.80/.93）+ 整幅柔光罩（.52→.66）。现改为玻璃回
   中间档（.65/.80）、柔光罩只剩一层薄雾（.14→.22），可读性改走
   文字侧：正文字色加深一档、玻璃上的正文加一圈极淡光晕衬边、
   标题加重——不再靠整页提白。 */
:root {
  --glass-card: rgba(255, 255, 255, .65);
  --surface-soft: rgba(255, 255, 255, .63);
  --glass-strong: rgba(255, 255, 255, .80);
  --ink-2: #3a5269;
  --muted: #6d8299;
}
html[data-theme="dark"] {
  --glass-card: rgba(17, 38, 64, .62);
  --surface-soft: rgba(20, 44, 72, .62);
  --glass-strong: rgba(17, 38, 64, .80);
  --ink-2: #b9cfe2;
  --muted: #87a0b5;
}
.bg-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(238, 243, 248, .14), rgba(238, 243, 248, .22));
}
html[data-theme="dark"] .bg-photo::after {
  background: linear-gradient(180deg, rgba(8, 20, 38, .28), rgba(8, 20, 38, .36));
}
.site-footer .fine { color: var(--ink-2); }
.account-btn {
  width: auto; padding: 0 13px; border-radius: 999px; gap: 6px;
  border: 1px solid var(--line); background: var(--surface);
}
.account-btn .icon-label { font-size: 13.5px; font-weight: 600; }
.lib-sec { scroll-margin-top: 184px; }
.ann-dot { background: rgba(255, 255, 255, .9); border: 1px solid rgba(9, 35, 66, .35); }
.card h3, .art-card h3 { text-wrap: balance; }
.doc pre { white-space: pre; overflow-x: auto; word-break: normal; }

/* v3.4.1 文字侧补法：玻璃面上的正文加极淡光晕衬边、标题加重 */
.doc, .panel, .flow-card, .art-card {
  text-shadow: 0 1px 2px rgba(255, 255, 255, .5), 0 0 6px rgba(255, 255, 255, .30);
}
html[data-theme="dark"] .doc, html[data-theme="dark"] .panel,
html[data-theme="dark"] .flow-card, html[data-theme="dark"] .art-card {
  text-shadow: 0 1px 2px rgba(4, 12, 24, .5), 0 0 6px rgba(4, 12, 24, .35);
}
.doc .btn, .panel .btn, .flow-card .btn, .art-card .btn,
.doc button, .panel button, .flow-card button, .art-card button,
.doc input, .doc select, .doc textarea,
.panel input, .panel select, .panel textarea { text-shadow: none; }
.doc h1, .doc h2, .doc h3, .panel h2, .flow-card > h2, .art-card h3 { font-weight: 700; }

/* ---------- v3.4b 复扫补充（2026-11-23） ---------- */
.flip-top { border: 1px solid var(--line); color: var(--accent); font-weight: 600; }
.pager-end { opacity: .6; cursor: default; }

/* 图形验证码（2026-11-23，替下算术题） */
[id$="Q"] svg { vertical-align: middle; }

/* 账单下拉（2026-11-23）：点开自查，无主动提示 */
.bill { margin: 10px 0 4px; }
.bill summary {
  cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14.5px;
  padding: 6px 0; list-style-position: inside;
}
.bill .fine { margin: 3px 0; }

/* ---------- form completion 2026-11-26: tel/number/textarea/radio/checkbox ---------- */
input[type="tel"], input[type="number"], textarea {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; min-width: 240px; background: var(--field-bg); color: var(--ink);
  box-sizing: border-box;
}
textarea { width: 100%; min-width: 0; resize: vertical; font-family: inherit; }
input[type="radio"], input[type="checkbox"] {
  accent-color: var(--accent); width: 17px; height: 17px; margin: 0; vertical-align: -3px;
}
@media (max-width: 640px) {
  input[type="tel"], input[type="number"] { min-width: 0; width: 100%; }
}

/* =====================================================================
   SNOW-GLASS LAYER v2 · 2026-11-26 (clear edition)
   Single blue family with strong contrast + clear glass + layout refinements.
   Appended to the end of style.css; delete from this marker down to roll back.
   References: igloo.inc (snow palette, frost transitions, particles)
               activetheory.net (glass: refraction rims, dispersion, specular)
   ===================================================================== */

/* ---------- 1. Design tokens: clear ice (light) · single blue family, high contrast ---------- */
:root {
  color-scheme: light;
  --bg: #e8f4ff;
  --bg-grad: linear-gradient(180deg, #d6ecff 0%, #e9f5ff 36%, #f6fbff 100%);
  --surface: rgba(246, 251, 255, .74);
  --surface-solid: #f6fbff;
  --surface-card: rgba(248, 252, 255, .9);
  --surface-soft: rgba(255, 255, 255, .34);
  --glass-card: rgba(255, 255, 255, .26);
  --glass-strong: rgba(250, 253, 255, .74);
  /* high contrast: deep navy text vs ice-white background (~15:1) */
  --ink: #03203c;
  --ink-2: #1b4266;
  --muted: #45678a;            /* small text >= 5:1 */
  --line: rgba(10, 90, 175, .14);
  --glass-edge: rgba(255, 255, 255, 1);
  /* accent: vivid azure (same blue family; the saturation contrast does the work) */
  --accent: #0a6cff;
  --accent-fill: #0a63f0;
  --accent-ink: #0050d4;
  --accent-soft: rgba(10, 108, 255, .10);
  --link: #0058e0;
  --danger: #d1361f;
  --focus: rgba(10, 108, 255, .9);
  --field-bg: rgba(255, 255, 255, .62);
  --pre-bg: rgba(10, 90, 175, .06);
  --radius: 22px;
  /* clear glass casts a blue-tinted shadow, not a gray one */
  --shadow: 0 1px 2px rgba(0, 60, 140, .05), 0 18px 38px -16px rgba(0, 86, 190, .26);
  --shadow-lg: 0 2px 6px rgba(0, 50, 120, .08), 0 36px 70px -22px rgba(0, 70, 170, .40);
  --pill-sh: 0 18px 40px -16px rgba(0, 80, 180, .36), 0 2px 6px rgba(0, 60, 140, .07);
  --ease-out: cubic-bezier(.22, .9, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .4, 1);

  /* glass: low fill + light blur + high saturation = clear; the clarity comes from highlights and edges */
  --ice-blur: blur(10px) saturate(2) brightness(1.08);
  --ice-blur-lite: blur(8px) saturate(1.9) brightness(1.06);
  --ice-fill: linear-gradient(160deg, rgba(255, 255, 255, .46) 0%, rgba(255, 255, 255, .18) 42%, rgba(214, 236, 255, .14) 100%);
  --ice-fill-strong: linear-gradient(160deg, rgba(255, 255, 255, .86) 0%, rgba(244, 250, 255, .74) 55%, rgba(228, 242, 255, .70) 100%);
  --ice-fill-bar: linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(232, 245, 255, .44));
  --ice-line: rgba(255, 255, 255, .55);
  /* glass thickness: sharp top glint + bottom refraction glint + blue edge tint (real glass is bluer at the edges) */
  --ice-sh: inset 0 1.5px 0 rgba(255, 255, 255, 1),
            inset 0 -1px 0 rgba(255, 255, 255, .75),
            inset 0 0 0 1px rgba(255, 255, 255, .22),
            inset 0 0 22px rgba(70, 160, 255, .20),
            inset 0 32px 28px -30px rgba(255, 255, 255, .95);
  /* bevel catches light at both corners: bright top-left and bottom-right */
  --ice-rim: linear-gradient(145deg, #fff 0%, rgba(255, 255, 255, .6) 18%, rgba(255, 255, 255, .06) 46%,
             rgba(255, 255, 255, .06) 60%, rgba(255, 255, 255, .7) 86%, #fff 100%);
  --ice-disp: conic-gradient(from 200deg at 50% 50%, rgba(120, 220, 255, 0) 0deg, rgba(120, 220, 255, .8) 34deg,
             rgba(255, 170, 230, .6) 62deg, rgba(255, 240, 160, .5) 86deg, rgba(120, 220, 255, 0) 120deg,
             rgba(120, 220, 255, 0) 360deg);
  /* pointer specular + fixed diagonal gloss band (the key to "clear and bright") */
  --spec: radial-gradient(220px circle at var(--mx, 18%) var(--my, -8%), rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 60%);
  --gloss: linear-gradient(118deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .16) 26%, rgba(255, 255, 255, 0) 27.5%,
           rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .1) 73%, rgba(255, 255, 255, 0) 86%);
  --grain: none;               /* the grain texture reads as frosted; clear glass drops it */

  --tile-fill: linear-gradient(160deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .16));
  --tile-sh: inset 0 1.5px 0 #fff, inset 0 -1px 0 rgba(255, 255, 255, .7), inset 0 0 14px rgba(70, 160, 255, .16),
             0 10px 20px -12px rgba(0, 80, 180, .36);
  --cap-fill: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .38) 52%, rgba(200, 230, 255, .5));
  --cap-sh: inset 0 1.5px 0 #fff, inset 0 -1px 0 rgba(255, 255, 255, .8), inset 0 -8px 14px rgba(40, 140, 255, .16),
            inset 1.5px 0 0 rgba(120, 220, 255, .7), inset -1.5px 0 0 rgba(255, 170, 230, .55),
            0 8px 20px -6px rgba(0, 80, 180, .32);
  --btn2-fill: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(235, 246, 255, .38));
  --field-sh: inset 0 2px 5px rgba(0, 70, 160, .08), inset 0 -1px 0 rgba(255, 255, 255, .9);
  --ice-dot: radial-gradient(circle at 35% 30%, #fff 0 16%, #6fc0ff 45%, #0a63f0 100%);
  --hover-tint: rgba(10, 108, 255, .07);
  --duo: #3d9cff;              /* front-site background photo is tinted to this blue as a duotone */
}

/* ---------- 1b. Tokens: clear deep water (dark) ---------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #03111f;
  --bg-grad: linear-gradient(180deg, #05192f 0%, #031222 45%, #020b16 100%);
  --surface: rgba(10, 30, 54, .72);
  --surface-solid: #071a2e;
  --surface-card: rgba(8, 26, 46, .92);
  --surface-soft: rgba(80, 150, 230, .10);
  --glass-card: rgba(60, 130, 220, .10);
  --glass-strong: rgba(10, 30, 54, .78);
  --ink: #f2f9ff;
  --ink-2: #b6d5f3;
  --muted: #8db0d2;
  --line: rgba(120, 190, 255, .16);
  --glass-edge: rgba(190, 230, 255, .45);
  --accent: #3aa0ff;
  --accent-fill: #1678ff;
  --accent-ink: #7cc4ff;
  --accent-soft: rgba(58, 160, 255, .16);
  --link: #7cc4ff;
  --danger: #ff8a78;
  --focus: #7cc4ff;
  --field-bg: rgba(4, 18, 34, .55);
  --pre-bg: rgba(120, 190, 255, .08);
  --shadow: 0 1px 2px rgba(0, 4, 12, .4), 0 18px 38px -16px rgba(0, 8, 24, .75);
  --shadow-lg: 0 2px 8px rgba(0, 4, 12, .5), 0 36px 72px -22px rgba(0, 8, 24, .9);
  --pill-sh: 0 18px 40px -16px rgba(0, 8, 24, .85), 0 2px 6px rgba(0, 4, 12, .4);

  --ice-blur: blur(12px) saturate(1.8) brightness(1.1);
  --ice-blur-lite: blur(9px) saturate(1.7) brightness(1.08);
  --ice-fill: linear-gradient(160deg, rgba(140, 200, 255, .17) 0%, rgba(70, 140, 230, .07) 48%, rgba(20, 70, 140, .10) 100%);
  --ice-fill-strong: linear-gradient(160deg, rgba(22, 52, 90, .92) 0%, rgba(10, 32, 58, .90) 60%, rgba(6, 24, 44, .90) 100%);
  --ice-fill-bar: linear-gradient(180deg, rgba(36, 84, 150, .58), rgba(6, 26, 50, .72));
  --ice-line: rgba(150, 210, 255, .20);
  --ice-sh: inset 0 1.5px 0 rgba(200, 235, 255, .55),
            inset 0 -1px 0 rgba(120, 200, 255, .25),
            inset 0 0 0 1px rgba(140, 210, 255, .06),
            inset 0 0 24px rgba(40, 150, 255, .16),
            inset 0 32px 28px -30px rgba(170, 220, 255, .28);
  --ice-rim: linear-gradient(145deg, rgba(200, 235, 255, .9) 0%, rgba(160, 215, 255, .3) 18%, rgba(160, 215, 255, .03) 46%,
             rgba(160, 215, 255, .03) 60%, rgba(140, 205, 255, .4) 86%, rgba(200, 235, 255, .85) 100%);
  --ice-disp: conic-gradient(from 200deg at 50% 50%, rgba(90, 200, 255, 0) 0deg, rgba(90, 200, 255, .55) 34deg,
             rgba(210, 140, 255, .42) 62deg, rgba(110, 255, 220, .34) 86deg, rgba(90, 200, 255, 0) 120deg,
             rgba(90, 200, 255, 0) 360deg);
  --spec: radial-gradient(220px circle at var(--mx, 18%) var(--my, -8%), rgba(150, 210, 255, .22), rgba(150, 210, 255, 0) 60%);
  --gloss: linear-gradient(118deg, rgba(170, 220, 255, .16) 0%, rgba(170, 220, 255, .05) 26%, rgba(170, 220, 255, 0) 27.5%,
           rgba(170, 220, 255, 0) 72%, rgba(170, 220, 255, .04) 73%, rgba(170, 220, 255, 0) 86%);
  --grain: none;
  --tile-fill: linear-gradient(160deg, rgba(120, 190, 255, .16), rgba(40, 100, 190, .06));
  --tile-sh: inset 0 1.5px 0 rgba(200, 235, 255, .45), inset 0 -1px 0 rgba(120, 200, 255, .2), inset 0 0 14px rgba(40, 150, 255, .14),
             0 10px 20px -12px rgba(0, 8, 24, .8);
  --cap-fill: linear-gradient(180deg, rgba(170, 220, 255, .34), rgba(110, 180, 255, .10) 55%, rgba(110, 180, 255, .2));
  --cap-sh: inset 0 1.5px 0 rgba(210, 240, 255, .6), inset 0 -8px 14px rgba(0, 0, 0, .22),
            inset 1.5px 0 0 rgba(100, 210, 255, .45), inset -1.5px 0 0 rgba(210, 140, 255, .35),
            0 8px 20px -6px rgba(0, 0, 0, .6);
  --btn2-fill: linear-gradient(180deg, rgba(120, 190, 255, .20), rgba(40, 100, 190, .10));
  --field-sh: inset 0 2px 5px rgba(0, 0, 0, .35), inset 0 -1px 0 rgba(150, 210, 255, .12);
  --ice-dot: radial-gradient(circle at 35% 30%, #fff 0 16%, #8fd0ff 45%, #1678ff 100%);
  --hover-tint: rgba(120, 190, 255, .08);
  --duo: #1a5fb8;
}

/* ---------- 2. Background: clear sky / deep water (saturated light pools give the clear glass something to refract) ---------- */
body { color: var(--ink); background-color: var(--bg); background-image: var(--bg-grad); }
body::before {
  background:
    radial-gradient(620px 460px at 8% -4%, rgba(60, 165, 255, .45), transparent 64%),
    radial-gradient(520px 440px at 100% 14%, rgba(0, 205, 255, .30), transparent 64%),
    radial-gradient(560px 520px at 4% 72%, rgba(110, 130, 255, .22), transparent 64%),
    radial-gradient(600px 520px at 92% 92%, rgba(40, 150, 255, .28), transparent 64%),
    radial-gradient(760px 420px at 40% 104%, rgba(255, 255, 255, .9), transparent 70%);
}
html[data-theme="dark"] body::before {
  background:
    radial-gradient(640px 460px at 8% -4%, rgba(0, 120, 255, .36), transparent 64%),
    radial-gradient(540px 440px at 100% 14%, rgba(0, 210, 255, .18), transparent 64%),
    radial-gradient(560px 520px at 4% 72%, rgba(90, 100, 255, .18), transparent 64%),
    radial-gradient(600px 520px at 92% 92%, rgba(0, 140, 255, .22), transparent 64%);
}
::selection { background: rgba(10, 108, 255, .22); }
html { scrollbar-color: rgba(10, 90, 175, .3) transparent; }

/* ---------- 3. Type & hierarchy ---------- */
h1 { letter-spacing: .02em; font-weight: 700; text-wrap: balance; }
.lead { color: var(--ink-2); }
.fine { color: var(--muted); }
.tag { color: var(--accent-ink); letter-spacing: .18em; }
.bal-big, .tbl td, .sec-count, .col-count { font-variant-numeric: tabular-nums; }

/* Section titles: drop the glass pill and go back to "label + snow dot + count",
   so glass is reserved for containers and the hierarchy gets cleaner */
h2.sec-title {
  position: relative; display: flex; align-items: center; gap: 10px;
  margin: 30px 2px 12px; padding: 0;
  font-size: 16px; font-weight: 700; letter-spacing: .06em; color: var(--ink);
  background: none; border: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
h2.sec-title::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto;
  background: var(--ice-dot);
  box-shadow: 0 0 0 3px rgba(130, 185, 240, .16), 0 0 12px rgba(120, 185, 255, .55);
}
h2.sec-title::after {
  content: ""; flex: 1 1 auto; height: 1px; margin-left: 4px;
  background: linear-gradient(90deg, var(--line), transparent);
}
.sec-count {
  color: var(--accent-ink); background: var(--accent-soft);
  border: 1px solid rgba(10, 108, 255, .18); padding: 1px 9px;
}
.lib-sec.flash .sec-title { background: none; border: 0; color: var(--accent-ink); }
.lib-sec.flash .sec-title::before { box-shadow: 0 0 0 5px rgba(90, 160, 240, .22), 0 0 18px rgba(90, 170, 255, .8); }

/* ---------- 4. Ice-glass material (shared by containers) ---------- */
.glass, .card, .panel, fieldset, .tbl-wrap, .related, .art-card { position: relative; }
.glass, .card, .panel, fieldset, .tbl-wrap, .related, .art-card,
.login-card, .ann-modal-panel, .side-panel, .flip-panel {
  isolation: isolate;
  background: var(--grain), var(--ice-fill);
  -webkit-backdrop-filter: var(--ice-blur); backdrop-filter: var(--ice-blur);
  border: 1px solid var(--ice-line);
  box-shadow: var(--ice-sh), var(--shadow);
}
html[data-theme="dark"] :is(.glass, .card, .panel, fieldset, .tbl-wrap, .related, .art-card,
.login-card, .ann-modal-panel, .side-panel, .flip-panel) {
  background: var(--grain), var(--ice-fill);
  box-shadow: var(--ice-sh), var(--shadow);
}
/* long lists use a lighter blur to save GPU on phones */
.art-card { -webkit-backdrop-filter: var(--ice-blur-lite); backdrop-filter: var(--ice-blur-lite); }
/* overlays need readability: strong-fill glass */
.login-card, .ann-modal-panel, .side-panel, .flip-panel,
html[data-theme="dark"] :is(.login-card, .ann-modal-panel, .side-panel, .flip-panel) {
  background: var(--grain), var(--ice-fill-strong);
  box-shadow: var(--ice-sh), var(--shadow-lg);
}
/* a fieldset nested in a panel stays flat (avoid glass on glass) */
.panel fieldset, html[data-theme="dark"] .panel fieldset {
  background: var(--pre-bg); border-color: var(--line);
  box-shadow: inset 0 1px 3px rgba(30, 70, 110, .08);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.panel fieldset::after, .panel fieldset::before { display: none; }

/* radius scale: container 22 / list item 18 / control 12 / capsule 999 */
.card, .panel, .tbl-wrap, .related { border-radius: var(--radius); }
.art-card { border-radius: 18px; }
fieldset { border-radius: 16px; }

/* rim + dispersion: a 1px light ring inside the edge */
:is(.glass, .card, .panel, fieldset, .tbl-wrap, .related, .art-card, .login-card, .ann-modal-panel,
    .side-panel, .flip-panel, .dock, .topbar, .chips, .ann-strip, .announce-card, .pager-link, .toast)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; pointer-events: none; z-index: 2;
  background: var(--ice-disp), var(--ice-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  display: block; opacity: .95;
}

/* specular highlight: sits under the content so it never washes out text */
:is(.glass, .card, .panel, .art-card, .tbl-wrap, .related, .login-card, .ann-modal-panel, .dock, .col-cell, .pager-link)::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  z-index: -1; background: var(--spec), var(--gloss); box-shadow: none;
  opacity: .8; transition: opacity .45s var(--ease-out);
}
:is(.card, .panel, .art-card, .col-cell, .pager-link, .dock, .glass):is(:hover, .q-lit, .q-down)::before { opacity: 1; }
/* hover: lift slightly + cool-blue halo (replaces the old red hover ring) */
:is(.card, .art-card):hover {
  border-color: rgba(10, 108, 255, .28);
  box-shadow: var(--ice-sh), 0 0 0 1px rgba(10, 108, 255, .12), 0 22px 44px -18px rgba(0, 90, 220, .30);
}
html[data-theme="dark"] :is(.card, .art-card):hover {
  box-shadow: var(--ice-sh), 0 0 0 1px rgba(120, 190, 255, .16), 0 22px 44px -18px rgba(0, 10, 30, .9);
}

/* ---------- 5. Top bar: becomes a floating glass island (matches the dock) ---------- */
.topbar {
  top: calc(8px + env(safe-area-inset-top)); left: 10px; right: 10px;
  max-width: 1064px; margin: 0 auto; border-radius: 20px;
  background: var(--grain), var(--ice-fill-bar);
  -webkit-backdrop-filter: var(--ice-blur); backdrop-filter: var(--ice-blur);
  border: 1px solid var(--ice-line);
  box-shadow: var(--ice-sh), var(--pill-sh);
}
html[data-theme="dark"] .topbar { box-shadow: var(--ice-sh), var(--pill-sh); }
.topbar-in { height: 52px; padding: 0 8px 0 18px; gap: 4px; }
.brand {
  background: linear-gradient(180deg, var(--ink) 30%, color-mix(in srgb, var(--ink) 62%, #6aa6dc));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.icon-btn { width: 40px; height: 40px; color: var(--ink-2); }
.icon-btn:hover { background: var(--tile-fill); box-shadow: var(--tile-sh); color: var(--ink); }
.account-btn {
  width: auto; white-space: nowrap; height: 36px; padding: 0 14px; margin-left: 4px;
  background: var(--btn2-fill); border: 1px solid var(--ice-line); box-shadow: var(--tile-sh);
}
.page { padding-top: calc(80px + env(safe-area-inset-top)); }

/* ---------- 6. Dock ---------- */
.dock {
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(500px, calc(100vw - 20px)); padding: 6px; isolation: isolate;
  background: var(--grain), var(--ice-fill-bar);
  -webkit-backdrop-filter: var(--ice-blur); backdrop-filter: var(--ice-blur);
  border: 1px solid var(--ice-line);
  box-shadow: var(--ice-sh), var(--pill-sh);
}
html[data-theme="dark"] .dock { background: var(--grain), var(--ice-fill-bar); box-shadow: var(--ice-sh), var(--pill-sh); }
.dock-capsule, html[data-theme="dark"] .dock-capsule {
  top: 6px; height: calc(100% - 12px);
  background: var(--cap-fill); border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--cap-sh);
}
html[data-theme="dark"] .dock-capsule { border-color: rgba(200, 230, 255, .28); }
.dock-item { padding: 6px 2px 5px; gap: 1px; font-size: 11px; letter-spacing: .06em; color: var(--ink-2); }
.dock-item svg { width: 21px; height: 21px; }
.dock-item.active { color: var(--accent-ink); }
.dock-item.active svg { filter: drop-shadow(0 2px 6px rgba(60, 140, 230, .45)); }

/* ---------- 7. Home flow / announcements / column grid ---------- */
.announce-card {
  position: relative; border-radius: 28px; border: 1px solid var(--ice-line);
  box-shadow: var(--pill-sh);
}
.ann-strip, html[data-theme="dark"] .ann-strip {
  position: absolute; border-radius: 18px;
  background: var(--grain), var(--ice-fill-bar);
  -webkit-backdrop-filter: var(--ice-blur); backdrop-filter: var(--ice-blur);
  border: 1px solid var(--ice-line);
  box-shadow: var(--ice-sh), 0 14px 30px -12px rgba(10, 30, 60, .35);
}
.ann-tag {
  background-color: var(--accent-fill);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 12px -2px rgba(37, 101, 201, .45);
  border-radius: 9px;
}
.ann-dot { background: rgba(255, 255, 255, .88); border: 1px solid rgba(40, 80, 120, .28); box-shadow: 0 1px 4px rgba(10, 30, 60, .25); }
.ann-dot.on { background: linear-gradient(90deg, #fff, #cfe6fb); border-color: rgba(255, 255, 255, .9); box-shadow: 0 0 10px rgba(150, 205, 255, .8); }

/* desktop: switch the announcement card from 4:3 to a banner ratio so it doesn't fill a whole screen */
@media (min-width: 760px) { .announce-card { aspect-ratio: 21 / 9; } }
.flow-card { margin-bottom: 16px; }
.flow-card > h2 { font-size: 16.5px; letter-spacing: .04em; }
.col-grid { gap: 10px; }
@media (min-width: 600px) { .col-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 900px) { .col-grid { grid-template-columns: repeat(8, 1fr); } }
.col-cell {
  position: relative; isolation: isolate;
  padding: 12px 4px 10px; border-radius: 18px;
  background: var(--tile-fill); border: 1px solid var(--ice-line); box-shadow: var(--tile-sh);
}
.col-cell:hover { border-color: rgba(10, 108, 255, .35); }
.col-cell .col-ico, html[data-theme="dark"] .col-cell .col-ico {
  width: 38px; height: 38px; margin: 0 auto 7px; border-radius: 13px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(165deg, #5cb8ff 0%, #1a7dff 45%, #0050d4 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .7), inset 0 -3px 6px rgba(0, 30, 110, .35),
              0 8px 16px -6px rgba(0, 90, 230, .55);
}
.col-cell.col-shop .col-ico { color: #fff; background: linear-gradient(165deg, #9fd2ff, #5b9be6 60%, #3a76c4); }
.col-cell .col-ico svg { width: 20px; height: 20px; }
.col-cell .col-name { font-size: 13px; }

/* ---------- 8. Article list / library ---------- */
.art-list { gap: 12px; }
.art-card { padding: 16px 18px 14px; }
.art-card:hover { border-color: rgba(10, 108, 255, .3); }
.art-card h3 a:hover { color: var(--accent-ink); }
.meta-col { color: var(--accent-ink); }

.lib-search input[type="search"] {
  min-height: 46px; padding: 11px 18px;
  background: var(--field-bg); border: 1px solid var(--ice-line);
  box-shadow: var(--field-sh), 0 10px 24px -16px rgba(30, 70, 110, .35);
  -webkit-backdrop-filter: var(--ice-blur-lite); backdrop-filter: var(--ice-blur-lite);
}
.chips, html[data-theme="dark"] .chips {
  top: calc(70px + env(safe-area-inset-top)); padding: 5px;
  background: var(--grain), var(--ice-fill-bar);
  -webkit-backdrop-filter: var(--ice-blur); backdrop-filter: var(--ice-blur);
  border: 1px solid var(--ice-line); box-shadow: var(--ice-sh), var(--pill-sh);
}
.chip-capsule, html[data-theme="dark"] .chip-capsule {
  background: var(--cap-fill); border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--cap-sh);
}
html[data-theme="dark"] .chip-capsule { border-color: rgba(200, 230, 255, .26); }
.chip { color: var(--ink-2); }
.chip.active { color: var(--accent-ink); }

.related { padding: 18px 20px; }
.pager-link {
  position: relative; isolation: isolate; border-radius: 14px;
  background: var(--tile-fill); border: 1px solid var(--ice-line); box-shadow: var(--tile-sh);
}
.pager-link:hover { color: var(--accent-ink); }
.crumbs a:hover { color: var(--accent-ink); }

/* ---------- 9. Buttons ---------- */
.btn {
  min-height: 42px; border-radius: 999px; letter-spacing: .02em;
  background-color: var(--accent-fill); border-color: rgba(0, 60, 190, .6);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .04) 48%, rgba(0, 20, 60, .08));
  box-shadow: 0 10px 22px -8px rgba(10, 99, 240, .55),
              inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 6px rgba(10, 40, 110, .25),
              inset 1px 0 0 rgba(160, 220, 255, .35), inset -1px 0 0 rgba(255, 190, 230, .25);
}
.btn:not(.ghost):not(.btn-soft) {
  background-color: var(--accent-fill); border-color: rgba(0, 60, 190, .6);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .10) 46%, rgba(255, 255, 255, 0) 50%, rgba(0, 30, 120, .12) 100%),
                    linear-gradient(180deg, #2f8cff, #0a5ff0 60%, #004fd6);
  box-shadow: 0 12px 24px -8px rgba(10, 99, 240, .6),
              inset 0 1.5px 0 rgba(255, 255, 255, .65), inset 0 -2px 6px rgba(0, 30, 120, .3),
              inset 1px 0 0 rgba(140, 225, 255, .45), inset -1px 0 0 rgba(255, 180, 235, .3);
}
.btn.ghost, .btn-soft,
html[data-theme="dark"] .btn.ghost, html[data-theme="dark"] .btn-soft {
  color: var(--ink) !important; background-color: transparent;
  background-image: var(--btn2-fill);
  border: 1px solid rgba(10, 108, 255, .22);
  -webkit-backdrop-filter: var(--ice-blur-lite); backdrop-filter: var(--ice-blur-lite);
  box-shadow: var(--tile-sh);
}
.btn.small { min-height: 38px; }
button {
  background: var(--btn2-fill); border: 1px solid var(--ice-line); border-radius: 12px; color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 4px 10px -6px rgba(30, 70, 110, .3);
}
html[data-theme="dark"] button { box-shadow: inset 0 1px 0 rgba(200, 230, 255, .14), 0 4px 10px -6px rgba(0, 0, 0, .6); }
button:hover { border-color: rgba(90, 150, 220, .5); }
.btn-arrow {
  color: var(--accent-ink); background: var(--tile-fill);
  border: 1px solid var(--ice-line); box-shadow: var(--tile-sh);
}
.btn-arrow:hover { color: var(--accent-ink); border-color: rgba(90, 150, 220, .45); }
.prod-name { color: var(--accent-ink); }

/* ---------- 10. Forms ---------- */
input[type="email"], input[type="password"], input[type="text"], input[type="search"],
input[type="tel"], input[type="number"], input:not([type]), select, textarea {
  background: var(--field-bg); color: var(--ink);
  border: 1px solid var(--ice-line); border-radius: 12px;
  box-shadow: var(--field-sh);
}
input:focus, select:focus, textarea:focus,
.lib-search input[type="search"]:focus {
  outline: none; border-color: rgba(70, 140, 225, .6);
  box-shadow: 0 0 0 4px rgba(70, 140, 225, .16), 0 0 22px -4px rgba(120, 190, 255, .55), var(--field-sh);
}
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent-fill); }
label.opt:hover { background: var(--hover-tint); }
label.opt:has(:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(70, 140, 225, .25); }
.hint { border-radius: 14px; }
pre { background: var(--pre-bg); border-radius: 12px; }

/* ---------- 11. Tables (gray site catalog) ---------- */
.tbl-wrap { border-radius: var(--radius); }
.tbl th, .tbl td { border-color: rgba(60, 100, 140, .10); }
.tbl th { background: rgba(255, 255, 255, .30); color: var(--ink-2); }
.tbl td { background: transparent; }
.tbl tr:hover td { background: rgba(255, 255, 255, .42); }
html[data-theme="dark"] .tbl th { background: rgba(170, 210, 255, .06); }
html[data-theme="dark"] .tbl td { background: transparent; }
html[data-theme="dark"] .tbl tr:hover td { background: rgba(170, 210, 255, .07); }
html[data-theme="dark"] .tbl td, html[data-theme="dark"] .tbl th { border-color: rgba(170, 210, 255, .09); }

/* ---------- 12. Overlays: frosted backdrop + glass panels ---------- */
.login-overlay { background: rgba(12, 32, 56, .26); -webkit-backdrop-filter: blur(6px) saturate(1.15); backdrop-filter: blur(6px) saturate(1.15); }
html[data-theme="light"] .login-overlay { background: rgba(12, 32, 56, .30); }
.ann-modal-backdrop, .flip-backdrop {
  background: rgba(10, 28, 50, .34);
  -webkit-backdrop-filter: blur(8px) saturate(1.2); backdrop-filter: blur(8px) saturate(1.2);
}
.login-card { border-radius: 28px; }
.ann-modal-panel { border-radius: 28px; }
html[data-theme="dark"] .ann-modal-panel { border-color: var(--ice-line); }
.flip-panel { border-radius: 24px; }
.flip-close, .login-x {
  border-radius: 50%; background: var(--tile-fill); border: 1px solid var(--ice-line); box-shadow: var(--tile-sh);
}
.login-x { width: 36px; height: 36px; top: 10px; right: 10px; display: grid; place-items: center; font-size: 20px; }
.ltab { background: var(--tile-fill); border: 1px solid var(--ice-line); }
.ltab.active { background-color: var(--accent-fill); background-image: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%); border-color: rgba(20, 70, 160, .55); }
.login-why { background: var(--accent-soft); border-color: rgba(70, 140, 225, .2); }

/* toast: dark ice */
.toast {
  isolation: isolate; color: #eef6ff;
  background: linear-gradient(180deg, rgba(22, 44, 70, .86), rgba(10, 26, 44, .86));
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(200, 230, 255, .22), var(--pill-sh);
  bottom: calc(92px + env(safe-area-inset-bottom));
}

/* ---------- 13. Account / gray-site components ---------- */
.sub-bar { background: var(--pre-bg); box-shadow: inset 0 1px 3px rgba(30, 70, 110, .12); }
.sub-bar i {
  background: linear-gradient(90deg, #2565c9, #5fb4ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 12px rgba(95, 180, 255, .55);
}
.bal-big {
  background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--ink) 55%, #3d86d6));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bal-big .fine { -webkit-text-fill-color: var(--muted); }
.avatar-fallback { color: var(--accent-ink); background: var(--tile-fill); border: 1px solid var(--ice-line); box-shadow: var(--tile-sh); }
.avatar-img { border: 2px solid rgba(255, 255, 255, .8); box-shadow: 0 8px 18px -8px rgba(30, 70, 110, .45); }
.g-num { color: var(--accent-ink); background: var(--tile-fill); box-shadow: var(--tile-sh); }
.g-warn { border-color: rgba(194, 59, 42, .4); }
.svc-item { background: var(--tile-fill); border-color: var(--ice-line); }
.svc-item.on { border-color: rgba(70, 140, 225, .55); background: var(--accent-soft); }
.svc-hot, .kyc-hl { color: var(--accent-ink); }
.ord-row { background: var(--tile-fill); border-color: var(--ice-line); box-shadow: var(--tile-sh); }
.ord-row.sel { border-color: rgba(70, 140, 225, .55); background: var(--accent-soft); }
.ord-row::before { box-shadow: 0 0 0 1px rgba(90, 160, 235, .35), 0 16px 34px -14px rgba(40, 110, 190, .35); }
.ticket-banner { border-color: rgba(70, 140, 225, .5); background: var(--accent-soft); }
.tk-item { border-top-color: var(--line); }

/* side drawer (gray): warm paper -> ice */
.side-backdrop { background: rgba(10, 28, 50, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.side-panel { border-radius: 28px; }
.side-mark { background: var(--ice-dot); box-shadow: 0 0 0 3px rgba(130, 185, 240, .18), 0 0 14px rgba(120, 185, 255, .6); }
html[data-theme="dark"] .side-mark { background: var(--ice-dot); }
.side-select, html[data-theme="dark"] .side-select {
  background: var(--btn2-fill); border-color: var(--ice-line); box-shadow: var(--tile-sh);
}
.side-row:hover, html[data-theme="dark"] .side-row:hover { background: var(--hover-tint); }
.side-subrow, html[data-theme="dark"] .side-subrow { background: var(--hover-tint); }
.side-subrow:hover, html[data-theme="dark"] .side-subrow:hover { background: rgba(70, 130, 190, .12); }
.side-subrow[aria-pressed="true"], html[data-theme="dark"] .side-subrow[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.side-foot { background: linear-gradient(180deg, rgba(240, 246, 251, .5), rgba(240, 246, 251, .95)); }
html[data-theme="dark"] .side-foot { background: linear-gradient(180deg, rgba(10, 22, 38, .5), rgba(10, 22, 38, .95)); }
.side-primary {
  color: #f2f8ff; border-color: #0d1f33;
  background: linear-gradient(180deg, #24425f, #0d1f33 62%);
  box-shadow: inset 0 1px 0 rgba(200, 230, 255, .28), 0 14px 26px -12px rgba(8, 24, 44, .6);
}
.side-primary:hover { border-color: #0d1f33; }
html[data-theme="dark"] .side-primary {
  color: #0a1a2c; border-color: #eaf4ff;
  background: linear-gradient(180deg, #ffffff, #d6e7f8);
}

/* ---------- 15. Mobile proportions ---------- */
/* fix: the gray site sets button{min-height:38px}, which stretches the carousel dots into tall bars */
.ann-dot { min-height: 0; }
.doc { font-size: 16px; }

@media (max-width: 640px) {
  /* iOS Safari zooms the whole page when focusing an input under 16px; this is the most important one */
  input[type="email"], input[type="password"], input[type="text"], input[type="search"],
  input[type="tel"], input[type="number"], input:not([type]), select, textarea { font-size: 16px; min-height: 44px; }
  .code-row .btn, .code-row button { min-height: 44px; }

  /* type scale: body 15 / small text never below 12.5 / headings in tighter steps */
  body { font-size: 15px; line-height: 1.65; }
  h1 { font-size: 22px; line-height: 1.3; }
  h2.sec-title { margin: 24px 2px 10px; font-size: 15.5px; }
  .panel h2, .flow-card > h2 { font-size: 16px; }
  .fine, .meta, .art-sum { font-size: 13px; }
  .brand { font-size: 18px; letter-spacing: 3px; }

  /* spacing: page margin 12, card padding 16, list item padding 14 */
  .page { padding-left: 12px; padding-right: 12px; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .card, .panel { padding: 16px; border-radius: 20px; }
  .art-card { padding: 14px 15px 12px; border-radius: 16px; }
  .art-card h3 { font-size: 15.5px; }
  /* summaries clamp to 2 lines on phones so lists are easier to scan */
  .art-sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .topbar-in { height: 50px; }
  .chips { top: calc(66px + env(safe-area-inset-top)); }

  /* touch: primary actions >= 44px */
  .btn { min-height: 44px; }
  .btn.small { min-height: 36px; }
  .btn-arrow { width: 40px; height: 40px; }
  label.opt { min-height: 46px; }

  /* tables: prices never wrap, and the action column doesn't get squeezed */
  .tbl td:nth-child(2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
  .tbl td, .tbl th { font-size: 14px; }

  /* login / announcement become bottom sheets: thumb-reachable, with a drag handle on top */
  .login-overlay { align-items: flex-end; padding: 0 8px calc(8px + env(safe-area-inset-bottom)); }
  .login-card { width: 100%; max-width: 520px; max-height: 88dvh; border-radius: 28px; padding: 30px 18px 18px; }
  .login-card::before {
    inset: auto; top: 9px; left: 50%; width: 40px; height: 5px; margin-left: -20px;
    border-radius: 3px; background: rgba(10, 60, 120, .22); opacity: 1; z-index: 1;
  }
  html[data-theme="dark"] .login-card::before { background: rgba(170, 215, 255, .3); }
  .ann-modal { align-items: flex-end; padding: 0 8px calc(8px + env(safe-area-inset-bottom)); }
  .ann-modal-panel { width: 100%; max-width: 520px; padding: 22px 18px 16px; transform: translateY(60%); }
  .ann-modal.open .ann-modal-panel { transform: none; }
}
/* small screens (iPhone SE / narrow Android) */
@media (max-width: 370px) {
  .page, .home-flow { padding-left: 10px; padding-right: 10px; }
  .col-grid { gap: 6px; }
  .col-cell .col-name { font-size: 12px; }
  .col-cell .col-count { font-size: 11px; }
  .dock-item { font-size: 10.5px; letter-spacing: 0; }
  .card, .panel { padding: 14px; }
}
/* landscape phones: tighter top and bottom bars so the content isn't squeezed */
@media (max-height: 480px) and (orientation: landscape) {
  .topbar-in { height: 44px; }
  .dock-item span { display: none; }
  .dock-item { padding: 8px 2px; }
  .page { padding-top: calc(64px + env(safe-area-inset-top)); }
}

/* ---------- 14. Fallbacks ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --ice-fill: linear-gradient(158deg, rgba(255, 255, 255, .94), rgba(240, 247, 252, .92)); --ice-fill-bar: rgba(250, 253, 255, .96); }
  html[data-theme="dark"] { --ice-fill: linear-gradient(158deg, rgba(30, 52, 80, .96), rgba(14, 28, 46, .96)); --ice-fill-bar: rgba(16, 32, 52, .97); }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --ice-fill: linear-gradient(#f9fbfd, #f3f7fb); --ice-fill-bar: #f9fbfd; --ice-fill-strong: #fbfdfe; --grain: none; }
  html[data-theme="dark"] { --ice-fill: linear-gradient(#13263c, #0f2033); --ice-fill-bar: #12243a; --ice-fill-strong: #12243a; --grain: none; }
}
@media (max-width: 640px) {
  .topbar { left: 8px; right: 8px; border-radius: 18px; }
  .topbar-in { padding: 0 6px 0 14px; }
  .col-grid { gap: 8px; }
  .col-cell { padding: 10px 2px 8px; border-radius: 16px; }
  .col-cell .col-ico { width: 34px; height: 34px; border-radius: 12px; margin-bottom: 6px; }
  .col-cell .col-name { font-size: 12.5px; }
}
/* ==================== END SNOW-GLASS LAYER ==================== */

/* ---------- SNOW-GLASS · front-site only ---------- */
/* article reading surface: strong-fill glass, easier on the eyes */
.doc {
  position: relative; isolation: isolate; border-radius: 26px;
  background: var(--grain), var(--ice-fill-strong);
  -webkit-backdrop-filter: var(--ice-blur); backdrop-filter: var(--ice-blur);
  border: 1px solid var(--ice-line);
  box-shadow: var(--ice-sh), var(--shadow);
}
.doc::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: var(--ice-disp), var(--ice-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.doc { line-height: 1.8; }
.doc h2 { margin: 1.6em 0 .6em; }
.doc img, .doc video { max-width: 100%; height: auto; border-radius: 14px; }
.flip-body .doc { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.flip-body .doc::after { display: none; }
/* text-shadow made text look blurry on glass; switch to a softer version */
.doc, .panel, .flow-card, .art-card { text-shadow: none; }
html[data-theme="dark"] :is(.doc, .panel, .flow-card, .art-card) { text-shadow: 0 1px 1px rgba(0, 6, 16, .45); }

/* background photo: blue duotone (keeps the photo's light and shadow, recolors it to one clear blue so green grass never looks muddy) */
.bg-photo {
  background-image: linear-gradient(var(--duo), var(--duo)), var(--photo, url("/assets/meadow-bg.jpg"));
  background-blend-mode: color;
  filter: brightness(1.22) contrast(.82) saturate(1.05);
}
.bg-photo::after {
  background:
    radial-gradient(900px 520px at 50% 108%, rgba(255, 255, 255, .7), transparent 70%),
    linear-gradient(180deg, rgba(220, 238, 255, .40), rgba(236, 246, 255, .26) 45%, rgba(246, 251, 255, .55));
}
html[data-theme="dark"] .bg-photo { filter: brightness(.42) contrast(1.1) saturate(1.2); }
html[data-theme="dark"] .bg-photo::after {
  background:
    radial-gradient(900px 520px at 50% 110%, rgba(0, 120, 255, .22), transparent 70%),
    linear-gradient(180deg, rgba(2, 14, 28, .30), rgba(2, 12, 24, .18) 45%, rgba(2, 11, 22, .55));
}

/* home hero: snow mist at the bottom so it blends into the page below */
.sea::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(232, 244, 255, 0), rgba(232, 244, 255, .5) 70%, rgba(232, 244, 255, .85));
}
html[data-theme="dark"] .sea::after {
  background: linear-gradient(180deg, rgba(3, 17, 31, 0), rgba(3, 17, 31, .55) 70%, rgba(3, 17, 31, .9));
}

/* =====================================================================
   SNOW-GLASS LAYER v2.1 · 2026-11-26 · more transparent content cards
   Append to the very end of style.css (after the form completion section).
   Rollback: delete everything from this marker to "END SNOW-GLASS v2.1".
   Scope: only content cards (.card/.panel/.tbl-wrap/.related/.art-card/fieldset/.glass and small tiles).
   Unchanged: article reading surface (.doc / .flip-panel), modals, top bar, dock, chips, ann strip (blur, fill, inner shadow and gloss all identical to v2).
   Global: secondary text (--muted / --ink-2) one step darker, a legibility floor.
   ===================================================================== */
:root {
  /* card fill down one step: .46/.18/.14 -> .30/.10/.06 */
  --ice-fill: linear-gradient(160deg, rgba(255, 255, 255, .30) 0%, rgba(255, 255, 255, .10) 42%, rgba(220, 238, 255, .06) 100%);
  /* card-only blur: 10px -> 6px, lower saturation/brightness boost so scenery isn't washed toward milk-blue */
  --card-blur: blur(6px) saturate(1.5) brightness(1.03);
  --card-blur-lite: blur(5px) saturate(1.45) brightness(1.02);
  --tile-fill: linear-gradient(160deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .07));
  /* less inner "milk haze" (cards only; the reading surface, modals and bars keep --ice-sh) */
  --card-sh: inset 0 1.5px 0 rgba(255, 255, 255, 1),
            inset 0 -1px 0 rgba(255, 255, 255, .7),
            inset 0 0 0 1px rgba(255, 255, 255, .18),
            inset 0 0 18px rgba(70, 160, 255, .12),
            inset 0 24px 22px -24px rgba(255, 255, 255, .7);
  --card-gloss: linear-gradient(118deg, rgba(255, 255, 255, .40) 0%, rgba(255, 255, 255, .10) 26%, rgba(255, 255, 255, 0) 27.5%,
           rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .08) 73%, rgba(255, 255, 255, 0) 86%);
  /* legibility floor: secondary text one step darker, so it stays >= 4.5:1 when scenery shows through */
  --muted: #3a5b7d;
  --ink-2: #163a5e;
}
html[data-theme="dark"] {
  --ice-fill: linear-gradient(160deg, rgba(140, 200, 255, .11) 0%, rgba(70, 140, 230, .04) 48%, rgba(20, 70, 140, .07) 100%);
  --card-blur: blur(8px) saturate(1.4) brightness(1.03);
  --card-blur-lite: blur(6px) saturate(1.35) brightness(1.02);
  --tile-fill: linear-gradient(160deg, rgba(120, 190, 255, .11), rgba(40, 100, 190, .04));
  --card-sh: inset 0 1.5px 0 rgba(200, 235, 255, .5),
            inset 0 -1px 0 rgba(120, 200, 255, .22),
            inset 0 0 0 1px rgba(140, 210, 255, .05),
            inset 0 0 20px rgba(40, 150, 255, .12),
            inset 0 24px 22px -24px rgba(170, 220, 255, .22);
  --card-gloss: linear-gradient(118deg, rgba(170, 220, 255, .12) 0%, rgba(170, 220, 255, .04) 26%, rgba(170, 220, 255, 0) 27.5%,
           rgba(170, 220, 255, 0) 72%, rgba(170, 220, 255, .03) 73%, rgba(170, 220, 255, 0) 86%);
  --muted: #9bbcdc;
  --ink-2: #c4def6;
}
/* only content cards switch to the lighter blur; strong-fill surfaces and bars keep var(--ice-blur) */
.glass, .card, .panel, fieldset, .tbl-wrap, .related {
  -webkit-backdrop-filter: var(--card-blur); backdrop-filter: var(--card-blur);
}
.art-card { -webkit-backdrop-filter: var(--card-blur-lite); backdrop-filter: var(--card-blur-lite); }
.glass, .card, .panel, fieldset, .tbl-wrap, .related, .art-card,
html[data-theme="dark"] :is(.glass, .card, .panel, fieldset, .tbl-wrap, .related, .art-card) { box-shadow: var(--card-sh), var(--shadow); }
:is(.card, .art-card):hover { box-shadow: var(--card-sh), 0 0 0 1px rgba(10, 108, 255, .12), 0 22px 44px -18px rgba(0, 90, 220, .30); }
html[data-theme="dark"] :is(.card, .art-card):hover { box-shadow: var(--card-sh), 0 0 0 1px rgba(120, 190, 255, .16), 0 22px 44px -18px rgba(0, 10, 30, .9); }
:is(.glass, .card, .panel, .art-card, .tbl-wrap, .related, .col-cell, .pager-link)::before { background: var(--spec), var(--card-gloss); }
/* table header band: one step lighter too, so the table and cards read as the same glass */
.tbl th { background: rgba(255, 255, 255, .18); }
html[data-theme="dark"] .tbl th { background: rgba(170, 210, 255, .05); }

/* front base sets .tbl{background:var(--surface-solid)}, an opaque slab; let the table show the glass behind it */
.tbl { background: transparent; }
/* glass on glass: inner cards nested in a panel become "thin glass" (edge highlights only, no second blur, very light fill)
   two stacked blurs + fills cut the transparency roughly in half; this also saves one GPU blur pass */
.panel :is(.art-card, .card), .card .art-card {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .24), rgba(255, 255, 255, .05));
}
html[data-theme="dark"] .panel :is(.art-card, .card), html[data-theme="dark"] .card .art-card {
  background: linear-gradient(160deg, rgba(140, 200, 255, .08), rgba(140, 200, 255, .02));
}

/* re-declare the fallbacks (the tokens above come later in the file and would otherwise override the earlier fallbacks) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --ice-fill: linear-gradient(158deg, rgba(255, 255, 255, .94), rgba(240, 247, 252, .92)); }
  html[data-theme="dark"] { --ice-fill: linear-gradient(158deg, rgba(20, 44, 74, .96), rgba(10, 28, 50, .96)); }
}
@media (prefers-reduced-transparency: reduce) {
  :root { --ice-fill: linear-gradient(#f9fbfd, #f3f7fb); --tile-fill: #f6fafd; }
  html[data-theme="dark"] { --ice-fill: linear-gradient(#13263c, #0f2033); --tile-fill: #12243a; }
}

/* front only: thinner snow-mist wash over the photo so the scenery shows (duotone and filter unchanged) */
.bg-photo::after {
  background:
    radial-gradient(900px 520px at 50% 108%, rgba(255, 255, 255, .55), transparent 70%),
    linear-gradient(180deg, rgba(220, 238, 255, .24), rgba(236, 246, 255, .10) 45%, rgba(246, 251, 255, .40));
}
html[data-theme="dark"] .bg-photo::after {
  background:
    radial-gradient(900px 520px at 50% 110%, rgba(0, 120, 255, .18), transparent 70%),
    linear-gradient(180deg, rgba(2, 14, 28, .22), rgba(2, 12, 24, .10) 45%, rgba(2, 11, 22, .45));
}
/* ==================== END SNOW-GLASS v2.1 ==================== */

/* =====================================================================
   SNOW-GLASS LAYER v3 · 2026-11-27 · Apple interface feel
   Append to the very end of style.css (after v2.1).
   Rollback: delete everything from this marker to "END SNOW-GLASS v3".
   Unchanged: snow-blue palette, v2.1 transparency, form sizing (padding / font size / width / height
   of inputs and radio/checkbox are not touched).
   Rules that depend on motion.js v2 are prefixed with html.q-apple and only apply when the new JS is live.
   ===================================================================== */

/* ---------- A. Type: system font + iOS Dynamic Type scale ---------- */
:root {
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue",
             "Segoe UI", "Microsoft YaHei", sans-serif;
  --t-large: 34px;     /* Large Title */
  --t-title2: 22px;
  --t-title3: 19px;
  --t-headline: 17px;
  --t-body: 16px;
  --t-sub: 15px;
  --t-foot: 13px;
  --hairline: 1px;
}
@media (min-resolution: 2dppx) { :root { --hairline: .5px; } }   /* retina: true 0.5px hairlines */
body {
  font-family: var(--font-ui); font-size: var(--t-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1 { font-size: var(--t-large); line-height: 1.18; font-weight: 700; letter-spacing: -.02em; }
.panel h2, .flow-card > h2, .card h2 { font-size: var(--t-title3); font-weight: 650; letter-spacing: -.01em; }
h2.sec-title { font-size: var(--t-title3); letter-spacing: .01em; }
.art-card h3 { font-size: var(--t-headline); font-weight: 600; letter-spacing: -.01em; }
.lead { font-size: var(--t-sub); color: var(--ink-2); }
.fine, .meta { font-size: var(--t-foot); }
.bal-big { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 640px) {
  body { font-size: var(--t-body); }
  h1 { font-size: 30px; line-height: 1.2; }
  .panel h2, .flow-card > h2, .card h2 { font-size: 18px; }
  h2.sec-title { font-size: 18px; }
}

/* ---------- B. Hairlines and lists ---------- */
.tbl th, .tbl td { border-width: 0 0 var(--hairline); }
.tbl th { font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--muted); }
/* "Me" page info rows: grouped-list rows with hairline dividers (no template change; label and value stay in one text run) */
.info-rows p { margin: 0; padding: 11px 2px; border-bottom: var(--hairline) solid var(--line); font-size: var(--t-sub); }
.info-rows p:last-child { border-bottom: 0; }
.panel > h2 + .info-rows { margin-top: -4px; }

/* ---------- C. Buttons: three Apple styles (prominent / glass / plain) ---------- */
/* regular filled button: 44pt touch target, semibold */
.btn { min-height: 44px; font-weight: 600; letter-spacing: 0; }
.btn.small { min-height: 34px; padding: 6px 14px; font-size: 14px; }
/* prominent: full-width primary actions are 50px capsules, 17px semibold */
:is(.btn-block, .login-go, .buy-big, .ann-modal-close).btn {
  min-height: 50px; font-size: var(--t-headline); font-weight: 600; border-radius: 999px;
}
/* glass button: Apple glass style uses the tint color for its label */
.btn.ghost, .btn-soft,
html[data-theme="dark"] .btn.ghost, html[data-theme="dark"] .btn-soft { color: var(--accent-ink) !important; font-weight: 600; }
/* plain buttons (no class): Apple "gray" style, tinted fill + tint-colored label, sizes unchanged */
button { color: var(--accent-ink); font-weight: 600; }
button:not([class]) {
  background: rgba(10, 108, 255, .09); border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
html[data-theme="dark"] button:not([class]) { background: rgba(90, 170, 255, .14); box-shadow: inset 0 1px 0 rgba(200, 230, 255, .1); }
button:not([class]):hover { background: rgba(10, 108, 255, .14); border-color: transparent; }

/* ---------- D. Inputs: Apple filled fields (color / border / corners only, sizes untouched) ---------- */
input[type="email"], input[type="password"], input[type="text"], input[type="search"],
input[type="tel"], input[type="number"], input:not([type]), select, textarea {
  background: rgba(255, 255, 255, .58); border-color: rgba(3, 32, 60, .10); border-radius: 12px;
  box-shadow: none;
}
html[data-theme="dark"] :is(input[type="email"], input[type="password"], input[type="text"], input[type="search"],
input[type="tel"], input[type="number"], input:not([type]), select, textarea) {
  background: rgba(120, 170, 230, .12); border-color: rgba(170, 210, 255, .12);
}
input:focus, select:focus, textarea:focus, .lib-search input[type="search"]:focus {
  border-color: rgba(10, 108, 255, .55);
  box-shadow: 0 0 0 3.5px rgba(10, 108, 255, .22);
}
::placeholder { color: var(--muted); opacity: .75; }
:focus-visible { outline: 2.5px solid rgba(10, 108, 255, .55); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- E. Toast becomes an iOS-style top banner (drops down below the top bar) ---------- */
.toast {
  top: calc(66px + env(safe-area-inset-top)); bottom: auto;
  transform: translate(-50%, -14px) scale(.96);
  padding: 11px 20px; font-size: 15px; font-weight: 600; letter-spacing: 0;
}
.toast.show { transform: translate(-50%, 0) scale(1); }

/* ---------- F. Sheets: big continuous-feel corners + grabber ---------- */
.ann-modal-panel { border-radius: 30px; }
.login-card { border-radius: 32px; }
.q-grabber {
  position: absolute; top: 0; left: 22%; right: 22%; height: 30px; z-index: 3;
  touch-action: none; cursor: grab;
}
.q-grabber::before {
  content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 5px; margin-left: -19px;
  border-radius: 3px; background: rgba(3, 32, 60, .22);
}
html[data-theme="dark"] .q-grabber::before { background: rgba(200, 230, 255, .32); }
/* the login card's mobile handle (from v2's ::before) is replaced by .q-grabber; restore the specular highlight */
html.q-apple .login-card::before {
  inset: 0; top: 0; left: 0; width: auto; height: auto; margin: 0; border-radius: inherit;
  background: var(--spec), var(--gloss); opacity: .8; z-index: -1;
}
@media (max-width: 640px) {
  .ann-modal-panel { border-radius: 30px 30px 26px 26px; padding-top: 30px; }
  .login-card { border-radius: 32px 32px 28px 28px; }
}

/* ---------- G. Navigation-bar inline title (the large title collapses into it on scroll) ---------- */
.q-navtitle {
  position: absolute; left: 18px; top: 50%; max-width: calc(100% - 196px);
  translate: 0 calc(-50% + 8px); opacity: 0; pointer-events: none;
  font-size: var(--t-headline); font-weight: 600; letter-spacing: -.01em; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 640px) { .q-navtitle { left: 14px; max-width: calc(100% - 178px); } }
.topbar-in { position: relative; }
html.q-title-in .q-navtitle { opacity: 1; translate: 0 -50%; }
html.q-title-in .brand { opacity: 0; }
.brand { transition: opacity .25s; }

/* ---------- H. Dock: Liquid Glass tab bar ---------- */
html.q-apple .dock { touch-action: none; }
html.q-apple .dock-item { -webkit-user-drag: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.dock-item span { transition: opacity .25s; }
/* dragging: the capsule turns into a lens and the icon under the finger magnifies */
.dock.q-drag .dock-capsule {
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .55) 55%, rgba(210, 235, 255, .7));
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -1px 0 rgba(255, 255, 255, .9),
              inset 2px 0 0 rgba(120, 220, 255, .75), inset -2px 0 0 rgba(255, 170, 230, .6),
              0 10px 26px -6px rgba(0, 80, 180, .4);
}
html[data-theme="dark"] .dock.q-drag .dock-capsule {
  background: linear-gradient(180deg, rgba(190, 230, 255, .42), rgba(120, 190, 255, .14) 55%, rgba(120, 190, 255, .24));
}
.dock-item.q-hover { color: var(--accent-ink); }
.ltab.active { color: #fff; }
/* ==================== END SNOW-GLASS v3 ==================== */


/* =====================================================================
   SNOW-GLASS LAYER v3.2 · 2026-11-27 · color system: from single blue to a harmonized palette
   Append to the very end of style.css (after v3).
   Rollback: delete everything from this marker to "END SNOW-GLASS v3.2".
   Approach: 8 hues aligned in OKLCH lightness/chroma (so more colors don't get noisy) + semantic roles:
     main actions stay azure (gradient to indigo) / one fixed color per column / prices warm amber /
     announcements and hot items coral / metadata teal / background goes from single-blue duotone to an aurora gradient tint.
   Text colors are contrast-checked: dark variants on light >= 5.7:1, light variants in dark mode >= 10:1.
   ===================================================================== */
:root {
  --h-azure: #3f93f7; --h-azure-hi: #84c1ff; --h-azure-lo: #0267c7; --h-azure-ink: #0359ae;
  --h-teal: #00a8a9; --h-teal-hi: #72d0d0; --h-teal-lo: #007d7e; --h-teal-ink: #006c6d;
  --h-violet: #9b79ee; --h-violet-hi: #c4adff; --h-violet-lo: #734dbe; --h-violet-ink: #6343a6;
  --h-amber: #cb7f00; --h-amber-hi: #ecb16a; --h-amber-lo: #9d5400; --h-amber-ink: #894900;
  --h-coral: #e36650; --h-coral-hi: #ffa08d; --h-coral-lo: #b23a26; --h-coral-ink: #9b3120;
  --h-mint: #35aa76; --h-mint-hi: #84d1a8; --h-mint-lo: #007f4e; --h-mint-ink: #006e43;
  --h-indigo: #7189f3; --h-indigo-hi: #a3b9ff; --h-indigo-lo: #4b5dc3; --h-indigo-ink: #4051aa;
  --h-rose: #d76797; --h-rose-hi: #f79fc1; --h-rose-lo: #a73b6d; --h-rose-ink: #92335f;
  /* background tint: violet-blue sky -> azure mountains -> teal meadow (keeps the photo's light and shadow, only changes hue) */
  --duo-grad: linear-gradient(180deg, #9a86ff 0%, #4aa3ff 40%, #2bb6d6 70%, #16b3a6 100%);
}
html[data-theme="dark"] {
  --h-azure-ink: #95ceff;
  --h-teal-ink: #85dcdb;
  --h-violet-ink: #d0bbff;
  --h-amber-ink: #f7bf7d;
  --h-coral-ink: #ffaf9d;
  --h-mint-ink: #95ddb6;
  --h-indigo-ink: #b1c6ff;
  --h-rose-ink: #ffaece;
  --duo-grad: linear-gradient(180deg, #5b4bd6 0%, #1a5fb8 42%, #0e7fa0 72%, #0d8f86 100%);
}

/* ---------- 1. Background: aurora gradient tint ---------- */
.bg-photo { background-image: var(--duo-grad), var(--photo, url("/assets/meadow-bg.jpg")); background-blend-mode: color, normal; }
/* front wash: add a warm glow of sunlit snow (temperature contrast; light mode only) */
.bg-photo::after {
  background:
    radial-gradient(700px 420px at 12% 104%, rgba(255, 196, 160, .30), transparent 70%),
    radial-gradient(900px 520px at 50% 108%, rgba(255, 255, 255, .50), transparent 70%),
    linear-gradient(180deg, rgba(232, 236, 255, .22), rgba(236, 246, 255, .10) 45%, rgba(246, 251, 255, .38));
}
/* gray: same stack (warm glow / wash / aurora tint / photo) */
body::before {
  background-image:
    radial-gradient(700px 420px at 12% 104%, rgba(255, 196, 160, .30), transparent 70%),
    radial-gradient(900px 520px at 50% 108%, rgba(255, 255, 255, .50), transparent 70%),
    linear-gradient(180deg, rgba(232, 236, 255, .22), rgba(236, 246, 255, .10) 45%, rgba(246, 251, 255, .38)),
    var(--duo-grad),
    var(--photo, url("/assets/meadow-bg.jpg"));
  background-blend-mode: normal, normal, normal, color, normal;
}
html[data-theme="dark"] body::before {
  background-image:
    radial-gradient(800px 460px at 85% -6%, rgba(40, 220, 170, .16), transparent 70%),
    radial-gradient(900px 520px at 50% 110%, rgba(0, 120, 255, .16), transparent 70%),
    linear-gradient(180deg, rgba(2, 14, 28, .22), rgba(2, 12, 24, .10) 45%, rgba(2, 11, 22, .45)),
    var(--duo-grad),
    var(--photo, url("/assets/meadow-bg.jpg"));
  background-blend-mode: normal, normal, normal, color, normal;
}
html[data-theme="dark"] .bg-photo::after {
  background:
    radial-gradient(800px 460px at 85% -6%, rgba(40, 220, 170, .16), transparent 70%),
    radial-gradient(900px 520px at 50% 110%, rgba(0, 120, 255, .16), transparent 70%),
    linear-gradient(180deg, rgba(2, 14, 28, .22), rgba(2, 12, 24, .10) 45%, rgba(2, 11, 22, .45));
}

/* ---------- 2. One fixed color per column (home tiles / library sections / chips agree) ---------- */
.col-cell[href$="#col-0"], #col-0, .chip[data-col="0"] { --c: var(--h-azure); --c-hi: var(--h-azure-hi); --c-lo: var(--h-azure-lo); --c-ink: var(--h-azure-ink); }
.col-cell[href$="#col-1"], #col-1, .chip[data-col="1"] { --c: var(--h-teal); --c-hi: var(--h-teal-hi); --c-lo: var(--h-teal-lo); --c-ink: var(--h-teal-ink); }
.col-cell[href$="#col-2"], #col-2, .chip[data-col="2"] { --c: var(--h-violet); --c-hi: var(--h-violet-hi); --c-lo: var(--h-violet-lo); --c-ink: var(--h-violet-ink); }
.col-cell[href$="#col-3"], #col-3, .chip[data-col="3"] { --c: var(--h-amber); --c-hi: var(--h-amber-hi); --c-lo: var(--h-amber-lo); --c-ink: var(--h-amber-ink); }
.col-cell[href$="#col-4"], #col-4, .chip[data-col="4"] { --c: var(--h-coral); --c-hi: var(--h-coral-hi); --c-lo: var(--h-coral-lo); --c-ink: var(--h-coral-ink); }
.col-cell[href$="#col-5"], #col-5, .chip[data-col="5"] { --c: var(--h-mint); --c-hi: var(--h-mint-hi); --c-lo: var(--h-mint-lo); --c-ink: var(--h-mint-ink); }
.col-cell[href$="#col-6"], #col-6, .chip[data-col="6"] { --c: var(--h-indigo); --c-hi: var(--h-indigo-hi); --c-lo: var(--h-indigo-lo); --c-ink: var(--h-indigo-ink); }
.col-cell[href$="#col-7"], #col-7, .chip[data-col="7"] { --c: var(--h-rose); --c-hi: var(--h-rose-hi); --c-lo: var(--h-rose-lo); --c-ink: var(--h-rose-ink); }
.col-cell[href$="#col-8"], #col-8, .chip[data-col="8"] { --c: var(--h-azure); --c-hi: var(--h-azure-hi); --c-lo: var(--h-azure-lo); --c-ink: var(--h-azure-ink); }
.col-cell[href$="#col-9"], #col-9, .chip[data-col="9"] { --c: var(--h-teal); --c-hi: var(--h-teal-hi); --c-lo: var(--h-teal-lo); --c-ink: var(--h-teal-ink); }
.col-cell[href$="#col-10"], #col-10, .chip[data-col="10"] { --c: var(--h-violet); --c-hi: var(--h-violet-hi); --c-lo: var(--h-violet-lo); --c-ink: var(--h-violet-ink); }
.col-cell[href$="#col-11"], #col-11, .chip[data-col="11"] { --c: var(--h-amber); --c-hi: var(--h-amber-hi); --c-lo: var(--h-amber-lo); --c-ink: var(--h-amber-ink); }
.col-cell[href$="#col-12"], #col-12, .chip[data-col="12"] { --c: var(--h-coral); --c-hi: var(--h-coral-hi); --c-lo: var(--h-coral-lo); --c-ink: var(--h-coral-ink); }
.col-cell[href$="#col-13"], #col-13, .chip[data-col="13"] { --c: var(--h-mint); --c-hi: var(--h-mint-hi); --c-lo: var(--h-mint-lo); --c-ink: var(--h-mint-ink); }
.col-cell[href$="#col-14"], #col-14, .chip[data-col="14"] { --c: var(--h-indigo); --c-hi: var(--h-indigo-hi); --c-lo: var(--h-indigo-lo); --c-ink: var(--h-indigo-ink); }
.col-cell[href$="#col-15"], #col-15, .chip[data-col="15"] { --c: var(--h-rose); --c-hi: var(--h-rose-hi); --c-lo: var(--h-rose-lo); --c-ink: var(--h-rose-ink); }
.col-cell .col-ico, html[data-theme="dark"] .col-cell .col-ico {
  background: linear-gradient(165deg, var(--c-hi, #84c1ff) 0%, var(--c, #3f93f7) 48%, var(--c-lo, #0267c7) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .6), inset 0 -3px 6px rgba(0, 20, 60, .25),
              0 8px 16px -7px var(--c, #3f93f7);
}
.col-cell.col-shop .col-ico, html[data-theme="dark"] .col-cell.col-shop .col-ico {
  background: linear-gradient(165deg, #f3f6fb, #c9d4e3 55%, #9fb0c8); color: #34465c;
}
.col-cell:hover { border-color: var(--c-hi, rgba(10, 108, 255, .35)); }
.lib-sec h2.sec-title::before {
  background: radial-gradient(circle at 35% 30%, #fff 0 16%, var(--c-hi) 45%, var(--c) 100%);
  box-shadow: 0 0 0 3px rgba(130, 160, 220, .14), 0 0 12px var(--c-hi);
}
.lib-sec .sec-count { color: var(--c-ink); background: var(--accent-soft); background: color-mix(in srgb, var(--c) 13%, transparent);
  border-color: color-mix(in srgb, var(--c) 26%, transparent); }
.lib-sec .meta-col { color: var(--c-ink); }
.chip.active { color: var(--c-ink, var(--accent-ink)); }
.lib-sec .art-card:hover { border-color: color-mix(in srgb, var(--c) 40%, transparent); }

/* ---------- 3. Catalog sections (gray and front catalog pages): cycle through the 8 colors in order ---------- */
main > h2.sec-title:nth-of-type(8n+1) { --c: var(--h-azure); --c-hi: var(--h-azure-hi); --c-lo: var(--h-azure-lo); --c-ink: var(--h-azure-ink); }
main > h2.sec-title:nth-of-type(8n+2) { --c: var(--h-teal); --c-hi: var(--h-teal-hi); --c-lo: var(--h-teal-lo); --c-ink: var(--h-teal-ink); }
main > h2.sec-title:nth-of-type(8n+3) { --c: var(--h-violet); --c-hi: var(--h-violet-hi); --c-lo: var(--h-violet-lo); --c-ink: var(--h-violet-ink); }
main > h2.sec-title:nth-of-type(8n+4) { --c: var(--h-amber); --c-hi: var(--h-amber-hi); --c-lo: var(--h-amber-lo); --c-ink: var(--h-amber-ink); }
main > h2.sec-title:nth-of-type(8n+5) { --c: var(--h-coral); --c-hi: var(--h-coral-hi); --c-lo: var(--h-coral-lo); --c-ink: var(--h-coral-ink); }
main > h2.sec-title:nth-of-type(8n+6) { --c: var(--h-mint); --c-hi: var(--h-mint-hi); --c-lo: var(--h-mint-lo); --c-ink: var(--h-mint-ink); }
main > h2.sec-title:nth-of-type(8n+7) { --c: var(--h-indigo); --c-hi: var(--h-indigo-hi); --c-lo: var(--h-indigo-lo); --c-ink: var(--h-indigo-ink); }
main > h2.sec-title:nth-of-type(8n+8) { --c: var(--h-rose); --c-hi: var(--h-rose-hi); --c-lo: var(--h-rose-lo); --c-ink: var(--h-rose-ink); }
main > h2.sec-title::before {
  background: radial-gradient(circle at 35% 30%, #fff 0 16%, var(--c-hi, #84c1ff) 45%, var(--c, #3f93f7) 100%);
  box-shadow: 0 0 0 3px rgba(130, 160, 220, .14), 0 0 12px var(--c-hi, #84c1ff);
}
main > h2.sec-title .fine { color: var(--c-ink, var(--muted)); font-weight: 600; }

/* ---------- 4. Semantic colors ---------- */
/* price: warm amber (only the price column of a catalog table, other tables untouched) */
h2.sec-title + .tbl-wrap .tbl td:nth-child(2) { color: var(--h-amber-ink); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* announcement / hot: coral */
.ann-tag {
  background-color: var(--h-coral);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 55%),
                    linear-gradient(135deg, var(--h-coral) 0%, var(--h-rose) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 12px -2px rgba(227, 102, 80, .5);
}
.svc-hot { color: var(--h-coral-ink); }
/* metadata / eyebrow: teal (separates it from the azure of clickable links) */
.tag, .meta-col { color: var(--h-teal-ink); }
/* balance: azure -> violet gradient digits */
.bal-big { background: linear-gradient(100deg, var(--h-azure-lo), var(--h-violet-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="dark"] .bal-big { background: linear-gradient(100deg, #ffffff 0%, #b5ddff 55%, #dccdff 100%); -webkit-background-clip: text; background-clip: text; }
/* progress bar: teal -> azure -> violet */
.sub-bar i { background: linear-gradient(90deg, var(--h-teal), var(--h-azure) 55%, var(--h-violet)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 12px rgba(90, 160, 255, .5); }
/* primary button: azure -> indigo diagonal gradient, more depth than flat blue */
.btn:not(.ghost):not(.btn-soft) {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .40) 0%, rgba(255, 255, 255, .08) 46%, rgba(255, 255, 255, 0) 50%, rgba(0, 20, 80, .10) 100%),
                    linear-gradient(135deg, #3d9bff 0%, #0a63f0 50%, #4b4fd0 100%);
}
/* warning stays amber, errors and danger coral (clearly separated from the blue) */
.hint { border-color: color-mix(in srgb, var(--h-amber) 45%, transparent); }
.login-err { color: var(--h-coral-ink); }
::selection { background: rgba(155, 121, 238, .28); }
/* ==================== END SNOW-GLASS v3.2 ==================== */

/* =====================================================================
   SNOW-GLASS LAYER v3.3 · 2026-11-27 · performance (low-end lite mode)
   Append to the very end of style.css (after v3.2).
   Rollback: delete everything from this marker to "END SNOW-GLASS v3.3".
   html.q-lite is set by motion.js v4 on low-end devices / sustained dropped frames; high-end devices see no change.
   Main cost: every content card running a live backdrop-filter blur; the snow animating behind them makes every
   blur recompute every frame. Lite mode turns content cards into a near-solid "frosted look" gradient; only the
   top bar and dock keep a light live blur.
   ===================================================================== */

/* ---------- always on: fixed background gets its own compositor layer, never repainted during scroll ---------- */
.bg-photo, body::before { will-change: transform; transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }

/* ---------- lite-mode tokens ---------- */
html.q-lite {
  --lite-fill: linear-gradient(160deg, rgba(251, 253, 255, .93) 0%, rgba(241, 248, 255, .89) 60%, rgba(233, 244, 255, .87) 100%);
  --lite-thin: linear-gradient(160deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .34));
  --lite-bar: linear-gradient(180deg, rgba(250, 253, 255, .90), rgba(238, 246, 255, .84));
  --lite-edge: rgba(255, 255, 255, .85);
  --lite-sh: inset 0 1px 0 rgba(255, 255, 255, .95), 0 1px 2px rgba(0, 50, 120, .06), 0 8px 18px -10px rgba(0, 70, 160, .22);
}
html.q-lite[data-theme="dark"] {
  --lite-fill: linear-gradient(160deg, rgba(28, 54, 88, .95) 0%, rgba(16, 36, 62, .94) 100%);
  --lite-thin: linear-gradient(160deg, rgba(120, 180, 255, .10), rgba(120, 180, 255, .04));
  --lite-bar: linear-gradient(180deg, rgba(26, 52, 86, .93), rgba(12, 30, 54, .93));
  --lite-edge: rgba(150, 210, 255, .18);
  --lite-sh: inset 0 1px 0 rgba(200, 235, 255, .28), 0 1px 2px rgba(0, 0, 0, .3), 0 8px 18px -10px rgba(0, 0, 0, .6);
}

/* ---------- content containers: no live blur, near-solid frosted-look gradient instead ---------- */
html.q-lite :is(.glass, .card, .panel, fieldset, .tbl-wrap, .related, .art-card, .doc,
  .login-card, .ann-modal-panel, .flip-panel, .side-panel) {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  background: var(--lite-fill) !important;
  border-color: var(--lite-edge) !important;
}
html.q-lite :is(.glass, .card, .panel, .tbl-wrap, .related, .doc) { box-shadow: var(--lite-sh) !important; }
/* nested inner cards: thin layer, no shadow */
html.q-lite .panel :is(.art-card, .card), html.q-lite .card .art-card {
  background: var(--lite-thin) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7) !important;
}
html.q-lite .panel fieldset { background: var(--pre-bg) !important; }
/* list items (dozens per page): light shadow only, no large blurred shadow */
html.q-lite :is(.art-card, .col-cell, .pager-link, .ord-row, .svc-item) { box-shadow: var(--lite-sh) !important; }

/* small glass pieces: blur off */
html.q-lite :is(.lib-search input[type="search"], .btn.ghost, .btn-soft, .toast, .ann-strip, .chips) {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html.q-lite :is(.ann-strip, .chips) { background: var(--lite-bar) !important; }
html.q-lite .lib-search input[type="search"] { background: rgba(255, 255, 255, .9); }
html.q-lite[data-theme="dark"] .lib-search input[type="search"] { background: rgba(16, 36, 62, .92); }

/* top bar / dock: the only two live-blur pieces left, with a lighter blur and a thicker base */
html.q-lite :is(.topbar, .dock) {
  -webkit-backdrop-filter: blur(12px) saturate(1.3) !important; backdrop-filter: blur(12px) saturate(1.3) !important;
  background: var(--lite-bar) !important;
}

/* full-screen overlays: drop the backdrop blur, use a darker dim */
html.q-lite :is(.login-overlay, .ann-modal-backdrop, .flip-backdrop, .side-backdrop) {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  background: rgba(6, 20, 38, .5) !important;
}

/* masked rims (mask-composite is expensive to paint): only on the bars and modals; list items and containers use a simple light edge */
html.q-lite :is(.glass, .card, .panel, fieldset, .tbl-wrap, .related, .art-card, .doc, .col-cell, .pager-link,
  .chips, .ann-strip, .toast, .announce-card)::after { display: none !important; }
html.q-lite :is(.art-card, .col-cell, .pager-link)::before { display: none !important; }
/* ==================== END SNOW-GLASS v3.3 ==================== */

/* =====================================================================
   SNOW-GLASS LAYER v3.4 · 2026-11-27 · wide gamut (Display P3) + time-of-day lighting
   Append to the very end of style.css (after v3.3).
   Rollback: delete everything from this marker to "END SNOW-GLASS v3.4".
   Both are pure color changes with near-zero performance cost, so they stay on in lite mode too.
   ===================================================================== */

/* ---------- 1. Time-of-day lighting ----------
   motion.js v4.1 writes data-q-sky on <html> from the user's local time:
     dawn 5:00-8:00 · day 8:00-16:00 · golden 16:00-18:30 · dusk 18:30-20:00 · night 20:00-5:00
   Each phase changes three things: the background photo's tint gradient (--duo-grad), the horizon/sky glow (--sky-glow, always two layers),
   and in warm phases a warm tint on the glass highlights. Day matches v3.2; without the attribute (JS not loaded) it's day too. */
/* fix: since v2.1 made dark-mode cards more transparent, muted small text over brighter parts of the photo sat at only ~3.8:1; one step lighter brings it back to >= 4.5:1 */
html[data-theme="dark"] {
  --muted: #b3cce4;
  /* dark-mode tiles: thinner fill, otherwise tiles are brighter than cards and the gray text on them goes muddy */
  --tile-fill: linear-gradient(160deg, rgba(120, 190, 255, .06), rgba(4, 14, 32, .22));
}
/* in the warm phases, dark-mode tiles get a slightly deeper base (warm tints read brighter at the same lightness) */
html[data-theme="dark"]:is([data-q-sky="dawn"], [data-q-sky="golden"], [data-q-sky="dusk"]) {
  --tile-fill: linear-gradient(160deg, rgba(120, 190, 255, .05), rgba(4, 12, 28, .34));
}
html[data-theme="dark"] .col-cell .col-count { color: var(--ink-2); }
/* light mode: muted text one step darker so it holds 4.5:1 even over the pink/orange of the dusk and golden phases */
:root { --muted: #33506f; }
:root { --sky-glow: radial-gradient(700px 420px at 12% 104%, rgba(255, 196, 160, .30), transparent 70%), radial-gradient(560px 380px at 92% -6%, rgba(255, 255, 255, .38), transparent 70%); }
html[data-theme="dark"] { --sky-glow: radial-gradient(800px 460px at 85% -6%, rgba(40, 220, 170, .16), transparent 70%), radial-gradient(900px 520px at 50% 110%, rgba(0, 120, 255, .16), transparent 70%); }
html[data-q-sky="dawn"] {
  --duo-grad: linear-gradient(180deg, #f3a6c8 0%, #b7a2f5 30%, #6fa8f5 62%, #3fb8c8 100%);
  --sky-glow: radial-gradient(760px 460px at 15% 104%, rgba(255, 186, 170, .45), transparent 70%), radial-gradient(620px 420px at 88% -4%, rgba(255, 214, 232, .38), transparent 70%);
  --card-gloss: linear-gradient(118deg, rgba(255, 236, 242, .42) 0%, rgba(255, 236, 242, .10) 26%, rgba(255, 236, 242, 0) 27.5%, rgba(255, 236, 242, 0) 72%, rgba(255, 236, 242, .08) 73%, rgba(255, 236, 242, 0) 86%);
  --spec: radial-gradient(220px circle at var(--mx, 18%) var(--my, -8%), rgba(255, 236, 242, .75), rgba(255, 236, 242, 0) 60%);
}
html[data-theme="dark"][data-q-sky="dawn"] {
  --duo-grad: linear-gradient(180deg, #7d4fb8 0%, #4b5fc8 40%, #1e6aa8 70%, #0e7f88 100%);
  --sky-glow: radial-gradient(800px 460px at 15% 106%, rgba(255, 140, 150, .24), transparent 70%), radial-gradient(620px 400px at 88% -6%, rgba(200, 150, 255, .16), transparent 70%);
}
html[data-q-sky="day"] {
  --duo-grad: linear-gradient(180deg, #9a86ff 0%, #4aa3ff 40%, #2bb6d6 70%, #16b3a6 100%);
  --sky-glow: radial-gradient(700px 420px at 12% 104%, rgba(255, 196, 160, .30), transparent 70%), radial-gradient(560px 380px at 92% -6%, rgba(255, 255, 255, .38), transparent 70%);
}
html[data-theme="dark"][data-q-sky="day"] {
  --duo-grad: linear-gradient(180deg, #5b4bd6 0%, #1a5fb8 42%, #0e7fa0 72%, #0d8f86 100%);
  --sky-glow: radial-gradient(800px 460px at 85% -6%, rgba(40, 220, 170, .16), transparent 70%), radial-gradient(900px 520px at 50% 110%, rgba(0, 120, 255, .16), transparent 70%);
}
html[data-q-sky="golden"] {
  --duo-grad: linear-gradient(180deg, #ffb066 0%, #f58fb0 28%, #8f8cf0 58%, #3aa6d0 100%);
  --sky-glow: radial-gradient(820px 520px at 10% 104%, rgba(255, 170, 90, .50), transparent 70%), radial-gradient(520px 360px at 90% 4%, rgba(255, 214, 150, .38), transparent 70%);
  --card-gloss: linear-gradient(118deg, rgba(255, 236, 214, .42) 0%, rgba(255, 236, 214, .10) 26%, rgba(255, 236, 214, 0) 27.5%, rgba(255, 236, 214, 0) 72%, rgba(255, 236, 214, .08) 73%, rgba(255, 236, 214, 0) 86%);
  --spec: radial-gradient(220px circle at var(--mx, 18%) var(--my, -8%), rgba(255, 236, 214, .75), rgba(255, 236, 214, 0) 60%);
}
html[data-theme="dark"][data-q-sky="golden"] {
  --duo-grad: linear-gradient(180deg, #b0603a 0%, #9a4a8a 30%, #4552b8 65%, #0e6f90 100%);
  --sky-glow: radial-gradient(820px 480px at 10% 106%, rgba(255, 150, 80, .26), transparent 70%), radial-gradient(520px 360px at 90% -4%, rgba(255, 190, 120, .12), transparent 70%);
}
html[data-q-sky="dusk"] {
  --duo-grad: linear-gradient(180deg, #7a4fd6 0%, #c2559f 30%, #5865d8 62%, #1f8fae 100%);
  --sky-glow: radial-gradient(820px 480px at 50% 104%, rgba(255, 120, 150, .36), transparent 70%), radial-gradient(520px 360px at 86% -4%, rgba(150, 110, 255, .32), transparent 70%);
  --card-gloss: linear-gradient(118deg, rgba(255, 232, 244, .42) 0%, rgba(255, 232, 244, .10) 26%, rgba(255, 232, 244, 0) 27.5%, rgba(255, 232, 244, 0) 72%, rgba(255, 232, 244, .08) 73%, rgba(255, 232, 244, 0) 86%);
  --spec: radial-gradient(220px circle at var(--mx, 18%) var(--my, -8%), rgba(255, 232, 244, .75), rgba(255, 232, 244, 0) 60%);
}
html[data-theme="dark"][data-q-sky="dusk"] {
  --duo-grad: linear-gradient(180deg, #5a2fa8 0%, #8a3c8c 30%, #333fae 65%, #0b5f86 100%);
  --sky-glow: radial-gradient(820px 480px at 50% 108%, rgba(255, 90, 150, .22), transparent 70%), radial-gradient(520px 360px at 86% -6%, rgba(150, 110, 255, .18), transparent 70%);
}
html[data-q-sky="night"] {
  --duo-grad: linear-gradient(180deg, #6b7cf0 0%, #4f8ee8 40%, #2f9fc4 75%, #1fa59a 100%);
  --sky-glow: radial-gradient(900px 300px at 70% 8%, rgba(80, 230, 190, .26), transparent 70%), radial-gradient(640px 400px at 88% -4%, rgba(200, 215, 255, .36), transparent 70%);
}
html[data-theme="dark"][data-q-sky="night"] {
  --duo-grad: linear-gradient(180deg, #3e3aa8 0%, #1a4a9c 40%, #0b5f7e 72%, #0a7a6a 100%);
  --sky-glow: radial-gradient(900px 320px at 74% 6%, rgba(60, 240, 180, .26), transparent 70%), radial-gradient(700px 300px at 18% 10%, rgba(140, 100, 255, .20), transparent 70%);
}

/* re-apply the background stacks so the glow uses the variable (layer count unchanged: glow 2 + haze + wash [+ tint + photo]) */
.bg-photo::after {
  background:
    var(--sky-glow),
    radial-gradient(900px 520px at 50% 108%, rgba(255, 255, 255, .46), transparent 70%),
    linear-gradient(180deg, rgba(232, 236, 255, .20), rgba(236, 246, 255, .08) 45%, rgba(246, 251, 255, .36));
}
html[data-theme="dark"] .bg-photo::after {
  background:
    var(--sky-glow),
    linear-gradient(180deg, rgba(2, 14, 28, .22), rgba(2, 12, 24, .10) 45%, rgba(2, 11, 22, .45));
}
body::before {
  background-image:
    var(--sky-glow),
    radial-gradient(900px 520px at 50% 108%, rgba(255, 255, 255, .46), transparent 70%),
    linear-gradient(180deg, rgba(232, 236, 255, .20), rgba(236, 246, 255, .08) 45%, rgba(246, 251, 255, .36)),
    var(--duo-grad),
    var(--photo, url("/assets/meadow-bg.jpg"));
  background-blend-mode: normal, normal, normal, normal, color, normal;
}
html[data-theme="dark"] body::before {
  background-image:
    var(--sky-glow),
    linear-gradient(180deg, rgba(2, 14, 28, .22), rgba(2, 12, 24, .10) 45%, rgba(2, 11, 22, .45)),
    var(--duo-grad),
    var(--photo, url("/assets/meadow-bg.jpg"));
  background-blend-mode: normal, normal, normal, color, normal;
}

/* ---------- 2. Wide gamut Display P3 ----------
   Only on P3-capable screens that understand color(display-p3) (iPhone, flagship Android); everything else keeps the sRGB colors.
   Same hue and lightness as the sRGB version, chroma raised as far as P3 allows (capped at 96%). Text contrast re-checked:
   dark ink on light >= 5.8:1, light text on dark >= 10.6:1, white icons on swatches >= 5.1:1, link 5.3:1. */
@media (color-gamut: p3) {
  @supports (color: color(display-p3 0 0 0)) {
    :root {
    --h-azure: color(display-p3 0.299 0.562 0.983); --h-azure-hi: color(display-p3 0.600 0.751 0.990); --h-azure-lo: color(display-p3 0.050 0.377 0.836); --h-azure-ink: color(display-p3 0.038 0.326 0.731);
    --h-teal: color(display-p3 0.103 0.663 0.674); --h-teal-hi: color(display-p3 0.449 0.825 0.831); --h-teal-lo: color(display-p3 0.062 0.478 0.486); --h-teal-ink: color(display-p3 0.047 0.415 0.422);
    --h-violet: color(display-p3 0.594 0.440 0.983); --h-violet-hi: color(display-p3 0.751 0.686 0.990); --h-violet-lo: color(display-p3 0.438 0.242 0.818); --h-violet-ink: color(display-p3 0.379 0.208 0.713);
    --h-amber: color(display-p3 0.763 0.505 0.083); --h-amber-hi: color(display-p3 0.935 0.684 0.340); --h-amber-lo: color(display-p3 0.552 0.361 0.047); --h-amber-ink: color(display-p3 0.480 0.311 0.034);
    --h-coral: color(display-p3 0.900 0.357 0.249); --h-coral-hi: color(display-p3 0.991 0.623 0.535); --h-coral-lo: color(display-p3 0.710 0.160 0.050); --h-coral-ink: color(display-p3 0.618 0.136 0.041);
    --h-mint: color(display-p3 0.233 0.681 0.447); --h-mint-hi: color(display-p3 0.525 0.834 0.647); --h-mint-lo: color(display-p3 0.062 0.501 0.302); --h-mint-ink: color(display-p3 0.048 0.435 0.260);
    --h-indigo: color(display-p3 0.443 0.518 0.983); --h-indigo-hi: color(display-p3 0.665 0.726 0.990); --h-indigo-lo: color(display-p3 0.279 0.325 0.845); --h-indigo-ink: color(display-p3 0.240 0.280 0.736);
    --h-rose: color(display-p3 0.846 0.360 0.590); --h-rose-hi: color(display-p3 0.971 0.599 0.757); --h-rose-lo: color(display-p3 0.660 0.177 0.427); --h-rose-ink: color(display-p3 0.574 0.151 0.370);
    --accent: color(display-p3 0.163 0.439 0.969);
    --accent-fill: color(display-p3 0.079 0.374 0.967);
    --accent-ink: color(display-p3 0.051 0.292 0.832);
    --link: color(display-p3 0.064 0.343 0.901);
      --ice-disp: conic-gradient(from 200deg at 50% 50%, color(display-p3 .40 .86 1 / 0) 0deg, color(display-p3 .40 .86 1 / .85) 34deg,
                 color(display-p3 1 .52 .86 / .68) 62deg, color(display-p3 1 .92 .40 / .58) 86deg, color(display-p3 .40 .86 1 / 0) 120deg,
                 color(display-p3 .40 .86 1 / 0) 360deg);
    }
    html[data-theme="dark"] {
    --h-azure-ink: color(display-p3 0.681 0.802 0.992);
    --h-teal-ink: color(display-p3 0.526 0.872 0.876);
    --h-violet-ink: color(display-p3 0.799 0.750 0.992);
    --h-amber-ink: color(display-p3 0.976 0.740 0.425);
    --h-coral-ink: color(display-p3 0.992 0.705 0.634);
    --h-mint-ink: color(display-p3 0.592 0.880 0.703);
    --h-indigo-ink: color(display-p3 0.731 0.782 0.992);
    --h-rose-ink: color(display-p3 0.993 0.674 0.805);
    --accent: color(display-p3 0.384 0.627 0.963);
    --accent-fill: color(display-p3 0.241 0.474 0.926);
    --accent-ink: color(display-p3 0.580 0.761 0.975);
    --link: color(display-p3 0.580 0.761 0.975);
      --ice-disp: conic-gradient(from 200deg at 50% 50%, color(display-p3 .35 .80 1 / 0) 0deg, color(display-p3 .35 .80 1 / .55) 34deg,
                 color(display-p3 .86 .50 1 / .45) 62deg, color(display-p3 .40 1 .82 / .38) 86deg, color(display-p3 .35 .80 1 / 0) 120deg,
                 color(display-p3 .35 .80 1 / 0) 360deg);
    }
    .btn:not(.ghost):not(.btn-soft) {
      background-image: linear-gradient(180deg, rgba(255, 255, 255, .40) 0%, rgba(255, 255, 255, .08) 46%, rgba(255, 255, 255, 0) 50%, rgba(0, 20, 80, .10) 100%),
                        linear-gradient(135deg, color(display-p3 0.319 0.604 0.960) 0%, color(display-p3 0.069 0.371 0.972) 50%, color(display-p3 0.266 0.197 0.939) 100%);
    }
  }
}
/* ==================== END SNOW-GLASS v3.4 ==================== */
/* =====================================================================
   SNOW-GLASS LAYER v3.5 · 2026-11-27 · language menu + global search + smart sign-in
   Styles for the elements q-tools.js adds. Without q-tools.js none of these classes
   appear on the page, so this layer does nothing on its own.
   Append to the end of style.css on both sites (after v3.4).
   Rollback: delete from this marker to "END SNOW-GLASS v3.5".
   ===================================================================== */

/* ---------- 0. English without a flash of Chinese ----------
   The inline head script adds .q-i18n-wait only when English is saved; q-tools.js removes it
   right after translating. Safety net: if the script never runs, content shows after 1.2s anyway. */
html.q-i18n-wait :is(.topbar-in, main, .dock, .site-footer, .login-overlay) {
  visibility: hidden; animation: q-i18n-safe 0s 1.2s forwards;
}
@keyframes q-i18n-safe { to { visibility: visible; } }

/* English labels are longer than Chinese ones: let the column tiles wrap instead of pushing the grid wider */
html[lang="en"] .col-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 600px) { html[lang="en"] .col-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 900px) { html[lang="en"] .col-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
html[lang="en"] .col-cell { min-width: 0; }
html[lang="en"] .col-cell .col-name { white-space: normal; line-height: 1.18; text-wrap: balance; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 420px) { html[lang="en"] .col-cell .col-name { font-size: 11.5px; letter-spacing: -.01em; } }

/* ---------- 1. Language menu ---------- */
.q-pop {
  position: fixed; z-index: 97; min-width: 216px; max-width: calc(100vw - 20px);
  padding: 8px; border-radius: 20px;
  background: var(--ice-fill-strong);
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid var(--ice-line);
  box-shadow: var(--ice-sh), var(--shadow-lg);
  opacity: 0; scale: .9; translate: 0 -6px; pointer-events: none;
  transition: opacity .18s var(--a-smooth, ease), scale .3s var(--a-snappy, ease), translate .3s var(--a-snappy, ease);
}
.q-pop[hidden] { display: none; }
.q-pop.q-in {
  opacity: 1; scale: 1; translate: 0 0; pointer-events: auto;
  transition: opacity .16s var(--a-smooth, ease), scale .5s var(--a-bouncy, ease), translate .5s var(--a-bouncy, ease);
}
.q-pop.q-chosen { transition-delay: .06s; }
.q-pop-title { margin: 4px 10px 6px; font-size: 12px; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.q-pop .q-pop-item {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center;
  width: 100%; min-height: 50px; margin: 0; padding: 7px 12px; border: 0; border-radius: 14px;
  background: transparent; box-shadow: none; text-align: left; color: var(--ink); font: inherit; cursor: pointer;
}
.q-pop .q-pop-item:hover, .q-pop .q-pop-item:focus-visible { background: var(--hover-tint); outline: none; }
.q-pop .q-pop-item[aria-checked="true"] { background: var(--accent-soft); }
.q-pop-t { grid-column: 1; font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.q-pop-s { grid-column: 1; font-size: 12px; color: var(--muted); line-height: 1.3; }
.q-pop-ck { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--accent-ink); opacity: 0; scale: .4;
  transition: opacity .2s, scale .45s var(--a-bouncy, ease); }
.q-pop-ck svg { width: 22px; height: 22px; stroke-width: 2.4; }
.q-pop-item[aria-checked="true"] .q-pop-ck { opacity: 1; scale: 1; }
.q-pop-note { margin: 6px 10px 4px; font-size: 12px; line-height: 1.45; color: var(--muted); }
html.q-lite .q-pop { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--lite-fill, var(--ice-fill-strong)); }

/* ---------- 2. Search button beside the dock (iOS 26 layout) ---------- */
html.q-has-search {
  --q-fab: var(--q-dock-h, 58px);
  --q-gap: 8px;
  --q-dw: min(500px, calc(100vw - 20px - var(--q-fab) - var(--q-gap)));
  --q-dc: calc(50% - (var(--q-fab) + var(--q-gap)) / 2);
}
html.q-has-search .dock { width: var(--q-dw); left: var(--q-dc); }
.q-search-fab.q-search-fab {
  position: fixed; z-index: 60;
  left: calc(var(--q-dc) + var(--q-dw) / 2 + var(--q-gap));
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: var(--q-fab); height: var(--q-fab); padding: 0; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-2); cursor: pointer;
  background: var(--grain), var(--ice-fill-bar);
  -webkit-backdrop-filter: var(--ice-blur); backdrop-filter: var(--ice-blur);
  border: 1px solid var(--ice-line);
  box-shadow: var(--ice-sh), var(--pill-sh);
  transform-origin: 50% 100%;
  transition: scale .55s var(--a-snappy, ease), translate .55s var(--a-snappy, ease), opacity .25s, color .2s;
  -webkit-tap-highlight-color: transparent;
  view-transition-name: q-search-fab;   /* stays put across page navigations, like the dock */
}
::view-transition-group(q-search-fab) { animation-duration: .4s; }
.q-search-fab svg { width: 24px; height: 24px; stroke-width: 2; }
.q-search-fab:hover { color: var(--accent-ink); }
html.q-apple .q-search-fab.q-down { scale: 1.08; filter: brightness(1.05); }
html.q-apple.q-dock-mini .q-search-fab {
  scale: .86; translate: calc((var(--q-dw) / 2 + var(--q-gap) + var(--q-fab) / 2) * -0.14) 6px;
}
.q-search-fab.q-hide { opacity: 0; pointer-events: none; }
html.q-lite .q-search-fab.q-search-fab {
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  background: var(--lite-bar, var(--ice-fill-bar));
}
@media (prefers-reduced-motion: reduce) {
  html.q-apple.q-dock-mini .q-search-fab { scale: none; translate: none; }
}

/* ---------- 3. Search sheet (Spotlight-style, drops from the top so the keyboard never covers it) ---------- */
.q-search { position: fixed; inset: 0; z-index: 92; touch-action: none; overscroll-behavior: contain; }
.q-search[hidden] { display: none; }
.q-search-dim {
  position: absolute; inset: 0; background: rgba(4, 22, 48, .26);
  -webkit-backdrop-filter: blur(6px) saturate(1.2); backdrop-filter: blur(6px) saturate(1.2);
  opacity: 0; transition: opacity .26s var(--a-smooth, ease);
}
html[data-theme="dark"] .q-search-dim { background: rgba(0, 6, 18, .5); }
.q-search.q-in .q-search-dim { opacity: 1; }
.q-search-panel {
  position: absolute; left: 10px; right: 10px; margin: 0 auto; max-width: 640px;
  top: calc(env(safe-area-inset-top) + 10px);
  max-height: min(680px, calc(var(--q-vvh, 100dvh) - env(safe-area-inset-top) - 20px));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 26px;
  background: var(--ice-fill-strong);
  -webkit-backdrop-filter: blur(26px) saturate(1.8); backdrop-filter: blur(26px) saturate(1.8);
  border: 1px solid var(--ice-line);
  box-shadow: var(--ice-sh), var(--shadow-lg);
  opacity: 0; translate: 0 -16px; scale: .97; transform-origin: 50% 0;
  transition: opacity .2s var(--a-smooth, ease), translate .3s var(--a-snappy, ease), scale .3s var(--a-snappy, ease);
}
.q-search.q-in .q-search-panel {
  opacity: 1; translate: 0 0; scale: 1;
  transition: opacity .18s var(--a-smooth, ease), translate .55s var(--a-bouncy, ease), scale .55s var(--a-bouncy, ease);
}
@media (min-width: 760px) { .q-search-panel { top: max(10vh, calc(env(safe-area-inset-top) + 16px)); } }
.q-search-top { display: flex; align-items: center; gap: 8px; padding: 10px 10px 6px; }
.q-search-bar { position: relative; flex: 1 1 auto; min-width: 0; }
.q-search-glass { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.q-search-glass svg { width: 20px; height: 20px; stroke-width: 2; }
.q-search .q-search-input {
  display: block; width: 100%; height: 48px; margin: 0; padding: 0 44px 0 42px; min-width: 0;
  font-size: 17px; line-height: 48px; border-radius: 999px; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.q-search .q-search-input::-webkit-search-cancel-button, .q-search .q-search-input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.q-search .q-search-input::placeholder { color: var(--muted); opacity: .85; }
.q-search .q-search-clear {
  position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; padding: 0; margin: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; box-shadow: none;
  background: rgba(10, 60, 120, .12); color: var(--ink-2); cursor: pointer;
}
html[data-theme="dark"] .q-search .q-search-clear { background: rgba(160, 210, 255, .16); box-shadow: none; }
.q-search .q-search-clear[hidden] { display: none; }
.q-search-clear svg { width: 16px; height: 16px; stroke-width: 2.4; }
.q-search .q-search-cancel {
  flex: 0 0 auto; margin: 0; padding: 8px 6px; border: 0; background: none; box-shadow: none;
  color: var(--accent-ink); font-size: 16px; font-weight: 500; cursor: pointer;
}
html[data-theme="dark"] .q-search .q-search-cancel { box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .q-search .q-search-cancel { display: none; } }
.q-search-list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 2px 8px 10px; touch-action: pan-y;
}
.q-sg { padding-top: 4px; }
.q-sg + .q-sg { margin-top: 2px; }
.q-sg-h {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 10px 5px; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; color: var(--muted);
}
.q-sg-h em { font-style: normal; font-weight: 600; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--hover-tint); color: var(--ink-2); }
.q-search .q-sg-clear { margin: 0; padding: 2px 4px; border: 0; background: none; box-shadow: none; color: var(--accent-ink); font-size: 13px; cursor: pointer; }
html[data-theme="dark"] .q-search .q-sg-clear { box-shadow: none; }
.q-sr {
  --c: var(--h-azure, var(--accent-fill)); --c-ink: var(--h-azure-ink, var(--accent-ink));
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px; align-items: center; gap: 12px;
  min-height: 52px; padding: 8px 10px; border-radius: 15px; color: var(--ink); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s var(--a-smooth, ease), scale .35s var(--a-bouncy, ease);
}
.q-sr:hover { text-decoration: none; }
.q-sr.q-on { background: var(--hover-tint); box-shadow: inset 0 0 0 1px var(--ice-line); }
@media (hover: none) { .q-sr.q-on { background: transparent; box-shadow: none; } .q-sr:active { background: var(--hover-tint); scale: .985; } }
.q-sr-ico {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff;
  background: var(--c, var(--accent-fill));
  background-image: linear-gradient(160deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 4px 10px -5px rgba(0, 40, 100, .45);
}
.q-sr-ico svg { width: 20px; height: 20px; stroke-width: 2; }
.q-sr[data-t="page"] { --c: var(--h-azure, var(--accent-fill)); }
.q-sr[data-t="act"] { --c: var(--h-indigo, var(--accent-fill)); }
.q-sr[data-t="svc"] { --c: var(--h-violet, var(--accent-fill)); }
.q-sr-main { display: flex; flex-direction: column; min-width: 0; }
.q-sr-title { font-size: 15.5px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-sr-title mark { background: none; color: var(--c-ink, var(--accent-ink)); font-weight: 800; box-shadow: inset 0 -.38em 0 var(--accent-soft); border-radius: 2px; }
.q-sr[data-t="page"] mark, .q-sr[data-t="act"] mark, .q-sr[data-t="svc"] mark { color: var(--accent-ink); }
.q-sr-sub { margin-top: 1px; font-size: 12.5px; line-height: 1.35; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-sr-go { width: 18px; height: 18px; color: var(--muted); opacity: .7; }
.q-sr-go svg { width: 18px; height: 18px; }
.q-sr.q-on .q-sr-go { color: var(--accent-ink); opacity: 1; }
.q-sr-more { grid-template-columns: minmax(0, 1fr) 18px; min-height: 44px; }
.q-sr-more .q-sr-title { color: var(--accent-ink); font-weight: 600; }
.q-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 8px 6px; }
.q-search .q-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 34px; margin: 0; padding: 5px 13px 5px 10px;
  border-radius: 999px; border: 1px solid var(--ice-line); background: var(--tile-fill); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); font-size: 14px; cursor: pointer;
}
html[data-theme="dark"] .q-search .q-chip { box-shadow: inset 0 1px 0 rgba(200, 230, 255, .1); }
.q-chip svg { width: 15px; height: 15px; color: var(--muted); flex: 0 0 auto; }
.q-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-chip-col i { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--c, var(--accent-fill)); box-shadow: 0 0 0 3px var(--accent-soft); }
.q-s-note { margin: 10px 12px; font-size: 13px; color: var(--muted); }
.q-s-empty { padding: 26px 12px 8px; text-align: center; color: var(--ink-2); }
.q-s-empty p { margin: 8px 0 12px; font-size: 15px; }
.q-s-empty b { color: var(--ink); }
.q-s-empty-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--hover-tint); color: var(--muted); }
.q-s-empty-ico svg { width: 26px; height: 26px; }
.q-s-empty .q-sr { text-align: left; }
.q-search-foot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .q-search-foot {
    display: flex; gap: 16px; justify-content: flex-end; padding: 8px 16px 10px;
    border-top: 1px solid var(--line); font-size: 12px; color: var(--muted);
  }
  .q-search-foot kbd {
    display: inline-block; min-width: 18px; margin-right: 2px; padding: 0 5px; border-radius: 6px; text-align: center;
    font: 600 11px/18px var(--font-ui, system-ui); color: var(--ink-2); background: var(--hover-tint); border: 1px solid var(--line);
  }
}
html.q-lite .q-search-dim { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(6, 20, 38, .5); }
html.q-lite .q-search-panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--lite-fill, var(--ice-fill-strong)); }

/* catalog row / heading found from a search result */
.q-hit { animation: q-hit 2.4s var(--a-smooth, ease) both; border-radius: 12px; }
@keyframes q-hit {
  0%, 60% { background-color: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--focus, var(--accent)); }
  100% { background-color: transparent; box-shadow: inset 0 0 0 2px transparent; }
}

/* ---------- 4. Smart sign-in: one field, recognises email or phone ---------- */
.login-card.q-id-on .login-tabs, .login-card.q-id-on .login-switch { display: none !important; }
.login-card.q-id-s1 :is(#panePw, #paneCode, #paneSms) { display: none !important; }
.login-card .q-id-hide { display: none !important; }
.login-card.q-id-s2 :is(.q-id-step1, .q-id-sub) { display: none; }
.q-id-sub { margin: -6px 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.login-card .q-id-lab { display: block; margin: 0 2px 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.q-id-box { position: relative; }
.login-card .q-id-box input {
  display: block; width: 100%; height: 54px; margin: 0; padding: 0 118px 0 16px;
  font-size: 17px; border-radius: 17px; letter-spacing: .01em;
}
.q-id-kind {
  position: absolute; right: 8px; top: 50%; translate: 0 -50%;
  display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px 0 8px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none;
  --c: var(--h-azure, var(--accent-fill)); --c-ink: var(--h-azure-ink, var(--accent-ink));
  color: var(--c-ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--ice-line);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.q-id-kind:empty { display: none; }
.q-id-kind svg { width: 17px; height: 17px; stroke-width: 2; }
.q-id-kind[data-k="phone"] { --c: var(--h-mint, #12a36b); --c-ink: var(--h-mint-ink, #0b6b47); }
.q-id-kind[data-k="account"] { --c: var(--h-violet, #7a5cff); --c-ink: var(--h-violet-ink, #5a3fd6); }
.q-id-kind.q-ok { color: #fff; background: var(--c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 10px -5px var(--c); }
.q-id-kind.q-pop-in { animation: q-id-pop .5s var(--a-bouncy, ease) both; }
@keyframes q-id-pop { from { opacity: 0; scale: .6; filter: blur(3px); } }
.q-id-hint { display: none; margin: 8px 2px 0; font-size: 13px; line-height: 1.45; color: var(--danger, #d1361f); }
.q-id-hint.q-show { display: block; animation: q-id-fade .25s var(--a-smooth, ease) both; }
html[data-theme="dark"] .q-id-hint { color: #ff9a85; }
.login-card .q-id-next { margin-top: 14px; }
.login-card .q-id-next[aria-disabled="true"] { opacity: .5; filter: saturate(.5); box-shadow: none; }
.q-id.q-shake .q-id-box { animation: q-id-shake .42s var(--a-smooth, ease); }
@keyframes q-id-shake { 0%, 100% { translate: 0; } 20% { translate: -7px; } 40% { translate: 6px; } 60% { translate: -4px; } 80% { translate: 2px; } }
.q-id-who {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px;
  margin: 0 0 6px; padding: 9px 9px 9px 10px; border-radius: 19px;
  background: var(--tile-fill); border: 1px solid var(--ice-line); box-shadow: var(--tile-sh, none);
}
.q-id-who[hidden] { display: none; }
.q-id-ava {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--accent-fill); background-image: linear-gradient(160deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 10px -5px rgba(0, 50, 140, .5);
}
.login-card[data-q-m="sms"] .q-id-ava { background-color: var(--h-mint, #12a36b); }
.q-id-ava svg { width: 20px; height: 20px; stroke-width: 2; }
.q-id-who-t { display: flex; flex-direction: column; min-width: 0; }
.q-id-who-v { font-size: 15.5px; font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .01em; }
.q-id-who-m { font-size: 12.5px; color: var(--muted); }
.login-card .q-id-change {
  margin: 0; padding: 7px 13px; min-height: 34px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--accent-ink); background: var(--btn2-fill, transparent); border: 1px solid var(--ice-line);
}
.q-id-tail { text-align: center; }
.q-id-tail[hidden] { display: none; }
.login-card .q-id-swap {
  margin: 8px 0 0; padding: 10px 12px; border: 0; background: none; box-shadow: none;
  color: var(--link); font-size: 14px; font-weight: 500; cursor: pointer;
}
html[data-theme="dark"] .login-card .q-id-swap { box-shadow: none; }
.q-id-enter { animation: q-id-in .5s var(--a-snappy, ease) both; }
@keyframes q-id-in { from { opacity: 0; translate: 0 10px; } }
@keyframes q-id-fade { from { opacity: 0; translate: 0 -3px; } }
@media (prefers-reduced-motion: reduce) {
  .q-id-enter, .q-id-kind.q-pop-in, .q-id.q-shake .q-id-box, .q-id-hint.q-show { animation: none; }
  .q-pop, .q-pop.q-in, .q-search-panel, .q-search.q-in .q-search-panel { scale: none; translate: none; }
}

/* ---------- 5. audit panel (only with ?q-i18n=audit) ---------- */
.q-audit {
  position: fixed; left: 10px; right: 10px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 98;
  max-height: 40vh; overflow: auto; padding: 10px 12px; border-radius: 14px;
  background: rgba(8, 20, 40, .92); color: #e8f2ff; font-size: 12px;
}
.q-audit button { float: right; margin: -2px 0 0; padding: 4px 10px; font-size: 12px; }
.q-audit pre { margin: 8px 0 0; white-space: pre-wrap; font-size: 11.5px; }
/* ==================== END SNOW-GLASS v3.5 ==================== */

/* ====================================================================
   CRAYON LAYER v1 · 2026-11-28 · 蜡笔立体书皮肤 + 排版松绑
   整站 = 一本摊在木桌上的立体书：页面是纸，卡片是贴纸（粗墨线 + 实色
   错位投影），色块是蜡笔涂色（颗粒纹理），滚动时卡片沿底边从书页上
   「立」起来。顺带放宽全站间距、行高、字号与点按尺寸。
   只追加：不改基础层、不改业务与 JS。去掉全部 backdrop-filter 实时模糊。
   作用域：html:not(.skin-glass):not(#cr)。以后要切回玻璃，给 <html> 加
   class="skin-glass" 即可；要彻底回滚，删掉本标记到 "END CRAYON v1"。
   素材：/assets/crayon/（OFL 字体子集 + 自制平铺纹理，文件名带版本号）。
   胖圆体只用在固定的标题上（页面大标题、首页区块名、栏目名、面板标题）；
   文章标题和正文小标题内容会变，用系统粗体，避免子集里缺字。
   ==================================================================== */

@font-face {
  font-family: "Crayon KuaiLe";
  src: url("/assets/crayon/crayon-kuaile-v1.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Crayon Titan";
  src: url("/assets/crayon/crayon-titan-v1.woff2") format("woff2");
  font-display: swap;
}

/* ---------- 1. tokens ---------- */
html:not(.skin-glass):not(#cr) {
  --cr-ink: #23201c;            /* 墨线 */
  --cr-sh: #23201c;             /* 错位投影 */
  --cr-text: #23201c;
  --cr-text-2: #4a443b;
  --cr-muted: #6f6552;
  --cr-sheet: #f6f0e2;          /* 书页 */
  --cr-card: #fffdf7;           /* 贴纸卡 */
  --cr-card-2: #fbf5e8;
  --cr-field: #fffdf8;
  --cr-cover: #2d4ea3;          /* 书皮 */
  --cr-red: #d93a3a; --cr-blue: #2f5bd3; --cr-green: #2f9a55; --cr-purple: #7b4bd1;
  --cr-orange: #e06a1b; --cr-teal: #178f8c; --cr-pink: #d9488a; --cr-yellow: #f2c230;
  --cr-red-ink: #b52a2a; --cr-blue-ink: #2a4fb8; --cr-green-ink: #23804a; --cr-purple-ink: #6a3dbd;
  --cr-hl: rgba(242, 194, 48, .85);   /* 荧光笔底 */
  --cr-grain: url("/assets/crayon/crayon-grain-v1.webp");
  --cr-paper: url("/assets/crayon/crayon-paper-v1.jpg");
  --cr-wood: url("/assets/crayon/crayon-wood-v1.jpg");
  --cr-fat: "Crayon KuaiLe", "PingFang SC", "Microsoft YaHei", sans-serif;
  --cr-logo: "Crayon Titan", "Crayon KuaiLe", sans-serif;
  --cr-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --cr-r: 16px 9px 15px 10px / 10px 15px 9px 16px;   /* 手画感圆角 */
  --cr-r-s: 11px 7px 12px 6px / 7px 11px 6px 12px;
  --cr-bw: 2px;

  /* 把旧变量接到纸和墨上，没单独改到的地方也跟着变 */
  --bg: #7a4a28;
  --bg-grad: none;
  --ink: var(--cr-text);
  --ink-2: var(--cr-text-2);
  --muted: var(--cr-muted);
  --line: rgba(35, 32, 28, .28);
  --accent: var(--cr-red);
  --accent-ink: var(--cr-red-ink);
  --accent-soft: rgba(217, 58, 58, .12);
  --link: var(--cr-blue-ink);
  --surface: var(--cr-card);
  --surface-solid: var(--cr-card);
  --surface-card: var(--cr-card);
  --surface-soft: var(--cr-card-2);
  --glass-card: var(--cr-card);
  --glass-strong: var(--cr-card);
  --glass-edge: transparent;
  --glass-blur: none;
  --glass-blur-card: none;
  --field-bg: var(--cr-field);
  --pre-bg: rgba(35, 32, 28, .06);
  --shadow: 3px 4px 0 var(--cr-sh);
  --shadow-lg: 0 5px 0 var(--cr-sh);
  --radius: 16px;
  --hint-bg: #fff1b8;
  --hint-line: var(--cr-ink);
  --hint-ink: #5a4300;
  --focus: 0 0 0 3px rgba(242, 194, 48, .9);
  --lite-fill: var(--cr-card);
  --lite-edge: var(--cr-ink);
  --lite-sh: 3px 4px 0 var(--cr-sh);
  --lite-thin: var(--cr-card-2);
  --lite-bar: var(--cr-card);
  color-scheme: light;
}
/* 夜间 = 夜里的书桌：木桌压暗，纸换成深色卡纸，墨线变成奶油色粉笔线 */
html[data-theme="dark"]:not(.skin-glass):not(#cr) {
  --cr-ink: #e9dfc9;
  --cr-sh: #0b0a08;
  --cr-text: #f3ead7;
  --cr-text-2: #d3c7ad;
  --cr-muted: #a89c82;
  --cr-sheet: #2b2722;
  --cr-card: #36312b;
  --cr-card-2: #3d3730;
  --cr-field: #2a2621;
  --cr-cover: #22386f;
  --cr-red-ink: #ff8a7a; --cr-blue-ink: #8fb0ff; --cr-green-ink: #7fd39a; --cr-purple-ink: #c3a6ff;
  --cr-hl: rgba(242, 194, 48, .42);
  --cr-wood: url("/assets/crayon/crayon-wood-night-v1.jpg");
  --bg: #2a1a0f;
  --line: rgba(233, 223, 201, .25);
  --link: var(--cr-blue-ink);
  --accent-ink: var(--cr-red-ink);
  --pre-bg: rgba(0, 0, 0, .25);
  --hint-bg: #4a3f1c;
  --hint-ink: #ffe7a3;
  --focus: 0 0 0 3px rgba(242, 194, 48, .65);
  color-scheme: dark;
}

/* ---------- 2. 桌面、书页、文字基调（排版松绑） ---------- */
html:not(.skin-glass):not(#cr) body {
  background: var(--bg) var(--cr-wood) repeat;
  background-size: 384px;
  background-attachment: scroll;
  color: var(--cr-text);
  font-size: 16px; line-height: 1.75; letter-spacing: .2px;
}
html:not(.skin-glass):not(#cr) body::before,
html:not(.skin-glass):not(#cr) .bg-photo,
html:not(.skin-glass):not(#cr) .q-snow { display: none !important; }
html:not(.skin-glass):not(#cr) a { color: var(--link); }

/* 书页：普通页 main.page；首页 .home-flow。底边露出一条蓝色书皮。 */
html:not(.skin-glass):not(#cr) main.page,
html:not(.skin-glass):not(#cr) .home-flow {
  position: relative;
  background: var(--cr-sheet) var(--cr-paper) repeat;
  background-size: 256px;
  border-radius: 18px;
  box-shadow: 0 9px 0 var(--cr-cover), 0 9px 0 2px rgba(0, 0, 0, .25), 0 26px 40px rgba(20, 10, 4, .45);
}
html[data-theme="dark"]:not(.skin-glass):not(#cr) main.page,
html[data-theme="dark"]:not(.skin-glass):not(#cr) .home-flow {
  background-blend-mode: multiply;
}
html:not(.skin-glass):not(#cr) main.page {
  max-width: 1000px;
  margin: 72px 8px 0;
  padding: 26px 18px 40px;
}
html:not(.skin-glass):not(#cr) .home-flow {
  max-width: 1000px;
  margin: 0 8px;
  padding: 80px 16px 132px;
}
html:not(.skin-glass):not(#cr) .segments { padding-bottom: 0; }
@media (min-width: 1016px) {
  html:not(.skin-glass):not(#cr) main.page,
  html:not(.skin-glass):not(#cr) .home-flow { margin-left: auto; margin-right: auto; }
}
@media (min-width: 720px) {
  html:not(.skin-glass):not(#cr) main.page { padding: 36px 40px 56px; }
  html:not(.skin-glass):not(#cr) .home-flow { padding: 88px 40px 140px; }
}
html:not(.skin-glass):not(#cr) .site-footer { padding: 26px 16px 124px; }
html:not(.skin-glass):not(#cr) .site-footer .fine { color: #f4e6c8; text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }

/* 标题：胖圆体 + 荧光笔底线 */
html:not(.skin-glass):not(#cr) main.page > h1,
html:not(.skin-glass):not(#cr) .flow-card > h2,
html:not(.skin-glass):not(#cr) .panel > h2,
html:not(.skin-glass):not(#cr) .panel > h3,
html:not(.skin-glass):not(#cr) .card > h2 {
  font-family: var(--cr-fat); font-weight: 400; color: var(--cr-text);
  text-decoration: underline; text-decoration-color: var(--cr-hl);
  text-decoration-thickness: .36em; text-underline-offset: -.16em;
  text-decoration-skip-ink: none;
}
html:not(.skin-glass):not(#cr) main.page > h1 { font-size: 32px; line-height: 1.3; margin: 2px 0 16px; letter-spacing: 1px; }
html:not(.skin-glass):not(#cr) .lead { color: var(--cr-text-2); font-size: 15px; line-height: 1.8; margin: 0 0 20px; }
html:not(.skin-glass):not(#cr) .fine { color: var(--cr-muted); font-size: 13px; line-height: 1.7; }
html:not(.skin-glass):not(#cr) .tag {
  display: inline-block; color: var(--cr-text); font-size: 12px; letter-spacing: 1px; font-weight: 700;
  padding: 2px 10px; border: 1.5px solid var(--cr-ink); border-radius: var(--cr-r-s);
  background: var(--cr-card-2); margin: 0 0 12px;
}

/* ---------- 3. 去掉玻璃：模糊、高光边、反光层统统关掉 ---------- */
html:not(.skin-glass):not(#cr) :is(.glass, .card, .panel, fieldset, .tbl-wrap, .related, .art-card, .login-card,
  .ann-modal-panel, .side-panel, .flip-panel, .dock, .topbar, .chips, .ann-strip, .announce-card,
  .pager-link, .toast, .col-cell, .doc, .q-search-panel, .q-pop, .q-search-fab, h2.sec-title, .ord-row) {
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
html:not(.skin-glass):not(#cr) :is(.glass, .card, .panel, fieldset, .tbl-wrap, .related, .art-card, .login-card,
  .ann-modal-panel, .side-panel, .flip-panel, .dock, .topbar, .chips, .ann-strip,
  .pager-link, .toast, .doc, h2.sec-title)::after { display: none; }
html:not(.skin-glass):not(#cr) :is(.glass, .card, .panel, .tbl-wrap, .related, .login-card, .ann-modal-panel,
  .dock, .col-cell, .pager-link, .ord-row, h2.sec-title)::before { display: none; }

/* ---------- 4. 贴纸卡：卡片 / 面板 / 表格 / 相关阅读 ---------- */
html:not(.skin-glass):not(#cr) :is(.card, .panel, .tbl-wrap, .related, .glass) {
  background: var(--cr-card);
  border: var(--cr-bw) solid var(--cr-ink);
  border-radius: var(--cr-r);
  box-shadow: 3px 4px 0 var(--cr-sh);
}
html:not(.skin-glass):not(#cr) .card,
html:not(.skin-glass):not(#cr) .panel { padding: 20px 18px; }
html:not(.skin-glass):not(#cr) .panel { margin: 22px 0; }
html:not(.skin-glass):not(#cr) .panel > h2,
html:not(.skin-glass):not(#cr) .card > h2 { font-size: 21px; line-height: 1.4; margin: 0 0 14px; }
html:not(.skin-glass):not(#cr) .card h3 { font-size: 17px; line-height: 1.5; margin: 0 0 8px; color: var(--cr-text); }
html:not(.skin-glass):not(#cr) .card p,
html:not(.skin-glass):not(#cr) .panel p { color: var(--cr-text-2); font-size: 15px; line-height: 1.8; }
html:not(.skin-glass):not(#cr) .panel p + p { margin-top: 10px; }
html:not(.skin-glass):not(#cr) .grid { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
html:not(.skin-glass):not(#cr) .grid .card:nth-child(4n+1) { rotate: -.5deg; }
html:not(.skin-glass):not(#cr) .grid .card:nth-child(4n+3) { rotate: .5deg; }
html:not(.skin-glass):not(#cr) .svc-cta { margin-top: 14px !important; }

/* ---------- 5. 按钮：贴纸，按下 = 投影被压平 ----------
   只管页面里的普通按钮和 .btn；搜索面板、语言菜单等小控件各有样式，不一刀切。 */
html:not(.skin-glass):not(#cr) :is(button:not(.btn, .icon-btn, .chip, .ltab, .q-pop-item, .q-chip, .q-search-clear, .q-search-cancel, .q-sg-clear, .q-id-swap, .q-id-change, .ann-dot, .flip-top, .flip-close, .login-x, .to-top, .q-search-fab, .q-sr, .dock-item), .ltab, .chip, .to-top, .flip-close, .login-x, .q-chip, [id="invCopy"]) {
  font-family: inherit; font-weight: 700; color: var(--cr-text);
  background: var(--cr-card); background-image: none;
  border: var(--cr-bw) solid var(--cr-ink);
  border-radius: 14px 10px 15px 9px / 10px 14px 9px 15px;
  box-shadow: 2px 3px 0 var(--cr-sh);
  text-shadow: none;
  transition: transform .12s, box-shadow .12s, background-color .2s;
}
html:not(.skin-glass):not(#cr) :is(button:not(.btn, .icon-btn, .chip, .ltab, .q-pop-item, .q-chip, .q-search-clear, .q-search-cancel, .q-sg-clear, .q-id-swap, .q-id-change, .ann-dot, .flip-top, .flip-close, .login-x, .to-top, .q-search-fab, .q-sr, .dock-item), [id="invCopy"]) {
  min-height: 44px; padding: 9px 18px; font-size: 15px; line-height: 1.3; letter-spacing: .5px;
}
html:not(.skin-glass):not(#cr) .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 9px 18px; font-size: 15px; line-height: 1.3; letter-spacing: .5px;
  font-family: inherit; font-weight: 700; color: #fff !important; text-shadow: none;
  background: var(--cr-blue) var(--cr-grain); background-size: 150px;
  border: var(--cr-bw) solid var(--cr-ink);
  border-radius: 14px 10px 15px 9px / 10px 14px 9px 15px;
  box-shadow: 2px 3px 0 var(--cr-sh);
  transition: transform .12s, box-shadow .12s, background-color .2s;
}
html:not(.skin-glass):not(#cr) .btn.ghost {
  color: var(--cr-text) !important; background: var(--cr-card); background-image: none;
}
html:not(.skin-glass):not(#cr) .btn-soft {
  color: #23201c !important; background: var(--cr-yellow) var(--cr-grain); background-size: 150px;
  border: var(--cr-bw) solid var(--cr-ink); box-shadow: 2px 3px 0 var(--cr-sh);
}
html:not(.skin-glass):not(#cr) .btn.small { min-height: 40px; padding: 7px 15px; font-size: 14px; }
html:not(.skin-glass):not(#cr) :is(button:not(.btn, .icon-btn, .chip, .ltab, .q-pop-item, .q-chip, .q-search-clear, .q-search-cancel, .q-sg-clear, .q-id-swap, .q-id-change, .ann-dot, .flip-top, .flip-close, .login-x, .to-top, .q-search-fab, .q-sr, .dock-item), .btn, .to-top, [id="invCopy"]):hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: 3px 4px 0 var(--cr-sh); border-color: var(--cr-ink); }
html:not(.skin-glass):not(#cr) :is(button:not(.btn, .icon-btn, .chip, .ltab, .q-pop-item, .q-chip, .q-search-clear, .q-search-cancel, .q-sg-clear, .q-id-swap, .q-id-change, .ann-dot, .flip-top, .flip-close, .login-x, .to-top, .q-search-fab, .q-sr, .dock-item), .btn, .to-top, .flip-close, .login-x, [id="invCopy"]):active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--cr-sh); }
html:not(.skin-glass):not(#cr) :is(button:not(.btn, .icon-btn, .chip, .ltab, .q-pop-item, .q-chip, .q-search-clear, .q-search-cancel, .q-sg-clear, .q-id-swap, .q-id-change, .ann-dot, .flip-top, .flip-close, .login-x, .to-top, .q-search-fab, .q-sr, .dock-item), .btn):disabled { opacity: .55; transform: none; box-shadow: 1px 1px 0 var(--cr-sh); }
html:not(.skin-glass):not(#cr) :is(button, .btn, a, input, select, textarea):focus-visible { outline: none; box-shadow: var(--focus), 2px 3px 0 var(--cr-sh); }
html:not(.skin-glass):not(#cr) p:has(> .btn) { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
html:not(.skin-glass):not(#cr) p:has(> .btn) > .btn + .btn { margin-left: 0; }

/* ---------- 6. 表单：纸上的填空格（16px 字号，iPhone 点进去不放大） ---------- */
html:not(.skin-glass):not(#cr) label { margin: 16px 0 6px; font-size: 14.5px; color: var(--cr-text-2); font-weight: 600; }
html:not(.skin-glass):not(#cr) :is(input[type="email"], input[type="password"], input[type="text"], input[type="tel"],
  input[type="search"], input[type="number"], input:not([type]), select, textarea) {
  min-height: 46px; padding: 10px 14px; font-size: 16px; color: var(--cr-text);
  background: var(--cr-field);
  border: var(--cr-bw) solid var(--cr-ink);
  border-radius: 12px 9px 13px 8px / 9px 12px 8px 13px;
  box-shadow: inset 2px 2px 0 rgba(35, 32, 28, .08);
}
html:not(.skin-glass):not(#cr) label > :is(input, select, textarea) { display: block; width: 100%; margin-top: 6px; }
html:not(.skin-glass):not(#cr) :is(input, select, textarea)::placeholder { color: var(--cr-muted); opacity: .9; }
html:not(.skin-glass):not(#cr) :is(input, select, textarea):focus { outline: none; box-shadow: var(--focus); }
html:not(.skin-glass):not(#cr) input[type="checkbox"],
html:not(.skin-glass):not(#cr) input[type="radio"] { width: 20px; height: 20px; accent-color: var(--cr-blue); vertical-align: -4px; margin-right: 8px; }
html:not(.skin-glass):not(#cr) label.opt { display: flex; align-items: flex-start; gap: 2px; margin: 10px 0; font-weight: 500; line-height: 1.6; }
html:not(.skin-glass):not(#cr) fieldset {
  background: var(--cr-card-2); border: 1.5px dashed var(--cr-ink); border-radius: var(--cr-r);
  margin: 18px 0; padding: 14px 16px 16px;
}
html:not(.skin-glass):not(#cr) legend { font-weight: 700; padding: 0 8px; color: var(--cr-text); }
html:not(.skin-glass):not(#cr) .code-row { display: flex; gap: 10px; align-items: stretch; }
html:not(.skin-glass):not(#cr) .code-row input { flex: 1 1 auto; min-width: 0; }
html:not(.skin-glass):not(#cr) .code-row button { flex: 0 0 auto; }
html:not(.skin-glass):not(#cr) pre {
  background: var(--pre-bg); border: 1.5px dashed rgba(35, 32, 28, .35); border-radius: 10px;
  padding: 12px 14px; font-family: var(--cr-mono); font-size: 13px; line-height: 1.65;
}
html[data-theme="dark"]:not(.skin-glass):not(#cr) pre { border-color: rgba(233, 223, 201, .3); }
html[data-theme="dark"]:not(.skin-glass):not(#cr) .doc pre { background: #1a1714; border-color: #e9dfc9; }
html:not(.skin-glass):not(#cr) .error { color: var(--cr-red-ink); }

/* ---------- 7. 表格：贴纸卡里的格子，窄屏可横向滑 ---------- */
html:not(.skin-glass):not(#cr) .tbl-wrap { padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
html:not(.skin-glass):not(#cr) .tbl { background: transparent; font-size: 14.5px; }
/* 没包 .tbl-wrap 的表（商品目录等）：表格自己当贴纸卡 */
html:not(.skin-glass):not(#cr) main.page > .tbl {
  border-collapse: separate; border-spacing: 0; overflow: hidden;
  background: var(--cr-card); border: var(--cr-bw) solid var(--cr-ink);
  border-radius: 14px 9px 13px 10px / 10px 13px 9px 14px; box-shadow: 3px 4px 0 var(--cr-sh);
  margin: 0 0 8px;
}
html:not(.skin-glass):not(#cr) .tbl td:first-child { line-height: 1.55; }
html:not(.skin-glass):not(#cr) .tbl td:nth-child(2) { white-space: nowrap; }
html:not(.skin-glass):not(#cr) .tbl td button { min-height: 38px; padding: 6px 12px; font-size: 13.5px; }
/* 窄屏：每行拆成「名称一行 + 价格/按钮一行」，不再把名称挤成一字一行 */
@media (max-width: 520px) {
  html:not(.skin-glass):not(#cr) main.page > .tbl,
  html:not(.skin-glass):not(#cr) main.page > .tbl > tbody { display: block; }
  html:not(.skin-glass):not(#cr) main.page > .tbl tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
    padding: 13px 14px; border-bottom: 1.5px solid rgba(35, 32, 28, .2);
  }
  html[data-theme="dark"]:not(.skin-glass):not(#cr) main.page > .tbl tr { border-bottom-color: rgba(233, 223, 201, .18); }
  html:not(.skin-glass):not(#cr) main.page > .tbl tr:last-child { border-bottom: 0; }
  html:not(.skin-glass):not(#cr) main.page > .tbl tr:has(> th) { display: none; }
  html:not(.skin-glass):not(#cr) main.page > .tbl td { border: 0; padding: 0; white-space: normal; }
  html:not(.skin-glass):not(#cr) main.page > .tbl td:first-child { grid-column: 1 / -1; font-weight: 700; color: var(--cr-text); margin-bottom: 6px; }
  html:not(.skin-glass):not(#cr) main.page > .tbl td:nth-child(2) { color: var(--cr-text-2); }
}
html:not(.skin-glass):not(#cr) .tbl-wrap .tbl { min-width: 460px; }
html:not(.skin-glass):not(#cr) .tbl th,
html:not(.skin-glass):not(#cr) .tbl td { border: 0; border-bottom: 1.5px solid rgba(35, 32, 28, .2); padding: 12px 12px; vertical-align: middle; }
@media (max-width: 480px) {
  html:not(.skin-glass):not(#cr) .tbl :is(th, td) { padding: 11px 9px; font-size: 14px; }
}
html[data-theme="dark"]:not(.skin-glass):not(#cr) .tbl :is(th, td) { border-bottom-color: rgba(233, 223, 201, .18); }
html:not(.skin-glass):not(#cr) .tbl th { background: var(--cr-card-2); color: var(--cr-text); font-weight: 700; font-size: 13px; letter-spacing: 1px; }
html:not(.skin-glass):not(#cr) .tbl tr:last-child td { border-bottom: 0; }
html:not(.skin-glass):not(#cr) .tbl td .btn,
html:not(.skin-glass):not(#cr) .tbl td button { white-space: nowrap; }

/* ---------- 8. 顶栏：一条纸贴纸 ---------- */
html:not(.skin-glass):not(#cr) .topbar {
  background: var(--cr-card);
  border: 2.5px solid var(--cr-ink);
  border-radius: 18px 12px 17px 13px / 12px 17px 13px 18px;
  box-shadow: 0 4px 0 var(--cr-sh);
}
html:not(.skin-glass):not(#cr) .brand {
  font-family: var(--cr-logo); font-weight: 400; font-size: 24px; letter-spacing: 1px;
  color: var(--cr-blue); -webkit-text-stroke: 1.4px var(--cr-ink); paint-order: stroke fill;
  text-shadow: 1.5px 2px 0 var(--cr-ink);
  -webkit-text-fill-color: currentColor; background: none; -webkit-background-clip: border-box; background-clip: border-box;
  line-height: 1;
}
html[data-theme="dark"]:not(.skin-glass):not(#cr) .brand { color: #8fb0ff; -webkit-text-stroke-color: #0b0a08; }
html:not(.skin-glass):not(#cr) .icon-btn {
  min-height: 0; width: 38px; height: 38px; padding: 0;
  color: var(--cr-text); background: var(--cr-card);
  border: var(--cr-bw) solid var(--cr-ink); border-radius: 50%;
  box-shadow: 2px 2px 0 var(--cr-sh);
}
html:not(.skin-glass):not(#cr) .icon-btn svg { width: 19px; height: 19px; stroke-width: 2.1; }
html:not(.skin-glass):not(#cr) .account-btn {
  width: auto; padding: 0 12px 0 10px; gap: 4px; border-radius: 19px 15px 18px 14px;
  background: var(--cr-yellow) var(--cr-grain); background-size: 150px; color: #23201c;
}
html:not(.skin-glass):not(#cr) .account-btn .icon-label { color: #23201c; font-weight: 700; font-size: 14px; }
html:not(.skin-glass):not(#cr) .icon-btn:hover { text-decoration: none; }
html:not(.skin-glass):not(#cr) .q-navtitle { color: var(--cr-text); font-weight: 700; }

/* ---------- 9. 底部菜单：纸条 + 蜡笔涂抹块（代替玻璃胶囊） ---------- */
html:not(.skin-glass):not(#cr) .dock {
  background: var(--cr-card) var(--cr-paper); background-size: 256px;
  border: 2.5px solid var(--cr-ink);
  border-radius: 24px 15px 22px 16px / 16px 22px 15px 24px;
  box-shadow: 0 4px 0 var(--cr-sh);
}
html[data-theme="dark"]:not(.skin-glass):not(#cr) .dock { background-blend-mode: multiply; }
html:not(.skin-glass):not(#cr) .dock-capsule {
  background: var(--cr-yellow) var(--cr-grain); background-size: 150px;
  border: 0; box-shadow: none;
  border-radius: 20px 11px 18px 13px / 13px 18px 11px 20px;
}
html:not(.skin-glass):not(#cr) .dock-item { color: var(--cr-text); font-weight: 600; letter-spacing: .5px; }
html:not(.skin-glass):not(#cr) .dock-item svg { stroke-width: 2.1; }
html:not(.skin-glass):not(#cr) .dock-item.active { color: #23201c; font-weight: 800; }
html:not(.skin-glass):not(#cr) .q-search-fab {
  color: #fff;
  background: var(--cr-green) var(--cr-grain); background-size: 150px;
  border: 2.5px solid var(--cr-ink);
  box-shadow: 0 4px 0 var(--cr-sh);
}
html:not(.skin-glass):not(#cr) .q-search-fab svg { stroke: #fff; stroke-width: 2.6; }

/* ---------- 10. 首页 · 公告：拍立得照片 + 胶带 + 纸标签 ---------- */
html:not(.skin-glass):not(#cr) .announce { margin: 0 4px 40px; }
@media (min-width: 720px) { html:not(.skin-glass):not(#cr) .announce { max-width: 600px; margin: 8px auto 52px; } }
html:not(.skin-glass):not(#cr) .announce-card {
  overflow: visible; aspect-ratio: auto;
  padding: 10px 10px 74px;
  background: #fffdf7;
  border: 2.5px solid var(--cr-ink);
  border-radius: 6px 8px 5px 7px;
  box-shadow: 4px 6px 0 var(--cr-sh);
  rotate: -1.2deg;
}
html[data-theme="dark"]:not(.skin-glass):not(#cr) .announce-card { background: #efe7d6; }
html:not(.skin-glass):not(#cr) .announce-card img {
  height: auto; aspect-ratio: 4 / 3;
  border: 2px solid #23201c; border-radius: 3px;
}
html:not(.skin-glass):not(#cr) .announce-card::before,
html:not(.skin-glass):not(#cr) .announce-card::after {
  content: ""; display: block; position: absolute; z-index: 3; pointer-events: none;
  width: 72px; height: 24px; inset: auto; padding: 0; border-radius: 2px; opacity: 1;
  background: rgba(242, 194, 48, .78); box-shadow: none;
  -webkit-mask: none; mask: none;
}
html:not(.skin-glass):not(#cr) .announce-card::before { left: -16px; top: -6px; rotate: -30deg; }
html:not(.skin-glass):not(#cr) .announce-card::after { right: -14px; top: -4px; rotate: 26deg; background: rgba(232, 90, 156, .62); }
html:not(.skin-glass):not(#cr) .ann-strip {
  left: 10px; right: 10px; bottom: 10px;
  padding: 8px 8px 8px 10px; gap: 10px;
  background: var(--cr-card-2);
  border: 2px solid #23201c;
  border-radius: 14px 8px 13px 9px / 9px 13px 8px 14px;
  box-shadow: none;
}
html[data-theme="dark"]:not(.skin-glass):not(#cr) .ann-strip { background: #f6efe0; border-color: #23201c; }
html:not(.skin-glass):not(#cr) .ann-tag,
html:not(.skin-glass):not(#cr) .ann-modal-panel .ann-tag {
  font-family: var(--cr-fat); font-weight: 400; font-size: 14px; letter-spacing: 1px;
  color: #fff; background: var(--cr-red) var(--cr-grain); background-size: 150px;
  border: 2px solid #23201c; border-radius: 7px 4px 8px 5px;
  padding: 3px 9px 2px; rotate: -5deg;
}
html:not(.skin-glass):not(#cr) .ann-title { color: #23201c; font-size: 14.5px; font-weight: 700; }
html:not(.skin-glass):not(#cr) .ann-strip .btn { min-height: 42px; padding: 0 16px; }
html:not(.skin-glass):not(#cr) .ann-dots { bottom: 82px; gap: 8px; }
html:not(.skin-glass):not(#cr) .ann-dot {
  min-height: 0; width: 10px; height: 10px; padding: 0;
  background: #fffaf0; border: 1.5px solid #23201c; box-shadow: none; border-radius: 999px;
}
html:not(.skin-glass):not(#cr) .ann-dot.on { width: 24px; background: var(--cr-red) var(--cr-grain); background-size: 150px; }
html:not(.skin-glass):not(#cr) .ann-dot:hover,
html:not(.skin-glass):not(#cr) .ann-dot:active { transform: none; box-shadow: none; }

/* 公告弹窗：从纸标签里「抽」出来的一张卡 */
html:not(.skin-glass):not(#cr) .ann-modal-backdrop { background: rgba(20, 14, 8, .55); }
html:not(.skin-glass):not(#cr) .ann-modal-panel {
  background: var(--cr-card) var(--cr-paper); background-size: 256px;
  border: 2.5px solid var(--cr-ink);
  border-radius: var(--cr-r);
  box-shadow: 5px 7px 0 var(--cr-sh);
  padding: 22px 20px 18px;
}
html[data-theme="dark"]:not(.skin-glass):not(#cr) .ann-modal-panel { background-blend-mode: multiply; }
html:not(.skin-glass):not(#cr) .ann-modal-panel h3 { font-size: 19px; line-height: 1.5; margin: 14px 0 10px; }
html:not(.skin-glass):not(#cr) .ann-modal-panel p { font-size: 15px; line-height: 1.85; color: var(--cr-text-2); }

/* ---------- 11. 首页区块：直接写在书页上（不再套大卡），之间留白加倍 ---------- */
html:not(.skin-glass):not(#cr) .flow-card {
  background: transparent; border: 0; box-shadow: none; padding: 0;
  margin: 0 0 44px; contain-intrinsic-size: auto 420px;
}
html:not(.skin-glass):not(#cr) .flow-card > h2 { font-size: 25px; line-height: 1.3; margin: 0 4px 18px; letter-spacing: 1px; }
html:not(.skin-glass):not(#cr) .flow-card > h2 .more {
  font-family: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: .5px;
  color: var(--cr-text); text-decoration: none; margin-top: 6px;
}
html:not(.skin-glass):not(#cr) .flow-card > h2 .more:hover { color: var(--cr-blue-ink); }

/* 栏目方块：手机 3 列（原来 4 列太挤），平板/桌面 5 列 */
html:not(.skin-glass):not(#cr) .col-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 12px; padding: 0 2px; }
@media (min-width: 640px) { html:not(.skin-glass):not(#cr) .col-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
html:not(.skin-glass):not(#cr) .col-cell {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 4px 11px;
  background: var(--cr-card);
  border: var(--cr-bw) solid var(--cr-ink);
  border-radius: 15px 8px 14px 9px / 9px 14px 8px 15px;
  box-shadow: 2px 3px 0 var(--cr-sh);
  color: var(--cr-text);
}
html:not(.skin-glass):not(#cr) .col-cell:nth-child(4n+1) { rotate: -1.1deg; }
html:not(.skin-glass):not(#cr) .col-cell:nth-child(4n+2) { rotate: .7deg; }
html:not(.skin-glass):not(#cr) .col-cell:nth-child(4n+3) { rotate: -.4deg; }
html:not(.skin-glass):not(#cr) .col-cell:nth-child(4n) { rotate: 1deg; }
html:not(.skin-glass):not(#cr) .col-cell:hover { border-color: var(--cr-ink); transform: translate(-1px, -2px); box-shadow: 3px 5px 0 var(--cr-sh); text-decoration: none; }
html:not(.skin-glass):not(#cr) .col-cell:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--cr-sh); }
html:not(.skin-glass):not(#cr) .col-cell .col-ico {
  width: 46px; height: 46px; margin: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--cr-red) var(--cr-grain); background-size: 150px;
  border: var(--cr-bw) solid #23201c; border-radius: 13px 9px 14px 8px;
  box-shadow: none;
}
html:not(.skin-glass):not(#cr) .col-cell .col-ico svg { width: 23px; height: 23px; stroke-width: 2.1; }
html:not(.skin-glass):not(#cr) .col-cell:nth-child(8n+2) .col-ico { background-color: var(--cr-blue); }
html:not(.skin-glass):not(#cr) .col-cell:nth-child(8n+3) .col-ico { background-color: var(--cr-green); }
html:not(.skin-glass):not(#cr) .col-cell:nth-child(8n+4) .col-ico { background-color: var(--cr-purple); }
html:not(.skin-glass):not(#cr) .col-cell:nth-child(8n+5) .col-ico { background-color: var(--cr-orange); }
html:not(.skin-glass):not(#cr) .col-cell:nth-child(8n+6) .col-ico { background-color: var(--cr-teal); }
html:not(.skin-glass):not(#cr) .col-cell:nth-child(8n+7) .col-ico { background-color: var(--cr-pink); }
html:not(.skin-glass):not(#cr) .col-cell:nth-child(8n) .col-ico { background-color: var(--cr-yellow); color: #23201c; }
html:not(.skin-glass):not(#cr) .col-cell.col-shop .col-ico { background-color: #e9e0c9; color: #23201c; }
html:not(.skin-glass):not(#cr) .col-cell .col-name { font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--cr-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 2px; }
html:not(.skin-glass):not(#cr) .col-cell .col-count { font-size: 12px; letter-spacing: .5px; color: var(--cr-muted); margin: 0; }
html:not(.skin-glass):not(#cr) .col-cell.col-shop .col-name,
html:not(.skin-glass):not(#cr) .col-cell.col-shop .col-ico { opacity: 1; }

html:not(.skin-glass):not(#cr) .svc-mini { gap: 12px; }
html:not(.skin-glass):not(#cr) .svc-mini p { font-size: 15px; line-height: 1.8; color: var(--cr-text-2); }
html:not(.skin-glass):not(#cr) .svc-mini strong { color: var(--cr-text); }

/* ---------- 12. 文章卡：贴纸 + 一条胶带，标题四色轮换 ---------- */
html:not(.skin-glass):not(#cr) .art-list { gap: 20px; }
html:not(.skin-glass):not(#cr) .art-card {
  position: relative;
  background: var(--cr-card);
  border: var(--cr-bw) solid var(--cr-ink);
  border-radius: var(--cr-r);
  box-shadow: 3px 4px 0 var(--cr-sh);
  padding: 18px 18px 15px;
}
html:not(.skin-glass):not(#cr) .art-card::before {
  content: ""; display: block; position: absolute; z-index: 2; pointer-events: none;
  inset: auto; top: -10px; left: 22px; width: 58px; height: 20px; border-radius: 2px;
  background: rgba(242, 194, 48, .72); box-shadow: none; opacity: 1; rotate: -4deg;
}
html:not(.skin-glass):not(#cr) .art-card:nth-child(3n+2)::before { left: auto; right: 26px; rotate: 5deg; background: rgba(143, 176, 255, .7); }
html:not(.skin-glass):not(#cr) .art-card:nth-child(3n)::before { left: 46%; rotate: -2deg; background: rgba(232, 90, 156, .55); }
html:not(.skin-glass):not(#cr) .art-card:hover { transform: translate(-1px, -2px); border-color: var(--cr-ink); box-shadow: 4px 6px 0 var(--cr-sh); }
html:not(.skin-glass):not(#cr) .art-card:active { transform: translate(2px, 3px); box-shadow: 0 0 0 var(--cr-sh); }
html:not(.skin-glass):not(#cr) .art-card h3 { font-size: 17px; font-weight: 800; line-height: 1.5; margin: 0 0 8px; letter-spacing: .3px; }
html:not(.skin-glass):not(#cr) .art-card h3 a { color: var(--cr-blue-ink); }
html:not(.skin-glass):not(#cr) .art-card:nth-child(4n+2) h3 a { color: var(--cr-red-ink); }
html:not(.skin-glass):not(#cr) .art-card:nth-child(4n+3) h3 a { color: var(--cr-green-ink); }
html:not(.skin-glass):not(#cr) .art-card:nth-child(4n) h3 a { color: var(--cr-purple-ink); }
html:not(.skin-glass):not(#cr) .art-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
html:not(.skin-glass):not(#cr) .art-sum { color: var(--cr-text-2); font-size: 14.5px; line-height: 1.75; margin: 0 0 12px; }
html:not(.skin-glass):not(#cr) .meta { font-size: 12.5px; letter-spacing: .3px; color: var(--cr-muted); gap: 10px; align-items: center; flex-wrap: wrap; }
html:not(.skin-glass):not(#cr) .meta-col {
  font-family: inherit; color: var(--cr-text); font-weight: 700;
  padding: 1px 8px; border: 1.5px solid var(--cr-ink); border-radius: 9px 5px 9px 6px; background: var(--cr-card-2);
}

/* ---------- 13. 文库页：搜索 / 栏目标签 / 分区标题（空心描边字） ---------- */
html:not(.skin-glass):not(#cr) .lib-search { gap: 10px; margin: 0 0 18px; }
html:not(.skin-glass):not(#cr) .lib-search input[type="search"] { flex: 1 1 auto; min-width: 0; }
html:not(.skin-glass):not(#cr) .lib-search button {
  color: #fff; background: var(--cr-red) var(--cr-grain); background-size: 150px; flex: 0 0 auto;
}
html:not(.skin-glass):not(#cr) .chips {
  background: var(--cr-card);
  border: var(--cr-bw) solid var(--cr-ink);
  border-radius: 16px 10px 15px 11px / 11px 15px 10px 16px;
  box-shadow: 0 3px 0 var(--cr-sh);
  padding: 8px; gap: 8px;
}
html:not(.skin-glass):not(#cr) .chip-capsule { display: none; }
html:not(.skin-glass):not(#cr) .chip {
  min-height: 36px; padding: 5px 13px; font-size: 13.5px; font-weight: 700;
  background: var(--cr-card-2); color: var(--cr-text);
  border: 1.5px solid var(--cr-ink); border-radius: 12px 7px 11px 8px;
  box-shadow: none; white-space: nowrap;
}
html:not(.skin-glass):not(#cr) .chip:hover { transform: none; box-shadow: none; }
html:not(.skin-glass):not(#cr) .chip.active {
  color: #23201c; background: var(--cr-yellow) var(--cr-grain); background-size: 150px;
  border-color: #23201c;
}
html:not(.skin-glass):not(#cr) .lib-sec { scroll-margin-top: 140px; }
html:not(.skin-glass):not(#cr) h2.sec-title {
  display: flex; align-items: center; gap: 12px;
  background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0;
  margin: 40px 2px 18px;
  font-family: var(--cr-fat); font-weight: 400; font-size: 26px; letter-spacing: 1px; line-height: 1.3;
  color: var(--cr-sheet); -webkit-text-stroke: 5px var(--cr-ink); paint-order: stroke fill;
}
html:not(.skin-glass):not(#cr) .sec-count {
  font-family: var(--cr-mono); font-size: 12px; font-weight: 700; letter-spacing: 0;
  -webkit-text-stroke: 0; color: #fff;
  background: var(--cr-blue) var(--cr-grain); background-size: 150px;
  border: 2px solid #23201c; border-radius: 9px 5px 9px 6px; padding: 2px 9px; rotate: 4deg;
}
html:not(.skin-glass):not(#cr) .lib-sec.flash .sec-title { background: none; color: var(--cr-yellow); }

/* ---------- 14. 文章页：舒服的阅读版心 ---------- */
html:not(.skin-glass):not(#cr) .doc {
  background: none; border: 0; box-shadow: none; padding: 0;
  max-width: 720px; margin: 0 auto;
  font-size: 16.5px; line-height: 1.95;
}
html:not(.skin-glass):not(#cr) .doc h1 {
  font-size: 27px; line-height: 1.45; font-weight: 900; letter-spacing: .5px; margin: 4px 0 14px;
}
html:not(.skin-glass):not(#cr) .doc .lead { font-size: 16px; color: var(--cr-text-2); padding: 0 0 18px; margin: 0 0 22px; border-bottom: 2px dashed rgba(35, 32, 28, .3); }
html[data-theme="dark"]:not(.skin-glass):not(#cr) .doc .lead { border-bottom-color: rgba(233, 223, 201, .25); }
html:not(.skin-glass):not(#cr) .doc p { margin: 0 0 1.15em; color: var(--cr-text); }
html:not(.skin-glass):not(#cr) .doc h2 {
  font-weight: 800; font-size: 21px; line-height: 1.5; letter-spacing: .5px; margin: 2em 0 .7em;
  text-decoration: underline; text-decoration-color: var(--cr-hl);
  text-decoration-thickness: .34em; text-underline-offset: -.14em; text-decoration-skip-ink: none;
}
html:not(.skin-glass):not(#cr) .doc h3 { font-size: 18.5px; line-height: 1.5; margin: 1.6em 0 .6em; }
html:not(.skin-glass):not(#cr) .doc :is(ul, ol) { padding-left: 1.3em; margin: 0 0 1.2em; }
html:not(.skin-glass):not(#cr) .doc li { margin: 0 0 .6em; }
html:not(.skin-glass):not(#cr) .doc li::marker { color: var(--cr-red); }
html:not(.skin-glass):not(#cr) .doc strong { color: var(--cr-text); background: linear-gradient(transparent 62%, rgba(242, 194, 48, .45) 62%); }
html:not(.skin-glass):not(#cr) .doc a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
html:not(.skin-glass):not(#cr) .doc pre {
  background: #2b2722; color: #f3ead7; border: 2px solid #23201c; border-radius: 12px 8px 12px 8px;
  box-shadow: 3px 4px 0 var(--cr-sh); padding: 14px 16px; overflow-x: auto; white-space: pre; word-break: normal;
  font-size: 13px; line-height: 1.7; margin: 0 0 1.4em;
}
html:not(.skin-glass):not(#cr) .doc :not(pre) > code {
  font-family: var(--cr-mono); font-size: .88em; padding: 1px 6px; border-radius: 6px;
  background: var(--pre-bg); border: 1px solid rgba(35, 32, 28, .18);
}
html:not(.skin-glass):not(#cr) .doc blockquote {
  margin: 0 0 1.3em; padding: 12px 16px; background: var(--cr-card-2);
  border: 0; border-left: 5px solid var(--cr-yellow); border-radius: 4px 12px 12px 4px; color: var(--cr-text-2);
}
html:not(.skin-glass):not(#cr) .doc img { max-width: 100%; height: auto; border: 2px solid var(--cr-ink); border-radius: 6px; box-shadow: 3px 4px 0 var(--cr-sh); }
html:not(.skin-glass):not(#cr) .crumbs { font-size: 12.5px; color: var(--cr-muted); margin: 0 0 14px; line-height: 1.7; }
html:not(.skin-glass):not(#cr) .crumbs a { color: var(--cr-text-2); }
html:not(.skin-glass):not(#cr) .crumbs .sep { margin: 0 6px; opacity: .6; }

/* 口令词提示：便利贴 */
html:not(.skin-glass):not(#cr) .hint {
  position: relative;
  background: #fff1b8 var(--cr-grain); background-size: 220px;
  color: #4a3a05; border: var(--cr-bw) solid #23201c;
  border-radius: 4px 10px 6px 12px;
  box-shadow: 3px 4px 0 var(--cr-sh);
  padding: 18px 18px 16px; margin: 30px 0; rotate: -.8deg;
}
html:not(.skin-glass):not(#cr) .hint a { color: #2a4fb8; }
html:not(.skin-glass):not(#cr) .related { padding: 18px; margin: 32px 0 0; }
html:not(.skin-glass):not(#cr) .related h2,
html:not(.skin-glass):not(#cr) .related h3 { font-family: var(--cr-fat); font-weight: 400; font-size: 20px; margin: 0 0 10px; }
html:not(.skin-glass):not(#cr) .related :is(ul, ol) { margin: 0; padding-left: 1.2em; }
html:not(.skin-glass):not(#cr) .related li { margin: 0 0 .5em; line-height: 1.7; }
html:not(.skin-glass):not(#cr) .pager { gap: 14px; margin-top: 24px; }
html:not(.skin-glass):not(#cr) .pager-link {
  background: var(--cr-card); border: var(--cr-bw) solid var(--cr-ink);
  border-radius: var(--cr-r); box-shadow: 2px 3px 0 var(--cr-sh); padding: 12px 16px; line-height: 1.6;
}
html:not(.skin-glass):not(#cr) .pager-link:hover { transform: translate(-1px, -1px); box-shadow: 3px 4px 0 var(--cr-sh); text-decoration: none; }
html:not(.skin-glass):not(#cr) .to-top {
  background: var(--cr-yellow) var(--cr-grain); background-size: 150px; color: #23201c;
  border: var(--cr-bw) solid #23201c;
}

/* 文章原位展开（FLIP 面板）：一整张纸 */
html:not(.skin-glass):not(#cr) .flip-backdrop { background: rgba(20, 14, 8, .55); }
html:not(.skin-glass):not(#cr) .flip-panel {
  background: var(--cr-sheet) var(--cr-paper); background-size: 256px;
  border: 2.5px solid var(--cr-ink); border-radius: 18px;
  box-shadow: 0 7px 0 var(--cr-cover), 0 24px 50px rgba(0, 0, 0, .45);
}
html[data-theme="dark"]:not(.skin-glass):not(#cr) .flip-panel { background-blend-mode: multiply; }
html:not(.skin-glass):not(#cr) .flip-close {
  background: var(--cr-card); border: var(--cr-bw) solid var(--cr-ink); box-shadow: 2px 2px 0 var(--cr-sh); color: var(--cr-text);
}

/* ---------- 15. 弹层：登录卡 / 搜索 / 语言菜单 / 侧栏 / 提示 ---------- */
html:not(.skin-glass):not(#cr) :is(.login-card, .side-panel, .q-search-panel, .q-pop) {
  background: var(--cr-card) var(--cr-paper); background-size: 256px;
  border: 2.5px solid var(--cr-ink);
  border-radius: var(--cr-r);
  box-shadow: 4px 6px 0 var(--cr-sh);
  color: var(--cr-text);
}
html[data-theme="dark"]:not(.skin-glass):not(#cr) :is(.login-card, .side-panel, .q-search-panel, .q-pop) { background-blend-mode: multiply; }
html:not(.skin-glass):not(#cr) .login-card::before { display: none; }
html:not(.skin-glass):not(#cr) :is(.login-overlay, .side-backdrop, .q-search-dim) { background: rgba(20, 14, 8, .55); -webkit-backdrop-filter: none; backdrop-filter: none; }
html:not(.skin-glass):not(#cr) :is(.login-tabs, .q-chips) { gap: 8px; }
html:not(.skin-glass):not(#cr) .ltab {
  min-height: 40px; background: var(--cr-card-2); box-shadow: none; border: 1.5px solid var(--cr-ink);
}
html:not(.skin-glass):not(#cr) .ltab.active {
  color: #23201c; background: var(--cr-yellow) var(--cr-grain); background-size: 150px;
}
html:not(.skin-glass):not(#cr) .q-search .q-search-input { padding-left: 44px; padding-right: 40px; }
html:not(.skin-glass):not(#cr) .q-search-glass { color: var(--cr-text-2); }
html:not(.skin-glass):not(#cr) .q-sr-ico {
  color: #fff; background: var(--cr-blue) var(--cr-grain); background-size: 150px;
  border: 2px solid #23201c; border-radius: 11px 7px 12px 6px; box-shadow: none;
}
html:not(.skin-glass):not(#cr) .q-sg .q-sr:nth-child(4n+2) .q-sr-ico { background-color: var(--cr-red); }
html:not(.skin-glass):not(#cr) .q-sg .q-sr:nth-child(4n+3) .q-sr-ico { background-color: var(--cr-green); }
html:not(.skin-glass):not(#cr) .q-sg .q-sr:nth-child(4n) .q-sr-ico { background-color: var(--cr-purple); }
html:not(.skin-glass):not(#cr) .q-sr-title { color: var(--cr-text); font-weight: 700; }
html:not(.skin-glass):not(#cr) .q-sr-sub { color: var(--cr-muted); }
html:not(.skin-glass):not(#cr) .q-sg-h { color: var(--cr-text-2); font-weight: 700; letter-spacing: 1px; }
html:not(.skin-glass):not(#cr) .q-search-cancel { color: var(--cr-red-ink); font-weight: 700; }
html:not(.skin-glass):not(#cr) :is(.q-pop-item, .q-sr) { border-radius: 10px; }
html:not(.skin-glass):not(#cr) :is(.q-pop-item, .q-sr):hover { background: rgba(242, 194, 48, .22); }
html:not(.skin-glass):not(#cr) .q-chip {
  min-height: 34px; background: var(--cr-card-2); color: var(--cr-text);
  border: 1.5px solid var(--cr-ink); border-radius: 12px 7px 11px 8px; box-shadow: none;
}
html:not(.skin-glass):not(#cr) .q-grabber::before { background: var(--cr-ink); opacity: .5; }
html:not(.skin-glass):not(#cr) .toast {
  color: #23201c; background: #fff1b8 var(--cr-grain); background-size: 200px;
  border: 2px solid #23201c; border-radius: 14px 9px 13px 10px;
  box-shadow: 3px 4px 0 #23201c; font-weight: 700;
}

/* ---------- 16. 「我的」与会员页的小件 ---------- */
html:not(.skin-glass):not(#cr) .bal-big { font-family: var(--cr-logo); color: var(--cr-green-ink); letter-spacing: 1px; }
html:not(.skin-glass):not(#cr) .ord-row {
  background: var(--cr-card); border: var(--cr-bw) solid var(--cr-ink); border-radius: var(--cr-r);
  box-shadow: 2px 3px 0 var(--cr-sh);
}
html:not(.skin-glass):not(#cr) details > summary { cursor: pointer; font-weight: 700; color: var(--cr-blue-ink); padding: 6px 0; }
html:not(.skin-glass):not(#cr) .info-rows { line-height: 1.9; }
html:not(.skin-glass):not(#cr) .sub-bar { gap: 10px; }

/* ---------- 17. 立体书弹出：卡片沿底边从书页上立起来 ----------
   接现有 .rv（FRONT_JS 加的）入场：半透明平躺 62° → 过头一点 → 站稳。
   平躺时留一点影子（不完全透明），停在屏幕底边的卡片不会看起来像空白。
   动画 ≤ .72s，赶在 JS 1.1s 摘类之前结束。大块（区块、面板）只抬
   一点，正文整块只淡入，避免大面积翻转晃眼。 */
html.q-js:not(.skin-glass):not(#cr) :is(.art-card, .card, .announce-card, .hint, .related).rv {
  opacity: .25; filter: none;
  transform: perspective(700px) rotateX(62deg);
  transform-origin: 50% 100%;
  transition: transform .72s cubic-bezier(.3, 1.5, .55, 1), opacity .3s ease-out;
}
html.q-js:not(.skin-glass):not(#cr) :is(.flow-card, .panel).rv {
  opacity: 0; filter: none;
  transform: perspective(900px) rotateX(26deg) translateY(10px);
  transform-origin: 50% 100%;
  transition: transform .66s cubic-bezier(.3, 1.35, .55, 1), opacity .35s ease-out;
}
html.q-js:not(.skin-glass):not(#cr) .doc.rv {
  opacity: 0; filter: none; transform: translateY(12px);
  transition: transform .5s ease-out, opacity .4s ease-out;
}
html.q-js:not(.skin-glass):not(#cr) .rv.in { opacity: 1; transform: perspective(900px) rotateX(0deg) translateY(0); }
html.q-js:not(.skin-glass):not(#cr) .q-rv { filter: none; }
html.q-js:not(.skin-glass):not(#cr) .q-rv.q-in { filter: none; }
@media (prefers-reduced-motion: reduce) {
  html:not(.skin-glass):not(#cr) :is(.col-cell, .grid .card, .announce-card, .hint) { rotate: none; }
}

/* ---------- 18. 窄屏细节 ---------- */
@media (max-width: 640px) {
  html:not(.skin-glass):not(#cr) .home-flow { padding: 80px 14px 128px; }
  html:not(.skin-glass):not(#cr) .col-grid { gap: 14px 11px; }
  html:not(.skin-glass):not(#cr) .col-cell { padding: 13px 2px 10px; border-radius: 15px 8px 14px 9px / 9px 14px 8px 15px; }
  html:not(.skin-glass):not(#cr) .col-cell .col-name { padding: 0; }
  html:not(.skin-glass):not(#cr) .col-cell .col-ico svg { width: 23px; height: 23px; }
  html:not(.skin-glass):not(#cr) .col-cell .col-name { font-size: 13px; }
  html:not(.skin-glass):not(#cr) .ann-dots { bottom: 80px; }
  html:not(.skin-glass):not(#cr) .brand { letter-spacing: .5px; }
  html:not(.skin-glass):not(#cr) main.page > h1 { font-size: 29px; }
}
@media (max-width: 360px) {
  html:not(.skin-glass):not(#cr) .brand { font-size: 21px; }
  html:not(.skin-glass):not(#cr) .col-cell .col-name { font-size: 12px; }
}
/* ==================== END CRAYON v1 ==================== */

/* ---------- REDESIGN PREVIEW layer (2026-11-28, preview only) ---------- */
.hero-card { text-align: left; }
.hero-title { font-size: 26px; line-height: 1.35; margin: 4px 0 10px; }
.hero-sub { font-size: 15.5px; line-height: 1.65; margin: 0 0 16px; opacity: .88; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn { padding: 10px 26px; font-size: 16px; }
.block-desc { font-size: 14.5px; line-height: 1.6; margin: 2px 0 12px; opacity: .85; }
.shop-banner {
  display: flex; align-items: center; gap: 16px;
  margin: 18px 0; padding: 22px 24px;
  border: 2.5px dashed var(--accent, #d2691e); border-radius: 18px 10px 18px 10px / 10px 18px 10px 18px;
  background: var(--card, #fff8ec); color: inherit; text-decoration: none;
  box-shadow: 0 4px 0 rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.shop-banner:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 7px 0 rgba(0,0,0,.08); }
.shop-banner-ico svg { width: 44px; height: 44px; display: block; }
.shop-banner-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.shop-banner-text strong { font-size: 24px; letter-spacing: 2px; }
.shop-banner-text span { font-size: 14.5px; opacity: .85; }
.shop-banner-go { font-size: 16px; font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) {
  .hero-title { font-size: 22px; }
  .shop-banner { padding: 18px 16px; gap: 12px; }
  .shop-banner-text strong { font-size: 20px; }
  .shop-banner-go { font-size: 14px; }
}
