/* Horoscope! 官网。与 App 同一套设计语言「夜观」：
   天文台夜里的蓝黑、单一黄铜强调色、1px 细线结构、衬线标题、等宽数字。

   占星站点的默认长相是紫色渐变加发光字，那是神秘学的**装饰**。
   这个产品要的是另一件事：观测。所以底色是蓝黑不是紫，
   张力与和谐用冷紫/青两极而不是红绿——红绿在这个语境里一定会被读成吉凶。 */

:root {
  --canvas: #0b0e16;
  --surface: #131726;
  --raised: #1b202e;
  --ink: #edeff4;
  --ink-2: #9ca4b3;
  --ink-3: #666e7e;
  --rule: #282e3e;
  --brass: #d4af67;
  --tense: #9883d9;
  --flowing: #66bdc2;
  --radius: 12px;
  --tight-radius: 8px;
  --maxw: 900px;
}

@media (prefers-color-scheme: light) {
  :root {
    --canvas: #f6f5f2;
    --surface: #ffffff;
    --raised: #f9f8f5;
    --ink: #161921;
    --ink-2: #5a606c;
    --ink-3: #8c919b;
    --rule: #dcdad4;
    --brass: #9c7525;
    --tense: #694fb4;
    --flowing: #257d84;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: var(--brass); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 小标签：刻度盘上的那种。用 CSS 转大写，和 App 里的 SectionLabel 一致 */
.label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 6px;
}
.fine { font-size: 13px; color: var(--ink-3); margin: 0; }

/* 度数、比例、任何要一列列对齐的数字 */
.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

/* ── 导航 ───────────────────────────────────────────── */

.nav {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 0; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.brand img { border-radius: 7px; display: block; }
.brand:hover { text-decoration: none; }

.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }
.nav-links a { color: var(--ink-2); font-size: 14.5px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-block; background: var(--brass); color: var(--canvas);
  padding: 9px 16px; border-radius: var(--tight-radius);
  font-size: 14.5px; font-weight: 600;
}
.btn:hover { text-decoration: none; opacity: 0.88; }
.btn-lg { padding: 13px 26px; font-size: 16px; }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; font-size: 14px; color: var(--ink-2);
  padding: 6px 10px; border: 1px solid var(--rule);
  border-radius: var(--tight-radius); background: var(--surface); user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: " ▾"; color: var(--ink-3); }
.lang[open] summary { color: var(--ink); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 6px; min-width: 150px;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.lang-menu a { padding: 8px 10px; border-radius: 6px; color: var(--ink); font-size: 14.5px; }
.lang-menu a:hover { background: var(--raised); text-decoration: none; }
.lang-menu a[aria-current] { color: var(--brass); font-weight: 600; }

/* ── 首屏 ───────────────────────────────────────────── */

.hero { padding: 60px 0 44px; }

h1 {
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-weight: 300;
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: -0.015em; line-height: 1.12; margin: 0 0 20px;
}
.lede {
  font-size: clamp(17px, 2.3vw, 20px); color: var(--ink-2);
  margin: 0 0 28px; max-width: 36em;
}
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* 星盘轮：产品的核心母题。上升在左（9 点钟方向），逆时针——星盘的通用约定。 */
.wheel { display: block; margin: 40px auto 10px; max-width: 320px; width: 100%; height: auto; }
.wheel .ring { fill: none; stroke: var(--rule); stroke-width: 1; }
.wheel .spoke { stroke: var(--rule); stroke-width: 1; }
.wheel .axis { stroke: var(--brass); stroke-width: 1.4; }
.wheel .glyph { fill: var(--ink-3); font-size: 9px; text-anchor: middle; dominant-baseline: middle; }
.wheel .body { fill: var(--brass); font-size: 11px; text-anchor: middle; dominant-baseline: middle; }
.wheel .aspect-tense { stroke: var(--tense); stroke-width: 1; fill: none; }
.wheel .aspect-flowing { stroke: var(--flowing); stroke-width: 1; fill: none; }
.wheel-note { text-align: center; margin-bottom: 8px; }

/* ── 区块 ───────────────────────────────────────────── */

section { padding: 46px 0; border-top: 1px solid var(--rule); }

h2 {
  font-family: ui-serif, Georgia, "Songti SC", serif;
  font-size: clamp(23px, 3.2vw, 31px); font-weight: 300;
  letter-spacing: -0.01em; margin: 6px 0 18px;
}
h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.005em; }
p { margin: 0 0 16px; color: var(--ink-2); }
strong { color: var(--ink); font-weight: 600; }
ul, ol { color: var(--ink-2); padding-left: 20px; }
li { margin-bottom: 8px; }

/* 四张卡：两列两行。给 240px 的话 900px 宽正好排成 3+1，
   落单的那张看起来像没写完。 */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 20px;
}
.card .num {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--brass);
  font-variant-numeric: tabular-nums; display: block; margin-bottom: 6px;
}
.card p { margin: 0; font-size: 14.5px; }

/* 张力 / 和谐：两个冷暖极，不是红绿 */
.poles { display: grid; gap: 12px; margin: 22px 0;
         grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pole { padding: 4px 0 4px 14px; border-left: 3px solid var(--rule); }
.pole.tense { border-left-color: var(--tense); }
.pole.flowing { border-left-color: var(--flowing); }
.pole h3 { font-size: 15px; }
.pole p { margin: 0; font-size: 14px; }

.note {
  border-left: 3px solid var(--brass);
  background: color-mix(in srgb, var(--brass) 8%, transparent);
  padding: 14px 16px; border-radius: 0 var(--tight-radius) var(--tight-radius) 0;
  font-size: 14.5px; color: var(--ink-2); margin: 4px 0 16px;
}

.cta-section .cta-row { margin-top: 22px; }

/* ── 法务 / 支持页 ──────────────────────────────────── */

.doc-head { padding-bottom: 20px; }
.doc h2 { font-size: 21px; margin-top: 8px; }
.doc h3 { font-size: 16px; margin-top: 24px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.doc th, .doc td {
  text-align: left; padding: 9px 10px;
  border-bottom: 1px solid var(--rule); vertical-align: top;
}
.doc th {
  color: var(--ink-3); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.07em;
}

.faq { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 18px; }
.faq h3 { margin-top: 0; }

/* ── 页脚 ───────────────────────────────────────────── */

footer { border-top: 1px solid var(--rule); padding: 40px 0 64px; }
.foot-grid {
  display: grid; gap: 28px; margin-bottom: 28px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
@media (max-width: 640px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .nav-end { margin-left: 0; width: 100%; }
}
.foot-brand .brand { margin-bottom: 10px; }
.foot-h {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px;
}
.foot-grid a { display: block; color: var(--ink-2); font-size: 14px; margin-bottom: 7px; }
.foot-grid a:hover { color: var(--ink); text-decoration: none; }
footer .fine { margin-bottom: 8px; }
