/* 银河星空冥想 · 内容页视觉规范（about / faq / learn / privacy / terms / 根落地页）
   延续工具页视觉语言：深空星夜 #050810 + 青白呼吸 + 暖金收束。克制、高级。
   与 shared/css/style.css 并行使用，style.css 用于工具页（overflow:hidden），
   本文件用于可滚动的内容页，自包含全部内容页所需样式。 */

:root {
  --bg-deep: #050810;
  --bg-mid: #0a1020;
  --bg-card: #0c1424;
  --star-cyan: rgba(180, 220, 255, 0.9);
  --star-blue: rgba(120, 180, 255, 0.5);
  --warm-gold: rgba(255, 210, 140, 0.92);
  --warm-amber: rgba(245, 195, 120, 0.88);
  --ink: #e8eef7;              /* 正文主文字（深底高对比） */
  --ink-2: #c6d0e0;            /* 次级文字 */
  --text-dim: rgba(180, 190, 210, 0.62);
  --text-faint: rgba(150, 160, 180, 0.42);
  --line: rgba(255, 255, 255, 0.1);
  --ctrl-bg: rgba(8, 14, 28, 0.6);
  --accent: #7fb6ff;           /* 青白呼吸主色 */
  --accent-2: #ffd98c;         /* 暖金 */
  --maxw: 1080px;
  --maxw-prose: 760px;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", "Noto Sans SC", sans-serif;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ===== 深空背景层（固定，含星点）===== */
.stars-bg {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at center, var(--bg-mid) 0%, var(--bg-deep) 72%);
}
.stars-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 18% 28%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 62% 68%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 82% 18%, rgba(220,235,255,0.8), transparent),
    radial-gradient(1px 1px at 28% 82%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.2px 1.2px at 50% 48%, rgba(200,220,255,0.6), transparent),
    radial-gradient(1px 1px at 76% 55%, rgba(255,255,255,0.45), transparent);
  background-size: 620px 620px, 520px 520px, 720px 720px, 430px 430px, 560px 560px, 480px 480px;
}
.stars-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,0.72) 100%);
}

/* ===== 页眉导航（与 main.css .yx-header 统一：62px 高 / 1120px 容器 / 18px 品牌） ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 8, 16, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1120px, calc(100% - 48px)); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 50% 50%, #fff 0%, var(--star-cyan) 30%, rgba(120,180,255,0.35) 62%, transparent 75%);
  box-shadow: 0 0 14px rgba(150, 200, 255, 0.45);
}
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: 0.06em; }
.brand-tag { font-size: 11px; color: var(--text-dim); letter-spacing: 0.08em; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--ink-2); font-size: 14.5px;
  padding: 8px 13px; border-radius: 9px; letter-spacing: 0.04em;
  transition: color .25s, background .25s;
}
.nav a:hover { color: #fff; background: rgba(120, 180, 255, 0.08); }
.nav a.is-current { color: #fff; background: rgba(120, 180, 255, 0.14); }

/* ===== 主容器 ===== */
.page {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  padding: 56px 24px 40px;
}
.page-narrow { max-width: var(--maxw-prose); }

/* ===== 页面头 ===== */
.page-head { margin-bottom: 36px; }
.kicker {
  display: inline-block; font-size: 12px; letter-spacing: 0.28em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 14px;
}
.page-title {
  font-size: clamp(30px, 5vw, 44px); font-weight: 800; line-height: 1.25;
  letter-spacing: 0.03em; color: #fff;
}
.page-lede {
  margin-top: 14px; font-size: 16px; color: var(--ink-2);
  max-width: 640px; line-height: 1.8;
}
.meta-line { margin-top: 14px; font-size: 13px; color: var(--text-dim); letter-spacing: 0.05em; }

/* ===== 通用文案 ===== */
h2.sec {
  font-size: 24px; font-weight: 700; color: #fff;
  margin: 40px 0 18px; letter-spacing: 0.02em;
  display: flex; align-items: baseline; gap: 12px;
}
h2.sec::before {
  content: ''; width: 4px; height: 18px; align-self: center;
  background: linear-gradient(var(--star-cyan), var(--warm-gold)); border-radius: 2px;
}
h3.sub {
  font-size: 18px; font-weight: 600; color: var(--ink);
  margin: 26px 0 12px;
}
p { margin: 0 0 14px; color: var(--ink-2); }
p strong, .prose strong { color: var(--accent-2); font-weight: 600; }
p.lead { font-size: 17px; color: var(--ink); }

ul, ol { margin: 0 0 16px 0; padding-left: 1.4em; color: var(--ink-2); }
li { margin-bottom: 8px; }
li::marker { color: var(--accent); }

