/* ==================================================================
   月晓主站 · 日心太阳系星图（复制自 gamecase/astral-log/visual/solar-atlas-sun.html）
   · 只搬 UI 组件与交互观感；画布透明，与主站渐变星空融合，不产生矩形硬边界。
   · PC 以 1920×1080 为首要基准，移动以 390×844 为首要基准；
     画布内圈层/天体/标签由引擎按同一比例 K 缩放，卡片用正常字号保证可读性。
   · 变量限定在 .sun-atlas 作用域内，不污染主站其它组件。
   ================================================================== */
.sun-atlas{
  --sa-gold:#e4bf79; --sa-gold2:#ffe6ad; --sa-txt:#f4f6fc;
  --sa-muted:#b9c4da; --sa-dim:#8896b4; --sa-ink:#cbd6ea;
  --sa-line:rgba(216,178,106,.18); --sa-line2:rgba(216,178,106,.09);
  --sa-panel:rgba(9,13,30,.46); --sa-panel2:rgba(9,13,26,.92);
  --sa-blue:#68b2e8; --sa-violet:#aa84d6; --sa-ok:#7ec8a9;
  --gold:var(--sa-gold); --gold2:var(--sa-gold2); --txt:var(--sa-txt);
  --muted:var(--sa-muted); --dim:var(--sa-dim); --ink:var(--sa-ink);
  --line:var(--sa-line); --line2:var(--sa-line2); --panel:var(--sa-panel);
  --panel2:var(--sa-panel2); --blue:var(--sa-blue); --violet:var(--sa-violet);
  --ok:var(--sa-ok);
  position:relative; width:100%; margin:0 auto;
  font:14px/1.6 "Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  color:var(--sa-txt); -webkit-font-smoothing:antialiased;
}
.sun-atlas *{ box-sizing:border-box; }
.sun-atlas button,.sun-atlas input,.sun-atlas select{ font-family:inherit; }
.sun-atlas button{ cursor:pointer; }
.sun-atlas :focus-visible{ outline:2px solid var(--sa-gold); outline-offset:2px; }

/* ---------- 顶部：实时读数 + 坐标 ---------- */
.sun-head{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  flex-wrap:wrap; margin:0 0 14px; padding:0 2px 12px;
  border-bottom:1px solid var(--sa-line2);
}
.sun-live{ display:flex; align-items:center; gap:9px;
  font:11px/1.4 ui-monospace,Menlo,Consolas,monospace; color:var(--sa-muted); }
.sun-live b{ color:var(--sa-gold2); font-weight:500; }
.sun-atlas .pulse{ width:7px; height:7px; border-radius:50%; flex:none;
  background:var(--sa-ok); box-shadow:0 0 0 0 rgba(126,200,169,.6);
  animation:sunPulse 2.4s infinite; }
@keyframes sunPulse{ 0%{box-shadow:0 0 0 0 rgba(126,200,169,.55)}
  70%{box-shadow:0 0 0 9px rgba(126,200,169,0)} 100%{box-shadow:0 0 0 0 rgba(126,200,169,0)} }
.sun-coord{ display:flex; gap:16px; flex-wrap:wrap;
  font:10.5px ui-monospace,Menlo,Consolas,monospace; color:var(--sa-muted); }
.sun-coord b{ color:var(--sa-gold2); font-weight:500; }

/* ---------- 卡片：细金线分区，半透明底，与主站星空融合 ---------- */
.sun-card{
  position:relative; padding:14px 16px 16px; border-radius:14px;
  border:1px solid var(--sa-line2);
  background:linear-gradient(160deg,rgba(20,24,64,.34),rgba(8,12,38,.24));
  box-shadow:0 18px 48px rgba(3,5,22,.22);
  text-shadow:0 1px 5px rgba(0,0,0,.72);
}
.sun-card::before{ content:""; position:absolute; top:-1px; left:16px; width:64px; height:1px;
  background:linear-gradient(90deg,var(--sa-gold),transparent); }
.sun-atlas .ph{ display:flex; align-items:baseline; gap:10px; margin:0 0 12px; }
.sun-atlas .ph .num{ font:10px ui-monospace,Menlo,Consolas,monospace;
  color:var(--sa-gold); letter-spacing:1px; opacity:.85; }
