/* ============================================================
   Nano Banana 主题站 — 共享样式
   暗色主题 · 香蕉黄主色 · 玻璃拟态 · 渐变光晕
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg: #0a0a0b;
  --bg-elevated: #101012;
  --bg-card: #161619;
  --bg-card-hover: #1d1d21;
  --bg-glass: rgba(22, 22, 25, 0.6);

  --border: #26262c;
  --border-light: #34343c;
  --border-accent: rgba(255, 214, 10, 0.25);

  --text: #f5f5f7;
  --text-secondary: #a6a6b0;
  --text-muted: #6b6b76;

  --accent: #ffd60a;
  --accent-bright: #ffe135;
  --accent-deep: #f5b800;
  --accent-dim: #b89400;
  --accent-glow: rgba(255, 214, 10, 0.45);
  --accent-soft: rgba(255, 214, 10, 0.12);

  --gradient-accent: linear-gradient(135deg, #ffe135 0%, #ffb800 100%);
  --gradient-text: linear-gradient(135deg, #fff7c2 0%, #ffd60a 50%, #f5b800 100%);
  --gradient-hero: radial-gradient(1200px 600px at 70% -10%, rgba(255, 214, 10, 0.18), transparent 60%),
                   radial-gradient(800px 500px at 10% 10%, rgba(255, 184, 0, 0.10), transparent 55%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 10px 40px rgba(255, 214, 10, 0.25);

  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 500px at 80% -5%, rgba(255, 214, 10, 0.08), transparent 60%),
    radial-gradient(700px 400px at -5% 5%, rgba(255, 184, 0, 0.05), transparent 55%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--accent); color: #1a1500; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ---------- 容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

/* ---------- 排版 ---------- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.text-accent { color: var(--accent); }
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--border-accent);
  background: var(--accent-soft);
  border-radius: 100px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p {
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 1.05rem;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: all .3s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--gradient-accent);
  color: #1a1500;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(255, 214, 10, 0.4);
}
.btn-ghost {
  background: var(--bg-glass);
  color: var(--text);
  border-color: var(--border-light);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all .35s var(--ease);
  padding: 18px 0;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--gradient-accent);
  box-shadow: 0 6px 18px rgba(255, 214, 10, 0.35);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo span b { color: var(--accent); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu a {
  padding: 8px 16px;
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-menu a:hover { color: var(--text); background: var(--bg-card); }
.nav-menu a.active { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 10px 22px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  place-items: center;
}
.nav-toggle span {
  width: 18px; height: 2px; background: var(--text); position: relative;
  transition: .3s;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text);
  transition: .3s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 160px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .text-gradient { display: inline-block; }
.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero-stats .stat b {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.hero-stats .stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero 视觉 */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,11,0.85));
}
.float-card {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow);
  z-index: 2;
}
.float-card .fc-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.float-card .fc-value { font-weight: 700; font-size: 1rem; }
.float-card.top { top: 24px; left: 24px; }
.float-card.bottom { bottom: 24px; right: 24px; display: flex; align-items: center; gap: 10px; }
.float-card.bottom .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

/* ---------- 功能卡 ---------- */
.section-pad { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  margin-bottom: 20px;
  color: var(--accent);
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* 图片网格功能 */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.showcase-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.showcase-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.showcase-item:hover img { transform: scale(1.08); }
.showcase-item .tag {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(10,10,11,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---------- 应用场景 ---------- */
.usecase-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.usecase {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all .35s var(--ease);
}
.usecase:hover { transform: translateY(-5px); border-color: var(--border-accent); }
.usecase .uc-img { aspect-ratio: 16/10; overflow: hidden; }
.usecase .uc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.usecase:hover .uc-img img { transform: scale(1.06); }
.usecase .uc-body { padding: 20px; }
.usecase h3 { font-size: 1.1rem; margin-bottom: 8px; }
.usecase p { color: var(--text-secondary); font-size: 0.9rem; }

/* ---------- 资讯预览 ---------- */
.news-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-5px); border-color: var(--border-accent); box-shadow: var(--shadow); }
.news-card .nc-img { aspect-ratio: 16/10; overflow: hidden; }
.news-card .nc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .nc-img img { transform: scale(1.06); }
.news-card .nc-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-card.featured { grid-row: span 2; }
.news-card.featured .nc-img { aspect-ratio: 16/10; }
.news-card.featured h3 { font-size: 1.5rem; }
.nc-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.news-card h3 { font-size: 1.15rem; margin-bottom: 10px; transition: color .25s; }
.news-card:hover h3 { color: var(--accent); }
.news-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }
.nc-meta {
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8rem; color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.nc-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }

