/* ============================================================
   Daily Plaza — 样式
   版式对齐 iandaily.xyz（2026-10 版）：
     浅灰画布（#f5f5f7）+ 8px 外框 + 右侧白色 16px 圆角面板
     卡片只有 1px 发丝边框、没有投影
     标题 14/500、判断 13/400、元信息 11/500
     底部 48px 胶囊条 + 大投影，内容在条下方渐隐
   ============================================================ */
/* 屏读器/抓取器可见、视觉隐藏：给每页一个 h1，不占版面 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:root {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --script: "Snell Roundhand", "Bradley Hand", "Segoe Script", cursive;

  /* 色板：直接取对标站 token */
  --fill: #f5f5f7;        /* 画布 / 今日看点底 / 骨架位 */
  --panel: #ffffff;       /* 白面板 / 卡片 */
  --side: transparent;    /* 侧栏透明，坐在画布上 */
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #ebebeb;
  --line-soft: #f2f2f4;
  --line-strong: #d2d2d7;
  --line-hover: #d9d9d9;
  --hover: #f0f0f2;
  --accent: #1d1d1f;

  --radius: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-bar: 0 10px 24px rgba(0, 0, 0, .14);
  --shadow-pop: 0 20px 48px -10px rgba(0, 0, 0, .22), 0 8px 16px -4px rgba(0, 0, 0, .10);

  --side-w: 256px;
  --bar-h: 48px;
  --top-h: 56px;
}

[data-theme="dark"] {
  --fill: #0c0c0e;
  --panel: #141416;
  --ink: #f5f5f7;
  --ink-2: #98989f;
  --ink-3: #71717a;
  --line: #242428;
  --line-soft: #1c1c20;
  --line-strong: #38383e;
  --line-hover: #323238;
  --hover: #1f1f23;
  --accent: #f5f5f7;
  --shadow-bar: 0 10px 24px rgba(0, 0, 0, .55);
  --shadow-pop: 0 24px 56px -8px rgba(0, 0, 0, .75), 0 8px 20px -4px rgba(0, 0, 0, .40);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizelegibility; }
