/* ── CSS 变量（极简美学高级深空灰主题 / 去AI感）─────────────────────────── */
:root {
  --bg:          #0a0a0c;
  --bg-card:     #121214;
  --bg-header:   rgba(10, 10, 12, 0.85); 
  --bg-hover:    #18181b;
  --border:      #27272a;
  --text:        #e4e4e7;
  --text-muted:  #a1a1aa;
  --text-light:  #71717a;
  --accent:      #f4f4f5;       /* 取消浮夸青蓝，使用极简高级白/浅灰作为强调 */
  --accent-dark: #d4d4d8;
  --tag-bg:      #18181b;
  --tag-text:    #d4d4d8;
  --badge-bg:    #27272a;
  --radius:      16px;          /* 更大的圆角 (Squircle) */
  --radius-sm:   8px;
  --shadow:      0 4px 20px rgba(0,0,0,0.5);
  --max-width:   1200px;
  --font:        -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", sans-serif;
}

/* ── Reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
svg { vertical-align: middle; margin-right: 6px; margin-top: -2px; }

/* ── 屏幕阅读器专用（SEO隐藏H1） ────────────────── */
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }

/* ── Container ───────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }

/* ── Header ──────────────────────────────────────── */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.site-header .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  height: 60px;
}
.logo { display: flex; align-items: center; gap: 8px;}
.logo-icon { color: var(--text); display: flex; align-items: center; }
.logo-icon svg { margin: 0; }
.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo-slogan {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
  letter-spacing: 0;
  white-space: nowrap;
}

/* header-inner flex: logo left, search right */
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.search-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; justify-content: center; align-items: center;
  transition: all .2s;
}
.search-btn svg { margin: 0; }
.search-btn:hover { border-color: var(--text); color: var(--text); }

/* 分类导航 */
.category-nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.category-nav .container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 16px;
  height: 44px;
  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;
}
.cat-link:hover, .cat-link.active {
  color: var(--text);
  background: var(--bg-hover);
  border-color: var(--border);
}

/* ── 广告图片占位 (专业化) ──────────────────────── */
.global-top-ad { margin: 20px 0; display: flex; justify-content: center; }
.ad-banner-wrapper {
  width: 100%; margin: 16px 0; grid-column: 1 / -1;
  position: relative;
}

/* 轮播容器 */
.ad-carousel {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  height: 90px;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

/* 单张幻灯片 */
.ad-slide {
  display: none;
  width: 100%; height: 100%;
}
.ad-slide.active { display: block; }

/* 旧版 .ad-banner 兼容 */
.ad-banner {
  width: 100%; max-width: 960px; margin: 0 auto;
  height: 90px; border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden; position: relative; transition: opacity 0.3s;
}
.ad-banner:hover { opacity: 0.9; }

/* 轮播指示点 */
.ad-carousel-dots {
  display: flex; gap: 6px; justify-content: center; margin-top: 8px;
}
.ad-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border); cursor: pointer; transition: background .2s;
}
.ad-dot.active { background: var(--accent); }

.ad-link-img {
  display: block; width: 100%; height: 100%; position: relative;
}
.ad-img-bg {
  width: 100%; height: 100%; object-fit: cover;
}
.ad-badge-minimal {
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── Main Layout ─────────────────────────────────── */
.site-main { padding: 0 0 60px; }
.layout-main { max-width: var(--max-width); }

.sort-bar {
  display: flex; gap: 8px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.sort-btn {
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
  color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border);
}
.sort-btn:hover, .sort-btn.active { color: var(--text); border-color: var(--text-muted); }
.total-count { margin-left: auto; font-size: 12px; color: var(--text-light); align-self: center; }

/* ── Card List (PC端双排，移动端单排瀑布流) ────────────── */
.post-list { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 24px; 
}

/* ── Card (大封面结构还原) ─────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.2s;
  overflow: hidden;
}
.card:hover { border-color: rgba(255,255,255,0.1); box-shadow: var(--shadow); transform: translateY(-3px); }
.card-link { display: flex; flex-direction: column; }

.card-img-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: var(--bg-hover);
}
.card-img { width: 100%; height: 100%; object-fit: cover; }
.card-img-placeholder { width: 100%; height: 100%; background: var(--border); }
.card-badge {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(0,0,0,0.7); color: #fff; border: 1px solid rgba(255,255,255,0.1);
  font-size: 10px; padding: 2px 6px; border-radius: 4px; backdrop-filter: blur(4px);
}

.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card-title {
  font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  letter-spacing: -0.3px;
}
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.card-tag { font-size: 12px; color: var(--text-light); }
.card-meta {
  display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); font-weight: 500;
}
.card-meta span { display: flex; align-items: center; }

/* ── Post Detail ─────────────────────────────────── */
.post-detail { max-width: 800px; margin: 40px auto 0; }

.post-header { margin-bottom: 32px; }
.post-title { font-size: 32px; font-weight: 800; line-height: 1.3; margin-bottom: 16px; letter-spacing: -0.5px; }
.post-meta { display: flex; gap: 24px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; font-weight: 500; }
.post-meta span { display: flex; align-items: center; }

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.tag { font-size: 13px; color: var(--text); background: var(--bg-hover); padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); }
.tag:hover { background: var(--border); }

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