.section-foot { text-align: center; margin-top: 48px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .25s;
}
.faq-item.open { border-color: var(--border-accent); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  font-size: 1.02rem;
  gap: 16px;
}
.faq-q .icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: grid; place-items: center;
  color: var(--accent);
  transition: transform .3s var(--ease);
  font-size: 1.1rem;
}
.faq-item.open .icon { transform: rotate(45deg); background: var(--accent-soft); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease), padding .3s;
  color: var(--text-secondary);
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 320px; padding: 0 24px 22px; }

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  background: linear-gradient(135deg, rgba(255,214,10,0.12), rgba(255,184,0,0.05));
  border: 1px solid var(--border-accent);
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(255,214,10,0.18), transparent 70%);
}
.cta-banner h2 { position: relative; margin-bottom: 16px; }
.cta-banner p { position: relative; color: var(--text-secondary); margin-bottom: 30px; font-size: 1.1rem; }
.cta-banner .hero-actions { position: relative; justify-content: center; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
  margin-top: 40px;
  background: var(--bg-elevated);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(1, 1fr);
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand p { color: var(--text-secondary); font-size: 0.92rem; margin-top: 16px; max-width: 320px; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 18px; color: var(--text); }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  color: var(--text-muted); font-size: 0.85rem;
}
.social { display: flex; gap: 10px; }
.social a {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  display: grid; place-items: center;
  color: var(--text-secondary);
  transition: all .25s;
}
.social a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

/* ============================================================
   资讯栏目页 (news.html)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 150px 0 60px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 80% 0%, rgba(255,214,10,0.12), transparent 60%);
}
.page-hero .container { position: relative; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 640px; }

.news-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 56px 0;
  align-items: start;
}

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.filter-pill {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all .25s var(--ease);
}
.filter-pill:hover { color: var(--text); border-color: var(--accent-dim); }
.filter-pill.active {
  background: var(--gradient-accent);
  color: #1a1500;
  border-color: transparent;
  font-weight: 700;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.pagination {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 48px;
}
.pagination a, .pagination span {
  min-width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 12px;
  transition: all .25s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--gradient-accent); color: #1a1500; border-color: transparent; }
.pagination .nav-btn { color: var(--text-secondary); }

/* 侧边栏 */
.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 28px; }
.widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.widget h4 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.widget h4::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--accent);
}
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  padding: 10px 16px;
}
.search-box input {
  flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 0.9rem;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box svg { color: var(--text-muted); flex-shrink: 0; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-light);
  background: var(--bg);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all .25s;
}
.tag-cloud a:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }

.popular-list { display: flex; flex-direction: column; gap: 16px; }
.popular-item { display: flex; gap: 14px; align-items: flex-start; }
.popular-item .num {
  font-size: 1.4rem; font-weight: 800; color: var(--accent-dim);
  line-height: 1; min-width: 24px;
}
.popular-item:nth-child(1) .num { color: var(--accent); }
.popular-item h5 { font-size: 0.9rem; font-weight: 600; line-height: 1.4; margin-bottom: 4px; transition: color .25s; }
.popular-item:hover h5 { color: var(--accent); }
.popular-item .pm { font-size: 0.75rem; color: var(--text-muted); }

.newsletter-mini {
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border-color: var(--border-accent);
}
.newsletter-mini p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 16px; }
.newsletter-mini input {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border-light);
  color: var(--text); font-size: 0.88rem; margin-bottom: 10px; outline: none;
}
.newsletter-mini input:focus { border-color: var(--accent); }
.newsletter-mini button { width: 100%; }

/* ============================================================
   资讯内容页 (news-detail.html)
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  padding: 56px 0 80px;
  align-items: start;
}
.toc {
  position: sticky; top: 100px;
  align-self: start;
}
.toc h5 {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}
.toc ul { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--border); padding-left: 0; }
.toc li a {
  display: block;
  padding: 9px 0 9px 18px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.86rem;
  color: var(--text-secondary);
  transition: all .25s;
}
.toc li a:hover { color: var(--text); }
.toc li a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

.article-header { margin-bottom: 32px; }
.article-header .nc-cat { font-size: 0.85rem; }
.article-header h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  margin-bottom: 20px;
  line-height: 1.3;
}
.article-meta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem; color: var(--text-secondary);
}
.author-info { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-accent);
  display: grid; place-items: center;
  color: #1a1500; font-weight: 700; font-size: 0.95rem;
}
.article-meta .item { display: flex; align-items: center; gap: 6px; }
.article-meta .item svg { color: var(--text-muted); }

.article-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  aspect-ratio: 21/9;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* 正文排版 */
.article-body { font-size: 1.06rem; color: #d4d4dc; }
.article-body > * + * { margin-top: 24px; }
.article-body h2 {
  font-size: 1.6rem; margin-top: 48px; margin-bottom: 8px;
  scroll-margin-top: 100px; color: var(--text);
  display: flex; align-items: center; gap: 12px;
}
.article-body h2::before {
  content: ""; width: 5px; height: 26px; border-radius: 3px;
  background: var(--gradient-accent);
}
.article-body h3 { font-size: 1.25rem; margin-top: 36px; color: var(--text); scroll-margin-top: 100px; }
.article-body p { line-height: 1.85; }
.article-body a { color: var(--accent); border-bottom: 1px dashed var(--accent-dim); }
.article-body a:hover { color: var(--accent-bright); }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body ul li, .article-body ol li { margin-bottom: 10px; line-height: 1.8; }
.article-body ul li::marker { color: var(--accent); }
.article-body ol li::marker { color: var(--accent); font-weight: 700; }

.article-body blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-size: 1.05rem;
}
.article-body blockquote p { margin: 0; }