body {
  background: var(--fill);
  color: var(--ink);
  font: 400 13px/1.5 var(--sans);
  font-feature-settings: "cv11", "ss01";
  overflow: hidden;                 /* 滚动交给中间那块面板，外壳不动 */
  transition: background .2s var(--ease), color .2s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

/* ---------------- 外壳：灰画布 + 白面板 ---------------- */
.shell {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  gap: 4px;
  padding: 8px;
  height: 100dvh;
  min-height: 100dvh;
  background: var(--fill);
}

/* ---------------- 侧栏（透明，直接坐在画布上） ---------------- */
.sidebar {
  display: flex; flex-direction: column;
  padding: 22px 18px 18px 20px; gap: 20px;
  background: var(--side); border: 0;
  min-height: 0; overflow: hidden;
  font-size: 13px; line-height: 1.35;
}
.wordmark {
  display: block; width: fit-content;
  font-family: var(--script); font-size: 28px; font-weight: 400;
  line-height: 1.2; letter-spacing: -.03em; margin: 0 0 10px;
  transition: opacity .15s var(--ease);
}
.wordmark:hover { opacity: .55; }
.about { font-size: 13px; line-height: 2; color: var(--ink); margin: 0; }
.identity-links { display: flex; flex-direction: column; align-items: flex-start; margin-top: 12px; }
.identity-links a {
  width: fit-content; max-width: 100%; min-height: 28px;
  padding: 4px 0; font-size: 13px; line-height: 1.5; color: var(--ink-2);
  border-bottom: 1px solid color-mix(in srgb, currentColor 42%, transparent);
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.identity-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* 日期导航：整块垂直居中，条目是 999px 胶囊，选中=白底 */
.issue-nav {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  overflow: hidden;
}
.issue-list { display: flex; flex-direction: column; gap: 2px; flex: none; }
/* 点开「更多」后列表会变长，改成顶部对齐，避免竖向居中把头几条裁掉 */
.issue-nav.is-expanded { justify-content: flex-start; overflow-y: auto; }
.issue-nav.is-expanded::-webkit-scrollbar { width: 2px; }
.issue-nav.is-expanded::-webkit-scrollbar-thumb { background: rgba(21, 22, 24, .28); border-radius: 99px; }
.issue-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 36px; padding: 8px 14px; border-radius: 999px;
  font-size: 13px; line-height: 1; color: var(--ink-2);
  border: 1px solid transparent;
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.issue-link:hover { color: var(--ink); background: rgba(21, 22, 24, .06); }
.issue-link.is-on { color: var(--ink); background: var(--panel); font-weight: 500; }
.issue-link .count {
  font-size: 12px; font-weight: 400; color: var(--ink-3);
  font-variant-numeric: tabular-nums; opacity: 1;
}
[data-theme="dark"] .issue-link:hover { background: rgba(255, 255, 255, .06); }
[data-theme="dark"] .issue-link.is-on { background: #1f1f23; }

.more-btn {
  align-self: flex-start; padding: 8px 14px; min-height: 36px;
  font-size: 13px; line-height: 1; color: var(--ink-3); border-radius: 999px;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.more-btn:hover { color: var(--ink); background: rgba(21, 22, 24, .06); }
.issue-more { flex: 0 1 auto; min-height: 0; overflow-y: auto; margin-top: 4px; padding-right: 4px; }.issue-more::-webkit-scrollbar { width: 2px; }
.issue-more::-webkit-scrollbar-thumb { background: rgba(21, 22, 24, .28); border-radius: 99px; }
.nav-group { margin-bottom: 6px; }
.nav-month {
  font-size: 12px; color: var(--ink-3); padding: 8px 14px 2px;
}
.nav-group:first-child .nav-month { padding-top: 2px; }
.issue-more a {
  display: block; padding: 8px 14px; font-size: 13px; color: var(--ink-2);
  border-radius: 999px; transition: color .15s var(--ease), background .15s var(--ease);
}
.issue-more a:hover { color: var(--ink); background: rgba(21, 22, 24, .06); }
.issue-more a.is-on { color: var(--ink); background: var(--panel); font-weight: 500; }

/* 导流 */
.promo { padding-top: 24px; }
.promo p { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 0 0 14px; }
.promo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 42px; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: var(--panel);
  font-size: 14px; font-weight: 500; line-height: 1;
  transition: opacity .15s var(--ease);
}
.promo-btn:hover { opacity: .82; }
.promo-btn svg { opacity: .72; flex: none; }
[data-theme="dark"] .promo-btn { color: #141416; }

/* 本机才出现的「写一条」入口：访客和线上都看不到 */
.owner-entry {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px dashed var(--line-strong);
  color: var(--ink-2);
  transition: border-color .15s, color .15s;
}
.owner-entry .oe-main { font-size: 13px; font-weight: 500; }
.owner-entry .oe-sub { font-size: 11px; color: var(--ink-3); letter-spacing: .02em; }
.owner-entry:hover { border-color: var(--ink); color: var(--ink); }
.owner-entry:hover .oe-sub { color: var(--ink-3); }

/* 底部：视图胶囊 + 主题 */
.sidebar-foot {
  display: flex; align-items: center; gap: 6px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed color-mix(in srgb, var(--line-strong) 70%, transparent);
}
.seg {
  display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0;
  height: 32px; padding: 2.5px;
  background: var(--fill); border: 1px solid var(--line); border-radius: 999px;
}
.seg button {
  flex: 1; height: 100%; min-width: 0; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border-radius: 999px; font-size: 12px; line-height: 1; color: var(--ink-3);
  transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.seg button svg { opacity: .75; flex: none; }
.seg button:hover { color: var(--ink); }
.seg button:hover svg { opacity: 1; }
.seg button.is-on {
  background: var(--panel); color: var(--ink); font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
.seg button.is-on svg { opacity: 1; }
[data-theme="dark"] .seg button.is-on { background: #27272a; color: #fff; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex: none;
  border-radius: 999px; color: var(--ink-3);
  background: var(--fill); border: 1px solid var(--line);
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }

/* ---------------- 主面板 ---------------- */
.main {
  position: relative;
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  background: var(--panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pane {
  flex: 1; min-height: 0;
  padding: 20px 20px 108px;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-gutter: stable;
}

/* 底部渐隐：内容走到筛选条下方时淡出，别硬切 */
.plaza-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
  z-index: 5; pointer-events: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--panel) 0%, transparent) 0%,
    color-mix(in srgb, var(--panel) 42%, transparent) 38%,
    color-mix(in srgb, var(--panel) 86%, transparent) 66%,
    var(--panel) 90%);
}

/* ---------------- 瀑布流 ---------------- */
.plaza { min-height: 40vh; }
.cols { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* ---------------- 卡片 ---------------- */
/* 每张卡等高：媒体位固定高（--media-h 由 JS 按列宽算）+ 正文固定行数，
   所以并排的卡底边是齐的，不会一高一低。 */
.card {
  display: flex; flex-direction: column;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s var(--ease), transform .1s var(--ease);
  contain: content;
}
.card:hover { border-color: var(--line-hover); }
.card:active { transform: scale(.99); }
/* 入场：只在首次绘制时跑，重排时加 .cols--quiet 关掉，避免闪 */
.cols.is-enter .card { animation: plaza-in .4s var(--ease) both; }
.cols.is-enter .col:nth-child(2) .card:nth-child(1) { animation-delay: .04s; }
.cols.is-enter .col:nth-child(3) .card:nth-child(1),
.cols.is-enter .col:nth-child(1) .card:nth-child(2) { animation-delay: .08s; }
.cols.is-enter .col:nth-child(1) .card:nth-child(3) { animation-delay: .12s; }
.cols.is-enter .col:nth-child(1) .card:nth-child(4) { animation-delay: .16s; }
/* 入场只动 transform，不动 opacity —— 万一动画被打断（无头截图、省电模式），
   卡片最多低 8px，不会变成一片空白 */
@keyframes plaza-in { from { transform: translateY(8px); } to { transform: none; } }

/* 媒体位：固定高（由列宽算出的 --media-h），图片裁切填充。
   高度固定 = 图片没加载完也不会跳版，且每张卡的头像区一样高。 */
.card-media {
  position: relative; flex: none;
  height: var(--media-h, 170px);
  background: var(--fill); overflow: hidden;
}
.skel { position: absolute; inset: 0; background: var(--fill); z-index: 1; }
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .7) 50%, transparent 100%);
  transform: translateX(-100%); animation: shimmer 1.15s linear infinite;
}
[data-theme="dark"] .skel::after {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .06) 50%, transparent 100%);
}
.card-media.is-ready .skel { opacity: 0; transition: opacity .2s var(--ease); }
@keyframes shimmer { to { transform: translateX(100%); } }
.card-media img, .card-media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .25s var(--ease), transform .5s var(--ease);
}
.card-media.is-ready img, .card-media.is-ready video { opacity: 1; }
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.03); }
.card-media video { pointer-events: none; }

