/* ── CSS 变量 ─────────────────────────────────────── */
:root {
  --bg:          #0d0d0f;
  --bg-card:     #161618;
  --bg-header:   #111113;
  --bg-hover:    #1e1e21;
  --border:      #2a2a2e;
  --text:        #f0f0f2;
  --text-muted:  #9a9aa8;
  --text-light:  #636370;
  --accent:      #1abc9c;
  --accent-dark: #16a085;
  --accent-glow: rgba(26,188,156,.18);
  --hot:         #ff2374;
  --hot-bg:      rgba(255,35,116,.12);
  --tag-bg:      #1e1e21;
  --tag-text:    #c0c0cc;
  --radius:      12px;
  --radius-sm:   6px;
  --shadow:      0 4px 20px rgba(0,0,0,.55);
  --shadow-card: 0 8px 18px rgba(0,0,0,.56);
  --max-width:   1200px;
  --font:        -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* ── 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: 54px;
  gap: 12px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; text-decoration: none; }
.logo-img {
  width: auto;
  height: 42px;
  max-width: 160px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.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: 0 1 360px;

  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 { margin: 0; width: 15px; height: 15px; }

/* 移动端搜索按钮（仅小屏显示） */
.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 { margin: 0; width: 15px; height: 15px; }
.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: 54px;
  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: #fff;
  background: var(--accent);
  border-color: 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: #fff; background: var(--accent);
  border-color: var(--accent);
}
.total-count { margin-left: auto; font-size: 12px; color: var(--text-light); }

/* ═══════════════════════════════════════════════════
   卡片列表 - 双列瀑布流
═══════════════════════════════════════════════════ */
.post-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ═══════════════════════════════════════════════════
   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); }

/* 分类角标 */
.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(245,158,11,.15) !important;
  color: #f59e0b !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(26,188,156,.25);
  transition: background .2s;
}
.tag:hover { background: rgba(26,188,156,.25); }

