/* 灵台官网 · 浅色东方风格，零外部依赖 */
:root {
  --bg: #faf8f4;
  --bg-tint: #f2f0e9;
  --surface: #fffefb;
  --ink: #24221f;
  --ink-2: #565148;
  --ink-3: #857e70;
  --line: #e4ded2;
  --accent: #a0442f;
  --accent-soft: #f6e9e3;
  --jade: #3f5c58;
  --jade-soft: #e6efeb;
  --gold: #b08b4f;
  --gold-soft: #f4eddd;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--surface); color: var(--accent); padding: 10px 16px; border: 1px solid var(--line);
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- 顶部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 248, 244, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 68px; display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); flex: none; }
.brand-mark { display: block; width: 30px; height: 30px; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name { font-family: var(--font-serif); font-size: 22px; letter-spacing: .14em; color: var(--ink); }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { font-size: 14px; color: var(--ink-2); position: relative; padding: 6px 0; white-space: nowrap; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transition: transform .25s ease;
}
.nav a:hover, .nav a.is-active { color: var(--accent); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header-badge {
  flex: none; font-size: 12px; color: var(--jade); background: var(--jade-soft);
  border: 1px solid #d3e2dc; border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero { padding: 84px 0 92px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: center; }
.eyebrow {
  font-size: 12px; letter-spacing: .22em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.28; letter-spacing: .03em; }
.h1-dot { color: var(--gold); margin: 0 .18em; }
.hero-lead { margin-top: 24px; font-size: 17px; line-height: 1.95; color: var(--ink-2); max-width: 520px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); max-width: 500px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 24px; border-radius: 6px; font-size: 14px;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(160, 68, 47, .16); }
.btn-primary:hover { background: #8c3a27; }
.btn-ghost { border-color: var(--line); color: var(--ink-2); background: var(--surface); }
.btn-ghost:hover { border-color: var(--gold); color: var(--accent); }

.hero-art {
  position: relative; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: linear-gradient(170deg, #fdfbf6 0%, #eef2ec 100%);
  padding: 18px 18px 30px;
}
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-art-caption {
  position: absolute; right: 20px; bottom: 14px; font-size: 12px;
  letter-spacing: .12em; color: var(--ink-3);
}

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(27px, 3vw, 36px); line-height: 1.4; letter-spacing: .03em; }
.section-lead { margin-top: 16px; color: var(--ink-2); font-size: 15px; line-height: 1.95; }

/* ---------- 服务卡片 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 32px 32px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: #d8cdb9; box-shadow: 0 14px 34px rgba(60, 50, 35, .07); }
.card-no { font-family: var(--font-serif); font-size: 13px; letter-spacing: .16em; color: var(--gold); }
.card h3 { margin-top: 14px; font-size: 22px; letter-spacing: .04em; }
.card p { margin-top: 14px; font-size: 14.5px; line-height: 1.95; color: var(--ink-2); }
.card .card-meta {
  margin-top: auto; padding-top: 20px; border-top: 1px dashed var(--line);
  font-size: 12.5px; letter-spacing: .06em; color: var(--ink-3);
}

/* ---------- 三步 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  display: flex; gap: 18px; padding: 28px 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
}
.step-no {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-serif); font-size: 17px;
  color: var(--accent); background: var(--accent-soft); border: 1px solid #edd8ce;
}
.step h3 { font-size: 19px; }
.step p { margin-top: 10px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.fact-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 30px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fact-strip div { padding: 22px 10px; text-align: center; border-right: 1px solid var(--line); }
.fact-strip div:last-child { border-right: 0; }
.fact-strip strong { display: block; font-family: var(--font-serif); font-size: 28px; color: var(--accent); font-weight: 600; }
.fact-strip span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-3); letter-spacing: .08em; }
.boundary-note {
  margin-top: 26px; padding: 18px 22px; background: var(--accent-soft);
  border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0;
  font-size: 14px; line-height: 1.9; color: #6b3b2e;
}

/* ---------- 状态列表 ---------- */
.status-list { border-top: 1px solid var(--line); }
.status-list li {
  display: grid; grid-template-columns: 210px 1fr 92px; gap: 20px; align-items: center;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
}
.s-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.s-desc { font-size: 14px; color: var(--ink-2); line-height: 1.8; }
.tag { justify-self: end; font-size: 12px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.tag-ok { color: var(--jade); background: var(--jade-soft); border-color: #d3e2dc; }
.tag-part { color: #8a6528; background: var(--gold-soft); border-color: #e8d9b7; }
.tag-work { color: var(--ink-3); background: #eeece6; border-color: var(--line); }

/* ---------- 安全边界 ---------- */
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.safety-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.safety-item h3 { font-size: 19px; color: var(--jade); }
.safety-item p { margin-top: 12px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }

/* ---------- 收尾 ---------- */
.closing { padding: 76px 0; background: linear-gradient(160deg, #eef2ee 0%, #f8f4ea 100%); border-top: 1px solid var(--line); }
.closing-inner { text-align: center; }
.closing h2 { font-size: clamp(25px, 3vw, 32px); }
.closing p { margin-top: 16px; color: var(--ink-2); font-size: 15px; }
.closing .btn { margin-top: 28px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #f0ede5; border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-brand, .footer-company, .footer-record { display: flex; flex-direction: column; gap: 6px; }
.footer-company { font-size: 13px; color: var(--ink-2); }
.footer-company a { width: fit-content; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #cfc7b7; }
.footer-company a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.footer-label { font-size: 12px; letter-spacing: .14em; color: var(--ink-3); }
.footer-record { text-align: right; }
.footer-record a { font-size: 13px; color: var(--ink-2); border-bottom: 1px solid #cfc7b7; padding-bottom: 1px; }
.footer-record a:hover { color: var(--accent); border-color: var(--accent); }
.footer-sub { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 入场动画（JS 可用时才隐藏，避免脚本失败导致空白） ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero { padding: 60px 0 68px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-art { max-width: 520px; }
  .steps { grid-template-columns: 1fr; }
  .status-list li { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .s-desc { grid-column: 1 / -1; grid-row: 2; }
  .tag { grid-column: 2; grid-row: 1; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .header-inner { gap: 14px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 20px; overflow-x: auto; padding-bottom: 2px; }
  .header-badge { margin-left: auto; font-size: 11px; padding: 3px 10px; }
  .section { padding: 62px 0; }
  .section-head { margin-bottom: 32px; }
  .card-grid, .safety-grid { grid-template-columns: 1fr; }
  .card { padding: 26px 24px 22px; }
  .fact-strip { grid-template-columns: repeat(2, 1fr); }
  .fact-strip div:nth-child(2) { border-right: 0; }
  .fact-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .s-name { font-size: 14.5px; }
  .footer-inner { flex-direction: column; }
  .footer-record { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .nav a::after { transition: none; }
}