/* ===== 提示条（非医疗定位 / 免责）===== */
.notice {
  border: 1px solid rgba(180,220,255,0.22);
  background: rgba(127,182,255,0.08);
  border-radius: 14px; padding: 14px 18px;
  font-size: 14px; color: var(--ink-2); line-height: 1.7;
  margin: 22px 0;
}
.notice strong { color: var(--accent); }

/* ===== 卡片组 ===== */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  background: linear-gradient(180deg, rgba(12,20,36,0.6), rgba(8,14,28,0.45));
  border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px;
}
.card h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-2); margin: 0; }
.card .tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.12em;
  color: var(--accent); border: 1px solid rgba(180,220,255,0.25);
  padding: 2px 10px; border-radius: 999px; margin-bottom: 10px;
}

/* ===== FAQ 手风琴 ===== */
.faq-item {
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(12,20,36,0.5); margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  color: var(--ink); font-size: 16px; font-weight: 600; font-family: inherit;
  padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  letter-spacing: 0.01em;
}
.faq-q:hover { color: #fff; }
.faq-q .chev {
  width: 20px; height: 20px; flex: none; color: var(--accent);
  transition: transform .3s; 
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.faq-item.open .faq-a { display: block; }

/* ===== 文章正文 ===== */
article.prose { font-size: 16px; color: var(--ink-2); line-height: 1.9; }
article.prose h1 {
  font-size: clamp(26px, 4vw, 34px); font-weight: 800; color: #fff; line-height: 1.3;
  letter-spacing: 0.02em; margin-bottom: 12px;
}
article.prose h2 {
  font-size: 22px; font-weight: 700; color: #fff; margin: 34px 0 14px;
  display: flex; align-items: baseline; gap: 10px;
}
article.prose h2::before { content: ''; width: 4px; height: 16px; align-self: center; background: linear-gradient(var(--star-cyan), var(--warm-gold)); border-radius: 2px; }
article.prose h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin: 24px 0 10px; }
article.prose p { margin-bottom: 16px; }
article.prose ol, article.prose ul { margin-bottom: 16px; }
.byline {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  font-size: 13px; color: var(--text-dim); margin: 6px 0 22px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.byline span { display: inline-flex; align-items: center; gap: 6px; }
.callout {
  border-left: 3px solid var(--accent); background: rgba(127,182,255,0.07);
  padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 20px 0; font-size: 15px; color: var(--ink-2);
}
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li { position: relative; padding-left: 40px; margin-bottom: 14px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(180,220,255,0.4); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 520px; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; font-size: 14px; }
thead th { background: rgba(255,255,255,0.04); color: var(--accent); font-weight: 600; letter-spacing: 0.03em; }
tbody td { color: var(--ink-2); border-top: 1px solid var(--line); }
td strong { color: var(--accent-2); }

/* ===== 文章列表 ===== */
.article-list { list-style: none; padding-left: 0; }
.article-list li {
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(12,20,36,0.5); padding: 18px 20px; margin-bottom: 12px;
}
.article-list a { text-decoration: none; color: inherit; }
.article-list .a-title { font-size: 17px; font-weight: 700; color: #fff; }
.article-list .a-title:hover { color: var(--accent); }
.article-list .a-meta { font-size: 12px; color: var(--text-dim); margin-top: 6px; letter-spacing: 0.04em; }
.article-list .a-desc { font-size: 14px; color: var(--ink-2); margin-top: 8px; }

/* ===== CTA 区块 ===== */
.cta-band {
  margin-top: 48px; text-align: center;
  border: 1px solid var(--line); border-radius: 20px;
  background: radial-gradient(ellipse at center, rgba(12,22,44,0.6), rgba(8,14,28,0.5));
  padding: 44px 24px;
}
.cta-band h3 { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: 0.02em; }
.cta-band p { color: var(--ink-2); max-width: 480px; margin: 0 auto 22px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
  padding: 13px 26px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink); background: var(--ctrl-bg);
  transition: transform .2s, background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(180,220,255,0.4); }
.btn-primary { background: linear-gradient(120deg, rgba(127,182,255,0.22), rgba(255,217,140,0.18)); color: #fff; border-color: rgba(180,220,255,0.35); }
.btn-primary:hover { background: linear-gradient(120deg, rgba(127,182,255,0.34), rgba(255,217,140,0.3)); }

/* ===== 页脚 ===== */
.site-footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  padding: 36px 24px 48px; margin-top: 40px;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 20px; grid-template-columns: 1fr; }
.footer-brand { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 0.08em; }
.footer-desc { font-size: 13px; color: var(--text-dim); margin-top: 6px; max-width: 420px; }
.footer-links { display: flex; gap: 10px 22px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--ink-2); text-decoration: none; letter-spacing: 0.04em; }
.footer-links a:hover { color: var(--accent); }
.footer-updated { font-size: 12px; color: var(--text-faint); margin-top: 16px; letter-spacing: 0.06em; }

/* ===== 响应式 ===== */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid.tri { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-links { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
