/* ============================================================
   浮光 FUGUANG — editorial video curation
   1. tokens / reset
   2. typography & utilities
   3. masthead
   4. hero
   5. ticker / note
   6. selection: toolbar, chips, cards
   7. douyin board
   8. resolver
   9. footer
   10. overlays: sheet, drawer, toast
   11. responsive & motion
   ============================================================ */

/* ---------- 1. tokens ---------- */

:root {
  --coral: #e0506a;
  --teal: #0c8b95;
  --gold: #b8873f;

  --bg: #f2eee5;
  --bg-soft: #eae4d8;
  --surface: #faf7f0;
  --surface-2: #f6f1e7;
  --ink: #16130f;
  --ink-2: #3d372f;
  --ink-3: #6f675b;
  --line: rgba(22, 19, 15, 0.14);
  --line-strong: rgba(22, 19, 15, 0.28);
  --shadow: 0 18px 50px -24px rgba(30, 22, 12, 0.35);
  --shadow-soft: 0 10px 30px -20px rgba(30, 22, 12, 0.4);
  --chip-bg: transparent;
  --scrim: rgba(20, 16, 10, 0.45);

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas, "Liberation Mono",
    monospace;

  --wrap: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 74px;
}

[data-theme="ink"] {
  --coral: #ff6b81;
  --teal: #38d8ce;
  --gold: #d8b16b;

  --bg: #0b0c0e;
  --bg-soft: #101215;
  --surface: #131519;
  --surface-2: #171a1f;
  --ink: #f1ede4;
  --ink-2: #cfc8bb;
  --ink-3: #8b8478;
  --line: rgba(241, 237, 228, 0.13);
  --line-strong: rgba(241, 237, 228, 0.3);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
  --shadow-soft: 0 12px 34px -22px rgba(0, 0, 0, 0.9);
  --scrim: rgba(0, 0, 0, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

/* thin, quiet scrollbar; the gutter above keeps text from reflowing */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 2px solid var(--bg);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ink-3);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -10%, rgba(224, 80, 106, 0.09), transparent 70%),
    radial-gradient(760px 460px at 6% 12%, rgba(12, 139, 149, 0.08), transparent 70%);
}

[data-theme="ink"] body::before {
  background:
    radial-gradient(900px 560px at 78% -8%, rgba(255, 107, 129, 0.1), transparent 70%),
    radial-gradient(800px 500px at 4% 10%, rgba(56, 216, 206, 0.07), transparent 70%);
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
figure,
ol,
ul,
dl,
dd {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 10px;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

:focus-visible {
  outline: 1.5px solid var(--coral);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  transition: top 0.2s;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

[hidden] {
  display: none !important;
}

/* ---------- 2. type & utilities ---------- */

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  font-feature-settings: "tnum" 1;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ink);
  opacity: 0.5;
}

.kicker__cn {
  letter-spacing: 0.28em;
  color: var(--ink);
}

h1,
h2 {
  text-wrap: balance;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-top: 14px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-strong);
}

.section-head__desc {
  max-width: 420px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.75;
  padding-bottom: 4px;
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.btn--primary:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.btn--square {
  width: 46px;
  padding: 0;
  border-color: var(--line-strong);
}

.btn--square svg {
  width: 18px;
  height: 18px;
}

.btn--square.is-saved {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.btn--square.is-saved svg {
  fill: currentColor;
}

.btn--danger:hover {
  background: #a3272f;
  border-color: #a3272f;
  color: #fff;
}

.btn--random {
  height: 42px;
  padding: 0 16px;
}

.btn:active {
  transform: translateY(1px);
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.icon-btn:hover {
  background: var(--surface);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn__count {
  position: absolute;
  top: 1px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 17px;
  text-align: center;
}

.icon-sun,
.icon-moon {
  display: none;
}

[data-theme="paper"] .icon-moon,
[data-theme="ink"] .icon-sun {
  display: block;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  display: inline-block;
}

.dot--coral {
  background: var(--coral);
}

.dot--teal {
  background: var(--teal);
}

/* ---------- 3. masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.masthead.is-compact {
  border-color: var(--line-strong);
  box-shadow: 0 10px 30px -26px rgba(20, 16, 10, 0.55);
}

.masthead__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand__mark {
  width: 42px;
  height: auto;
  opacity: 0.92;
}

.brand__text {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}

.brand__latin {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--ink-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: 10px;
}

.nav a {
  position: relative;
  font-size: 13px;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.masthead__actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ---------- 4. hero ---------- */

.hero {
  padding-top: clamp(30px, 4vw, 52px);
}

.hero__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.hero__issue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.hero__issue .dot {
  width: 3px;
  height: 3px;
  background: var(--ink-3);
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

.live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(224, 80, 106, 0.14);
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  gap: clamp(28px, 4.6vw, 74px);
  padding-top: clamp(24px, 3vw, 40px);
  align-items: start;
}

.hero__media {
  margin: 0;
  position: relative;
}

.media__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius);
  isolation: isolate;
}

.media__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}

.media__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 42%, rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.media__frame--hero {
  cursor: pointer;
  border: 1px solid var(--line);
}

.media__frame--hero:hover img {
  transform: scale(1.025);
}

.media__frame--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 1.1s var(--ease);
  pointer-events: none;
}

.media__frame--hero:hover::before {
  transform: translateX(120%);
}

.hero__quality {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: var(--bg);
  color: var(--ink);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  box-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.5);
}

.hero__quality::after {
  content: "分";
  font-size: 8px;
  letter-spacing: 0.1em;
  margin-top: 3px;
  color: var(--ink-3);
  font-weight: 400;
}

