/* ==========================================================================
   Fish Ai 资讯中心 (News & SEO Hub) 样式表
   风格：深渊极光 + 悬浮玻璃舱（支持 light / dark 双主题，默认 light）
   ========================================================================== */

:root,
html[data-theme="light"] {
  --bg: #f4f7fd;
  --bg-elevated: rgba(255, 255, 255, 0.86);
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-subtle: rgba(99, 102, 241, 0.055);
  --bg-code: #0f172a;
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.24);
  --border-strong: rgba(99, 102, 241, 0.28);
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --cyan: #0891b2;
  --violet: #7c3aed;
  --emerald: #059669;
  --amber: #d97706;
  --rose: #e11d48;
  --glow: 99, 102, 241;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(39, 50, 86, 0.12);
  --grad-brand: linear-gradient(120deg, #06b6d4 0%, #4f46e5 52%, #a855f7 100%);
  --grad-text: linear-gradient(115deg, #0284c7 0%, #4f46e5 48%, #9333ea 96%);
}

html[data-theme="dark"] {
  --bg: #050811;
  --bg-elevated: rgba(13, 18, 34, 0.82);
  --bg-card: rgba(15, 22, 41, 0.78);
  --bg-card-hover: rgba(20, 29, 54, 0.92);
  --bg-subtle: rgba(99, 102, 241, 0.11);
  --bg-code: #090d1a;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.15);
  --border-strong: rgba(129, 140, 248, 0.36);
  --primary: #818cf8;
  --primary-hover: #a5b4fc;
  --cyan: #22d3ee;
  --violet: #c084fc;
  --emerald: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --glow: 99, 102, 241;
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
  --grad-brand: linear-gradient(120deg, #06b6d4 0%, #6366f1 52%, #a855f7 100%);
  --grad-text: linear-gradient(115deg, #38bdf8 0%, #818cf8 50%, #e879f9 98%);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.72;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 极光动态背景 FX ===== */
.fx-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
}
html[data-theme="dark"] .fx-orb { opacity: 0.22; }
.fx-orb-cyan {
  width: 520px;
  height: 520px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, #22d3ee, transparent 70%);
}
.fx-orb-indigo {
  width: 600px;
  height: 600px;
  top: 8%;
  right: -180px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
}
.fx-orb-violet {
  width: 480px;
  height: 480px;
  bottom: -140px;
  left: 25%;
  background: radial-gradient(circle, #a855f7, transparent 70%);
}
.fx-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(99, 102, 241, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 100%);
}

/* ===== 顶部悬浮玻璃导航舱（随时一键返回 Fish Ai 主站） ===== */
.news-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.news-topbar-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 850;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand-link img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.28);
}
.brand-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
}
.brand-channel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  text-decoration: none;
  white-space: nowrap;
}
.brand-channel:hover {
  background: rgba(99, 102, 241, 0.14);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-nav a {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}
.topbar-nav a:hover,
.topbar-nav a.is-active {
  color: var(--primary);
  background: var(--bg-subtle);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
  white-space: nowrap;
}
.btn-back-home:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.18);
}
.btn-back-home svg {
  width: 15px;
  height: 15px;
}
.btn-chat-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 750;
  color: #ffffff;
  background: var(--grad-brand);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.16s, box-shadow 0.16s;
  white-space: nowrap;
}
.btn-chat-cta:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 12px 26px rgba(99, 102, 241, 0.44);
}
.btn-chat-cta svg {
  width: 14px;
  height: 14px;
}

.theme-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.16s, color 0.16s, transform 0.16s;
}
.theme-btn:hover {
  color: var(--primary);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.theme-btn svg { width: 17px; height: 17px; }
html[data-theme="light"] .theme-btn .ico-sun { display: none; }
html[data-theme="dark"] .theme-btn .ico-moon { display: none; }

/* ===== 主容器 ===== */
.news-shell {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px 64px;
  flex: 1;
}

/* ===== 资讯站首页 Hero ===== */
.hub-hero {
  position: relative;
  padding: 36px 32px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  overflow: hidden;
}
.hub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(85% 90% at 90% 10%, rgba(56, 189, 248, 0.14), rgba(99, 102, 241, 0.08) 45%, transparent 80%);
  pointer-events: none;
}
.hub-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  margin-bottom: 14px;
}
.hub-hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}
.hub-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.hub-hero h1 .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hub-hero p {
  margin: 0 0 20px;
  max-width: 780px;
  font-size: 15.5px;
  color: var(--text-secondary);
}
.hub-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hub-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform 0.16s, border-color 0.16s;
}
.hub-quick-pill:hover {
  transform: translateY(-1.5px);
  border-color: var(--primary);
  color: var(--primary);
}
.hub-quick-pill.primary {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
}

/* ===== 分类筛选与搜索栏 ===== */
.hub-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-tab {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.18s;
}
.cat-tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.cat-tab.is-active {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.28);
}
.hub-search {
  position: relative;
  min-width: 250px;
  flex: 0 1 320px;
}
.hub-search input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.hub-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.hub-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

/* ===== 文章卡片网格 ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}
.post-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  position: relative;
  overflow: hidden;
}
.post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.post-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.post-card:hover::before {
  opacity: 1;
}
.pc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.pc-cat {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  color: var(--primary);
  background: var(--bg-subtle);
}
.pc-title {
  margin: 0 0 10px;
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  transition: color 0.16s;
}
.post-card:hover .pc-title {
  color: var(--primary);
}
.pc-desc {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pc-tag {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
}
.pc-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* ===== 面包屑与快捷返回条 ===== */
.breadcrumb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumbs a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.breadcrumbs .sep {
  opacity: 0.45;
}
.breadcrumbs .current {
  color: var(--text);
  font-weight: 650;
}
.breadcrumb-quick {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb-quick a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-subtle);
}
.breadcrumb-quick a:hover {
  background: rgba(99, 102, 241, 0.16);
}