.article-body pre {
  background: #0d0d0f;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.7;
}
.article-body code {
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
  color: var(--accent);
}
.article-body pre code { color: #e6e6ec; }

.article-body figure { margin: 32px 0; }
.article-body figure img { border-radius: var(--radius); border: 1px solid var(--border); }
.article-body figcaption {
  text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: 10px;
}

.pro-tip {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex; gap: 16px;
}
.pro-tip .tip-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  border-radius: 10px; background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent);
}
.pro-tip h4 { font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.pro-tip p { font-size: 0.95rem; margin: 0; color: var(--text-secondary); }

table.compare {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.92rem;
}
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.compare th { background: var(--bg-elevated); color: var(--text); font-weight: 700; }
table.compare td { color: var(--text-secondary); }
table.compare tr:last-child td { border-bottom: none; }
table.compare td.yes { color: var(--accent); font-weight: 600; }
table.compare td.no { color: var(--text-muted); }

/* 文章底部 */
.article-footer { margin-top: 56px; }
.share-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.share-row .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.share-row .tags a {
  font-size: 0.8rem; color: var(--text-secondary);
  padding: 5px 12px; border-radius: 100px;
  border: 1px solid var(--border-light);
}
.share-row .tags a:hover { color: var(--accent); border-color: var(--accent); }
.share-buttons { display: flex; gap: 10px; align-items: center; }
.share-buttons span { font-size: 0.85rem; color: var(--text-muted); }
.share-buttons a {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--border-light);
  display: grid; place-items: center; color: var(--text-secondary);
}
.share-buttons a:hover { color: var(--accent); border-color: var(--accent); }

.author-card {
  display: flex; gap: 20px; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-top: 36px;
}
.author-card .author-avatar { width: 64px; height: 64px; font-size: 1.3rem; }
.author-card .ac-info h4 { font-size: 1.1rem; margin-bottom: 4px; }
.author-card .ac-info .role { color: var(--accent); font-size: 0.85rem; margin-bottom: 8px; }
.author-card .ac-info p { color: var(--text-secondary); font-size: 0.9rem; }

.prev-next {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px;
}
.pn-link {
  display: block;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .25s;
}
.pn-link:hover { border-color: var(--border-accent); transform: translateY(-3px); }
.pn-link .dir { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.pn-link.next { text-align: right; }
.pn-link h5 { font-size: 0.98rem; font-weight: 600; transition: color .25s; }
.pn-link:hover h5 { color: var(--accent); }

.related { margin-top: 72px; }
.related h2 { font-size: 1.7rem; margin-bottom: 28px; }
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}

/* ---------- 动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .features-grid, .showcase-grid, .usecase-list { grid-template-columns: repeat(2, 1fr); }
  .news-preview-grid { grid-template-columns: repeat(2, 1fr); }
  .news-card.featured { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar .widget { flex: 1 1 280px; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .nav-menu, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: grid; }
  .nav-menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 18px; right: 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    gap: 4px;
    margin-top: 10px;
  }
  .nav-menu.open a { width: 100%; padding: 12px 16px; }
  .hero { padding: 130px 0 70px; }
  .hero-stats { gap: 24px; }
  .section-pad { padding: 70px 0; }
  .features-grid, .showcase-grid, .usecase-list, .news-list, .related-grid, .prev-next { grid-template-columns: 1fr; }
  .news-preview-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 44px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .article-body { font-size: 1rem; }
  .article-body h2 { font-size: 1.35rem; }
}

/* ===== footer-col li 横排 ===== */
.footer-col ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.footer-col ul li { margin-bottom: 0; }
.footer-col ul li::after { content: ""; }