.post-content { font-size: 17px; line-height: 1.8; color: #f4f4f5; font-weight: 400; word-break: break-word; overflow-wrap: break-word; }
.post-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 24px 0; border: 1px solid var(--border); }
.post-content p { margin-bottom: 20px; }
.post-content h2 { font-size: 22px; font-weight: 700; margin: 40px 0 20px; color: #fff; padding-bottom: 10px; 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: 24px 0;
  border: 1px solid var(--border);
  display: block;
  background: #000;
}

/* ── Squircle Icon Grid (真正的圆角图标样式) ────────── */
.related-posts { margin: 60px auto 0; max-width: 800px; border-top: 1px solid var(--border); padding-top: 40px; }
.related-title { font-size: 16px; font-weight: 600; margin-bottom: 24px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.related-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 84px; /* 图标卡整体宽度，限制折行 */
  gap: 10px;
}
.squircle-icon {
  width: 84px;
  height: 84px;
  border-radius: 22%; /* 苹果风大圆角比例 */
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-icon-item:hover .squircle-icon {
  transform: scale(1.05);
  border-color: var(--text-muted);
}
.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, #18181b, #27272a); 
  color: var(--text-light);
}

.related-icon-title {
  font-size: 12px;
  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(--text); }

/* ── Comments ────────────────────────────────────── */
.comments-section { margin: 40px auto 0; border-top: 1px solid var(--border); padding-top: 40px; max-width: 800px; }
.comments-title { font-size: 18px; font-weight: 700; margin-bottom: 24px; }
.comments-notice { font-size: 13px; color: var(--text-secondary, #888); margin-bottom: 16px; padding: 8px 12px; background: var(--bg-secondary, #f5f5f5); border-radius: 6px; }
.comment-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 13px; font-weight: 500; }
.comment-floor { color: var(--text-muted); }
.comment-user { color: var(--text); 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; }
.comment-body { font-size: 15px; line-height: 1.6; color: var(--text-muted); padding-left: 24px; }

/* ── Footer ──────────────────────────────────────── */
.site-footer { margin-top: 80px; padding: 40px 0; border-top: 1px solid var(--border); background: var(--bg); }
.footer-links { display: flex; gap: 32px; justify-content: center; margin-bottom: 24px; }
.footer-links a { font-size: 13px; font-weight: 600; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { text-align: center; font-size: 12px; color: var(--text-light); }

/* ── 搜索展开栏 ─────────────────────────────────── */
.search-bar {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 12px 0;
}
.search-bar .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-input {
  flex: 1;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  font-family: var(--font);
}
.search-input:focus { border-color: var(--text-muted); }
.search-submit {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: opacity .2s;
  font-family: var(--font);
  flex-shrink: 0;
}
.search-submit:hover { opacity: 0.85; }

/* ── 广告卡（与普通卡片相同布局，插入网格）────────── */
.ad-card { opacity: 0.9; }
.ad-card:hover { opacity: 1; }
.ad-mark {
  background: rgba(255,180,0,0.18) !important;
  color: #f59e0b !important;
  font-size: 9px !important;
  letter-spacing: 0.5px;
}
/* 空广告位占位 */
.ad-placeholder-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    var(--bg-card),
    var(--bg-card) 10px,
    var(--border) 10px,
    var(--border) 12px
  );
}
.ad-slot-label {
  font-size: 13px;
  color: var(--text-light);
  background: var(--bg-card);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px dashed var(--border);
}
/* 顶部横幅空占位 */
.ad-placeholder {
  height: 80px;
  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: 13px;
}