.media__platform {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  padding: 5px 10px;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.media__duration {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  padding: 3px 7px;
  background: rgba(10, 10, 10, 0.7);
  color: #f5f2ea;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.hero__play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(250, 247, 240, 0.94);
  color: #16130f;
  font-size: 12px;
  letter-spacing: 0.08em;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.hero__play svg {
  width: 15px;
  height: 15px;
}

.media__frame--hero:hover .hero__play,
.media__frame--hero:focus-visible .hero__play {
  opacity: 1;
  transform: scale(1);
}

.hero__media figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  font-size: 12px;
  color: var(--ink-3);
}

.fig-dot {
  opacity: 0.5;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}

.hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.hero__meta b {
  color: var(--coral);
  font-weight: 500;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-top: 16px;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__desc {
  margin-top: 18px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.hero__score {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.score-ring {
  position: relative;
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg,
.ring-fg {
  fill: none;
  stroke-width: 2.5;
}

.ring-bg {
  stroke: var(--line);
}

.ring-fg {
  stroke: var(--coral);
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 1.1s var(--ease);
}

.score-ring__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.score-caption {
  color: var(--ink-3);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.hero__reason {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__trust {
  margin-top: 6px;
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

.score-subs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
}

.score-subs li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.score-subs i {
  width: 14px;
  height: 2px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}

.score-subs i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--v, 0));
}

/* ---------- 5. ticker / note ---------- */

.ticker {
  margin-top: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.ticker__inner {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 0.9fr 1.6fr auto;
  align-items: center;
  gap: 24px;
  padding-block: 16px;
}

.ticker__cell {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ink-3);
  font-size: 12px;
}

.ticker__cell + .ticker__cell {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.ticker__cell .mono {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ticker__cell strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.ticker__cell--wide {
  font-size: 12px;
  color: var(--ink-2);
}

.ticker__cell--time {
  font-size: 11px;
}

.ticker__cell--time strong {
  font-size: 12px;
}

.note {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px;
  padding-block: clamp(54px, 7vw, 96px);
}

.note__body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.note__body > p {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--ink-2);
}

.note__body em {
  font-style: normal;
  color: var(--ink);
  box-shadow: inset 0 -0.45em 0 rgba(224, 80, 106, 0.16);
}

.note__aside {
  font-family: var(--font-sans) !important;
  font-size: 12.5px !important;
  line-height: 1.9 !important;
  color: var(--ink-3) !important;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* ---------- 6. selection ---------- */

.selection {
  padding-bottom: clamp(70px, 9vw, 130px);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 18px;
  flex-wrap: wrap;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
}

.seg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-3);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.seg:hover {
  color: var(--ink);
}

.seg.is-active {
  background: var(--ink);
  color: var(--bg);
}

.seg .dot {
  width: 5px;
  height: 5px;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  max-width: 330px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: border-color 0.2s, background 0.2s;
}

.search:focus-within {
  border-color: var(--ink);
  background: var(--surface);
}

.search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
}

.search input::placeholder {
  color: var(--ink-3);
}

.search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.select {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.select select {
  appearance: none;
  height: 100%;
  padding: 0 34px 0 14px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  cursor: pointer;
}

.select svg {
  position: absolute;
  right: 12px;
  width: 14px;
  height: 14px;
  pointer-events: none;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 10px;
}

.chips--small {
  padding-bottom: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  transition: all 0.2s var(--ease);
}

.chip .mono {
  font-size: 9px;
  color: var(--ink-3);
}

.chip:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.chip.is-active .mono {
  color: color-mix(in srgb, var(--bg) 65%, transparent);
}

.chips--small .chip {
  height: 28px;
  padding: 0 11px;
  font-size: 11px;
  border-color: transparent;
  color: var(--ink-3);
}

.chips--small .chip:hover {
  background: var(--surface);
  border-color: var(--line);
}

.chips--small .chip.is-active {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  box-shadow: inset 0 -1px 0 var(--ink);
}

.result-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.result-line > span:first-child {
  flex: 0 0 auto;
  white-space: nowrap;
}

.result-line__hint {
  text-transform: none;
  letter-spacing: 0.02em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 40px) clamp(18px, 2vw, 30px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  contain: layout;
}

.card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius);
  isolation: isolate;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.045);
}

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.card__media.is-missing {
  background:
    linear-gradient(135deg, var(--bg-soft) 0%, var(--surface) 100%),
    repeating-linear-gradient(45deg, transparent 0 8px, var(--line) 8px 9px);
}

.card__quality {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 3px 7px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.45);
}

.card__quality::after {
  content: "分";
  font-size: 7px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
}

.card__quality[data-grade="S"] {
  background: var(--coral);
  color: #fff;
}

.card__quality[data-grade="S"]::after {
  color: rgba(255, 255, 255, 0.72);
}

.card__platform {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  padding: 3px 7px;
  background: rgba(10, 10, 10, 0.72);
  color: #f4f1e9;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.card__duration {
  position: absolute;
  z-index: 2;
  right: 9px;
  bottom: 8px;
  color: #f4f1e9;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.card__rank {
  position: absolute;
  z-index: 2;
  left: 10px;
  bottom: 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.card__play {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.card__play span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(250, 247, 240, 0.95);
  color: #16130f;
  font-size: 11px;
  letter-spacing: 0.06em;
  transform: translateY(6px);
  transition: transform 0.35s var(--ease);
}

.card__play svg {
  width: 13px;
  height: 13px;
}

.card:hover .card__play {
  opacity: 1;
}

.card:hover .card__play span {
  transform: none;
}

.card__body {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  cursor: pointer;
}

.card__eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.card__eyebrow .sep {
  opacity: 0.5;
}

.card__title {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

.card:hover .card__title {
  color: var(--coral);
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 2px;
  font-size: 11px;
  color: var(--ink-3);
}

.card__author {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.card__avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-soft);
  object-fit: cover;
  flex: 0 0 auto;
}

.card__author span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card__views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  flex: 0 0 auto;
}

.card__views svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.card__save {
  position: absolute;
  z-index: 3;
  right: 9px;
  top: 44px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.58);
  color: #fff;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
    background 0.2s var(--ease);
}

.card__save svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.card:hover .card__save,
.card__save.is-saved {
  opacity: 1;
  transform: none;
}

.card__save:hover {
  background: rgba(10, 10, 10, 0.8);
}

.card__save.is-saved {
  background: var(--coral);
}

.card__save.is-saved svg {
  fill: currentColor;
}

.empty {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
}

.empty__title {
  font-family: var(--font-serif);
  font-size: 24px;
}

.empty__desc {
  color: var(--ink-3);
  font-size: 13px;
  margin: 8px 0 22px;
}

.load-more {
  display: flex;
  justify-content: center;
  padding-top: 42px;
}

.load-more .btn {
  min-width: 200px;
}

/* ---------- 7. douyin board ---------- */

.board {
  padding-bottom: clamp(70px, 9vw, 120px);
}

.board__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board__status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(12, 139, 149, 0.14);
}

.board__lead {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 26px;
}

.hot-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius);
  text-align: left;
}

.hot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.hot-card:hover img {
  transform: scale(1.05);
}

.hot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.78) 100%);
}

.hot-card__rank {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hot-card__body {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: #fff;
}

.hot-card__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

.hot-card__title {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hot-card__heat {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.66);
}

.hot-card__open {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.52);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.hot-card:hover .hot-card__open {
  opacity: 1;
}

.hot-card__open svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.board__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 42px;
  margin-top: 10px;
  border-top: 1px solid var(--line-strong);
}

.hot-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  width: 100%;
  transition: padding 0.25s var(--ease), background 0.25s;
}

.hot-row:hover {
  padding-left: 8px;
  background: var(--surface-2);
}

.hot-row__rank {
  flex: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.hot-row:nth-child(-n + 3) .hot-row__rank {
  color: var(--coral);
}

.hot-row__thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 34px;
  overflow: hidden;
  background: var(--bg-soft);
}

.hot-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hot-row__title {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-row__heat {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-3);
}

.hot-row__arrow {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.6;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s var(--ease);
}

.hot-row:hover .hot-row__arrow {
  opacity: 1;
  transform: none;
  stroke: var(--teal);
}

.board__note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 780px;
  margin-top: 26px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.8;
}

.board__note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* ---------- 8. resolver ---------- */

.resolver {
  padding-bottom: clamp(70px, 9vw, 120px);
}

.resolver__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(30px, 5vw, 80px);
  padding: clamp(30px, 4.6vw, 66px);
  background: #15120e;
  color: #f2eee5;
  border-radius: 3px;
  overflow: hidden;
  isolation: isolate;
}

