
  :root {
    --ivory:      #F9F6F0;   /* 暖象牙白底 */
    --ivory-2:    #F3EEE4;   /* 稍深底，用于分层 */
    --gold:       #D4A85C;   /* 暗金 / 香槟金 */
    --gold-deep:  #C2943F;   /* 悬停加深 */
    --gold-soft:  #E8D3A9;   /* 浅金 */
    --gold-line:  rgba(212, 168, 92, 0.34);
    --gold-glow:  rgba(212, 168, 92, 0.16);
    --ink:        #2C2C2C;   /* 深褐正文 */
    --ink-soft:   #8A7F6D;   /* 灰褐副文 */
    --hairline:   #E7E0D3;   /* 极浅分隔线 */

    --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
    --sans:  "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
    --radius: 999px;
  }

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

  html { -webkit-text-size-adjust: 100%; }

  body {
    min-height: 100vh;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 40px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
  }

  /* 背景柔和光晕，营造高级留白感 */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
      radial-gradient(620px circle at 78% 42%, var(--gold-glow), transparent 62%),
      radial-gradient(520px circle at 12% 12%, rgba(249, 246, 240, 0.9), transparent 60%);
    pointer-events: none;
    z-index: 0;
  }

  .wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 64px;
  }

  /* ---------- 左栏 ---------- */
  .left { max-width: 560px; }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.32em;
    color: var(--gold-deep);
    margin-bottom: 26px;
    font-weight: 500;
  }
  .eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--gold-line);
  }

  .title {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(40px, 4.7vw, 62px);
    line-height: 1.28;
    letter-spacing: 0.015em;
    color: var(--ink);
    margin-bottom: 26px;
  }
  .title .accent {
    color: var(--gold-deep);
    position: relative;
    white-space: nowrap;
  }
  .title .accent::after {
    content: "";
    position: absolute;
    left: 2px; right: 2px; bottom: 6px;
    height: 8px;
    background: linear-gradient(90deg, var(--gold-soft), transparent);
    opacity: 0.5;
    border-radius: var(--radius);
    z-index: -1;
  }

  .sub {
    font-size: 17px;
    line-height: 1.95;
    color: var(--ink-soft);
    max-width: 31em;
    margin-bottom: 40px;
  }

  /* ---------- 按钮 ---------- */
  .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 54px;
    padding: 0 34px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--sans);
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .28s cubic-bezier(.22,.61,.36,1),
                box-shadow .28s ease, background .28s ease, border-color .28s ease;
  }
  .btn:hover { transform: translateY(-2px); }

  .btn-primary {
    background: linear-gradient(135deg, #E0B96E, var(--gold) 55%, var(--gold-deep));
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(212, 168, 92, 0.62),
                0 2px 6px rgba(212, 168, 92, 0.18);
  }
  .btn-primary:hover {
    box-shadow: 0 16px 32px -10px rgba(212, 168, 92, 0.72),
                0 3px 8px rgba(212, 168, 92, 0.22);
  }

  .btn-ghost {
    background: #fff;
    border-color: var(--gold-line);
    color: var(--ink);
    box-shadow: 0 2px 10px rgba(44, 44, 44, 0.03);
  }
  .btn-ghost:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 22px -12px rgba(212, 168, 92, 0.5);
  }
  .btn-ghost .icon { color: var(--gold-deep); display: inline-flex; }
  .btn-ghost .label { display: flex; flex-direction: column; line-height: 1.15; align-items: flex-start; }
  .btn-ghost .label b { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
  .btn-ghost .label i { font-size: 11px; font-style: normal; color: var(--ink-soft); letter-spacing: .04em; }
  /* ---------- 时间轴 ---------- */
  .timeline { list-style: none; position: relative; padding-left: 22px; }
  .timeline::before {
    content: "";
    position: absolute; left: 4px; top: 9px; bottom: 9px;
    width: 1px;
    background: linear-gradient(180deg, var(--gold-line), transparent);
  }
  .timeline li {
    position: relative;
    display: flex; align-items: baseline; gap: 14px;
    font-size: 14.5px; color: var(--ink);
    padding: 7px 0;
  }
  .timeline .dot {
    position: absolute; left: -22px; top: 13px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--ivory);
    border: 1.5px solid var(--gold);
    box-shadow: 0 0 0 4px var(--gold-glow);
  }
  .timeline .text { flex: 1; }
  .timeline .date {
    font-size: 12.5px; color: var(--ink-soft);
    letter-spacing: .06em; font-variant-numeric: tabular-nums;
  }

  /* ---------- 右侧星盘 ---------- */
  .right { display: flex; align-items: center; justify-content: center; }
  .chart { width: min(100%, 520px); aspect-ratio: 1; }
  .compass { width: 100%; height: 100%; display: block; }
  .compass circle, .compass line { vector-effect: non-scaling-stroke; }

  .ring-outer { fill: none; stroke: var(--gold-line); }
  .ring-mid   { fill: none; stroke: #E3DACB; }
  .ring-inner { fill: none; stroke: rgba(212, 168, 92, .22); }
  .ring-hair  { fill: none; stroke: #EAE3D6; }

  .ray        { stroke: rgba(212, 168, 92, .26); }
  .tick-major { stroke: var(--gold); }
  .tick-minor { stroke: #DDD4C4; }

  .lbl-outer { font-size: 11px; fill: #B9AE9A; font-family: var(--serif); letter-spacing: .06em; }
  .lbl-inner { font-size: 13px; fill: var(--gold-deep); font-family: var(--serif); letter-spacing: .1em; }

  .core      { fill: var(--gold); }
  .core-glow { fill: var(--gold-glow); }

  /* 星盘保持静态，构图更稳、更符合极简气质 */

  /* ---------- 响应式 ---------- */
  @media (max-width: 940px) {
    body { padding: 48px 24px; }
    .wrap { grid-template-columns: 1fr; gap: 52px; }
    .left { max-width: none; }
    .chart { width: min(100%, 400px); margin: 0 auto; }
  }
  @media (max-width: 520px) {
    .btn { width: 100%; }
    .timeline .date { display: none; }
  }


/* ---------- 返回博客入口 ---------- */
.back-home {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .25s ease;
}
.back-home:hover {
  color: var(--gold-deep);
  border-color: var(--gold-line);
  background: #fff;
  box-shadow: 0 8px 20px -12px rgba(212, 168, 92, .5);
}
@media (max-width: 640px) {
  .back-home { top: 14px; left: 14px; font-size: 12.5px; padding: 6px 12px; }
}

/* ============================================================
   排盘工具区
   ============================================================ */
body { display: block; padding: 0; }
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 84px 40px 40px;
}

.tool { max-width: 980px; margin: 0 auto; padding: 20px 40px 140px; }
.tool-head { text-align: center; margin-bottom: 34px; }
.tool-head h2 {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 34px);
  color: var(--ink); letter-spacing: .05em; margin-bottom: 10px;
}
.tool-head p { color: var(--ink-soft); font-size: 15px; line-height: 1.8; }

.panel {
  background: #fff; border: 1px solid var(--gold-line); border-radius: 24px;
  padding: 28px 30px; box-shadow: 0 18px 50px -30px rgba(212, 168, 92, .45);
}
.field-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.field { flex: 1 1 200px; }
.field > label {
  display: block; font-size: 12.5px; letter-spacing: .14em;
  color: var(--ink-soft); margin-bottom: 8px;
}
.field select, .field input {
  width: 100%; height: 48px; padding: 0 16px; font-size: 15px;
  font-family: var(--sans); color: var(--ink); background: var(--ivory);
  border: 1px solid var(--hairline); border-radius: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field select:focus, .field input:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-glow);
}

.seg {
  display: inline-flex; gap: 6px; background: var(--ivory);
  border-radius: 999px; padding: 5px; border: 1px solid var(--hairline);
}
.seg button {
  border: 0; background: transparent; cursor: pointer; font-family: var(--sans);
  font-size: 14px; color: var(--ink-soft); padding: 9px 22px;
  border-radius: 999px; transition: all .22s;
}
.seg button.on {
  background: linear-gradient(135deg, #E0B96E, var(--gold) 60%, var(--gold-deep));
  color: #fff; box-shadow: 0 6px 16px -8px rgba(212, 168, 92, .7);
}

.submit {
  width: 100%; height: 56px; margin-top: 8px; border: 0; cursor: pointer;
  border-radius: 999px; font-family: var(--sans); font-size: 16.5px;
  font-weight: 600; letter-spacing: .08em; color: #fff;
  background: linear-gradient(135deg, #E0B96E, var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 12px 28px -12px rgba(212, 168, 92, .75);
  transition: transform .25s, box-shadow .25s;
}
.submit:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(212, 168, 92, .85); }

/* ---------- 结果 ---------- */
.result { margin-top: 34px; }
.base-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; margin-bottom: 22px; }
.base-item { background: var(--ivory); border-radius: 16px; padding: 14px 16px; }
.base-item .k { font-size: 12px; color: var(--ink-soft); letter-spacing: .1em; margin-bottom: 5px; }
.base-item .v { font-family: var(--serif); font-size: 17px; color: var(--ink); }

.block { background: #fff; border: 1px solid var(--hairline); border-radius: 20px; padding: 24px 26px; margin-bottom: 18px; }
.block h3 {
  font-family: var(--serif); font-size: 19px; color: var(--gold-deep);
  letter-spacing: .06em; margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.block h3::before { content: ""; width: 18px; height: 1px; background: var(--gold); }

.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.tbl th { color: var(--ink-soft); font-weight: 500; font-size: 12.5px; letter-spacing: .1em; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td:first-child { font-family: var(--serif); color: var(--ink); white-space: nowrap; }

.lines { font-size: 15px; line-height: 2.05; color: var(--ink); }
.lines .li { padding-left: 18px; position: relative; }
.lines .li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.lines .plain { color: var(--ink); }
.lines .plain + .plain { margin-top: 2px; }
.lines .em { color: var(--gold-deep); font-weight: 600; margin-top: 10px; }
.lines .sub { color: var(--ink-soft); padding-left: 18px; }

.disclaimer { font-size: 12.5px; color: var(--ink-soft); line-height: 1.9; margin-top: 6px; padding: 16px 18px; background: var(--ivory); border-radius: 14px; }
.loading { text-align: center; color: var(--ink-soft); padding: 40px 0; font-size: 15px; }

@media (max-width: 640px) {
  .hero { min-height: auto; padding: 92px 22px 30px; }
  .tool { padding: 16px 20px 100px; }
  .panel { padding: 22px 20px; border-radius: 20px; }
  .block { padding: 20px 18px; border-radius: 16px; }
  .tbl th, .tbl td { padding: 8px 8px; font-size: 13px; }
}
