/* 嗨出国主题 · 手机优先
 * 颜色：配色方案在后台「外观 → 设置外观」选，header.php 内联输出 --c-* 变量（hc_color_vars），这里的是亮青默认值。
 * 品牌色 --c-primary 用于 Logo、按钮、链接、选中状态；--c-accent（认证色）只用于认证标识、关注和私信按钮。
 * 其余一律中性灰，别再写死带颜色倾向的色值。
 */
:root {
  --c-primary: #00A3A3; --c-primary-rgb: 0,163,163; --c-primary-dark: #007A7A; --c-soft: #E3F6F6;
  --c-accent: #FF8A00; --c-accent-rgb: 255,138,0; --c-accent-ink: #2a1900; --c-accent-text: #8a5600; --c-dot: #FFB020;
  --bg: #f5f6f8; --surface: #fff; --text: #1f2329; --text-2: #4b5563; --muted: #8a9099;
  --line: #e5e7eb; --line-2: #f0f1f3;
  --ink-dark: #1b1f26; --overlay: 12,16,22;
  --r: 8px; --r-sm: 6px;
  /* 卡片用细边框代替阴影；悬停才浮起 */
  --shadow: 0 0 0 1px var(--line);
  --shadow-lg: 0 0 0 1px var(--line), 0 8px 24px rgba(17,24,39,.08);
  --wrap: 1200px; --gap: 16px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-primary); }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.wrap-narrow { max-width: 820px; }
.block { padding-top: 28px; padding-bottom: 8px; }
.block:last-child { padding-bottom: 40px; }
.block-tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 28px; padding: 32px 0; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px;
  border-radius: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); }
.btn-accent { background: var(--c-accent); color: var(--c-accent-ink); }
.btn-accent:hover { color: var(--c-accent-ink); box-shadow: 0 4px 14px rgba(var(--c-accent-rgb),.4); }
.btn-accent[data-on] { background: rgba(var(--c-accent-rgb),.14); color: var(--c-accent-text); }
.btn-accent-ghost { border: 1.5px solid var(--c-accent); color: var(--c-accent-text); background: var(--surface); }
.btn-accent-ghost:hover { background: rgba(var(--c-accent-rgb),.08); color: var(--c-accent-text); }
.btn-disabled { border: 1px solid var(--line); color: var(--muted); background: var(--line-2); cursor: not-allowed; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-2); }
.icon-btn:hover { background: var(--line-2); color: var(--c-primary); }
.icon-btn .ic { width: 22px; height: 22px; }

