/* ──────────────────────────────────────────────
   远方计划 · 独立文章页样式（blog-article.css）
   仅新页面使用，不侵入 styles.css / plaza.css。
   设计 token 与主站深色首屏保持一致。
   ────────────────────────────────────────────── */

:root {
  --primary: #00ffcc;
  --primary-deep: #11b89a;
  --accent: #7c5cff;
  --bg: #05080f;
  --card: rgba(255, 255, 255, .05);
  --card-solid: #0c1424;
  --ink: #eaf4ff;
  --muted: rgba(222, 238, 255, .62);
  --line: rgba(255, 255, 255, .10);
  --radius: 28px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(124, 92, 255, .14), transparent 60%),
    radial-gradient(1000px 620px at 12% 4%, rgba(0, 255, 204, .10), transparent 55%),
    linear-gradient(180deg, #05080f 0%, #060b16 45%, #04070d 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── 顶部导航 ── */
.ba-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 5vw;
  background: rgba(5, 8, 15, .84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.ba-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.ba-brand img { width: 30px; height: 30px; border-radius: 9px; }
.ba-brand span { display: flex; flex-direction: column; line-height: 1.2; font-size: 15px; }
.ba-brand small { font-size: 10px; letter-spacing: .18em; color: var(--muted); font-weight: 500; }
.ba-nav { display: flex; align-items: center; gap: 8px; }
.ba-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.ba-nav a:hover { color: var(--ink); border-color: var(--line); }
.ba-nav .ba-nav-cta { color: #04231d; background: var(--primary); font-weight: 600; }
.ba-nav .ba-nav-cta:hover { background: #6affdd; border-color: transparent; color: #04231d; }

/* ── 主体 ── */
.ba-main { max-width: 760px; margin: 0 auto; padding: 30px 5vw 72px; }

.ba-crumb { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.ba-crumb a { color: var(--muted); transition: color .2s; }
.ba-crumb a:hover { color: var(--primary); }
.ba-crumb .sep { opacity: .45; margin: 0 7px; }

.ba-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(0, 255, 204, .10);
  border: 1px solid rgba(0, 255, 204, .22);
}

.ba-article h1 {
  margin: 16px 0 14px;
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.28;
  letter-spacing: -.02em;
  font-weight: 700;
}

.ba-excerpt { margin: 0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.8; }

.ba-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.ba-hero {
  margin: 28px 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.ba-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.ba-body { font-size: 17px; }
.ba-body h2 {
  margin: 40px 0 12px;
  font-size: 21px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -.01em;
}
.ba-body h2::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--primary);
  margin-bottom: 13px;
  opacity: .85;
}
.ba-body p { margin: 0 0 20px; color: rgba(234, 244, 255, .88); }
.ba-body p:last-child { margin-bottom: 0; }

.ba-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.ba-tags span {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
}

/* ── 主 CTA：去产品（传权重） ── */
.ba-cta {
  margin-top: 48px;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(0, 255, 204, .10), rgba(124, 92, 255, .12));
  text-align: center;
}
.ba-cta h2 { margin: 0 0 10px; font-size: 20px; line-height: 1.5; font-weight: 600; letter-spacing: -.01em; }
.ba-cta p { margin: 0 0 24px; font-size: 15px; color: var(--muted); }
.ba-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ba-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--primary);
  color: #04231d;
  font-size: 15px;
  font-weight: 600;
  transition: transform .18s, background .18s;
}
.ba-btn:hover { background: #6affdd; transform: translateY(-1px); }
.ba-btn-ghost {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition: border-color .18s, color .18s;
}
.ba-btn-ghost:hover { border-color: rgba(0, 255, 204, .45); color: var(--primary); }

/* ── 相关文章 ── */
.ba-related { margin-top: 56px; }
.ba-related > h2 { margin: 0 0 18px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.ba-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ba-card {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.ba-card:hover { border-color: rgba(0, 255, 204, .35); transform: translateY(-2px); }
.ba-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ba-card-body { padding: 14px 16px 18px; }
.ba-card-tag { font-size: 11px; letter-spacing: .06em; color: var(--primary); }
.ba-card h3 { margin: 8px 0 6px; font-size: 15px; line-height: 1.5; font-weight: 600; }
.ba-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 页脚 ── */
.ba-foot {
  border-top: 1px solid var(--line);
  padding: 28px 5vw 44px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.ba-foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin-bottom: 12px; }
.ba-foot-links a { transition: color .2s; }
.ba-foot-links a:hover { color: var(--primary); }
.ba-foot p { margin: 0; }

@media (max-width: 640px) {
  .ba-brand small { display: none; }
  .ba-brand span { font-size: 14px; }
  .ba-nav a { padding: 7px 12px; font-size: 13px; }
  .ba-main { padding: 22px 5vw 56px; }
  .ba-body { font-size: 16px; }
  .ba-body h2 { font-size: 19px; margin-top: 34px; }
  .ba-related-grid { grid-template-columns: 1fr; }
  .ba-cta { padding: 26px 20px; }
}
