/* Claude 色调 · 暖深灰 + 陶土橙（旧注释：极光 · 深色玻璃拟态）
   深海蓝底 + 缓慢漂移的极光光斑；所有面板为半透明玻璃（模糊 + 细高光边）；
   主操作用 青→蓝→紫 渐变。整体比旧版更紧凑：更小的字号、间距与控件高度。 */
:root {
  --bg: #faf9f5;
  --glass: #ffffff;
  --glass-2: #f3f1ea;
  --glass-3: #eae7dc;
  --line: rgba(20, 20, 19, 0.1);
  --line-strong: rgba(20, 20, 19, 0.2);
  --txt: #1f1e1d;
  --mute: #6e6c64;
  --accent: #c15f3c;
  --accent-2: #a94f2e;
  --stone: #8a877d;
  --ok: #2f8f5b;
  --warn: #a8700a;
  --hot: #c23b32;
  --grad: linear-gradient(180deg, #cc6a46 0%, #c15f3c 100%);
  --ring: 0 0 0 3px rgba(193, 95, 60, 0.2);
  --shadow: 0 8px 24px -16px rgba(80, 50, 25, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --blur: none;
  --display: "Bricolage Grotesque", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: rgba(20, 20, 19, 0.25) transparent; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; background: var(--bg); overscroll-behavior: none; }
body {
  margin: 0; background: transparent; color: var(--txt);
  font-family: var(--body); line-height: 1.55; font-variant-numeric: tabular-nums;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.25; }
h2 { font-size: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { flex: none; }
.muted { color: var(--mute); font-size: 0.88rem; margin: 0; }
.warn { color: var(--warn); font-style: normal; margin-left: 0.4rem; font-size: 0.85rem; }
.err { color: var(--hot); min-height: 1.2em; margin: 0; font-size: 0.88rem; }
.err-text { color: var(--hot); }
.lede { color: var(--mute); }
.prewrap { white-space: pre-wrap; word-break: break-word; }

/* ───── 背景：近黑底 + 顶部一点暖光，静止不动 ───── */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(90% 55% at 50% -12%, #f6e9df 0%, var(--bg) 62%); }
.aurora i { display: none; }

/* ───── 玻璃面板（统一的材质） ───── */
.rail, .topbar, .tabbar, .more-panel, .entry-card, .scroll, .plan, .hero-stat, .act-body, .hint, .shortcuts a,
dl.facts > div, ul.nodes, ul.docs, .notices, .dd-list {
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* ───── 应用外壳：桌面左栏 + 独立滚动的内容区；手机底部标签栏 ─────
   外层固定为一屏高，只有 .main 自己滚动，所以中间的分割线始终固定、不会跟着页面上下移动。 */
body.app { display: grid; grid-template-columns: 216px minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.rail {
  height: 100%; display: flex; flex-direction: column; padding: 0 0.7rem 0.8rem; overflow-y: auto;
  border-width: 0 1px 0 0; border-radius: 0; background: #f4f2eb; box-shadow: none; overscroll-behavior: contain;
}
.rail-brand { display: flex; align-items: center; gap: 0.7rem; color: var(--txt); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.01em; min-width: 0; }
.rail .rail-brand { flex: none; height: 68px; margin: 0 -0.7rem; padding: 0 1.1rem; border-bottom: 1px solid var(--line); }
.rail-brand .mark { filter: drop-shadow(0 4px 8px rgba(193, 95, 60, 0.28)); }
.rail-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail nav { display: flex; flex-direction: column; gap: 1px; margin-top: 0.9rem; }
.rail nav a, .rail-out {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0.7rem; border-radius: 10px;
  color: var(--mute); text-decoration: none; font: inherit; font-size: 0.9rem;
  background: none; border: 0; cursor: pointer; text-align: left; width: 100%; transition: background 0.15s, color 0.15s;
}
.rail nav a:hover, .rail-out:hover { color: var(--txt); background: var(--glass-2); }
.rail nav a.on { color: var(--txt); font-weight: 600; background: linear-gradient(90deg, rgba(217, 119, 87, 0.16), rgba(217, 119, 87, 0.04)); box-shadow: inset 0 0 0 1px rgba(193, 95, 60, 0.25); }
.rail nav a.on .icon { color: var(--accent); }
.rail-group { margin: 0.7rem 0 0.1rem; padding: 0 0.7rem; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--mute); opacity: 0.75; }
.rail-out { margin-top: auto; }
.topbar, .tabbar { display: none; }
.main { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; padding: 1.3rem clamp(1rem, 3vw, 2.2rem) 2.4rem; }
.page { max-width: 64rem; margin: 0 auto; }
.main [id] { scroll-margin-top: 1rem; }

.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; }
.block { margin-top: 1.5rem; }
.block-h { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.6rem; }
.empty { color: var(--mute); padding: 0.8rem 0; margin: 0; }

/* ───── 登录/注册：左极光 右玻璃卡片；两侧各自独立，分割线固定 ───── */
body.guest { height: 100vh; height: 100dvh; overflow: hidden; }
.entry { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); height: 100%; }
.entry-art { position: relative; overflow: hidden; min-height: 0; }
.entry-art::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.entry-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.entry-copy { position: relative; padding: clamp(1.4rem, 3.5vw, 2.6rem); max-width: 30rem; }
.entry-brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; }
.entry-copy p { margin: 0.9rem 0 0; font-size: 1.05rem; color: var(--txt); opacity: 0.85; }
.entry-form { display: flex; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1.2rem; }
.entry-card { margin: auto; width: min(25rem, 100%); padding: 1.5rem 1.5rem 1.2rem; border-radius: 10px; background: #fff; border-color: var(--line-strong); box-shadow: 0 30px 60px -34px rgba(80, 50, 25, 0.4); }
.entry-card h1 { margin-bottom: 1rem; }
.entry-card .stack { gap: 0.8rem; }
.alt { display: flex; justify-content: space-between; margin: 1rem 0 0; font-size: 0.88rem; }

/* ───── 表单与按钮 ───── */
.stack { display: grid; gap: 0.8rem; }
.row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.field { display: grid; gap: 0.3rem; font-size: 0.86rem; }
.field > span { color: var(--mute); }
.field small { color: var(--mute); }
input, select, textarea {
  font: inherit; color: var(--txt); background: #fff; width: 100%; min-width: 0;
  border: 1px solid var(--line); border-radius: 10px; padding: 0.5rem 0.75rem; min-height: 38px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input::placeholder, textarea::placeholder { color: rgba(110, 108, 100, 0.6); }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); background: #fff; box-shadow: var(--ring); }
input:-webkit-autofill { -webkit-text-fill-color: var(--txt); caret-color: var(--txt); box-shadow: 0 0 0 1000px #fff inset; }
select {
  appearance: none; padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6c64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.6rem center; background-size: 16px;
}
option { background: #fff; color: var(--txt); }
textarea { resize: vertical; }
.row input { flex: 1; }
input[type="checkbox"], input[type="radio"] { width: 1rem; height: 1rem; min-height: 0; accent-color: var(--accent); }
.check { display: flex; gap: 0.5rem; align-items: center; font-size: 0.88rem; color: var(--mute); }
.btn {
  font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; padding: 0.45rem 1rem; min-height: 38px; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; text-decoration: none;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--glass-2); color: var(--txt);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.btn:hover { background: var(--glass-3); color: var(--txt); border-color: rgba(20, 20, 19, 0.32); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: none; font-weight: 700; }
.btn.primary:hover { color: #fff; filter: brightness(0.94); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn.block-btn { width: 100%; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; background: none; border: 0; color: var(--mute); cursor: pointer; border-radius: 10px; }
.icon-btn:hover { color: var(--txt); background: var(--glass-2); }
.linklike { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.linklike.danger { color: var(--hot); }

/* 邮箱：账号 + @ + 后缀下拉 */
.mail-combo { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.mail-combo:hover { border-color: var(--line-strong); }
.mail-combo:focus-within { border-color: var(--accent); box-shadow: var(--ring); background: #fff; }
.mail-combo input { flex: 1; border: 0; background: transparent; box-shadow: none; border-radius: 10px 0 0 10px; min-height: 36px; }
.mail-combo input:focus { border: 0; box-shadow: none; background: transparent; }
.mail-combo .at { display: grid; place-items: center; padding: 0 0.15rem 0 0; color: var(--mute); }
.dd { position: relative; display: flex; }
.dd-btn {
  display: inline-flex; align-items: center; gap: 0.35rem; max-width: 11rem; padding: 0 0.6rem 0 0.7rem; font: inherit; font-size: 0.9rem; color: var(--txt); cursor: pointer;
  background: var(--glass-2); border: 0; border-left: 1px solid var(--line); border-radius: 0 9px 9px 0;
}
.dd-btn:hover { background: var(--glass-3); }
.dd-btn [data-dd-val] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn .icon { color: var(--mute); transition: transform 0.15s; }
.dd-btn[aria-expanded="true"] .icon { transform: rotate(180deg); color: var(--accent); }
.dd-list {
  position: absolute; z-index: 40; right: 0; top: calc(100% + 6px); min-width: 100%; width: max-content; max-width: 16rem; max-height: 13.5rem; overflow-y: auto;
  list-style: none; margin: 0; padding: 0.3rem; border-radius: 12px; background: #fff; border-color: var(--line-strong);
  box-shadow: 0 20px 40px -18px rgba(80, 50, 25, 0.4);
}
.dd-list[hidden] { display: none; }
.dd-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.42rem 0.65rem; border-radius: 8px; font-size: 0.9rem; cursor: pointer; color: var(--txt); outline: 0; }
.dd-list li:hover, .dd-list li:focus { background: var(--glass-3); }
.dd-list li[aria-selected="true"] { color: var(--accent); font-weight: 600; }
.dd-list li[aria-selected="true"]::after { content: "✓"; font-size: 0.85rem; }

/* ───── 流量表（极光版）：已用流量 = 极光海面的高度 ───── */
.sky {
  --sea-back: linear-gradient(180deg, rgba(217, 119, 87, 0.22), rgba(201, 100, 66, 0.26));
  --sea-front: linear-gradient(180deg, rgba(232, 144, 111, 0.78), rgba(201, 100, 66, 0.9));
  position: relative; overflow: hidden; isolation: isolate; border-radius: 12px; min-height: 200px;
  background: linear-gradient(160deg, #ffffff, #f6efe6);
  border: 1px solid var(--line-strong); box-shadow: 0 20px 44px -30px rgba(80, 50, 25, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.sky.warm { --sea-back: linear-gradient(180deg, rgba(229, 176, 74, 0.26), rgba(229, 176, 74, 0.32)); --sea-front: linear-gradient(180deg, rgba(236, 190, 100, 0.8), rgba(214, 150, 40, 0.92)); }
.sky.hot { --sea-back: linear-gradient(180deg, rgba(229, 72, 77, 0.28), rgba(229, 72, 77, 0.34)); --sea-front: linear-gradient(180deg, rgba(236, 100, 95, 0.82), rgba(200, 55, 60, 0.94)); }
.sky-sun { position: absolute; z-index: -3; right: 8%; top: 14%; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 226, 190, 0.95) 0%, rgba(217, 119, 87, 0.35) 45%, transparent 72%); }
.sea { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.sea.back { z-index: -2; height: calc(var(--rise) + 7%); background: var(--sea-back); }
.sea.front { height: var(--rise); background: var(--sea-front); }
.sea {
  -webkit-mask: linear-gradient(#000, #000) 0 100% / 100% calc(100% - 16px) no-repeat, var(--wave) 0 0 / 160px 18px repeat-x;
  mask: linear-gradient(#000, #000) 0 100% / 100% calc(100% - 16px) no-repeat, var(--wave) 0 0 / 160px 18px repeat-x;
}
.sea.back { -webkit-mask-position: 0 100%, 70px 0; mask-position: 0 100%, 70px 0; }
:root { --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 18'%3E%3Cpath d='M0 18V12c10-8 22-8 32 0s22 8 32 0 22-8 32 0 22 8 32 0 22-8 32 0V18z'/%3E%3C/svg%3E"); }
@keyframes rise { from { height: 0; } }
.sky-body { padding: 1.5rem clamp(1.1rem, 3vw, 1.6rem) 1.5rem; position: relative; z-index: 1; }
.sky-label { margin: 0; opacity: 0.8; font-size: 0.86rem; }
.sky-big { margin: 0.1rem 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 5.5vw, 3.1rem); line-height: 1.05; letter-spacing: -0.03em; text-shadow: none; }
.sky-sub { margin: 0.35rem 0 0; opacity: 0.85; font-size: 0.9rem; }
.sky-pct { position: absolute; right: 1.1rem; bottom: 0.8rem; z-index: 1; margin: 0; font-family: var(--display); font-weight: 700; font-size: 1rem; text-shadow: none; }
.sky.idle { display: grid; align-items: center; min-height: 170px; }
.sky.idle .sky-body p { opacity: 0.85; margin: 0.3rem 0 0.9rem; }
.sky.idle .sky-body h2 { font-size: 1.35rem; }

/* ───── 事实条、订阅、公告 ───── */
dl.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.6rem; margin: 0.8rem 0 0; }
dl.facts > div { padding: 0.6rem 0.85rem; border-radius: 12px; min-width: 0; }
dl.facts dt { color: var(--mute); font-size: 0.78rem; }
dl.facts dd { margin: 0.05rem 0 0; font-family: var(--display); font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.copybox { display: flex; gap: 0.5rem; align-items: center; }
.copybox input { flex: 1; font-family: var(--mono); font-size: 0.78rem; }
.import { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.6rem; }
.import .btn { min-height: 34px; padding: 0.3rem 0.8rem; font-size: 0.85rem; }
.qr-d { margin-top: 0.8rem; }
.qr-d summary { cursor: pointer; color: var(--accent); font-size: 0.9rem; }
.qr { width: 168px; margin-top: 0.6rem; padding: 9px; background: #fff; border-radius: 12px; }
.qr svg { display: block; width: 100%; height: auto; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.notices { list-style: none; padding: 0; margin: 0; border-radius: 10px; overflow: hidden; }
.notices li { border-bottom: 1px solid var(--line); padding: 0 1rem; }
.notices li:last-child { border-bottom: 0; }
.notices summary { cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; font-size: 0.93rem; }
.notices time { color: var(--mute); font-size: 0.8rem; flex: none; }
.notices details > div { padding: 0 0 0.8rem; color: var(--mute); font-size: 0.92rem; }

/* ───── 表格与状态标签（表格放进玻璃卡片里） ───── */
.scroll { overflow-x: auto; border-radius: 10px; padding: 0.15rem 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 0.55rem 0.9rem 0.55rem 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
th { color: var(--mute); font-weight: 500; font-size: 0.78rem; }
tbody tr:hover td { background: rgba(20, 20, 19, 0.03); }
td.ua { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0 0.6rem; border-radius: 99px; font-size: 0.76rem; line-height: 1.5rem; border: 1px solid var(--line-strong); color: var(--mute); background: rgba(20, 20, 19, 0.04); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { color: var(--ok); border-color: rgba(47, 143, 91, 0.35); background: rgba(47, 143, 91, 0.08); }
.chip.warn { color: var(--warn); border-color: rgba(168, 112, 10, 0.38); background: rgba(168, 112, 10, 0.08); margin: 0; font-size: 0.76rem; }
.chip.info { color: var(--stone); border-color: rgba(110, 108, 100, 0.38); background: rgba(110, 108, 100, 0.08); }

/* ───── 套餐 ───── */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.9rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.1rem; border-radius: 12px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.plan:hover { border-color: rgba(217, 119, 87, 0.45); }
.plan h2 { font-size: 1.15rem; }
.specs { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.25rem; color: var(--mute); font-size: 0.88rem; }
.specs li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 0.55rem; border-radius: 50%; background: var(--grad); vertical-align: middle; }
.periods { border: 0; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem; min-width: 0; }
.periods label { padding: 0.2rem 0.7rem; border: 1px solid var(--line); border-radius: 99px; color: var(--mute); font-size: 0.82rem; cursor: pointer; background: #fff; transition: all 0.15s; }
.periods label:hover { border-color: var(--line-strong); color: var(--txt); }
.periods input:checked + label { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; }
.periods input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.prices { flex-basis: 100%; min-height: 2.8rem; margin-top: 0.3rem; }
.price { display: none; margin: 0; align-items: baseline; gap: 0.15rem; }
.price .cur { font-size: 1.05rem; color: var(--mute); }
.price b { font-family: var(--display); font-size: 2.2rem; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.price span:last-child { color: var(--mute); margin-left: 0.3rem; font-size: 0.9rem; }
.periods input:nth-of-type(1):checked ~ .prices .price:nth-child(1),
.periods input:nth-of-type(2):checked ~ .prices .price:nth-child(2),
.periods input:nth-of-type(3):checked ~ .prices .price:nth-child(3),
.periods input:nth-of-type(4):checked ~ .prices .price:nth-child(4),
.periods input:nth-of-type(5):checked ~ .prices .price:nth-child(5),
.periods input:nth-of-type(6):checked ~ .prices .price:nth-child(6),
.periods input:nth-of-type(7):checked ~ .prices .price:nth-child(7),
.periods input:nth-of-type(8):checked ~ .prices .price:nth-child(8) { display: flex; }
.coupon summary { cursor: pointer; color: var(--mute); font-size: 0.86rem; }
.coupon input { margin-top: 0.4rem; }

/* ───── 支付、工单 ───── */
.methods { display: grid; gap: 0.5rem; }
.method { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.9rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--glass); transition: border-color 0.15s, background 0.15s; }
.method:hover { border-color: var(--line-strong); }
.method:has(input:checked) { border-color: var(--accent); background: rgba(217, 119, 87, 0.08); box-shadow: 0 0 0 1px rgba(217, 119, 87, 0.25); }
.method small { margin-left: auto; color: var(--mute); }
#pay-qr svg { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 12px; }
.thread { list-style: none; padding: 0; margin: 1.1rem 0; display: grid; gap: 0.65rem; }
.thread li { padding: 0.7rem 0.95rem; background: var(--glass); border: 1px solid var(--line); border-radius: 12px; }
.thread li.me { border-color: rgba(217, 119, 87, 0.3); background: linear-gradient(135deg, rgba(217, 119, 87, 0.1), rgba(176, 174, 165, 0.08)); }
.thread header { display: flex; justify-content: space-between; margin-bottom: 0.25rem; font-size: 0.8rem; color: var(--mute); }
.meta { display: flex; gap: 0.7rem; align-items: center; margin: 0.2rem 0 0; }
.article { max-width: 44rem; line-height: 1.8; }

/* ───── 富文本（公告 / 套餐说明 / 教程）───── */
.rich { overflow-wrap: anywhere; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0.5rem 0; }
.rich h1, .rich h2, .rich h3, .rich h4, .rich h5, .rich h6 { margin: 1.1rem 0 0.4rem; font-size: 1.05rem; }
.rich ul, .rich ol { padding-left: 1.25rem; margin: 0.5rem 0; }
.rich img { max-width: 100%; height: auto; border-radius: 10px; }
.rich code { font-family: var(--mono); background: var(--glass-2); padding: 0.1rem 0.35rem; border-radius: 5px; font-size: 0.9em; }
.rich pre { overflow-x: auto; background: var(--glass-2); padding: 0.7rem 0.9rem; border-radius: 10px; border: 1px solid var(--line); }
.rich pre code { background: none; padding: 0; }
.rich blockquote { margin: 0.7rem 0; padding: 0.1rem 0.9rem; border-left: 3px solid var(--accent); color: var(--mute); }
.rich hr { border: 0; border-top: 1px solid var(--line); margin: 0.9rem 0; }
.rich table { margin: 0.7rem 0; }
.plan-note { font-size: 0.86rem; color: var(--mute); }
.plan-note p { margin: 0.15rem 0; }
.article.rich { max-width: 44rem; line-height: 1.8; }

/* ───── 公告横幅 ───── */
.notices summary:has(.banner) { display: block; padding: 0.65rem 0; }
.banner { position: relative; display: block; }
.banner img { display: block; width: 100%; max-height: 170px; object-fit: cover; border-radius: 12px; }
.banner-t { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: 2rem 0.9rem 0.65rem; color: #fff; border-radius: 0 0 12px 12px; background: linear-gradient(transparent, rgba(20, 19, 18, 0.9)); }
.banner-t time { opacity: 0.85; }

/* ───── 常用入口 ───── */
ul.shortcuts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.6rem; }
.shortcuts a { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.85rem; border-radius: 12px; color: var(--txt); text-decoration: none; transition: border-color 0.2s, transform 0.2s, background 0.2s; }
.shortcuts a:hover { border-color: rgba(217, 119, 87, 0.4); background: var(--glass-2); }
.shortcuts .icon { color: var(--accent); }
.sc-text { display: grid; line-height: 1.35; min-width: 0; }
.sc-text b { font-size: 0.93rem; }
.sc-text small { color: var(--mute); font-size: 0.78rem; }
.badge { margin-left: auto; min-width: 1.35rem; padding: 0 0.45rem; border-radius: 99px; background: var(--grad); color: #fff; font-size: 0.74rem; font-weight: 700; text-align: center; line-height: 1.35rem; }

/* ───── 筛选标签、搜索、分页 ───── */
.tabs { display: flex; gap: 0.2rem; margin: -0.3rem 0 1rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 0.45rem 0.9rem; color: var(--mute); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 0.92rem; }
.tabs a:hover { color: var(--txt); }
.tabs a.on { color: var(--txt); border-bottom-color: var(--accent); font-weight: 600; }
.search { display: flex; gap: 0.5rem; margin-bottom: 0.8rem; max-width: 32rem; }
.pager { display: flex; justify-content: space-between; margin-top: 0.8rem; }
ul.docs { list-style: none; padding: 0; margin: 0; border-radius: 10px; overflow: hidden; }
.docs a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 1rem; border-bottom: 1px solid var(--line); color: var(--txt); text-decoration: none; font-size: 0.93rem; }
.docs li:last-child a { border-bottom: 0; }
.docs a:hover { background: var(--glass-2); }
.docs b { font-weight: 500; }
.docs time { color: var(--mute); font-size: 0.8rem; flex: none; }

/* ───── 节点状态 ───── */
ul.nodes { list-style: none; padding: 0; margin: 0; border-radius: 10px; overflow: hidden; }
.nodes li { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 1rem; border-bottom: 1px solid var(--line); }
.nodes li:last-child { border-bottom: 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(47, 143, 91, 0.14); }
.dot.off { background: var(--mute); }
.node-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.7rem; }
.node-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.node-side { display: flex; align-items: center; gap: 0.7rem; color: var(--mute); font-size: 0.85rem; flex: none; }

/* ───── 邀请、提现、折叠操作 ───── */
.hero-stat { padding: 1rem 1.3rem; border-radius: 12px; }
.hero-num { margin: 0.1rem 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 6vw, 2.9rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--accent); }
.hero-num small { margin-left: 0.5rem; font-size: 0.9rem; font-weight: 500; -webkit-text-fill-color: var(--mute); color: var(--mute); }
.acts-col { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.6rem; margin-top: 0.8rem; }
details.act summary { list-style: none; cursor: pointer; display: inline-flex; }
details.act summary::-webkit-details-marker { display: none; }
details.act[open] { flex-basis: 100%; }
.act-body { margin-top: 0.6rem; padding: 0.9rem; max-width: 32rem; border-radius: 10px; }
td.acts a + button, td.acts button + a, td.acts button + button { margin-left: 0.8rem; }
td.acts { white-space: nowrap; }

/* ───── 设置页 ───── */
.narrow { max-width: 26rem; }
.hint { padding: 0.55rem 0.9rem; margin: 0 0 0.9rem; border-radius: 10px; color: var(--mute); font-size: 0.9rem; }
.warnbox { padding: 0.65rem 0.9rem; margin: 0 0 0.8rem; border: 1px solid rgba(168, 112, 10, 0.35); background: rgba(168, 112, 10, 0.07); border-radius: 10px; color: var(--warn); font-size: 0.9rem; }
.danger-btn { border-color: rgba(194, 59, 50, 0.5); color: var(--hot); }
.danger-btn:hover { background: rgba(194, 59, 50, 0.12); color: var(--hot); border-color: rgba(194, 59, 50, 0.7); }
.steps { padding-left: 1.2rem; display: grid; gap: 0.7rem; margin: 0; }
.mini-link { margin-left: 0.7rem; font-family: var(--body); font-size: 0.8rem; font-weight: 400; }
.coupon-msg { margin: 0.3rem 0 0; min-height: 1.2em; font-size: 0.84rem; }
.coupon-msg.good { color: var(--ok); }
.coupon-msg.bad { color: var(--hot); }
.switch { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.track { position: relative; flex: none; width: 40px; height: 22px; border-radius: 99px; background: var(--glass-2); border: 1px solid var(--line-strong); transition: background 0.15s, border-color 0.15s; }
.track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--mute); transition: transform 0.15s, background 0.15s; }
.switch input:checked + .track { background: var(--grad); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ───── 提示 ───── */
#toast {
  position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 1rem); z-index: 60; max-width: calc(100vw - 2rem);
  background: #2a2927; color: #f0eee6; border: 1px solid var(--line-strong); padding: 0.55rem 1.1rem; border-radius: 12px; font-weight: 500; font-size: 0.92rem; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───── 窄屏 ───── */
@media (max-width: 860px) {
  body.guest { height: auto; overflow: visible; }
  .entry { grid-template-columns: 1fr; height: auto; min-height: 100vh; min-height: 100dvh; }
  .entry-art { min-height: 120px; }
  .entry-art::after { display: none; }
  .entry-copy { padding: 1.1rem 1.3rem; }
  .entry-copy p { display: none; }
  .entry-form { overflow: visible; padding: 0.4rem 1rem 1.6rem; }
  .entry-card { margin: 0 auto; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 760px) {
  body.app { display: block; height: auto; overflow: visible; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .rail { display: none; }
  .topbar { display: flex; justify-content: space-between; align-items: center; min-height: 60px; padding: 0.5rem 0.75rem 0.5rem 1rem; border-width: 0 0 1px; border-radius: 0; position: sticky; top: 0; z-index: 20; box-shadow: none; background: #f4f2eb; }
  .topbar .rail-brand { font-size: 1.15rem; }
  .topbar .icon-btn { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .main { overflow: visible; padding: 1rem 0.9rem 1.6rem; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; border-width: 1px 0 0; border-radius: 0; box-shadow: none; background: #f4f2eb; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar > a, .tabbar summary {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0.45rem 0 0.4rem;
    color: var(--mute); text-decoration: none; font-size: 0.7rem; list-style: none; cursor: pointer;
  }
  .tabbar summary::-webkit-details-marker { display: none; }
  .tabbar a.on, .tabbar summary.on { color: var(--accent); }
  .more { flex: 1; position: relative; }
  .more-panel { position: absolute; right: 0.5rem; bottom: calc(100% + 0.5rem); width: 12rem; padding: 0.3rem; border-radius: 10px; display: grid; background: #fff; border-color: var(--line-strong); box-shadow: 0 16px 36px -16px rgba(80, 50, 25, 0.35); }
  .more-panel a { display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.7rem; color: var(--txt); text-decoration: none; border-radius: 10px; font-size: 0.92rem; }
  .more-panel a.on { background: var(--glass-2); color: var(--accent); }
  .sky { min-height: 180px; }
  ul.shortcuts { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .shortcuts a { padding: 0.55rem 0.65rem; gap: 0.5rem; }
  .sc-text small { display: none; }
  .page-h { flex-direction: column; align-items: flex-start; }
  .nodes li { flex-wrap: wrap; }
  .node-side { width: 100%; padding-left: 1.6rem; }
  input, select, textarea, .btn { min-height: 42px; }
  .mail-combo input { min-height: 40px; }
  #toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .sea { animation: none; }
  #toast, .track, .track::after, .plan, .shortcuts a, .btn { transition: none; }
}