/* ---------- 提醒条 ---------- */
.notice-bar { background: #fff7e8; color: #6b4300; font-size: 13px; border-bottom: 1px solid #f6e3bd; }
.notice-bar .wrap { display: flex; align-items: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
/* 一行放得下就居中；折成多行时整段靠左（文字块自己收窄到内容宽度再居中）。左边留出和关闭按钮一样宽，居中才不偏 */
.notice-bar .notice-line { flex: 1; display: flex; justify-content: center; }
@media (min-width: 720px) { .notice-bar .notice-line { padding-left: 26px; } }
.notice-bar .notice-text { text-align: left; }
.notice-bar button { color: #a37a33; display: flex; }

/* ---------- 顶栏 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
/* 毛玻璃只在电脑上开：backdrop-filter 会让手机抽屉菜单(fixed)以顶栏为参照，跑出屏幕 */
@media (min-width: 960px) { .site-header { background: rgba(255,255,255,.94); backdrop-filter: saturate(1.6) blur(10px); } }
.header-inner { display: flex; align-items: center; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-icon { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex: none; }
.brand-logo { height: 36px; width: auto; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: .02em; color: var(--text); display: inline-flex; align-items: center; }
.brand-word { height: 22px; width: auto; display: block; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.user-chip { display: flex; padding: 2px; }

.nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 320px); background: var(--surface); z-index: 70;
  transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; padding: 8px 12px 24px; overflow-y: auto; }
.nav.open { transform: none; box-shadow: var(--shadow-lg); }
.nav-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 12px; font-weight: 700; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.nav a { padding: 12px 10px; border-radius: var(--r-sm); font-size: 16px; color: var(--text); }
.nav a.on { color: var(--c-primary); background: rgba(var(--c-primary-rgb),.08); font-weight: 600; }
.nav-mask { position: fixed; inset: 0; background: rgba(var(--overlay),.4); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s; }
.nav-mask.open { opacity: 1; pointer-events: auto; }

.search-bar { border-top: 1px solid var(--line); background: var(--surface); }
.search-bar .wrap { display: flex; align-items: center; gap: 10px; height: 60px; color: var(--muted); }
.search-bar input { flex: 1; border: 0; outline: 0; font-size: 16px; background: none; height: 100%; min-width: 0; }

@media (min-width: 960px) {
  .nav { position: static; transform: none; width: auto; flex-direction: row; padding: 0; background: none; overflow: visible; margin-left: 24px; gap: 2px; }
  .nav-head, .nav-toggle, .nav-mask { display: none; }
  .nav a { padding: 8px 12px; font-size: 15px; color: var(--text-2); }
  .nav a:hover { color: var(--c-primary); }
  .nav a.on { background: none; position: relative; }
  .nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -11px; height: 3px; border-radius: 3px; background: var(--c-primary); }
}

/* ---------- 首页大区 ---------- */
.hero { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--line); padding: 28px 0 24px; overflow: hidden; }
.hero-text h1 { font-size: 26px; font-weight: 800; }
.hero-text p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.hero-search { margin-top: 18px; display: flex; align-items: center; max-width: 680px; height: 48px; background: var(--surface); border: 2px solid var(--c-primary); border-radius: 10px; overflow: hidden; }
.hero-search > .ic { margin: 0 4px 0 14px; color: var(--muted); width: 20px; height: 20px; }
.hero-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 8px; font-size: 15px; background: transparent; }
.hero-search button { height: 100%; padding: 0 22px; background: var(--c-primary); color: #fff; font-weight: 700; font-size: 15px; }
.hero-search button:hover { background: var(--c-primary-dark); }
.hero-cats { margin-top: 14px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gap) * -1); margin-right: calc(var(--gap) * -1); padding: 0 var(--gap); }
.hero-cats::-webkit-scrollbar { display: none; }
.hero-cats a { flex: none; height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--c-soft); color: var(--c-primary-dark); font-size: 14px; font-weight: 600; }
.hero-cats a:hover { background: var(--c-primary); color: #fff; }
.hero-trust { margin-top: 14px; display: flex; align-items: flex-start; gap: 6px; font-size: 13px; color: var(--text-2); }
.hero-trust .ic { color: var(--c-primary); margin-top: 2px; }
.hero-trust b { color: var(--text); }

@media (min-width: 900px) {
  .hero { padding: 44px 0 32px; }
  .hero-text h1 { font-size: 36px; }
  .hero-text p { font-size: 16px; }
  .hero-search { height: 54px; margin-top: 22px; }
  .hero-search input { font-size: 16px; }
  .hero-cats { margin-left: 0; margin-right: 0; padding: 0; flex-wrap: wrap; justify-content: center; }
  /* 电脑上整块居中（手机上分类一排横滑，保持从左开始） */
  .hero .wrap { text-align: center; }
  .hero-search { margin-left: auto; margin-right: auto; text-align: left; }
  .hero-trust { justify-content: center; }
}
/* ---------- 快讯条 ---------- */
.flash-strip { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; display: grid; gap: 8px; }
.flash-label { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c-primary); }
.flash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.flash-list li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.flash-list li:last-child { border-bottom: 0; }
.flash-list time { color: var(--muted); font-size: 13px; flex: none; font-variant-numeric: tabular-nums; }
.flash-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flash-strip .more { justify-self: end; }
@media (min-width: 900px) {
  .flash-strip { grid-template-columns: auto 1fr auto; align-items: start; gap: 24px; padding: 18px 24px; }
  .flash-label { padding-top: 6px; }
  .flash-list { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .flash-list li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
  .flash-strip .more { padding-top: 6px; }
}

/* ---------- 区块头 ---------- */
.block-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.block-head h2 { font-size: 20px; font-weight: 800; position: relative; padding-left: 12px; }
.block-head h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--c-primary); }
.block-head p { color: var(--muted); font-size: 13px; flex-basis: 100%; order: 3; }
.more { margin-left: auto; color: var(--c-primary); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.more .ic { width: 1em; height: 1em; }
@media (min-width: 900px) { .block { padding-top: 40px; } .block-head h2 { font-size: 24px; } .block-head p { flex-basis: auto; order: 0; } }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid { gap: 20px; } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card, .card-row { position: relative; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover, .card-row:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-link { position: absolute; inset: 0; z-index: 1; }
.card .meta-author, .card .tag-cat, .card-row .meta-author, .card-row .tag-cat { position: relative; z-index: 2; }
.thumb { aspect-ratio: 16/10; background: var(--line-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(var(--c-primary-rgb),.14), rgba(var(--c-primary-rgb),.05)); }
.thumb-empty span { color: var(--c-primary); font-weight: 700; font-size: 15px; opacity: .7; }
.card .body { padding: 10px 12px 12px; }
.card h3 { font-size: 15px; font-weight: 600; line-height: 1.45; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.tag-cat { display: inline-block; font-size: 12px; color: var(--c-primary-dark); background: var(--c-soft); padding: 1px 7px; border-radius: 4px; font-weight: 600; }
.tag-cat-light { background: rgba(255,255,255,.2); color: #fff; }
.meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); min-width: 0; }
.meta-author { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--text-2); }
.meta-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; flex: none; }
@media (max-width: 420px) { .card .meta .dot, .card .meta time { display: none; } }

