/* ── CSS 变量 · 单一来源 ──────────────────────────────
   COM-058：原有 4 个 :root（绿 / 琥珀 / 单色 / 绿调改版）层层覆盖，
   在此收敛为唯一变量来源。主色为品牌金（#fbbf24，与现役品牌图同源），
   非颜色 token（radius / shadow / max-width / font）取原先层叠后的生效值。
─────────────────────────────────────────────────── */
:root {
  /* 品牌金主色 */
  --accent:      #fbbf24;
  --accent-dark: #d97706;
  --accent-glow: rgba(251,191,36,.18);
  --hot:         #fde68a;
  --hot-bg:      rgba(251,191,36,.14);
  --on-accent:   #11100e;

  --brand-gold:       #fbbf24;
  --brand-gold-light: #fde68a;
  --brand-gold-deep:  #b45309;
  --brand-metal:  linear-gradient(135deg,#fff3b0 0%,#fbbf24 36%,#d97706 68%,#92400e 100%);

  /* 表面与文字 */
  --bg:          #11100e;
  --bg-card:     #1a1713;
  --bg-header:   #15120f;
  --bg-hover:    #211d18;
  --border:      #332c23;
  --text:        #f5efe6;
  --text-muted:  #b9aa96;
  --text-light:  #8f8272;
  --tag-bg:      #241f19;
  --tag-text:    #e0c9a6;

  /* COM-111：二级面板 / 移动端一级菜单卡片 / H5 tab 的浅色表面。
     设计稿实测 #615d55，此处由既有 token 派生（32% 文字色混入卡片底，
     算出来正是 #615d55），theme.js 换主题时会跟着 --text/--bg-card 一起变。 */
  --menu-surface:       color-mix(in srgb, var(--text) 32%, var(--bg-card));
  --menu-surface-hover: color-mix(in srgb, var(--text) 44%, var(--bg-card));

  /* 语义色：非品牌主色，保留原语义（广告标记 / 评分星） */
  --label-warn:  #fbbf24;
  --rating-star: #fde68a;

  /* 非颜色 token（沿用层叠后生效值） */
  --radius:      8px;
  --radius-sm:   5px;
  --shadow:      none;
  --shadow-card: none;
  --max-width:   1120px;
  --font:        "Noto Serif SC", "Songti SC", "STSong", "PingFang SC", "Microsoft YaHei", serif;
  --content-loading-placeholder: url("../brand/placeholders/GenericContentPlaceholder_1024x1024.png?v=2774774c");
}

/* 文本选中态：原文件无 ::selection，浏览器回退到默认高亮 */
::selection      { background: var(--accent); color: var(--on-accent); }
::-moz-selection { background: var(--accent); color: var(--on-accent); }

/* ── 18+ 入口门禁 ─────────────────────────────────── */
html.is-age-gate-pending,
html.is-age-gate-pending body { overflow: hidden; }
.age-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  place-items: center;
  overflow-y: auto;
  padding: 24px 18px;
  background: rgba(0, 0, 0, .48);
}
html.is-age-gate-pending .age-gate { display: grid; }
.age-gate[hidden] { display: none; }
.age-gate-card {
  width: min(100%, 460px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px 28px;
  border: 1px solid #454545;
  border-radius: 24px;
  background: #252525;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
  text-align: center;
}
.age-gate-warning { width: 72px; margin: 0 auto; }
.age-gate-warning svg { display: block; width: 100%; height: auto; }
.age-gate-card h1 { margin-top: 18px; color: var(--accent); font-size: 24px; line-height: 1.35; }
.age-gate-card p { margin: 18px auto 0; color: var(--text); font-size: 15px; line-height: 1.65; }
.age-gate-actions { display: grid; gap: 12px; margin-top: 24px; }
.age-gate-actions button {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: #363636;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
}
.age-gate-actions #age-gate-enter { background: var(--accent); color: var(--on-accent); }
.age-gate-actions button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) {
  .age-gate-card { padding: 26px 20px; border-radius: 20px; }
  .age-gate-warning { width: 64px; }
  .age-gate-card h1 { margin-top: 16px; font-size: 22px; }
  .age-gate-card p { margin-top: 16px; font-size: 14px; }
  .age-gate-actions { margin-top: 20px; }
  .age-gate-actions button { min-height: 50px; font-size: 15px; }
}

/* ── Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px; /* 给底部导航留空间 */
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── Container ───────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 12px; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }

/* ═══════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════ */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  height: 68px;
  gap: 12px;
}

/* Brand */
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo img { display:block; width:130px; height:40px; object-fit:contain; object-position:left center; }
.logo picture { display: block; }
.header-brand { display: flex; min-width: 0; align-items: center; gap: 10px; flex-shrink: 0; }
/* 图标与标语合成一张 SVG（260x80），按高度定尺寸，宽度随比例走，
   否则窄屏上等比缩下去会把整行压得很矮。 */
.header-brand-lockup { display: block; width: auto; height: 44px; flex: 0 0 auto; }
.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.3px;
}
.logo-slogan {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
  white-space: nowrap;
}

/* 搜索框 - 居中于 logo 与右侧 icon 组之间 */
.header-search {
  flex: 1 1 auto;
  max-width: 360px;
  position: relative;
  margin: 0 auto;
}
.header-search-input {
  width: 100%;
  height: 34px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0 36px 0 12px;
  border-radius: 17px;
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
  font-family: var(--font);
}
.header-search-input::placeholder { color: var(--text-light); }
.header-search-input:focus { border-color: var(--accent); }
.header-search-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); display: flex; align-items: center;
  padding: 0;
}
.header-search-btn svg,
.header-search-btn img { margin: 0; width: 18px; height: 18px; object-fit: contain; }

/* 移动端搜索按钮（仅小屏显示） */
.search-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: none; justify-content: center; align-items: center;
  transition: all .2s; flex-shrink: 0;
}
.search-btn svg,
.search-btn img { margin: 0; width: 18px; height: 18px; object-fit: contain; }
.search-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════════════════
   分类导航
═══════════════════════════════════════════════════ */
.category-nav {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 68px;
  z-index: 190;
}
.category-nav .container {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 12px;
  height: 46px;
  align-items: center;
}
.category-nav .container::-webkit-scrollbar { display: none; }
.cat-link {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all .2s;
  border: 1px solid transparent;
  flex-shrink: 0;
}
.cat-link:hover { color: var(--text); background: var(--bg-hover); }
.cat-link.active {
  color: var(--th-active-text, #fff);
  background: var(--th-active, var(--accent));
  border-color: var(--th-active, var(--accent));
}

/* ═══════════════════════════════════════════════════
   顶部横幅广告
═══════════════════════════════════════════════════ */
.global-top-ad { margin: 12px 0; }
.ad-banner-wrapper { width: 100%; margin: 12px 0; grid-column: 1 / -1; }
.ad-carousel {
  width: 100%; max-width: 950px; aspect-ratio: 950/110; margin: 0 auto;
  border-radius: 8px; overflow: hidden;
  position: relative; background: var(--bg-hover);
  border: 1px solid var(--border);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.ad-track {
  display: flex;
  width: 100%; height: 100%;
  transition: transform .45s cubic-bezier(.2,.85,.25,1);
  will-change: transform;
}
.ad-track.dragging,
.ad-track.no-anim { transition: none; }
.ad-slide { flex: 0 0 100%; width: 100%; height: 100%; min-width: 100%; }
.ad-banner {
  width: 100%; max-width: 950px; aspect-ratio: 950/110; margin: 0 auto;
  border-radius: 8px; overflow: hidden;
  position: relative; border: 1px solid var(--border);
}
.ad-banner:hover { opacity: 0.92; }
.ad-carousel-dots { display: flex; gap: 5px; justify-content: center; margin-top: 6px; }
.ad-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--border); cursor: pointer; }
.ad-dot.active { background: var(--accent); }
.ad-link-img { display: block; width: 100%; height: 100%; }
.ad-img-bg { width: 100%; height: 100%; object-fit: cover; }
.ad-badge-minimal {
  position: absolute; top: 5px; right: 5px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  color: #fff; font-size: 9px; font-weight: 600;
  padding: 2px 5px; border-radius: 3px;
  border: 1px solid rgba(255,255,255,.1);
}

/* ═══════════════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════════════ */
.site-main { padding: 0 0 20px; }
.layout-main { max-width: var(--max-width); }

/* 排序栏 */
.sort-bar {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.sort-btn {
  padding: 5px 14px; border-radius: 20px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); background: var(--bg-card);
  border: 1px solid var(--border); transition: all .2s;
}
.sort-btn:hover { color: var(--text); border-color: var(--text-muted); }
.sort-btn.active {
  color: var(--th-active-text, #fff); background: var(--th-active, var(--accent));
  border-color: var(--th-active, var(--accent));
}
.total-count { margin-left: auto; font-size: 12px; color: var(--text-light); }

/* ═══════════════════════════════════════════════════
   卡片列表 - 单列宽封面
═══════════════════════════════════════════════════ */
.post-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 940px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════
   CARD
═══════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  overflow: hidden;
  position: relative;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
  transform: translateY(-2px);
}
.card-link { display: flex; flex-direction: column; }

/* 封面图 (较扁平的比例: 16/9 → 2/1，适合横版缩略) */
.card-img-wrap {
  position: relative; width: 100%;
  aspect-ratio: 2 / 1;
  background: var(--bg-hover);
  overflow: hidden;
}
.card-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.card:hover .card-img { transform: scale(1.04); }
.card-img-placeholder { width: 100%; height: 100%; background: var(--bg-hover); object-fit:cover; }

/* 分类角标 */
.card-badge {
  position: absolute; top: 7px; left: 7px;
  background: var(--accent);
  color: #fff; font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 4px;
  letter-spacing: 0.2px;
}

/* HOT 角标 */
.card-hot {
  position: absolute; top: 7px; right: 7px;
  background: var(--hot);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  letter-spacing: 0.5px;
  animation: hotPulse 2s ease-in-out infinite;
}
@keyframes hotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .75; }
}