[data-theme="ink"] .resolver__panel {
  background: #f2eee5;
  color: #15120e;
}

.resolver__panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -40% -10% auto auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(224, 80, 106, 0.32), transparent 64%);
}

[data-theme="ink"] .resolver__panel::before {
  background: radial-gradient(circle, rgba(12, 139, 149, 0.22), transparent 62%);
}

.resolver__panel .kicker {
  color: rgba(242, 238, 229, 0.5);
}

.resolver__panel .kicker::before {
  background: currentColor;
}

[data-theme="ink"] .resolver__panel .kicker {
  color: rgba(21, 18, 14, 0.5);
}

.resolver__copy h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.resolver__copy p {
  margin-top: 20px;
  max-width: 360px;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(242, 238, 229, 0.64);
}

[data-theme="ink"] .resolver__copy p {
  color: rgba(21, 18, 14, 0.62);
}

.resolver__copy code {
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  color: #f2eee5;
}

[data-theme="ink"] .resolver__copy code {
  background: rgba(0, 0, 0, 0.07);
  color: #15120e;
}

.resolver__examples {
  margin-top: 26px;
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(242, 238, 229, 0.38);
  letter-spacing: 0.02em;
}

[data-theme="ink"] .resolver__examples {
  color: rgba(21, 18, 14, 0.38);
}

