:root {
  --bg: #070b14;
  --bg-elev: rgba(16, 22, 38, 0.78);
  --bg-solid: #101626;
  --text: #f3efe4;
  --muted: #b7b1a4;
  --soft: #8d877b;
  --gold: #e7c98a;
  --gold-deep: #b8894a;
  --line: rgba(231, 201, 138, 0.18);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --nav-h: 72px;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
[data-theme="light"] {
  --bg: #f6f1e7;
  --bg-elev: rgba(255, 252, 246, 0.86);
  --bg-solid: #fffaf2;
  --text: #1c180f;
  --muted: #5e574c;
  --soft: #8a8172;
  --gold: #8a6230;
  --gold-deep: #6d4a22;
  --line: rgba(90, 62, 28, 0.14);
  --shadow: 0 18px 40px rgba(70, 48, 16, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; width: min(1120px, calc(100% - 40px)); margin: 0 auto; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: 0.08em; color: var(--gold); white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; }
.brand-mark img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; }
.nav a:hover, .nav a.active { color: var(--text); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--text); display: grid; place-items: center;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 0;
  font-size: 14px; font-weight: 600;
}
.btn-primary { background: linear-gradient(180deg, #f0d7a4, #c7964e); color: #1b1408; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-lg { height: 48px; padding: 0 22px; }
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: flex-end;
  background: #070b14 url("../assets/sky.jpg") center/cover no-repeat;
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,11,20,0.15) 0%, rgba(7,11,20,0.25) 40%, rgba(7,11,20,0.88) 100%);
  z-index: -1;
}
.hero-inner { width: min(1120px, calc(100% - 40px)); margin: 0 auto 64px; }
.kicker { color: var(--gold); letter-spacing: 0.22em; font-size: 12px; text-transform: uppercase; margin-bottom: 10px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 72px);
  line-height: 1.12; letter-spacing: 0.04em; max-width: 14ch;
}
.hero-lead { max-width: 640px; color: #efe7d6; margin: 18px 0 26px; font-size: 17px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.constellation-row { display: flex; gap: 18px; margin-top: 34px; flex-wrap: wrap; }
.constellation-row span {
  font-size: 13px; letter-spacing: 0.12em; color: #f0e2c2;
  border-bottom: 1px solid rgba(231,201,138,0.45); padding-bottom: 4px;
}
.section { padding: 72px 0; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 26px; }
.h2 { font-family: var(--serif); font-size: 34px; font-weight: 500; letter-spacing: 0.04em; }
.muted { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(10px);
}
.card h3 { font-size: 18px; margin: 8px 0; }
.plan { display: flex; flex-direction: column; gap: 8px; }
.plan .price { font-family: var(--serif); font-size: 36px; color: var(--gold); }
.plan .price span { font-size: 14px; color: var(--muted); }
.plan ul { margin: 8px 0 14px 18px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; letter-spacing: 0.08em; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.probe-list { display: grid; gap: 10px; margin-top: 14px; }
.probe-item, .status-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #d7b56a; display: inline-block; margin-right: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold); font-weight: 600; }
.article { width: min(820px, calc(100% - 40px)); margin: 36px auto 72px; }
.article h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); font-weight: 500; line-height: 1.25; margin: 10px 0 12px; }
.meta { color: var(--soft); font-size: 13px; margin-bottom: 22px; }
.prose p { margin: 0 0 16px; }
.prose h2 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 28px 0 10px; }
.prose h3 { font-size: 18px; margin: 20px 0 8px; }
.prose ul, .prose ol { margin: 0 0 16px 1.2em; }
.prose li { margin: 6px 0; }
.prose table { margin: 8px 0 18px; }
.crumbs { font-size: 13px; color: var(--soft); }
.crumbs a { color: var(--gold); }
.related { display: grid; gap: 8px; margin-top: 12px; }
.related a { color: var(--gold); }
footer.site {
  border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--soft); font-size: 13px;
}
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.blog-list { display: grid; gap: 14px; }
.blog-card h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; }
.pager { display: flex; gap: 10px; margin-top: 22px; }
.note { font-size: 13px; color: var(--soft); margin-top: 10px; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: var(--bg-solid); padding: 10px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .hero { min-height: 78vh; }
}

/* Homepage: keep the hero artwork, extend the same sky behind the rest of the page */
body.has-sky { background: transparent; }
body.has-sky::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: #070b14 url("../assets/sky.jpg") center / cover no-repeat;
}
body.has-sky main {
  background: linear-gradient(180deg, rgba(7,11,20,0.86) 0%, rgba(7,11,20,0.46) 160px, rgba(7,11,20,0.34) 100%);
}
body.has-sky footer.site {
  background: linear-gradient(180deg, rgba(7,11,20,0.28), rgba(7,11,20,0.62));
}
[data-theme="light"] body.has-sky::before {
  background: #f6f1e7 url("../assets/sky.jpg") center / cover no-repeat;
  filter: saturate(0.7) brightness(1.35);
}
[data-theme="light"] body.has-sky main {
  background: linear-gradient(180deg, rgba(246,241,231,0.9) 0%, rgba(246,241,231,0.72) 100%);
}
[data-theme="light"] body.has-sky footer.site {
  background: rgba(246,241,231,0.78);
}
a.probe-item {
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
  padding: 8px 10px;
  margin: 0 -10px;
}
a.probe-item:hover { background: color-mix(in srgb, var(--gold) 12%, transparent); }
.probe-url {
  font-style: normal;
  color: var(--gold);
  font-size: 13px;
  margin-left: 6px;
}
.probe-go { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.probe-jump {
  color: var(--gold);
  font-size: 13px;
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
}