/* 正文也是固定行数：标题 2 行、判断 3 行（不足用 min-height 撑住），
   于是每张卡的总高完全一样 */
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.kicker {
  display: flex; align-items: center; gap: 6px; flex: none;
  margin: 0 0 8px; font-size: 11px; font-weight: 500;
  color: var(--ink-3); letter-spacing: .01em; line-height: 1.2;
}
.kicker .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; flex: none; }
.card-title {
  margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em;
  min-height: 2.8em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-judgment {
  margin: 6px 0 0; font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--ink-2);
  min-height: 4.5em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* 没图的那条：正文居中撑满，别比旁边矮一截 */
.card.is-text { min-height: calc(var(--media-h, 170px) + 159px); }
.card.is-text .card-body { justify-content: center; }

/* 右下角圆钮：常态就显示（浅一点），悬停变实 + 微放大 */
.card-go {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  opacity: .45;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.card:hover .card-go, .card:focus-visible .card-go { opacity: 1; transform: scale(1.06); }
[data-theme="dark"] .card-go { background: #242428; border-color: #38383e; }

/* ---------------- 今日看点 ---------------- */
/* 高度和普通卡片严格对齐：媒体位 + 正文那一段（实测 body 157px + 上下边框 2px），
   所以并排时几张卡底边是齐的。改字号/行距要同步改这里的 159。 */
.summary {
  padding: 16px 16px 0; cursor: default;
  background: var(--fill); border-color: var(--line);
  height: calc(var(--media-h, 170px) + 159px);
}
.summary:hover { border-color: var(--line); transform: none; }
.summary:active { transform: none; }
.summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex: none; }
.summary-head h2 { font-size: 15px; font-weight: 500; letter-spacing: -.02em; margin: 0; }
.summary-head time { font-size: 13px; color: var(--ink-3); flex: none; }
.summary-text {
  margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink); flex: none;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}

/* 标签区吃掉摘要卡剩下的高度（卡片总高是锁死的），所以球池大小随文字长短自适应 */
.physics-stage {
  position: relative; flex: 1; min-height: 84px; margin: 18px 0 0;
  overflow: hidden; touch-action: pan-y;
}
.physics-stage.is-live { cursor: grab; }
.physics-stage.is-live:active { cursor: grabbing; }

.pill {
  position: absolute; top: 0; left: 0; opacity: 0; will-change: transform;
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 5px 12px; border-radius: 999px;
  background: var(--panel); border: 0;
  font-size: 11px; line-height: 1.3; color: var(--ink-2);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .07), 0 1px 3px rgba(0, 0, 0, .04);
  user-select: none; pointer-events: auto;
}
.pill:hover { color: var(--ink); }
[data-theme="dark"] .pill { background: #1f1f23; }

.tagline { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; }
.tag {
  font-size: 11px; line-height: 1.3; color: var(--ink-2);
  background: var(--panel); border-radius: 999px; padding: 5px 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}
[data-theme="dark"] .tag { background: #1f1f23; }

/* ---------------- 列表视图 ---------------- */
.plaza.is-list .list-wrap { width: 720px; max-width: 100%; margin: 0 auto; }
.list-summary { margin: 0 0 40px; }
.list-section { margin: 0; }
.list-head {
  display: flex; align-items: baseline; gap: 6px;
  margin: 40px 0 12px; padding: 0 2px 2px;
  font-size: 13px; font-weight: 500; letter-spacing: 0;
}
.list-summary + .list-section .list-head { margin-top: 0; }
.list-head span { font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px; margin-bottom: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s var(--ease), transform .1s var(--ease);
}
.row:hover { border-color: var(--line-hover); z-index: 20; }
.row:active { transform: scale(.995); }
.row-main { flex: 1; min-width: 0; }
.row-title {
  margin: 0; font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row-judgment {
  margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.row-media {
  position: relative; flex: none; width: 78px; height: 44px; border-radius: 5px;
}
.row-media > img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 5px; border: 1px solid var(--line); background: var(--fill);
  transition: transform .3s var(--ease);
}
.row:hover .row-media > img { transform: scale(1.04); }
.row-pop {
  position: absolute; right: 0; top: 50%;
  width: 248px; height: 140px; padding: 2px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-pop);
  opacity: 0; pointer-events: none; z-index: 50;
  transform-origin: 85% 50%;
  transform: translate(var(--pop-x, 0), calc(-50% + var(--pop-y, 0))) scale(.88) rotate(0deg);
  transition: opacity .24s cubic-bezier(.2, .9, .3, 1.15), transform .28s cubic-bezier(.2, .9, .3, 1.15);
}
.row-pop img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px; }
.row:hover .row-pop {
  opacity: 1;
  transform: translate(var(--pop-x, 0), calc(-50% + var(--pop-y, 0))) scale(1) rotate(var(--pop-rot, 0deg));
}
[data-theme="dark"] .row-pop { box-shadow: 0 24px 56px -8px rgba(0, 0, 0, .8), 0 8px 20px -4px rgba(0, 0, 0, .5); }

/* ---------------- 底部筛选条 ---------------- */
/* 放在白面板里做 absolute，left/right + margin:auto 就是「面板内的正中」，
   不需要再拿侧栏宽度去算偏移。 */
.filterbar {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  margin: 0 auto; width: max-content; max-width: calc(100% - 40px);
  height: var(--bar-h); padding: 4px;
  display: flex; align-items: center; gap: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .45), var(--shadow-bar);
  overflow-x: auto; scrollbar-width: none;
  z-index: 40;
}
.filterbar::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  height: 100%; padding: 0 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap;
  color: var(--ink-2);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.chip:hover { color: var(--ink); background: rgba(21, 22, 24, .06); }