.sun-atlas .ph .t{ font-size:14px; font-weight:600; letter-spacing:1.4px; color:#fff8ea; }
.sun-atlas .ph .en{ margin-left:auto; font:9.5px ui-monospace,Menlo,monospace;
  color:#c0cbe0; letter-spacing:1.6px; }

/* ---------- 01 出生数据 / 快捷按钮 ---------- */
.sun-quick{ display:flex; gap:8px; margin-bottom:12px; }
.sun-atlas .qbtn{ flex:1; min-height:44px; border-radius:9px; border:1px solid var(--sa-line);
  background:rgba(216,178,106,.06); color:var(--sa-gold2); font-size:12px; transition:.16s; }
.sun-atlas .qbtn:hover{ background:rgba(216,178,106,.16); border-color:var(--sa-gold); }
.sun-atlas .qbtn.on{ background:rgba(216,178,106,.16); border-color:var(--sa-gold); }
.sun-trip{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:9px; }
.sun-trip .field:last-child{ grid-column:1 / -1; display:flex; align-items:center; gap:10px; }
.sun-trip .field:last-child label{ margin:0; white-space:nowrap; }
.sun-trip .field:last-child .ipt{ width:90px; }
.sun-region{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.sun-region select:nth-child(3){ grid-column:1 / -1; }
.sun-atlas .field label{ display:block; font-size:10.5px; color:var(--sa-ink);
  letter-spacing:.6px; margin-bottom:4px; white-space:nowrap; }
.sun-atlas .ipt{ width:100%; min-width:0; min-height:40px; padding:0 9px; border-radius:8px;
  color:var(--sa-txt); font-size:12.5px; background:rgba(6,10,22,.62);
  border:1px solid rgba(216,178,106,.20); outline:none; color-scheme:dark; transition:.16s; }
.sun-atlas .ipt:hover{ border-color:rgba(216,178,106,.40); }
.sun-atlas .ipt:focus{ border-color:var(--sa-gold); box-shadow:0 0 0 3px rgba(216,178,106,.10); }
.sun-atlas select.ipt{ appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,var(--sa-gold) 50%),
                   linear-gradient(135deg,var(--sa-gold) 50%,transparent 50%);
  background-position:calc(100% - 14px) 18px,calc(100% - 9px) 18px;
  background-size:5px 5px; background-repeat:no-repeat; }
.sun-atlas .dst{ margin:2px 0 8px; padding:6px 10px; border-radius:8px;
  font-size:10.5px; line-height:1.5; color:var(--sa-gold2);
  background:rgba(216,178,106,.10); border:1px solid rgba(216,178,106,.26); }
.sun-atlas .dst[hidden]{ display:none; }

/* ---------- 02 此刻星盘读数 ---------- */
.sun-atlas .sa-hero{ display:flex; align-items:center; gap:12px; padding:10px 12px; margin-bottom:11px;
  border-radius:10px; background:linear-gradient(120deg,rgba(216,178,106,.12),rgba(216,178,106,.01)); }
.sun-atlas .sa-hero .gl{ width:44px; height:44px; flex:none; display:grid; place-items:center;
  font-size:28px; color:var(--sa-gold2); text-shadow:0 0 20px rgba(216,178,106,.55); }
.sun-atlas .sa-hero .lbl{ font:9.5px ui-monospace,Menlo,monospace; color:#d6dfee; letter-spacing:1.4px; }
.sun-atlas .sa-hero .nm{ font-size:20px; font-weight:600; letter-spacing:1px; margin:1px 0 0;
  color:#ffe6ad; text-shadow:0 0 14px rgba(216,178,106,.35); }
.sun-atlas .sa-hero .dg{ font:10.5px ui-monospace,Menlo,monospace; color:#d6dfee; }
.sun-atlas .sa-hero .dg b{ color:var(--sa-txt); font-weight:500; }
.sun-atlas .axes{ margin-bottom:11px; padding:9px 10px; border-radius:9px;
  background:rgba(138,125,255,.10); }
.sun-atlas .axes-h{ font:10.5px ui-monospace,Menlo,monospace; letter-spacing:1.4px;
  color:#dfc88f; margin-bottom:7px; }
.sun-atlas .axes-grid{ display:grid; grid-template-columns:1fr 1fr; gap:6px 9px; }
.sun-atlas .ax{ display:flex; flex-direction:column; gap:1px; padding:4px 6px; border-radius:6px;
  cursor:pointer; border:1px solid rgba(180,190,255,.12);
  background:rgba(10,16,38,.32); transition:.16s; }
.sun-atlas .ax:hover{ background:rgba(216,178,106,.08); }
.sun-atlas .ax.on{ background:rgba(216,178,106,.13); border-color:rgba(216,178,106,.45); }
.sun-atlas .ax-t{ font-size:11px; color:#d6dfee; }
.sun-atlas .ax-v{ font:12.5px ui-monospace,Menlo,monospace; color:#ffe6ad; }
.sun-atlas .rdhead,.sun-atlas .rd{ display:grid;
  grid-template-columns:18px 54px 1fr 54px 7px; gap:5px; align-items:center; }
.sun-atlas .rdhead{ padding:0 3px 6px; font:10.5px ui-monospace,Menlo,monospace;
  color:#f0d59b; letter-spacing:.8px; border-bottom:1px solid rgba(216,178,106,.24); margin-bottom:3px; }
.sun-atlas .rdhead span:last-child,.sun-atlas .rdhead span:first-child{ border:0; }
.sun-atlas .rdlist{ display:flex; flex-direction:column; }
.sun-atlas .rd{ min-height:30px; padding:1px 3px; border-radius:5px; cursor:pointer;
  border:1px solid transparent; border-bottom:1px solid rgba(180,190,255,.07); transition:.14s; }
.sun-atlas .rd:hover{ background:rgba(216,178,106,.07); }
.sun-atlas .rd.on{ background:rgba(216,178,106,.13); border-color:rgba(216,178,106,.3); }
.sun-atlas .rd .g{ font-size:13px; color:#fff8ea; text-align:center; }
.sun-atlas .rd .n{ font-size:12.5px; font-weight:500; color:#fff; white-space:nowrap; }
.sun-atlas .rd .s{ font-size:12.5px; font-weight:600; color:#fff; white-space:nowrap; }
.sun-atlas .rd .d{ font:11.5px ui-monospace,Menlo,monospace; color:#ffe6ad; text-align:right; }
.sun-atlas .rd .el{ width:5px; height:5px; border-radius:50%; justify-self:end; }
.sun-atlas .sgsym{ display:inline-block; min-width:16px; margin-right:5px; padding:0 3px;
  border-radius:3px; font:10px/15px "Segoe UI Symbol","Apple Symbols","Noto Sans Symbols 2",serif;
  background:rgba(138,125,255,.22); color:#ded3ff; text-align:center; vertical-align:middle; }
.sun-atlas .rd.na{ opacity:.38; cursor:default; }
.sun-atlas .foot{ margin-top:9px; padding-top:9px; border-top:1px solid var(--sa-line2);
  font:10.5px ui-monospace,Menlo,monospace; color:#d6dfee; line-height:1.7; }
.sun-atlas .foot b{ color:var(--sa-ok); font-weight:500; }

/* ---------- 03 六轴滑杆 / 04 图层 ---------- */
.sun-atlas .srow{ display:flex; align-items:center; gap:8px; margin:2px 0; min-height:32px; }
.sun-atlas .srow label{ width:62px; flex:none; color:var(--sa-ink); font-size:11px; letter-spacing:.6px; }
.sun-atlas .srow input[type=range]{ -webkit-appearance:none; appearance:none; flex:1; min-width:0;
  height:3px; border-radius:3px; outline:none;
  background:linear-gradient(90deg,rgba(216,178,106,.55),rgba(216,178,106,.18)); }
.sun-atlas .srow input[type=range]::-webkit-slider-thumb{ -webkit-appearance:none;
  width:16px; height:16px; border-radius:50%; background:var(--sa-gold); cursor:pointer;
  box-shadow:0 0 0 4px rgba(216,178,106,.12),0 0 10px rgba(216,178,106,.35); }
.sun-atlas .srow input[type=range]::-moz-range-thumb{ width:16px; height:16px; border:0;
  border-radius:50%; background:var(--sa-gold); cursor:pointer; }
.sun-atlas .srow .sval{ width:66px; flex:none; text-align:right;
  font:12px ui-monospace,Menlo,Consolas,monospace; color:var(--sa-gold2); }
.sun-atlas .laygrid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px 4px; }
.sun-atlas .lay{ display:flex; align-items:center; gap:6px; min-height:30px; padding:0 5px;
  background:none; border:0; border-radius:5px; color:var(--sa-muted);
  font-size:11px; text-align:left; transition:.15s; }
.sun-atlas .lay i{ width:6px; height:6px; border-radius:50%; flex:none;
  border:1px solid rgba(216,178,106,.42); transition:.15s; }
.sun-atlas .lay.on{ color:var(--sa-txt); }
.sun-atlas .lay.on i{ background:var(--sa-gold); border-color:var(--sa-gold);
  box-shadow:0 0 7px rgba(216,178,106,.65); }
.sun-atlas .lay:hover{ background:rgba(216,178,106,.07); }
.sun-atlas .layfoot{ display:flex; align-items:center; justify-content:space-between;
  margin-top:9px; padding-top:9px; border-top:1px solid var(--sa-line2); }
.sun-atlas .lftxt{ font-size:10.5px; color:var(--sa-muted); }
.sun-atlas .sw{ width:42px; height:22px; flex:none; border-radius:999px; position:relative;
  border:1px solid rgba(216,178,106,.35); background:rgba(4,8,18,.6); transition:.18s; }
.sun-atlas .sw i{ position:absolute; top:2px; left:2px; width:16px; height:16px;
  border-radius:50%; background:var(--sa-muted); transition:.18s; }
.sun-atlas .sw.on{ background:rgba(216,178,106,.20); border-color:var(--sa-gold); }
.sun-atlas .sw.on i{ left:22px; background:var(--sa-gold); box-shadow:0 0 8px rgba(216,178,106,.6); }

/* ---------- 星图舞台与底部控制条 ---------- */
.sun-stage{ position:relative; min-width:0; border-radius:18px; overflow:hidden;
  border:0; background:transparent; }
.sun-atlas .sun-canvas{ display:block; width:100%; height:100%; min-height:420px;
  background:transparent; position:absolute; inset:0; z-index:0;
  touch-action:pan-y; cursor:grab; }
.sun-atlas .sun-canvas:active{ cursor:grabbing; }
.sun-hint{ position:absolute; left:50%; transform:translateX(-50%); bottom:86px; z-index:2;
  font:11px ui-monospace,Menlo,monospace; color:rgba(190,200,224,.82); letter-spacing:.6px;
  white-space:nowrap; pointer-events:none; text-align:center; text-shadow:0 1px 8px rgba(0,0,0,.9); }
.sun-dock{ position:absolute; left:50%; transform:translateX(-50%); bottom:18px; z-index:3;
  display:flex; align-items:center; gap:12px; padding:9px 12px; border-radius:999px;
  background:rgba(9,13,26,.88); border:1px solid var(--sa-line);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  box-shadow:0 16px 46px rgba(0,0,0,.5); max-width:calc(100% - 24px); }
.sun-atlas .zbtn{ width:44px; height:44px; flex:none; border-radius:50%;
  border:1px solid var(--sa-line); background:rgba(216,178,106,.07);
  color:var(--sa-gold2); font-size:20px; line-height:1; transition:.16s; }
.sun-atlas .zbtn:hover{ background:rgba(216,178,106,.20); border-color:var(--sa-gold); }
.sun-zmeta{ display:flex; flex-direction:column; align-items:center; gap:3px; min-width:132px; }
.sun-zmeta .lab{ font:9.5px ui-monospace,Menlo,monospace; color:var(--sa-dim); letter-spacing:1px; }
.sun-zmeta .val{ font:12px ui-monospace,Menlo,monospace; color:var(--sa-gold2); }
.sun-atlas .s-zoom{ width:132px; height:4px; -webkit-appearance:none; appearance:none;
  border-radius:3px; background:linear-gradient(90deg,rgba(216,178,106,.65),rgba(216,178,106,.16)); outline:none; }
.sun-atlas .s-zoom::-webkit-slider-thumb{ -webkit-appearance:none; width:18px; height:18px;
  border-radius:50%; background:var(--sa-gold); border:2px solid #121638; cursor:pointer;
  box-shadow:0 0 0 4px rgba(216,178,106,.14); }
.sun-atlas .s-zoom::-moz-range-thumb{ width:18px; height:18px; border:2px solid #121638;
  border-radius:50%; background:var(--sa-gold); cursor:pointer; }
.sun-atlas .dsep{ width:1px; height:26px; background:var(--sa-line); flex:none; }
.sun-atlas .dbtn{ min-height:44px; padding:8px 14px; border-radius:999px;
  border:1px solid var(--sa-line); background:transparent; color:var(--sa-muted);
  font-size:11.5px; white-space:nowrap; transition:.16s; }
.sun-atlas .dbtn:hover{ color:var(--sa-txt); border-color:rgba(216,178,106,.45); }
.sun-atlas .dbtn.on{ background:rgba(216,178,106,.15); border-color:var(--sa-gold); color:var(--sa-gold2); }
.sun-credit{ margin-top:12px; text-align:right; font:9.5px ui-monospace,Menlo,monospace;
  color:var(--sa-dim); line-height:1.9; }
.sun-credit b{ color:var(--sa-muted); font-weight:500; }
.sun-formnote{ margin:0 0 12px; font-size:11.5px; line-height:1.7; color:var(--sa-muted); }

/* ---------- 星体档案（覆盖在舞台内，不遮挡主站导航） ---------- */
.sun-detail{ position:absolute; inset:0; z-index:6; display:flex; flex-direction:column;
  background:linear-gradient(160deg,rgba(7,11,36,.97),rgba(10,14,40,.97)); }
.sun-detail[hidden]{ display:none; }
.sun-dtop{ flex:none; display:flex; align-items:center; gap:12px; padding:10px 16px;
  border-bottom:1px solid var(--sa-line); }
.sun-atlas .dback{ min-height:44px; padding:0 14px; border-radius:9px;
  border:1px solid rgba(216,178,106,.4); background:rgba(216,178,106,.09);
  color:var(--sa-gold2); font-size:12.5px; white-space:nowrap; }
.sun-dtitle{ font-size:13px; color:var(--sa-muted); letter-spacing:1px; }
.sun-dnav{ margin-left:auto; display:flex; align-items:center; gap:8px; }
.sun-dnav button{ min-width:44px; min-height:44px; border-radius:9px; border:1px solid var(--sa-line);
  background:rgba(255,255,255,.03); color:var(--sa-txt); font-size:18px; }
.sun-didx{ font:11px ui-monospace,Menlo,monospace; color:var(--sa-muted); min-width:62px; text-align:center; }
.sun-dscroll{ flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:18px 18px 40px; }
.sun-dwrap{ max-width:900px; margin:0 auto; display:flex; flex-direction:column; gap:14px; }
.sun-atlas .dhero{ display:grid; grid-template-columns:120px 1fr; gap:20px; align-items:center;
  padding:18px 20px; border-radius:14px; border:1px solid rgba(216,178,106,.24);
  background:linear-gradient(120deg,rgba(216,178,106,.10),rgba(90,120,190,.06)); }
.sun-atlas .dglyph{ font-size:72px; line-height:1; text-align:center; color:var(--sa-gold2);
  text-shadow:0 0 30px rgba(216,178,106,.48); }
.sun-atlas .dhero h2{ margin:0; font:600 22px/1.3 "Noto Serif SC","Songti SC",serif; color:var(--sa-gold2); }
.sun-atlas .den{ font:11px Georgia,serif; letter-spacing:2px; color:var(--sa-muted); margin:4px 0 8px; }
.sun-atlas .dbadge{ display:inline-flex; align-items:center; gap:8px; padding:6px 12px;
  border-radius:999px; font-size:12px; border:1px solid rgba(216,178,106,.45);
  color:var(--sa-gold2); background:rgba(216,178,106,.10); margin-bottom:10px; }
.sun-atlas .dbadge.rx{ border-color:rgba(176,125,255,.55); color:#d6bcff; background:rgba(138,125,255,.12); }
.sun-atlas .dbadge.st{ border-color:rgba(110,195,244,.55); color:#b8e0ff; background:rgba(110,195,244,.12); }
.sun-atlas .dtag{ font-size:14px; color:var(--sa-txt); line-height:1.7; }
.sun-atlas .dkw{ display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.sun-atlas .dkw span{ padding:4px 10px; border-radius:999px; border:1px solid var(--sa-line);
  font-size:11px; color:var(--sa-muted); }
.sun-atlas .dcard{ padding:14px 16px; border-radius:12px; border:1px solid var(--sa-line);
  background:linear-gradient(160deg,rgba(255,255,255,.028),rgba(255,255,255,0)); }
.sun-atlas .dcard h3{ margin:0 0 12px; font-size:14px; color:var(--sa-gold2); letter-spacing:1px;
  display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.sun-atlas .dcard h3 em{ font:10px ui-monospace,Menlo,monospace; color:var(--sa-dim);
  font-style:normal; letter-spacing:1.5px; }
.sun-atlas .dgrid,.sun-atlas .dfields{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.sun-atlas .dcell,.sun-atlas .dfield{ padding:10px 12px; border-radius:9px;
  background:rgba(4,8,18,.5); border:1px solid var(--sa-line2); }
.sun-atlas .dcell .k,.sun-atlas .dfield .t{ font-size:10.5px; color:var(--sa-muted); letter-spacing:.5px; }
.sun-atlas .dcell .v{ font:13px ui-monospace,Menlo,monospace; color:var(--sa-txt);
  margin-top:3px; word-break:break-all; }
.sun-atlas .dcell .v.hi{ color:var(--sa-gold2); }
.sun-atlas .dfield .b{ font-size:13px; line-height:1.8; color:var(--sa-txt); }
.sun-atlas .dprose{ font-size:13.5px; line-height:1.9; color:var(--sa-txt); }
.sun-atlas .dprose.dim{ color:var(--sa-muted); font-size:12.5px; }
.sun-atlas .dterm{ display:grid; grid-template-columns:110px 1fr; gap:8px 14px;
  font-size:13px; line-height:1.8; }
.sun-atlas .dterm dt{ color:var(--sa-muted); }
.sun-atlas .dterm dd{ margin:0; color:var(--sa-txt); }
.sun-atlas .dasp{ display:flex; flex-direction:column; gap:8px; }
.sun-atlas .dasprow{ display:grid; grid-template-columns:74px 1fr auto; gap:12px; align-items:center;
  padding:9px 12px; border-radius:9px; background:rgba(4,8,18,.5); border:1px solid var(--sa-line2); }
.sun-atlas .dasprow .a{ font:13px ui-monospace,Menlo,monospace; color:var(--sa-gold2); }
.sun-atlas .dasprow .m{ font-size:12.5px; color:var(--sa-muted); line-height:1.6; }
.sun-atlas .dasprow .o{ font:11px ui-monospace,Menlo,monospace; color:var(--sa-dim); white-space:nowrap; }
.sun-atlas .dquote{ padding:12px 14px; border-left:2px solid var(--sa-gold);
  border-radius:0 9px 9px 0; background:rgba(216,178,106,.06);
  font-size:13px; line-height:1.9; color:var(--sa-txt); }
.sun-atlas .dquote .src{ display:block; margin-top:7px;
  font:10.5px ui-monospace,Menlo,monospace; color:var(--sa-dim); }
.sun-atlas .dlist{ margin:8px 0 0; padding-left:20px; font-size:13px; line-height:1.9; color:var(--sa-muted); }
.sun-atlas .dfoot{ font-size:11px; line-height:1.9; color:var(--sa-dim); }

/* ---------- 布局：首页三栏（原型：左控件 / 中星图 / 右读数） ---------- */
.sun-atlas[data-sun="home"] .sun-grid{
  display:grid; grid-template-columns:300px minmax(0,1fr) 320px; gap:20px; align-items:start;
}
.sun-atlas[data-sun="home"] .sun-left{ display:flex; flex-direction:column; gap:16px; min-width:0; }
.sun-atlas[data-sun="home"] .sun-stage{ grid-column:2; grid-row:1; height:760px; }
.sun-atlas[data-sun="home"] .sun-right{ grid-column:3; grid-row:1; min-width:0; }
.sun-atlas[data-sun="home"] .sun-left{ grid-column:1; grid-row:1; }
.sun-atlas[data-sun="home"] .sun-timeline .srow{ min-height:34px; }

/* ---------- 布局：星盘页（容器较窄）星图在上，三卡并排在下 ---------- */
.sun-atlas[data-sun="chart"] .sun-grid{
  display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.9fr) minmax(0,1.1fr);
  gap:14px; align-items:start;
}
.sun-atlas[data-sun="chart"] .sun-stage{ grid-column:1 / -1; grid-row:1; height:560px; min-height:0; }
.sun-atlas[data-sun="chart"] .sun-left,
.sun-atlas[data-sun="chart"] .sun-right{ display:contents; }
.sun-atlas[data-sun="chart"] .sun-card{ padding:12px 13px 14px; }
.sun-atlas[data-sun="chart"] .sun-credit{ display:none; }

/* ---------- 移动端控制台：默认收起，按标签切换，保证首屏看全 ---------- */
.sun-console,.sun-tabs,.sun-fold{ display:none; }
@media (max-width:1200px){
  .sun-atlas[data-sun="home"] .sun-grid{ grid-template-columns:270px minmax(0,1fr) 290px; gap:14px; }
  .sun-atlas[data-sun="chart"] .sun-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sun-atlas[data-sun="chart"] .sun-layers{ grid-column:1 / -1; }
}
@media (max-width:900px){
  .sun-console{ display:block; margin:0 0 12px; }
  .sun-atlas[data-sun="home"] .sun-grid,
  .sun-atlas[data-sun="chart"] .sun-grid{
    display:flex; flex-direction:column; gap:14px; align-items:stretch; }
  .sun-atlas[data-sun="home"] .sun-stage,
  .sun-atlas[data-sun="chart"] .sun-stage{ grid-column:auto!important; grid-row:auto!important;
    order:0; min-height:0; width:100%; height:min(52vh,420px); }
  .sun-atlas .sun-canvas{ min-height:0; }
  .sun-atlas .sun-left,.sun-atlas .sun-right,
  .sun-atlas[data-sun="chart"] .sun-left,
  .sun-atlas[data-sun="chart"] .sun-right{
    display:flex; flex-direction:column; gap:14px; min-width:0; }
  .sun-atlas .sun-left{ order:1; }
  .sun-atlas .sun-right{ order:2; }
  .sun-atlas .sun-card{ display:none; }
  .sun-atlas.open .sun-card.on{ display:block; }
  .sun-head{ margin-bottom:10px; flex-direction:column; align-items:flex-start; gap:6px; }
  .sun-live{ flex-wrap:wrap; font-size:9.5px; gap:6px; }
  .sun-coord{ font-size:10px; gap:10px; }
  .sun-fold{ display:flex; align-items:center; justify-content:space-between; width:100%;
    min-height:52px; padding:0 16px; border-radius:12px; border:1px solid var(--sa-line);
    background:rgba(216,178,106,.07); color:var(--sa-gold2); font-size:13px; letter-spacing:.5px; }
  .sun-fold .sub{ font:10px ui-monospace,Menlo,monospace; color:var(--sa-dim); }
  .sun-atlas.open .sun-tabs{ display:flex; gap:6px; margin:10px 0 0; }
  .sun-tabs button{ flex:1; min-height:46px; border-radius:9px; border:1px solid var(--sa-line);
    background:rgba(4,8,16,.5); color:var(--sa-muted); font-size:12px; }
  .sun-tabs button.on{ background:rgba(216,178,106,.16); border-color:var(--sa-gold); color:var(--sa-gold2); }
  .sun-atlas .srow{ min-height:48px; margin:4px 0; }
  .sun-atlas .srow label{ width:66px; font-size:12.5px; }
  .sun-atlas .srow input[type=range]{ height:4px; }
  .sun-atlas .srow input[type=range]::-webkit-slider-thumb{ width:24px; height:24px; }
  .sun-atlas .srow input[type=range]::-moz-range-thumb{ width:24px; height:24px; }
  .sun-atlas .srow .sval{ width:76px; font-size:12.5px; }
  .sun-atlas .lay{ min-height:44px; font-size:12.5px; }
  .sun-atlas .rd{ min-height:42px; }
  .sun-atlas .rd .n,.sun-atlas .rd .s{ font-size:13px; }
  .sun-atlas .qbtn{ min-height:48px; font-size:12.5px; }
  .sun-atlas .ipt{ min-height:46px; font-size:14px; }
  .sun-dock{ bottom:88px; gap:4px; padding:5px 7px; border-radius:16px; flex-wrap:nowrap;
    justify-content:center; }
  .sun-atlas .zbtn{ width:38px; height:38px; font-size:18px; }
  .sun-zmeta{ min-width:78px; }
  .sun-atlas .s-zoom{ width:78px; }
  .sun-atlas .dsep{ display:none; }
  .sun-atlas .dbtn{ min-height:40px; padding:6px 7px; font-size:10px; }
  .sun-hint{ bottom:140px; width:94%; white-space:normal; font-size:9px; line-height:1.5; }
  .sun-credit{ display:none; }
  .sun-atlas .dhero{ grid-template-columns:80px 1fr; gap:12px; padding:14px; }
  .sun-atlas .dglyph{ font-size:52px; }
  .sun-atlas .dgrid,.sun-atlas .dfields{ grid-template-columns:1fr; }
  .sun-atlas .dasprow{ grid-template-columns:66px 1fr; gap:6px; }
  .sun-atlas .dasprow .o{ grid-column:2; text-align:left; }
  .sun-atlas .dterm{ grid-template-columns:88px 1fr; }
  .sun-dtitle{ display:none; }
}
@media (max-width:420px){
  .sun-atlas .sun-stage{ height:min(44vh,360px); }
  .sun-atlas .dbtn{ padding:6px 5px; font-size:9.5px; }
  .sun-atlas .laygrid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sun-atlas .rdhead,.sun-atlas .rd{ grid-template-columns:16px 48px 1fr 48px 6px; gap:4px; }
  .sun-atlas .sun-trip{ grid-template-columns:1fr 1fr; }
  .sun-atlas .sun-trip .field:last-child{ grid-column:1 / -1; }
  .sun-live{ font-size:10px; }
}
@media (prefers-reduced-motion:reduce){
  .sun-atlas *{ animation-duration:.01ms!important; transition-duration:.01ms!important; }
}

/* ==================================================================
   主站整合：解除旧地心布局对容器的限制，让日心星图用满可用宽度。
   放在最后加载，覆盖 home-atlas.css 的历史三列网格与隐藏视图规则。
   ================================================================== */
#view-home .section.sky-stage .sun-atlas{ max-width:var(--wide,1760px); margin:0 auto; }
.sun-atlas[data-sun="home"] .sun-grid{
  grid-template-columns:minmax(0,280px) minmax(0,1fr) minmax(0,300px); gap:16px;
}
#view-xingpan .xp-layout.xp-wrap{
  grid-template-columns:minmax(260px,300px) minmax(0,1fr); gap:20px;
}
#view-xingpan .xp-layout.xp-wrap > .xp-result{ grid-column:1 / -1; }
#view-xingpan .xp-atlas-col .sun-atlas{ width:100%; }
#view-xingpan .xp-atlas-col .xp-atlas-head{ margin-bottom:14px; }
@media (max-width:1500px){
  #view-xingpan .xp-layout.xp-wrap{ grid-template-columns:minmax(240px,280px) minmax(0,1fr); gap:16px; }
  .sun-atlas[data-sun="chart"] .sun-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sun-atlas[data-sun="chart"] .sun-layers{ grid-column:1 / -1; }
}
@media (max-width:900px){
  #view-xingpan .xp-layout.xp-wrap{ grid-template-columns:minmax(0,1fr); }
  #view-home .section.sky-stage .sun-atlas{ max-width:none; }
  .sun-atlas[data-sun="home"] .sun-grid,
  .sun-atlas[data-sun="chart"] .sun-grid{
    display:flex; flex-direction:column; gap:14px; align-items:stretch; }
  .sun-atlas .sun-stage{ width:100%; }
}
