/* ===== 微信群组网站 - 主样式 ===== */

:root {
  --primary: #07c160;
  --primary-dark: #06ad56;
  --primary-light: #e8f9f0;
  --secondary: #1a1a2e;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --red: #ef4444;
  --orange: #f97316;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.image-preview-open {
  overflow: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

/* 折叠第三方脚本注入但未填充的广告占位，避免首页出现大面积空白 */
ins.adsbygoogle[data-ad-status="unfilled"],
ins.adsbygoogle:empty,
div.google-auto-placed:empty,
div.google-auto-placed.ap_container,
iframe[id^="google_ads_iframe"]:empty,
div[id^="google_ads_iframe"]:empty {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* 导航下方常见自动广告占位（包括已插入但无效展示） */
.nav + ins.adsbygoogle,
.nav + div.google-auto-placed,
.nav + div.ap_container,
.nav + [id^="aswift_"],
.nav + [id^="google_ads_iframe"] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== 顶部导航 ===== */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  white-space: nowrap;
}

.nav-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.nav-search {
  flex: 1;
  max-width: 400px;
}

.nav-quick-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.nav-search.nav-search-links {
  flex: 0 1 auto;
  max-width: none;
  margin-left: 12px;
  margin-right: auto;
}

.nav-search.nav-search-links .nav-quick-links {
  justify-content: flex-start;
}

.nav-quick-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 0 14px 0 0;
  margin-right: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-quick-link:hover {
  color: var(--primary);
}

.nav-quick-link:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: 0;
  color: var(--text-light);
}

.nav-search form {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg);
  transition: border-color 0.2s;
}

.nav-search form:focus-within {
  border-color: var(--primary);
  background: var(--white);
}

.nav-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 14px;
  font-size: 14px;
  background: transparent;
}

.nav-search button {
  background: var(--primary);
  border: none;
  color: white;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger {
  background: var(--red);
  color: white;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 13px;
}

/* ===== Hero 区域 ===== */
.hero {
  background: linear-gradient(135deg, #0f3d2a 0%, #07c160 60%, #0a9d4e 100%);
  color: white;
  padding: 60px 0 50px;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero-search {
  max-width: 560px;
  margin: 0 auto 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  border: 2px solid rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.95);
  border-radius: 50px;
}

.hero-search form {
  display: flex;
}

.hero-search input {
  flex: 1;
  padding: 16px 24px;
  font-size: 16px;
  border: none;
  outline: none;
  background: transparent;
  min-width: 0;
  border-radius: 50px 0 0 50px;
}

.hero-search button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  border-radius: 0 50px 50px 0;
}

.hero-search button:hover {
  background: #033d1e;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 14px;
}

.hero-stats a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.hero-stats a:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
  transform: translateY(-1px);
}

/* ===== SEO/GEO 分类页头部 ===== */
.seo-hero {
  background: #ffffff;
  border: 1px solid #dbe5ef;
  border-radius: 16px;
  padding: 24px;
  margin: 8px 0 28px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.seo-hero-main {
  max-width: 900px;
}

.seo-hero-kicker {
  color: #059669;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.seo-hero h1 {
  color: #111827;
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.seo-hero p {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.9;
}

.seo-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.seo-hero-stat {
  background: #f8fafc;
  border: 1px solid #e5edf5;
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}

.seo-hero-stat span {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 4px;
}

.seo-hero-stat strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.seo-hero-answer,
.seo-hero-ai {
  margin-top: 14px;
  color: #334155;
  line-height: 1.8;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px 14px;
}

.seo-hero-ai {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.seo-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.seo-hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #d1fae5;
}

.seo-hero-chip:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== 板块通用 ===== */
.section {
  padding: 40px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.view-all {
  font-size: 13px;
  color: var(--text-muted);
}
.view-all:hover { color: var(--primary); }

/* ===== 群卡片 ===== */
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.adsterra-native-banner {
  display: contents;
}

.adsterra-native-label {
  display: none;
}

.adsterra-native-banner #container-4eca89d82cd9f111a785e14edaebcab3 {
  display: contents !important;
}

.adsterra-native-card {
  position: relative !important;
}

/* 列表里的推荐广告卡片（renderSmartLinkTile），右上角保留「广告」标记 */
.sponsor-tile { position: relative; }

.adsterra-card-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

.sponsor-card {
  position: relative;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fbff 0%, #ecfdf5 100%);
  box-shadow: var(--shadow);
}

.sponsor-card-label {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.sponsor-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sponsor-card-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.sponsor-card-desc {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.sponsor-card-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(7, 193, 96, 0.18);
}

.sponsor-card-button:hover {
  background: var(--primary-dark);
  color: #fff;
}

.group-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
}

.group-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.group-card-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.group-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 10px;
  text-align: center;
  padding: 6px;
}

.group-card-thumb-icon {
  font-size: 20px;
  line-height: 1;
}

.group-card-content {
  flex: 1;
  min-width: 0;
}

.group-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.group-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.group-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.group-card-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  margin-left: 10px;
}

.group-card-featured .group-card-icon {
  display: none;
}

.group-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.group-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.group-card-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  background: var(--primary-light);
  color: var(--primary-dark);
  text-decoration: none;
  transition: all 0.15s;
}

.tag:hover {
  background: var(--primary);
  color: white;
}

.tag-lg {
  padding: 6px 14px;
  font-size: 13px;
}

.tag-active {
  background: var(--primary) !important;
  color: white !important;
}

.tag-lg[style*="background:var(--primary)"] {
  background: var(--primary) !important;
  color: white !important;
}