/* 播放遮罩 */
.card-play-icon {
  position: absolute; bottom: 8px; right: 8px;
  width: 28px; height: 28px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.card-play-icon svg { margin: 0; width: 12px; height: 12px; color: #fff; margin-left: 2px; }

/* 卡片内容区 */
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.card-title {
  font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card-title { color: #fff; }

/* 标签 */
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.card-tag {
  font-size: 11px; color: var(--accent);
  background: var(--accent-glow);
  padding: 1px 6px; border-radius: 3px;
}

/* 底部 meta */
.card-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--text-light);
}
.card-meta-item { display: flex; align-items: center; gap: 3px; }
.card-meta-item svg { margin: 0; width: 11px; height: 11px; flex-shrink: 0; }
.card-date { margin-left: auto; }
.card-views { color: var(--text-muted); }
.card-likes { color: var(--text-muted); }
.card-comments { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════
   列表广告插入（与普通卡片并排同尺寸）
═══════════════════════════════════════════════════ */
.ad-card { opacity: .95; }
.ad-card:hover { opacity: 1; }
.ad-mark {
  background: rgba(251,191,36,.15) !important;
  color: var(--accent) !important;
  font-size: 9px !important;
}
.ad-placeholder-inner {
  display: flex; align-items: center; justify-content: center; height: 60px;
  background: var(--bg-hover); border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.ad-slot-label {
  font-size: 12px; color: var(--text-light);
  padding: 5px 12px; border-radius: 4px;
  border: 1px dashed var(--border);
}
.ad-placeholder { height: 70px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-hover); border-radius: 8px; border: 1px dashed var(--border); }
.ad-placeholder-text { color: var(--text-light); font-size: 12px; }
.ad-card-secondary { }
/* 手机端单列布局下隐藏第二条插入广告，避免两条广告竖向堆叠 */
@media (max-width: 640px) { .ad-card-secondary { display: none; } }

/* 广告角标（合规 + 信任）——右上浮层，不拦截点击 */
.ad-card { position: relative; }
.ad-card::before {
  content: "广告";
  position: absolute; top: 6px; right: 6px; z-index: 2;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 10px; padding: 2px 6px; border-radius: 3px;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   POST DETAIL
═══════════════════════════════════════════════════ */
.post-detail { max-width: 820px; margin: 28px auto 0; }
.post-header { margin-bottom: 24px; }
.post-title { font-size: 22px; font-weight: 800; line-height: 1.4; margin-bottom: 14px; letter-spacing: -0.3px; }
.post-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; }
.post-meta span { display: flex; align-items: center; gap: 4px; }
.post-meta svg { margin: 0; width: 13px; height: 13px; }

.post-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 16px; }
.tag {
  font-size: 12px; color: var(--accent);
  background: var(--accent-glow); padding: 4px 12px;
  border-radius: 20px; border: 1px solid rgba(251,191,36,.25);
  transition: background .2s;
}
.tag:hover { background: var(--accent-glow); }


/* 文章页上下横幅广告（尺寸与列表页顶部轮播一致：80px 高）*/
.article-banner { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.article-banner-item {
  display: block; width: 100%; max-width: 950px; aspect-ratio: 950/110; margin: 0 auto;
  border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-hover);
  transition: opacity .2s;
}
.article-banner-item:hover { opacity: .92; }
.article-banner-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-banner-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 13px;
}

.post-content { font-size: 15px; line-height: 1.85; color: #dddde8; word-break: break-word; }
.post-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 20px 0; border: 1px solid var(--border); }
.post-content p { margin-bottom: 16px; }
.post-content h2 { font-size: 18px; font-weight: 700; margin: 32px 0 16px; color: #fff; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.post-content video,
.post-content iframe {
  width: 100%; max-width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm); margin: 20px 0;
  border: 1px solid var(--border); display: block; background: #000;
}

/* ═══════════════════════════════════════════════════
   相关推荐（图标方块）
═══════════════════════════════════════════════════ */
.related-posts { margin: 48px auto 0; max-width: 820px; border-top: 1px solid var(--border); padding-top: 32px; }
.related-title { font-size: 14px; font-weight: 700; margin-bottom: 18px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.icon-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.related-icon-item { display: flex; flex-direction: column; align-items: center; width: 76px; gap: 8px; }
.squircle-icon {
  width: 76px; height: 76px; border-radius: 20%;
  overflow: hidden; background: var(--bg-card);
  border: 1px solid var(--border); transition: transform .2s;
  display: flex; align-items: center; justify-content: center;
}
.related-icon-item:hover .squircle-icon { transform: scale(1.06); border-color: var(--accent); }
.squircle-icon img { width: 100%; height: 100%; object-fit: cover; }
.squircle-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a1e, #2a2a2e); color: var(--text-light);
}
.related-icon-title {
  font-size: 11px; line-height: 1.3; color: var(--text-muted);
  text-align: center; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; width: 100%;
}
.related-icon-item:hover .related-icon-title { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   评论
═══════════════════════════════════════════════════ */
.comments-section { margin: 36px auto 0; border-top: 1px solid var(--border); padding-top: 32px; max-width: 820px; }
.post-author{display:inline-flex;align-items:center;gap:7px}.post-author img,.comment-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover}.post-pinned{padding:3px 8px;border-radius:999px;background:var(--accent-glow);color:var(--accent);font-size:12px;font-weight:700}.community-panel{margin:30px auto 0;max-width:820px;border-top:1px solid var(--border);padding-top:28px}.community-auth,.community-user,.community-comment-form{border:1px solid var(--border);border-radius:12px;padding:16px;background:var(--surface)}.community-fields{display:grid;grid-template-columns:1fr 1fr auto auto;gap:8px;margin-top:12px}.community-fields input,.community-comment-form textarea{border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);padding:10px;font:inherit}.community-fields button,.community-comment-form button,.community-user button{border:0;border-radius:8px;background:var(--accent);color:var(--on-accent);padding:9px 14px;font:inherit;font-weight:700;cursor:pointer}.community-fields .secondary,.community-user .secondary{background:transparent;color:var(--text);border:1px solid var(--border)}.community-user{display:flex;align-items:center;gap:10px}.community-user>img{width:38px;height:38px;border-radius:50%;object-fit:cover}.community-user>div{flex:1}.community-user strong{display:block}.link-button{display:block!important;background:none!important;color:var(--accent)!important;padding:3px 0!important}.community-avatar{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:var(--accent);color:var(--on-accent);font-weight:800}.community-comment-form{margin-top:12px}.community-comment-form textarea{width:100%;min-height:90px;resize:vertical}.community-comment-form>div{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;color:var(--text-muted);font-size:12px}.community-message{margin-top:8px;color:var(--accent);font-size:13px}.comment-header{display:flex;align-items:center;gap:8px}
.community-article-actions{display:flex;gap:10px;margin:12px 0}.community-article-actions button,.community-like-button{border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text-muted);padding:8px 13px;cursor:pointer}.community-article-actions button.active,.community-like-button.active{border-color:var(--accent);color:var(--accent);background:var(--accent-glow)}.community-like-button{margin-top:10px;padding:5px 10px;font-size:12px}.community-account-detail{margin:10px 0;padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.community-profile-form{display:grid;gap:12px}.community-profile-form label{display:grid;gap:5px;color:var(--text-muted);font-size:12px}.community-profile-form input{width:100%;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);padding:10px;font:inherit}.community-profile-form>div,.community-favorites>div{display:flex;justify-content:space-between;gap:8px}.community-profile-form button,.community-favorites button{border:0;border-radius:8px;background:var(--accent);color:var(--on-accent);padding:8px 13px;cursor:pointer}.community-profile-form .secondary,.community-favorites .secondary{background:transparent;color:var(--text);border:1px solid var(--border)}.community-favorites{display:grid;gap:10px}.community-favorites>a{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--border);color:var(--accent)}.community-favorites>a img{width:64px;height:48px;object-fit:cover;border-radius:7px;background:var(--bg)}.community-favorites>a span{min-width:0;display:grid;gap:3px}.community-favorites>a strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.community-favorites>a small{color:var(--text-muted);font-size:11px}
.card-cover-missing{display:grid;place-items:center;overflow:hidden;background:var(--surface);color:var(--text-muted);border:1px dashed var(--border);font-size:13px}.card-cover-missing{width:100%;aspect-ratio:16/9}.card-cover-missing img{grid-area:1/1;width:100%;height:100%;object-fit:cover;opacity:.72}.card-cover-missing span{grid-area:1/1;z-index:1;padding:5px 10px;border-radius:999px;background:rgba(0,0,0,.7);color:#fff}.post-related-thumb--empty{display:grid;place-items:center;color:var(--text-muted);font-size:10px;text-align:center}.post-related-thumb--empty img,.post-related-thumb--empty span{grid-area:1/1}.post-related-thumb--empty img{opacity:.72}.post-related-thumb--empty span{z-index:1;padding:2px 5px;border-radius:999px;background:rgba(0,0,0,.72);color:#fff}.brand-sticky-badge{display:inline-block;width:60px;height:24px;object-fit:contain}.brand-heading-icon,.brand-action-icon{display:inline-block;width:18px;height:18px;margin:0;object-fit:contain;vertical-align:middle}.comments-title{display:inline-flex;align-items:center;gap:6px}.community-article-actions button{display:inline-flex;align-items:center;gap:5px}
@media(max-width:700px){.community-fields{grid-template-columns:1fr}.community-fields button{width:100%}.community-user{align-items:stretch;flex-wrap:wrap}.community-user>div{min-width:calc(100% - 56px)}.community-user>button{flex:1}.community-article-actions{display:grid;grid-template-columns:1fr 1fr}.community-article-actions button{min-height:44px}}
.community-guest{margin-bottom:12px;border:1px solid var(--border);border-radius:12px;padding:16px;background:var(--surface)}.community-guest-form{margin-top:10px;padding:0;border:0;background:transparent}.community-guest-form label{display:grid;gap:6px;color:var(--text-muted);font-size:12px}.community-guest-form input{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--border);border-radius:8px;background:var(--bg);color:var(--text);padding:10px;font:inherit}.community-article-actions button[disabled]{cursor:wait;opacity:.68}.community-message{min-height:1.4em;overflow-wrap:anywhere}@media(max-width:700px){.community-guest,.community-auth,.community-comment-form{max-width:100%;min-width:0}.community-comment-form>div{align-items:flex-start;flex-wrap:wrap}.community-comment-form button{max-width:100%}}
.comments-title { font-size: 16px; font-weight: 700; margin-bottom: 20px; }

/* 评论输入框 */
.comment-form {
  position: relative;
  margin: 0 0 24px;
  padding: 14px 14px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.comment-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(231,76,60,.12);
}
.comment-form-privacy {
  display: flex; align-items: center; gap: 6px;
  margin: -4px -4px 10px;
  padding: 7px 10px;
  font-size: 12px; line-height: 1.4;
  color: var(--accent);
  background: rgba(231,76,60,.08);
  border: 1px dashed rgba(231,76,60,.32);
  border-radius: 8px;
}
.comment-form-privacy svg { flex: 0 0 auto; opacity: .85; }
.comment-form-name {
  display: block; width: 100%;
  padding: 8px 10px; margin: 0 0 10px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px; outline: 0;
  font: inherit; font-size: 13.5px;
  color: var(--text);
  font-family: var(--font);
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.comment-form-name::placeholder { color: var(--text-light); }
.comment-form-name:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(231,76,60,.12);
  background: var(--bg-hover);
  color: var(--text);
}
/* 覆盖浏览器 autofill 默认的白底黑字 */
.comment-form-name:-webkit-autofill,
.comment-form-name:-webkit-autofill:focus,
.comment-form-name:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-hover) inset !important;
  box-shadow: 0 0 0 1000px var(--bg-hover) inset !important;
  caret-color: var(--text);
  transition: background-color 99999s ease;
}
.comment-form-input {
  display: block; width: 100%;
  min-height: 72px; resize: vertical;
  padding: 4px 2px; margin: 0;
  background: transparent; border: 0; outline: 0;
  font: inherit; font-size: 14px; line-height: 1.6;
  color: var(--text);
  font-family: var(--font);
}
.comment-form-input::placeholder { color: var(--text-light); }
.comment-form-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed var(--border);
  gap: 12px;
}
.comment-form-hint { font-size: 12px; color: var(--text-light); }
.comment-form-submit {
  padding: 7px 18px; font-size: 13px; font-weight: 600;
  color: #fff; background: var(--accent);
  border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .2s ease, transform .1s ease, opacity .2s ease, box-shadow .2s ease;
  font-family: var(--font);
}
.comment-form-submit:hover:not(:disabled) {
  background: var(--accent-dark);
  box-shadow: 0 2px 8px rgba(231,76,60,.28);
}
.comment-form-submit:active:not(:disabled) { transform: translateY(1px); }
.comment-form-submit:disabled { opacity: .4; cursor: not-allowed; }
.comment-form-toast {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; padding: 8px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--accent);
  background: rgba(231,76,60,.10);
  border: 1px solid rgba(231,76,60,.28);
  border-radius: 999px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .28s ease, transform .28s ease;
}
.comment-form-toast.show { opacity: 1; transform: translateY(0); }
.comment-form-toast[hidden] { display: none; }

.comment-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12px; flex-wrap: wrap; }
.comment-user { color: var(--accent); font-weight: 600; }
.comment-reply-to {
  color: var(--text-light); font-size: 11px;
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 1px 8px; border-radius: 10px;
}
.comment-reply-to em { font-style: normal; color: var(--accent); font-weight: 600; }
.comment-time { color: var(--text-light); margin-left: auto; }
.comment-likes { color: var(--text-muted); cursor: pointer; display: flex; align-items: center; gap: 3px; }
.comment-body { font-size: 14px; line-height: 1.6; color: var(--text-muted); padding-left: 20px; word-break: break-word; }
.comment-collapsed { display: none !important; }
/* 嵌套回复：左侧细线 + 缩进 + 浅底色，最多到第 3 级 */
.comment-reply {
  position: relative;
  border-bottom: none;
  border-left: 2px solid var(--border);
  background: linear-gradient(90deg, var(--accent-glow, rgba(231,76,60,0.04)) 0%, transparent 60%);
  padding: 12px 12px 12px 14px;
  margin-top: 4px;
  border-radius: 0 8px 8px 0;
}
.comment-reply.depth-1 { border-left-color: var(--accent); }
.comment-reply.depth-2 { border-left-color: rgba(255,35,118,0.6); }
.comment-reply.depth-3 { border-left-color: var(--text-light); }
.comment-reply .comment-body { padding-left: 0; font-size: 13.5px; }
@media (max-width: 640px) {
  /* 移动端缩进减半，避免内容挤压 */
  .comment-item.depth-1 { margin-left: 14px !important; }
  .comment-item.depth-2 { margin-left: 28px !important; }
  .comment-item.depth-3 { margin-left: 42px !important; }
}
.comments-expand-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px 20px; margin-top: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-muted);
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .2s; font-family: var(--font);
}
.comments-expand-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.comments-expand-btn .expand-arrow { transition: transform .3s; }
.comments-expand-btn:hover .expand-arrow { transform: translateY(2px); }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.site-footer {
  margin-top: 60px; padding: 32px 0 20px;
  border-top: 1px solid var(--border); background: var(--bg-header);
}
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; font-weight: 500; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { text-align: center; font-size: 11px; color: var(--text-light); }

/* ═══════════════════════════════════════════════════
   手机底部导航栏
═══════════════════════════════════════════════════ */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 56px; background: var(--bg-header);
  border-top: 1px solid var(--border);
  z-index: 300;
  padding: 0 8px;
}
.mobile-nav-inner {
  max-width: 480px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-around;
  height: 100%;
}
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px;
  color: var(--text-muted, #636370);
  font-size: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  flex: 1;
  position: relative;
  background: transparent;
}
.mobile-nav-item svg {
  width: 20px; height: 20px; margin: 0;
  transition: transform .22s cubic-bezier(.4,0,.2,1);
}
.mobile-nav-item span {
  font-weight: 500;
  transition: font-weight .15s;
}
.mobile-nav-item:hover { color: var(--text-dim, #9a9aa8); }
.mobile-nav-item:active { transform: scale(.92); }

/* ACTIVE: 绿色文字 + 图标上浮 + 底部绿点指示 */
.mobile-nav-item.active {
  color: var(--accent);
}
.mobile-nav-item.active svg {
  transform: translateY(-2px) scale(1.1);
  filter: drop-shadow(0 2px 6px rgba(231,76,60,.35));
}
.mobile-nav-item.active span {
  font-weight: 700;
}
.mobile-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(231,76,60,.6);
}

/* ═══════════════════════════════════════════════════
   分页
═══════════════════════════════════════════════════ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-top: 32px; padding: 14px 0;
}
.page-btn {
  padding: 6px 18px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; color: var(--text-muted); transition: all .2s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 5px;
  font-size: 13px; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 5px;
  background: var(--bg-card); transition: all .2s;
}
.page-num:hover { border-color: var(--accent); color: var(--accent); }
.page-num.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.page-dots { color: var(--text-muted); font-size: 14px; padding: 0 2px; }

/* ═══════════════════════════════════════════════════
   页面标题
═══════════════════════════════════════════════════ */
.page-heading { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.page-title { font-size: 18px; font-weight: 700; }
.page-title::before {
  content: '';
  display: inline-block; width: 3px; height: 18px;
  background: var(--accent); border-radius: 2px;
  margin-right: 8px; vertical-align: middle;
}
.page-count { font-size: 12px; color: var(--text-light); }
.page-h1 { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════
   搜索页
═══════════════════════════════════════════════════ */
.search-bar { border-top: 1px solid var(--border); background: var(--bg); padding: 10px 0; }
.search-bar .header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 12px; display: flex; align-items: center; gap: 8px; }
.search-input {
  flex: 1; background: var(--bg-hover); border: 1px solid var(--border);
  color: var(--text); padding: 8px 14px; border-radius: 8px;
  font-size: 14px; outline: none; transition: border-color .2s; font-family: var(--font);
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-light); }
.search-submit {
  background: var(--accent); color: var(--on-accent); border: none;
  padding: 8px 18px; border-radius: 8px; cursor: pointer;
  font-weight: 600; font-size: 13px; transition: background .2s;
  font-family: var(--font); flex-shrink: 0;
}
.search-submit:hover { background: var(--accent-dark); }
.search-page { max-width: 960px; margin: 0 auto; padding-top: 6px; }
.search-page-bar { display: flex; gap: 10px; margin-bottom: 14px; }
.search-page-bar .search-input { flex: 1; font-size: 14px; }
.search-page-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; }
mark { background: rgba(231,76,60,.2); color: var(--accent); border-radius: 2px; padding: 0 2px; }