/* ===== 文章页双栏布局 ===== */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.article-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 38px 42px;
  box-shadow: var(--shadow-md);
  min-width: 0;
}

.article-header {
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.ah-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.ah-cat {
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 12.5px;
  color: #fff;
  background: var(--grad-brand);
}
.article-header h1 {
  margin: 0 0 14px;
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 850;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--text);
}
.ah-lead {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border-left: 4px solid var(--primary);
}

/* ===== 文章正文排版 (Prose) ===== */
.article-prose {
  font-size: 16px;
  line-height: 1.82;
  color: var(--text);
}
.article-prose h2 {
  margin: 36px 0 14px;
  padding-bottom: 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  scroll-margin-top: 90px;
}
.article-prose h3 {
  margin: 26px 0 10px;
  font-size: 18px;
  font-weight: 750;
  color: var(--text);
  scroll-margin-top: 90px;
}
.article-prose p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}
.article-prose ul,
.article-prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text-secondary);
}
.article-prose li {
  margin-bottom: 8px;
}
.article-prose li strong,
.article-prose p strong {
  color: var(--text);
  font-weight: 700;
}
.article-prose a {
  color: var(--primary);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-prose a:hover {
  color: var(--primary-hover);
}
.article-prose code {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--primary);
  border: 1px solid var(--border);
}
.article-prose pre {
  position: relative;
  margin: 18px 0 22px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--bg-code);
  color: #e2e8f0;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.article-prose pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  border: 0;
  font-size: inherit;
}
.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* 提示框 Callout */
.prose-callout {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
}
.prose-callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--primary);
  margin-bottom: 6px;
}
.prose-callout p:last-child {
  margin-bottom: 0;
}

/* 响应式表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.article-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 540px;
}
.article-prose th,
.article-prose td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.article-prose th {
  background: var(--bg-subtle);
  color: var(--text);
  font-weight: 750;
  white-space: nowrap;
}
.article-prose tr:last-child td {
  border-bottom: 0;
}
.article-prose tr:hover td {
  background: rgba(99, 102, 241, 0.03);
}

/* FAQ 折叠问答 */
.article-faq {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-faq h2 {
  margin-top: 0;
}
.faq-item {
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
}
.faq-item summary {
  padding: 14px 18px;
  font-weight: 750;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item .faq-ans {
  padding: 0 18px 16px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 文章尾部转化 CTA 舱 */
.article-cta-box {
  margin-top: 36px;
  padding: 28px 30px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(99, 102, 241, 0.14), rgba(168, 85, 247, 0.12));
  border: 1px solid var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.article-cta-box h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 850;
  color: var(--text);
}
.article-cta-box p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.article-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 上一篇 / 下一篇 导航 */
.article-pager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.pager-card {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.18s, transform 0.18s;
}
.pager-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.pager-card small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pager-card strong {
  display: block;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.4;
}

/* ===== 右侧吸顶侧边栏 ===== */
.article-aside {
  position: sticky;
  top: 82px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.aside-card {
  padding: 20px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.aside-title {
  margin: 0 0 12px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc-list a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.16s;
  line-height: 1.45;
}
.toc-list a:hover,
.toc-list a.is-active {
  color: var(--primary);
  background: var(--bg-subtle);
  border-left-color: var(--primary);
  font-weight: 650;
}

/* 侧栏：返回 Fish Ai 主站推广卡 */
.aside-promo {
  background: linear-gradient(160deg, rgba(6, 182, 212, 0.1), rgba(99, 102, 241, 0.14));
  border-color: var(--border-strong);
}
.aside-promo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.aside-promo-head img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.aside-promo-head strong {
  display: block;
  font-size: 15.5px;
  font-weight: 850;
}
.aside-promo-head small {
  color: var(--text-muted);
  font-size: 12px;
}
.aside-promo p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.aside-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.aside-chip {
  font-size: 11.5px;
  font-weight: 650;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.aside-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aside-actions a {
  text-align: center;
  justify-content: center;
  padding: 9px 14px;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.45;
  transition: border-color 0.16s, color 0.16s;
}
.related-list a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.related-list small {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ===== 移动端底部快捷返回悬浮舱 ===== */
.mobile-float-bar {
  display: none;
}

/* ===== 页脚 ===== */
.news-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 28px 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.news-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.news-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.news-footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}
.news-footer-links a:hover {
  color: var(--primary);
}

/* ===== 响应式适配 ===== */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-aside {
    position: static;
  }
  .topbar-nav {
    display: none;
  }
}

@media (max-width: 680px) {
  .news-topbar-inner {
    padding: 10px 14px;
  }
  .btn-back-home span {
    display: none;
  }
  .news-shell {
    padding: 18px 14px 84px;
  }
  .hub-hero {
    padding: 24px 20px;
    border-radius: 18px;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .article-main {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .article-cta-box {
    padding: 20px 18px;
  }
  .mobile-float-bar {
    position: fixed;
    bottom: 14px;
    left: 14px;
    right: 14px;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 16px;
    background: var(--bg-elevated);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
  }
  .mobile-float-bar a {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 8px 10px;
    font-size: 12.5px;
    border-radius: 10px;
  }
}
