/* 财报网 iOS PWA —— 编辑器式排版 + 原生 iOS 交互 */
:root {
  --bg: #f4f3f0;
  --surface: #ffffff;
  --surface-2: #faf9f7;
  --ink: #0d1c33;
  --sub: #6b7280;
  --faint: #9aa1ac;
  --line: #e6e3de;
  --accent: #b3121f;
  --navy: #0d1c33;
  --navy-soft: #16304f;
  --bar: rgba(255, 255, 255, .86);
  --tabbar: rgba(252, 252, 251, .88);
  --shadow: 0 10px 30px rgba(13, 28, 51, .08);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tab-h: 52px;
  --header-h: 56px;
  --radius: 10px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0b1017;
  --surface: #151c26;
  --surface-2: #111823;
  --ink: #e7e9ec;
  --sub: #93a0b4;
  --faint: #6b7a8f;
  --line: #243040;
  --accent: #e2374a;
  --navy: #0a1420;
  --navy-soft: #122238;
  --bar: rgba(16, 23, 33, .86);
  --tabbar: rgba(13, 19, 28, .9);
  --shadow: 0 10px 30px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1017;
    --surface: #151c26;
    --surface-2: #111823;
    --ink: #e7e9ec;
    --sub: #93a0b4;
    --faint: #6b7a8f;
    --line: #243040;
    --accent: #e2374a;
    --navy: #0a1420;
    --navy-soft: #122238;
    --bar: rgba(16, 23, 33, .86);
    --tabbar: rgba(13, 19, 28, .9);
    --shadow: 0 10px 30px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "SF Pro Text", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overscroll-behavior: none; }

button, input, a { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
a { text-decoration: none; }

.app {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}

/* ---------- 顶栏 ---------- */
.chrome {
  flex: none;
  background: var(--navy);
  color: #fff;
  padding-top: var(--safe-top);
  position: relative;
  z-index: 30;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}

.masthead {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.mark {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  border: 6px solid #f5f6f7;
  position: relative;
}
.mark::after {
  content: "";
  position: absolute;
  top: -7px;
  right: -7px;
  width: 10px;
  height: 10px;
  background: var(--accent);
}

.wordmark { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; }
.wm-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.15;
  color: #fff;
  white-space: nowrap;
}
.wm-kicker {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.2;
  margin-top: 1px;
  color: #9fb0c6;
  white-space: nowrap;
  transition: letter-spacing .18s ease;
}

.chrome-actions { display: flex; align-items: center; gap: 2px; flex: none; }

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #e8edf3;
  transition: background .15s ease, opacity .15s ease;
}
.icon-btn:active { background: rgba(255, 255, 255, .1); }
.icon-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 频道条 ---------- */
.chips {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding: 0 10px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 6px 11px 7px;
  font-size: 13.5px;
  color: #a9b8ca;
  border-radius: 6px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.chip.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  font-weight: 600;
}

/* ---------- 视图 ---------- */
.views { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + 18px);
  display: none;
}
.view.is-active { display: block; }

/* ---------- 下拉刷新 ---------- */
.pull {
  height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--faint);
  transition: height .2s ease;
}
.pull.on { height: 44px; }
.pull-ring {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 信息流 ---------- */
.feed { padding: 12px 14px 0; }

.card {
  width: 100%;
  text-align: left;
  appearance: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 15px 13px;
  margin-bottom: 10px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  transition: transform .12s ease, box-shadow .15s ease;
  animation: rise .28s ease both;
}
.card:active { transform: scale(.985); }
.card.no-thumb { display: block; }
.card-body { min-width: 0; flex: 1; }
.card h3 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.42;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card.is-read h3 { color: var(--sub); font-weight: 500; }
.card p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .meta {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .02em;
}
.card .meta em {
  font-style: normal;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--sub);
}
.card .meta .save-dot { margin-left: auto; color: var(--accent); font-size: 11px; }
.card .thumb {
  flex: none;
  width: 92px;
  height: 68px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.feed-end {
  text-align: center;
  font-size: 12px;
  color: var(--faint);
  padding: 20px 0 8px;
  letter-spacing: .1em;
}

/* ---------- 骨架屏 ---------- */
.skeleton { padding: 0; }
.sk-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
}
.sk-card i, .sk-card b {
  display: block;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--line) 50%, var(--surface-2) 75%);
  background-size: 300% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: 4px;
}
.sk-card i { width: 62%; height: 16px; margin-bottom: 11px; }
.sk-card b { height: 11px; margin-top: 8px; }
.sk-card b:last-child { width: 74%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- 页面标题 ---------- */
.page-head { padding: 26px 18px 16px; border-bottom: 1px solid var(--line); }
.page-head .en {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--accent);
}
.page-head h1 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: .01em;
  font-family: "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", serif;
  font-weight: 700;
}
.page-head .desc { margin: 0; font-size: 13px; color: var(--sub); line-height: 1.8; }