/* ═══════════════════════════════════════════════════
   热搜排行
═══════════════════════════════════════════════════ */
.hot-tags-section { margin: 6px 0 28px; }
.hot-tags-title { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.hot-tags-list { display: flex; flex-direction: column; }
.hot-tag-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  color: var(--text); transition: background .2s; cursor: pointer;
}
.hot-tag-item:first-child { border-top: 1px solid var(--border); }
.hot-tag-item:hover { background: var(--bg-hover); }
.hot-tag-rank {
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  background: var(--bg-hover); border-radius: 4px; flex-shrink: 0;
}
.hot-tag-rank.top3 { background: var(--hot); color: #fff; }
.hot-tag-name { font-size: 13px; font-weight: 500; }
.hot-tag-item:hover .hot-tag-name { color: var(--accent); }

/* ═══════════════════════════════════════════════════
   广告：文章内文字广告（固定方块 pill，一排 7-8 个，最多 3 排）
═══════════════════════════════════════════════════ */
.post-text-ad-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 42px;
  gap: 8px;
  margin: 10px 0 18px;
  max-height: 142px;                   /* 3 行 × 42px + 2 × 8px gap */
  overflow: hidden;
}
.post-text-ad-link {
  display: flex; align-items: center; justify-content: center;
  height: 42px;                        /* 固定高 */
  padding: 0 10px;
  background: var(--bg-hover); border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text); font-size: 14px; line-height: 1;
  overflow: hidden;
  transition: background .15s, border-color .15s, color .15s;
}
.post-text-ad-link:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
}
.post-text-ad-content {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  font-weight: 500;
}
.post-text-ad-placeholder { pointer-events: none; opacity: .3; }

/* 评论下方 variant：宽度对齐评论区 (820px 居中) */
.post-text-ad-bar--in-comments {
  max-width: 820px;
  margin: 12px auto 24px;
}

@media (max-width: 640px) {
  .post-text-ad-bar { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 38px; max-height: 130px; gap: 6px; }
  .post-text-ad-link { font-size: 12px; height: 38px; padding: 0 8px; }
}

/* ═══════════════════════════════════════════════════
   弹窗广告
═══════════════════════════════════════════════════ */
.ad-popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.8);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto;
}
/* 通用 box（九宫格用） */
.ad-popup-box {
  position: relative; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 14px;
  max-width: min(400px, calc(100vw - 32px));
  width: 100%; padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  animation: popupIn .22s ease;
}
/* 单图 box：不加背景/边距，按图片原尺寸显示 */
.ad-popup-box-single {
  max-width: none; width: auto; padding: 0;
  background: transparent; border: none; box-shadow: none;
}
@keyframes popupIn { from { opacity:0; transform:scale(.92) translateY(12px); } to { opacity:1; transform:none; } }
/* 关闭按钮：盒内右上，单图则外露到图片角外，不被裁 */
.ad-popup-close {
  position: absolute; top: 10px; right: 12px;
  background: var(--bg-hover); border: 1px solid var(--border);
  color: var(--text-muted); width: 28px; height: 28px;
  border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.ad-popup-close:hover { background: var(--border); color: var(--text); }
.ad-popup-box-single .ad-popup-close {
  top: -12px; right: -12px;
  background: rgba(0,0,0,.8); border-color: rgba(255,255,255,.25); color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.ad-popup-single { display: block; line-height: 0; }
/* 单图：按图片原尺寸显示，超出 viewport 时按比例缩放 */
.ad-popup-img {
  display: block;
  width: auto; height: auto;
  max-width: min(600px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  border-radius: 10px;
  object-fit: contain;
}
.ad-popup-box-single .ad-popup-footer { border-top: none; justify-content: center; }
.ad-popup-box-single .ad-popup-skip { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.2); }
.ad-popup-box-single .ad-popup-ad-badge { display: none; }
.ad-popup-grid-title { font-size: 13px; font-weight: 600; text-align: center; margin-bottom: 12px; color: var(--text); }
.ad-popup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 4px; }
.ad-popup-grid-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px; background: var(--bg-hover); border-radius: 10px;
  color: var(--text); transition: background .15s, transform .15s;
}
.ad-popup-grid-item:hover { background: var(--border); transform: translateY(-1px); }
.ad-popup-grid-icon { width: 68px; height: 68px; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 30px; background: var(--bg-card); }
.ad-popup-grid-icon img { width: 100%; height: 100%; object-fit: cover; }
.ad-popup-grid-label {
  font-size: 12px; font-weight: 500;
  text-align: center; color: var(--text);
  line-height: 1.3;
  max-width: 80px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: block;
}
.ad-popup-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.ad-popup-skip {
  background: none; border: 1px solid var(--border); color: var(--text-muted);
  padding: 4px 14px; border-radius: 5px; cursor: pointer; font-size: 12px; transition: all .15s;
}
.ad-popup-skip:hover { border-color: var(--accent); color: var(--accent); }
.ad-popup-ad-badge { font-size: 10px; color: var(--text-muted); background: var(--bg-hover); padding: 2px 7px; border-radius: 4px; }

/* ═══════════════════════════════════════════════════
   Icon Banner（详情页 - 按分组分行，每行最多 8 个方形图标）
═══════════════════════════════════════════════════ */
.icon-banner-section { margin: 24px 0 0; display: flex; flex-direction: column; gap: 22px; }
.icon-banner-group { display: flex; flex-direction: column; gap: 12px; }
.icon-banner-title {
  font-size: 15px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 6px;
  padding-bottom: 2px;
}
.icon-banner-flame { font-size: 16px; }
.icon-banner-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.icon-banner-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; transition: transform .2s;
  min-width: 0;
}
.icon-banner-item:hover { transform: translateY(-2px); }
.icon-banner-icon {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 14px;
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-hover), var(--bg-card));
  border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s;
}
.icon-banner-icon img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.icon-banner-icon .icon-emoji {
  font-size: 30px; line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}
.icon-banner-item:hover .icon-banner-icon {
  border-color: var(--accent);
  box-shadow: 0 6px 14px rgba(231,76,60,.25);
}
.icon-banner-label {
  font-size: 12px; color: var(--text-muted); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; text-align: center;
}
.icon-banner-item:hover .icon-banner-label { color: var(--accent); }
.icon-banner-placeholder { opacity: .35; pointer-events: none; }

@media (max-width: 640px) {
  .icon-banner-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .icon-banner-icon { border-radius: 12px; }
  .icon-banner-icon .icon-emoji { font-size: 26px; }
  .icon-banner-label { font-size: 11px; }
}

/* ═══════════════════════════════════════════════════
   一键分享按钮（视频/正文下方）
═══════════════════════════════════════════════════ */
.post-share-bar {
  display: flex; justify-content: center;
  margin: 22px 0 8px;
}
.share-main-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 36px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: .5px;
  border: none; cursor: pointer;
  box-shadow: 0 6px 20px rgba(231,76,60,.35);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.share-main-btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 10px 26px rgba(231,76,60,.5); }
.share-main-btn:active { transform: translateY(0); }
.share-main-btn svg { stroke: #fff; }

/* ═══════════════════════════════════════════════════
   分享卡片弹窗
═══════════════════════════════════════════════════ */
.share-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s, visibility .25s;
}
.share-modal.open {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.share-card {
  position: relative;
  width: 100%; max-width: 420px;
  background: linear-gradient(165deg, #1a1a1f 0%, #15151a 60%, #111115 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 28px 24px 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(231,76,60,.15);
  transform: translateY(24px) scale(.96);
  transition: transform .3s cubic-bezier(.2,.9,.3,1.2);
  overflow: hidden;
}
.share-modal.open .share-card { transform: translateY(0) scale(1); }
.share-card::before {
  content: ''; position: absolute; top: -40%; right: -30%;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(231,76,60,.28), transparent 70%);
  pointer-events: none;
}
.share-card::after {
  content: ''; position: absolute; bottom: -40%; left: -30%;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,35,116,.18), transparent 70%);
  pointer-events: none;
}
.share-card > * { position: relative; z-index: 1; }
.share-card-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  z-index: 2;
}
.share-card-close:hover { background: rgba(255,255,255,.12); color: #fff; }

.share-card-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.share-card-badge {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(231,76,60,.4);
}
.share-card-title {
  font-size: 18px; font-weight: 800; color: #fff;
  margin: 0 0 4px; letter-spacing: -.3px;
}
.share-card-subtitle {
  font-size: 12px; color: var(--text-muted); margin: 0;
}

.share-card-preview {
  display: flex; gap: 12px; align-items: stretch;
  padding: 12px; margin-bottom: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
}
.share-card-preview-text { padding: 16px; }
.share-card-cover {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: 8px; object-fit: cover;
}
.share-card-preview-body {
  display: flex; flex-direction: column; justify-content: space-between;
  min-width: 0; flex: 1;
}
.share-card-post-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.share-card-site {
  font-size: 11px; color: var(--accent); margin-top: 6px;
}

.share-card-link-row {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.share-card-url {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: var(--text-muted); font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  outline: none;
  transition: border-color .15s;
}
.share-card-url:focus { border-color: var(--accent); color: var(--text); }
.share-card-copy-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 10px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 12px rgba(231,76,60,.3);
  transition: filter .15s, transform .15s, background .2s;
}
.share-card-copy-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.share-card-copy-btn.copied { background: var(--accent-dark); }
.share-card-copy-btn svg { stroke: #fff; }

.share-card-foot {
  text-align: center; font-size: 11px; color: var(--text-light);
  margin: 8px 0 0; letter-spacing: .3px;
}

@media (max-width: 480px) {
  .share-card { padding: 22px 18px 16px; border-radius: 16px; }
  .share-card-head { gap: 10px; margin-bottom: 16px; }
  .share-card-badge { width: 40px; height: 40px; border-radius: 12px; }
  .share-card-title { font-size: 16px; }
  .share-card-cover { width: 60px; height: 60px; }
}

/* ═══════════════════════════════════════════════════
   上一篇 / 下一篇
═══════════════════════════════════════════════════ */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; margin: 24px 0 0;
  background: var(--bg-hover); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.post-nav-col {
  padding: 16px 20px; display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.post-nav-next { border-right: 1px solid var(--border); }
.post-nav-prev { text-align: right; }
.post-nav-label { font-size: 12px; color: var(--text-light); }
.post-nav-link {
  font-size: 14px; color: var(--text); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-nav-link:hover { color: var(--accent); }
.post-nav-empty { font-size: 13px; color: var(--text-light); }

/* ═══════════════════════════════════════════════════
   版权声明
═══════════════════════════════════════════════════ */
.post-copyright {
  margin: 20px 0 0; padding: 16px 0;
  border-top: 1px dashed var(--border);
  font-size: 13px; line-height: 1.85; color: var(--text-muted);
}
.post-copyright p { margin: 0 0 10px; }
.post-copyright p:last-child { margin-bottom: 0; }
.post-copyright a { color: var(--accent); word-break: break-all; }
.post-copyright a:hover { text-decoration: underline; }
.copyright-notice { color: var(--text-light); }

/* ═══════════════════════════════════════════════════
   面包屑 / 空状态
═══════════════════════════════════════════════════ */
.breadcrumb { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-light); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border); }
.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.empty-state p { font-size: 14px; margin-bottom: 18px; }
.btn-back { display: inline-block; padding: 7px 18px; background: var(--accent); color: var(--on-accent); border-radius: 6px; font-size: 13px; font-weight: 600; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (min-width: 960px) {
  .post-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .header-search { display: flex; }
  .search-btn { display: none; }
}
@media (max-width: 959px) and (min-width: 641px) {
  .post-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .header-inner { height: 62px; }
  .header-brand { gap: 10px; }
  .header-brand-lockup { height: 40px; }
  .header-search { display: flex; }
  .search-btn { display: none; }
  .category-nav { top: 62px; }
}
@media (max-width: 640px) {
  body { padding-bottom: 64px; }
  .post-list { grid-template-columns: 1fr; gap: 10px; }
  .header-inner { height: 58px; }
  .header-search { display: none; }
  .search-btn { display: flex; }
  .logo-slogan { display: none; }
  .header-brand { gap: 7px; }
  .header-brand-lockup { height: 34px; }
  .category-nav { top: 58px; }
  .card-title { font-size: 12px; }
  .card-body { padding: 8px 8px 10px; gap: 5px; }
  .post-title { font-size: 18px; }
  /* icon-banner now pill layout — overrides moved into main rule block */
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { border-right: none; border-bottom: 1px solid var(--border); }
  .post-nav-prev { text-align: left; }
  .mobile-nav { display: block; }
  .search-page-bar { flex-direction: column; }
}

/* 顶部快捷图标 */

/* ═══════════════════════════════════════════════════
   卡片改进：阴影 / 圆角 / 懒加载渐显
═══════════════════════════════════════════════════ */
.card {
  box-shadow: var(--shadow-card);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.7);
}
.card-author { color: var(--text-light); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
img.lazy-img { opacity: 0; transition: opacity .35s ease; }
img.lazy-img.loaded { opacity: 1; }

/* ═══════════════════════════════════════════════════
   Hero Banner（首页 / 分类页顶部）
═══════════════════════════════════════════════════ */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, var(--bg-card) 0%, #0d0d0f 100%);
  background-size: cover;
  background-position: center;
  margin: 12px 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center;
  border: 1px solid var(--border);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative; z-index: 2;
  padding: 28px 32px;
  width: 100%;
}
.hero-title {
  font-size: 26px; font-weight: 800; color: #fff;
  letter-spacing: -0.5px; margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.hero-subtitle {
  font-size: 14px; color: rgba(255,255,255,.7);
  margin-bottom: 20px;
}
.hero-search {
  display: flex; align-items: center; gap: 0;
  max-width: 480px;
}
.hero-search-input {
  flex: 1; height: 42px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-right: none;
  color: #fff; padding: 0 16px;
  border-radius: 21px 0 0 21px;
  font-size: 14px; outline: none;
  transition: border-color .2s; font-family: var(--font);
}
.hero-search-input::placeholder { color: rgba(255,255,255,.5); }
.hero-search-input:focus { border-color: var(--accent); }
.hero-search-btn {
  height: 42px; padding: 0 20px;
  background: var(--accent); border: none; border-radius: 0 21px 21px 0;
  color: var(--on-accent); font-size: 14px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: background .2s; flex-shrink: 0; font-family: var(--font);
}
.hero-search-btn:hover { background: var(--accent-dark); }
.hero-search-btn svg { width: 16px; height: 16px; margin: 0; }
@media (max-width: 640px) {
  .hero-banner { min-height: 130px; margin: 8px 0 14px; }
  .hero-inner { padding: 18px 16px; }
  .hero-title { font-size: 18px; }
  .hero-subtitle { font-size: 12px; margin-bottom: 14px; }
  .hero-search { max-width: 100%; }
  .hero-search-input { height: 36px; font-size: 13px; }
  .hero-search-btn { height: 36px; padding: 0 14px; font-size: 13px; }
  .hero-search-btn span { display: none; }
}

/* ═══════════════════════════════════════════════════
   多栏 Footer
═══════════════════════════════════════════════════ */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 32px 12px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.footer-brand-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.footer-brand-row .logo-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
}
.footer-brand-row .logo-icon svg { width: 15px; height: 15px; margin: 0; color: #fff; }
.footer-brand-row .logo-text { font-size: 16px; font-weight: 800; color: var(--accent); }
.footer-slogan { font-size: 12px; color: var(--text-light); line-height: 1.5; }
.footer-col-title { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col-list { display: flex; flex-direction: column; gap: 8px; }
.footer-col-list a { font-size: 13px; color: var(--text-muted); transition: color .2s; }
.footer-col-list a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; padding: 20px 12px 16px; }
}
@media (max-width: 959px) and (min-width: 641px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════════════
   下载浮条
═══════════════════════════════════════════════════ */
.download-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  background: var(--bg-header); border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform .3s ease;
  display: block !important;
}
.download-bar.visible { transform: translateY(0); }
.download-bar-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
}
.download-bar-icon { flex-shrink: 0; }
.download-bar-icon svg { width: 22px; height: 22px; margin: 0; color: var(--accent); display: block; }
.download-bar-text { flex: 1; font-size: 13px; color: var(--text-muted); }
.download-bar-btn {
  flex-shrink: 0; background: var(--accent); color: var(--on-accent); border: none;
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .2s; font-family: var(--font);
}
.download-bar-btn:hover { background: var(--accent-dark); }
.download-bar-close {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--bg-hover); border: 1px solid var(--border);
  color: var(--text-muted); border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.download-bar-close:hover { color: var(--text); background: var(--border); }
.download-bar-close svg { width: 12px; height: 12px; margin: 0; }
@media (max-width: 640px) {
  /* 移动端：下载条在底部导航之上 */
  .download-bar { bottom: 56px; }
  .download-bar-text { display: none; }
}

/* ═══════════════════════════════════════════════════
   返回顶部按钮
═══════════════════════════════════════════════════ */
.back-to-top {
  position: fixed; right: 20px; bottom: 80px; z-index: 350;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
  opacity: 0; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, border-color .2s, color .2s;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }
.back-to-top svg { width: 18px; height: 18px; margin: 0; }
@media (max-width: 640px) {
  .back-to-top { right: 12px; bottom: 120px; width: 36px; height: 36px; }
}

/* ═══════════════════════════════════════════════════
   分页跳转框
═══════════════════════════════════════════════════ */
.page-jump {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted); margin-left: 8px;
}
.page-jump-input {
  width: 52px; height: 34px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 5px; color: var(--text); font-size: 13px;
  outline: none; transition: border-color .2s; font-family: var(--font);
  -moz-appearance: textfield;
}
.page-jump-input::-webkit-inner-spin-button,
.page-jump-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.page-jump-input:focus { border-color: var(--accent); }
.page-jump-btn {
  height: 34px; padding: 0 12px;
  background: var(--accent); color: #fff; border: none;
  border-radius: 5px; cursor: pointer; font-size: 12px;
  font-weight: 600; transition: background .2s; font-family: var(--font);
}
.page-jump-btn:hover { background: var(--accent-dark); }
/* 移动端：分页单独成行，跳转框也显示 */
@media (max-width: 640px) {
  .pagination { flex-wrap: wrap; gap: 6px; }
  .page-jump { margin-left: 0; width: 100%; justify-content: center; margin-top: 4px; }
  .page-jump-input { width: 46px; height: 32px; }
  .page-jump-btn { height: 32px; padding: 0 10px; }
}

