/* E · 深色信息展示版 */
:root {
  --bg: #0f1012;
  --card: #18191c;
  --card-hover: #1d1e22;
  --line: rgba(255, 255, 255, 0.07);
  --ink: #f1eee8;
  --text: #d9d6cf;
  --muted: #8c8a85;
  --hong: #f0716a;   --hong-bg: rgba(240, 113, 106, 0.13);
  --qing: #6fcf9f;   --qing-bg: rgba(111, 207, 159, 0.12);
  --tag-bg: rgba(255, 255, 255, 0.07);
  --gold: #d8b977;
  --serif: 'Noto Serif SC', 'Songti SC', serif;
  --sans: -apple-system, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; background: radial-gradient(1200px 520px at 50% -160px, rgba(216, 185, 119, 0.10), transparent 70%), var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* 顶部 */
.top { padding: 72px 0 32px; }
.top h1 { font-family: var(--serif); font-weight: 700; font-size: 40px; color: var(--ink); letter-spacing: 0.04em; }
.top { padding-bottom: 36px; }
.top p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* 筛选 */
.filters { display: grid; gap: 10px; margin-bottom: 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tabs .label { width: 44px; color: var(--muted); font-size: 14px; }
.tabs em { font-style: normal; font-size: 12px; margin-left: 6px; opacity: 0.6; }
.tabs button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; }
.tabs button:disabled { opacity: 0.35; cursor: default; }
.tabs button .dots i { width: 5px; height: 5px; }
.tabs button.on .dots i { background: rgba(15, 16, 18, 0.22); }
.tabs button.on .dots i.on { background: var(--bg); }
.empty { color: var(--muted); padding: 40px 0 80px; text-align: center; }
.tabs button { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 6px 16px; border-radius: 999px; font-size: 14.5px; transition: all 160ms ease; }
.tabs button.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tabs button:not(.on):not(:disabled):hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.2); }

/* 列表 */
.list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 72px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.card:hover { background: var(--card-hover); border-color: rgba(216, 185, 119, 0.35); transform: translateY(-2px); }
.card[hidden] { display: none; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card h2 { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ink); }
.card .surface { font-size: 15.5px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }

/* 标签 */
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag { font-size: 12.5px; line-height: 1; padding: 5px 8px; border-radius: 6px; background: var(--tag-bg); color: #b9b6b0; white-space: nowrap; }
.tag.hong { background: var(--hong-bg); color: var(--hong); }
.tag.qing { background: var(--qing-bg); color: var(--qing); }
.dots { display: inline-flex; gap: 3px; align-items: center; margin-left: 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: inline-block; }
.dots i.on { background: var(--gold); }

/* 详情 */
.detail { max-width: 720px; margin: 0 auto; padding: 36px 24px 88px; }
.back { display: inline-block; font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.back:hover { color: var(--ink); }
.detail h1 { font-family: var(--serif); font-weight: 700; font-size: 34px; color: var(--ink); letter-spacing: 0.02em; }
.detail .tags { margin-top: 14px; }
.block { margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px 22px; }
.block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.block-head h2 { font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: 0.14em; }
.actions { display: flex; gap: 6px; }
.act { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 8px; padding: 5px 10px; font-size: 13px; transition: all 160ms ease; }
.act:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.22); }
.act svg { width: 14px; height: 14px; }
.text { font-size: 18px; line-height: 1.95; color: var(--ink); text-wrap: pretty; }
.text p + p { margin-top: 0.8em; }
.note { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.reveal { width: 100%; border: 1px dashed rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.02); border-radius: 12px; padding: 30px 20px; color: var(--muted); font-size: 14.5px; transition: all 160ms ease; }
.reveal:hover { border-color: var(--gold); color: var(--text); }
.reveal b { display: block; color: var(--ink); font-size: 17px; font-weight: 600; margin-bottom: 4px; }
[hidden] { display: none !important; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; font-size: 14px; color: var(--muted); }
.pager a:hover b { color: var(--gold); }
.pager b { display: block; color: var(--ink); font-family: var(--serif); font-size: 18px; transition: color 160ms ease; }
.pager a:last-child { text-align: right; }
.foot { text-align: center; color: #5f5e5a; font-size: 13px; padding: 0 0 40px; }

/* 提示 */
.toast { position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 12px); background: var(--ink); color: var(--bg); padding: 9px 18px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 200ms ease; z-index: 30; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 手机上存图：弹出图片，长按保存 */
.sheet { position: fixed; inset: 0; background: rgba(8, 8, 9, 0.94); display: grid; place-items: center; padding: 24px; z-index: 20; }
.sheet figure { margin: 0; max-width: 420px; width: 100%; text-align: center; }
.sheet img { width: 100%; border-radius: 12px; display: block; }
.sheet figcaption { margin-top: 14px; color: #cfccc5; font-size: 14px; }
.sheet button { margin-top: 14px; border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: var(--text); font-size: 14px; border-radius: 999px; padding: 6px 22px; }

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top { padding: 44px 0 22px; }
  .top h1 { font-size: 32px; }
  .list { grid-template-columns: 1fr; gap: 12px; }
  .filters { gap: 8px; }
  .tabs { gap: 5px; }
  .tabs .label { width: 34px; font-size: 13.5px; }
  .tabs button { padding: 4px 11px; min-height: 32px; font-size: 14px; }
  .tabs button .dots { gap: 2px; }
  .card { padding: 18px 18px 20px; }
  .detail { padding: 24px 16px 64px; }
  .detail h1 { font-size: 28px; }
  .block { padding: 20px 18px 18px; }
  .text { font-size: 17px; }
}