/* ---------- 频道网格 ---------- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px 14px;
}
.chan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .12s ease;
}
.chan:active { transform: scale(.97); }
.chan b { font-size: 16px; font-weight: 600; }
.chan span { font-size: 10px; letter-spacing: .16em; color: var(--faint); }

/* ---------- 收藏 ---------- */
.saved-list { padding: 12px 14px 0; }
.saved-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.saved-item .si-body { flex: 1; min-width: 0; }
.saved-item h4 { margin: 0 0 6px; font-size: 15px; line-height: 1.5; font-weight: 600; }
.saved-item span { font-size: 11.5px; color: var(--faint); }
.del {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.del svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--sub);
}
.empty-mark {
  display: inline-block;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 8px solid var(--line);
  position: relative;
}
.empty-mark::after {
  content: "";
  position: absolute;
  top: -9px;
  right: -9px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  opacity: .55;
}
.empty p { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.empty span { font-size: 12.5px; color: var(--faint); }

/* ---------- 我的 ---------- */
.account { padding: 16px 14px 0; }

.member-card {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.member-card::after {
  content: "";
  position: absolute;
  right: -54px;
  top: -54px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 18px solid rgba(255, 255, 255, .07);
}
.mc-top { display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
.mc-avatar {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
}
.mc-id { min-width: 0; }
.mc-id strong { display: block; font-size: 17px; font-weight: 600; }
.mc-id span { display: block; margin-top: 3px; font-size: 12px; color: #9fb0c6; word-break: break-word; }
.mc-stats {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  z-index: 1;
}
.mc-stats div { text-align: center; }
.mc-stats b { display: block; font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.mc-stats span { display: block; margin-top: 3px; font-size: 11px; color: #9fb0c6; letter-spacing: .06em; }

.login-card {
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 16px 18px;
}
.field { display: block; padding: 13px 0 4px; border-bottom: 1px solid var(--line); }
.field > span { display: block; font-size: 11px; letter-spacing: .1em; color: var(--faint); margin-bottom: 5px; }
.field input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 4px 0 8px;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.field input::placeholder { color: var(--faint); font-size: 14px; }
.captcha-row { display: flex; align-items: center; gap: 12px; }
.captcha-row input { flex: 1; }
.captcha-img {
  flex: none;
  width: 104px;
  height: 38px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.captcha-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.keep { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--sub); }
.keep input { width: 18px; height: 18px; accent-color: var(--accent); }
.login-error {
  margin: 12px 0 0;
  padding: 9px 12px;
  border-radius: 6px;
  background: rgba(179, 18, 31, .08);
  color: var(--accent);
  font-size: 12.5px;
  line-height: 1.6;
}
.primary-btn {
  width: 100%;
  margin-top: 16px;
  min-height: 46px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: opacity .15s, transform .12s;
}
.primary-btn:active { transform: scale(.985); opacity: .9; }
.primary-btn[disabled] { opacity: .55; }
.login-alt { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--faint); }
.login-alt a { color: var(--sub); text-decoration: underline; }

.member-links {
  margin-top: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.member-links a, .member-links .logout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 16px;
  font-size: 14.5px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.member-links a span { font-size: 11.5px; color: var(--faint); }
.member-links .logout {
  justify-content: center;
  color: var(--accent);
  border-bottom: 0;
  font-size: 14px;
}

.settings { margin-top: 22px; }
.settings .en { margin: 0 0 8px 4px; font-size: 10px; letter-spacing: .2em; color: var(--faint); font-weight: 700; }
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  font-size: 14.5px;
}
.switch-row:first-of-type { border-radius: 12px 12px 0 0; }
.switch-row.static:last-of-type { border-radius: 0 0 12px 12px; border-bottom: 1px solid var(--line); }
.switch-row b { font-size: 13px; font-weight: 500; color: var(--sub); }
.switch-row input { display: none; }
.switch-row i {
  width: 46px;
  height: 28px;
  border-radius: 14px;
  background: var(--line);
  position: relative;
  transition: background .2s ease;
}
.switch-row i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}
.switch-row input:checked + i { background: var(--accent); }
.switch-row input:checked + i::after { transform: translateX(18px); }

.install-tip {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 15px 16px;
  position: relative;
}
.install-tip strong { display: block; font-size: 14px; margin-bottom: 6px; }
.install-tip p { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--sub); }
.share-hint { position: absolute; right: 14px; bottom: 12px; color: var(--accent); opacity: .5; }
.share-hint svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.foot-note {
  margin: 26px 0 12px;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.9;
  color: var(--faint);
  letter-spacing: .04em;
}

/* ---------- 底部标签栏 ---------- */
.tabbar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tab-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--tabbar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line);
  z-index: 40;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: .02em;
  transition: color .15s;
}
.tab svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tab.is-active { color: var(--accent); }
.tab:active { opacity: .6; }

/* ---------- 阅读器 ---------- */
.reader {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 70;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .28s cubic-bezier(.32, .72, 0, 1), visibility .28s;
}
.reader.is-open { transform: none; visibility: visible; }
.reader-bar {
  flex: none;
  padding-top: var(--safe-top);
  height: calc(48px + var(--safe-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 4px;
  padding-right: 4px;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.reader-bar .icon-btn { color: var(--ink); }
.reader-bar .icon-btn:active { background: rgba(128, 128, 128, .14); }
.reader-actions { display: flex; align-items: center; }
.reader-actions .icon-btn.is-on { color: var(--accent); }
.reader-actions .icon-btn.is-on svg { fill: var(--accent); stroke: var(--accent); }

.reader-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.reader-inner { padding: 22px 20px calc(56px + var(--safe-bottom)); max-width: 720px; margin: 0 auto; }
.r-kicker { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .16em; color: var(--accent); font-weight: 700; margin-bottom: 13px; }
.r-kicker em { font-style: normal; color: var(--faint); letter-spacing: .06em; font-weight: 500; }
.r-title {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: .01em;
  font-family: "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", serif;
}
.r-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--faint);
  letter-spacing: .03em;
}
.r-body {
  padding-top: 20px;
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", serif;
  word-break: break-word;
}
.r-body p { margin: 0 0 1.1em; }
.r-body img { max-width: 100% !important; height: auto !important; display: block; margin: 18px auto; border-radius: 4px; }
.r-body h2, .r-body h3, .r-body h4 { font-family: inherit; line-height: 1.5; margin: 1.5em 0 .7em; }
.r-body blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  color: var(--sub);
  font-size: 15px;
}
.r-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.r-body td, .r-body th { border: 1px solid var(--line); padding: 8px; }
.r-body a { color: var(--accent); text-decoration: underline; }
.r-foot {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.r-foot a, .r-foot button {
  flex: 1;
  min-width: 120px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--sub);
  background: var(--surface);
}
.r-loading { padding: 80px 0; text-align: center; }
.r-loading .pull-ring { margin: 0 auto 14px; width: 22px; height: 22px; }

/* ---------- 搜索 ---------- */
.searchpane {
  position: absolute;
  inset: 0;
  background: var(--bg);
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-top);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .26s cubic-bezier(.32, .72, 0, 1), visibility .26s;
}
.searchpane.is-open { transform: none; visibility: visible; }
.search-bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px; }
.search-input {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 11px;
  height: 38px;
}
.search-input svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--faint); stroke-width: 1.9; stroke-linecap: round; }
.search-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--ink);
}
.search-input input::placeholder { color: var(--faint); font-size: 14px; }
.search-input input::-webkit-search-cancel-button { -webkit-appearance: none; }
.text-btn { flex: none; color: var(--accent); font-size: 14.5px; padding: 8px 2px; }
.search-hint { padding: 40px 24px; text-align: center; font-size: 12.5px; color: var(--faint); }
.search-results { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 14px calc(24px + var(--safe-bottom)); }

/* ---------- 轻提示 ---------- */
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--tab-h) + var(--safe-bottom) + 24px);
  transform: translate(-50%, 12px);
  background: rgba(20, 28, 40, .92);
  color: #fff;
  font-size: 12.5px;
  padding: 9px 16px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 80;
  max-width: 80%;
  text-align: center;
  line-height: 1.5;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 宽屏 ---------- */
@media (min-width: 720px) {
  .masthead { padding: 0 18px; }
  .feed { padding: 14px 18px 0; }
  .card { padding: 18px; }
  .card h3 { font-size: 17.5px; }
  .reader-inner { padding: 30px 28px calc(60px + var(--safe-bottom)); }
  .view { padding-bottom: calc(var(--tab-h) + var(--safe-bottom) + 24px); }
}