/* ═══════════════════════════════════════════════════
   弹窗 4×5 网格覆盖（对标参考站应用推荐）
═══════════════════════════════════════════════════ */
.ad-popup-grid-4col {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 480px) {
  .ad-popup-grid-4col { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .ad-popup-grid-4col .ad-popup-grid-icon { width: 54px; height: 54px; font-size: 24px; border-radius: 12px; }
}

/* ═══════════════════════════════════════════════════
   详情页 post-meta-bar（含分享）
═══════════════════════════════════════════════════ */
.post-meta-bar {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 0;
}
.post-meta-bar .post-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: var(--text-muted); flex-wrap: wrap;
}
.post-meta-bar .post-meta span,
.post-meta-bar .post-meta time {
  display: flex; align-items: center; gap: 4px;
}
.post-meta-bar .post-meta svg { margin: 0; }
.meta-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
/* 分享按钮组 */
.post-share { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.share-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); background: var(--bg-hover);
  color: var(--text-muted); cursor: pointer; transition: all .2s;
  text-decoration: none; font-family: var(--font);
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.share-btn svg { margin: 0; flex-shrink: 0; }
/* 复制成功 toast */
.copy-toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(10px);
  background: rgba(231,76,60,.95); color: #fff; padding: 8px 20px;
  border-radius: 20px; font-size: 13px; font-weight: 500;
  opacity: 0; transition: opacity .25s, transform .25s;
  z-index: 9998; pointer-events: none; white-space: nowrap;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════════════
   搜索页热搜 Chip 风格
═══════════════════════════════════════════════════ */
.hot-tags-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px;
}
.hot-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  background: var(--bg-hover); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s; font-family: var(--font);
}
.hot-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.hot-chip-top { border-color: rgba(255,35,116,.3); color: var(--hot); background: var(--hot-bg); }
.hot-chip-top:hover { background: rgba(255,35,116,.2); }
.hot-chip-rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px;
  background: var(--bg-card); font-size: 10px; font-weight: 700;
  color: var(--text-light); flex-shrink: 0;
}
.hot-chip-top .hot-chip-rank { background: var(--hot); color: #fff; }

/* ═══════════════════════════════════════════════════
   广告链接：文字装饰 / 颜色一致（防止被局部样式覆盖）
═══════════════════════════════════════════════════ */
.ad-link-img,
.article-banner-item,
.icon-banner-item,
.ad-popup-grid-item,
.post-text-ad-link,
.ad-popup-single {
  text-decoration: none;
  color: inherit;
}

/* 文章 banner hover 反馈（若尚未定义 transform/transition） */
.article-banner-item {
  transition: transform .15s, opacity .2s;
}
.article-banner-item:hover { transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════
   广告响应式微调
═══════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .ad-banner-wrapper { margin: 8px 0 10px; }
}
@media (max-width: 480px) {
  .ad-popup-overlay { padding: 16px; }
  .ad-popup-img { max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); }
  /* 手机端空间小，单图关闭按钮挪到图片内右上角避免被屏幕切 */
  .ad-popup-box-single .ad-popup-close { top: 6px; right: 6px; }
}

/* ═══════════════════════════════════════════════════
   尊重用户减少动效偏好
═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .ad-carousel,
  .ad-slide,
  .ad-track,
  .article-banner-item,
  .card,
  .icon-banner-item {
    transition: none !important;
    animation: none !important;
  }
  .card:hover,
  .article-banner-item:hover,
  .icon-banner-item:hover {
    transform: none !important;
  }
}

/* ── UI chevron (统一右指向细箭头，避免 AI 感) ── */
.ui-chevron {
  display: inline-block;
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: .4;
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
}
.ui-chevron--left { transform: scaleX(-1); }
.ui-chevron--sm { width: 12px; height: 12px; }

/* 父容器 hover 时 chevron 激活 */
a:hover > .ui-chevron,
button:hover > .ui-chevron,
.line:hover .ui-chevron,
.card:hover .ui-chevron {
  opacity: 1;
  transform: translateX(3px);
}
a:hover > .ui-chevron--left,
.btn-back:hover > .ui-chevron--left {
  transform: scaleX(-1) translateX(3px);
}

/* ── 评论 0 态 UX（避免 gls603 类低评论帖看起来像死站）── */
.meta-comments--empty { opacity: .45; }
.meta-comments--empty svg { stroke-width: 1.5; }

/* ── 点赞数 (meta-likes) ── */
.meta-likes { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); }

.comments-title .count { color: var(--text-muted); font-weight: 400; font-size: 14px; margin-left: 6px; }
.comments-title .count--empty { color: var(--text-light); }

.no-comments {
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 20px; color: var(--text-light);
  gap: 10px; text-align: center;
}
.no-comments p { margin: 0; font-size: 13px; }