/* ===== 专题落地页 ===== */
.topic-page{background:#fbfcfe}.topic-hero{position:relative;overflow:hidden;padding:28px 0 46px;background:linear-gradient(132deg,#ecfdf7 0%,#edf7ff 55%,#f7f3ff 100%)}.topic-hero:before,.topic-hero:after{content:'';position:absolute;border-radius:50%;pointer-events:none}.topic-hero:before{width:440px;height:440px;background:rgba(16,185,129,.08);left:-180px;top:-230px}.topic-hero:after{width:320px;height:320px;background:rgba(59,130,246,.09);right:-100px;bottom:-190px}.topic-hero .container{position:relative;z-index:1}.topic-breadcrumb{margin:0 0 24px}.topic-hero-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:40px;align-items:center}.topic-kicker{display:inline-flex;padding:6px 10px;border-radius:999px;color:#047857;background:rgba(255,255,255,.75);border:1px solid rgba(16,185,129,.18);font-size:12px;font-weight:700;letter-spacing:.04em}.topic-hero h1{margin:13px 0 10px;font-size:clamp(34px,4vw,52px);letter-spacing:-.045em;color:#16352b}.topic-hero-copy>p{max-width:610px;margin:0;color:#47635a;font-size:16px;line-height:1.8}.topic-hero-actions{display:flex;align-items:center;gap:18px;margin-top:24px}.topic-hero-actions .btn{padding:12px 18px;box-shadow:0 10px 22px rgba(5,150,105,.18)}.topic-secondary-link{color:#047857;font-size:14px;font-weight:700;text-decoration:none}.topic-hero-metrics{display:flex;gap:26px;margin-top:30px}.topic-hero-metrics div{display:grid;gap:2px}.topic-hero-metrics strong{color:#14532d;font-size:18px}.topic-hero-metrics span{color:#648176;font-size:12px}.topic-map-card{position:relative;min-height:265px;border:1px solid rgba(255,255,255,.82);border-radius:28px;background:linear-gradient(145deg,rgba(255,255,255,.82),rgba(235,248,246,.6));box-shadow:0 22px 45px rgba(32,82,67,.12);overflow:hidden}.topic-map-caption{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);color:rgba(6,95,70,.22);font-size:28px;font-weight:800;letter-spacing:.05em}.topic-map-pin{position:absolute;left:47%;top:43%;z-index:2;font-size:35px}.topic-map-orbit{position:absolute;left:50%;top:50%;border:1px dashed rgba(16,185,129,.35);border-radius:50%;transform:translate(-50%,-50%)}.orbit-one{width:150px;height:150px}.orbit-two{width:250px;height:250px}.topic-map-dot{position:absolute;z-index:3;padding:5px 8px;color:#075b46;background:rgba(255,255,255,.9);border-radius:999px;font-size:11px;font-weight:700;box-shadow:0 5px 12px rgba(15,78,61,.1)}.dot-sf{top:23%;left:17%}.dot-sj{right:14%;bottom:22%}.dot-east{left:20%;bottom:18%}.topic-section{padding:42px 0}.topic-soft-section{background:#f4fbf9}.topic-section-note{margin:5px 0 0;color:var(--text-muted);font-size:13px}.topic-city-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.topic-city-card{display:flex;align-items:center;gap:13px;padding:17px;color:var(--text);background:#fff;border:1px solid #e7eef0;border-radius:16px;text-decoration:none;transition:.18s ease}.topic-city-card:hover{transform:translateY(-3px);border-color:#8ed8c3;box-shadow:0 13px 24px rgba(15,85,65,.1)}.topic-city-icon{display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;background:#effcf6;border-radius:13px;font-size:21px}.topic-city-card span:nth-child(2){min-width:0;flex:1}.topic-city-card strong,.topic-city-card small{display:block}.topic-city-card strong{margin-bottom:4px;font-size:15px}.topic-city-card small{color:var(--text-muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topic-city-card b{color:#0c9b77}.topic-interest-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.topic-interest-card{display:grid;grid-template-columns:35px 1fr;column-gap:10px;align-items:center;min-height:86px;padding:14px;color:var(--text);background:rgba(255,255,255,.82);border:1px solid rgba(215,234,227,.9);border-radius:15px;text-decoration:none;transition:.18s ease}.topic-interest-card:hover{background:#fff;transform:translateY(-2px);box-shadow:0 11px 20px rgba(15,85,65,.08)}.topic-interest-card>span{grid-row:span 2;display:grid;place-items:center;width:35px;height:35px;background:#ecfdf5;border-radius:10px;font-size:17px}.topic-interest-card strong{font-size:14px}.topic-interest-card small{color:var(--text-muted);font-size:11px;line-height:1.45}.topic-bottom-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}.topic-guide-card{display:flex;gap:14px;padding:22px;background:#fff;border:1px solid #e7eef0;border-radius:18px}.topic-guide-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;color:#047857;background:#d1fae5;border-radius:50%;font-weight:800}.topic-guide-card h2{margin:2px 0 10px;font-size:16px}.topic-guide-card ol{margin:0;padding-left:19px;color:#5c6f68;font-size:13px;line-height:1.9}.topic-cta-card{display:flex;flex-direction:column;justify-content:center;gap:7px;padding:22px;color:#fff;border-radius:18px;background:linear-gradient(135deg,#0f9f78,#087f6b);box-shadow:0 12px 22px rgba(5,150,105,.2)}.topic-cta-card span{opacity:.75;font-size:12px}.topic-cta-card strong{font-size:17px}.topic-cta-card a{margin-top:4px;color:#fff;font-size:13px;font-weight:700;text-decoration:none}
@media(max-width:760px){.topic-hero{padding-bottom:32px}.topic-hero-layout,.topic-bottom-grid{grid-template-columns:1fr;gap:24px}.topic-map-card{min-height:210px}.topic-city-grid,.topic-interest-grid{grid-template-columns:1fr}.topic-hero-metrics{gap:19px}.topic-hero h1{font-size:36px}.topic-section{padding:30px 0}}

/* 湾区专题：可点击的简版区域地图 */
.bay-map-card{display:flex;flex-direction:column;padding:17px 17px 13px;background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(229,248,244,.82));isolation:isolate}
.bay-map-heading{display:flex;align-items:baseline;justify-content:space-between;padding:0 4px;color:#164e43}.bay-map-heading span{font-size:15px;font-weight:800}.bay-map-heading small{color:#66877e;font-size:11px}.bay-map{display:block;width:100%;height:218px;margin:2px auto 0}.bay-map-land{fill:#e9f5de;stroke:#b5d4b7;stroke-width:2}.bay-map-land-east{fill:#e5f1dc}.bay-map-water{fill:url(#bayWater);stroke:#67bbc5;stroke-width:2}.bay-map-river{fill:none;stroke:#67bbc5;stroke-width:7;stroke-linecap:round}.bay-map-region{cursor:pointer;outline:none}.bay-map-region path{fill:rgba(255,255,255,.54);stroke:rgba(15,118,110,.42);stroke-width:1.5;transition:fill .18s ease,stroke .18s ease,transform .18s ease;transform-origin:center}.bay-map-region text{fill:#145f58;font-size:14px;font-weight:800;text-anchor:middle;pointer-events:none}.bay-map-region:hover path,.bay-map-region:focus path{fill:#fff2bd;stroke:#0f8d78;stroke-width:2.4}.bay-map-region:hover text,.bay-map-region:focus text{fill:#075c4c}.bay-map-city{fill:#ef795f;stroke:#fff;stroke-width:2}.bay-map-legend{display:flex;flex-wrap:wrap;gap:6px;padding:3px 2px 0}.bay-map-legend a{padding:4px 7px;color:#146657;background:rgba(255,255,255,.85);border:1px solid rgba(15,118,110,.12);border-radius:999px;font-size:11px;font-weight:700;text-decoration:none;transition:.18s ease}.bay-map-legend a:hover{color:#075c4c;border-color:#64cbb3;background:#fff}@media(max-width:760px){.bay-map-card{min-height:0}.bay-map{height:205px}}

.bay-map-card{background:linear-gradient(145deg,#fff 0%,#ecf9f5 100%)}.bay-map{height:224px}.bay-map-ground{fill:#e8f1df;stroke:#c3dac2;stroke-width:1.4}.bay-map-grid{fill:url(#bayGrid)}.bay-map-road{fill:none;stroke:#e7a75c;stroke-opacity:.55;stroke-width:2;stroke-dasharray:5 5}.bay-map-water{stroke:#4baeb9;stroke-width:1.3}.bay-map-water-main{filter:drop-shadow(0 5px 5px rgba(37,151,166,.17))}.bay-map-coast{fill:none;stroke:#fff;stroke-opacity:.9;stroke-width:1.8}.bay-map-small-labels{fill:#86a297;font-size:8px;font-weight:700;letter-spacing:.12em}.bay-map-place{cursor:pointer;outline:none}.bay-map-place circle{fill:#ee755c;stroke:#fff;stroke-width:3;filter:drop-shadow(0 2px 2px rgba(104,69,50,.22));transition:r .18s ease,fill .18s ease}.bay-map-place text{fill:#155e55;font-size:13px;font-weight:800;text-anchor:middle;paint-order:stroke;stroke:#f9fffb;stroke-width:4px;stroke-linejoin:round}.bay-map-place:hover circle,.bay-map-place:focus circle{r:10;fill:#d95442}.bay-map-place:hover text,.bay-map-place:focus text{fill:#063f38}.bay-map-legend{padding-top:6px}

/* 后台地点无限层级树 */
.location-tree-guide{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px;padding:10px 12px;color:#526b63;background:#f0fdf7;border:1px solid #c9f0df;border-radius:10px;font-size:12px}.location-tree-filters{display:grid;grid-template-columns:repeat(2,minmax(180px,320px));gap:12px;margin:0 0 14px}.location-tree{padding:10px;background:#fff;border:1px solid #e5e7eb;border-radius:14px}.location-node-wrap{position:relative}.location-node{display:flex;align-items:center;gap:8px;min-height:45px;padding:7px 10px 7px calc(10px + var(--location-depth) * 25px);border-radius:9px;transition:.15s ease}.location-node:hover{background:#f6fbf8}.location-node-wrap:not(:last-child)>.location-node:after{content:'';position:absolute;left:calc(29px + var(--location-depth) * 25px);bottom:-4px;width:1px;height:10px;background:#dce9e2}.location-drag{cursor:grab;color:#9aaea4;font-size:18px;line-height:1}.location-type{width:20px;text-align:center}.location-name{font-weight:700;color:#1f2937}.location-slug{color:#94a3b8;font:12px ui-monospace,SFMono-Regular,Menlo,monospace}.location-source,.location-count{padding:2px 7px;border-radius:999px;font-size:11px;font-weight:700}.location-source{color:#2563eb;background:#eff6ff}.location-count{color:#047857;background:#ecfdf5}.location-actions{display:flex;gap:6px;margin-left:auto;opacity:.2;transition:.15s ease}.location-node:hover .location-actions,.location-node:focus-within .location-actions{opacity:1}.location-drop-target{outline:2px dashed #10b981;background:#ecfdf5!important}.location-tree-empty{padding:40px 16px;color:#94a3b8;text-align:center}.location-tree-error{color:#dc2626}@media(max-width:760px){.location-tree-filters{grid-template-columns:1fr}.location-node{align-items:flex-start;flex-wrap:wrap}.location-actions{width:100%;margin-left:28px;opacity:1}.location-slug{max-width:120px;overflow:hidden;text-overflow:ellipsis}.location-count{margin-left:auto}}

/* 湾区页改用真实地图底图，旧的手绘 SVG 不再展示。 */
.location-drop-target{outline:none!important;box-shadow:inset 0 0 0 2px #10b981;background:#ecfdf5!important}
.bay-map-card .bay-map{display:none}.bay-real-map{width:100%;height:238px;margin:10px 0 5px;border:1px solid #c9dfd2;border-radius:16px;overflow:hidden;background:#e7f1ec;display:grid;place-items:center;color:#5b776c;font-size:12px}.bay-real-map .leaflet-control-attribution{font-size:8px}.bay-map-tooltip{padding:3px 6px!important;color:#124d43!important;border:1px solid #c9dfd2!important;border-radius:7px!important;box-shadow:0 2px 7px rgba(16,56,45,.12)!important;font-size:11px!important;font-weight:800!important}.bay-map-tooltip:before{border-top-color:#fff!important}@media(max-width:760px){.bay-real-map{height:230px}}
.usa-map-actions{display:flex;align-items:center;gap:7px}.usa-map-expand{padding:4px 7px;color:#146657;background:#fff;border:1px solid rgba(15,118,110,.22);border-radius:999px;font:700 11px/1 inherit;cursor:pointer}.bay-real-map.usa-map-expanded{height:440px}@media(max-width:760px){.bay-real-map.usa-map-expanded{height:360px}.usa-map-actions small{display:none}}

/* ===== 老乡专题 ===== */
.hometown-page{background:#fbfcfe}.hometown-hero{padding:30px 0 52px;background:radial-gradient(circle at 85% 25%,rgba(251,191,36,.17),transparent 24%),linear-gradient(135deg,#fff8ec 0%,#fffdf8 50%,#edf9f4 100%);border-bottom:1px solid #f0e6d4}.hometown-hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(240px,.85fr);gap:34px;align-items:center}.hometown-hero h1{margin:13px 0 10px;color:#382816;font-size:clamp(32px,4vw,49px);letter-spacing:-.045em}.hometown-hero p{max-width:690px;margin:0 0 23px;color:#665849;font-size:16px;line-height:1.85}.hometown-hero-art{display:grid;place-content:center;justify-items:center;min-height:220px;border:1px solid rgba(234,179,8,.22);border-radius:28px;background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(255,246,222,.72));box-shadow:0 18px 38px rgba(120,74,18,.09)}.hometown-hero-art span{font-size:54px;margin-bottom:7px}.hometown-hero-art b{color:#8a5714;font-size:20px}.hometown-hero-art small{margin-top:5px;color:#9b7a4b;font-size:12px}.hometown-directory{padding-top:44px}.hometown-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.hometown-card{display:flex;align-items:center;gap:12px;padding:15px;color:var(--text);text-decoration:none;background:#fff;border:1px solid #e9eceb;border-radius:16px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.hometown-card:hover{transform:translateY(-3px);border-color:#e5c98d;box-shadow:0 12px 23px rgba(75,56,27,.1)}.hometown-card-emoji{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;background:#fff7e7;border-radius:13px;font-size:21px}.hometown-card-copy{min-width:0;flex:1}.hometown-card-copy strong,.hometown-card-copy small{display:block}.hometown-card-copy strong{margin-bottom:4px;font-size:14px}.hometown-card-copy small{overflow:hidden;color:var(--text-muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.hometown-card-count{display:grid;justify-items:end;color:#a16207;font-size:16px;font-weight:800}.hometown-card-count small{margin-top:1px;color:#94a3b8;font-size:10px;font-weight:500}.hometown-detail .seo-hero{background:linear-gradient(120deg,#fff 0%,#fffaf0 65%,#f0faf5 100%);border-color:#eee4d1}.hometown-related{padding-top:10px}@media(max-width:760px){.hometown-hero{padding-bottom:32px}.hometown-hero-grid{grid-template-columns:1fr}.hometown-hero-art{display:none}.hometown-grid{grid-template-columns:1fr}.hometown-card{padding:13px}.hometown-directory{padding-top:30px}}

/* ===== 首页热门标签主题入口 ===== */
.hot-tags-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 4% 8%, rgba(45, 212, 191, .13), transparent 24%),
    radial-gradient(circle at 96% 90%, rgba(96, 165, 250, .11), transparent 25%),
    #f8fafc;
}

.hot-tags-section::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(16, 185, 129, .12);
  border-radius: 50%;
  right: -130px;
  top: -155px;
}

.hot-tags-section .container { position: relative; }

.hot-tags-subtitle {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.tag-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
}

/* 标签详情页的「相关标签」复用首页主题入口，但更适合内容区的卡片密度。 */
.tag-discovery-section {
  padding: 28px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(16, 185, 129, .08), transparent 27%),
    linear-gradient(135deg, #f8fffc 0%, #f8fafc 100%);
}

.tag-discovery-section .section-header { margin-bottom: 18px; }
.tag-discovery-subtitle { margin-top: 6px; color: var(--text-muted); font-size: 13px; }
.tag-showcase-related { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.tag-showcase-card {
  --tag-accent: #10b981;
  display: flex;
  align-items: center;
  min-height: 74px;
  gap: 10px;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 14px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .025);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tag-showcase-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--tag-accent) 40%, white);
  box-shadow: 0 12px 22px rgba(15, 23, 42, .09);
}

.tag-showcase-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  font-size: 20px;
  background: color-mix(in srgb, var(--tag-accent) 12%, white);
  border-radius: 12px;
}

.tag-showcase-content { min-width: 0; flex: 1; }
.tag-showcase-content strong { display: block; font-size: 14px; margin-bottom: 3px; }
.tag-showcase-content small { display: block; font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-showcase-arrow { color: var(--tag-accent); font-size: 18px; opacity: .65; transition: transform .18s ease; }
.tag-showcase-card:hover .tag-showcase-arrow { transform: translateX(3px); opacity: 1; }

.tag-showcase-featured { border-color: color-mix(in srgb, var(--tag-accent) 24%, white); }
.tag-showcase-featured .tag-showcase-content strong { color: var(--tag-accent); }
.tag-tone-1 { --tag-accent: #2563eb; }
.tag-tone-2 { --tag-accent: #9333ea; }
.tag-tone-3 { --tag-accent: #ea580c; }
.tag-tone-4 { --tag-accent: #0891b2; }
.tag-tone-5 { --tag-accent: #db2777; }

@media (max-width: 640px) {
  .hot-tags-section .section-header { align-items: flex-start; }
  .hot-tags-subtitle { max-width: 250px; line-height: 1.5; }
  .tag-showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tag-showcase-card { min-height: 64px; padding: 9px; gap: 8px; border-radius: 12px; }
  .tag-showcase-icon { width: 34px; height: 34px; flex-basis: 34px; font-size: 17px; border-radius: 10px; }
  .tag-showcase-content strong { font-size: 13px; }
  .tag-showcase-content small { font-size: 10px; }
  .tag-showcase-arrow { display: none; }
  .tag-discovery-section { padding: 18px 14px; border-radius: 16px; }
  .tag-showcase-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== 国家/城市卡片 ===== */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.location-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.2s;
  display: block;
  color: inherit;
  text-decoration: none;
}

.location-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: inherit;
}

.location-flag {
  font-size: 32px;
  margin-bottom: 8px;
}

.location-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.location-count {
  font-size: 12px;
  color: var(--text-muted);
}

.countries-page .location-grid,
.cities-page .location-grid,
.country-page .location-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.country-page #cityGrid,
.country-page #stateGrid,
.cities-page #cityList,
.countries-page #countryGrid {
  width: 100%;
}

.continent-section {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 28px;
}

.continent-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
}

.continent-grid {
  width: 100%;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px 0;
}

.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover { color: var(--primary); }

.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ===== 页面标题 ===== */
.page-title {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  margin-bottom: 8px;
}

.page-title h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.page-title p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== 表单 ===== */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  max-width: 640px;
  margin: 0 auto;
}

.submit-page .form-card {
  width: 100%;
  max-width: 1040px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-label .required {
  color: var(--red);
  margin-left: 3px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--primary);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.rich-editor-shell {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}

.rich-editor-shell:focus-within {
  border-color: var(--primary);
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.rich-editor-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.rich-editor-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.rich-editor {
  min-height: 140px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.7;
  outline: none;
}

.rich-editor[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  color: #9ca3af;
}

.rich-editor p {
  margin: 0 0 10px;
}

.rich-editor p:last-child {
  margin-bottom: 0;
}

.rich-editor ul,
.rich-editor ol {
  margin: 8px 0 12px 20px;
}

.rich-editor blockquote {
  margin: 8px 0;
  padding-left: 12px;
  border-left: 3px solid #b7efd2;
  color: var(--text-muted);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
}

/* 标签选择 */
.tag-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  min-height: 54px;
}

.tag-checkbox {
  display: none;
}

.tag-option {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.tag-checkbox:checked + .tag-option {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* 图片上传 */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-area:hover, .upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.upload-text {
  font-size: 13px;
  color: var(--text-muted);
}

.upload-preview {
  max-width: 200px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* ===== 详情页 ===== */
.detail-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}

.detail-header {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  align-items: flex-start;
}

/* 详情首屏：二维码固定在左侧，所有可读信息收束在右侧，避免下方出现大片留白。 */
.detail-overview {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.detail-summary { min-width: 0; }
.detail-summary-info {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid #edf1f3;
}
.detail-summary-info .detail-contact-item { grid-column: auto; }
.detail-summary-info .detail-website-item { grid-column: 1 / -1; }

.detail-heading {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.detail-surprise {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 18px;
}

.detail-surprise-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #f9b8cc;
  border-radius: 999px;
  background: #fff1f5;
  color: #be185d;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.detail-surprise-link:hover {
  background: #fce7f0;
  border-color: #f18aad;
  color: #9d174d;
}

.detail-surprise-link:focus-visible {
  outline: 3px solid #be185d;
  outline-offset: 3px;
}

.detail-surprise-heart {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.detail-qr-link {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  color: inherit;
}

.detail-qr-link:hover .detail-qr,
.detail-qr-link:focus-visible .detail-qr {
  transform: scale(1.02);
  border-color: #b7efd2;
  box-shadow: 0 10px 20px rgba(7, 193, 96, 0.12);
}

.detail-qr {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.detail-qr-placeholder {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
}

.detail-qr-placeholder .icon { font-size: 32px; margin-bottom: 6px; }

.image-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.image-preview-overlay.show {
  display: block;
}

.image-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(2px);
}

.image-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 760px);
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-preview-close {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.image-preview-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border-radius: 12px;
}

.image-preview-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.detail-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.7;
}

.rich-text {
  line-height: 1.9;
  word-break: break-word;
}

.rich-text p {
  margin: 0 0 10px;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.rich-text ul,
.rich-text ol {
  margin: 8px 0 12px 20px;
}

.rich-text li + li {
  margin-top: 4px;
}

.rich-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rich-text strong,
.rich-text b {
  font-weight: 700;
  color: var(--text);
}

.rich-text blockquote {
  margin: 10px 0;
  padding-left: 12px;
  border-left: 3px solid #b7efd2;
  color: var(--text-muted);
}

.detail-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-info-item {
  font-size: 14px;
}

.detail-info-label {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 2px;
}

.detail-info-value {
  font-weight: 500;
}

.detail-contact-item { grid-column: 1 / -1; }
.detail-contact-reveal { display:flex;align-items:center;gap:12px;width:100%;min-height:62px;padding:12px 16px;border:1px solid #86efac;border-radius:var(--radius-sm);background:linear-gradient(135deg,#ecfdf3,#dcfce7);color:#047857;cursor:pointer;font:inherit;text-align:left;transition:.18s ease; }
.detail-contact-reveal:hover { border-color:#22c55e;background:linear-gradient(135deg,#dcfce7,#bbf7d0);box-shadow:0 10px 22px rgba(22,163,74,.14);transform:translateY(-1px); }
.detail-contact-reveal:focus-visible { outline:3px solid rgba(34,197,94,.28);outline-offset:3px; }
.detail-contact-reveal-icon { font-size:22px; }
.detail-contact-reveal strong { display:block;font-size:16px; }
.detail-contact-reveal small { display:block;margin-top:3px;color:#4b8a66;font-size:12px; }
.detail-contact-reveal-arrow { margin-left:auto;font-size:22px;font-weight:800; }
.detail-contact-value { display:none;padding:16px 18px;border:1px solid #a7f3d0;border-radius:var(--radius-sm);background:#f0fdf4;color:#065f46;font-size:19px;font-weight:800;letter-spacing:.3px; }
.detail-contact-value.is-visible { display:block; }

/* 主题关键词页 */
.topic-page { background:linear-gradient(180deg,#f6fbfa 0,#fff 360px); }
.topic-hero { padding:30px 0 22px; }
.topic-hero-panel { overflow:hidden; padding:34px; border:1px solid #d9ece4; border-radius:22px; background:radial-gradient(circle at 93% 5%,rgba(52,211,153,.2),transparent 27%),linear-gradient(135deg,#fff 0%,#f0fdf4 100%); box-shadow:0 18px 40px rgba(15,83,55,.08); }
.topic-kicker { display:inline-flex; padding:6px 10px; border-radius:999px; background:#dcfce7; color:#047857; font-size:12px; font-weight:800; }
.topic-hero h1 { margin:13px 0 10px; color:#10231c; font-size:clamp(30px,4vw,46px); letter-spacing:-.035em; }
.topic-hero p { max-width:720px; margin:0; color:#4b6359; font-size:16px; line-height:1.8; }
.topic-hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:22px; }
.topic-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; max-width:720px; margin-top:26px; }
.topic-metric { padding:13px 15px; border:1px solid rgba(16,185,129,.16); border-radius:13px; background:rgba(255,255,255,.76); }
.topic-metric span { display:block; color:#6b8077; font-size:12px; }.topic-metric strong { display:block; margin-top:4px; color:#075f46; font-size:16px; }
.topic-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:24px; padding-bottom:60px; }
.topic-group-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.topic-group-card { display:block; min-height:156px; padding:17px; border:1px solid #e2ece7; border-radius:16px; background:#fff; color:inherit; text-decoration:none; transition:.18s ease; }.topic-group-card:hover { transform:translateY(-3px); border-color:#86efac; box-shadow:0 14px 28px rgba(14,116,72,.1); }.topic-group-card-top { display:flex; align-items:flex-start; gap:9px; color:#13251e; line-height:1.45; }.topic-group-icon { display:grid; flex:0 0 30px; width:30px; height:30px; place-items:center; border-radius:10px; background:#dcfce7; }.topic-group-card p { min-height:38px; margin:10px 0; color:#64748b; font-size:13px; line-height:1.55; }.topic-group-meta { margin-bottom:10px; color:#6b8077; font-size:12px; }.topic-empty { grid-column:1/-1; padding:32px; border:1px dashed #b8d8c8; border-radius:15px; color:#6b8077; text-align:center; }
.topic-side-card { margin-bottom:14px; padding:18px; border:1px solid #e2ece7; border-radius:16px; background:#fff; }.topic-side-card h2 { margin:0 0 10px; color:#173426; font-size:16px; }.topic-side-card p,.topic-side-card li { color:#60736a; font-size:13px; line-height:1.7; }.topic-side-card ul { margin:0; padding-left:18px; }.topic-search-links { display:flex; flex-wrap:wrap; gap:8px; }.topic-search-links .tag { text-decoration:none; }.topic-section-note { margin:4px 0 14px; color:#728078; font-size:13px; }
@media(max-width:820px){.topic-hero-panel{padding:24px}.topic-layout{grid-template-columns:1fr}.topic-group-list{grid-template-columns:1fr}.topic-metrics{grid-template-columns:1fr}.topic-hero h1{font-size:32px}}

.detail-website-item {
  grid-column: 1 / -1;
}

.detail-website-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid rgba(6, 173, 86, 0.18);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(7, 193, 96, 0.18);
  text-decoration: none;
}

.detail-website-link:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(7, 193, 96, 0.24);
}

.detail-website-link:focus-visible {
  outline: 3px solid rgba(7, 193, 96, 0.28);
  outline-offset: 3px;
}

.detail-website-link-main {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 800;
}

.detail-website-link-host {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-website-link-icon {
  flex: 0 0 auto;
  font-size: 16px;
  font-weight: 800;
}

.join-box {
  background: var(--primary-light);
  border: 1px solid #b7efd2;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 14px;
}

.join-box-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

/* ===== 搜索结果 ===== */
.search-header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.search-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.search-count {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

/* ===== 空状态 ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 52px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}

.page-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.page-btn:hover, .page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.page-btn-text {
  width: auto;
  min-width: 64px;
  padding: 0 14px;
}

.page-ellipsis {
  min-width: 28px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  user-select: none;
}

/* ===== 加载状态 ===== */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 前台整体质感优化 ===== */
body:not(.admin-page) {
  background:
    linear-gradient(180deg, #f7faf9 0%, #f8fafc 38%, #f5f8f6 100%);
  color: #182235;
}

body:not(.admin-page) .container {
  max-width: min(1760px, 96vw);
  padding-left: clamp(16px, 2vw, 28px);
  padding-right: clamp(16px, 2vw, 28px);
}

body:not(.admin-page) .nav {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(14px);
}

body:not(.admin-page) .nav-inner {
  height: 64px;
}

body:not(.admin-page) .nav-logo {
  color: #111827;
}

body:not(.admin-page) .nav-logo .logo-icon {
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.22);
}

body:not(.admin-page) .nav-quick-link {
  color: #536174;
  font-weight: 600;
}

body:not(.admin-page) .nav-quick-link:hover {
  color: #047857;
}

/* ===== 前台页面壳层：导航与 SEO 页头 ===== */
body:not(.admin-page) .nav-inner { gap: 20px; }
body:not(.admin-page) .nav-search.nav-search-links { margin-left: 4px; }
body:not(.admin-page) .nav-search.nav-search-links .nav-quick-links { gap: 3px; padding: 4px; border: 1px solid #e8edf2; border-radius: 12px; background: #f7f9fb; }
body:not(.admin-page) .nav-quick-link { margin-right: 0; padding: 8px 10px; border-radius: 8px; color: #526174; font-size: 13px; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
body:not(.admin-page) .nav-quick-link:not(:last-child)::after { display: none; }
body:not(.admin-page) .nav-quick-link:hover { color: #047857; background: #fff; box-shadow: 0 2px 6px rgba(15,23,42,.06); }
body:not(.admin-page) .seo-hero { position: relative; overflow: hidden; padding: 30px; border: 1px solid #dcebe7; border-radius: 20px; background: linear-gradient(120deg,#fff 0%,#f2fbf7 70%,#edf8ff 100%); box-shadow: 0 18px 38px rgba(15,61,50,.07); }
body:not(.admin-page) .seo-hero::after { content:''; position:absolute; right:-90px; top:-135px; width:300px; height:300px; border:1px solid rgba(16,185,129,.15); border-radius:50%; pointer-events:none; }
body:not(.admin-page) .seo-hero-main,body:not(.admin-page) .seo-hero-stats,body:not(.admin-page) .seo-hero-links,body:not(.admin-page) .seo-hero-answer,body:not(.admin-page) .seo-hero-ai { position:relative; z-index:1; }
body:not(.admin-page) .seo-hero-kicker { display:inline-flex; padding:5px 9px; margin-bottom:10px; border-radius:999px; background:#dcfce7; color:#047857; font-size:12px; }
body:not(.admin-page) .seo-hero h1 { font-size:clamp(28px,3vw,40px); letter-spacing:-.035em; }
body:not(.admin-page) .seo-hero p { max-width:900px; color:#53666a; }
body:not(.admin-page) .seo-hero-stats { gap:8px; margin-top:20px; }
body:not(.admin-page) .seo-hero-stat { padding:13px 14px; border-color:rgba(206,226,220,.85); background:rgba(255,255,255,.7); box-shadow:none; }
body:not(.admin-page) .seo-hero-stat strong { font-size:14px; }
body:not(.admin-page) .seo-hero-answer { max-width:900px; background:rgba(236,253,245,.72); }
body:not(.admin-page) .seo-hero-ai { max-width:900px; background:rgba(255,255,255,.62); }

/* 城市页把首屏留给可点击的地点、标签和群列表，SEO 信息保持紧凑。 */
.city-page .city-page-main .breadcrumb { margin-bottom: 12px; }
.city-page .seo-hero { padding: 20px 24px; margin: 0 0 16px; }
.city-page .seo-hero-kicker { margin-bottom: 6px; }
.city-page .seo-hero h1 { margin-bottom: 6px; }
.city-page .seo-hero p { font-size: 14px; line-height: 1.65; }
.city-page .seo-hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.city-page .seo-hero-stat { padding: 10px 12px; }
.city-page .seo-hero-stat span { margin-bottom: 2px; }
.city-page .seo-hero-stat strong { font-size: 13px; }
.city-scope-section,
.city-tag-filter { padding: 14px 0 16px; }
.city-scope-section { border-bottom: 1px solid #edf1f4; }
.city-compact-heading { margin-bottom: 10px; color: var(--text); font-size: 17px; font-weight: 800; }
.location-scope-list { display: flex; flex-wrap: wrap; gap: 8px; }
.location-scope-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 6px 11px; border: 1px solid #ccefe0; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.location-scope-chip:hover { transform: translateY(-1px); border-color: #6ee7b7; background: #d1fae5; }
.location-scope-chip.is-current { border-color: #cbd5e1; background: #f8fafc; color: #64748b; font-weight: 600; }

body:not(.admin-page) .btn {
  border-radius: 8px;
  min-height: 38px;
  font-weight: 700;
}

body:not(.admin-page) .btn-primary {
  background: #059669;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.18);
}

body:not(.admin-page) .btn-primary:hover {
  background: #047857;
  transform: translateY(-1px);
}

body:not(.admin-page) .btn-outline {
  background: #ffffff;
  border-color: #d7dee8;
}

body:not(.admin-page) .btn-outline:hover {
  background: #ecfdf5;
  border-color: #86efac;
}

body:not(.admin-page) .hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 47, 35, 0.96) 0%, rgba(5, 116, 86, 0.95) 48%, rgba(7, 193, 96, 0.94) 100%),
    url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  padding: 72px 0 58px;
}

body:not(.admin-page) .hero h1 {
  font-size: 2.55rem;
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

body:not(.admin-page) .hero p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.94;
}

body:not(.admin-page) .hero-search {
  max-width: 640px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(2, 44, 34, 0.22);
}

body:not(.admin-page) .hero-search input {
  color: #111827;
}

body:not(.admin-page) .hero-search button {
  background: #111827;
}

body:not(.admin-page) .hero-search button:hover {
  background: #0f3d2a;
}

body:not(.admin-page) .hero-stats {
  gap: 12px;
  opacity: 1;
  flex-wrap: wrap;
}

body:not(.admin-page) .hero-stats a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

body:not(.admin-page) .section {
  padding: 46px 0;
}

body:not(.admin-page) .section[style*="background: white"] {
  background: #ffffff !important;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

body:not(.admin-page) .section-header {
  margin-bottom: 20px;
}

body:not(.admin-page) .section-title {
  color: #121a2a;
  font-size: 1.24rem;
}

body:not(.admin-page) .section-title::before {
  width: 5px;
  height: 22px;
  background: linear-gradient(180deg, #10b981, #60a5fa);
}

body:not(.admin-page) .view-all {
  font-weight: 700;
}

body:not(.admin-page) .group-grid {
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

body:not(.admin-page) .group-card,
body:not(.admin-page) .location-card,
body:not(.admin-page) .detail-card,
body:not(.admin-page) .form-card {
  border-color: #dfe6ef;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

body:not(.admin-page) .group-card {
  border-radius: 12px;
  padding: 18px;
  background: #ffffff;
}

body:not(.admin-page) .group-card:hover {
  border-color: #86efac;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

body:not(.admin-page) .group-card-title {
  color: #111827;
  font-size: 15.5px;
}

body:not(.admin-page) .group-card-desc {
  color: #667085;
}

body:not(.admin-page) .group-card-thumb {
  border-radius: 10px;
  border-color: #e2e8f0;
  background: #f1f5f9;
}

body:not(.admin-page) .group-card-icon {
  background: #ecfdf5;
  color: #047857;
}

body:not(.admin-page) .group-card-meta {
  color: #64748b;
}

body:not(.admin-page) .tag {
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 600;
}

body:not(.admin-page) .tag:hover,
body:not(.admin-page) .tag-active,
body:not(.admin-page) .tag-lg[style*="background:var(--primary)"] {
  background: #059669 !important;
  color: white !important;
}

body:not(.admin-page) .location-grid {
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

body:not(.admin-page) .location-card {
  border-radius: 12px;
  padding: 20px 16px;
}

body:not(.admin-page) .location-card:hover {
  background: #f0fdf4;
  border-color: #8bd9b2;
  box-shadow: 0 16px 34px rgba(5, 150, 105, 0.09);
  transform: translateY(-2px);
}

body:not(.admin-page) .location-flag {
  font-size: 34px;
}

body:not(.admin-page) .location-name {
  color: #111827;
}

body:not(.admin-page) .page-title {
  background: #ffffff;
  border-bottom-color: #e8edf4;
  padding: 32px 0;
}

body:not(.admin-page) .page-title h1 {
  color: #111827;
  font-size: 1.78rem;
}

body:not(.admin-page) .breadcrumb {
  color: #728096;
}

body:not(.admin-page) .detail-card,
body:not(.admin-page) .form-card {
  border-radius: 14px;
}

body:not(.admin-page) .detail-title {
  color: #111827;
  font-size: 1.55rem;
}

body:not(.admin-page) .detail-qr,
body:not(.admin-page) .detail-qr-placeholder {
  border-radius: 12px;
}

body:not(.admin-page) .join-box {
  background: #ecfdf5;
  border-color: #a7f3d0;
  border-radius: 12px;
}

body:not(.admin-page) .form-control,
body:not(.admin-page) .tag-select,
body:not(.admin-page) .rich-editor-shell {
  border-color: #d7dee8;
  border-radius: 10px;
  background: #ffffff;
}

body:not(.admin-page) .form-control:focus,
body:not(.admin-page) .rich-editor-shell:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

body:not(.admin-page) .upload-area {
  border-radius: 12px;
  background: #ffffff;
}

body:not(.admin-page) .empty-state {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid #edf2f7;
  border-radius: 14px;
}

body:not(.admin-page) footer {
  background: #111827;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Toast 提示 ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--secondary);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  z-index: 9999;
  transition: transform 0.3s;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.success { background: var(--primary); }
.toast.error { background: var(--red); }

/* ===== 后台样式 ===== */
.admin-page {
  background:
    linear-gradient(180deg, #f4f8fb 0%, #f8fafc 42%, #f3f7f5 100%);
  color: #172033;
}

.admin-page > .admin-layout {
  margin-bottom: 0 !important;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background:
    linear-gradient(180deg, #111827 0%, #172033 58%, #0d2c22 100%);
  color: white;
  flex-shrink: 0;
  padding: 18px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-shadow: 8px 0 24px rgba(15, 23, 42, 0.12);
}

.admin-sidebar-logo {
  padding: 4px 10px 18px;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 10px;
  letter-spacing: 0;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  margin: 2px 0;
}

.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(7,193,96,0.16);
  color: white;
  border-color: rgba(7,193,96,0.35);
  box-shadow: inset 3px 0 0 var(--primary);
}

.admin-content {
  flex: 1;
  overflow: auto;
  padding: 28px;
  background: transparent;
  min-width: 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-header h1 {
  font-size: 1.32rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.admin-page .btn {
  border-radius: 7px;
  min-height: 34px;
  box-shadow: none;
}

.admin-page .btn-primary {
  background: #059669;
}

.admin-page .btn-primary:hover {
  background: #047857;
}

.admin-page .btn-outline {
  background: #ffffff;
  border-color: #d7dee8;
}

.admin-page .btn-outline:hover {
  background: #f0fdf4;
  border-color: #8bd9b2;
}

.admin-page .btn-danger {
  background: #dc2626;
}

.admin-page .form-label {
  color: #233044;
  font-size: 13px;
  margin-bottom: 7px;
}

.admin-page .form-control {
  min-height: 42px;
  border-color: #d7dee8;
  background: #ffffff;
  color: #172033;
}

.admin-page .form-control:hover {
  border-color: #b8c3d3;
}

.admin-page .form-control:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.admin-page input[type="checkbox"] {
  accent-color: #059669;
}

/* 状态徽章 */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.badge-pending {
  background: #fef3c7;
  color: #d97706;
}

.badge-approved {
  background: #d1fae5;
  color: #059669;
}

.badge-rejected {
  background: #fee2e2;
  color: #dc2626;
}

/* 表格 */
.table-wrap {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid #dfe5ee;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.group-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.group-main {
  min-width: 0;
}

.group-detail-stack {
  width: 100%;
}

.group-sidebar {
  min-width: 0;
}

.group-layout-single {
  grid-template-columns: 1fr !important;
}

.group-ad-image {
  width: 100%;
  height: auto;
}

@media (min-width: 820px) {
  .group-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: clamp(28px, 3vw, 56px);
    align-items: start;
  }

  .group-page .group-sidebar {
    position: sticky;
    top: 88px;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: #f8fafc;
  padding: 11px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid #edf2f7;
  vertical-align: top;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: #fbfdfc; }

.actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--white);
  border-radius: 10px;
  padding: 18px 20px;
  border: 1px solid #dfe5ee;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #60a5fa);
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-page .admin-content > div[id^="tab-"] > div[style*="background:white"],
.admin-page .admin-content > div[id^="tab-"] > div[style*="background: white"],
.admin-page .admin-content > div[id^="tab-"] > div[style*="background:white;"] {
  border-color: #dfe5ee !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.admin-page .pagination {
  margin-top: 14px;
}

.admin-page .tag {
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
}

.admin-page .badge {
  border-radius: 999px;
  font-weight: 700;
}

.admin-page .rich-editor-shell,
.admin-page .upload-area {
  border-color: #d7dee8;
  border-radius: 10px;
}

.admin-page .rich-editor-toolbar {
  background: #f8fafc;
}

.admin-page .rich-editor-btn {
  border-radius: 7px;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.46);
  overflow: auto;
  padding: 28px 16px;
}

.admin-modal-card {
  width: min(640px, calc(100vw - 32px));
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #dfe5ee;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  padding: 24px;
  position: relative;
}

.admin-modal-card h2 {
  margin: 0 40px 20px 0;
  font-size: 1.12rem;
  color: #111827;
}

.admin-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
}

.admin-modal-close:hover {
  background: #f8fafc;
  color: #111827;
}

/* ===== 底部 ===== */
footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.6);
  padding: 32px 0;
  margin-top: auto;
  font-size: 13px;
}

.group-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.group-page footer {
  margin-top: auto;
}

body > *:not(footer):last-of-type {
  margin-bottom: 60px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
}
.footer-links a:hover { color: white; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-inner {
    gap: 10px;
  }
  .nav-logo {
    font-size: 16px;
    min-width: 0;
  }
  .nav-logo .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  .breadcrumb {
    padding-left: 4px;
    padding-right: 4px;
  }
  .hero h1 { font-size: 1.6rem; }
  body:not(.admin-page) .hero {
    padding: 46px 0 36px;
  }
  body:not(.admin-page) .hero h1 {
    font-size: 1.85rem;
  }
  body:not(.admin-page) .hero p {
    font-size: 1rem;
    margin-bottom: 22px;
  }
  body:not(.admin-page) .hero-search {
    border-radius: 14px;
  }
  body:not(.admin-page) .hero-search form {
    flex-direction: column;
  }
  body:not(.admin-page) .hero-search input,
  body:not(.admin-page) .hero-search button {
    width: 100%;
    border-radius: 0;
  }
  body:not(.admin-page) .hero-search input {
    padding: 14px 16px;
  }
  body:not(.admin-page) .hero-search button {
    padding: 13px 16px;
  }
  body:not(.admin-page) .section {
    padding: 32px 0;
  }
  body:not(.admin-page) .group-card,
  body:not(.admin-page) .location-card,
  body:not(.admin-page) .detail-card,
  body:not(.admin-page) .form-card {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
  }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .nav-search { display: none; }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions .btn {
    padding: 7px 12px;
    font-size: 13px;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .seo-hero {
    padding: 18px;
    border-radius: 14px;
  }
  .seo-hero h1 {
    font-size: 1.6rem;
  }
  .seo-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .group-grid { grid-template-columns: 1fr; }
  .group-card {
    padding: 16px;
  }
  .sponsor-card {
    padding: 16px;
  }
  .sponsor-card-body {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .sponsor-card-button {
    width: 100%;
  }
  .group-card-top {
    gap: 12px;
  }
  .group-card-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
  }
  .location-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .countries-page .location-grid,
  .cities-page .location-grid,
  .country-page .location-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .detail-header { flex-direction: column; }
  .detail-overview { grid-template-columns: 1fr; gap: 18px; }
  .detail-summary-info { grid-template-columns: 1fr; gap: 12px; margin-top: 16px; padding-top: 16px; }
  .detail-qr-link {
    width: 100%;
    align-items: flex-start;
  }
  .detail-qr {
    width: min(220px, 72vw);
    height: min(220px, 72vw);
  }
  .detail-card {
    padding: 20px;
  }
  .group-sidebar {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
  .group-ad-card {
    margin-bottom: 12px !important;
  }
  .group-ad-image {
    max-height: 220px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }
  .group-ad-title {
    font-size: 12px !important;
    padding: 10px !important;
  }
  .detail-info { grid-template-columns: 1fr; }
  .image-preview-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    margin: 12px auto;
    padding: 14px;
  }
  .image-preview-img {
    max-height: calc(100vh - 120px);
  }
  .form-card {
    padding: 20px;
  }
  .submit-page #locationGrid {
    grid-template-columns: 1fr !important;
  }
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 12px;
    box-shadow: none;
  }
  .admin-sidebar-logo {
    padding: 4px 8px 12px;
    margin-bottom: 8px;
  }
  .admin-nav-item {
    display: inline-flex;
    margin: 3px;
    padding: 8px 10px;
    font-size: 13px;
  }
  .admin-content {
    padding: 16px;
  }
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-header h1 {
    font-size: 1.15rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat-card {
    padding: 14px;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  th,
  td {
    padding: 10px 12px;
  }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .seo-hero-stats {
    grid-template-columns: 1fr;
  }
  .city-page .seo-hero { padding: 16px; }
  .city-page .seo-hero-stats { grid-template-columns: 1fr; }
}

/* The import location is selected from the canonical location tree. */
.legacy-import-location { display: none !important; }

/* =====================================================================
   2026-10 视觉与体验优化（追加在最后，覆盖上方旧规则）
   1. 手机端导航：快捷链接改为表头下方可横向滑动的一行
   2. 国家/城市卡片：横排紧凑布局，手机两列，减少滚动
   3. 群详情：二维码下方的扫码提示
   4. 页脚：分栏 + 信任页面链接
   ===================================================================== */

/* 1. 手机端导航 */
@media (max-width: 768px) {
  body:not(.admin-page) .nav-inner { flex-wrap: wrap; row-gap: 8px; }
  body:not(.admin-page) .nav-search.nav-search-links {
    display: block;
    order: 3;
    width: 100%;
    margin: 0 -16px;
    padding: 0 16px 2px;
    width: calc(100% + 32px);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  body:not(.admin-page) .nav-search.nav-search-links::-webkit-scrollbar { display: none; }
  body:not(.admin-page) .nav-search.nav-search-links .nav-quick-links {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  body:not(.admin-page) .nav-quick-link {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 11px;
    font-size: 13px;
    background: #f3f6f8;
    border: 1px solid #e8edf2;
    border-radius: 999px;
  }
  body:not(.admin-page) .nav-quick-link:hover { background: #ecfdf5; }
}

/* 2. 国家/城市卡片 */
body:not(.admin-page) .location-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
body:not(.admin-page) .location-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  text-align: left;
  padding: 14px 16px;
}
body:not(.admin-page) .location-card .location-flag {
  grid-row: 1 / span 2;
  font-size: 30px;
  line-height: 1;
  margin: 0;
}
body:not(.admin-page) .location-card .location-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body:not(.admin-page) .location-card .location-count {
  justify-self: start;
  margin: 2px 0 0;
  padding: 0;
  background: none;
  color: #059669;
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 640px) {
  body:not(.admin-page) .location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body:not(.admin-page) .location-card { padding: 12px; column-gap: 10px; }
  body:not(.admin-page) .location-card .location-flag { font-size: 24px; }
  body:not(.admin-page) .location-card .location-name { font-size: 14px; }
}

/* 3. 二维码扫码提示 */
.detail-qr-hint {
  display: block;
  width: 100%;
  margin-top: 2px;
  color: #047857;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.detail-qr-hint .hint-mobile { display: none; }
@media (max-width: 768px), (pointer: coarse) {
  .detail-qr-hint { text-align: center; }
  .detail-qr-hint .hint-desktop { display: none; }
  .detail-qr-hint .hint-mobile { display: inline; }
}

/* 4. 页脚 */
footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
footer .footer-brand strong { display: block; color: #fff; font-size: 16px; margin-bottom: 8px; }
footer .footer-brand p { color: rgba(255,255,255,.55); line-height: 1.8; max-width: 320px; }
footer .footer-col h4 { color: rgba(255,255,255,.9); font-size: 13px; margin-bottom: 10px; }
footer .footer-col a { display: block; color: rgba(255,255,255,.55); line-height: 2; }
footer .footer-col a:hover { color: #fff; }
footer .footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 16px; color: rgba(255,255,255,.4); font-size: 12px; }
@media (max-width: 768px) {
  footer .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  footer .footer-brand { grid-column: 1 / -1; }
}

/* 静态说明页（关于、隐私、条款） */
.legal-page { max-width: 820px; margin: 0 auto; padding: 28px 16px 64px; }
.legal-page h1 { font-size: 28px; margin: 12px 0 6px; }
.legal-page .legal-updated { color: #6b7280; font-size: 13px; margin-bottom: 22px; }
.legal-page h2 { font-size: 18px; margin: 26px 0 8px; }
.legal-page p, .legal-page li { color: #374151; line-height: 1.9; }
.legal-page ul { padding-left: 20px; margin: 6px 0; }

/* 5. 标签大全 /tags */
.tags-dir { background: #f8fafc; }
.tags-hero {
  padding: 26px 0 34px;
  background:
    radial-gradient(circle at 92% 10%, rgba(16,185,129,.14), transparent 32%),
    radial-gradient(circle at 8% 100%, rgba(59,130,246,.08), transparent 30%),
    linear-gradient(180deg, #f0fdf7 0%, #f8fafc 100%);
  border-bottom: 1px solid #e6efe9;
}
.tags-kicker {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  color: #047857;
  background: #d1fae5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.tags-hero h1 { margin: 10px 0 8px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; color: #0f172a; }
.tags-hero p { max-width: 640px; color: #475569; line-height: 1.8; font-size: 15px; }
.tags-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  margin-top: 18px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid #d9e6df;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}
.tags-search:focus-within { border-color: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.12); }
.tags-search input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; font-size: 15px; }
.tags-body { padding: 26px 16px 56px; }
.tags-category, .tags-popular { margin-bottom: 30px; }
.tags-category-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tags-category-head h2 { font-size: 18px; color: #0f172a; margin: 0; }
.tags-category-head p { margin: 2px 0 0; color: #64748b; font-size: 13px; }
.tags-category-icon {
  --tone: #10b981;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tone) 14%, white);
  font-size: 20px;
}
.tags-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tags-grid-large { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tags-card {
  --tone: #10b981;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: #0f172a;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 14px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.tags-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tone) 45%, white);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}
.tags-card[hidden], .tags-category[hidden], .tags-popular[hidden] { display: none; }
.tags-card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tone) 12%, white);
  font-size: 21px;
}
.tags-card-body { display: block; min-width: 0; flex: 1; }
.tags-card-body strong { display: block; font-size: 15px; margin-bottom: 2px; }
.tags-card-body small { display: flex; gap: 8px; align-items: center; color: #64748b; font-size: 12px; white-space: nowrap; }
.tags-card-body em { font-style: normal; color: #059669; font-weight: 600; }
.tags-card-bar { display: block; height: 4px; margin-top: 8px; background: #f1f5f9; border-radius: 99px; overflow: hidden; }
.tags-card-bar i { display: block; height: 100%; background: var(--tone); border-radius: 99px; opacity: .75; }
.tags-card-large { padding: 18px; }
.tags-card-large .tags-card-icon { width: 52px; height: 52px; flex-basis: 52px; font-size: 26px; border-radius: 14px; }
.tags-card-large .tags-card-body strong { font-size: 17px; }
.tags-empty { padding: 32px; text-align: center; color: #64748b; background: #fff; border: 1px dashed #d6dde5; border-radius: 14px; }
@media (max-width: 640px) {
  .tags-hero { padding: 18px 0 24px; }
  .tags-grid, .tags-grid-large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tags-card, .tags-card-large { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .tags-card-icon, .tags-card-large .tags-card-icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 18px; }
  .tags-card-large .tags-card-body strong, .tags-card-body strong { font-size: 14px; }
  .tags-card-body { width: 100%; }
}

/* 6. 标签详情页 /tag/<slug>：标题区 + 单行可滑动的标签条 */
.tag-detail-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 95% 0, rgba(16,185,129,.14), transparent 35%),
    linear-gradient(135deg, #f0fdf7 0%, #fff 70%);
  border: 1px solid #dcefe5;
  border-radius: 18px;
}
.tag-detail-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 16px;
  font-size: 30px;
  box-shadow: 0 6px 16px rgba(16,185,129,.12);
}
.tag-detail-hero h1 { margin: 0 0 4px; font-size: clamp(24px, 3.2vw, 32px); color: #0f172a; }
.tag-detail-hero p { margin: 0; color: #475569; line-height: 1.7; font-size: 14px; }
.tag-chip-row { display: flex; align-items: center; gap: 10px; margin: 16px 0 22px; }
.tag-chip-scroll {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
  mask-image: linear-gradient(90deg, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.tag-chip-scroll::-webkit-scrollbar { display: none; }
.tag-chip-scroll .tag { flex: 0 0 auto; white-space: nowrap; }
.tag-chip-all { flex: 0 0 auto; color: #059669; font-size: 13px; font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) {
  .tag-detail-hero { padding: 16px; gap: 12px; }
  .tag-detail-icon { width: 46px; height: 46px; flex-basis: 46px; font-size: 24px; border-radius: 13px; }
}

/* 7. 手机端 App 式底部 Tab 栏（≤768px 显示） */
.app-tabbar { display: none; }
@media (max-width: 768px) {
  .app-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding: 0 6px env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid #e8edf2;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, .06);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
  }
  .app-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 58px;
    color: #8a94a3;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .app-tab svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .app-tab.is-active { color: #07a656; }
  .app-tab.is-active svg { stroke-width: 2.2; }
  .app-tab:active { transform: scale(.94); }
  .app-tab-post { color: #07a656; }
  .app-tab-post-btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-top: -20px;
    background: linear-gradient(145deg, #10c46a, #059c52);
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(7, 166, 86, .35);
  }
  .app-tab-post-btn svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2.6; }

  /* 给 Tab 栏留出空间，避免遮住页面底部内容 */
  html.has-app-tabbar body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  /* 有了「发布」Tab，顶栏的提交按钮在手机上不再需要 */
  body:not(.admin-page) .nav-actions .btn-primary[href="/submit"] { display: none; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* 8. 手机端修正（2026-10-20）：顶栏两行不再溢出到横幅上；二维码居中 */
/* 二维码图片完整显示，不裁切（cover 会切掉非正方形二维码的边缘，可能导致扫不出来） */
body:not(.admin-page) .detail-qr { object-fit: contain; background: #fff; }
@media (max-width: 768px) {
  /* 顶栏原来固定 64px 高，分类行换到第二行后会压到下方横幅，这里改为自适应高度 */
  body:not(.admin-page) .nav-inner {
    height: auto;
    min-height: 56px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  /* 底部已有「我的」Tab，顶栏的「我的群组」按钮在手机上隐藏 */
  body:not(.admin-page) .nav-actions [data-user-nav] { display: none; }

  /* 群详情：二维码与提示文字居中，二维码在手机上放大一些便于保存和识别 */
  .detail-qr-link {
    align-items: center;
    width: 100%;
  }
  .detail-qr {
    width: min(260px, 76vw);
    height: min(260px, 76vw);
    margin: 0 auto;
    object-fit: contain;
    background: #fff;
  }
}

/* 9. 二维码新鲜度徽章（列表卡片） */
.fresh-badge { display: inline-flex; align-items: center; gap: 2px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.fresh-badge.fresh-0 { color: #047857; background: #d1fae5; }
.fresh-badge.fresh-1 { color: #92400e; background: #fef3c7; }
.fresh-badge.fresh-2 { color: #64748b; background: #f1f5f9; font-weight: 600; }

/* 10. 每周热门排行 /rank */
.rank-page { background: #f8fafc; }
.rank-hero { padding: 24px 0 30px; background: radial-gradient(circle at 90% 0, rgba(249,115,22,.14), transparent 35%), linear-gradient(180deg, #fff7ed 0%, #f8fafc 100%); border-bottom: 1px solid #f3e3d3; }
.rank-kicker { display: inline-block; margin-top: 14px; padding: 4px 10px; color: #c2410c; background: #ffedd5; border-radius: 999px; font-size: 12px; font-weight: 700; }
.rank-hero h1 { margin: 10px 0 8px; font-size: clamp(26px, 4vw, 38px); color: #0f172a; letter-spacing: -.02em; }
.rank-hero p { max-width: 680px; color: #475569; line-height: 1.8; }
.rank-body { padding: 24px 16px 56px; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rank-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid #e5eaf0; border-radius: 14px; }
.rank-row.rank-top { border-color: #fcd9b6; box-shadow: 0 8px 20px rgba(249,115,22,.08); }
.rank-place { flex: 0 0 34px; text-align: center; font-size: 22px; }
.rank-place b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #f1f5f9; color: #475569; font-size: 14px; }
.rank-main { flex: 1; min-width: 0; color: #0f172a; text-decoration: none; }
.rank-main strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-main:hover strong { color: #059669; }
.rank-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; color: #64748b; font-size: 12px; }
.rank-score { display: grid; justify-items: end; flex: 0 0 auto; text-align: right; }
.rank-score em { font-style: normal; font-size: 20px; font-weight: 800; color: #0f172a; line-height: 1.1; }
.rank-score small { color: #94a3b8; font-size: 11px; }
.rank-trend { margin-top: 3px; font-size: 11.5px; font-weight: 700; color: #64748b; }
.rank-trend-up { color: #dc2626; }
.rank-trend-down { color: #64748b; }
.rank-trend-new { color: #c2410c; }
.rank-note { margin: 18px 0 0; color: #64748b; font-size: 13px; line-height: 1.8; }
.rank-empty { padding: 32px; text-align: center; color: #64748b; background: #fff; border: 1px dashed #d6dde5; border-radius: 14px; }
.rank-cities { margin-top: 30px; }
.rank-cities h2 { font-size: 18px; margin-bottom: 12px; }
.rank-city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.rank-city { display: block; padding: 12px 14px; color: #0f172a; text-decoration: none; background: #fff; border: 1px solid #e5eaf0; border-radius: 12px; }
.rank-city:hover, .rank-city.is-current { border-color: #fdba74; background: #fff7ed; }
.rank-city strong { display: block; font-size: 14px; }
.rank-city small { color: #94a3b8; font-size: 12px; }
@media (max-width: 640px) {
  .rank-row { gap: 10px; padding: 12px; }
  .rank-place { flex-basis: 26px; font-size: 18px; }
  .rank-main strong { white-space: normal; font-size: 14px; }
  .rank-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 11. 底部 Tab 加大（2026-10-22）：原来 58px 高、紧贴屏幕底边，iPhone 上容易和上滑手势误触。
   现在加高到 66px，图标和文字放大，底部至少留 12px（有 Home 指示条的机型留得更多）。 */
@media (max-width: 768px) {
  .app-tabbar {
    --tabbar-h: 66px;
    --tabbar-gap: max(12px, env(safe-area-inset-bottom, 0px));
    height: calc(var(--tabbar-h) + var(--tabbar-gap));
    padding: 0 4px var(--tabbar-gap);
    align-items: stretch;
  }
  .app-tab {
    height: var(--tabbar-h);
    gap: 4px;
    font-size: 12px;
    touch-action: manipulation;
  }
  .app-tab svg { width: 26px; height: 26px; }
  .app-tab-post { justify-content: flex-end; padding-bottom: 7px; }
  .app-tab-post-btn { width: 52px; height: 52px; margin-top: 0; margin-bottom: 2px; transform: translateY(-14px); margin-bottom: -12px; }
  .app-tab-post-btn svg { width: 24px; height: 24px; }
  html.has-app-tabbar body { padding-bottom: calc(66px + max(12px, env(safe-area-inset-bottom, 0px))); }
  .toast { bottom: calc(86px + max(12px, env(safe-area-inset-bottom, 0px))); }
}

/* 12. 顶部导航重做（2026-10-22）：字号加大、去掉灰色胶囊框和 emoji、当前栏目高亮、次要栏目收进「更多」 */
body:not(.admin-page) .nav { background: rgba(255,255,255,.96); }
body:not(.admin-page) .nav-inner { height: 68px; gap: 28px; }
body:not(.admin-page) .nav-logo { font-size: 20px; font-weight: 800; letter-spacing: -.01em; gap: 10px; }
body:not(.admin-page) .nav-logo .logo-icon { width: 38px; height: 38px; font-size: 19px; }
body:not(.admin-page) .nav-search.nav-search-links { flex: 1; min-width: 0; margin-left: 0; }
body:not(.admin-page) .nav-search.nav-search-links .nav-quick-links {
  display: flex; align-items: center; gap: 2px; padding: 0; border: 0; background: transparent; box-shadow: none;
}
body:not(.admin-page) .nav-quick-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 13px; border: 0; border-radius: 10px; background: transparent;
  color: #334155; font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  font-family: inherit; cursor: pointer; text-decoration: none; box-shadow: none;
}
body:not(.admin-page) .nav-quick-link:hover { color: #047857; background: #f0fdf4; box-shadow: none; }
body:not(.admin-page) .nav-quick-link.is-active,
body:not(.admin-page) .nav-more.has-active > .nav-more-btn { color: #047857; background: #ecfdf5; }
body:not(.admin-page) .nav-quick-link.is-active::after {
  content: ''; display: block; position: absolute; left: 13px; right: 13px; bottom: -14px; height: 3px; border-radius: 3px 3px 0 0; background: #059669;
}
body:not(.admin-page) .nav-ico { display: none; }
.nav-caret { font-size: 11px; opacity: .6; margin-left: 2px; }

/* 「更多」下拉（电脑端） */
.nav-more { position: relative; }
.nav-more-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 150px; padding: 6px;
  display: none; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid #e5eaf0; border-radius: 12px; box-shadow: 0 16px 36px rgba(15,23,42,.12); z-index: 120;
}
.nav-more::before { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.nav-more:hover .nav-more-menu, .nav-more:focus-within .nav-more-menu { display: flex; }
body:not(.admin-page) .nav-more-menu .nav-quick-link { width: 100%; padding: 10px 12px; }
body:not(.admin-page) .nav-more-menu .nav-quick-link.is-active::after { display: none; }

/* 右侧按钮 */
body:not(.admin-page) .nav-actions { gap: 10px; flex-shrink: 0; }
body:not(.admin-page) .nav-actions .btn { height: 42px; padding: 0 18px; border-radius: 11px; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
body:not(.admin-page) .nav-actions .btn-primary .nav-ico { display: inline; font-size: 17px; font-weight: 700; }
body:not(.admin-page) .nav-actions .btn-outline { color: #334155; border-color: #dbe3ea; background: #fff; }
body:not(.admin-page) .nav-actions .btn-outline:hover { color: #047857; border-color: #a7f3d0; background: #f0fdf4; }

/* 中等宽度：略收紧 */
@media (max-width: 1280px) {
  body:not(.admin-page) .nav-inner { gap: 16px; }
  body:not(.admin-page) .nav-quick-link { padding: 9px 10px; font-size: 14.5px; }
  body:not(.admin-page) .nav-quick-link.is-active::after { left: 10px; right: 10px; }
}
@media (max-width: 1080px) and (min-width: 769px) {
  body:not(.admin-page) .nav-quick-link[href="/search"] { display: none; }
  body:not(.admin-page) .nav-actions [data-user-nav] { display: none; }
}

/* 手机端：保持横向滑动的分类行，恢复 emoji，「更多」里的项平铺进同一行 */
@media (max-width: 768px) {
  body:not(.admin-page) .nav-inner { height: auto; gap: 8px; }
  body:not(.admin-page) .nav-logo { font-size: 18px; }
  body:not(.admin-page) .nav-logo .logo-icon { width: 34px; height: 34px; font-size: 17px; }
  body:not(.admin-page) .nav-search.nav-search-links { flex: 0 0 auto; order: 3; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px 2px; }
  body:not(.admin-page) .nav-search.nav-search-links .nav-quick-links { display: inline-flex; gap: 6px; }
  body:not(.admin-page) .nav-quick-link {
    padding: 7px 12px; font-size: 14px; font-weight: 600; background: #f3f6f8; border: 1px solid #e8edf2; border-radius: 999px;
  }
  body:not(.admin-page) .nav-quick-link.is-active { color: #fff; background: #059669; border-color: #059669; }
  body:not(.admin-page) .nav-quick-link.is-active::after { display: none; }
  body:not(.admin-page) .nav-ico { display: inline; }
  .nav-more { display: contents; }
  .nav-more-btn { display: none !important; }
  .nav-more-menu { display: contents; }
  body:not(.admin-page) .nav-more-menu .nav-quick-link { width: auto; padding: 7px 12px; }
}

/* 13. 手机端修正（2026-10-22）：导航重做后「我的群组」按钮的样式覆盖了隐藏规则，这里提高优先级 */
@media (max-width: 768px) {
  body:not(.admin-page) .nav-actions .btn[data-user-nav],
  body:not(.admin-page) .nav-actions .btn-primary[href="/submit"] { display: none !important; }
}

/* 14. 修复：旧规则 body > *:not(footer):last-of-type { margin-bottom: 60px } 本意是给正文底部留白，
   但顶部导航 nav 也是 body 下唯一的 nav，被误加了 60px 下边距，导致导航和页面标题之间出现一条空白带。 */
body > nav.nav { margin-bottom: 0; }

/* 15. 专题导航中心 /topics：标题区压缩成一行（标题 + 实时统计），下面是快捷入口 */
.topics-hub-hero { padding: 22px 0 24px; }
.topics-hub-hero .topic-breadcrumb { margin-bottom: 14px; }
.topics-hub-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.topics-hub-hero h1 { margin: 0 0 6px; font-size: clamp(28px, 3.4vw, 40px); }
.topics-hub-hero p { margin: 0; color: #47635a; font-size: 15px; line-height: 1.7; }
.topics-hub-stats { display: flex; gap: 10px; }
.topics-hub-stats div { min-width: 104px; padding: 10px 14px; background: rgba(255,255,255,.8); border: 1px solid rgba(16,185,129,.18); border-radius: 14px; }
.topics-hub-stats strong { display: block; color: #065f46; font-size: 22px; line-height: 1.2; }
.topics-hub-stats span { color: #64748b; font-size: 12px; }
.topics-hub-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.topics-hub-quick a { padding: 7px 14px; color: #047857; background: rgba(255,255,255,.85); border: 1px solid rgba(16,185,129,.22); border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; }
.topics-hub-quick a:hover { background: #ecfdf5; }
.topics-hub.topic-section { padding-top: 28px; }
.topics-hub .section-title { font-size: 20px; margin: 0; }
.topics-hub .topic-city-card small { color: #059669; font-weight: 600; }
@media (max-width: 760px) {
  .topics-hub-stats { width: 100%; }
  .topics-hub-stats div { flex: 1; min-width: 0; padding: 8px 10px; }
  .topics-hub-stats strong { font-size: 18px; }
  .topics-hub .topic-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .topics-hub .topic-city-card { padding: 12px; gap: 10px; }
  .topics-hub .topic-city-card b { display: none; }
  .topics-hub .topic-city-icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 18px; }
}

/* 16. 用户留存功能：收藏 / 关注按钮、消息红点、「我的」标签页 */
.fav-btn, .follow-btn {
  display: inline-flex; align-items: center; gap: 4px; margin: 10px 0 4px; padding: 8px 14px;
  color: #047857; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 999px;
  font: 700 14px/1.2 inherit; cursor: pointer; transition: .15s ease;
}
.fav-btn:hover, .follow-btn:hover { background: #d1fae5; }
.fav-btn.is-active, .follow-btn.is-active { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.fav-btn:disabled, .follow-btn:disabled { opacity: .6; cursor: wait; }
.follow-btn { margin-top: 14px; }
.notify-dot {
  position: absolute; top: 4px; right: calc(50% - 22px); min-width: 17px; height: 17px; padding: 0 4px;
  display: inline-grid; place-items: center; color: #fff; background: #ef4444; border: 2px solid #fff;
  border-radius: 999px; font-size: 10px; font-weight: 800; line-height: 1;
}
.app-tab { position: relative; }
.nav-actions [data-user-nav] { position: relative; }
.nav-actions [data-user-nav] .notify-dot { top: -6px; right: -6px; }

.my-page .my-head h1 { margin: 0 0 4px; font-size: 26px; }
.my-page .my-head p { margin: 0 0 16px; color: #64748b; font-size: 14px; }
.my-login { text-align: center; padding: 26px; margin-bottom: 16px; }
.my-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 24px; align-items: start; }
.my-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }
.my-main { min-width: 0; }
.my-side .my-account { flex-wrap: wrap; margin: 0; }
.my-side .my-logout { width: 100%; }
.my-tabs {
  display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 6px;
  background: #fff; border: 1px solid #e5eaf0; border-radius: 14px;
}
.my-tabs::-webkit-scrollbar { display: none; }
.my-tabs button {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px;
  border: 0; border-radius: 10px; background: transparent; text-align: left;
  color: #475569; font: 600 14.5px/1.2 inherit; cursor: pointer; white-space: nowrap;
}
.my-tabs button:hover { background: #f8fafc; color: #0f172a; }
.my-tabs button[aria-selected="true"] { color: #047857; background: #ecfdf5; font-weight: 800; }
.my-tabs button[aria-selected="true"]::before { content: ''; position: absolute; left: -6px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: #10b981; }
.my-tab-icon { width: 22px; font-style: normal; text-align: center; font-size: 16px; }
.my-tabs .my-tab-badge { margin-left: auto; }
.my-side-links { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.my-side-links .btn { width: 100%; justify-content: center; }
.my-side-links a:not(.btn) { color: #64748b; font-size: 13px; text-decoration: none; text-align: center; }
.my-side-links a:not(.btn):hover { color: #047857; }
.my-panel-title { margin: 2px 0 14px; }
.my-panel-title h2 { margin: 0 0 4px; font-size: 20px; color: #0f172a; }
.my-panel-title p { margin: 0; color: #64748b; font-size: 13.5px; }
.my-panel-title h2:empty, .my-panel-title h2:empty + p { display: none; }
@media (max-width: 900px) {
  .my-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .my-side { position: static; min-width: 0; }
  .my-side .my-account { flex-wrap: nowrap; }
  .my-side .my-logout { width: auto; }
  .my-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 4px; background: #f1f5f9; border: 0; }
  .my-tabs button { flex: 0 0 auto; width: auto; gap: 6px; padding: 9px 12px; }
  .my-tabs button[aria-selected="true"] { background: #fff; box-shadow: 0 2px 8px rgba(15,23,42,.08); }
  .my-tabs button[aria-selected="true"]::before { display: none; }
  .my-tabs .my-tab-badge { margin-left: 2px; }
  .my-side-links { display: none; }
  .my-panel-title h2 { font-size: 17px; }
}
.my-tab-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 5px; padding: 0 5px; color: #fff; background: #ef4444; border-radius: 999px; font-size: 11px; }
.my-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; color: #64748b; font-size: 13px; }
.my-empty { padding: 32px 16px; text-align: center; color: #64748b; line-height: 1.9; background: #fff; border: 1px dashed #d6dde5; border-radius: 14px; }
.my-empty-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.my-empty-links a { padding: 6px 12px; color: #047857; background: #ecfdf5; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; }
.my-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fff; border: 1px solid #e5eaf0; border-radius: 12px; }
.my-row-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: #0f172a; text-decoration: none; }
.my-row-thumb { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; overflow: hidden; background: #f8fafc; border: 1px solid #eef2f6; border-radius: 10px; }
.my-row-thumb img { width: 100%; height: 100%; object-fit: contain; }
.my-row-text { min-width: 0; }
.my-row-text strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-row-text small { color: #64748b; font-size: 12px; }
.my-row-time { flex: 0 0 auto; color: #94a3b8; font-size: 12px; }
.my-chip { flex: 0 0 auto; padding: 2px 8px; color: #64748b; background: #f1f5f9; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.my-chip-new { color: #047857; background: #d1fae5; }
.my-msg { padding: 12px; margin-bottom: 12px; background: #f8fafc; border: 1px solid #e5eaf0; border-radius: 14px; }
.my-msg-title { margin: 0 0 8px; font-size: 14px; font-weight: 800; color: #0f172a; }
.my-msg .my-row:last-of-type { margin-bottom: 4px; }
.my-msg-more { display: inline-block; margin-top: 4px; color: #059669; font-size: 13px; font-weight: 700; }
.my-follow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.my-follow { position: relative; }
.my-follow a { display: flex; align-items: center; gap: 8px; padding: 12px 34px 12px 14px; color: #0f172a; background: #fff; border: 1px solid #e5eaf0; border-radius: 12px; text-decoration: none; }
.my-follow a strong { font-size: 15px; }
.my-follow a em { margin-left: auto; color: #059669; font-style: normal; font-size: 12px; font-weight: 800; }
.my-follow a small { margin-left: auto; color: #94a3b8; font-size: 12px; }
.my-follow-x { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 22px; height: 22px; border: 0; border-radius: 50%; background: #f1f5f9; color: #64748b; font-size: 11px; cursor: pointer; }
.my-hint { margin-top: 10px; color: #94a3b8; font-size: 12px; }
@media (max-width: 640px) {
  .my-follow-grid { grid-template-columns: 1fr; }
  .my-row { flex-wrap: wrap; }
}
.my-tab-badge[hidden] { display: none; }

/* 17. 「我的」账号卡片 + 退出登录 */
.my-account { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 14px 16px; background: #fff; border: 1px solid #e5eaf0; border-radius: 14px; }
.my-account[hidden] { display: none; }
.my-account-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #10b981, #059669); border-radius: 50%; font-size: 18px; font-weight: 800; }
.my-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.my-account-info { flex: 1; min-width: 0; }
.my-account-info strong { display: block; font-size: 15px; color: #0f172a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-account-info small { display: block; color: #64748b; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-logout { flex: 0 0 auto; color: #b91c1c !important; border-color: #fecaca !important; }
.my-logout:hover { background: #fef2f2 !important; }

/* 18. 后台：左侧两级菜单 + 顶部工具栏 */
.admin-nav { display: flex; flex-direction: column; gap: 6px; }
.admin-nav-group-title {
  display: flex; align-items: center; width: 100%;
  padding: 8px 12px 6px; border: 0; background: none; cursor: pointer;
  color: rgba(255,255,255,0.45); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}
.admin-nav-group-title:hover { color: rgba(255,255,255,0.8); }
.admin-nav-caret { margin-left: auto; font-size: 11px; transition: transform 0.2s; }
.admin-nav-group.is-collapsed .admin-nav-caret { transform: rotate(-90deg); }
.admin-nav-group.is-collapsed .admin-nav-sub { display: none; }
.admin-nav-sub { padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.08); margin-left: 12px; }
.admin-nav-sub .admin-nav-item { padding: 9px 12px; font-size: 13.5px; }

.admin-toolbar {
  /* 内容区有 28px 内边距，吸顶位置要抵消掉，否则上面会留一条空隙 */
  position: sticky; top: -28px; z-index: 30;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: -28px -28px 22px; padding: 12px 28px;
  background: rgba(255,255,255,0.86); border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.admin-toolbar-crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #64748b; white-space: nowrap; }
.admin-toolbar-crumb span::after { content: '›'; margin-left: 8px; color: #cbd5e1; }
.admin-toolbar-crumb b { color: #0f172a; }
.admin-toolbar-search { flex: 1 1 220px; max-width: 360px; margin: 0; }
.admin-toolbar-search input {
  width: 100%; height: 36px; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 999px;
  background: #f8fafc; font: inherit; font-size: 13px; color: #0f172a;
}
.admin-toolbar-search input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(7,193,96,0.15); }
.admin-toolbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.admin-toolbar-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; cursor: pointer;
  color: #334155; font: inherit; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.admin-toolbar-btn:hover { border-color: var(--primary); color: #047857; background: #f0fdf4; }
.admin-toolbar-badge { min-width: 18px; height: 18px; padding: 0 6px; border-radius: 999px; background: #f97316; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.admin-toolbar-badge[hidden] { display: none; }
.admin-toolbar-user { font-size: 13px; color: #64748b; padding: 0 4px; white-space: nowrap; }
.admin-toolbar-logout { color: #b91c1c; border-color: #fecaca; }
.admin-toolbar-logout:hover { color: #b91c1c; background: #fef2f2; border-color: #fca5a5; }

@media (max-width: 768px) {
  .admin-nav { flex-direction: row; flex-wrap: wrap; gap: 0; }
  .admin-nav-group, .admin-nav-sub { display: contents; }
  .admin-nav-group.is-collapsed .admin-nav-sub { display: contents; }
  .admin-nav-group-title { display: none; }
  .admin-toolbar { top: 0; margin: -16px -16px 16px; padding: 10px 16px; gap: 10px; }
  .admin-toolbar-search { max-width: none; order: 3; flex-basis: 100%; }
  .admin-toolbar-user { display: none; }
}
.admin-nav-item span:empty { display: none; }

/* 19. 后台表格：可点表头排序 */
.sortable-th { cursor: pointer; user-select: none; white-space: nowrap; }
.sortable-th:hover { color: #047857; }
.sortable-th::after { content: '↕'; margin-left: 4px; font-size: 11px; opacity: .35; }
.sortable-th.is-sorted { color: #047857; }
.sortable-th.is-sorted[data-dir="desc"]::after { content: '↓'; opacity: 1; }
.sortable-th.is-sorted[data-dir="asc"]::after { content: '↑'; opacity: 1; }

/* 20. 后台「所有群组」：精简筛选栏 + 紧凑列表 */
.group-filter-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 14px; margin: 0 0 16px; }
.group-filter-main { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.group-filter-main .group-filter-search { flex: 1 1 240px; min-width: 200px; }
.group-filter-main .group-filter-sort { width: auto; min-width: 150px; flex: 0 0 auto; }
.group-status-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: #f1f5f9; }
.group-status-seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 600; color: #475569; cursor: pointer; white-space: nowrap; }
.group-status-seg button.active { background: #fff; color: #047857; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.group-filter-count { display: inline-block; min-width: 18px; margin-left: 2px; padding: 0 5px; border-radius: 999px; background: #10b981; color: #fff; font-size: 11px; line-height: 18px; }
.group-filter-count[hidden] { display: none; }
.group-filter-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e5e7eb; }
.group-filter-more[hidden] { display: none; }

.group-row td { vertical-align: middle; padding-top: 10px; padding-bottom: 10px; }
.group-row-qr { display: block; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid #e5e7eb; background: #f8fafc; }
.group-row-qr-empty { display: grid; place-items: center; font-size: 11px; color: #94a3b8; }
.group-row-main { min-width: 240px; }
.group-row-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.group-row-title a { font-weight: 700; color: #0f172a; text-decoration: none; }
.group-row-title a:hover { color: #047857; text-decoration: underline; }
.group-row-sub { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; color: #64748b; }
.group-row-sub .tag { margin: 0; padding: 1px 7px; font-size: 11px; }
.group-row-id { color: #94a3b8; font-variant-numeric: tabular-nums; }
.group-row-id::after, .group-row-sub > span:nth-child(2)::after { content: '·'; margin-left: 4px; color: #cbd5e1; }
.group-row-more { font-size: 11px; color: #64748b; cursor: help; }
.group-row-submitter { margin-top: 3px; font-size: 12px; color: #047857; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }
.group-row-region { font-size: 13px; color: #475569; white-space: nowrap; }
.group-row-stats { font-size: 13px; color: #475569; white-space: nowrap; }
.group-row-stats span { color: #cbd5e1; }
.group-row-report { color: #dc2626; }
.group-row-status { white-space: nowrap; }
.group-row-status .badge { white-space: nowrap; }
.group-row-status div { margin-top: 4px; font-size: 12px; color: #94a3b8; }
.group-row-pending { background: #fffbeb; }
.group-row-rejected td { opacity: .7; }
.group-row-actions { display: flex; gap: 4px; flex-wrap: nowrap; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #334155; font-size: 13px; cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: #94a3b8; background: #f8fafc; }
.icon-btn-ok { color: #047857; border-color: #a7f3d0; font-weight: 700; }
.icon-btn-ok:hover { background: #ecfdf5; border-color: #10b981; }
.icon-btn-warn { color: #b45309; border-color: #fde68a; font-weight: 700; }
.icon-btn-warn:hover { background: #fffbeb; border-color: #f59e0b; }
.icon-btn-danger:hover { background: #fef2f2; border-color: #fca5a5; }
@media (max-width: 768px) {
  .group-filter-main .group-filter-search { flex-basis: 100%; }
  .group-status-seg { overflow-x: auto; max-width: 100%; }
}

/* 21. 后台：换二维码待审核 */
.qr-review-section { margin: 0 0 18px; padding: 16px; border: 1px solid #fde68a; border-radius: 14px; background: #fffbeb; }
.qr-review-section[hidden] { display: none; }
.qr-review-section h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 16px; }
.qr-review-section > p { margin: 0 0 12px; font-size: 13px; color: #92400e; }
.qr-review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.qr-review-card { padding: 12px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.qr-review-head a { font-weight: 700; color: #0f172a; }
.qr-review-head span { display: block; margin-top: 2px; font-size: 12px; color: #64748b; }
.qr-review-compare { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.qr-review-compare figure { margin: 0; text-align: center; }
.qr-review-compare img { width: 96px !important; height: 96px !important; }
.qr-review-compare figcaption { margin-top: 4px; font-size: 12px; color: #64748b; }
.qr-review-arrow { font-size: 20px; color: #94a3b8; }
.qr-review-actions { display: flex; gap: 8px; }

/* 22. 付费发布 / 置顶精选 */
.posting-quota-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #f0fdf4; color: #166534; font-size: 13px; line-height: 1.6; }
.posting-quota-note[hidden] { display: none; }
.posting-quota-note.is-paid { background: #f5f3ff; color: #5b21b6; }
.pay-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.pay-note { font-size: 13px; color: #6b7280; }
.pay-note.is-featured { color: #b45309; font-weight: 600; }
.pay-feature { display: inline-flex; align-items: center; gap: 6px; }
.pay-feature .pay-weeks { width: auto; padding: 5px 8px; font-size: 13px; }
.pay-banner { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.pay-banner.is-ok { background: #ecfdf5; color: #047857; }
.pay-banner.is-info { background: #eff6ff; color: #1d4ed8; }
.pay-banner.is-warn { background: #fffbeb; color: #b45309; }

/* 23. 「我的 · 我发布的群」卡片 */
.mg-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 16px; color: #64748b; font-size: 14px; }
.mg-summary b { color: #0f172a; }
.mg-quota { padding: 4px 12px; border-radius: 999px; background: #f0fdf4; color: #047857; font-size: 13px; font-weight: 600; }
.mg-new { margin-left: auto; }
.mg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; align-items: start; }
.mg-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; padding: 18px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); transition: box-shadow .2s, border-color .2s; }
.mg-card:hover { border-color: #d1d5db; box-shadow: 0 6px 18px rgba(15, 23, 42, .06); }
.mg-card.is-highlight { box-shadow: 0 0 0 3px #10b981; }
.mg-card.is-awaiting_payment { border-color: #ddd6fe; }
.mg-card.is-rejected { opacity: .78; }
.mg-thumb { width: 104px; height: 104px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; border: 1px solid #e5e7eb; background: #f8fafc; font-size: 28px; }
.mg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mg-body { min-width: 0; display: grid; gap: 8px; align-content: start; }
.mg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mg-head h2 { margin: 0; font-size: 17px; line-height: 1.4; color: #0f172a; overflow-wrap: anywhere; }
.mg-featured { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fef3c7; color: #b45309; font-size: 12px; font-weight: 700; vertical-align: middle; }
.mg-status { flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #f1f5f9; color: #475569; }
.mg-status.is-approved { background: #ecfdf5; color: #047857; }
.mg-status.is-pending { background: #fffbeb; color: #b45309; }
.mg-status.is-rejected { background: #fef2f2; color: #b91c1c; }
.mg-status.is-awaiting_payment { background: #f5f3ff; color: #6d28d9; }
.mg-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #64748b; }
.mg-meta span { color: #cbd5e1; }
.mg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mg-tags .tag { margin: 0; }
.mg-callout { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, #f5f3ff, #ede9fe); border: 1px solid #ddd6fe; }
.mg-callout strong { display: block; font-size: 14px; color: #5b21b6; }
.mg-callout p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.5; color: #6d28d9; }
.mg-callout .btn { flex: 0 0 auto; }
.mg-callout.is-free { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border-color: #a7f3d0; }
.mg-callout.is-free strong, .mg-callout.is-free p { color: #047857; }
.mg-note { font-size: 13px; color: #64748b; }
.mg-note.is-featured { color: #b45309; font-weight: 600; }
.mg-boost { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: #fffbeb; border: 1px dashed #fcd34d; }
.mg-boost-head strong { display: block; font-size: 13.5px; color: #92400e; }
.mg-boost-head span { font-size: 12px; color: #b45309; }
.mg-boost-options { display: grid; gap: 8px; }
.mg-boost-option { display: flex; align-items: flex-start; gap: 9px; padding: 10px 11px; border-radius: 10px; background: #fff; border: 1.5px solid #fde68a; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mg-boost-option:hover { border-color: #f59e0b; }
.mg-boost-option.is-selected { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .15); }
.mg-boost-option.is-disabled { opacity: .6; cursor: not-allowed; }
.mg-boost-option input { margin-top: 3px; accent-color: #f59e0b; }
.mg-boost-option-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mg-boost-option-main b { font-size: 13.5px; color: #1f2937; }
.mg-boost-option-main small { font-size: 12px; color: #6b7280; line-height: 1.5; }
.mg-boost-option-main em { font-style: normal; font-size: 12px; color: #b45309; font-weight: 600; }
.mg-boost-price { flex: 0 0 auto; text-align: right; font-size: 12px; color: #6b7280; line-height: 1.4; }
.mg-boost-price b { font-size: 16px; color: #92400e; }
.mg-boost-price small { display: block; color: #059669; font-weight: 600; }
.mg-boost-buy { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.mg-boost-btn:disabled { opacity: .55; cursor: not-allowed; }
.mg-boost-buy .form-control { width: auto; padding: 5px 8px; font-size: 13px; }
.mg-boost-btn { background: #f59e0b; color: #fff; border: 0; }
.mg-boost-btn:hover { background: #d97706; color: #fff; }
.mg-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; margin-top: 2px; border-top: 1px solid #f1f5f9; }
.mg-body .owner-stats, .mg-body .owner-refresh { margin-top: 0; }
@media (max-width: 560px) {
  .mg-card { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .mg-thumb { width: 72px; height: 72px; }
  .mg-callout { flex-direction: column; align-items: stretch; }
  .mg-new { margin-left: 0; }
}

/* 24. 后台：Adsterra 广告开关 */
.ad-switch-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; padding: 16px 18px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; }
.ad-switch-card strong { font-size: 15px; color: #0f172a; }
.ad-switch-card p { margin: 4px 0 0; font-size: 13px; color: #64748b; }
.switch { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #cbd5e1; transition: background .2s; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .25); transition: transform .2s; }
.switch input:checked + .switch-track { background: #10b981; }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 2px solid #10b981; outline-offset: 2px; }
.switch input:disabled + .switch-track { opacity: .6; }
.switch-label { font-size: 13px; font-weight: 700; color: #047857; min-width: 42px; }
.switch-label.is-off { color: #b91c1c; }

/* 25. 群详情页：标题区 + 右侧站长推荐
   右侧类名刻意不用 ad / ads / sponsor：广告拦截插件会按这些类名把整块隐藏。 */
.group-page .detail-overview { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.group-page .detail-qr-link, .group-page .detail-qr { width: 200px; }
.group-page .detail-qr { height: 200px; }
.group-page .detail-qr-hint { font-size: 12.5px; color: #047857; text-align: center; line-height: 1.5; }
.group-page .detail-summary { display: flex; flex-direction: column; gap: 16px; }
.group-page .detail-heading { display: flex; flex-direction: column; gap: 10px; }
.group-page .detail-title { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.3; letter-spacing: -.01em; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13.5px; color: #64748b; }
.detail-meta .owner-badge { margin-left: 0; }
.group-page .detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.group-page .detail-tags .tag { margin: 0; }

/* 二维码状态卡 */
.group-page .qr-freshness { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; margin: 0; padding: 12px 14px; border-radius: 14px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.group-page .qr-freshness.is-expired { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.qr-fresh-icon { font-size: 20px; line-height: 1; }
.qr-fresh-text { display: flex; flex-direction: column; min-width: 0; }
.qr-fresh-text strong { font-size: 14.5px; }
.qr-fresh-text small { font-size: 12.5px; opacity: .8; }
.group-page .qr-report-btn { margin: 0; padding: 6px 12px; border: 1px solid currentColor; border-radius: 999px; background: #fff; color: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.group-page .qr-report-btn:hover { background: rgba(255, 255, 255, .6); }
.group-page .qr-report-msg { grid-column: 1 / -1; }

/* 联系方式（有才显示） */
.group-page .detail-summary-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 0; padding: 0; border: 0; }
.group-page .detail-summary-info .detail-info-item { padding: 10px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f6; }
.group-page .detail-info-label { margin-bottom: 4px; }
.group-page .detail-info-value { font-weight: 600; color: #0f172a; }

/* 操作按钮：等高并排 */
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.detail-actions:empty { display: none; }
.group-page .detail-actions .fav-btn,
.group-page .detail-actions .detail-surprise-link { box-sizing: border-box; height: 40px; min-height: 0; margin: 0; padding: 0 18px; gap: 6px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1; }
.group-page .detail-surprise-heart { width: 16px; height: 16px; }

/* 右侧站长推荐：窄栏、图片限高 */
@media (min-width: 820px) {
  .group-page .group-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
}
.pick-rail { display: grid; gap: 12px; }
.pick-rail-label { font-size: 12px; font-weight: 600; color: #94a3b8; letter-spacing: .06em; }
.pick-card { display: block; overflow: hidden; border-radius: 12px; background: #fff; border: 1px solid #e5e7eb; color: inherit; text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.pick-card:hover { border-color: #cbd5e1; box-shadow: 0 6px 16px rgba(15, 23, 42, .08); }
.pick-img { display: block; width: 100%; height: 130px; object-fit: cover; background: #f8fafc; }
.pick-title { display: block; padding: 8px 12px; font-size: 12.5px; color: #475569; text-align: center; border-top: 1px solid #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 819px) {
  .group-page .detail-overview { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .group-page .detail-summary { width: 100%; }
  .group-page .group-sidebar { max-width: none; }
  .pick-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick-rail-label { grid-column: 1 / -1; }
  .pick-img { height: 96px; }
  .group-page .qr-freshness { grid-template-columns: auto minmax(0, 1fr); }
  .group-page .qr-report-btn { grid-column: 1 / -1; justify-self: start; }
  .group-page .detail-actions .fav-btn, .group-page .detail-actions .detail-surprise-link { flex: 1 1 0; justify-content: center; }
}
.group-page .detail-actions .fav-btn, .group-page .detail-actions .detail-surprise-link { white-space: nowrap; }
/* 详情页：按钮区和下面「群组概况」之间留出间距 */
.group-page .detail-overview { margin-bottom: 28px; }
@media (max-width: 819px) { .group-page .detail-overview { margin-bottom: 20px; } }

/* 26. 排行榜：更多榜单 */
.rank-boards { margin: 28px 0 8px; }
.rank-boards > h2 { margin: 0 0 14px; font-size: 20px; color: #0f172a; }
.rank-board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.rank-board { padding: 16px 18px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; }
.rank-board h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font-size: 16px; color: #0f172a; }
.rank-board h3 small { font-size: 12px; font-weight: 500; color: #94a3b8; }
.rank-board ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rank-board li { display: grid; grid-template-columns: 22px minmax(0, 1.4fr) minmax(40px, 1fr) auto; align-items: center; gap: 10px; font-size: 13.5px; }
.rank-board-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #f1f5f9; color: #64748b; font-size: 12px; font-weight: 700; }
.rank-board-no.is-top { background: #ffedd5; color: #c2410c; }
.rank-board li a { overflow: hidden; color: #0f172a; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.rank-board li a:hover { color: #047857; text-decoration: underline; }
.rank-board-bar { height: 6px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.rank-board-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fb923c, #f97316); }
.rank-board-value { font-size: 12px; font-weight: 600; color: #64748b; white-space: nowrap; }

/* 27. 国家 / 城市卡片右上角「+N 新」（近 7 天新收录） */
.location-card { position: relative; }
.location-new { position: absolute; top: 8px; right: 8px; padding: 2px 7px; border-radius: 999px; background: linear-gradient(135deg, #f97316, #ef4444); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.5; box-shadow: 0 2px 6px rgba(239, 68, 68, .25); }

/* 28. 分类页头部（国家 / 城市 / 标签 / 老乡等共用）：标题 + 概览卡 + 入口一排 + 可展开的「关于本页」 */
body:not(.admin-page) .seo-hero-v2 { padding: 26px 28px 22px; }
.seo-hero-v2 .seo-hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 28px; align-items: start; }
.seo-hero-v2 .seo-hero-main { min-width: 0; }
body:not(.admin-page) .seo-hero-v2 h1 { margin: 2px 0 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25; letter-spacing: -.02em; }
body:not(.admin-page) .seo-hero-v2 .seo-hero-main p { max-width: 720px; margin: 0; color: #475569; font-size: 14.5px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.seo-hero-facts { position: relative; z-index: 1; display: grid; gap: 0; margin: 0; padding: 6px 16px; border: 1px solid #e2ece8; border-radius: 16px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); }
.seo-hero-fact { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #e5ece9; }
.seo-hero-fact:last-child { border-bottom: 0; }
.seo-hero-fact dt { flex: 0 0 auto; font-size: 12.5px; color: #64748b; }
.seo-hero-fact dd { min-width: 0; margin: 0; font-size: 13.5px; font-weight: 700; color: #0f172a; text-align: right; overflow-wrap: anywhere; }
.seo-hero-fact:first-child dd { color: #047857; }
body:not(.admin-page) .seo-hero-v2 .seo-hero-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
body:not(.admin-page) .seo-hero-v2 .seo-hero-chip { padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.seo-hero-about { position: relative; z-index: 1; margin-top: 14px; font-size: 13px; color: #64748b; }
.seo-hero-about summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: #047857; font-weight: 600; list-style: none; }
.seo-hero-about summary::-webkit-details-marker { display: none; }
.seo-hero-about summary::after { content: '▾'; font-size: 11px; transition: transform .2s; }
.seo-hero-about[open] summary::after { transform: rotate(180deg); }
.seo-hero-about p { margin: 8px 0 0; line-height: 1.7; }
@media (max-width: 760px) {
  body:not(.admin-page) .seo-hero-v2 { padding: 20px 18px 16px; }
  .seo-hero-v2 .seo-hero-top { grid-template-columns: 1fr; gap: 16px; }
  body:not(.admin-page) .seo-hero-v2 .seo-hero-links { flex-wrap: nowrap; overflow-x: auto; margin-right: -18px; padding-right: 18px; scrollbar-width: none; }
  body:not(.admin-page) .seo-hero-v2 .seo-hero-chip { flex: 0 0 auto; }
}

/* 29. 群详情页内容区：概况 / 入群说明 / 如何加入 / 常见问题
   原来四块都是同样的浅绿框，改成白底卡片 + 各自的强调方式，读起来有层次 */
body.group-page .join-box { margin: 0 0 14px; padding: 18px 20px; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; font-size: 14.5px; line-height: 1.8; color: #334155; }
body.group-page .join-box-title { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 15.5px; font-weight: 700; color: #0f172a; }
body.group-page .join-box p { margin: 0; }
body.group-page .join-box a { color: #047857; font-weight: 600; }
body.group-page .group-overview { position: relative; background: linear-gradient(135deg, #f0fdf4, #ffffff 60%); border-color: #d1fae5; }
body.group-page .group-overview::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: #10b981; }
/* 如何加入：三步卡片 */
.howto-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; counter-reset: howto; }
.howto-steps li { position: relative; padding: 14px 14px 14px 46px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f6; font-size: 13.5px; line-height: 1.7; counter-increment: howto; }
.howto-steps li::before { content: counter(howto); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #10b981; color: #fff; font-size: 12px; font-weight: 700; }
.howto-steps li strong { display: block; margin-bottom: 2px; color: #0f172a; }
/* 常见问题：折叠 */
body.group-page .group-faq .faq-item { border-top: 1px solid #f1f5f9; }
body.group-page .group-faq .faq-item:first-of-type { border-top: 0; }
body.group-page .group-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; cursor: pointer; list-style: none; }
body.group-page .group-faq summary::-webkit-details-marker { display: none; }
body.group-page .group-faq summary h2 { margin: 0; font-size: 14.5px; font-weight: 600; color: #0f172a; }
body.group-page .group-faq summary::after { content: '+'; flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f1f5f9; color: #475569; font-weight: 700; }
body.group-page .group-faq .faq-item[open] summary::after { content: '−'; background: #d1fae5; color: #047857; }
body.group-page .group-faq .faq-item p { margin: 0 0 12px; color: #475569; }

/* 30. 群详情页：近 30 天查看次数 + 迷你趋势线 */
.views-trend { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f6; }
.views-trend-text { font-size: 13.5px; color: #475569; }
.views-trend-text b { color: #0f172a; font-size: 15px; }
.views-trend-text small { margin-left: 8px; color: #94a3b8; font-size: 12px; }
.views-trend-line { flex: 0 0 auto; overflow: visible; }
.views-trend-area { fill: rgba(16, 185, 129, .12); stroke: none; }
.views-trend-stroke { fill: none; stroke: #10b981; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* 31. 「我的群组」群主 30 天查看折线图 */
.mg-chart { margin-top: 2px; padding: 12px 14px; border: 1px solid #eef2f6; border-radius: 12px; background: #fff; }
.mg-chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 8px; font-size: 13px; color: #64748b; }
.mg-chart-head strong { color: #0f172a; font-size: 13.5px; }
.mg-chart-svg { display: block; width: 100%; height: 110px; }
.mg-chart-grid { stroke: #f1f5f9; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mg-chart-area { fill: rgba(16, 185, 129, .12); }
.mg-chart-line { fill: none; stroke: #10b981; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mg-chart-axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11.5px; color: #94a3b8; }
.mg-chart-empty { padding: 10px 0 4px; font-size: 12.5px; color: #94a3b8; }

/* 32. 排行榜主榜更紧凑：前 10 名一行一个小卡片，其余折叠 */
.rank-list { gap: 6px; }
.rank-row { padding: 9px 14px; gap: 12px; border-radius: 12px; }
.rank-row.rank-top { box-shadow: none; }
.rank-place { flex-basis: 28px; font-size: 18px; }
.rank-place b { width: 24px; height: 24px; font-size: 12.5px; border-radius: 7px; }
.rank-main strong { font-size: 14.5px; }
.rank-score { display: flex; align-items: baseline; gap: 6px; }
.rank-score em { font-size: 16px; }
.rank-more { margin-top: 8px; }
.rank-more summary { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #fed7aa; border-radius: 999px; background: #fff7ed; color: #c2410c; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.rank-more summary::-webkit-details-marker { display: none; }
.rank-more summary::after { content: '▾'; }
.rank-more[open] summary::after { content: '▴'; }
.rank-more .rank-list { margin-top: 8px; }
.rank-boards { margin-top: 22px; }
@media (min-width: 900px) { .rank-body > .rank-list, .rank-more .rank-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 33. 运动 / 副业兼职卡片图标：emoji + 渐变色底（见 functions/catalog-icons.js） */
.catalog-icon { flex: 0 0 auto; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--from), var(--to)); font-size: 28px; line-height: 1; box-shadow: 0 6px 14px -6px var(--to), inset 0 1px 0 rgba(255, 255, 255, .35); }
.catalog-card:hover .catalog-icon { transform: translateY(-2px) rotate(-4deg); transition: transform .2s; }
.catalog-card .group-card-top { align-items: center; }
.catalog-card-go { color: #047857; font-weight: 600; }

/* 34. 国家 / 城市网格里的广告卡（Adsterra 原生广告 1:1），外观和地点卡片一致 */
.location-ad-slot { position: relative; display: none; padding: 12px; }
.location-ad-slot.is-ready { display: block; }
.location-ad-badge { position: absolute; top: 8px; right: 8px; z-index: 1; padding: 1px 7px; border-radius: 999px; background: #f1f5f9; color: #64748b; font-size: 11px; font-weight: 600; }
.location-ad-link { display: flex; flex-direction: column; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.location-ad-link img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #f8fafc; }
.location-ad-link .location-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.4; }

/* 35. 新版 Adsterra 原生广告组件：保留它自己的 DOM 和点击计费，只用 CSS 调外观 */
.adsterra-widget [class$="__stand"] { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)) !important; gap: 12px !important; width: 100% !important; }
.adsterra-widget [class$="__bn-container"] { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.adsterra-widget [class$="__bn"] { position: relative !important; display: flex !important; align-items: center !important; gap: 12px !important; width: auto !important; height: auto !important; min-height: 72px !important; padding: 12px !important; border: 1px solid #e5e7eb !important; border-radius: 14px !important; background: #fff !important; box-shadow: none !important; overflow: hidden !important; }
.adsterra-widget [class$="__img-container"] { flex: 0 0 auto !important; width: 64px !important; height: 64px !important; margin: 0 !important; border-radius: 10px !important; overflow: hidden !important; }
.adsterra-widget [class$="__img"] { width: 100% !important; height: 100% !important; padding: 0 !important; background-size: cover !important; background-position: center !important; }
.adsterra-widget [class$="__title"] { position: static !important; flex: 1 !important; margin: 0 !important; padding: 0 !important; font-size: 13.5px !important; line-height: 1.5 !important; color: #0f172a !important; font-weight: 600 !important; text-align: left !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
.adsterra-widget [class$="__link"] { position: absolute !important; inset: 0 !important; z-index: 2 !important; }
.adsterra-widget [class$="__cancel-btn"] { z-index: 3 !important; }
/* 国家 / 城市网格里的广告位：只显示一条，竖排，和地点卡片同尺寸 */
.location-ad-slot .adsterra-widget [class$="__stand"] { grid-template-columns: 1fr !important; }
.location-ad-slot .adsterra-widget [class$="__bn-container"] ~ [class$="__bn-container"] { display: none !important; }
.location-ad-slot .adsterra-widget [class$="__bn"] { flex-direction: column !important; border: 0 !important; padding: 4px 0 0 !important; min-height: 0 !important; text-align: center !important; }
.location-ad-slot .adsterra-widget [class$="__img-container"] { width: 56px !important; height: 56px !important; }
.location-ad-slot .adsterra-widget [class$="__title"] { text-align: center !important; font-size: 12.5px !important; font-weight: 500 !important; }

/* 36. 国家 / 城市网格里的广告卡：和地点卡片同高——左边小图、右边一行标题，不把整行撑高 */
body:not(.admin-page) .location-ad-slot { display: none; padding: 14px 16px; overflow: hidden; }
body:not(.admin-page) .location-ad-slot.is-ready { display: block; }
.location-ad-slot .location-ad-badge { top: 6px; right: 6px; font-size: 10.5px; }
.location-ad-slot .adsterra-widget, .location-ad-slot .adsterra-widget [class$="__stand"], .location-ad-slot .adsterra-widget [class$="__bn-container"] { display: block !important; width: 100% !important; height: auto !important; }
.location-ad-slot .adsterra-widget [class$="__bn"] { flex-direction: row !important; align-items: center !important; gap: 12px !important; padding: 0 !important; border: 0 !important; min-height: 0 !important; height: 42px !important; }
.location-ad-slot .adsterra-widget [class$="__img-container"] { width: 40px !important; height: 40px !important; border-radius: 8px !important; }
.location-ad-slot .adsterra-widget [class$="__title"] { padding-right: 34px !important; text-align: left !important; font-size: 13px !important; font-weight: 600 !important; -webkit-line-clamp: 2 !important; line-height: 1.35 !important; }
.location-ad-slot .adsterra-widget [class$="__stand-name"] { display: none !important; }

/* 37. 手机底部标签栏改成 4 个：首页 / 搜索 / 排行榜 / 我的 */
@media (max-width: 768px) {
  .app-tabbar { grid-template-columns: repeat(4, 1fr) !important; }
}

/* 38. 群卡片网格里的原生广告：独占一整行，4 条广告横排，不再挤进一个格子把整行撑高 */
.group-grid > .adsterra-native-banner { display: block !important; grid-column: 1 / -1; }
.group-grid > .adsterra-native-banner #container-4eca89d82cd9f111a785e14edaebcab3 { display: block !important; }
.group-grid > .adsterra-native-banner .adsterra-widget [class$="__stand"] { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)) !important; gap: 16px !important; }
.group-grid > .adsterra-native-banner .adsterra-widget [class$="__bn"] { min-height: 96px !important; padding: 14px !important; border-radius: 16px !important; }
.group-grid > .adsterra-native-banner .adsterra-widget [class$="__img-container"] { width: 72px !important; height: 72px !important; }
.group-grid > .adsterra-native-banner .adsterra-widget [class$="__stand-name"] { display: none !important; }

/* 39. 后台首页：疑似刷量 / 采集 */
.suspicious-card { margin: 0 0 16px; padding: 16px 18px; border: 1px solid #fecaca; border-radius: 14px; background: #fff; }
.suspicious-card[hidden] { display: none; }
.suspicious-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.suspicious-head strong { font-size: 15px; color: #0f172a; }
.suspicious-head span { font-size: 12.5px; color: #64748b; }
.suspicious-rule { margin: 6px 0 10px; font-size: 12px; color: #94a3b8; }
.suspicious-empty { margin: 4px 0 0; font-size: 13px; color: #047857; }

/* 40. 后台编辑群组：大洲 / 国家 / 州省 / 城市四级选择 */
.edit-location-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .edit-location-grid { grid-template-columns: 1fr 1fr; } }

/* 41. 大城市专题页（/topic/new-york）：页内导航、按需求、吃喝玩乐、新人清单、常见问题 */
.city-guide-jump { display: flex; gap: 8px; margin-top: 22px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.city-guide-jump::-webkit-scrollbar { display: none; }
.city-guide-jump a { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid #e5e7eb; color: #334155; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.city-guide-jump a:hover { border-color: var(--primary); color: var(--primary-dark); }
.city-guide-count { font-style: normal; font-size: 12px; font-weight: 600; color: var(--primary-dark); background: var(--primary-light); padding: 1px 7px; border-radius: 999px; margin-left: 4px; white-space: nowrap; }
.city-guide-needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.city-guide-needs a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #e5e7eb; text-decoration: none; transition: border-color .15s, transform .15s; }
.city-guide-needs a:hover { border-color: var(--primary); transform: translateY(-1px); }
.city-guide-needs strong { color: #0f172a; font-size: 15px; }
.city-guide-needs span { color: #64748b; font-size: 12.5px; }
.city-guide-spots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.city-guide-spot { padding: 16px; border-radius: 14px; background: #fff; border: 1px solid #e5e7eb; display: flex; flex-direction: column; }
.city-guide-spot strong { color: #0f172a; font-size: 15.5px; }
.city-guide-spot p { margin: 6px 0 10px; color: #475569; font-size: 14px; line-height: 1.65; flex: 1; }
.city-guide-spot a { font-size: 13px; font-weight: 600; color: var(--primary-dark); text-decoration: none; }
.city-guide-tips { margin: 16px 0 0; padding: 14px 16px 14px 34px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 13.5px; line-height: 1.8; }
.city-guide-fun { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.city-guide-fun-card { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid #e5e7eb; background: #fff; }
.city-guide-fun-card > span { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: #f1f5f9; display: grid; place-items: center; font-size: 22px; }
.city-guide-fun-card strong { color: #0f172a; font-size: 15px; }
.city-guide-fun-card p { margin: 4px 0 0; color: #475569; font-size: 13.5px; line-height: 1.6; }
.city-guide-calendar { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, #eff6ff, #f0fdf4); border: 1px solid #dbeafe; }
.city-guide-calendar h3 { margin: 0 0 10px; font-size: 16px; color: #0f172a; }
.city-guide-calendar ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 18px; }
.city-guide-calendar li { display: flex; gap: 10px; font-size: 13.5px; color: #334155; line-height: 1.5; }
.city-guide-calendar b { flex: 0 0 72px; color: #1d4ed8; }
.city-guide-related { margin-top: 22px; }
.city-guide-related-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.city-guide-related-head strong { font-size: 15.5px; color: #0f172a; }
.city-guide-related-head a { font-size: 13px; font-weight: 600; color: var(--primary-dark); text-decoration: none; }
.city-guide-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.city-guide-check { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid #e5e7eb; }
.city-guide-check-no { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.city-guide-check strong { font-size: 15px; color: #0f172a; }
.city-guide-check p { margin: 4px 0 0; font-size: 13.5px; color: #475569; line-height: 1.65; }
.city-guide-note { margin: 12px 0 0; font-size: 12.5px; color: #94a3b8; }
.city-guide-faq h2 { margin: 0 0 8px; }
.city-guide-faq details { border-top: 1px solid #e5e7eb; padding: 10px 0; }
.city-guide-faq details:first-of-type { border-top: 0; }
.city-guide-faq summary { cursor: pointer; font-weight: 600; color: #0f172a; font-size: 14.5px; }
.city-guide-faq details p { margin: 8px 0 0; color: #475569; font-size: 13.5px; line-height: 1.7; }
@media (max-width: 640px) {
  .city-guide-fun, .city-guide-checklist, .city-guide-spots { grid-template-columns: 1fr; }
  .city-guide-needs { grid-template-columns: repeat(2, 1fr); }
}
.city-guide-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.city-guide-areas small { white-space: normal; line-height: 1.5; }
.city-guide-spots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.city-guide-fun, .city-guide-checklist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.city-guide-calendar ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
.city-guide-calendar li { flex-direction: column; gap: 2px; }
.city-guide-calendar b { flex: none; }
.city-guide-faq > div { flex: 1; min-width: 0; }
.city-guide-faq details p { margin-bottom: 4px; }
@media (max-width: 900px) {
  .city-guide-spots, .city-guide-fun, .city-guide-checklist, .city-guide-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .city-guide-spots, .city-guide-fun, .city-guide-checklist, .city-guide-areas { grid-template-columns: minmax(0, 1fr); }
  .city-guide-calendar ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-guide-hero .topic-hero-metrics { gap: 18px; }
}
.city-guide-cta { display: flex; justify-content: center; align-items: center; margin-top: 16px; padding: 13px 18px; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.city-guide-cta:hover { background: var(--primary-dark); color: #fff; }

/* 42. 城市近期活动（专题页、城市页、国家页） */
.city-events { margin: 8px 0 28px; }
.city-event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.city-event { display: flex; gap: 14px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid #e5e7eb; }
.city-event-date { flex: 0 0 54px; height: 60px; border-radius: 12px; background: linear-gradient(160deg, #ecfdf5, #eff6ff); border: 1px solid #d1fae5; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.city-event-date b { font-size: 22px; line-height: 1; color: #065f46; }
.city-event-date span { font-size: 12px; color: #047857; margin-top: 3px; }
.city-event-body { min-width: 0; flex: 1; }
.city-event-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; }
.city-event-cat { padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: #334155; font-weight: 600; }
.city-event-city { color: #0369a1; font-weight: 600; }
.city-event-when { color: #64748b; }
.city-event h3 { margin: 6px 0 4px; font-size: 15.5px; color: #0f172a; line-height: 1.45; }
.city-event p { margin: 0; font-size: 13.5px; color: #475569; line-height: 1.65; }
.city-event-meta { margin-top: 6px; font-size: 12.5px; color: #64748b; }
.city-event-source { display: inline-block; margin-top: 8px; font-size: 12px; color: #94a3b8; text-decoration: none; }
.city-event-source:hover { color: var(--primary-dark); }
.city-guide-subhead { margin: 22px 0 12px; font-size: 16px; color: #0f172a; }
@media (max-width: 760px) { .city-event-list { grid-template-columns: minmax(0, 1fr); } }
.city-event-date.is-ongoing { background: #fff7ed; border-color: #fed7aa; }
.city-event-date.is-ongoing b { font-size: 15px; color: #c2410c; }
.city-event-date.is-ongoing span { color: #c2410c; }

/* 43. 专题页通用模板：无地图城市的热门区域卡片、国家页按需求（带城市） */
.city-guide-aside { padding: 18px; min-height: 0; }
.city-guide-aside-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.city-guide-aside-list a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.9); border: 1px solid #e5e7eb; text-decoration: none; color: #0f172a; min-width: 0; }
.city-guide-aside-list a:hover { border-color: var(--primary); }
.city-guide-aside-list strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-guide-aside-list em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--primary-dark); white-space: nowrap; }
.city-guide-needs-country { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.city-guide-needs-country > div { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid #e5e7eb; }
.city-guide-needs-country > div > a { display: flex; flex-direction: row; justify-content: space-between; align-items: baseline; padding: 0; border: 0; background: none; transform: none; text-decoration: none; }
.city-guide-needs-country > div > a:hover { transform: none; }
.city-guide-needs-country p { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.city-guide-needs-country p a { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); font-size: 12px; font-weight: 600; text-decoration: none; border: 0; }
@media (max-width: 640px) { .city-guide-needs-country { grid-template-columns: minmax(0, 1fr); } }

/* 44. 后台近期活动：搜索和四级筛选 */
.events-filter { display: grid; grid-template-columns: minmax(200px, 2fr) repeat(5, minmax(110px, 1fr)) auto; gap: 8px; align-items: center; margin-bottom: 12px; }
.events-filter-count { font-size: 13px; color: #6b7280; white-space: nowrap; }
@media (max-width: 1100px) { .events-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); } .events-filter #evSearch { grid-column: 1 / -1; } }
#eventsTable td:nth-child(n+4) { white-space: nowrap; }
#eventsTable td:nth-child(2) { min-width: 110px; }

/* 45. 站内信：我的群组 → 联系管理员（聊天气泡）、后台站内信 */
.support-box { background: #fff; border: 1px solid #e5eaf0; border-radius: 16px; overflow: hidden; }
.support-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid #eef2f6; }
.support-head strong { font-size: 15px; color: #0f172a; }
.support-head small { font-size: 12.5px; color: #64748b; }
.support-thread { display: flex; flex-direction: column; gap: 10px; max-height: 460px; min-height: 160px; overflow-y: auto; padding: 16px; background: #f8fafc; }
.support-empty { margin: auto; max-width: 360px; text-align: center; color: #64748b; font-size: 13.5px; line-height: 1.8; }
.support-bubble { max-width: 80%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.65; word-break: break-word; }
.support-bubble.is-me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.support-bubble.is-admin { align-self: flex-start; background: #fff; color: #0f172a; border: 1px solid #e5eaf0; border-bottom-left-radius: 4px; }
.support-bubble-who { font-size: 11.5px; opacity: .75; margin-bottom: 2px; }
.support-form { padding: 12px 16px 14px; border-top: 1px solid #eef2f6; }
.support-form textarea { width: 100%; resize: vertical; min-height: 72px; padding: 10px 12px; border: 1px solid #d6dde5; border-radius: 12px; font: inherit; font-size: 14px; line-height: 1.6; }
.support-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.support-form-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: #94a3b8; }
.my-msg-support { background: #ecfdf5; border-color: #a7f3d0; }
/* 「我的 → 联系管理员」：聊天框高度跟着屏幕走，输入框始终在可见范围内 */
.support-box-fit { display: flex; flex-direction: column; height: calc(100vh - 190px); min-height: 420px; max-height: 820px; }
.support-box-fit .support-thread { flex: 1; max-height: none; min-height: 0; padding: 18px 20px; gap: 12px; }
.support-box-fit .support-bubble { max-width: min(68%, 560px); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.support-box-fit .support-bubble.is-me { background: linear-gradient(135deg, #10b981, #059669); }
.support-box-fit .support-form { display: flex; flex-direction: column; background: #fff; }
.support-box-fit .support-form textarea { resize: none; min-height: 52px; max-height: 140px; }
@media (max-width: 900px) {
  .support-box-fit { height: calc(100dvh - 340px); min-height: 340px; }
  .support-box-fit .support-thread { padding: 14px 12px; }
  .support-box-fit .support-bubble { max-width: 82%; }
  .support-tip { display: none; }
}
.admin-support { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; min-height: 560px; }
.admin-support-list { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow-y: auto; max-height: 680px; }
.admin-support-item { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid #f1f5f9; background: none; cursor: pointer; font: inherit; }
.admin-support-item:hover, .admin-support-item.is-active { background: #f0fdf4; }
.admin-support-item strong { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: #0f172a; }
.admin-support-item strong em { font-style: normal; font-size: 11.5px; font-weight: 500; color: #94a3b8; white-space: nowrap; }
.admin-support-item p { margin: 4px 0 0; font-size: 12.5px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-support-item .my-tab-badge { margin-left: 0; }
.admin-support-chat { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; }
.admin-support-chat .support-thread { flex: 1; max-height: 520px; }
.admin-support-user { padding: 12px 16px; border-bottom: 1px solid #eef2f6; font-size: 13px; color: #64748b; }
.admin-support-user strong { color: #0f172a; font-size: 15px; margin-right: 8px; }
@media (max-width: 900px) { .admin-support { grid-template-columns: minmax(0, 1fr); } .admin-support-list { max-height: 260px; } }

/* 城市专属地标图标（替代国旗 emoji） */
.location-flag .location-logo { display: block; width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12); }
@media (max-width: 640px) {
  .location-flag .location-logo { width: 34px; height: 34px; border-radius: 9px; }
}

/* /cities：热门城市 + 大洲 / 国家筛选栏 */
.cx-hot { margin-bottom: 28px; }
.cx-hot[hidden], .cx-country[hidden], .cx-chip[hidden], .location-card[hidden] { display: none !important; }
.cx-filter {
  position: relative; z-index: 20;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.4) blur(8px);
  border: 1px solid #e8edf4; border-radius: 14px; padding: 12px 14px; margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}
.cx-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cx-tabs::-webkit-scrollbar, .cx-chips::-webkit-scrollbar { display: none; }
.cx-tab {
  flex: none; border: 0; background: transparent; color: #4b5563; font: inherit; font-size: 15px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.cx-tab small { margin-left: 4px; font-size: 12px; font-weight: 500; color: #9ca3af; }
.cx-tab:hover { background: #f3f4f6; }
.cx-tab.is-active { background: var(--primary); color: #fff; }
.cx-tab.is-active small { color: rgba(255, 255, 255, 0.85); }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; max-height: 128px; overflow-y: auto; }
.cx-chip {
  flex: none; display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 13.5px; color: #374151;
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 999px; padding: 5px 11px; cursor: pointer; white-space: nowrap;
}
.cx-chip small { font-size: 11.5px; color: #9ca3af; }
.cx-chip:hover { border-color: #8bd9b2; background: #f0fdf4; }
.cx-chip.is-active { border-color: var(--primary); background: var(--primary-light); color: #047857; font-weight: 600; box-shadow: 0 0 0 1px var(--primary) inset; }
.cx-search { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.cx-search .form-control { max-width: 240px; padding: 8px 12px; }
.cx-count { color: #9ca3af; font-size: 13px; white-space: nowrap; }
.cx-country { margin-bottom: 32px; scroll-margin-top: 220px; }
.cx-country-title { display: flex; align-items: baseline; gap: 8px; font-size: 1.1rem; color: #374151; margin-bottom: 16px; }
.cx-country-title a { color: inherit; text-decoration: none; }
.cx-country-title a:hover { color: var(--primary); }
.cx-country-title small { font-weight: 400; font-size: 0.85rem; color: #9ca3af; }
@media (max-width: 640px) {
  .cx-filter { margin-left: -4px; margin-right: -4px; padding: 10px; border-radius: 12px; }
  .cx-tab { font-size: 14px; padding: 6px 12px; }
  .cx-chips { flex-wrap: nowrap; overflow-x: auto; max-height: none; padding-bottom: 2px; }
  .cx-search .form-control { max-width: none; flex: 1; }
}
@media (max-width: 640px) {
  .cx-hot .location-card:nth-child(n+7) { display: none; }
}
@media (min-width: 768px) {
  .cx-filter { position: sticky; top: var(--cx-top, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; }
  .cx-filter .cx-tabs { grid-column: 1; grid-row: 1; }
  .cx-filter .cx-search { grid-column: 2; grid-row: 1; margin-top: 0; }
  .cx-filter .cx-search .form-control { width: 220px; }
  .cx-filter .cx-chips { grid-column: 1 / -1; grid-row: 2; }
  /* 吸顶后收成两行：大洲 + 搜索一行，国家横向滑动一行，不再挡住半个屏幕 */
  .cx-filter.is-stuck { padding: 8px 12px; border-radius: 0 0 14px 14px; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08); }
  .cx-filter.is-stuck .cx-tab { padding: 5px 12px; font-size: 14px; }
  .cx-filter.is-stuck .cx-search .form-control { padding: 6px 12px; }
  .cx-filter.is-stuck .cx-count { display: none; }
  .cx-filter.is-stuck .cx-chips {
    flex-wrap: nowrap; overflow-x: auto; max-height: none; margin-top: 8px; padding-bottom: 2px;
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent);
  }
  .cx-filter.is-stuck .cx-chip { padding: 4px 10px; font-size: 13px; }
}

/* 专题页：按需求找群、吃什么推荐的图标 */
.city-guide-needs:not(.city-guide-needs-country) a { flex-direction: row; align-items: center; gap: 10px; }
.city-guide-need-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.city-guide-need-text span { color: #64748b; font-size: 12.5px; }
.city-guide-need-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary-light, #ecfdf5); font-size: 19px; font-style: normal; line-height: 1; }
.city-guide-needs-country .city-guide-need-icon { width: 28px; height: 28px; font-size: 16px; border-radius: 8px; margin-right: 8px; vertical-align: middle; }
.city-guide-needs-country > div > a strong { display: inline-flex; align-items: center; }
.city-guide-spot-head { display: flex; align-items: center; gap: 10px; }
.city-guide-spot-icon { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #fff7ed; font-size: 22px; line-height: 1; }

/* 整站数据条（首页 hero、排行榜头部、推广合作页），见 functions/site-stats.js */
.site-stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; max-width: 920px; margin: 22px auto 0; }
.site-stats-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff; text-align: left; }
.site-stats-icon { font-size: 22px; line-height: 1; }
.site-stats-item strong { display: block; font-size: 18px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.site-stats-item small { display: block; margin-top: 2px; font-size: 12px; opacity: .82; }
.site-stats-bar-compact, .site-stats-bar-light { margin: 16px 0 0; max-width: none; }
.site-stats-bar-compact .site-stats-item, .site-stats-bar-light .site-stats-item { background: #fff; border-color: #e5e7eb; color: #0f172a; box-shadow: 0 4px 14px rgba(15,23,42,.04); }
.site-stats-bar-compact .site-stats-item small, .site-stats-bar-light .site-stats-item small { color: #64748b; opacity: 1; }
@media (max-width: 640px) {
  .site-stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .site-stats-item { padding: 10px 12px; }
  .site-stats-item strong { font-size: 16px; }
}

/* 排行榜：单个群用热度条 + 涨幅代替具体点击数 */
.rank-score { min-width: 110px; }
.rank-heat { display: block; width: 96px; height: 6px; margin-top: 6px; border-radius: 999px; background: #fde7d3; overflow: hidden; }
.rank-heat i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fb923c, #ef4444); }
.rank-score .rank-trend { margin-top: 0; font-size: 13px; }
@media (max-width: 640px) {
  .rank-score { min-width: 0; flex-direction: column; align-items: flex-end; gap: 2px; }
  .rank-heat { width: 64px; }
}

/* 推广合作页 /promote（functions/promote.js） */
.promote-hero { padding: 26px 0 32px; background: radial-gradient(circle at 92% 0, rgba(16,185,129,.16), transparent 38%), linear-gradient(180deg, #ecfdf5 0%, #f8fafc 100%); border-bottom: 1px solid #d1fae5; }
.promote-kicker { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #d1fae5; color: #047857; font-size: 12.5px; font-weight: 700; }
.promote-hero h1 { margin: 12px 0 8px; font-size: clamp(26px, 4vw, 38px); color: #0f172a; letter-spacing: -.02em; }
.promote-hero p { max-width: 720px; color: #475569; line-height: 1.8; }
.promote-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.promote-page .btn-secondary, .promote-section .btn-secondary, .promote-cta .btn-secondary { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 10px; border: 1px solid #a7f3d0; background: #fff; color: #047857; font-weight: 700; text-decoration: none; }
.promote-body { padding-top: 8px; padding-bottom: 40px; }
.promote-section { margin-top: 30px; }
.promote-section h2 { font-size: 21px; color: #0f172a; margin: 0 0 10px; }
.promote-lead { color: #475569; line-height: 1.8; margin: 0 0 14px; }
.promote-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.promote-plan { position: relative; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid #e5e7eb; }
.promote-plan.is-hot { border-color: #f59e0b; box-shadow: 0 10px 26px rgba(245,158,11,.14); }
.promote-plan-badge { position: absolute; top: 14px; right: 14px; padding: 3px 9px; border-radius: 999px; background: linear-gradient(135deg,#f59e0b,#ef4444); color: #fff; font-size: 12px; font-weight: 700; }
.promote-plan h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 17px; color: #0f172a; }
.promote-plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.promote-plan-price strong { font-size: 30px; color: #0f172a; }
.promote-plan-price small { color: #64748b; }
.promote-plan-price em { font-style: normal; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 12.5px; font-weight: 700; }
.promote-plan ul { margin: 12px 0 0; padding-left: 18px; color: #475569; line-height: 1.8; font-size: 14px; }
.promote-note { margin-top: 12px; color: #64748b; font-size: 13.5px; line-height: 1.7; }
.promote-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.promote-tier { padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid #e5e7eb; overflow-x: auto; }
.promote-tier h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 16px; color: #0f172a; }
.promote-tier p { margin: 0 0 10px; color: #64748b; font-size: 13px; }
.promote-tier table { width: 100%; border-collapse: collapse; font-size: 13px; }
.promote-tier th { text-align: left; color: #64748b; font-weight: 600; padding: 6px 4px; border-bottom: 1px solid #e5e7eb; white-space: nowrap; }
.promote-tier td { padding: 7px 4px; border-bottom: 1px solid #f1f5f9; color: #334155; white-space: nowrap; }
.promote-tier tr:last-child td { border-bottom: none; }
.promote-tier td b { color: #047857; }
.promote-cities { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.promote-cities li { display: grid; grid-template-columns: 28px 90px 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid #e5e7eb; }
.promote-city-no { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; background: #ecfdf5; color: #047857; font-size: 12.5px; font-weight: 800; }
.promote-cities a { color: #0f172a; font-weight: 700; text-decoration: none; }
.promote-city-bar { height: 8px; border-radius: 999px; background: #ecfdf5; overflow: hidden; }
.promote-city-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #34d399, #059669); }
.promote-city-value { color: #64748b; font-size: 12.5px; white-space: nowrap; }
.promote-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.promote-features > div { padding: 16px; border-radius: 14px; background: #fff; border: 1px solid #e5e7eb; }
.promote-features strong { color: #0f172a; font-size: 15px; }
.promote-features p { margin: 6px 0 0; color: #475569; font-size: 14px; line-height: 1.7; }
.promote-faq details { padding: 14px 16px; border-radius: 12px; background: #fff; border: 1px solid #e5e7eb; margin-bottom: 8px; }
.promote-faq summary { cursor: pointer; font-weight: 700; color: #0f172a; }
.promote-faq p { margin: 8px 0 0; color: #475569; line-height: 1.8; }
@media (max-width: 640px) {
  .promote-cities li { grid-template-columns: 24px 1fr auto; }
  .promote-city-bar { display: none; }
}
.mg-actions .mg-delete { margin-left: auto; color: #dc2626; border-color: #fecaca; }
.mg-actions .mg-delete:hover { background: #fef2f2; color: #b91c1c; }

/* ===== 标签大全 / 标签详情改版（2026-11-09）：气泡云、增长榜、浮现动画、标签主题色头图 ===== */
.tags-hero { position: relative; overflow: hidden; }
.tags-hero::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.14), transparent 65%); pointer-events: none; }
.tags-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; }
.tags-hero-copy p { margin: 0; }
.tags-stats { display: flex; gap: 28px; margin: 18px 0 20px; }
.tags-stats div { display: grid; gap: 2px; }
.tags-stats strong { font-size: 26px; font-weight: 800; color: #0f172a; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tags-stats span { font-size: 12px; color: #64748b; }
.tags-hero-actions { display: flex; gap: 10px; align-items: center; }
.tags-hero-actions .tags-search { flex: 1; min-width: 0; margin: 0; }
.tags-hero-actions .tags-search input { width: 100%; }
.tags-dice { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 50px; padding: 0 18px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 22px rgba(5,150,105,.25); transition: transform .15s ease, box-shadow .15s ease; }
.tags-dice:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(5,150,105,.3); }
.tags-dice span { display: inline-block; font-size: 18px; }
.tags-dice:hover span { animation: tags-dice-shake .5s ease; }
.tags-dice.is-rolling span { animation: tags-dice-roll .7s cubic-bezier(.3,.7,.4,1) infinite; }
@keyframes tags-dice-shake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-18deg); } 75% { transform: rotate(18deg); } }
@keyframes tags-dice-roll { to { transform: rotate(360deg); } }
.tags-card.is-picked { border-color: var(--tone); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 22%, transparent), 0 16px 30px rgba(15,23,42,.12); transform: translateY(-3px) scale(1.03); }

.tags-cloud { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 10px 12px; min-height: 300px; padding: 10px; }
.tags-bubble { --tone: #10b981; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid color-mix(in srgb, var(--tone) 28%, #fff); color: color-mix(in srgb, var(--tone) 75%, #0f172a); font-weight: 700; font-size: 13px; line-height: 1.2; white-space: nowrap; text-decoration: none; box-shadow: 0 6px 16px color-mix(in srgb, var(--tone) 14%, transparent); animation: tags-float var(--t, 6s) ease-in-out var(--d, 0s) infinite; transition: transform .2s ease, background .2s ease, color .2s ease; }
.tags-bubble:hover { animation-play-state: paused; transform: translateY(-4px) scale(1.08); background: var(--tone); color: #fff; }
.tags-bubble-2 { font-size: 14px; padding: 8px 15px; }
.tags-bubble-3 { font-size: 16px; padding: 9px 17px; }
.tags-bubble-4 { font-size: 18px; padding: 11px 20px; }
.tags-bubble-5 { font-size: 21px; padding: 13px 24px; background: color-mix(in srgb, var(--tone) 10%, #fff); }
@keyframes tags-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.tags-rising { margin-bottom: 30px; }
.tags-rising-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 0; padding: 0; list-style: none; }
.tags-rising-row { display: grid; grid-template-columns: 26px 30px minmax(70px, auto) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; }
.tags-rising-no { color: #94a3b8; font-size: 15px; font-weight: 800; text-align: center; }
.tags-rising-list li:nth-child(-n+3) .tags-rising-no { color: var(--tone); }
.tags-rising-icon { font-size: 20px; text-align: center; }
.tags-rising-row strong { font-size: 14px; color: #0f172a; white-space: nowrap; }
.tags-rising-bar { height: 8px; background: #f1f5f9; border-radius: 99px; overflow: hidden; }
.tags-rising-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 55%, #fff), var(--tone)); transition: width 1s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 70ms); }
.tags-rising-list.is-in .tags-rising-bar i { width: var(--w); }
.tags-rising-row em { font-style: normal; font-weight: 800; color: #059669; font-size: 14px; font-variant-numeric: tabular-nums; }
.tags-rising-list li:nth-child(1) a { --i: 0; } .tags-rising-list li:nth-child(2) a { --i: 1; } .tags-rising-list li:nth-child(3) a { --i: 2; } .tags-rising-list li:nth-child(4) a { --i: 3; }
.tags-rising-list li:nth-child(5) a { --i: 4; } .tags-rising-list li:nth-child(6) a { --i: 5; } .tags-rising-list li:nth-child(7) a { --i: 6; } .tags-rising-list li:nth-child(8) a { --i: 7; }

.tags-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tags-card:hover .tags-card-icon { animation: tags-wiggle .45s ease; }
@keyframes tags-wiggle { 0%,100% { transform: rotate(0) scale(1); } 30% { transform: rotate(-10deg) scale(1.12); } 65% { transform: rotate(8deg) scale(1.08); } }
.tags-reveal > * { opacity: 0; transform: translateY(14px); }
.tags-reveal.is-in > * { opacity: 1; transform: none; transition: opacity .45s ease calc(var(--i, 0) * 45ms), transform .45s ease calc(var(--i, 0) * 45ms); }

@media (max-width: 900px) {
  .tags-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .tags-cloud { min-height: 0; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 12px 16px 14px; scrollbar-width: none; order: 2; }
  .tags-cloud::-webkit-scrollbar { display: none; }
  .tags-bubble, .tags-bubble-2, .tags-bubble-3, .tags-bubble-4, .tags-bubble-5 { font-size: 14px; padding: 8px 14px; }
  .tags-rising-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tags-stats { gap: 18px; margin: 14px 0 14px; }
  .tags-stats strong { font-size: 21px; }
  .tags-dice { height: 48px; padding: 0 14px; font-size: 14px; }
  .tags-rising-row { grid-template-columns: 20px 24px auto minmax(0, 1fr) auto; gap: 8px; padding: 10px 12px; }
  .tags-rising-list .tags-rising-row { flex-direction: unset; }
}

/* 标签详情页头图 */
.tag-hero-v2 { --tone: #10b981; position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(220px, 280px); gap: 20px; align-items: start; padding: 26px; border: 1px solid color-mix(in srgb, var(--tone) 22%, #fff); background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--tone) 16%, transparent), transparent 45%), linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--tone) 6%, #fff) 100%); }
.tag-hero-v2 > * { position: relative; z-index: 1; }
.tag-hero-v2 .tag-detail-icon { width: 68px; height: 68px; flex-basis: 68px; font-size: 34px; border-radius: 20px; background: #fff; box-shadow: 0 12px 26px color-mix(in srgb, var(--tone) 25%, transparent); animation: tags-float 4.5s ease-in-out infinite; }
.tag-hero-float { position: absolute !important; inset: 0; z-index: 0 !important; pointer-events: none; overflow: hidden; }
.tag-hero-float span { position: absolute; left: var(--x); bottom: -40px; font-size: calc(26px * var(--s)); opacity: 0; animation: tag-hero-rise var(--t) linear var(--d) infinite; }
@keyframes tag-hero-rise { 0% { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: .13; } 85% { opacity: .13; } 100% { transform: translateY(-340px) rotate(25deg); opacity: 0; } }
.tag-hero-kicker { display: inline-block; margin-bottom: 4px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--tone) 12%, #fff); color: color-mix(in srgb, var(--tone) 80%, #0f172a); font-size: 12px; font-weight: 800; }
.tag-hero-v2 h1 { margin: 2px 0 6px; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; }
.tag-hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.tag-hero-stats div { display: grid; gap: 1px; min-width: 96px; padding: 10px 14px; background: rgba(255,255,255,.85); border: 1px solid #eef2f6; border-radius: 14px; }
.tag-hero-stats strong { font-size: 22px; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; }
.tag-hero-stats span { font-size: 12px; color: #64748b; }
.tag-hero-stats .is-hot strong { color: #059669; }
.tag-hero-stats .is-hot strong::before { content: '+'; }
.tag-hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.tag-hero-links-label { margin-right: 4px; color: #64748b; font-size: 12px; font-weight: 700; }
.tag-hero-links a { --tone: #10b981; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid #e5eaf0; color: #334155; font-size: 13px; font-weight: 600; text-decoration: none; transition: transform .15s ease, border-color .15s ease, color .15s ease; }
.tag-hero-links a:hover { transform: translateY(-2px); border-color: var(--tone); color: color-mix(in srgb, var(--tone) 80%, #0f172a); }
.tag-hero-links small { color: #94a3b8; font-size: 11px; font-weight: 700; }
.tag-hero-actions:empty { display: none; }
.tag-hero-actions .follow-btn { margin-top: 14px; }
.tag-hero-trend { align-self: start; display: flex; flex-direction: column; padding: 14px 16px 10px; background: rgba(255,255,255,.88); border: 1px solid #eef2f6; border-radius: 16px; }
.tag-hero-trend-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
.tag-hero-trend-head span { color: color-mix(in srgb, var(--tone) 80%, #0f172a); font-weight: 800; }
.tag-hero-bars { display: grid; grid-template-columns: repeat(8, 1fr); align-items: end; gap: 6px; height: 150px; margin-top: 10px; }
.tag-hero-bars span { position: relative; display: flex; align-items: flex-end; height: 100%; }
.tag-hero-bars i { display: block; width: 100%; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--tone), color-mix(in srgb, var(--tone) 45%, #fff)); transform-origin: bottom; animation: tag-bar-grow .8s cubic-bezier(.2,.8,.2,1) calc(var(--i) * 70ms) both; }
.tag-hero-bars span:last-child i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 20%, transparent); }
.tag-hero-bars b { position: absolute; left: 0; right: 0; bottom: calc(var(--h) + 3px); text-align: center; font-size: 10px; color: #64748b; font-weight: 700; }
@keyframes tag-bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.tag-hero-trend-foot { display: flex; justify-content: space-between; margin-top: 6px; color: #94a3b8; font-size: 11px; }
@media (max-width: 900px) {
  .tag-hero-v2 { grid-template-columns: auto minmax(0, 1fr); }
  .tag-hero-trend { grid-column: 1 / -1; }
  .tag-hero-bars { height: 100px; }
}
@media (max-width: 640px) {
  .tag-hero-v2 { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px 16px; }
  .tag-hero-v2 .tag-detail-icon { width: 52px; height: 52px; flex-basis: 52px; font-size: 26px; border-radius: 15px; position: absolute; top: 18px; right: 16px; }
  .tag-hero-main { padding-right: 60px; }
  .tag-hero-main .tag-hero-stats, .tag-hero-main .tag-hero-links, .tag-hero-main .tag-hero-actions { margin-right: -60px; }
  .tag-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tag-hero-stats div { min-width: 0; padding: 8px 10px; }
  .tag-hero-stats strong { font-size: 18px; }
  .tag-hero-stats span { font-size: 11px; }
  .tag-hero-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tag-hero-links::-webkit-scrollbar { display: none; }
  .tag-hero-links a, .tag-hero-links-label { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .tags-bubble, .tag-hero-v2 .tag-detail-icon, .tag-hero-float span, .tag-hero-bars i { animation: none !important; }
  .tag-hero-float { display: none; }
  .tags-reveal > * { opacity: 1; transform: none; }
}

/* 过期群的「求更新二维码」按钮（2026-11-10） */
.group-page .qr-ask-btn { border-color: #f97316; background: #f97316; color: #fff; }
.group-page .qr-ask-btn:hover { background: #ea580c; }
.group-page .qr-ask-btn:disabled { opacity: .6; cursor: default; }
.group-page .qr-report-msg b { color: #ea580c; }

/* 手机首页第一屏压缩（2026-11-10）：顶部标题区变矮，统计数字变成一行可左右滑的小条，
   「最新收录」挪到标题区正下方，打开首页第一屏就能看到群。 */
@media (max-width: 640px) {
  body:has(#latest-groups) > nav.nav { order: -3; }
  body:has(#latest-groups) > .hero { order: -2; }
  body > #latest-groups { order: -1; padding: 18px 0 24px !important; }
  body > #latest-groups .group-grid > :nth-child(n+9) { display: none; }
  body > #latest-groups .section-header { margin-bottom: 12px; }

  body:has(#latest-groups) > .hero { padding: 18px 0 16px !important; }
  body:has(#latest-groups) > .hero h1 { margin: 0 0 4px; font-size: 24px; }
  body:has(#latest-groups) > .hero > .container > p { margin: 0 0 12px; font-size: 13px; opacity: .85; }
  body:has(#latest-groups) > .hero .hero-search { margin-bottom: 10px; }
  body:has(#latest-groups) > .hero .hero-stats { display: flex; flex-wrap: nowrap; justify-content: center; gap: 6px; margin: 0; }
  body:has(#latest-groups) > .hero .hero-stats a { flex: 0 1 auto; padding: 6px 10px; font-size: 12.5px; white-space: nowrap; }
  body:has(#latest-groups) > .hero .site-stats-bar { display: flex; gap: 6px; margin: 12px -16px 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
  body:has(#latest-groups) > .hero .site-stats-bar::-webkit-scrollbar { display: none; }
  body:has(#latest-groups) > .hero .site-stats-item { flex: 0 0 auto; gap: 6px; padding: 6px 10px; border-radius: 999px; }
  body:has(#latest-groups) > .hero .site-stats-icon { font-size: 14px; }
  body:has(#latest-groups) > .hero .site-stats-item > span:last-child { display: flex; align-items: baseline; gap: 4px; }
  body:has(#latest-groups) > .hero .site-stats-item strong { font-size: 13px; }
  body:has(#latest-groups) > .hero .site-stats-item small { margin: 0; font-size: 11px; white-space: nowrap; }
}

/* /cities 每个国家前 16 个城市之外的紧凑城市链接（2026-11-10） */
.cx-mini-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.location-card.cx-mini { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; min-height: 0; padding: 7px 12px; border-radius: 999px; }
.location-card.cx-mini[hidden] { display: none; }
.location-card.cx-mini .location-name { margin: 0; font-size: 13.5px; }
.location-card.cx-mini .location-count { margin: 0; font-size: 11.5px; color: #94a3b8; }

/* 我的群组：多群同时置顶优惠 */
.mg-boost-deal { margin: 8px 0 2px; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; color: #6b7280; background: #f9fafb; border: 1px dashed #e5e7eb; }
.mg-boost-deal.is-on { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; }
.mg-boost-deal b { color: #dc2626; }
.mg-boost-price s { display: block; color: #9ca3af; font-size: 11.5px; }
.mg-boost-renew { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: 13px; color: #374151; cursor: pointer; }
.mg-boost-renew input { margin-top: 3px; }
.mg-boost-renew small { display: block; color: #9ca3af; font-size: 12px; }
.mg-note .mg-link-btn { margin-left: 6px; border: 0; background: none; padding: 0; color: #6b7280; text-decoration: underline; font: inherit; font-size: 12px; cursor: pointer; }

/* 群详情页：分享海报 */
.detail-share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid #a7f3d0; background: #ecfdf5; color: #047857; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.detail-share-btn:hover { background: #d1fae5; }
.detail-share-btn:disabled { opacity: .6; cursor: wait; }
.share-poster-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(15, 23, 42, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.share-poster-box { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 18px; padding: 20px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.share-poster-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 28px; line-height: 1; color: #9ca3af; cursor: pointer; }
.share-poster-title { font-weight: 700; font-size: 17px; }
.share-poster-tip { margin: 4px 0 12px; font-size: 13px; color: #6b7280; }
.share-poster-img { display: block; width: 100%; max-height: 60vh; object-fit: contain; border-radius: 12px; border: 1px solid #e5e7eb; }
.share-poster-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.share-poster-msg { display: block; margin-top: 8px; font-size: 13px; color: #047857; word-break: break-all; }

/* 赞助链接（合作伙伴）：页脚一行 + 地区 / 文章页的推荐块 */
footer .footer-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 14px 0; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
footer .footer-partners[hidden] { display: none; }
footer .footer-partners-label { color: rgba(255,255,255,.75); font-weight: 600; }
footer .footer-partners-label small, .partner-picks-tag { font-size: 11px; font-weight: 500; padding: 1px 6px; border-radius: 4px; background: rgba(148,163,184,.2); color: #94a3b8; margin-left: 4px; }
footer .footer-partners a { color: rgba(255,255,255,.55); }
footer .footer-partners a:hover { color: #fff; }
.partner-picks { padding: 8px 0 28px; }
.partner-picks-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 15px; color: #374151; }
.partner-picks-tag { background: #f1f5f9; color: #64748b; }
.partner-picks-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.partner-pick { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 34px 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; color: #111827; text-decoration: none; }
.partner-pick:hover { border-color: #8bd9b2; background: #f0fdf4; }
.partner-pick b { font-size: 14.5px; }
.partner-pick small { color: #6b7280; font-size: 12.5px; line-height: 1.5; }
.partner-pick span { position: absolute; top: 12px; right: 12px; color: #9ca3af; }

/* ===== /topics 专题导航（functions/topics.js） ===== */
.th-hero{position:relative;overflow:hidden;padding:24px 0 40px;background:radial-gradient(circle at 85% 20%,rgba(59,130,246,.14),transparent 45%),radial-gradient(circle at 10% 90%,rgba(16,185,129,.16),transparent 45%),linear-gradient(135deg,#ecfdf5,#eff6ff 60%,#faf5ff)}
.th-hero .topic-breadcrumb{margin-bottom:18px}
.th-hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:36px;align-items:center}
.th-kicker{display:inline-block;padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.8);border:1px solid rgba(16,185,129,.25);color:#047857;font-size:12px;font-weight:700}
.th-hero h1{margin:12px 0 10px;font-size:clamp(30px,4.2vw,50px);line-height:1.15;letter-spacing:-.03em;color:#123a2e}
.th-hero h1 em{font-style:normal;color:#059669}
.th-hero p{margin:0;max-width:560px;color:#47635a;font-size:15px;line-height:1.75}
.th-search{display:flex;gap:8px;max-width:520px;margin-top:20px;padding:6px;background:#fff;border:1px solid #d1fae5;border-radius:14px;box-shadow:0 10px 28px rgba(5,150,105,.12)}
.th-search input{flex:1;min-width:0;border:0;outline:0;padding:8px 10px;font-size:15px;background:transparent}
.th-search .btn{padding:9px 18px;border-radius:10px}
.th-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.th-quick a{padding:7px 13px;border-radius:999px;background:rgba(255,255,255,.85);border:1px solid #e5e7eb;color:#1f2937;font-size:13px;font-weight:600;text-decoration:none;transition:.15s}
.th-quick a:hover{border-color:#10b981;color:#047857;transform:translateY(-1px)}
.th-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.th-stat{padding:14px 16px;background:rgba(255,255,255,.85);border:1px solid rgba(255,255,255,.9);border-radius:16px;box-shadow:0 8px 20px rgba(30,64,55,.06)}
.th-stat strong{display:block;color:#065f46;font-size:24px;line-height:1.2}
.th-stat span{color:#6b7280;font-size:12px}
.th-stat-main{grid-column:1/-1;background:linear-gradient(135deg,#059669,#0d9488);color:#fff}
.th-stat-main strong{color:#fff;font-size:34px}
.th-stat-main span{color:rgba(255,255,255,.85)}
.th-section{padding:40px 0}
.th-section-soft{background:#f6faf9}
.th-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 16px}
.th-head+*{margin-bottom:8px}
.th-head:not(:first-child){margin-top:36px}
.th-head h2{display:flex;align-items:center;gap:8px;margin:0;font-size:22px;color:#111827}
.th-head p{margin:4px 0 0;color:#6b7280;font-size:13px}
/* 卡片配色 */
.th-tone-blue{--th-a:#3b82f6;--th-b:#6366f1;--th-soft:#eff6ff;--th-ink:#1d4ed8}
.th-tone-red{--th-a:#ef4444;--th-b:#f97316;--th-soft:#fef2f2;--th-ink:#b91c1c}
.th-tone-navy{--th-a:#1e3a8a;--th-b:#4f46e5;--th-soft:#eef2ff;--th-ink:#1e3a8a}
.th-tone-orange{--th-a:#f59e0b;--th-b:#ef4444;--th-soft:#fff7ed;--th-ink:#c2410c}
.th-tone-pink{--th-a:#ec4899;--th-b:#f43f5e;--th-soft:#fdf2f8;--th-ink:#be185d}
.th-tone-violet{--th-a:#8b5cf6;--th-b:#ec4899;--th-soft:#f5f3ff;--th-ink:#6d28d9}
.th-tone-teal{--th-a:#14b8a6;--th-b:#10b981;--th-soft:#f0fdfa;--th-ink:#0f766e}
.th-tone-green{--th-a:#22c55e;--th-b:#0d9488;--th-soft:#f0fdf4;--th-ink:#15803d}
/* 城市指南卡片：白底 + 柔和色块图标，配色只用在图标底色上 */
.th-guide-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.th-guide{position:relative;display:grid;grid-template-columns:44px 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:14px 32px 14px 14px;border-radius:16px;background:#fff;border:1px solid #e7eef0;color:#111827;text-decoration:none;transition:.15s ease}
.th-guide:hover{transform:translateY(-2px);border-color:#8ed8c3;box-shadow:0 10px 22px rgba(15,85,65,.08)}
.th-guide-icon{grid-row:span 2;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#f1f7f5;font-size:22px}
.th-guide-country{display:none}
.th-guide strong{font-size:16px;line-height:1.3}
.th-guide small{color:#6b7280;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.th-guide b{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#0c9b77;font-size:14px}
/* 国家指南 */
.th-country-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.th-country{display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;background:#fff;border:1px solid #e7eef0;color:#111827;text-decoration:none;transition:.15s}
.th-country:hover{border-color:#8ed8c3;transform:translateY(-2px)}
.th-country-flag{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:#f3f4f6;font-size:24px}
.th-country strong{display:block;font-size:15px}
.th-country small{color:#6b7280;font-size:12px}
/* 文章 */
.th-article-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.th-article{display:flex;flex-direction:column;gap:6px;padding:16px;border-radius:16px;background:#fff;border:1px solid #e5e7eb;color:#111827;text-decoration:none;transition:.15s}
.th-article:hover{border-color:#10b981;box-shadow:0 10px 22px rgba(5,150,105,.1);transform:translateY(-2px)}
.th-article-tag{align-self:flex-start;padding:2px 8px;border-radius:6px;background:#ecfdf5;color:#047857;font-size:11px;font-weight:700}
.th-article strong{font-size:15px;line-height:1.45}
.th-article small{color:#6b7280;font-size:12px;line-height:1.6}
.th-article-date{margin-top:auto;color:#9ca3af;font-size:11px}
/* 城市 / 国家标签云 */
.th-chips{display:flex;flex-wrap:wrap;gap:8px}
.th-chip{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;background:#fff;border:1px solid #e5e7eb;color:#1f2937;font-size:13px;text-decoration:none;transition:.15s}
.th-chip span{padding:1px 7px;border-radius:999px;background:#f3f4f6;color:#6b7280;font-size:11px}
.th-chip:hover{border-color:#10b981;color:#047857}
.th-chip:hover span{background:#d1fae5;color:#047857}
/* 更多入口 */
.th-more-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.th-more{display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;background:#fff;border:1px solid #eef0f3;color:#111827;text-decoration:none;transition:.15s}
.th-more:hover{transform:translateY(-2px);border-color:#8ed8c3;box-shadow:0 10px 20px rgba(15,23,42,.07)}
.th-more-icon{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:#f1f7f5;font-size:22px}
.th-more strong{display:block;font-size:15px}
.th-more small{color:#6b7280;font-size:12px}
.th-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:36px;padding:22px 24px;border-radius:20px;color:#fff;background:linear-gradient(135deg,#059669,#0d9488)}
.th-cta strong{display:block;font-size:18px}
.th-cta span{opacity:.85;font-size:13px}
.th-cta .btn{background:#fff;color:#047857;font-weight:700}
@media(max-width:1000px){.th-guide-grid,.th-article-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){
  .th-hero{padding-bottom:28px}
  .th-hero-grid{grid-template-columns:1fr;gap:20px}
  .th-stats{grid-template-columns:1fr 1fr}
  .th-stat:last-child{display:none}
  .th-stat-main{grid-column:1/-1}
  .th-stat-main strong{font-size:28px}
  .th-section{padding:28px 0}
  .th-guide-grid,.th-article-grid{grid-template-columns:1fr 1fr;gap:10px}
  .th-guide{padding:12px 26px 12px 12px;grid-template-columns:38px 1fr;column-gap:10px}
  .th-guide-icon{width:38px;height:38px;font-size:19px}
  .th-guide strong{font-size:15px}
  .th-guide b{right:10px}
  .th-more-grid{grid-template-columns:1fr 1fr}
  .th-head h2{font-size:19px}
}
@media(max-width:420px){.th-more-grid,.th-article-grid{grid-template-columns:1fr}}

/* 群详情页「🚩 举报」按钮和弹窗（弹窗复用分享海报的 .share-poster-modal 外框，见 public/assets/abuse-report.js） */
.detail-report-btn { padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; color: #6b7280; font-size: 13px; cursor: pointer; }
.detail-report-btn:hover { color: #dc2626; border-color: #fecaca; }
.detail-report-btn:disabled { opacity: .6; cursor: default; }
.abuse-report-box { text-align: left; }
.abuse-report-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
.abuse-report-reasons label { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 14px; cursor: pointer; }
.abuse-report-reasons label:has(input:checked) { border-color: #ef4444; background: #fef2f2; }
.abuse-report-box textarea, .abuse-report-box input[name="contact"] { width: 100%; box-sizing: border-box; margin-top: 8px; padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; font-size: 14px; }
@media (max-width: 480px) { .abuse-report-reasons { grid-template-columns: 1fr; } }