.post-cover { margin: 24px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* 文章页上下横幅广告（尺寸与列表页顶部轮播一致：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; }
.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(26,188,156,.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(26,188,156,.08);
  border: 1px dashed rgba(26,188,156,.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(26,188,156,.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: #17a388;
  box-shadow: 0 2px 8px rgba(26,188,156,.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(26,188,156,.10);
  border: 1px solid rgba(26,188,156,.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(26,188,156,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(26,188,156,.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(26,188,156,.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: #fff; 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(26,188,156,.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(520px, calc(100vw - 24px));
  width: 100%; padding: 20px;
  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: 12px; margin-bottom: 4px; }
.ad-popup-grid-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 6px 10px; background: var(--bg-hover); border-radius: 12px;
  color: var(--text); transition: background .15s, transform .15s;
  text-decoration: none; min-width: 0;
}
.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;
  width: 100%; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: block; padding: 0 2px;
}
.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(26,188,156,.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(26,188,156,.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(26,188,156,.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(26,188,156,.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(26,188,156,.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(26,188,156,.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(26,188,156,.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: #10b981; }
.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: #fff; border-radius: 6px; font-size: 13px; font-weight: 600; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (min-width: 960px) {
  .post-list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .header-search { display: flex; }
  .search-btn { display: none; }
}
@media (max-width: 959px) and (min-width: 641px) {
  .post-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .header-search { display: flex; }
  .search-btn { display: none; }
}
@media (max-width: 640px) {
  body { padding-bottom: 64px; }
  .post-list { grid-template-columns: 1fr; gap: 10px; }
  .header-search { display: none; }
  .search-btn { display: flex; }
  .logo-slogan { display: none; }
  .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; }
  .logo-img { height: 34px; max-width: 130px; }
  .search-page-bar { flex-direction: column; }
}

/* 社交图标 (Header) — 正式样式见 1735 行"顶部快捷 icon"段 */

/* ═══════════════════════════════════════════════════
   卡片改进：阴影 / 圆角 / 懒加载渐显
═══════════════════════════════════════════════════ */
.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, #0d1f1a 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: #fff; 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); }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--bg-hover); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all .2s;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-glow); }
.footer-social a svg { width: 16px; height: 16px; margin: 0; }
@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: #fff; 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(26,188,156,.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;
  }
}


/* ═══════════════════════════════════════════════════
   51cg1 风格 footer
═══════════════════════════════════════════════════ */
.site-footer {
  margin-top: 40px;
  padding: 28px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-card, #111);
}
.site-footer .container { max-width: var(--max-width); padding: 0 16px; }

/* 顶部 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;
}

/* 底部社交图标（仅 TG + email）*/
.footer-social {
  display: flex; gap: 18px; justify-content: center;
  margin: 22px 0 14px;
}
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-hover, rgba(255,255,255,.06));
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim, #9a9aa8);
  transition: all .2s;
}
.footer-social a:hover {
  background: var(--accent); color: #000; transform: translateY(-1px);
}
.footer-social svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.footer-copy {
  text-align: center;
  color: var(--text-light, #636370);
  font-size: 12px; margin-top: 8px;
}

/* 老版 .footer-links 隐藏（被新 list 替代） */
.footer-links { display: 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; }
}


/* ═══════════════════════════════════════════════════
   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(26, 188, 156, .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); }


/* ═══════════════════════════════════════════════════
   Header 顶部快捷 icon (搜索框一侧)
═══════════════════════════════════════════════════ */
.header-social-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
}
.header-social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  transition: background-color .2s ease,
              color .2s ease,
              border-color .2s ease,
              transform .15s ease,
              box-shadow .2s ease;
}
.header-social-link::before {
  /* 悬停时一层极淡的 accent 光晕,放底层,不影响 SVG */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(26,188,156,.18), transparent 70%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.header-social-link:hover {
  color: var(--accent);
  background: rgba(26, 188, 156, 0.10);
  border-color: rgba(26, 188, 156, 0.28);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(26, 188, 156, .12);
}
.header-social-link:hover::before { opacity: 1; }
.header-social-link:active {
  transform: translateY(0);
  background: rgba(26, 188, 156, 0.18);
  box-shadow: 0 1px 3px rgba(26, 188, 156, .2);
}
.header-social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.header-social-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.header-social-link:hover svg { transform: scale(1.08); }

/* 手机端: 顶部栏太挤, 隐藏 (底部已有完整入口) */
@media (max-width: 768px) {
  .header-social-nav { display: none; }
}


/* ═══════════════════════════════════════════════════
   分类导航动画优化 + 滚动提示
═══════════════════════════════════════════════════ */
.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(26, 188, 156, .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;
  }
}


/* ═══════════════════════════════════════════════════
   首页热榜 TOP 组件 (v2)
═══════════════════════════════════════════════════ */
.hot-board {
  margin: 20px 0 24px;
  background: linear-gradient(135deg, rgba(26,188,156,.06), rgba(26,188,156,.01));
  border: 1px solid rgba(26,188,156,.18);
  border-radius: 12px;
  padding: 14px 16px 10px;
}
.hot-board-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}
.hot-board-title {
  font-size: 15px; font-weight: 700;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.hot-board-more {
  flex-shrink: 0;
  font-size: 12px; color: var(--text-dim, #9a9aa8);
  text-decoration: none;
  white-space: nowrap;
}
.hot-board-more:hover { color: var(--accent); }

.hot-board-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 16px;
}
.hot-item {
  min-width: 0;
  overflow: hidden;
}
.hot-item-link {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 2px;
  border-bottom: 1px dashed rgba(255,255,255,.05);
  color: var(--text-dim, #9a9aa8);
  text-decoration: none;
  transition: color .15s;
  min-width: 0;
}
.hot-item-link:hover { color: var(--accent); }
.hot-rank {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 4px;
  font-size: 11px; font-weight: 700;
  color: var(--text-muted, #636370);
  background: rgba(255,255,255,.04);
  font-family: -apple-system, sans-serif;
}
.hot-rank-1 .hot-rank { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.hot-rank-2 .hot-rank { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }
.hot-rank-3 .hot-rank { background: linear-gradient(135deg, #eab308, #ca8a04); color: #fff; }
.hot-title {
  flex: 1 1 0; min-width: 0;
  font-size: 13px; font-weight: 500;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}
.hot-stat {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-muted, #636370);
  font-family: -apple-system, sans-serif;
  white-space: nowrap;
}

/* 移动端单列 */
@media (max-width: 640px) {
  .hot-board-list { grid-template-columns: 1fr; }
  .hot-board { padding: 12px 12px 8px; }
  .hot-board-title { font-size: 14px; }
  .hot-title { font-size: 13px; }
}



/* ═══════════════════════════════════════════════════
   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(26,188,156,.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(26,188,156,.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(26,188,156,.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: #fbbf24; 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: #1abc9c; }

.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, #1abc9c22, #1abc9c08);
  border: 1px solid rgba(26,188,156,.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, #1abc9c, #16a085);
  color: #fff;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(26,188,156,.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(26,188,156,.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: #1abc9c; }

.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: #fbbf24; }


/* ═══════════════════════════════════════════════════
   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(26,188,156,.06);
  border: 1px solid rgba(26,188,156,.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, #1abc9c, #16a085) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 10px rgba(26,188,156,.3);
}
.share-main-btn-dl:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26,188,156,.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; }
}
