/* 海峡助手 · 多巴胺编辑风 */
:root {
  --ink: #14123a;
  --ink-2: #3d3b63;
  --ink-3: #7a789b;
  --paper: #fff8ee;
  --paper-2: #fff1dc;
  --card: #ffffff;
  --line: #14123a;

  --pink: #ff4d8d;
  --orange: #ff7a1a;
  --yellow: #ffd23f;
  --lime: #a8e61d;
  --aqua: #14c9b5;
  --blue: #3b5bff;
  --violet: #8a5cff;
  --red: #ff4545;

  --pink-soft: #ffe0ec;
  --orange-soft: #ffe7d4;
  --yellow-soft: #fff4c7;
  --lime-soft: #eefbcf;
  --aqua-soft: #d4f7f2;
  --blue-soft: #dfe5ff;
  --violet-soft: #ebe2ff;
  --red-soft: #ffe0e0;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --border: 2.5px solid var(--line);

  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }

/* 颗粒质感 */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark svg { width: 42px; height: 42px; display: block; transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .brand-mark svg { transform: rotate(-10deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 20px; font-weight: 900; letter-spacing: .04em; }
.brand-text small { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }

.nav { display: flex; gap: 6px; margin-left: 8px; }
.nav-item {
  position: relative; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; transition: background .2s;
}
.nav-item:hover { background: var(--paper-2); }
.nav-item.is-active { background: var(--ink); color: var(--yellow); }
.nav-item i {
  font-style: normal; font-size: 10px; font-weight: 700; margin-left: 6px; padding: 1px 6px; border-radius: 6px;
  background: var(--pink); color: #fff; vertical-align: 2px;
}

.search-trigger {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  border: var(--border); background: var(--card); border-radius: 999px; padding: 7px 10px 7px 14px;
  font-weight: 700; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.search-trigger:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.search-trigger svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.search-trigger kbd { font-family: var(--font-mono); font-size: 12px; background: var(--paper-2); border-radius: 6px; padding: 0 7px; border: 1.5px solid var(--ink); }

/* ---------- 首屏 ---------- */
.hero { position: relative; padding: 72px 0 84px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.b1 { width: 460px; height: 460px; background: var(--pink); top: -160px; left: -120px; }
.b2 { width: 420px; height: 420px; background: var(--yellow); top: 40px; right: 18%; opacity: .5; }
.b3 { width: 380px; height: 380px; background: var(--aqua); bottom: -200px; right: -80px; opacity: .45; }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  background: var(--card); border: var(--border); border-radius: 999px; padding: 6px 16px 6px 12px;
  font-size: 14px; font-weight: 700; box-shadow: 3px 3px 0 var(--ink);
}
.eyebrow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }

.hero h1 {
  margin: 0; font-size: clamp(44px, 6.4vw, 88px); line-height: 1.05; font-weight: 900; letter-spacing: -.02em;
}
.hl {
  position: relative; display: inline-block; z-index: 0;
  background: linear-gradient(100deg, var(--pink), var(--orange) 55%, var(--yellow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hl { padding-bottom: .14em; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.04em; height: .2em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 6c5-6 15-6 20 0s15 6 20 0' fill='none' stroke='%2314123A' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / auto 100%;
}
.lede { max-width: 540px; margin: 24px 0 30px; font-size: 18px; color: var(--ink-2); }

.searchbox {
  display: flex; align-items: center; gap: 10px; max-width: 580px;
  background: var(--card); border: var(--border); border-radius: 999px; padding: 8px 8px 8px 22px;
  box-shadow: var(--shadow-lg); transition: transform .2s, box-shadow .2s;
}
.searchbox:focus-within { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--pink); }
.searchbox svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; flex-shrink: 0; }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 17px; font-weight: 500; color: var(--ink); padding: 10px 0; }
.searchbox input::placeholder { color: var(--ink-3); }
.searchbox input::-webkit-search-cancel-button { display: none; }
.searchbox button {
  border: 0; background: var(--ink); color: var(--yellow); font-weight: 900; font-size: 16px;
  padding: 12px 26px; border-radius: 999px; transition: background .2s;
}
.searchbox button:hover { background: var(--pink); color: #fff; }

.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; }
.quick > span { color: var(--ink-3); font-weight: 700; }
.quick button {
  border: 2px solid var(--ink); background: var(--card); border-radius: 999px; padding: 3px 12px; font-size: 14px; font-weight: 700;
  transition: transform .15s, background .15s;
}
.quick button:hover { transform: translateY(-2px) rotate(-2deg); }
.quick button:nth-of-type(6n+1):hover { background: var(--yellow); }
.quick button:nth-of-type(6n+2):hover { background: var(--aqua-soft); }
.quick button:nth-of-type(6n+3):hover { background: var(--pink-soft); }
.quick button:nth-of-type(6n+4):hover { background: var(--lime-soft); }
.quick button:nth-of-type(6n+5):hover { background: var(--violet-soft); }
.quick button:nth-of-type(6n):hover { background: var(--orange-soft); }

/* 首屏插画 + 贴纸 */
.hero-art { position: relative; aspect-ratio: 4 / 3.4; }
.strait { position: absolute; inset: 9% 3% 3% 6%; width: 91%; height: auto; filter: drop-shadow(8px 8px 0 var(--ink)); }
.waves path { animation: drift 6s ease-in-out infinite; }
.waves path:nth-child(2) { animation-delay: -2s; }
.waves path:nth-child(3) { animation-delay: -4s; }
@keyframes drift { 50% { transform: translateX(-14px); } }
.boat { animation: sail 7s ease-in-out infinite; transform-origin: 204px 140px; }
@keyframes sail { 0%, 100% { transform: translate(-30px, 46px) rotate(-4deg); } 50% { transform: translate(40px, 4px) rotate(4deg); } }
.route { animation: dash 2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }

.sticker {
  position: absolute; z-index: 2; background: var(--card); border: var(--border); border-radius: 18px;
  padding: 10px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; line-height: 1.15;
  animation: bob 5s ease-in-out infinite;
}
.sticker small { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.sticker b { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -.02em; }
.sticker em { font-style: normal; font-size: 13px; font-weight: 700; position: absolute; right: 14px; bottom: 12px; }
.s-total { top: 0; left: 0; background: var(--yellow); transform: rotate(-6deg); padding-right: 40px; }
.s-policy { top: 4%; right: 0; background: var(--violet); color: #fff; transform: rotate(5deg); animation-delay: -1.5s; }
.s-policy small { color: #fff; opacity: .85; }
.s-src { bottom: 6%; left: -2%; background: var(--lime); transform: rotate(4deg); animation-delay: -3s; }
.s-date { bottom: 0; right: 4%; background: var(--card); transform: rotate(-4deg); animation-delay: -2s; }
.s-date b { font-size: 28px; font-family: var(--font-mono); font-weight: 700; }
@keyframes bob { 50% { translate: 0 -8px; } }

/* ---------- 跑马灯 ---------- */
.ticker {
  display: flex; align-items: center; background: var(--ink); color: #fff; border-block: var(--border);
  overflow: hidden; transform: rotate(-1deg) scale(1.02); margin: 0 0 28px;
}
.ticker-label {
  flex-shrink: 0; position: relative; z-index: 1; background: var(--pink); color: #fff; font-weight: 900;
  padding: 13px 22px; letter-spacing: .1em;
}
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-row { display: flex; width: max-content; animation: marquee 80s linear infinite; }
.ticker:hover .ticker-row { animation-play-state: paused; }
.ticker-row button {
  border: 0; background: none; color: #fff; font-weight: 500; font-size: 15px; white-space: nowrap; padding: 13px 0;
}
.ticker-row button::after { content: "✦"; color: var(--yellow); margin: 0 22px; }
.ticker-row button:hover { color: var(--yellow); }
.ticker-row button b { font-family: var(--font-mono); color: var(--aqua); font-weight: 700; margin-right: 8px; font-size: 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 通用分区 ---------- */
.section { padding: 76px 0; position: relative; }
.section-tint { background: var(--paper-2); border-block: var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.kicker { margin: 0 0 6px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--pink); }
.section h2 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; font-weight: 900; letter-spacing: -.01em; }
.section-note { max-width: 420px; margin: 0; color: var(--ink-2); font-size: 15px; }
.ghost-btn {
  border: var(--border); background: var(--card); border-radius: 999px; padding: 10px 20px; font-weight: 900;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s, background .15s;
}
.ghost-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); background: var(--yellow); }

/* 颜色工具 */
.c-pink { --c: var(--pink); --cs: var(--pink-soft); }
.c-orange { --c: var(--orange); --cs: var(--orange-soft); }
.c-yellow { --c: var(--yellow); --cs: var(--yellow-soft); }
.c-lime { --c: var(--lime); --cs: var(--lime-soft); }
.c-aqua { --c: var(--aqua); --cs: var(--aqua-soft); }
.c-blue { --c: var(--blue); --cs: var(--blue-soft); }
.c-violet { --c: var(--violet); --cs: var(--violet-soft); }
.c-red { --c: var(--red); --cs: var(--red-soft); }

/* ---------- 来源卡片 ---------- */
.sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.src-card {
  position: relative; text-align: left; border: var(--border); border-radius: var(--radius); background: var(--card);
  padding: 20px 20px 18px; box-shadow: var(--shadow); overflow: hidden; min-height: 176px;
  display: flex; flex-direction: column; transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s, background .2s;
}
.src-card::before {
  content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%; right: -40px; top: -46px;
  background: var(--c); border: var(--border); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1);
}
.src-card:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.src-card:hover::before { transform: scale(1.25); }
.src-card.is-on { background: var(--cs); box-shadow: 8px 8px 0 var(--c), 8px 8px 0 2.5px var(--ink); }
.src-level {
  position: relative; align-self: flex-start; font-size: 12px; font-weight: 900; padding: 2px 10px; border-radius: 999px;
  background: var(--ink); color: #fff;
}
.src-name { position: relative; margin: 16px 0 2px; font-size: 25px; font-weight: 900; letter-spacing: .02em; line-height: 1.2; }
.src-org { position: relative; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.src-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.src-count { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; }
.src-count small { font-family: var(--font); font-size: 13px; font-weight: 700; margin-left: 3px; }
.src-latest { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); text-align: right; line-height: 1.4; }
.src-home {
  position: absolute; right: 14px; top: 14px; z-index: 1; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--card); border: 2px solid var(--ink); text-decoration: none; font-weight: 900;
  transition: transform .2s;
}
.src-home:hover { transform: rotate(45deg); background: var(--yellow); }

/* ---------- 重点政策便当格 ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(180px, auto); gap: 18px; }
.bento-card {
  position: relative; text-align: left; border: var(--border); border-radius: var(--radius); background: var(--card);
  padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; overflow: hidden;
  transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s;
}
.bento-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.bento-card h3 { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 900; }
.bento-card p { margin: 0; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bento-card .meta { margin-top: auto; }
.bento-card.is-hero { grid-column: span 2; grid-row: span 2; background: var(--violet); color: #fff; padding: 30px; }
.bento-card.is-hero h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; }
.bento-card.is-hero p { color: rgba(255, 255, 255, .88); font-size: 16px; -webkit-line-clamp: 5; }
.bento-card.is-hero .big-no {
  position: absolute; right: -10px; bottom: -40px; font-family: var(--font-display); font-weight: 800; font-size: 220px; line-height: 1;
  color: transparent; -webkit-text-stroke: 2.5px rgba(255, 255, 255, .35); pointer-events: none;
}
.bento-card.is-wide { grid-column: span 2; background: var(--yellow); }
.bento-card.is-wide p { color: var(--ink); }
.bento-card.tone-aqua { background: var(--aqua-soft); }
.bento-card.tone-pink { background: var(--pink-soft); }
.bento-card.tone-lime { background: var(--lime-soft); }
.bento-card.tone-orange { background: var(--orange-soft); }
.bento-card > :not(.big-no) { position: relative; z-index: 1; }

/* ---------- 元信息徽章 ---------- */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--cs, var(--paper-2)); line-height: 1.5; white-space: nowrap;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink)); border: 1.5px solid var(--ink); }
.badge.solid { background: var(--c); color: var(--ink); }
.badge.solid::before { display: none; }
.is-hero .badge { border-color: #fff; background: rgba(255, 255, 255, .16); color: #fff; }
.is-hero .badge::before { border-color: #fff; }
.date { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--ink-3); }
.is-hero .date { color: rgba(255, 255, 255, .8); }
.tag-more { font-size: 12px; font-weight: 700; color: var(--ink-3); }
.is-hero .tag-more { color: rgba(255, 255, 255, .8); }
.tag { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.tag::before { content: "#"; color: var(--pink); margin-right: 1px; }

/* ---------- 筛选栏 ---------- */
.filters {
  position: sticky; top: 84px; z-index: 20; margin-bottom: 26px;
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: var(--border); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow);
  display: grid; gap: 12px;
}
.filters > * { min-width: 0; }
.filter-row { display: flex; align-items: center; gap: 14px; }
.pills { min-width: 0; }
.filter-label { flex-shrink: 0; font-size: 13px; font-weight: 900; color: var(--ink-3); width: 32px; }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; border: 2px solid var(--ink); background: var(--card);
  border-radius: 999px; padding: 5px 14px; font-size: 14px; font-weight: 700; transition: background .15s, transform .15s;
}
.pill:hover { transform: translateY(-1px); background: var(--cs, var(--paper-2)); }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--ink)); border: 1.5px solid var(--ink); }
.pill small { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--ink-3); }
.pill.is-on { background: var(--ink); color: #fff; }
.pill.is-on small { color: var(--yellow); }
.pill.is-on i { border-color: #fff; }
.filter-meta { display: flex; align-items: center; gap: 14px; border-top: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent); padding-top: 12px; font-size: 14px; }
.filter-meta [data-result-count] { font-weight: 700; color: var(--ink-2); }
.filter-meta [data-result-count] b { font-family: var(--font-display); font-size: 20px; color: var(--ink); margin: 0 2px; }
.seg { margin-left: auto; display: flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: var(--card); padding: 3px 14px; font-size: 13px; font-weight: 700; }
.seg button.is-on { background: var(--yellow); }
.reset { border: 0; background: var(--pink); color: #fff; font-weight: 900; font-size: 13px; padding: 4px 12px; border-radius: 999px; }

/* ---------- 资讯流卡片 ---------- */
.feed { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.item {
  position: relative; display: grid; grid-template-columns: 74px 1fr; gap: 18px; text-align: left; width: 100%;
  border: var(--border); border-radius: var(--radius); background: var(--card); padding: 18px 20px 18px 18px;
  box-shadow: var(--shadow); transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s;
  animation: rise .5s cubic-bezier(.2, .9, .3, 1.2) both;
}
.item:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--c, var(--ink)), 8px 8px 0 2.5px var(--ink); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.cal {
  align-self: start; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; text-align: center; background: var(--card);
}
.cal span { display: block; background: var(--c, var(--ink)); color: var(--ink); font-size: 11px; font-weight: 900; padding: 3px 0; border-bottom: 2px solid var(--ink); }
.cal b { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1.2; font-weight: 800; padding-top: 4px; }
.cal em { display: block; font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); padding-bottom: 5px; }
.item-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.item h3 { margin: 0; font-size: 18px; line-height: 1.45; font-weight: 900; }
.item p { margin: 0; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .ext { font-size: 12px; font-weight: 700; color: var(--blue); }
.item mark, .bento-card mark { background: var(--yellow); color: var(--ink); border-radius: 4px; padding: 0 2px; }
.item-thumb {
  position: absolute; right: 16px; top: 16px; width: 76px; height: 76px; border-radius: 14px; border: 2px solid var(--ink); object-fit: cover;
  background: var(--paper-2);
}
.item.has-thumb .item-main { padding-right: 92px; }

.feed-foot { display: flex; justify-content: center; margin-top: 34px; }
.more-btn {
  border: var(--border); background: var(--yellow); border-radius: 999px; padding: 14px 40px; font-weight: 900; font-size: 16px;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.more-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.more-btn[hidden] { display: none; }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px; border: var(--border); border-style: dashed; border-radius: var(--radius); background: var(--card);
}
.empty b { display: block; font-size: 48px; }
.empty p { margin: 8px 0 0; color: var(--ink-2); font-weight: 500; }

/* ---------- 即将上线 ---------- */
.soon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.soon-card {
  position: relative; border: var(--border); border-radius: var(--radius); background: var(--cs); padding: 24px; box-shadow: var(--shadow);
  overflow: hidden;
}
.soon-card .emoji {
  display: grid; place-items: center; width: 56px; height: 56px; font-size: 28px; border-radius: 16px; background: var(--c); border: var(--border);
  transform: rotate(-6deg);
}
.soon-card h3 { margin: 18px 0 6px; font-size: 22px; font-weight: 900; }
.soon-card p { margin: 0; color: var(--ink-2); font-size: 14px; }
.soon-card em {
  position: absolute; right: 16px; top: 18px; font-style: normal; font-size: 12px; font-weight: 900; padding: 2px 10px; border-radius: 999px;
  border: 2px dashed var(--ink);
}

/* ---------- 页脚 ---------- */
.footer { background: var(--ink); color: #fff; padding: 56px 0 64px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.brand-foot .brand-text small { color: rgba(255, 255, 255, .6); letter-spacing: .04em; text-transform: none; font-family: var(--font); font-size: 12px; }
.foot-note { color: rgba(255, 255, 255, .75); margin: 18px 0 0; max-width: 360px; }
.foot-meta { font-size: 14px; color: rgba(255, 255, 255, .7); }
.foot-meta p { margin: 0 0 10px; }
.foot-meta [data-generated] { font-family: var(--font-mono); color: var(--yellow); font-size: 13px; }

/* ---------- 阅读抽屉 ---------- */
.reader { position: fixed; inset: 0; z-index: 60; }
.reader[hidden] { display: none; }
.reader-mask { position: absolute; inset: 0; background: rgba(20, 18, 58, .45); backdrop-filter: blur(3px); animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.reader-panel {
  position: absolute; right: 14px; top: 14px; bottom: 14px; width: min(760px, calc(100% - 28px));
  background: var(--paper); border: var(--border); border-radius: 28px; box-shadow: -8px 8px 0 var(--ink);
  display: flex; flex-direction: column; overflow: hidden; animation: slide .35s cubic-bezier(.2, .9, .3, 1.1) both;
}
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.reader-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: var(--border); background: var(--card); }
.reader-nav { display: flex; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); font-weight: 900; font-size: 16px;
  display: grid; place-items: center; transition: background .15s, transform .15s;
}
.icon-btn:hover { background: var(--yellow); transform: rotate(-8deg); }
.reader-body { overflow-y: auto; padding: 34px 44px 60px; overscroll-behavior: contain; }
.reader-body h1 { margin: 16px 0 18px; font-size: clamp(24px, 3vw, 32px); line-height: 1.35; font-weight: 900; }
.reader-body .meta { margin-bottom: 4px; }
.reader-origin { font-size: 14px; color: var(--ink-3); margin-bottom: 26px; padding-bottom: 22px; border-bottom: 2px dashed color-mix(in srgb, var(--ink) 20%, transparent); }
.article p { margin: 0 0 1.1em; font-size: 17px; line-height: 1.95; color: #24224a; text-align: justify; }
.article h4 { margin: 1.6em 0 .7em; font-size: 18px; font-weight: 900; padding-left: 12px; border-left: 5px solid var(--pink); }
.article img { margin: 1.4em auto; border-radius: 16px; border: 2px solid var(--ink); max-height: 460px; object-fit: contain; background: var(--paper-2); }
.article h2 { margin: 1.8em 0 .8em; font-size: 21px; line-height: 1.45; font-weight: 900; display: flex; align-items: baseline; gap: 10px; }
.article h2 em {
  flex-shrink: 0; font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 15px;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 10px; padding: 0 8px; line-height: 1.6;
}
.article h3 { margin: 1.6em 0 .7em; font-size: 18px; line-height: 1.5; font-weight: 900; padding-left: 12px; border-left: 5px solid var(--pink); }
.article strong { font-weight: 900; color: var(--ink); background: linear-gradient(transparent 62%, var(--yellow-soft) 62%); }
.article em { font-style: normal; color: var(--pink); font-weight: 700; }
.article a { color: var(--blue); text-underline-offset: 3px; }
.article h2 strong, .article h3 strong { background: none; }
.article p.lines { text-align: center; line-height: 2.1; }
.article p.credit {
  margin-top: 2em; padding-top: 14px; border-top: 2px dashed color-mix(in srgb, var(--ink) 18%, transparent);
  font-size: 13px; line-height: 1.8; color: var(--ink-3); text-align: left;
}
.article p.credit i { display: inline-block; width: 1.4em; }
.article figure.narrow img { max-width: min(100%, 360px); border: 0; background: none; }
.article figure { margin: 1.4em 0; }
.article figure img { margin: 0 auto; }
.article figcaption { margin-top: 10px; text-align: center; font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.article ul, .article ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.article li { font-size: 17px; line-height: 1.9; margin-bottom: .4em; }
.article li::marker { color: var(--pink); font-weight: 900; }
.article blockquote { margin: 1.2em 0; padding: 14px 18px; background: var(--card); border: 2px solid var(--ink); border-radius: 16px; }
.article blockquote p:last-child { margin-bottom: 0; }
.article .tscroll { overflow-x: auto; margin: 1.2em 0; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); }
.article table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.6; }
.article td, .article th { border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); padding: 8px 10px; vertical-align: top; }
.article th, .article tr:first-child td { background: var(--paper-2); font-weight: 700; }
.article .media-note { padding: 12px 16px; border: 2px dashed var(--ink); border-radius: 14px; background: var(--card); font-size: 15px; }
.article-empty { padding: 30px; border: 2px dashed var(--ink); border-radius: 18px; text-align: center; background: var(--card); }
.reader-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border: var(--border); border-radius: 999px; padding: 11px 22px;
  font-weight: 900; font-size: 15px; background: var(--card); box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn.primary { background: var(--ink); color: var(--yellow); }

/* ---------- 提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-weight: 700; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--yellow);
  animation: rise .3s both;
}
.toast[hidden] { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .sources, .soon { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feed { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 820px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 460px; width: 100%; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .filters { top: 80px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .topbar-inner { height: 64px; gap: 12px; }
  .brand-text small { display: none; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .search-trigger { padding: 8px; }
  .lede { font-size: 16px; }
  .searchbox { padding-left: 16px; }
  .searchbox button { padding: 10px 18px; }
  .sticker b { font-size: 30px; }
  .s-date b { font-size: 20px; }
  .sources, .soon, .bento { grid-template-columns: 1fr; }
  .bento-card.is-hero, .bento-card.is-wide { grid-column: auto; grid-row: auto; }
  .section { padding: 56px 0; }
  .filters { position: static; padding: 14px; }
  .filter-label { display: none; }
  .item { grid-template-columns: 58px 1fr; gap: 14px; padding: 16px; }
  .cal b { font-size: 24px; }
  .item-thumb { display: none; }
  .item.has-thumb .item-main { padding-right: 0; }
  .reader-panel { inset: 0; width: 100%; border-radius: 0; border: 0; box-shadow: none; }
  .reader-body { padding: 24px 20px 50px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