.chip.is-on, .chip.is-on:hover { background: var(--ink); color: var(--panel); }
[data-theme="dark"] .chip:hover { background: rgba(255, 255, 255, .08); }
[data-theme="dark"] .chip.is-on { background: #f5f5f7; color: #141416; }
.filter-sep { width: 1px; height: 16px; background: var(--line); margin: 0 3px; flex: 0 0 auto; }
.chip-icon {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 100%; border-radius: 999px; color: var(--ink-3);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.chip-icon:hover { color: var(--ink); background: rgba(21, 22, 24, .06); }

/* 窗口窄、栏目一排放不下时这条会横向滚。搜索钮钉在右边，
   不然滚动会把唯一的功能入口滚出去，用户就找不着了。 */
.filterbar .chip-icon,
.filterbar .searchbox { position: sticky; right: 0; z-index: 1; background: var(--panel); }

.filterbar.is-searching .chip,
.filterbar.is-searching .filter-sep { display: none; }
.searchbox {
  display: flex; align-items: center; gap: 8px;
  padding: 0 4px 0 12px; height: 100%; width: min(520px, 62vw);
}
.searchbox[hidden] { display: none; }
.searchbox .search-ico { display: inline-flex; color: var(--ink-3); flex: none; }
.searchbox input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 13px; color: var(--ink); padding: 0;
}
.searchbox input::placeholder { color: var(--ink-3); }
.searchbox input::-webkit-search-cancel-button { display: none; }
.search-clear {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; color: var(--ink-3);
}
.search-clear:hover { background: var(--hover); color: var(--ink); }

/* 当天没内容的栏目：留着但淡一点 */
.chip.is-empty { color: var(--ink-3); opacity: .5; }
.chip.is-empty:hover { opacity: .8; color: var(--ink-2); }
.chip.is-empty.is-on { opacity: 1; }

/* ---------------- 空态 ---------------- */
.empty-cat { max-width: 420px; margin: 72px auto 88px; text-align: center; }
.ec-mark {
  margin: 0 0 10px; font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.ec-title { margin: 0 0 8px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.ec-sub { margin: 0 0 20px; font-size: 13px; line-height: 1.75; color: var(--ink-3); }
.ec-btn {
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
  height: 36px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2);
  transition: border-color .15s, color .15s;
}
.ec-btn:hover { border-color: var(--line-strong); color: var(--ink); }

.search-rows .row:first-child { margin-top: 12px; }
.search-empty { font-size: 13px; color: var(--ink-3); padding: 32px 4px; text-align: center; }

.demo-note {
  font-size: 11px; color: var(--ink-3); text-align: center;
  padding: 28px 0 8px; letter-spacing: .01em;
}

/* 稀疏日：栏目不满也照旧铺满宽度，卡片尺寸和别处完全一致 */

/* ---------------- 移动端 ---------------- */
.mobile-bar { display: none; }
.scrim { display: none; }

/* 手机版：对标站只在 width<=649px 才收起侧栏（.site-sidebar{display:none}），
   650～1024 之间侧栏照常显示、栏数由 JS 按容器宽算 —— 这里跟着对齐。 */
@media (max-width: 649px) {
  :root { --side-w: 0px; }
  body { background: var(--panel); }
  .scrim {
    display: block; position: fixed; inset: 0; z-index: 110;
    background: rgba(0, 0, 0, .28);
    backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px);
  }
  .scrim[hidden] { display: none; }
  .shell {
    display: flex; flex-direction: column; gap: 0;
    padding: calc(var(--top-h) + env(safe-area-inset-top, 0px)) 0 0;
    background: var(--panel);
  }
  .mobile-bar {
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: calc(var(--top-h) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 12px 0 16px;
    background: var(--panel);
  }
  .mobile-bar .wordmark { font-size: 26px; margin: 0; letter-spacing: -.03em; }
  .drawer-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--panel); color: var(--ink);
    transition: border-color .15s var(--ease);
  }
  .drawer-btn:hover { border-color: var(--line-strong); }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 120;
    width: min(320px, 86vw); height: 100dvh;
    padding: 22px 18px 18px 20px;
    background: var(--panel);
    border-radius: 0 16px 16px 0;
    box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, .18);
    overflow: hidden;
    transform: translateX(-102%);
    transition: transform .28s var(--ease);
  }
  .sidebar.is-open { transform: none; }
  .sidebar-foot { display: flex; }
  .main { border-radius: 0; flex: 1; }
  .pane { padding: 0 14px 100px; }
  .plaza-fade { height: 150px; border-radius: 0; }
  .filterbar {
    left: 12px; right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100% - 24px);
  }
  .row-pop { display: none; }
  .searchbox { width: min(460px, 66vw); }
  .list-head { margin-top: 32px; }
  .plaza.is-list .list-wrap { width: 100%; }
}

@media (max-width: 649px) {
  .cols { grid-template-columns: 1fr; }
  .row-media, .row-media > img { width: 64px; height: 36px; }
  .row { gap: 16px; padding: 16px; }
  .list-summary { margin-bottom: 32px; }
  .filterbar { padding: 4px; }
  .filterbar .chip { padding: 0 12px; }
  .filterbar.is-searching { padding: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