/* === Ad image onerror fallback (Phase 1 F1) === */
.ad-img-fallback { display: none !important; }
.ad-img-broken { position: relative; min-height: 40px; background: linear-gradient(135deg, #1a1a1e 0%, #222228 100%); display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.ad-img-broken::after { content: attr(data-fallback-text); color: #666; font-size: 12px; text-align: center; padding: 8px 12px; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* F6: emoji fallback 在 icon / popup_grid 槽位放大展示 */
.icon-banner-icon.ad-img-broken,
.ad-popup-grid-icon.ad-img-broken { background: transparent; min-height: 0; }
.icon-banner-icon.ad-img-broken::after,
.ad-popup-grid-icon.ad-img-broken::after { font-size: 24px; color: inherit; padding: 0; overflow: visible; white-space: normal; }
.ad-popup-grid-icon.ad-img-broken::after { font-size: 32px; }



/* ═══════════════════════════════════════════════════
   广告横幅 950x110 比例强制（含移动端）
═══════════════════════════════════════════════════ */
.ad-carousel,
.ad-banner,
.article-banner-item {
  width: 100% !important;
  max-width: 950px !important;
  aspect-ratio: 950 / 110 !important;
  height: auto !important;
  margin: 0 auto !important;
}
.ad-slide,
.ad-banner img,
.article-banner-item img,
.ad-link-img,
.ad-img-bg {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
@media (max-width: 640px) {
  .ad-carousel,
  .ad-banner,
  .article-banner-item {
    border-radius: 6px;
  }
}


/* ═══════════════════════════════════════════════════
   site footer
═══════════════════════════════════════════════════ */
.site-footer {
  margin-top: 40px;
  padding: 42px 0 26px;
  border-top: 1px solid var(--border);
  background: #100f0f;
}
.site-footer .container { max-width: 1040px; padding: 0 20px; }

/* 顶部 4 图标卡片 */
.footer-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.footer-icon-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px 6px; color: var(--text);
  text-decoration: none;
  transition: transform .15s, color .2s;
}
.footer-icon-item:hover { color: var(--accent); transform: translateY(-2px); }
.footer-icon-item svg {
  width: 36px; height: 36px;
  stroke: currentColor; fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.footer-icon-item span { font-size: 13px; font-weight: 500; }

/* 站点说明 block */
.footer-about {
  padding: 16px 2px 22px;
  border-bottom: 1px solid var(--border);
}
.footer-about h4 {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin: 0 0 10px;
}
.footer-about p {
  color: var(--text-dim, #9a9aa8);
  font-size: 13px; line-height: 1.75; margin: 0 0 6px;
}
.footer-about a {
  color: var(--accent); text-decoration: none; word-break: break-all;
}

/* 链接列表行 */
.footer-links-list {
  display: flex; flex-direction: column;
  padding: 4px 0;
}
.footer-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 2px;
  color: var(--text-dim, #9a9aa8);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.footer-row:last-child { border-bottom: none; }
.footer-row:hover { color: var(--text); }
.footer-row svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: .5;
}

.footer-copy {
  text-align: center;
  color: var(--text-light, #636370);
  font-size: 14px; margin: 18px 0 0;
}
.footer-restriction {
  margin: 14px 0 0;
  color: #b8ada3;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
}
.footer-restriction + .footer-copy { margin-top: 8px; }
.footer-copy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* 老版 .footer-links 隐藏（被新 list 替代） */
.footer-links { display: none; }

.site-footer-configured { min-width: 0; }
.site-footer-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: none;
  margin: 0 0 30px;
}
.site-footer-action {
  display: flex; min-width: 0; max-width: 100%; min-height: 112px; padding: 8px 10px;
  flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border: none; border-radius: 0; background: transparent;
  color: #EDDDC8; font-size: 17px; font-weight: 500; text-align: center; overflow-wrap: anywhere;
  transition: transform .15s, color .2s;
}
.site-footer-action:hover { color: var(--accent); background: transparent; transform: translateY(-2px); }
.site-footer-action img {
  width: 32px; height: 32px; flex: 0 0 auto; object-fit: contain;
  filter: grayscale(1) brightness(0) invert(1); opacity: .96;
}
.site-footer-action span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.site-footer-action.is-disabled,
.site-footer-text-link.is-disabled,
.site-footer-social-link.is-disabled,
.site-footer-legal-link.is-disabled { cursor: default; pointer-events: none; opacity: .46; }
.site-footer-about {
  display: block; min-width: 0; padding: 26px 20px 32px;
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.site-footer-brand h2 { margin: 0 0 10px; color: var(--text); font-size: 18px; line-height: 1.45; }
.site-footer-brand p {
  max-width: 760px; margin: 0; color: #aaa7aa; font-size: 14px; line-height: 1.75;
  overflow-wrap: anywhere;
}
.site-footer-permanent { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 26px; }
.site-footer-permanent h3 { margin: 0 0 2px; color: #d4d1d3; font-size: 14px; line-height: 1.6; }
.site-footer-address-row { display: flex; min-width: 0; align-items: baseline; gap: 6px; font-size: 15px; line-height: 1.6; }
.site-footer-address-row span { flex: 0 0 auto; color: #d4d1d3; font-weight: 700; }
.site-footer-address-row a { min-width: 0; color: var(--accent); font-weight: 700; overflow-wrap: anywhere; }
.site-footer-permanent p { margin: 4px 0 0; color: #aaa7aa; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.site-footer-info {
  display: flex; min-width: 0; flex-direction: column;
  gap: 0; padding: 0;
}
.site-footer-text-link {
  display: flex; width: 100%; min-width: 0; max-width: 100%; min-height: 72px; padding: 0 20px;
  align-items: center; justify-content: flex-start; gap: 9px;
  border: none; border-bottom: 1px solid rgba(255, 255, 255, .16); border-radius: 0; background: transparent;
  color: #ddd4c9; font-family: inherit; font-size: 16px; text-align: left; cursor: pointer;
  overflow-wrap: anywhere;
}
.site-footer-text-link:hover { color: var(--accent); background: rgba(255, 255, 255, .025); }
.site-footer-text-link img { width: 22px; height: 22px; flex: 0 0 auto; object-fit: contain; }
.site-footer-text-link span { min-width: 0; overflow-wrap: anywhere; }
.site-footer-socials {
  display: flex; min-width: 0; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 34px; padding: 52px 0;
}
.site-footer-social-link {
  position: relative; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.site-footer-social-link:hover { border-color: var(--accent); background: rgba(255, 255, 255, .12); }
.site-footer-social-link img { width: 22px; height: 22px; object-fit: contain; filter: grayscale(1) brightness(0) invert(1); }
.site-footer-social-link .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;
}
.site-footer-social-icon { width: 22px; height: 22px; color: #fff; }
.site-footer-legal {
  display: flex; min-width: 0; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 8px 28px; padding: 28px 0 0; border-top: 1px solid rgba(255, 255, 255, .16);
}
.site-footer-legal-link {
  display: inline-block; min-width: 0; max-width: 100%; color: #b8ada3; font-size: 14px; line-height: 1.6;
  overflow-wrap: anywhere;
}
.site-footer-legal-link:hover { color: var(--accent); }

.footer-document {
  width: min(820px, 100%); margin: 18px auto 0; padding: 26px;
  border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card);
}
.footer-document h1 { margin: 20px 0 12px; font-size: 28px; }
.footer-document-intro { margin: 0 0 20px; color: var(--text); font-size: 16px; line-height: 1.8; }
.footer-document-copy p { margin: 10px 0; color: var(--text-muted); line-height: 1.8; }
.footer-document-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.footer-document-links a { padding: 10px 16px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 700; }

.article-navigation-progress[hidden] { display: none !important; }
.article-navigation-progress {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 20px; overflow: hidden;
  background: rgba(22,9,13,.58); backdrop-filter: blur(2px);
}
.article-navigation-skeleton {
  display: grid; width: min(320px, 100%); min-width: 0;
  grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: repeat(3, 12px);
  align-items: center; gap: 10px 14px;
  padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card); color: var(--text); box-shadow: 0 12px 36px rgba(0, 0, 0, .32);
}
.article-navigation-cover {
  grid-row: 1 / 4; width: 96px; height: 74px; border-radius: 6px;
}
.article-navigation-line { width: 100%; height: 12px; border-radius: 999px; }
.article-navigation-line-short { width: 82%; }
.article-navigation-line-shorter { width: 58%; }
.article-navigation-cover,
.article-navigation-line {
  background: linear-gradient(100deg, var(--bg-hover) 25%, var(--border) 42%, var(--bg-hover) 60%);
  background-size: 220% 100%; animation: article-navigation-shimmer 1.05s linear infinite;
}
.article-navigation-progress strong {
  max-width: 100%; padding: 7px 12px; border-radius: 999px;
  background: var(--bg-card); color: var(--text); font-size: 13px; overflow-wrap: anywhere;
}
@keyframes article-navigation-shimmer { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) {
  .article-navigation-cover,
  .article-navigation-line { animation: none; }
}

/* 移动端微调 */
@media (max-width: 480px) {
  .footer-icons { gap: 6px; }
  .footer-icon-item { padding: 10px 2px; gap: 8px; }
  .footer-icon-item svg { width: 30px; height: 30px; }
  .footer-icon-item span { font-size: 12px; }
  .footer-about h4 { font-size: 14px; }
  .site-footer { padding: 28px 0 22px; }
  .site-footer .container { padding: 0 14px; }
  .site-footer-actions { gap: 4px; margin-bottom: 22px; }
  .site-footer-action { min-height: 76px; padding: 7px 2px; gap: 7px; font-size: 12px; line-height: 1.35; }
  .site-footer-action img { width: 32px; height: 32px; }
  .site-footer-about { padding: 22px 6px; }
  .site-footer-brand h2 { font-size: 17px; }
  .site-footer-brand p { font-size: 13px; line-height: 1.7; }
  .site-footer-permanent { margin-top: 22px; }
  .site-footer-address-row { align-items: flex-start; font-size: 13px; }
  .site-footer-text-link { min-height: 54px; padding: 0 6px; font-size: 14px; }
  .site-footer-socials { gap: 20px; padding: 34px 0; }
  .site-footer-social-link { width: 44px; height: 44px; }
  .site-footer-legal { gap: 7px 16px; padding-top: 14px; }
  .footer-document { padding: 18px 16px; border-radius: 12px; }
  .footer-document h1 { font-size: 23px; }
}

@media (max-width: 700px) {
  .site-footer-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* ═══════════════════════════════════════════════════
   Footer 弹窗
═══════════════════════════════════════════════════ */
.footer-modal-mask {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px; z-index: 10000;
  opacity: 0; transition: opacity .2s;
}
.footer-modal-mask.show { display: flex; opacity: 1; }
.footer-modal {
  background: var(--bg-card, #161618);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 480px; width: 100%; max-height: 80vh;
  overflow-y: auto;
  padding: 28px 24px 22px;
  position: relative;
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.footer-modal h3 {
  font-size: 17px; font-weight: 700;
  margin: 0 0 16px; padding-right: 30px;
}
.footer-modal-close {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent; border: none;
  color: var(--text-dim, #9a9aa8); font-size: 22px;
  cursor: pointer; transition: background .15s, color .15s;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.footer-modal-close:hover {
  background: var(--bg-hover, rgba(255,255,255,.06));
  color: var(--text);
}
.footer-modal-body { font-size: 14px; line-height: 1.75; }
.footer-modal-body p {
  margin: 0 0 10px; color: var(--text-dim, #9a9aa8);
}
.footer-modal-body p:last-child { margin-bottom: 0; }
.footer-modal-body strong { color: var(--accent); font-weight: 700; }
.footer-modal-body a { color: var(--accent); text-decoration: none; }
.footer-modal-body a:hover { opacity: .85; }
.footer-modal-body dl { margin: 0; }
.footer-modal-body dt {
  color: var(--text); font-weight: 600;
  margin-top: 14px; font-size: 14px;
}
.footer-modal-body dt:first-child { margin-top: 0; }
.footer-modal-body dd {
  margin: 6px 0 0; color: var(--text-dim, #9a9aa8);
  font-size: 13.5px; line-height: 1.7;
}

/* footer-row 作为 button 时的样式对齐 */
button.footer-row {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  width: 100%; text-align: left;
  font: inherit; cursor: pointer;
}
button.footer-row:last-child { border-bottom: none; }


/* ═══════════════════════════════════════════════════
   加入我们 招聘弹窗
═══════════════════════════════════════════════════ */
.footer-modal-body .job-list { margin: 12px 0 6px; }
.footer-modal-body .job-list dt {
  font-size: 15px; font-weight: 700;
  color: var(--accent);
  margin-top: 18px; padding-bottom: 4px;
  border-bottom: 1px dashed var(--border);
}
.footer-modal-body .job-list dt:first-child { margin-top: 0; }
.footer-modal-body .job-list dd {
  margin: 8px 0 0; padding: 0;
}
.footer-modal-body .job-list ul {
  margin: 0 0 8px; padding-left: 20px;
  list-style: disc;
}
.footer-modal-body .job-list ul li {
  color: var(--text-dim, #9a9aa8);
  font-size: 13.5px; line-height: 1.75;
  margin-bottom: 3px;
}
.footer-modal-body .job-salary {
  margin: 8px 0 0;
  padding: 8px 12px;
  background: rgba(231, 76, 60, .08);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  color: var(--text);
  font-size: 13px;
}
.footer-modal-body .job-salary strong {
  color: var(--accent); font-weight: 700;
}
.footer-modal-body .job-contact {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 13.5px; line-height: 1.8;
}
.footer-modal-body .job-contact a { color: var(--accent); }


/* ═══════════════════════════════════════════════════
   分类导航动画优化 + 滚动提示
═══════════════════════════════════════════════════ */
.cat-link {
  position: relative;
  transition: all .25s cubic-bezier(.4,0,.2,1);
}
.cat-link:active { transform: scale(.94); }
.cat-link.active {
  box-shadow: 0 2px 8px rgba(251, 191, 36, .35);
  animation: catPulse .45s cubic-bezier(.4,0,.2,1);
}
@keyframes catPulse {
  0%   { transform: scale(.85); }
  55%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* 手机端: 右侧渐变暗示还有内容可滑 */
@media (max-width: 768px) {
  .category-nav { position: sticky; }
  .category-nav::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 28px;
    pointer-events: none;
    background: linear-gradient(to right, transparent, var(--bg-header));
    z-index: 1;
  }
  .category-nav .container {
    scroll-padding: 24px;
  }
}


/* ═══════════════════════════════════════════════════
   APP 下载弹窗 (PWA 伪装)
═══════════════════════════════════════════════════ */
.app-dl-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px; z-index: 10001;
  animation: fadeIn .2s ease;
}
.app-dl-mask.show { display: flex; }
@keyframes fadeIn { from { opacity:0 } to { opacity:1 } }

.app-dl-card {
  background: linear-gradient(180deg, #1b1b1e, #141416);
  border: 1px solid rgba(231,76,60,.25);
  border-radius: 20px;
  max-width: 400px; width: 100%;
  padding: 24px 22px 22px;
  position: relative;
  color: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 40px rgba(231,76,60,.15);
  animation: slideUp .25s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes slideUp { from { transform: translateY(24px); opacity:0 } to { transform: translateY(0); opacity:1 } }

.app-dl-close {
  position: absolute; top: 8px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: none;
  color: #888; font-size: 22px; cursor: pointer;
  line-height: 1;
}
.app-dl-close:hover { background: rgba(255,255,255,.12); color: #fff; }

.app-dl-header { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.app-dl-icon {
  width: 68px; height: 68px; border-radius: 16px;
  background: #fff; overflow: hidden;
  box-shadow: 0 4px 12px rgba(231,76,60,.25);
  flex-shrink: 0;
}
.app-dl-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-dl-info { flex: 1; min-width: 0; }
.app-dl-info h4 {
  font-size: 18px; font-weight: 700; margin: 0 0 4px;
  color: #fff;
}
.app-dl-meta { font-size: 12px; color: #999; line-height: 1.6; }
.app-dl-meta .dot { opacity: .4; margin: 0 4px; }

.app-dl-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--rating-star); margin: 2px 0 4px; }
.app-dl-rating .rc { color: #888; font-size: 11px; margin-left: 4px; }

.app-dl-desc {
  background: rgba(255,255,255,.03);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px; line-height: 1.65;
  color: #bbb;
  margin-bottom: 14px;
}
.app-dl-desc strong { color: #e74c3c; }

.app-dl-screenshots {
  display: flex; gap: 8px; overflow-x: auto;
  margin: 0 -22px 14px;
  padding: 0 22px 4px;
  scrollbar-width: none;
}
.app-dl-screenshots::-webkit-scrollbar { display: none; }
.app-dl-shot {
  flex-shrink: 0; width: 108px; height: 192px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e74c3c22, #e74c3c08);
  border: 1px solid rgba(231,76,60,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #777;
}

.app-dl-install {
  width: 100%;
  padding: 13px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(231,76,60,.4);
  transition: transform .15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.app-dl-install:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(231,76,60,.55); }
.app-dl-install:active { transform: translateY(0); }
.app-dl-install svg { width: 18px; height: 18px; }

.app-dl-stat { text-align: center; font-size: 11px; color: #666; margin-top: 10px; }
.app-dl-stat strong { color: #e74c3c; }

.app-dl-guide {
  margin-top: 12px; padding: 12px;
  background: rgba(251,191,36,.06);
  border: 1px solid rgba(251,191,36,.2);
  border-radius: 10px;
  font-size: 12.5px; color: #ddd; line-height: 1.7;
  display: none;
}
.app-dl-guide.show { display: block; }
.app-dl-guide strong { color: var(--rating-star); }


/* ═══════════════════════════════════════════════════
   APP 弹窗 feature chips + 下载入口样式
═══════════════════════════════════════════════════ */
.app-dl-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.app-dl-feat {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 10px;
  background: rgba(231,76,60,.06);
  border: 1px solid rgba(231,76,60,.15);
  border-radius: 10px;
  font-size: 12.5px; color: #bbb;
  font-weight: 500;
}
.app-dl-feat span { font-size: 16px; }

/* 手机底部导航 下载按钮: 跟其他项同样 非 active 状态 */
.mobile-nav-dl {
  background: transparent;
  border: none;
  font: inherit;
  cursor: pointer;
  /* 继承 .mobile-nav-item 所有样式 */
}
.mobile-nav-dl svg { color: inherit; }

/* 文章分享栏新增 下载 APP 按钮 */
.post-share-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.share-main-btn-dl {
  background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(231,76,60,.3);
}
.share-main-btn-dl:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(231,76,60,.45);
}

@media (max-width: 480px) {
  .app-dl-features { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .app-dl-feat { font-size: 11.5px; padding: 7px 8px; }
}

/* Site-specific refresh: compact news stream */
/* COM-058：原 :root（琥珀）已并入文件顶部单一变量来源。 */

body {
  background:
    radial-gradient(circle at top left, rgba(251,191,36,.06), transparent 28rem),
    var(--bg);
  letter-spacing: 0;
}

.site-header {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,.03);
}

.logo-text {
  color: var(--rating-star);
  font-family: var(--font);
  letter-spacing: 0;
}

.logo-slogan { color: var(--text-muted); }

.category-nav {
  background: rgba(17,7,10,.96);
  border-bottom-color: var(--border);
}

.category-nav .container {
  gap: 2px;
  height: auto;
  padding: 7px 12px;
}

.cat-link {
  border-radius: 5px;
  padding: 5px 11px;
  font-size: 12px;
}

.cat-link.active {
  background: var(--accent);
  border-color: var(--rating-star);
  color: var(--bg-header);
  font-weight: 700;
}

.global-top-ad { margin: 10px 0 14px; }
.site-main { padding-top: 8px; }
.layout-main { max-width: 1040px; }

.page-h1 {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom-color: var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  letter-spacing: 0;
}

.page-heading {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.page-title {
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

.sort-bar {
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 0 12px;
  border-bottom-color: var(--border);
}

.sort-btn {
  border-radius: 5px;
  padding: 5px 12px;
  background: var(--bg-header);
  border-color: var(--border);
  color: var(--text-muted);
  font-size: 12px;
}

.sort-btn.active {
  background: var(--accent);
  border-color: var(--rating-star);
  color: var(--bg-header);
  font-weight: 700;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

.card {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-header));
  border-color: var(--border);
  border-radius: 8px;
  box-shadow: none;
}

.card:hover {
  background: var(--bg-hover);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(251,191,36,.22);
  transform: none;
}

.card-link {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 128px;
}

.card-img-wrap {
  aspect-ratio: auto;
  height: 128px;
  border-right: 1px solid var(--border);
}

.card:hover .card-img { transform: scale(1.02); }

.card-badge,
.card-hot {
  border-radius: 3px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.card-body {
  justify-content: center;
  min-width: 0;
  padding: 12px 14px;
  gap: 7px;
}

.card-title {
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.42;
}

.card:hover .card-title { color: var(--text); }

.card-tags {
  order: 3;
  gap: 5px;
}

.card-tag {
  background: rgba(251,191,36,.12);
  border-radius: 3px;
  color: var(--rating-star);
  font-size: 11px;
}

.card-meta {
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 11px;
}

.post-list-ad {
  width: 100%;
  min-height: 1px;
}

.pagination {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 720px) {
  .layout-main { padding: 0 10px; }
  .page-h1 { font-size: 16px; }
  .post-list { gap: 8px; }
  .card-link {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 102px;
  }
  .card-img-wrap {
    height: 102px;
    border-right-color: var(--border);
  }
  .card-body {
    padding: 9px 10px;
    gap: 5px;
  }
  .card-title {
    font-size: 14px;
    line-height: 1.35;
  }
  .card-meta {
    gap: 7px;
    padding-top: 6px;
    font-size: 10px;
  }
  .card-author,
  .card-likes,
  .card-comments {
    display: none;
  }
  .sort-bar {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sort-bar::-webkit-scrollbar { display: none; }
}

/* 2026-06-30: homepage/list cards use a single-column wide cover with title below. */
.post-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.card-link {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card-img-wrap {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  border-right: 0;
  border-bottom: 1px solid var(--border);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  justify-content: flex-start;
  padding: 10px 11px 12px;
}

.card-title {
  min-height: 40px;
  font-size: 14px;
  line-height: 1.42;
}

.card-meta {
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .post-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .card-link {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .card-img-wrap {
    height: auto;
    aspect-ratio: 2 / 1;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .card-body {
    padding: 8px 8px 10px;
  }

  .card-title {
    min-height: 33px;
    font-size: 12px;
    line-height: 1.36;
  }

  .card-meta {
    gap: 6px;
  }
}

/* 普通图标墙左对齐；开屏宫格弹窗不使用 .adsdk-tiles，保持四列居中。 */
.adsdk-tiles .adsdk-tg-grid {
  grid-template-columns: repeat(auto-fill, 84px) !important;
  justify-content: start !important;
}

@media (max-width: 760px) {
  .adsdk-tiles .adsdk-tg-grid {
    grid-template-columns: repeat(auto-fill, 72px) !important;
    gap: 12px 8px !important;
  }
}

/* 2026-07-10: realtime SSR detail footer (related content + read-only comments). */
.post-related-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.post-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.post-section-heading h2,
.post-section-heading .comments-title {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.4;
}

.post-section-heading > a,
.comments-source-note {
  color: var(--text-light);
  font-size: 12px;
}

.post-section-heading > a:hover { color: var(--accent); }

.post-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.post-related-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 10px;
  color: var(--text);
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: border-color .18s ease, background .18s ease;
}

.post-related-card:hover {
  color: var(--text);
  background: var(--bg-hover);
  border-color: var(--accent);
}

.post-related-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-header);
  border-radius: 6px;
}

.post-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-related-thumb--empty {
  background: linear-gradient(135deg, var(--bg-hover), var(--border));
}

.post-related-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.post-related-copy small { color: var(--accent); font-size: 11px; }
.post-related-copy strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comments-section.ssr-comments {
  max-width: none;
  margin-top: 30px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.ssr-comments .comments-list { display: grid; gap: 0; }
.ssr-comments .comment-item { padding: 16px 2px; }
.ssr-comments .comment-item:last-child { border-bottom: 0; }
.ssr-comments .comment-reply { margin-left: 28px; padding-left: 16px; }
.ssr-comments .comment-body { padding-left: 0; color: var(--text-muted); white-space: pre-wrap; }
.ssr-comments .no-comments { padding: 30px 16px; }
.comments-more { margin-top: 8px; }
.comments-more > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  background: rgba(251,191,36,.06);
  border: 1px solid rgba(251,191,36,.22);
  border-radius: 7px;
}
.comments-more > summary::-webkit-details-marker { display: none; }
.comments-more > summary:hover { background: rgba(251,191,36,.11); }
.comments-more[open] > summary { margin-bottom: 6px; }
.comments-more-list { display: grid; }

.card-recommendation {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 7px;
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  background: rgba(17,7,10,.84);
  border: 1px solid rgba(251,191,36,.45);
  border-radius: 5px;
  backdrop-filter: blur(6px);
}
.card--recommended .card-img-wrap { border-color: rgba(251,191,36,.24); }

.content-safe-empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.content-safe-empty strong { display: block; color: var(--text); font-size: 17px; }
.content-safe-empty p { margin: 8px 0 16px; font-size: 13px; }
.content-safe-empty div { display: flex; justify-content: center; gap: 10px; }
.content-safe-empty a { padding: 7px 12px; color: var(--accent); border: 1px solid var(--border); border-radius: 6px; }

@media (max-width: 720px) {
  .post-related-grid { grid-template-columns: 1fr; }
  .post-related-card { grid-template-columns: 108px minmax(0, 1fr); }
  .comments-section.ssr-comments { padding: 16px; }
  .ssr-comments .comment-reply { margin-left: 14px; padding-left: 12px; }
}

@media (max-width: 420px) {
  .post-list {
    grid-template-columns: 1fr;
  }

  .card-title {
    min-height: auto;
    font-size: 13px;
  }
}

/* 2026-06-29: plain black/white skin, remove noisy red/yellow accents. */
/* COM-058：原 :root（单色）已并入文件顶部单一变量来源。 */

body,
.site-header,
.category-nav,
.site-footer,
.mobile-bottom-nav {
  background: var(--bg);
  color: var(--text);
}

.logo-text,
.nav-link.active,
.nav-link:hover,
.search-btn:hover,
.header-search-btn:hover,
.post-title,
.page-title,
.page-h1,
.section-title,
.meta-author,
.thread-author {
  color: var(--text);
}

.header-search-input,
.mobile-search-input,
.sort-btn,
.card,
.post-detail,
.comments-section,
.related-section,
.ad-placeholder,
.post-nav,
.post-copyright,
.share-card,
.share-card-preview,
.copy-toast,
.tag,
.card-tag,
.pagination a,
.pagination span {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: none;
}

.header-search-input:focus,
.mobile-search-input:focus,
.sort-btn.active,
.sort-btn:hover,
.card:hover,
.tag:hover,
.share-btn:hover,
.share-main-btn:hover,
.pagination a:hover,
.pagination .current {
  background: var(--bg-hover);
  border-color: var(--accent);
  color: #fff;
  box-shadow: none;
}

.card {
  background: var(--bg-card);
}

.card:hover {
  background: var(--bg-hover);
  transform: none;
}

.card-img-wrap {
  background: var(--bg-header);
  border-bottom-color: var(--border);
}

.card-title,
.card:hover .card-title,
.card-badge,
.card-hot,
.card-tag,
.sort-btn.active,
.post-tags .tag,
.share-main-btn,
.share-card-copy-btn,
.btn-primary,
.download-bar,
.mobile-bottom-nav .active {
  color: #fff;
}

.card-badge,
.card-hot,
.sort-btn.active,
.share-main-btn,
.share-card-copy-btn,
.btn-primary,
.download-bar {
  background: var(--bg-hover);
  border-color: var(--border);
}

.card-meta,
.post-meta,
.post-meta-bar,
.breadcrumb,
.copyright-notice,
.share-card-subtitle,
.share-card-foot,
.comments-title .count {
  color: var(--text-muted);
  border-color: var(--border);
}

.post-content,
.entry-content {
  color: #f0f0f0;
}

.post-content a,
.entry-content a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #777;
  text-underline-offset: 3px;
}

.site-video-wrap {
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #000;
}

.site-video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.vip-notice,
[class*="vip"],
[class*="member"] {
  display: none !important;
}

.adsdk-label,
.ad-label,
.sponsored {
  background: rgba(0,0,0,.72);
  color: #ddd;
}

/* 2026-06-30: 吃瓜演示站单列绿调改版。 */
/* COM-058：原 :root（绿调改版）已并入文件顶部单一变量来源。 */

.logo-text,
.card:hover .card-title,
.post-title,
.page-title,
.page-h1,
.meta-author,
.comment-user,
.breadcrumb a:hover,
.post-content a,
.entry-content a,
.footer-links a:hover {
  color: var(--accent);
}

.header-search-input:focus,
.mobile-search-input:focus,
.sort-btn.active,
.sort-btn:hover,
.cat-link.active,
.card:hover,
.tag:hover,
.share-btn:hover,
.pagination a:hover,
.pagination .current {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.cat-link.active,
.sort-btn.active,
.card-badge,
.card-hot,
.share-main-btn,
.share-card-copy-btn,
.btn-primary,
.download-bar,
.comment-form-submit,
.page-jump-btn,
.meta-avatar {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.sort-btn.active:hover,
.share-main-btn:hover,
.share-card-copy-btn:hover,
.comment-form-submit:hover:not(:disabled),
.page-jump-btn:hover {
  background: var(--accent-dark);
  color: var(--on-accent);
}

.post-list {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px;
  max-width: 940px;
  margin: 0 auto;
}

.card {
  border-radius: 8px;
  background: var(--bg-card);
  border-color: var(--border);
}

.card:hover {
  background: var(--bg-hover);
  border-color: rgba(251,191,36,.72);
}

.card-link {
  display: flex;
  flex-direction: column;
}

.card-img-wrap {
  aspect-ratio: 26 / 9;
  border-bottom: 1px solid var(--border);
  background: var(--bg-header);
}

.card-body {
  padding: 13px 14px 14px;
  gap: 10px;
}

.card-title {
  min-height: auto;
  font-size: 15px;
  line-height: 1.48;
  font-weight: 700;
}

.card-tag,
.tag {
  color: var(--accent);
  background: rgba(251,191,36,.1);
  border-color: rgba(251,191,36,.26);
}

.card-meta,
.post-meta,
.post-meta-bar,
.breadcrumb,
.copyright-notice,
.share-card-subtitle,
.share-card-foot,
.comments-title .count {
  color: var(--text-muted);
}

.post-detail {
  max-width: 900px;
  margin-top: 26px;
}

.post-header {
  margin-bottom: 18px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.post-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: 12px;
}

.post-kicker a,
.post-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(251,191,36,.07);
  color: var(--accent);
}

.post-title {
  margin-bottom: 16px;
  font-size: 26px;
  line-height: 1.35;
  color: var(--text);
}

.post-meta-bar {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.share-btn {
  border-radius: 8px;
}

.post-content {
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

.post-content h2 {
  color: var(--text);
  border-bottom-color: var(--border);
}

.post-content img,
.post-content video,
.post-content iframe,
.site-video-wrap {
  border-color: var(--border);
  border-radius: 8px;
}

.share-main-btn {
  border-radius: 8px;
  box-shadow: none;
}

.share-card {
  background: var(--bg-card);
  border-color: var(--border);
  border-radius: 10px;
  box-shadow: 0 24px 54px rgba(0,0,0,.52);
}

.share-card::before,
.share-card::after {
  display: none;
}

.share-card-badge {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: none;
}

.share-card-preview,
.share-card-url {
  background: var(--bg-hover);
  border-color: var(--border);
}

.copy-toast {
  background: rgba(36,16,22,.96);
  color: var(--accent);
  border: 1px solid var(--border);
}

.post-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
  margin: 22px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.post-nav-card,
.post-nav-home {
  min-width: 0;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.post-nav-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-nav-card:hover,
.post-nav-home:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-hover);
}

.post-nav-home {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.post-nav-prev,
.post-nav-next {
  border-right: 1px solid var(--border);
  text-align: left;
}

.post-nav-label {
  font-size: 12px;
  color: var(--text-light);
}

.post-nav-link {
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.55;
}

.post-copyright {
  margin-top: 18px;
  padding: 14px;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.related-posts {
  display: none !important;
}

.comment-form:focus-within,
.comment-form-name:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(251,191,36,.10);
}

.comment-form-privacy,
.comment-form-toast {
  color: var(--accent);
  background: rgba(251,191,36,.08);
  border-color: rgba(251,191,36,.28);
}

/* COM-065B · 两级回复：入口与回复态提示，缩进沿用 .comment-reply / .depth-1 */
.community-reply-button{margin-top:10px;margin-left:8px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text-muted);padding:5px 10px;font-size:12px;cursor:pointer}
.community-reply-button:hover{border-color:var(--accent);color:var(--accent)}
.community-reply-banner{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:10px;padding:8px 12px;border:1px solid var(--accent);border-radius:8px;background:var(--accent-glow);color:var(--text);font-size:13px}
.community-reply-banner b{color:var(--accent);overflow-wrap:anywhere}
.community-reply-banner button{border:0;border-radius:8px;background:transparent;color:var(--text-muted);padding:4px 8px;cursor:pointer;text-decoration:underline}

.comment-reply {
  background: linear-gradient(90deg, rgba(251,191,36,.08) 0%, transparent 60%);
}

.comment-reply.depth-1,
.comment-reply.depth-2 {
  border-left-color: var(--accent);
}

.ad-mark,
.hot-chip-top {
  background: rgba(251,191,36,.10) !important;
  color: var(--accent) !important;
  border-color: rgba(251,191,36,.30) !important;
}

@media (max-width: 720px) {
  .post-list {
    gap: 12px;
  }

  .card-img-wrap {
    aspect-ratio: 11 / 5;
  }

  .post-header,
  .post-content {
    padding: 16px;
  }

  .post-title {
    font-size: 20px;
  }

  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav-home {
    width: 100%;
    min-height: 44px;
  }
}

/* 2026-06-30: list cards use plain text below cover, no framed text block. */
.post-list {
  gap: 24px;
  max-width: 940px;
}

.card,
.card:hover,
.ad-card,
.ad-card:hover {
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.card-link {
  gap: 10px;
}

.card-img-wrap {
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: var(--bg-header);
  aspect-ratio: 26 / 9;
}

.card-body {
  padding: 0 2px;
  gap: 8px;
  background: transparent;
  border: 0;
}

.card-title {
  min-height: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.36;
  font-weight: 800;
}

.card:hover .card-title {
  color: var(--accent);
}

.card-meta {
  order: 2;
  gap: 18px;
  padding-top: 0;
  border: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.card-meta-item {
  gap: 5px;
}

.card-meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

.card-date {
  color: var(--text-light);
}

.card-tags {
  order: 3;
  gap: 12px;
  margin-top: 2px;
}

.card-tag {
  padding: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.4;
}

.card-badge,
.card-hot {
  border-radius: 4px;
  box-shadow: none;
}

.post-list-ad {
  margin: 2px 0;
}

@media (max-width: 720px) {
  .post-list {
    gap: 18px;
  }

  .card-link {
    gap: 8px;
  }

  .card-img-wrap {
    aspect-ratio: 11 / 5;
    border: 0;
    border-radius: 6px;
  }

  .card-body {
    padding: 0 1px;
    gap: 6px;
  }

  .card-title {
    font-size: 18px;
    line-height: 1.35;
  }

  .card-meta {
    gap: 12px;
    font-size: 12px;
  }

  .card-meta-item svg {
    width: 13px;
    height: 13px;
  }

  .card-tags {
    gap: 9px;
  }

  .card-tag {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .post-list {
    gap: 16px;
  }

  .card-title {
    font-size: 17px;
  }

  .card-meta {
    gap: 10px;
  }
}

/* 2026-06-30: detail header meta/actions cleanup. */
.post-header {
  padding: 0 0 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(251,191,36,.20);
  border-radius: 0;
}

.post-kicker {
  margin-bottom: 10px;
}

.post-kicker a,
.post-kicker span {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
}

.post-title {
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1.32;
  letter-spacing: 0;
}

.post-meta-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(251,191,36,.14);
}

.post-info-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  min-width: 0;
}

.post-stat,
.post-meta-bar .post-meta span,
.post-meta-bar .post-meta time {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--text-muted);
}

.post-stat svg {
  flex: 0 0 auto;
  color: var(--accent);
}

.post-stat-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.post-stat-text b {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

.post-stat-text small {
  color: var(--text-light);
  font-size: 11px;
  line-height: 1.2;
}

.meta-author .post-stat-text b {
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-avatar {
  width: 28px;
  height: 28px;
  background: rgba(251,191,36,.14);
  color: var(--accent);
  border: 1px solid rgba(251,191,36,.28);
}

.post-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.post-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(251,191,36,.24);
  border-radius: 7px;
  background: rgba(251,191,36,.07);
  color: var(--accent);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.post-action-btn:hover {
  border-color: var(--accent);
  background: rgba(251,191,36,.13);
  color: var(--accent);
}

.post-action-submit {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.post-action-submit:hover {
  background: var(--accent-dark);
  color: var(--on-accent);
}

.post-action-btn svg {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .post-title {
    font-size: 22px;
  }

  .post-meta-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
  }

  .post-info-group {
    gap: 12px 16px;
  }

  .post-action-group {
    justify-content: flex-start;
  }

  .post-action-btn {
    min-height: 34px;
    padding: 0 12px;
  }
}

@media (max-width: 420px) {
  .post-info-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-action-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 2026-06-30: larger top category labels. */
.category-nav .container .cat-link,
.cat-link {
  min-height: 34px;
  padding: 7px 15px;
  font-size: 15px;
  font-weight: 750;
}

.catnav-toggle {
  min-height: 34px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 750;
}

/* 两级分类：一级始终可点击，二级用轻量展开层；超过固定数量收进“更多”。 */
.category-nav .container {
  min-width: 0;
  min-height: 48px;
  height: auto;
  overflow: visible;
}

.cat-menu {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
}

.cat-sub-toggle {
  width: 28px;
  min-height: 34px;
  margin-left: -8px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
}

.cat-menu.active > .cat-sub-toggle,
.cat-sub-toggle:hover { color: var(--text); }

.cat-submenu {
  position: absolute;
  z-index: 210;
  top: 100%;
  left: 0;
  display: none;
  min-width: 190px;
  max-width: min(360px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-header);
  box-shadow: var(--shadow);
}

.cat-menu:hover > .cat-submenu,
.cat-menu:focus-within > .cat-submenu,
.cat-menu.open > .cat-submenu {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cat-sub-link {
  display: block;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.cat-sub-link:hover,
.cat-sub-link.active {
  background: var(--bg-hover);
  color: var(--accent);
}

.cat-more { margin-left: auto; }
.cat-more-toggle {
  border: 1px solid transparent; background: transparent; color: var(--text-muted);
  cursor: pointer; font-family: inherit;
}
.cat-more-panel { right: 0; left: auto; min-width: 240px; }
.cat-more-group + .cat-more-group { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--border); }
.cat-primary-link { color: var(--text); font-weight: 750; }
.cat-more-children { display: flex; min-width: 0; flex-wrap: wrap; gap: 3px; padding: 2px 6px 5px; }
.cat-more-children .cat-sub-link { flex: 1 1 calc(50% - 3px); font-size: 12px; }

@media (max-width: 720px) {
  .category-nav .container .cat-link,
  .cat-link {
    min-height: 32px;
    padding: 7px 13px;
    font-size: 14px;
  }

  .catnav-toggle {
    min-height: 32px;
    padding: 7px 12px;
    font-size: 13px;
  }
}

@media (max-width: 959px) {
  .category-nav::after { display: none; }
  .category-nav .container {
    flex-wrap: wrap;
    gap: 3px;
    overflow: visible;
    padding: 7px 8px;
  }
  .cat-menu:hover > .cat-submenu,
  .cat-menu:focus-within > .cat-submenu { display: none; }
  .cat-menu.open {
    flex: 1 0 100%;
    flex-wrap: wrap;
  }
  .cat-menu.open > .cat-submenu {
    position: static;
    display: flex;
    width: 100%;
    max-width: none;
    flex: 1 0 100%;
    margin-top: 5px;
    box-shadow: none;
  }
  .cat-more { margin-left: 0; }
  .cat-more-panel { min-width: 0; }
}

/* 真实媒体尚未加载出画面时的最终底层占位；成功加载后由媒体自然覆盖。 */
.card-img-wrap,
.post-related-thumb,
.post-content img {
  background-color: #111115;
  background-image: var(--content-loading-placeholder);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* COM-090：视频未播放时是深色纯色底，不再叠通用占位图；
   有真实封面（COM-068 合成）时由 poster 覆盖这层底色。 */
.post-content video {
  background-color: var(--bg-card);
  background-image: none;
}

img[data-media-state="loaded"] { background-image: none; }
img[data-media-state="failed"] {
  opacity: .76;
  filter: saturate(.65);
}
.card-img-wrap:has(> img[data-media-state="failed"]),
.post-related-thumb:has(> img[data-media-state="failed"]) { position: relative; }
.card-img-wrap:has(> img[data-media-state="failed"])::after,
.post-related-thumb:has(> img[data-media-state="failed"])::after {
  content: "图片加载失败";
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 2;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════
   COM-064 · 互动与评论区
   喜欢/收藏改大圆标并居中前置；评论输入区移到评论列表上方。
   注意：这些规则要压过前面 .community-* 的既有声明，故置于文件末尾。
═══════════════════════════════════════════════════ */
/* COM-086：收藏按钮删除后只剩点赞，不再占据一整块居中区域，
   改为评论表单上方的紧凑行内形式。 */
.community-article-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin: 4px 0 16px;
}
.community-article-actions .community-action {
  display: inline-flex;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
}
.community-article-actions .community-action-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
  transition: border-color .18s, background .18s, transform .18s;
}
.community-article-actions img.community-action-icon { padding: 8px; object-fit: contain; }
.community-article-actions .community-action-label { font-size: 13px; }
/* COM-086：用户要求不显示点赞数量。用 CSS 隐藏而非删节点——
   community.js 的 renderInteractions() 对 DOM 结构有隐式依赖。 */
.community-article-actions .community-action-count { display: none; }
.community-article-actions .community-action:hover .community-action-icon { border-color: var(--accent); transform: translateY(-2px); }
/* COM-086：:478 的旧胶囊态规则特异性 (0,2,1) 会把 --accent-glow 刷成矩形底，
   改版后按钮是「圆形图标 + 文字」，这里以 (0,3,0) 复位按钮自身的底色与边框。
   圆形图标的辉光由下一条 .community-action-icon 单独保留，不受影响。 */
.community-article-actions .community-action.active {
  color: var(--accent);
  background: none;
  border-color: transparent;
}
.community-article-actions .community-action.active .community-action-icon {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.community-article-actions .community-action[disabled] { cursor: wait; opacity: .68; }

/* 添加新评论：正文框 → 称呼 → 提交 */
.community-guest {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.community-guest-title { display: block; margin-bottom: 12px; color: var(--text); font-size: 15px; }
.community-guest-form { margin: 0; padding: 0; border: 0; background: transparent; }
.community-guest-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 96px;
  resize: vertical;
}
.community-guest-form label { display: grid; max-width: 320px; margin-top: 12px; gap: 6px; }
.community-guest-form > div { margin-top: 14px; }
.community-guest-form button { color: var(--on-accent); }

/* 已有评论 */
.comments-count { margin: 0 0 4px; color: var(--text); font-size: 15px; font-weight: 700; }
.comment-avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-card);
  object-fit: cover;
}
.comment-body { padding-left: 44px; }

@media (max-width: 700px) {
  .community-article-actions { display: flex; gap: 28px; }
  .community-article-actions .community-action { min-height: 0; }
  .community-guest-form label { max-width: 100%; }
  .comment-body { padding-left: 0; }
}

/* ═══════════════════════════════════════════════════
   COM-067 · 详情页标签
   1) 标签行原先紧贴下方内容框（实测间隙 0），胶囊压在框线上；
   2) .post-detail 自带底色，内部 .post-content / .comments-section
      又各有一圈边框，同色叠同色看起来是两层——去掉外层这一圈。
   同样置于文件末尾以压过前面的 minified 声明。
═══════════════════════════════════════════════════ */
.post-detail { background: transparent; }
.post-tags { margin-bottom: 14px; }
.post-tags .tag {
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.post-tags .tag:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════
   COM-066a · 头部社媒行
   复用 site_footer.socials，圆形纯图标，label 进 aria-label。
   ≤640 隐藏：390 实测头部只余 111px，装不下 4 个 32px 圆标。
═══════════════════════════════════════════════════ */
.header-socials { display: flex; flex-shrink: 0; align-items: center; gap: 8px; margin-left: 4px; }
.header-social-link {
  display: grid;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  transition: border-color .18s, background .18s;
}
.header-social-link img { width: 18px; height: 18px; object-fit: contain; }
.header-social-link:hover { border-color: var(--accent); background: var(--accent-glow); }
.header-social-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .header-socials { display: none; } }

/* ═══════════════════════════════════════════════════
   COM-070-fix · 补回随 .ssr-comments 类一起失效的两条规则
   原 `.ssr-comments .comment-reply` / `.ssr-comments .comment-body`
   在 COM-070 撤掉该类后成了孤儿：桌面端二级回复失去缩进（移动端有、
   桌面端反而没有），来源评论正文的换行塌成一段。
═══════════════════════════════════════════════════ */
.community-panel .comment-reply { margin-left: 28px; padding-left: 16px; }
.community-panel .comment-body { white-space: pre-wrap; }

/* ═══════════════════════════════════════════════════
   COM-111 · 分类导航改版（PC ＋ 移动端）
   设计稿：~/Desktop/分类文件夹（4 张）。结构见 docs/handoff/分类改版方案-20260819.md。
   规格：PC 一级有子菜单则不可点击、hover 展开正下方二级面板、箭头旋转 180°；
   移动端搜索圆标与汉堡并排、汉堡变关闭、点非菜单区关闭；H5 tab 滑块仅移动端可见。
   ≥960 走 PC 那套，≤959 走移动端那套（触屏没有 hover，且要能一手够到菜单）。
   按本文件既有约定放在末尾，用来压过前面 .cat-* 的旧声明。
═══════════════════════════════════════════════════ */

/* ── 头部：搜索区块右对齐；移动端搜索圆标＋汉堡并排在最右 ── */
.header-search { margin: 0 0 0 auto; max-width: 340px; flex: 0 1 340px; }
.header-search-input { border-radius: 8px; height: 36px; }
/* 设计稿：搜索与汉堡始终贴右边，中间留白由 brand 之后的空隙吸收。 */
.header-actions { display: flex; flex-shrink: 0; align-items: center; gap: 8px; margin-left: auto; }
.header-socials { margin-left: 12px; }

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--th-active, var(--accent));
  color: var(--th-active-text, var(--on-accent));
  cursor: pointer;
}
.nav-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.nav-toggle-icon { position: relative; display: block; width: 18px; height: 2px; }
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  border-radius: 1px;
  background: currentColor;
  transition: transform .22s cubic-bezier(.4,0,.2,1), background-color .18s;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
/* 汉堡本身变成关闭（×）按钮 */
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* ── PC 一级行 ── */
.category-nav { background: var(--bg); }
.category-nav .container {
  display: flex;
  min-height: 46px;
  flex-wrap: wrap;      /* 溢出就换行，1440 与更窄的 PC 宽度都不会出横向滚动 */
  align-items: center;
  padding: 6px 12px;
  gap: 2px;
  overflow: visible;    /* 二级面板要能溢出这一行 */
}
.cat-menu { position: relative; display: flex; flex: 0 0 auto; align-items: center; }
.cat-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  gap: 6px;
}
button.cat-link { cursor: pointer; }
.cat-link:hover { color: var(--text); background: var(--bg-hover); }
.cat-menu:hover > .cat-link,
.cat-menu:focus-within > .cat-link { color: var(--text); }
.cat-link.active {
  background: var(--th-active, var(--accent));
  border-color: var(--th-active, var(--accent));
  /* COM-080：金底上不能用白字（1.67:1），走 --on-accent */
  color: var(--th-active-text, var(--on-accent));
  font-weight: 700;
}
/* 设计稿：进入二级菜单对应页面时，一级的 active 样式「同 hover」——所以这里
   复用 hover 的取值(var(--text))，不另起金色，一行里也不会出现两个金块。 */
.cat-link.cat-current { color: var(--text); background: var(--bg-hover); }
.cat-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-caret { width: 12px; height: 8px; flex: 0 0 auto; transition: transform .25s cubic-bezier(.4,0,.2,1); }
/* hover / 展开时箭头旋转 180° */
.cat-menu:hover > .cat-link > .nav-caret,
.cat-menu:focus-within > .cat-link > .nav-caret,
.cat-menu.open > .cat-link > .nav-caret { transform: rotate(180deg); }

/* ── PC 二级面板：在对应一级菜单正下方 ── */
.cat-submenu {
  border-color: transparent;
  border-radius: 10px;
  background: var(--menu-surface);
  box-shadow: 0 14px 30px rgba(0,0,0,.42);
  padding: 8px;
}
/* 最后一个一级项（官方信息）的面板贴右展开，避免窄一点的 PC 宽度下顶出视口 */
.category-nav .container > .cat-menu:last-child > .cat-submenu { right: 0; left: auto; }
/* ── 二级气泡的尖角：设计稿要求尖尖对应一级菜单正下方；面板贴右时尖角跟着靠右 ── */
.cat-submenu::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 22px;
  border: 7px solid transparent;
  border-bottom-color: var(--menu-surface);
  pointer-events: none;
}
.category-nav .container > .cat-menu:last-child > .cat-submenu::before { left: auto; right: 22px; }
.cat-sub-link {
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
}
.cat-sub-link:hover { background: var(--menu-surface-hover); color: var(--text); }
.cat-sub-link.active {
  background: var(--th-active, var(--accent));
  color: var(--th-active-text, var(--on-accent));
  font-weight: 700;
}
.cat-sub-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* PC 二级分类：对齐原型的深色气泡容器和横向灰色卡片。 */
@media (min-width: 960px) {
  .cat-menu:hover > .cat-submenu,
  .cat-menu:focus-within > .cat-submenu,
  .cat-menu.open > .cat-submenu {
    top: calc(100% + 10px);
    width: max-content;
    min-width: 0;
    max-width: min(1064px, calc(100vw - 24px));
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 14px 16px;
    border: 0;
    border-radius: 11px;
    background: #333;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .42);
  }
  .cat-submenu::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 10px;
    background: transparent;
  }
  .cat-submenu::before { border-bottom-color: #333; }
  .cat-sub-link {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 9px;
    background: #666;
    color: #EDDDC8;
    font-size: 16px;
    font-weight: 700;
  }
  .cat-sub-link:hover { background: #737373; color: #EDDDC8; }
  .cat-sub-link.active {
    background: var(--th-active, var(--accent));
    color: var(--th-active-text, var(--on-accent));
  }
}

/* ── H5 tab 滑块（仅移动端可见，可左右滑动） ── */
.h5-tabs {
  display: none;
  position: sticky;
  z-index: 190;
  top: 62px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.h5-tabs-track {
  display: flex;
  padding: 11px 12px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.h5-tabs-track::-webkit-scrollbar { display: none; }
.h5-tab {
  display: inline-flex;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  padding: 5px 14px;
  border-radius: 8px;
  background: var(--menu-surface);
  color: var(--tag-text);
  font-size: 15px;
  white-space: nowrap;
}
.h5-tab.active {
  background: var(--th-active, var(--accent));
  color: var(--th-active-text, var(--on-accent));
  font-weight: 700;
}
.h5-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── 移动端菜单层 ── */
html.is-menu-open { overflow: hidden; }
.mobile-menu {
  position: fixed;
  z-index: 300;
  top: 62px;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
}
.mobile-menu[hidden] { display: none; }
/* 遮罩＝「非菜单区域」，点它关闭菜单层 */
.mobile-menu-mask { flex: 1 1 auto; background: rgba(0,0,0,.5); }
.mobile-menu-panel {
  width: 84%;
  max-width: 360px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  overflow-x: hidden;
  border-left: 1px solid var(--border);
  background: var(--bg-header);
  box-shadow: -16px 0 32px rgba(0,0,0,.4);
  padding: 14px 12px 28px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
/* 卡片化：无子项一级入口和有子项一级头统一用圆角卡片，组间用 gap 隔开，
   不再靠连续的 border-top 分割线（原型是分组卡片，不是通栏列表）。 */
.m-menu-row {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--radius, 8px);
  background: var(--menu-surface);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  gap: 12px;
  text-align: left;
}
.m-menu-group {
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--menu-surface);
  overflow: hidden;
}
.m-menu-group > .m-menu-row { border-radius: 0; background: transparent; }
.m-menu-label { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.nav-icon { width: 20px; height: 20px; flex: 0 0 auto; color: var(--text-muted); }
.nav-chevron { width: 8px; height: 12px; flex: 0 0 auto; color: var(--text-light); }
.m-menu-row.current { color: var(--accent); }
.m-menu-row.current .nav-icon { color: var(--accent); }
.m-menu-row.active {
  background: var(--th-active, var(--accent));
  color: var(--th-active-text, var(--on-accent));
  font-weight: 700;
}
.m-menu-row.active .nav-icon,
.m-menu-row.active .nav-chevron { color: currentColor; }
.m-menu-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* 设计稿：移动端一级展开时箭头朝下(默认态)，折叠时旋转为「>」朝右。
   与 PC 的 180° 翻转不同，这里是 -90°，折叠态要能一眼看出"还能展开"。 */
.m-menu-group > .m-menu-row > .nav-caret { transform: rotate(-90deg); }
.m-menu-group.open > .m-menu-row > .nav-caret { transform: rotate(0deg); }
/* 二级：两列等宽卡片；奇数个最后一项落单在左列，天然左对齐不拉伸占满整行。 */
.m-menu-sub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
  background: transparent;
}
.m-menu-sub[hidden] { display: none; }
.m-menu-sub-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.m-menu-sub-link:hover { background: var(--bg-hover); color: var(--text); }
/* 当前项整行高亮为品牌金 */
.m-menu-sub-link.active {
  background: var(--th-active, var(--accent));
  color: var(--th-active-text, var(--on-accent));
  font-weight: 700;
}
.m-menu-sub-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

@media (max-width: 959px) {
  /* 移动端：PC 一级行整条收起，改由汉堡菜单层 ＋ H5 tab 滑块承担 */
  .category-nav { display: none; }
  .header-search { display: none; }
  .search-btn { display: flex; }
  .nav-toggle { display: inline-flex; }
  .h5-tabs { display: block; }
}
@media (max-width: 640px) {
  .h5-tabs { top: 58px; }
  .mobile-menu { top: 58px; }
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .h5-tabs { display: none; }
  .mobile-menu { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-caret,
  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after { transition: none; }
}

/* 往期内容：只消费现役公开文章数据的时间归档。 */
.archive-page {
  width: 100%;
  max-width: 920px;
  margin: 10px auto 0;
}
.archive-header {
  padding: 26px 28px;
  border: 1px solid rgba(251,191,36,.22);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(251,191,36,.10), rgba(26,23,19,.96) 58%);
}
.archive-eyebrow {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}
.archive-header h1 { color: var(--text); font-size: 30px; line-height: 1.3; }
.archive-header > p:last-child { margin-top: 8px; color: var(--text-muted); }
.archive-tag-panel {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.archive-tag-panel h2 { margin-bottom: 12px; color: var(--text); font-size: 15px; }
.archive-tag-cloud { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.archive-tag,
.archive-more-tags {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid rgba(251,191,36,.24);
  border-radius: 999px;
  background: rgba(251,191,36,.07);
  color: var(--tag-text);
  font-size: 13px;
}
.archive-more-tags { margin-left: auto; color: var(--accent); font-weight: 800; }
.archive-tag:hover,
.archive-more-tags:hover { border-color: var(--accent); background: var(--accent-glow); color: var(--accent); }
.archive-tag:focus-visible,
.archive-more-tags:focus-visible,
.archive-pagination a:focus-visible,
.archive-jump :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.archive-timeline { position: relative; margin-top: 30px; }
.archive-month { position: relative; padding-left: 22px; }
.archive-month + .archive-month { margin-top: 32px; }
.archive-month::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: -40px;
  left: 5px;
  width: 1px;
  background: linear-gradient(var(--accent), rgba(251,191,36,.10));
}
.archive-month:last-child::before { bottom: 0; }
.archive-month h2 {
  position: relative;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 19px;
  line-height: 1.4;
}
.archive-month h2::before {
  content: "";
  position: absolute;
  top: .48em;
  left: -22px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(251,191,36,.14);
}
.archive-entries {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}
.archive-entry {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  min-width: 0;
  padding: 13px 16px;
}
.archive-entry + .archive-entry { border-top: 1px solid var(--border); }
.archive-entry time {
  color: var(--text-light);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.archive-entry a {
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.archive-entry a:hover { color: var(--accent); }
.archive-empty {
  padding: 36px 20px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-muted);
  text-align: center;
}
.archive-empty strong { display: block; margin-bottom: 6px; color: var(--text); }
.archive-page-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.archive-pagination { display: flex; align-items: center; gap: 9px; }
.archive-pagination a,
.archive-pagination span,
.archive-pagination b {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
}
.archive-pagination a { color: var(--accent); }
.archive-pagination a:hover { border-color: var(--accent); background: var(--accent-glow); }
.archive-pagination span[aria-disabled="true"] { opacity: .48; }
.archive-jump { display: flex; min-width: 0; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; }
.archive-jump input {
  width: 76px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  padding: 6px 9px;
  font: inherit;
}
.archive-jump button {
  min-height: 38px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 7px 13px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

@media (max-width: 640px) {
  .archive-page { margin-top: 4px; }
  .archive-header { padding: 20px 17px; border-radius: 10px; }
  .archive-header h1 { font-size: 24px; }
  .archive-tag-panel { padding: 15px 14px; }
  .archive-more-tags { margin-left: 0; }
  .archive-month { padding-left: 17px; }
  .archive-month h2::before { left: -17px; }
  .archive-month::before { left: 5px; }
  .archive-entry { grid-template-columns: 52px minmax(0, 1fr); gap: 9px; padding: 12px 11px; }
  .archive-entry a { font-size: 14px; }
  .archive-page-controls { align-items: stretch; flex-direction: column; }
  .archive-pagination { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .archive-pagination a,
  .archive-pagination span,
  .archive-pagination b { padding: 7px 6px; white-space: nowrap; }
  .archive-jump { justify-content: flex-end; }
  .archive-jump input { min-width: 0; flex: 1 1 auto; }
}