.list { display: grid; gap: 12px; }
.card-row { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px; }
.card-row .thumb { aspect-ratio: 4/3; border-radius: var(--r-sm); }
.card-row .body { min-width: 0; display: flex; flex-direction: column; }
.card-row h3 { font-size: 15px; font-weight: 600; line-height: 1.45; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-row .tag-cat { align-self: flex-start; }
.card-row .excerpt { display: none; color: var(--text-2); font-size: 14px; margin-top: 6px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-row .meta { margin-top: auto; padding-top: 6px; }
@media (min-width: 720px) {
  .card-row { grid-template-columns: 240px 1fr; gap: 20px; padding: 16px; }
  .card-row .thumb { aspect-ratio: 16/10; }
  .card-row h3 { font-size: 18px; }
  .card-row .excerpt { display: -webkit-box; }
}

/* ---------- 头像 / 认证 ---------- */
.avatar { border-radius: 50%; object-fit: cover; flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 700;
  background: hsl(var(--h, 185) 40% 90%); color: hsl(var(--h, 185) 45% 30%); }
.avatar-xs { width: 20px; height: 20px; font-size: 11px; }
.avatar-sm { width: 30px; height: 30px; font-size: 14px; }
.avatar-md { width: 44px; height: 44px; font-size: 18px; }
.avatar-lg { width: 64px; height: 64px; font-size: 26px; }
.avatar-xl { width: 96px; height: 96px; font-size: 40px; box-shadow: 0 0 0 4px #fff; }
.badge-cert { display: inline-flex; align-items: center; gap: 3px; color: var(--c-accent); flex: none; }
.badge-cert svg { width: 16px; height: 16px; }
.badge-cert em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--c-accent-text); background: rgba(var(--c-accent-rgb),.14); padding: 1px 8px; border-radius: 999px; }

/* ---------- 服务商卡片 ---------- */
.pv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pv-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 12px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: box-shadow .2s, transform .2s; }
.pv-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; }
.pv-name { font-weight: 700; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.pv-sub { font-size: 12px; color: var(--muted); }
@media (min-width: 640px) { .pv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .pv-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } .pv-grid-lg { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 专题卡片 ---------- */
.topic-card { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--c-primary-dark); color: #fff; aspect-ratio: 16/10; box-shadow: var(--shadow); }
.topic-card:hover { color: #fff; box-shadow: var(--shadow-lg); }
.topic-cover { position: absolute; inset: 0; }
.topic-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .4s; }
.topic-card:hover img { transform: scale(1.04); }
.topic-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 12px 12px; background: linear-gradient(transparent, rgba(var(--overlay),.85)); }
.topic-body h3 { font-size: 15px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-body span { font-size: 12px; opacity: .8; }

/* ---------- 列表页头 ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 20px 0 18px; }
.page-head h1 { font-size: 24px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.page-head h1 .ic { color: var(--c-primary); }
.page-desc { color: var(--text-2); margin-top: 6px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumb a:hover { color: var(--c-primary); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin-top: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--line-2); color: var(--text-2); font-size: 14px; white-space: nowrap; }
.chip:hover { color: var(--c-primary); }
.chip.on { background: var(--c-primary); color: #fff; }
.chip-static { height: 26px; font-size: 12px; padding: 0 10px; }
@media (min-width: 900px) { .page-head { padding: 32px 0 26px; } .page-head h1 { font-size: 32px; } }

/* ---------- 分页 ---------- */
.page-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; list-style: none; padding: 24px 0 0; margin: 0; }
.page-nav a, .page-nav span { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 10px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.page-nav .on a { background: var(--c-primary); color: #fff; }

/* ---------- 快讯时间线 ---------- */
.timeline { position: relative; }
.tl-day { position: sticky; top: 60px; z-index: 5; background: var(--bg); padding: 14px 0 8px; display: flex; align-items: baseline; gap: 10px; font-size: 18px; font-weight: 800; }
.tl-day small { font-size: 13px; color: var(--muted); font-weight: 400; }
.tl-list { list-style: none; margin: 0 0 8px; padding: 0 0 0 18px; border-left: 2px solid rgba(var(--c-primary-rgb),.18); }
.tl-item { position: relative; padding: 4px 0 16px 14px; }
.tl-item::before { content: ""; position: absolute; left: -25px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--c-primary); }
.tl-item time { font-size: 13px; color: var(--c-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.tl-body { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; margin-top: 4px; }
.tl-body h3 { font-size: 16px; font-weight: 700; }
.tl-body p { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.tl-tags { display: flex; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--c-primary); }

/* ---------- 文章页 ---------- */
.post-layout { display: grid; gap: 24px; padding-top: 20px; padding-bottom: 40px; }
.post-main { min-width: 0; }
.post-title { font-size: 24px; font-weight: 800; line-height: 1.35; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.post-meta .meta-author { color: var(--text); font-weight: 600; font-size: 14px; }
.post-cover { margin: 20px 0 0; border-radius: var(--r); overflow: hidden; }
.post-content { font-size: 17px; line-height: 1.85; margin-top: 20px; word-wrap: break-word; }
.post-content p, .post-content ul, .post-content ol, .post-content blockquote, .post-content table, .post-content figure { margin: 0 0 1.1em; }
.post-content h2 { font-size: 21px; margin: 1.6em 0 .7em; padding-left: 12px; border-left: 4px solid var(--c-primary); }
.post-content h3 { font-size: 18px; margin: 1.4em 0 .6em; }
.post-content img { border-radius: var(--r-sm); margin: 0 auto; }
.post-content a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-content blockquote { padding: 12px 16px; background: rgba(var(--c-primary-rgb),.06); border-left: 4px solid rgba(var(--c-primary-rgb),.5); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text-2); }
.post-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 15px; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 8px 10px; }
.post-content th { background: var(--line-2); }
.post-content strong { color: var(--text); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.post-topic { margin-top: 24px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; }
.post-topic-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.post-topic-head a { color: var(--c-primary); font-weight: 600; font-size: 14px; text-align: right; }
.post-topic ul { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: tp; }
.post-topic li { counter-increment: tp; display: flex; gap: 8px; padding: 6px 0; font-size: 14px; border-top: 1px solid var(--line-2); }
.post-topic li::before { content: counter(tp); color: var(--muted); min-width: 1.4em; font-variant-numeric: tabular-nums; }
.post-topic li.on a { color: var(--c-primary); font-weight: 600; }
.post-disclaimer { margin-top: 24px; font-size: 13px; background: var(--line-2); border-radius: var(--r-sm); padding: 12px 14px; display: grid; gap: 4px; line-height: 1.7; }
.pd-note { color: var(--text-2); }
.pd-warn { color: #b42318; font-weight: 600; }
.author-card { margin-top: 20px; display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.author-card-name { font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.author-card p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.author-card .pv-actions { grid-column: 1 / -1; }
.pv-actions { display: flex; gap: 10px; }
.pv-actions .btn { flex: 1; }
@media (min-width: 640px) { .author-card { grid-template-columns: auto 1fr auto; } .author-card .pv-actions { grid-column: auto; } .pv-actions .btn { flex: none; } }

.post-side { display: grid; gap: 16px; align-content: start; }
.side-box { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.side-box h2 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.card-mini { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.card-mini:first-child { border-top: 0; }
.card-mini a { flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-mini time { color: var(--muted); font-size: 12px; flex: none; padding-top: 2px; }
@media (min-width: 960px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 32px; }
  .post-title { font-size: 32px; }
  .post-side { position: sticky; top: 84px; }
}
.page-article .post-title { margin-bottom: 8px; }

/* ---------- 评论 ---------- */
.comments { margin-top: 32px; }
.comments > h2 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.respond { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; }
.respond textarea, .cm-fields input { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: var(--bg); outline: 0; font-size: 15px; }
.respond textarea:focus, .cm-fields input:focus { border-color: var(--c-primary); background: #fff; }
.cm-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.cm-as { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.cm-submit { display: flex; justify-content: flex-end; margin-top: 10px; }
.cancel-reply a { font-size: 13px; color: var(--muted); }
.cm-list { list-style: none; margin: 16px 0 0; padding: 0; }
.cm { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cm-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cm-head time { color: var(--muted); font-size: 12px; margin-left: auto; }
.cm-owner { font-size: 11px; background: rgba(var(--c-primary-rgb),.1); color: var(--c-primary); padding: 0 6px; border-radius: 4px; }
.cm-body { margin: 6px 0 0 38px; font-size: 15px; }
.cm-body p { margin: 0 0 .4em; }
.cm-reply { margin-left: 38px; font-size: 13px; color: var(--muted); }
.cm-children { margin-left: 38px; }
.cm-children .cm { border-bottom: 0; padding-bottom: 0; }

/* ---------- 服务商页 ---------- */
.pv-hero { position: relative; color: #fff; background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary)); padding: 28px 0 22px; overflow: hidden; }
.pv-hero::before { content: ""; position: absolute; inset: 0; background: var(--cover, none) center/cover; opacity: .28; }
.pv-hero-inner { position: relative; display: grid; gap: 14px; justify-items: center; text-align: center; }
.pv-info h1 { font-size: 24px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pv-info .badge-cert em { background: #fff; }
.pv-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin-top: 8px; font-size: 13px; opacity: .9; }
.pv-stats b { font-size: 17px; margin-right: 2px; }
.pv-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.pv-tags .chip { background: rgba(255,255,255,.18); color: #fff; }
.pv-hero .pv-actions { width: 100%; max-width: 360px; }
.pv-hero .btn-accent-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.pv-hero .btn-disabled { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.7); }
.pv-layout { display: grid; gap: 20px; }
.pv-about { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; align-self: start; }
.pv-about h2, .pv-posts > h2 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.pv-about p { color: var(--text-2); font-size: 14px; }
.pv-note { margin-top: 10px; font-size: 13px !important; color: var(--muted) !important; }
@media (min-width: 900px) {
  .pv-hero { padding: 48px 0 40px; }
  .pv-hero-inner { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; gap: 24px; align-items: center; }
  .pv-info h1 { justify-content: flex-start; font-size: 30px; }
  .pv-stats, .pv-tags { justify-content: flex-start; }
  .pv-hero .pv-actions { width: auto; }
  .pv-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 32px; }
  .pv-about { position: sticky; top: 84px; }
}

/* ---------- 专题页 ---------- */
.topic-hero { position: relative; color: #fff; background: linear-gradient(135deg, var(--c-primary-dark), var(--c-primary)); padding: 28px 0; overflow: hidden; }
.topic-hero::before { content: ""; position: absolute; inset: 0; background: var(--cover, none) center/cover; opacity: .3; }
.topic-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--overlay),.75), rgba(var(--overlay),.25)); }
.topic-hero .wrap { position: relative; z-index: 1; }
.topic-hero .crumb, .topic-hero .crumb a { color: rgba(255,255,255,.75); }
.topic-hero h1 { font-size: 26px; font-weight: 800; }
.topic-hero .page-desc { color: rgba(255,255,255,.88); max-width: 680px; }
.topic-count { margin-top: 10px; font-size: 13px; opacity: .8; }
.topic-section { font-size: 17px; font-weight: 800; margin: 14px 0 2px; color: var(--c-primary); }
@media (min-width: 900px) { .topic-hero { padding: 56px 0; } .topic-hero h1 { font-size: 36px; } }

/* ---------- 号召 / 404 ---------- */
.cta { margin-top: 32px; background: linear-gradient(135deg, rgba(var(--c-primary-rgb),.1), rgba(var(--c-primary-rgb),.03)); border: 1px solid rgba(var(--c-primary-rgb),.18); border-radius: var(--r); padding: 22px; display: grid; gap: 14px; justify-items: start; }
.cta p { font-size: 16px; font-weight: 600; }
@media (min-width: 720px) { .cta { grid-template-columns: 1fr auto; align-items: center; padding: 28px 32px; } }
.not-found { text-align: center; padding-top: 60px; padding-bottom: 80px; display: grid; gap: 16px; justify-items: center; }
.nf-code { font-size: 72px; font-weight: 900; color: rgba(var(--c-primary-rgb),.25); line-height: 1; }
.not-found h1 { font-size: 18px; font-weight: 600; color: var(--text-2); }
.nf-search { display: flex; gap: 8px; width: 100%; max-width: 420px; }
.nf-search input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; outline: 0; background: #fff; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink-dark); color: rgba(255,255,255,.72); margin-top: 40px; padding: 32px 0 20px; font-size: 14px; }
.footer-inner { display: grid; gap: 20px; }
.brand-footer .brand-name { color: #fff; }
.footer-about p { margin-top: 12px; max-width: 520px; line-height: 1.7; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-col h4 { margin: 0 0 4px; font-size: 14px; color: #fff; font-weight: 700; }
.footer-col a:hover { color: #fff; }
.footer-trust { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; }
.footer-trust .ic { color: var(--c-primary); margin-top: 2px; }
.footer-trust b { color: #fff; }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: rgba(255,255,255,.5); }
@media (min-width: 900px) { .footer-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } .footer-cols { grid-template-columns: repeat(auto-fill, 140px); grid-auto-flow: column; } }

/* ---------- 提示 ---------- */
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px); background: rgba(var(--overlay),.92); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 100; opacity: 0; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* 求助帖标签（插件字段 hc_kind=need） */
.tag-need { display: inline-block; font-size: 12px; color: #b45309; background: #fef3c7; padding: 1px 7px; border-radius: 4px; font-weight: 600; vertical-align: middle; }
.post-title .tag-need { font-size: 14px; vertical-align: 4px; }

/* ---------- 顶栏发布按钮 ---------- */
.btn-publish { margin: 0 4px; }
.btn-publish .ic { width: 18px; height: 18px; }
.btn-publish .pub-short { display: none; }
@media (max-width: 420px) { .btn-publish .pub-long { display: none; } .btn-publish .pub-short { display: inline; } .btn-publish { padding: 0 10px; gap: 2px; } }

/* ---------- 两栏：列表 + 侧栏 ---------- */
.cols { display: grid; gap: 20px; }
.cols-main { min-width: 0; }
@media (min-width: 1000px) { .cols { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; } }
.tabs-head { align-items: center; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex-basis: 100%; order: 3; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--line-2); color: var(--text-2); font-size: 14px; }
.tabs button:hover { color: var(--c-primary); }
.tabs button.on { background: var(--c-primary); color: #fff; font-weight: 600; }
@media (min-width: 720px) { .tabs { flex-basis: auto; order: 0; margin-left: auto; } }
.panel-more { margin-top: 14px; text-align: center; }

/* ---------- 侧栏 ---------- */
.side { display: grid; gap: 16px; align-content: start; }
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.side-head h2 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 6px; margin: 0; }
.side-head h2 .ic { color: var(--c-primary); }
.side-head .more { font-size: 13px; color: var(--c-primary); display: inline-flex; align-items: center; gap: 2px; }
.side-cta h2 { font-size: 17px; }
.side-cta p { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.side-cta-btns { display: flex; gap: 10px; margin-top: 14px; }
.side-cta-btns .btn { flex: 1; }
.side-cta { background: linear-gradient(180deg, var(--c-soft), var(--surface) 70%); }
.side-flash, .side-hot { list-style: none; margin: 0; padding: 0; }
.side-flash li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 14px; min-width: 0; }
.side-flash li:first-child { border-top: 0; }
.side-flash time { color: var(--muted); font-size: 12px; flex: none; padding-top: 2px; font-variant-numeric: tabular-nums; }
.side-flash a, .side-hot a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }
.side-hot li { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; border-top: 1px solid var(--line-2); }
.side-hot li:first-child { border-top: 0; }
.side-hot b { flex: none; width: 20px; height: 20px; border-radius: 4px; background: var(--line-2); color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.side-hot li.top b { background: var(--c-primary); color: #fff; }
.side-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.side-tags a { font-size: 13px; padding: 3px 10px; border-radius: 4px; background: var(--line-2); color: var(--text-2); }
.side-tags a:hover { background: var(--c-soft); color: var(--c-primary-dark); }

/* ---------- 左右滑动（专题等） ---------- */
.slider { position: relative; }
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth;
  margin: 0 calc(var(--gap) * -1); padding: 2px var(--gap) 4px; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; }
.slider-btn { display: none; }
@media (min-width: 900px) {
  .slider-track { grid-auto-columns: calc((100% - 20px) / 2); gap: 20px; margin: 0; padding: 2px 0 4px; }
  .slider-btn { display: flex; position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%;
    align-items: center; justify-content: center; background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line), 0 4px 14px rgba(17,24,39,.12); }
  .slider-btn:hover { color: var(--c-primary); }
  .slider-btn .ic { width: 22px; height: 22px; }
  .slider-btn.prev { left: -22px; }
  .slider-btn.next { right: -22px; }
  .slider-btn[disabled] { opacity: 0; pointer-events: none; }
}
.topic-slide { display: grid; grid-template-columns: 38% 1fr; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; min-height: 200px; }
.topic-slide-cover { display: block; background: var(--c-soft); position: relative; }
.topic-slide-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.topic-slide-cover span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; color: var(--c-primary-dark); font-weight: 700; }
.topic-slide-body { padding: 14px 16px; min-width: 0; display: flex; flex-direction: column; }
.topic-slide-body h3 { font-size: 16px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-slide-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-top: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.topic-slide-meta a { color: var(--c-primary); display: inline-flex; align-items: center; gap: 2px; }
.topic-slide ul { list-style: none; margin: 4px 0 0; padding: 0; }
.topic-slide li { padding: 6px 0 6px 12px; font-size: 14px; position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-slide li::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--c-primary); transform: translateY(-50%); }
@media (min-width: 900px) { .topic-slide { min-height: 220px; } .topic-slide-body { padding: 18px 20px; } .topic-slide-body h3 { font-size: 18px; } }
/* 分类内容少时的发布入口 */
.few-cta { margin-top: 14px; display: grid; gap: 12px; padding: 18px; border-radius: var(--r); border: 1px dashed rgba(var(--c-primary-rgb),.45); background: var(--c-soft); }
.few-cta h3 { font-size: 16px; font-weight: 700; }
.few-cta p { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.few-cta .btn { justify-self: start; }
@media (min-width: 720px) { .few-cta { grid-template-columns: 1fr auto; align-items: center; padding: 20px 24px; } }

/* ---------- 文章页：收藏 / 分享 ---------- */
.meta-tools { margin-left: auto; display: inline-flex; gap: 8px; }
.meta-btn { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 13px; }
.meta-btn:hover { color: var(--c-primary); border-color: var(--c-primary); }
.meta-btn .ic { width: 16px; height: 16px; }
.meta-btn em, .post-bar-fav em { font-style: normal; color: var(--muted); }
.meta-btn[data-on], .post-bar-fav[data-on] { color: var(--c-accent-text); border-color: var(--c-accent); }
.meta-btn[data-on] .ic, .post-bar-fav[data-on] .ic { color: var(--c-accent); }

/* ---------- 上一篇 / 下一篇 ---------- */
.post-adjacent { margin-top: 20px; display: grid; gap: 12px; }
.adj { display: grid; gap: 4px; padding: 12px 14px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.adj:hover { box-shadow: var(--shadow-lg); }
.adj small { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 12px; }
.adj small .ic { width: 14px; height: 14px; }
.adj b { font-weight: 600; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.adj-next { text-align: right; }
.adj-next small { justify-content: flex-end; }
.adj-empty { display: none; }
.adj.adj-empty { background: none; box-shadow: none; pointer-events: none; }
@media (min-width: 640px) { .post-adjacent { grid-template-columns: 1fr 1fr; } .adj-empty { display: block; } }

/* ---------- 文章页侧栏：关于作者 ---------- */
.side-author-head { display: flex; gap: 12px; align-items: center; }
.side-author-head .author-card-name { font-weight: 700; font-size: 16px; display: block; margin-bottom: 2px; }
.side-author-intro { margin-top: 10px; color: var(--text-2); font-size: 13px; }
.side-author-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 12px 0; padding: 10px 0; background: var(--line-2); border-radius: var(--r-sm); text-align: center; font-size: 12px; color: var(--muted); }
.side-author-stats b { display: block; font-size: 17px; color: var(--text); }
.side-author .pv-actions .btn { flex: 1; }
.side-author-posts { margin-top: 10px; }
.side-author-all { display: block; text-align: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--c-primary); font-weight: 600; }

/* ---------- 手机底部私信栏 ---------- */
.post-bar { display: none; }
@media (max-width: 899px) {
  .post-bar { display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface);
    border-top: 1px solid var(--line); padding: 8px var(--gap) calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(17,24,39,.06); }
  .post-bar-who { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; font-weight: 600; font-size: 14px; }
  .post-bar-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .post-bar-fav { display: inline-flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--text-2); padding: 0 6px; }
  .post-bar-fav .ic { width: 20px; height: 20px; }
  .post-bar-fav em { display: none; }
  .post-bar .btn { flex: none; }
  body.single .site-footer, body.post .site-footer { padding-bottom: 84px; }
}
/* ---------- 首页模块 ---------- */
.mod + .mod { margin-top: 28px; }
.mod-cards .card .thumb { aspect-ratio: 4/3; }
.mod-text { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.mod-text li { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; padding: 11px 16px; border-top: 1px solid var(--line-2); min-width: 0; }
.mod-text li:first-child { border-top: 0; }
.mod-text a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.mod-text-meta { flex: none; color: var(--muted); font-size: 12px; }
.slide-card .card { height: 100%; }
.mod .slider-track:has(.slide-card) { grid-auto-columns: 46%; }
@media (min-width: 900px) { .mod .slider-track:has(.slide-card) { grid-auto-columns: calc((100% - 60px) / 4); } }
.mod-topics .slider-btn.prev { left: -14px; } .mod-topics .slider-btn.next { right: -14px; }
.mod .pv-grid { margin-top: 0; }
.side > .side-box + .side-box { margin-top: 0; }

/* 电脑 / 手机两套首页 */
.home-mobile { display: none; }
@media (max-width: 899px) {
  .home-pc { display: none; }
  .home-mobile { display: block; }
  .home-mobile .side-hot, .home-mobile .side-flash { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 4px 14px; }
  .hero-trust { display: none; }
}
/* 首页分段：通栏段（如专题轮播）上下留白 */
.home-full .mod-topics .slider-btn.prev { left: -22px; } .home-full .mod-topics .slider-btn.next { right: -22px; }