.resolver__form {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.resolver__form > label {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(242, 238, 229, 0.5);
}

[data-theme="ink"] .resolver__form > label {
  color: rgba(21, 18, 14, 0.5);
}

.resolver__field {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding: 6px;
  border: 1px solid rgba(242, 238, 229, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="ink"] .resolver__field {
  border-color: rgba(21, 18, 14, 0.18);
  background: rgba(0, 0, 0, 0.03);
}

.resolver__field input {
  flex: 1;
  min-width: 0;
  padding: 0 10px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: inherit;
}

.resolver__field input::placeholder {
  color: rgba(242, 238, 229, 0.32);
}

[data-theme="ink"] .resolver__field input::placeholder {
  color: rgba(21, 18, 14, 0.32);
}

.resolver__field .btn--primary {
  background: #f2eee5;
  border-color: #f2eee5;
  color: #15120e;
}

.resolver__field .btn--primary:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

.resolver__status {
  min-height: 20px;
  margin-top: 12px;
  font-size: 11.5px;
  color: rgba(242, 238, 229, 0.55);
}

[data-theme="ink"] .resolver__status {
  color: rgba(21, 18, 14, 0.55);
}

.resolver__status.is-error {
  color: #ff9a9a;
}

.resolver__out {
  margin-top: 12px;
  border-top: 1px solid rgba(242, 238, 229, 0.16);
  padding-top: 16px;
}

[data-theme="ink"] .resolver__out {
  border-color: rgba(21, 18, 14, 0.14);
}

.resolve-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.resolve-card__cover {
  flex: 0 0 96px;
  width: 96px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.resolve-card__body {
  min-width: 0;
  flex: 1;
}

.resolve-card__title {
  font-size: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resolve-card__meta {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(242, 238, 229, 0.45);
}

[data-theme="ink"] .resolve-card__meta {
  color: rgba(21, 18, 14, 0.45);
}

.resolve-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.resolve-card__actions .btn {
  height: 36px;
  padding: 0 14px;
  font-size: 11.5px;
  border-color: rgba(242, 238, 229, 0.25);
  color: #f2eee5;
}

.resolve-card__actions .btn:hover {
  background: #f2eee5;
  color: #15120e;
}

[data-theme="ink"] .resolve-card__actions .btn {
  border-color: rgba(21, 18, 14, 0.22);
  color: #15120e;
}

[data-theme="ink"] .resolve-card__actions .btn:hover {
  background: #15120e;
  color: #f2eee5;
}

/* ---------- 9. footer ---------- */

.footer {
  border-top: 1px solid var(--line-strong);
  padding-top: clamp(44px, 6vw, 76px);
  padding-bottom: 26px;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 50px;
}

.footer__brand .brand__name {
  font-size: 34px;
}

.footer__brand p {
  margin-top: 10px;
  font-family: var(--font-serif);
  color: var(--ink-3);
  font-size: 14px;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.footer__cols p {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.9;
}

.footer__cols .mono {
  color: var(--ink);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 62px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.footer__filing {
  color: var(--ink-2);
  font-size: 10px;
  text-decoration: none;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.footer__filing:hover {
  color: var(--coral);
}

.footer__filing:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.footer__filings {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer__filing--gongan {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer__filing--gongan[hidden] {
  display: none;
}

.footer__filing--gongan img {
  display: block;
  width: 14px;
  height: 14px;
}

.footer__link {
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__link:hover {
  color: var(--coral);
  border-color: var(--coral);
}

.footer__link:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

/* ---------- 10. overlays ---------- */

.sheet {
  width: min(1040px, calc(100vw - 40px));
  max-height: calc(100dvh - 60px);
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.sheet::backdrop {
  background: rgba(10, 8, 5, 0.66);
}

.sheet[open] {
  animation: none;
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 14px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.sheet__body {
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.detail__media {
  position: relative;
  background: var(--bg-soft);
  min-height: 100%;
}

.detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 560px;
}

.detail__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.detail__badges {
  position: absolute;
  z-index: 2;
  left: 20px;
  top: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.detail__score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.detail__score small {
  font-size: 7px;
  font-weight: 400;
  color: var(--ink-3);
  margin-top: 3px;
  letter-spacing: 0.08em;
}

.detail__platform {
  padding: 6px 10px;
  background: rgba(10, 10, 10, 0.6);
  color: #f4f1e9;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.detail__play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(250, 247, 240, 0.94);
  color: #16130f;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), background 0.3s;
  transform-origin: center;
}

.detail__play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: #fff;
}

.detail__play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.detail__content {
  padding: clamp(22px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.detail__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.detail__author {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.detail__author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-soft);
}

.detail__author span {
  color: var(--ink-3);
  font-size: 11px;
}

.detail__desc {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}

.detail__reason {
  padding: 12px 14px;
  border-left: 2px solid var(--coral);
  background: var(--surface-2);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}

.detail__reason b {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  display: block;
  margin-bottom: 3px;
  font-weight: 400;
}

.detail__reason--rising {
  border-left-color: var(--teal);
}

.detail__trust {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  padding: 2px 2px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

.detail__trust span {
  color: var(--ink-2);
  flex: 0 0 auto;
}

.detail__trust[data-tone="high"] span {
  color: var(--teal);
}

.detail__trust[data-tone="low"] span {
  color: var(--coral);
}

.detail__trust em {
  font-style: normal;
  color: var(--ink-3);
}

.detail__comments {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  padding: 2px 2px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

.detail__comments b {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.detail__comments span {
  color: var(--ink-2);
}

.detail__comments[data-warn="true"] b {
  color: var(--coral);
}

.detail__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail__stat {
  background: var(--bg);
  padding: 10px 12px;
}

.detail__stat dt {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}

.detail__stat dd {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: -0.02em;
}

.detail__bars {
  display: grid;
  gap: 9px;
  padding-top: 4px;
}

.bar {
  display: grid;
  grid-template-columns: 44px 1fr 30px;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.bar__track {
  height: 3px;
  background: var(--line);
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--v, 0));
  transition: transform 0.9s var(--ease);
}

.bar:nth-child(1) .bar__fill {
  background: var(--coral);
}

.bar em {
  font-style: normal;
  text-align: right;
  color: var(--ink-2);
}

.detail__actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}

/* 本机反馈 */
.detail__feedback {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.detail__feedback b {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

.feedback__options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.feedback-chip {
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  color: var(--ink-2);
  background: transparent;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}

.feedback-chip:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.feedback-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.feedback__note {
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--ink-3);
}

.feedback__undo {
  padding: 0;
  border: 0;
  background: none;
  font-size: 10.5px;
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail__actions .btn {
  height: 44px;
}

.detail__hint {
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

.detail__share {
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.detail__share:hover {
  color: var(--ink);
}

/* handoff */

.sheet--handoff {
  width: min(440px, calc(100vw - 32px));
}

.handoff__body {
  padding: 24px 26px 30px;
}

.handoff__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.handoff__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.handoff__body h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.3;
}

.handoff__body p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-3);
}

.handoff__link {
  margin-top: 16px;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  word-break: break-all;
  color: var(--ink-2);
  max-height: 72px;
  overflow: auto;
}

.handoff__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.handoff__actions .btn {
  height: 40px;
  font-size: 12px;
  padding: 0 14px;
}

/* drawer */

.drawer {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(430px, 100vw);
  background: var(--bg);
  border-left: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: -30px 0 80px -40px rgba(0, 0, 0, 0.45);
}

.drawer[data-state="open"] {
  transform: none;
}

.drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
}

.drawer__head h2 {
  font-size: 30px;
  margin-top: 8px;
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 6px 22px;
}

.drawer__foot {
  display: flex;
  gap: 8px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}

.drawer__foot .btn {
  flex: 1;
  height: 40px;
  font-size: 12px;
}

.collection-item {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.collection__section {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.collection__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 2px;
}

.collection__section-head .mono {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}

.collection__clear {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.collection__clear:hover {
  color: var(--coral);
}

.collection-item--history {
  opacity: 0.82;
}

.collection-item--history:hover {
  opacity: 1;
}

.collection-item__cover {
  flex: 0 0 76px;
  width: 76px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-soft);
}

.collection-item__body {
  flex: 1;
  min-width: 0;
}

.collection-item__title {
  font-size: 12.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collection-item__meta {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

.collection-item__remove {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
}

.collection-item__remove:hover {
  color: var(--coral);
}

.collection-item__remove svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.collection-empty {
  padding: 50px 10px;
  text-align: center;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.9;
}

.collection-empty strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 700;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: var(--scrim);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.scrim[data-state="open"] {
  opacity: 1;
}

.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 26px;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  border-radius: 2px;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.3s var(--ease);
  max-width: calc(100vw - 40px);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* skeleton */

.skeleton-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(100deg, var(--surface-2) 20%, var(--surface) 40%, var(--surface-2) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
}

.skeleton-card__line {
  height: 12px;
  background: var(--surface-2);
}

.skeleton-card__line--short {
  width: 60%;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

/* ---------- 11. responsive ---------- */

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__content {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 36px;
  }

  .ticker__inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .ticker__cell--wide {
    display: none;
  }

  .ticker__cell--time {
    border-left: 0;
    padding-left: 0;
  }

  .note {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .board__list {
    gap: 0 26px;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero__content {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    padding-top: 8px;
  }

  .hero__title {
    font-size: clamp(30px, 6.4vw, 44px);
  }

  .hero__score {
    margin-top: 24px;
  }

  .resolver__panel {
    grid-template-columns: 1fr;
  }

  .resolver__copy p {
    max-width: none;
  }

  .resolver__examples {
    display: none;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail {
    grid-template-columns: 1fr;
  }

  .detail__media img {
    max-height: 300px;
  }

  .detail__play {
    width: 52px;
    height: 52px;
  }

  .board__lead {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 62px;
  }

  .brand__mark {
    width: 34px;
  }

  .brand__name {
    font-size: 22px;
  }

  .brand__latin {
    display: none;
  }

  .masthead__actions {
    gap: 0;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero__head {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
    padding-bottom: 14px;
  }

  .hero__content {
    padding-top: 18px;
    gap: 22px;
  }

  .hero__title {
    font-size: clamp(27px, 8vw, 36px);
    line-height: 1.22;
    -webkit-line-clamp: 4;
  }

  .hero__desc {
    font-size: 12.5px;
    -webkit-line-clamp: 4;
  }

  .hero__actions {
    margin-top: 20px;
    flex-wrap: wrap;
  }

  .hero__actions .btn {
    height: 42px;
    padding: 0 15px;
    font-size: 12.5px;
  }

  .hero__score {
    gap: 14px;
  }

  .score-ring {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }

  .score-ring__num {
    font-size: 17px;
  }

  .ticker__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-block: 12px;
  }

  .ticker__cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  .ticker__cell + .ticker__cell {
    padding-left: 10px;
  }

  .ticker__cell strong {
    font-size: 15px;
  }

  .ticker__cell--time {
    display: none;
  }

  .note {
    padding-block: 44px;
  }

  .note__body {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .note__body > p {
    font-size: 19px;
    line-height: 1.6;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-head__desc {
    font-size: 12px;
    padding-bottom: 0;
  }

  .toolbar {
    gap: 8px;
    padding-block: 14px;
  }

  .segmented {
    width: 100%;
    justify-content: space-between;
  }

  .seg {
    flex: 1;
    justify-content: center;
    padding: 0 8px;
  }

  .search {
    max-width: none;
    flex: 1 1 100%;
    height: 40px;
    order: 3;
  }

  .select {
    height: 38px;
    flex: 1;
  }

  .select select {
    width: 100%;
    font-size: 12px;
  }

  .btn--random {
    height: 38px;
    flex: 0 0 auto;
  }

  .chips {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 auto;
    height: 30px;
  }

  .chips--small {
    padding-bottom: 14px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .card__title {
    font-size: 15.5px;
  }

  .card__play {
    display: none;
  }

  .card__save {
    opacity: 1;
    transform: none;
  }

  .board__lead {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hot-card {
    aspect-ratio: 16 / 9;
  }

  .hot-card:nth-child(n + 2) {
    display: none;
  }

  .board__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hot-row {
    min-width: 0;
    padding: 12px 0;
  }

  .hot-row__thumb {
    flex-basis: 44px;
    width: 44px;
    height: 30px;
  }

  .resolver__panel {
    padding: 26px 20px;
    gap: 26px;
  }

  .resolver__copy h2 {
    font-size: 34px;
  }

  .resolver__field {
    flex-direction: column;
    padding: 8px;
  }

  .resolver__field input {
    height: 38px;
  }

  .resolver__field .btn {
    width: 100%;
  }

  .footer__cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 40px;
  }

  .sheet {
    width: 100vw;
    max-width: 100vw;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 10px 10px 0 0;
  }

  .sheet[open] {
    animation: sheet-up 0.38s var(--ease);
  }

  @keyframes sheet-up {
    from {
      transform: translateY(100%);
    }
    to {
      transform: none;
    }
  }

  .sheet__body {
    max-height: calc(92dvh - 60px);
  }

  .sheet__head {
    padding: 12px 12px 12px 20px;
  }

  .detail__media img {
    max-height: 220px;
  }

  .detail__content {
    padding: 20px;
    gap: 14px;
  }

  .detail__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail__actions {
    position: sticky;
    bottom: 0;
    background: var(--bg);
    margin: 0 -20px -20px;
    padding: 12px 20px 18px;
    border-top: 1px solid var(--line);
  }

  .drawer {
    width: 100vw;
  }

  .toast {
    bottom: 18px;
  }
}

/* ---------- 12. runtime bits ---------- */

body.is-locked {
  overflow: hidden;
}

.hero__score-body {
  flex: 1;
  min-width: 0;
}

mark {
  background: rgba(224, 80, 106, 0.18);
  color: inherit;
  padding: 0 0.08em;
}

[data-theme="ink"] mark {
  background: rgba(255, 107, 129, 0.24);
}

.card__quality[data-grade="HOT"] {
  background: var(--teal);
  color: #fff;
  letter-spacing: 0;
}

.card__quality[data-grade="HOT"]::after {
  content: "";
  margin: 0;
}

.card__quality[data-grade="RISE"] {
  background: var(--coral);
  color: #fff;
  letter-spacing: 0;
}

.card__quality[data-grade="RISE"]::after {
  content: "升温";
  color: rgba(255, 255, 255, 0.74);
  letter-spacing: 0;
}

.card__quality[data-grade="C"] {
  background: var(--surface);
  color: var(--ink-2);
}

.card__avatar--topic {
  background: linear-gradient(135deg, var(--coral), var(--teal));
}

.card__views .card__arrow {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail__stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail__author > span {
  color: var(--ink-2);
  font-size: 12.5px;
}

.detail__author > span span {
  color: var(--ink-3);
  font-size: 11px;
}

.detail__hint code {
  padding: 1px 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 9.5px;
}

.collection-item__title {
  width: 100%;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
}

.collection-item__title:hover {
  color: var(--coral);
}

[data-theme="ink"] .resolver__field .btn--primary {
  background: #15120e;
  border-color: #15120e;
  color: #f2eee5;
}

[data-theme="ink"] .resolver__field .btn--primary:hover {
  background: var(--coral);
  border-color: var(--coral);
  color: #fff;
}

@media (max-width: 720px) {
  .detail__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* detail: full-bleed cover fills the plate */
.detail__media {
  overflow: hidden;
}

.detail__media img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

@media (max-width: 720px) {
  .detail__media img {
    max-height: 320px;
  }
}

/* topic detail: shorter plate, content shouldn't float in a tall frame */
.detail--topic .detail__media img {
  max-height: 560px;
}

/* mobile section jump */
.quicknav {
  display: none;
}

/* mobile selection toolbar order */
@media (max-width: 720px) {
  .toolbar .segmented {
    order: 0;
  }

  .toolbar .search {
    order: 1;
  }

  .toolbar .select,
  .toolbar .btn--random {
    order: 2;
  }

  .toolbar .search kbd {
    display: none;
  }

  .quicknav {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 40px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  .quicknav a {
    color: inherit;
  }

  .quicknav a:first-child {
    color: var(--ink);
  }

  .quicknav__hint {
    margin-left: auto;
    font-size: 9px;
    opacity: 0.6;
  }

  /* 抖音热榜前三：横向滑动，不再隐藏第二三名 */
  .board__lead {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
  }

  .board__lead::-webkit-scrollbar {
    display: none;
  }

  .board__lead .hot-card {
    scroll-snap-align: start;
  }

  .board__lead .hot-card:nth-child(n + 2) {
    display: block;
  }
}

/* ------------------------------------------------------------------ */
/* 图床失败：首字海报（不让整屏破图）                                    */
/* ------------------------------------------------------------------ */

[data-cover] {
  position: relative;
  isolation: isolate;
  background: linear-gradient(
    145deg,
    hsl(var(--hue, 24) 12% 27%),
    hsl(calc(var(--hue, 24) + 24) 16% 17%)
  );
}

[data-cover]::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 92px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 0.04em;
  pointer-events: none;
}

[data-cover].is-cover-missing {
  background: linear-gradient(
    145deg,
    hsl(var(--hue, 24) 12% 27%),
    hsl(calc(var(--hue, 24) + 24) 16% 17%)
  );
}

.card__media[data-cover],
.hot-card[data-cover],
.hot-row__thumb[data-cover],
.detail__media[data-cover] {
  background: linear-gradient(
    145deg,
    hsl(var(--hue, 24) 12% 27%),
    hsl(calc(var(--hue, 24) + 24) 16% 17%)
  );
}

[data-cover].hot-row__thumb::after {
  font-size: 20px;
}

[data-cover].hot-card::after {
  font-size: clamp(48px, 9vw, 120px);
}

[data-cover].detail__media::after {
  font-size: clamp(64px, 12vw, 160px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------------ */
/* 拾遗（编辑策展池）                                                   */
/* ------------------------------------------------------------------ */

.wander {
  padding-block: clamp(52px, 7vw, 92px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wander__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(26px, 3vw, 42px);
}

.wander h2 {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.wander__aside {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.wander__aside p {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.85;
  text-wrap: pretty;
}

.wander__refresh {
  gap: 8px;
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.wander__refresh svg {
  width: 13px;
  height: 13px;
}

.wander__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.wander__hint {
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.card__quality--curated {
  background: var(--teal);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.card__quality--curated::after {
  content: "";
}

.detail__origin {
  color: var(--teal);
}

@media (max-width: 980px) {
  .wander__head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .wander__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wander__grid {
    grid-template-columns: 1fr;
  }
  .wander__head {
    gap: 18px;
  }
}

/* 320px：详情底部按钮收紧，避免主按钮被挤到第二行 */
@media (max-width: 360px) {
  .detail__actions {
    gap: 7px;
  }

  .detail__actions .btn {
    height: 42px;
    padding: 0 10px;
    font-size: 11px;
  }

  .detail__actions .btn--square {
    flex: 0 0 42px;
    width: 42px;
  }

  .feedback__options {
    gap: 6px;
  }

  .feedback-chip {
    padding: 0 10px;
    font-size: 11px;
  }
}

/* ------------------------------------------------------------------ */
/* Mobile reading layout                                               */
/* ------------------------------------------------------------------ */

.tabbar {
  display: none;
}

@media (max-width: 720px) {
  :root {
    --header-h: 56px;
    --tabbar-h: 58px;
  }

  body {
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  }

  /* Feed first: hero → ticker → selection → curated → hot → note → resolver */
  main {
    display: flex;
    flex-direction: column;
  }

  .hero {
    order: 1;
    padding-top: 10px;
  }

  .ticker {
    order: 2;
  }

  .selection {
    order: 3;
  }

  .wander {
    order: 4;
  }

  .board {
    order: 5;
  }

  .note {
    order: 6;
    padding-block: 36px;
  }

  .resolver {
    order: 7;
  }

  .quicknav {
    display: none !important;
  }

  #top,
  #wander,
  #hot,
  #resolve {
    scroll-margin-top: calc(var(--header-h) + 12px);
  }

  .search input,
  .resolver__field input {
    font-size: 16px;
  }

  /* Compact hero: keep the choice, lose the scroll */
  .hero__head {
    padding-bottom: 10px;
  }

  .hero__content {
    gap: 14px;
    padding-top: 12px;
  }

  .hero__title {
    font-size: clamp(25px, 7.2vw, 31px);
    line-height: 1.18;
    -webkit-line-clamp: 3;
  }

  .hero__desc {
    font-size: 12px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
  }

  .hero__actions {
    margin-top: 12px;
  }

  .hero__score {
    gap: 12px;
    margin-top: 2px;
  }

  .hero__reason {
    font-size: 11.5px;
    line-height: 1.55;
  }

  .hero__trust {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .score-subs {
    display: none;
  }

  .selection {
    padding-top: 30px;
  }

  .toolbar {
    gap: 7px;
    padding-block: 10px 4px;
  }

  .search,
  .select,
  .btn--random {
    height: 38px;
  }

  .chips {
    padding-bottom: 8px;
  }

  /* Two-column feed: more titles per thumb swipe */
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .card {
    min-width: 0;
  }

  .card__body {
    gap: 6px;
    padding-top: 8px;
  }

  .card__title {
    font-size: 13px;
    line-height: 1.45;
  }

  .card__eyebrow {
    gap: 5px;
    font-size: 9px;
  }

  .card__author {
    gap: 5px;
    font-size: 10px;
  }

  .card__avatar {
    width: 16px;
    height: 16px;
  }

  .card__views {
    gap: 3px;
    font-size: 9px;
  }

  .card__quality {
    padding: 5px 6px;
    font-size: 10px;
  }

  .card__platform {
    display: none;
  }

  .card__duration {
    padding: 3px 5px;
    font-size: 9px;
  }

  .card__save {
    top: 7px;
    right: 7px;
    width: 34px;
    height: 34px;
  }

  .toast {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .section-head__title {
    font-size: 32px;
  }

  /* Full-screen detail, sticky actions */
  #detail {
    inset: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  #detail .sheet__head {
    min-height: 48px;
    padding: 10px 14px;
  }

  #detail .sheet__body {
    max-height: calc(100dvh - 49px);
  }

  #detail .detail {
    grid-template-columns: 1fr;
  }

  #detail .detail__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  #detail .detail__media img {
    height: 100%;
    max-height: 40dvh;
  }

  #detail .detail__content {
    padding: 18px 16px 22px;
  }

  #detail .detail__actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin-top: 4px;
    margin-right: -16px;
    margin-left: -16px;
    padding: 10px 16px 12px;
    background: var(--bg);
  }

  /* Bottom tab bar */
  .tabbar {
    position: fixed;
    z-index: 35;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: var(--bg);
  }

  .tabbar__item {
    appearance: none;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink-4);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .tabbar__item svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .tabbar__item span {
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 1;
    letter-spacing: 0.12em;
  }

  .tabbar__item.is-active {
    color: var(--ink);
  }

  .tabbar__item.is-active svg {
    stroke-width: 1.9;
  }

  .tabbar__item:active {
    background: var(--bg-soft);
  }
}

@media (max-width: 359px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card__title {
    font-size: 14px;
  }
}

/* ------------------------------------------------------------------ */
/* 手机端 App 化：下拉刷新、下滑关闭、安装态                           */
/* ------------------------------------------------------------------ */

.ptr {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 58px);
  left: 50%;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 0, 0);
  transition: opacity 0.14s ease;
  white-space: nowrap;
}

.ptr__spinner {
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  opacity: 0.7;
}

.ptr.is-active {
  opacity: 1;
}

.ptr.is-ready,
.ptr.is-loading {
  background: var(--coral);
  color: #fff;
}

.ptr.is-loading .ptr__spinner {
  animation: ptr-spin 0.7s linear infinite;
  opacity: 1;
}

@keyframes ptr-spin {
  to {
    transform: rotate(360deg);
  }
}

#detail.is-dragging {
  transition: none;
}

@media (max-width: 720px) {
  html,
  body {
    overscroll-behavior-y: none;
  }

  .ptr {
    display: flex;
  }

  #detail {
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  #detail,
  .ptr {
    transition: none;
  }
}

/* ---------- 新手引导 ---------- */
.tour[hidden] {
  display: none;
}

.tour {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

/* 一个元素同时做「压暗 + 挖洞」：大范围外阴影就是遮罩 */
.tour__spot {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 100vmax rgba(20, 16, 10, 0.55);
  pointer-events: none;
  transition:
    left 0.3s var(--ease),
    top 0.3s var(--ease),
    width 0.3s var(--ease),
    height 0.3s var(--ease);
}

[data-theme="ink"] .tour__spot {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.68);
}

.tour__tip {
  position: fixed;
  left: 16px;
  top: 16px;
  width: 340px;
  max-width: calc(100vw - 32px);
  padding: 18px 20px 16px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -34px rgba(20, 14, 6, 0.6);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.22s ease,
    transform 0.28s var(--ease);
  pointer-events: auto;
}

.tour__tip.is-in {
  opacity: 1;
  transform: none;
}

.tour__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tour__count {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.tour__close {
  border: 0;
  padding: 2px 4px;
  background: none;
  color: var(--ink-3);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.tour__close:hover {
  color: var(--ink);
}

.tour__title {
  margin: 10px 0 8px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
}

.tour__body {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}

.tour__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tour__dots {
  display: inline-flex;
  gap: 5px;
}

.tour__dots i {
  width: 14px;
  height: 2px;
  background: var(--line-strong);
}

.tour__dots i.is-on {
  background: var(--coral);
}

.tour__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tour__skip {
  border: 0;
  padding: 4px;
  background: none;
  color: var(--ink-3);
  font-size: 12px;
  cursor: pointer;
}

.tour__skip:hover {
  color: var(--ink);
}

.tour__next {
  height: 38px;
  padding: 0 16px;
  font-size: 12.5px;
}

.footer__link--btn {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 0;
  background: none;
  color: var(--ink-3);
  font: inherit;
  cursor: pointer;
}

.footer__link--btn:hover,
.footer__link--btn:focus-visible {
  color: var(--coral);
  border-color: var(--coral);
}

@media (max-width: 640px) {
  .tour__tip {
    padding: 16px 16px 14px;
  }

  .tour__title {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour__spot,
  .tour__tip {
    transition: none;
  }
}

/* =====================================================================
   杂志版 v2（2026-10-24）：更重的报头、通栏质量分、编辑部式数据条
   —— 覆盖层，放在最后，改动集中在首页骨架与排版
   ===================================================================== */

:root {
  --paper: #f4f0e7;
  --paper-2: #efe9dd;
  --ink: #16130f;
  --ink-2: #4c463c;
  --ink-3: #857c6e;
  --line: rgba(22, 19, 15, 0.13);
  --line-strong: rgba(22, 19, 15, 0.3);
  --coral: #c0472f;
  --teal: #2c4a42;
  --bg: var(--paper);
  --surface: #faf6ee;
  --wrap: 1240px;
  --header-h: 78px;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
}

[data-theme="ink"] {
  --paper: #121314;
  --paper-2: #17181a;
  --ink: #f2ede2;
  --ink-2: #bdb5a7;
  --ink-3: #8d8478;
  --line: rgba(242, 237, 226, 0.13);
  --line-strong: rgba(242, 237, 226, 0.3);
  --coral: #e2603f;
  --teal: #7fb3a6;
  --bg: var(--paper);
  --surface: #171819;
}

html { background: var(--paper); }
body {
  font-size: 16.5px;
  line-height: 1.75;
  background: var(--paper);
  color: var(--ink);
}

/* ---------- 报头：压得住头图 ---------- */
.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  height: var(--header-h);
  gap: 30px;
}
.brand { gap: 12px; }
.brand__mark { width: 38px; height: 26px; }
.brand__name { font-size: 23px; letter-spacing: 0.02em; }
.brand__latin { font-size: 8.5px; letter-spacing: 0.34em; color: var(--ink-3); }
.nav { gap: 26px; }
.nav a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  margin: 7px auto 0;
  border-radius: 50%;
  background: var(--coral);
}
.icon-btn { width: 36px; height: 36px; }

/* ---------- 期号带 / 栏目编号 ---------- */
.hero__head {
  padding-block: 20px 14px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.kicker {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--coral);
}
.kicker__cn { color: var(--ink); }
.kicker i { font-style: normal; color: var(--ink-3); margin: 0 6px; }
.sec-index {
  display: inline-block;
  margin-right: 12px;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  vertical-align: 1px;
}
.hero__issue {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.hero__issue .live { color: var(--coral); }

/* ---------- 封面 + 文案 ---------- */
.hero__content {
  grid-template-columns: 7fr 5fr;
  gap: clamp(28px, 3.8vw, 58px);
  padding-top: clamp(26px, 3.4vw, 50px);
  align-items: start;
}
.hero__media .media__frame--hero { aspect-ratio: 16 / 10; }
.hero__media figcaption { font-size: 11.5px; color: var(--ink-3); padding-top: 12px; }
.hero__quality {
  width: 76px;
  height: 76px;
  border: 0;
  background: rgba(244, 240, 231, 0.94);
  color: #16130f;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  box-shadow: none;
}
.hero__quality::after { display: none; }
.hero__copy { gap: 0; }
.hero__meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 14px 0 20px;
}
.hero__desc {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 34em;
}
.hero__actions { margin-top: 28px; gap: 12px; }
.btn {
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--primary:hover { background: var(--coral); border-color: var(--coral); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--square { border-radius: 50%; width: 46px; height: 46px; }

/* ---------- 通栏质量分 ---------- */
.quality-band {
  display: grid;
  grid-template-columns: minmax(200px, 250px) 1fr;
  gap: 14px 48px;
  align-items: center;
  margin-top: clamp(22px, 3vw, 38px);
  padding-block: 20px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.quality-band__score {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.quality-band__num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 52px;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.quality-band__cap {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}
.quality-band__cap i { font-style: normal; color: var(--coral); margin: 0 4px; }
.quality-band__subs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.quality-band__subs li {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.quality-band__subs li i {
  display: block;
  height: 2px;
  width: calc(var(--v, 0) * 100%);
  min-width: 6px;
  background: var(--ink);
}
.quality-band__subs li:nth-child(5) i { background: var(--coral); }
.quality-band__subs li span {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.quality-band__note {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: 4px;
}
.hero__reason { font-size: 12.5px; color: var(--ink-2); margin: 0; }
.hero__trust { font-size: 10.5px; color: var(--ink-3); }
.score-ring { display: none; }

/* ---------- 编辑部数据条 ---------- */
.colophon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.colophon__cell {
  padding: 22px 26px 24px;
  border-left: 1px solid var(--line);
}
.colophon__cell:first-child { border-left: 0; padding-left: 0; }
.colophon__cell > .mono {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.colophon__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
}
.colophon__value strong {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.colophon__value span { font-size: 11px; color: var(--ink-3); }
.colophon__cell > p:last-child {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
}
.colophon__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block-start: 14px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

/* ---------- 编辑手记 ---------- */
.note {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 272px;
  gap: clamp(24px, 4vw, 60px);
  padding-top: clamp(48px, 6vw, 84px);
  padding-bottom: clamp(48px, 6vw, 84px);
}
.note__label {
  writing-mode: vertical-rl;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--ink-3);
  margin: 4px 0 0;
  border-left: 1px solid var(--coral);
  padding-left: 12px;
}
.note__label i { font-style: normal; color: var(--coral); margin-top: 6px; }
.note__quote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.72vw, 23px);
  line-height: 1.85;
  text-indent: -0.52em;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.note__quote::before { content: "\300c"; color: var(--coral); }
.note__quote::after { content: "\300d"; color: var(--coral); }
.note__quote em {
  font-style: normal;
  color: var(--coral);
  box-shadow: inset 0 -0.34em 0 rgba(192, 71, 47, 0.13);
}
.note__sig {
  margin: 18px 0 0;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.note__aside { font-size: 12.5px; line-height: 1.8; color: var(--ink-2); margin: 6px 0 0; }
.note__aside b { display: block; color: var(--ink); margin-bottom: 6px; font-weight: 600; }

/* ---------- 栏目头 ---------- */
.section-head { border-top: 1px solid var(--line); padding-top: 22px; }
.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.01em;
  margin: 10px 0 0;
}
.section-head__desc { font-size: 12px; color: var(--ink-3); line-height: 1.8; }

/* ---------- 卡片 / 热榜：收一点边 ---------- */
.card { border-bottom: 1px solid var(--line); }
.card__title, .card__name { font-size: 15.5px; line-height: 1.45; }
.card__meta, .card__foot { font-size: 10.5px; color: var(--ink-3); }
.card__media { border-radius: 1px; }

.hot-card, .hot-row { border-bottom: 1px solid var(--line); }
.hot-row__title { font-size: 15px; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.footer__inner { padding-block: 54px 40px; gap: 48px; }
.footer__brand .brand__name { font-size: 26px; }
.footer__cols { gap: 42px; }
.footer__cols > div > .mono {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.footer__cols p { font-size: 12px; line-height: 1.9; color: var(--ink-2); margin: 0; }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 18px 26px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .quality-band { grid-template-columns: 1fr; gap: 16px; }
  .quality-band__subs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .note { grid-template-columns: 90px 1fr; }
  .note__aside { grid-column: 2; max-width: 46em; }
}
@media (max-width: 980px) {
  .hero__content { grid-template-columns: 1fr; gap: 26px; }
  .hero__title { font-size: clamp(30px, 5.4vw, 40px); }
  .colophon { grid-template-columns: 1fr 1fr; }
  .colophon__cell:nth-child(3) { border-left: 0; padding-left: 0; }
  .colophon__cell:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer__inner { flex-direction: column; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .masthead__inner { height: 64px; }
  .brand__name { font-size: 20px; }
  .quality-band__num { font-size: 40px; }
  .quality-band__subs { gap: 14px; }
  .quality-band__subs li span { font-size: 9.5px; }
  .quality-band__note { flex-direction: column; gap: 6px; }
  .colophon { grid-template-columns: 1fr 1fr; }
  .colophon__cell { padding: 16px 14px; }
  .colophon__cell:first-child { padding-left: 0; }
  .colophon__value strong { font-size: 26px; }
  .note { grid-template-columns: 1fr; gap: 18px; }
  .note__label {
    writing-mode: horizontal-tb;
    border-left: 0;
    border-bottom: 1px solid var(--coral);
    padding: 0 0 8px;
  }
  .note__aside { grid-column: auto; }
  .colophon__meta { flex-direction: column; gap: 4px; }
  .footer__inner { padding-block: 40px 28px; gap: 32px; }
}

/* ---------- 质量分五维：轨道 + 填充 ---------- */
.quality-band .quality-band__subs li { display: block; }
.quality-band .quality-band__subs li i {
  width: 100%;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.quality-band .quality-band__subs li i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--v, 0));
}
.quality-band .quality-band__subs li:nth-child(5) i::after { background: var(--coral); }
.quality-band .quality-band__subs li span {
  display: block;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  white-space: nowrap;
}

[data-theme="ink"] .hero__quality{background:rgba(18,19,20,.9);color:var(--ink)}

/* ============================================================
   编辑体外皮 v3：详情弹层 / 承接弹层 / 片单抽屉 / 搜索 / 提示
   与首屏同一套：纸面、细线、衬线标题、等宽小字、朱红少量
   ============================================================ */

.sheet {
  width: min(1160px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 0 50px 140px -40px rgba(20, 16, 10, 0.55);
}

.sheet::backdrop {
  background: rgba(20, 16, 10, 0.55);
  backdrop-filter: blur(2px);
}

.sheet__head {
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.sheet__body {
  max-height: calc(100dvh - 96px);
}

.detail {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.detail__content {
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 42px);
}

.detail__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--coral);
}

.detail__title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.01em;
  margin: 14px 0 12px;
}

.detail__desc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
}

.detail__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail__stat {
  padding: 15px 16px 14px 0;
}

.detail__stat + .detail__stat {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.detail__stat dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.detail__stat dd {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-top: 6px;
  line-height: 1;
}

.detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail__score {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(22, 19, 15, 0.2);
  background: rgba(244, 240, 231, 0.94);
  color: #16130f;
  font-family: var(--font-serif);
  font-size: 24px;
}

.detail__score small {
  font-size: 8px;
  letter-spacing: 0.14em;
}

.detail__platform {
  background: rgba(20, 16, 10, 0.62);
  color: #f4f0e7;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  padding: 6px 10px;
}

.detail__reason,
.detail__trust {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}

.detail__author {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.sheet--handoff {
  width: min(540px, calc(100vw - 32px));
}

.handoff__body {
  padding: 34px 32px 30px;
}

.handoff__body h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.3;
}

.handoff__body p {
  color: var(--ink-2);
  line-height: 1.8;
}

.drawer {
  width: min(460px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--line-strong);
  box-shadow: -40px 0 100px -50px rgba(20, 16, 10, 0.5);
}

.drawer__head {
  padding: 26px 26px 20px;
}

.drawer__head h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.24;
}

.drawer__body {
  padding: 4px 26px;
}

.drawer__foot {
  padding: 18px 26px;
  border-top: 1px solid var(--line);
}

.collection-item {
  padding: 16px 0;
  gap: 14px;
}

.scrim {
  background: rgba(20, 16, 10, 0.55);
}

.toast {
  border-radius: 0;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 12px 18px;
  bottom: 30px;
}

.search {
  border-bottom: 1px solid var(--line-strong);
}

.search:focus-within {
  border-color: var(--ink);
}

[data-theme="ink"] .detail__score {
  background: rgba(18, 19, 20, 0.92);
  color: var(--ink);
  border-color: var(--line-strong);
}

@media (max-width: 760px) {
  .sheet {
    width: 100vw;
    max-height: 100dvh;
    border: 0;
  }

  .sheet__head {
    padding: 12px 18px;
  }

  .detail {
    grid-template-columns: 1fr;
  }

  .detail__content {
    padding: 22px 20px 28px;
  }

  .detail__stats {
    grid-template-columns: 1fr 1fr;
  }

  .drawer {
    width: 100vw;
    border-left: 0;
  }
}

/* 弹层内的收口：搜索下划线、抽屉底栏、移动端操作条 */
.search {
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  padding: 0 2px;
}

.search:focus-within {
  border-color: var(--ink);
  background: transparent;
}

.drawer__foot .btn {
  border-radius: 0;
  height: 42px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.drawer__head .icon-btn,
.sheet__head .icon-btn {
  border-radius: 0;
}

.detail__title {
  font-size: clamp(24px, 2.2vw, 32px);
}

@media (max-width: 760px) {
  .detail__actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 18px -20px 0;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
  }

  .detail__actions .btn {
    flex: 1 1 auto;
    border-radius: 0;
    justify-content: center;
  }
}

/* 每日 12 条 */
.daily { margin-top: clamp(48px, 6vw, 84px); }
.daily__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.daily__head h2 {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.daily__aside { max-width: 320px; font-size: 13px; line-height: 1.7; color: var(--ink-2); text-align: right; }
.daily__aside .btn { margin-top: 12px; }
.daily__grid {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
}
.daily__row {
  display: grid;
  grid-template-columns: 34px 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.daily__row:hover .daily__title { color: var(--coral); }
.daily__index { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); }
.daily__shot { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.daily__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.daily__title {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.daily__meta { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink-3); }
.daily__score { color: var(--coral); }
.daily__hint { margin-top: 14px; }
.daily__empty { grid-column: 1 / -1; padding: 26px 0; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
@media (max-width: 920px) {
  .daily__grid { grid-template-columns: 1fr; }
  .daily__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .daily__aside { text-align: left; max-width: none; }
}
@media (max-width: 520px) {
  .daily__row { grid-template-columns: 26px 96px minmax(0, 1fr); gap: 12px; }
  .daily__title { font-size: 15.5px; }
}

.load-more { overflow-anchor: none; }

/* ------------------------------------------------------------------ */
/* 继续看 / 质量证据 / 相似推荐                                          */
/* ------------------------------------------------------------------ */

.continue {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.continue[hidden] { display: none; }
.continue__label {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--coral);
}
.continue__item {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.continue__item img {
  width: 76px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.92);
}
.continue__item span {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.continue__close {
  flex: 0 0 auto;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 18px;
  cursor: pointer;
}
.continue__item:hover span { text-decoration: underline; text-underline-offset: 4px; }

.detail__evidence {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.detail__related {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.detail__related b { font-size: 10px; letter-spacing: 0.16em; color: var(--ink-3); }
.detail__related-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.detail__related-item img { width: 76px; aspect-ratio: 16 / 10; object-fit: cover; }
.detail__related-item span {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.detail__related-item:hover span { text-decoration: underline; text-underline-offset: 3px; }

.linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--coral);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .continue { gap: 10px; }
  .continue__item img { width: 58px; }
}