/* ── 详情底部图标 banner ─────────────────────────── */
.icon-banner-placeholder { opacity: 0.4; pointer-events: none; }
.icon-banner-section {
  margin: 40px 0 0;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.icon-banner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.icon-banner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.icon-banner-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.icon-banner-icon img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: 16px;
}
.icon-banner-icon .icon-emoji {
  font-size: 32px; line-height: 1;
}
.icon-banner-item:hover .icon-banner-icon {
  transform: scale(1.1);
}
.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;
  transition: color .2s;
}
.icon-banner-item:hover .icon-banner-label { color: var(--text); }

/* ── 面包屑 ──────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--border); }

/* ── 分页 ────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  padding: 16px 0;
}
.page-btn {
  padding: 7px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-muted);
  transition: all .2s;
  font-family: var(--font);
}
.page-btn:hover { border-color: var(--text-muted); color: var(--text); }
.page-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 6px;
  font-size: 14px; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg-card); transition: all .2s;
}
.page-num:hover { border-color: var(--text-muted); color: var(--text); }
.page-num.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }
.page-dots { color: var(--text-muted); font-size: 14px; padding: 0 2px; }

/* ── 空状态 ──────────────────────────────────── */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.empty-state p { font-size: 15px; margin-bottom: 20px; }
.btn-back {
  display: inline-block; padding: 8px 20px;
  background: var(--accent); color: #000; border-radius: 6px;
  font-size: 13px; font-weight: 600; text-decoration: none;
}

/* ── 分类页标题 ──────────────────────────────────── */
.page-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; }
.page-count { font-size: 13px; color: var(--text-light); }

/* ── 搜索页 ──────────────────────────────────────── */
.search-page { max-width: 900px; margin: 0 auto; padding-top: 8px; }
.search-page-bar { display: flex; gap: 12px; margin-bottom: 16px; }
.search-page-bar .search-input { flex: 1; font-size: 15px; }
.search-page-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
mark {
  background: rgba(244,244,245,0.15);
  color: var(--text);
  border-radius: 3px;
  padding: 0 2px;
}

/* ── 热搜排行 ─────────────────────────────────────── */
.hot-tags-section { margin: 8px 0 32px; }
.hot-tags-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--text);
  margin-bottom: 16px;
}
.hot-tags-title svg { color: var(--text-muted); }
.hot-tags-list { display: flex; flex-direction: column; gap: 0; }
.hot-tag-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; 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: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: var(--text-muted); background: var(--bg-hover);
  border-radius: 6px; flex-shrink: 0;
}
.hot-tag-rank.top3 { background: var(--text); color: var(--bg); }
.hot-tag-name { font-size: 14px; font-weight: 500; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 960px) {
  .post-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .post-list { grid-template-columns: 1fr; gap: 16px; }
  .main-nav { display: none; }
  .logo-text { font-size: 18px; }
  .logo-slogan { display: none; }
  .card-img-wrap { aspect-ratio: 16 / 9; }
  .post-title { font-size: 24px; }
  .icon-grid { justify-content: space-around; gap: 12px; }
  .squircle-icon { width: 72px; height: 72px; }
  .related-icon-item { width: 72px; }
  .ad-banner { height: 64px; }
  .post-meta { flex-direction: column; gap: 8px; }
  /* 图标 banner 手机端 */
  .icon-banner-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .icon-banner-icon { width: 50px; height: 50px; border-radius: 13px; }
  .icon-banner-icon img { border-radius: 13px; }
  .icon-banner-icon .icon-emoji { font-size: 24px; }
  .icon-banner-label { font-size: 10px; }
  /* 搜索 */
  .search-page-bar { flex-direction: column; }
  /* 手机端列表广告只显示1个 */
  .ad-card-secondary { display: none; }
}

/* ── 详情页标题下文字广告 ────────────────────────── */
.post-text-ad-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 20px;
}
.post-text-ad-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  transition: background .15s;
}
.post-text-ad-link:hover { background: var(--bg-card); }
.post-text-ad-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(245,158,11,.15);
  color: #f59e0b;
  flex-shrink: 0;
  letter-spacing: .5px;
}
.post-text-ad-content { flex: 1; }
.post-text-ad-arrow { color: var(--text-muted); font-size: 12px; }
.post-text-ad-placeholder { pointer-events: none; opacity: .35; }

/* ── 首页弹窗广告 ────────────────────────────────── */
.ad-popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.75);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.ad-popup-box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 360px; width: 100%;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  animation: popupIn .25s ease;
}
.ad-popup-box-single {
  max-width: 480px;
  padding: 14px;
  background: transparent;
  border: none;
  box-shadow: none;
}
@keyframes popupIn {
  from { opacity:0; transform:scale(.92) translateY(12px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.ad-popup-close {
  position: absolute; top: 12px; right: 14px;
  background: var(--bg-hover); border: 1px solid var(--border);
  color: var(--text-muted); width: 28px; height: 28px;
  border-radius: 50%; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.ad-popup-close:hover { background: var(--border); color: var(--text); }

/* 单图弹窗（按原图尺寸全量展示）*/
.ad-popup-single { display: block; text-align: center; }
.ad-popup-img {
  width: 100%; border-radius: 12px;
  object-fit: contain;
  display: block; margin-bottom: 8px;
  max-height: 80vh;
}
.ad-popup-title {
  font-size: 15px; font-weight: 600;
  color: #fff; margin-bottom: 4px;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.ad-popup-box-single .ad-popup-close {
  top: -8px; right: -8px;
  background: rgba(0,0,0,.7); border-color: rgba(255,255,255,.15);
  color: #fff;
}
.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: 14px; font-weight: 600; text-align: center;
  margin-bottom: 14px; color: var(--text);
}
.ad-popup-grid {
  display: grid;
  grid-template-columns: repeat(3, 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;
  text-decoration: none; color: var(--text);
  transition: background .15s;
}
.ad-popup-grid-item:hover { background: var(--border); }
.ad-popup-grid-icon {
  width: 44px; height: 44px;
  border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; background: var(--bg-card);
}
.ad-popup-grid-icon img { width: 100%; height: 100%; object-fit: cover; }
.ad-popup-grid-label {
  font-size: 11px; text-align: center;
  color: var(--text-muted); line-height: 1.3;
  max-width: 60px; word-break: break-all;
}

/* 弹窗底部 */
.ad-popup-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.ad-popup-skip {
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); padding: 5px 16px;
  border-radius: 6px; cursor: pointer; font-size: 13px;
  transition: all .15s;
}
.ad-popup-skip:hover { border-color: var(--text-muted); color: var(--text); }
.ad-popup-ad-badge {
  font-size: 11px; color: var(--text-muted);
  background: var(--bg-hover); padding: 2px 8px; border-radius: 4px;
}

/* 评论折叠 */
.comment-collapsed { display: none !important; }
.comments-expand-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 24px; margin-top: 20px;
  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 .3s ease; font-family: var(--font);
  letter-spacing: 0.2px;
}
.comments-expand-btn .expand-icon { display: flex; align-items: center; }
.comments-expand-btn .expand-icon svg { opacity: .5; }
.comments-expand-btn .expand-text { transition: color .2s; }
.comments-expand-btn .expand-arrow { display: flex; align-items: center; transition: transform .3s ease; }
.comments-expand-btn:hover {
  border-color: var(--text-light);
  color: var(--text); background: var(--bg-hover);
}
.comments-expand-btn:hover .expand-icon svg { opacity: .8; }
.comments-expand-btn:hover .expand-arrow { transform: translateY(2px); }
.comments-expand-btn:active { transform: scale(0.98); }

/* ── SEO: 首页 H1 标题 ──────────────────────────── */
.page-h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
