/* ============================================================
   首页专属样式 — 星球 Hero / 议会叙事 / 资产看板 / 模块星图
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
  width: 100%;
}
@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
}

#planet-stage {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  max-height: 74vh;
  touch-action: pan-y;
}
@media (max-width: 980px) { #planet-stage { max-width: 430px; order: -1; } }
#planet-stage canvas { display: block; border-radius: 24px; }

/* CSS 降级星球 */
.css-planet { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.css-planet-sphere {
  width: min(52vw, 340px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.35), transparent 42%),
    radial-gradient(circle at 60% 65%, #2E6B4F 0 18%, transparent 19%),
    radial-gradient(circle at 30% 55%, #3A7A58 0 14%, transparent 15%),
    radial-gradient(circle at 70% 35%, #2E6B4F 0 12%, transparent 13%),
    radial-gradient(circle at 50% 50%, #1B4A72, #0E2A4A 70%);
  box-shadow: 0 0 90px rgba(90,155,217,.35), inset -30px -24px 70px rgba(0,0,0,.65),
              inset 12px 10px 40px rgba(232,192,125,.15);
  animation: cssPlanetSpin 40s linear infinite;
}
@keyframes cssPlanetSpin { to { transform: rotate(360deg); } }
.css-planet-ring {
  position: absolute; width: min(72vw, 480px); aspect-ratio: 1;
  border-radius: 50%; border: 1px solid rgba(232,192,125,.3);
  transform: rotateX(72deg);
}

.hero-copy .kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .5em; color: var(--gold); margin-bottom: 26px;
}
.hero-copy .kicker::before {
  content: ""; width: 46px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 6.4vw, 92px);
  line-height: 1.04;
  margin-bottom: 8px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(115deg, #F6DCA8 15%, #D9A45B 55%, #B97F35 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-networth {
  display: flex; align-items: baseline; gap: 16px;
  margin: 26px 0 8px; flex-wrap: wrap;
}
.hero-networth .num {
  font-family: var(--font-display);
  font-size: clamp(46px, 5vw, 72px);
  line-height: 1; color: var(--ink);
  text-shadow: 0 0 40px rgba(232,192,125,.25);
}
.hero-networth .delta { font-size: 13px; }
.hero-sub { color: var(--ink-dim); max-width: 460px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-orbit-note {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 1200px) { .hero-orbit-note { display: none; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .4em; color: var(--ink-faint);
}
.scroll-hint i {
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: hintDrop 1.8s var(--ease-out) infinite;
}
@keyframes hintDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 跑马灯 ---------- */
.marquee {
  position: relative; z-index: 2;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden; padding: 15px 0;
  background: rgba(6,8,15,.5); backdrop-filter: blur(6px);
}
.marquee-track {
  display: flex; gap: 56px; width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .3em; color: var(--ink-faint); white-space: nowrap;
}
.marquee-track b { color: var(--gold); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 议会叙事 ---------- */
.council { position: relative; }
.council-card {
  max-width: 760px; margin: 0 auto;
  text-align: center; padding: 52px 44px;
}
.council-icon {
  display: inline-grid; place-items: center;
  width: 74px; height: 74px; margin-bottom: 20px;
  font-size: 34px; border-radius: 50%;
  border: 1px solid var(--hairline-bright);
  background: rgba(232,192,125,.06);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232,192,125,.25); }
  50% { transform: scale(1.05); box-shadow: 0 0 30px 4px rgba(232,192,125,.18); }
}
.council-name {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.council-message {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 29px);
  line-height: 1.6; min-height: 3.2em;
  transition: opacity .5s, transform .5s var(--ease-out), filter .5s;
}
.council-message.fading { opacity: 0; transform: translateY(10px); filter: blur(4px); }
.council-prefix {
  margin-top: 22px; font-size: 12.5px; color: var(--ink-faint); letter-spacing: .12em;
}
.council-card.mood-excited { border-color: rgba(232,192,125,.55); }
.council-card.mood-worried { border-color: rgba(90,155,217,.5); }
.council-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.council-dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-faint); transition: all .4s;
}
.council-dots i.on { background: var(--gold); box-shadow: 0 0 8px var(--gold); transform: scale(1.3); }

/* ---------- 资产卡片 ---------- */
.asset-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .asset-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .asset-cards { grid-template-columns: 1fr; } }
.asset-card {
  display: block; padding: 28px 26px 24px;
  position: relative;
}
.asset-card .ic {
  font-size: 26px; margin-bottom: 16px;
  display: inline-block;
  transition: transform .5s var(--ease-spring);
}
.asset-card:hover .ic { transform: translateY(-4px) scale(1.15) rotate(-6deg); }
.asset-card .name { font-size: 13px; color: var(--ink-dim); letter-spacing: .1em; margin-bottom: 8px; }
.asset-card .val {
  font-family: var(--font-display); font-size: 33px; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.asset-card .sub { margin-top: 10px; font-size: 12px; color: var(--ink-faint); }
.asset-card.main {
  background: linear-gradient(145deg, rgba(232,192,125,.13), rgba(16,24,48,.55) 55%);
  border-color: var(--hairline-bright);
}
.asset-card.main .val {
  background: linear-gradient(115deg, #F6DCA8, #D9A45B);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.asset-card .go {
  position: absolute; top: 22px; right: 22px;
  color: var(--ink-faint); font-size: 15px;
  transition: transform .4s var(--ease-out), color .3s;
}
.asset-card:hover .go { transform: translate(4px, -4px); color: var(--gold); }

/* ---------- 看板区（环形图 + 里程碑） ---------- */
.dash-grid {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 22px; align-items: stretch;
}
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }

.donut-wrap { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; justify-content: center; }
.donut { position: relative; width: 210px; height: 210px; flex: none; }
.donut svg { transform: rotate(-90deg); }
.donut circle { fill: none; stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease-out); }
.donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.donut-center .t { font-family: var(--font-mono); font-size: 10px; letter-spacing: .3em; color: var(--ink-faint); }
.donut-center .v { font-family: var(--font-display); font-size: 30px; margin-top: 4px; }
.legend { display: flex; flex-direction: column; gap: 14px; min-width: 170px; }
.legend-item { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.legend-item .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend-item .p { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }

.milestone-panel { display: flex; flex-direction: column; justify-content: center; }
.milestone-heads {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; font-size: 15px;
}
.milestone-heads .node { display: flex; align-items: center; gap: 10px; }
.milestone-heads .node .ic { font-size: 24px; }
.milestone-track {
  position: relative; height: 10px; border-radius: 8px;
  background: rgba(237,231,217,.08); overflow: visible;
}
.milestone-fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #8A6430, #E8C07D, #F6DCA8);
  box-shadow: 0 0 18px rgba(232,192,125,.45);
  transition: width 1.8s var(--ease-out);
}
.milestone-fill::after {
  content: ""; position: absolute; right: -5px; top: 50%;
  width: 12px; height: 12px; border-radius: 50%;
  background: #F6DCA8; transform: translateY(-50%);
  box-shadow: 0 0 14px 3px rgba(246,220,168,.7);
}
.milestone-meta {
  display: flex; justify-content: space-between;
  margin-top: 14px; font-family: var(--font-mono);
  font-size: 12px; color: var(--ink-dim);
}
.milestone-eta { margin-top: 22px; font-size: 13.5px; color: var(--ink-dim); }
.milestone-eta b { color: var(--gold); font-weight: 500; }

/* ---------- 里程碑星图阶梯 ---------- */
.ms-ladder {
  display: flex; align-items: flex-start;
  margin-top: 34px; position: relative;
  overflow-x: auto; padding: 6px 4px 12px;
  scrollbar-width: none;
}
.ms-ladder::-webkit-scrollbar { display: none; }
.ms-ladder::before {
  content: ""; position: absolute; top: 26px; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(232,192,125,.4), rgba(232,192,125,.12));
}
.ms-node {
  position: relative; flex: 1; min-width: 76px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-align: center;
}
.ms-node .dot {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 18px; position: relative; z-index: 1;
  background: var(--panel-solid);
  border: 1px solid var(--hairline);
  filter: grayscale(.8) brightness(.55);
  transition: all .5s var(--ease-out);
}
.ms-node .nm { font-size: 12px; color: var(--ink-faint); letter-spacing: .08em; }
.ms-node .lv { font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); opacity: .7; }
.ms-node.done .dot {
  filter: none;
  border-color: var(--hairline-bright);
  background: radial-gradient(circle at 35% 30%, rgba(246,220,168,.25), rgba(16,24,48,.9) 70%);
  box-shadow: 0 0 14px rgba(232,192,125,.3);
}
.ms-node.done .nm { color: var(--gold); }
.ms-node.done .lv { color: var(--ink-dim); }
.ms-node.now .dot {
  filter: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 0 rgba(232,192,125,.5);
  animation: nowPulse 2.2s var(--ease-out) infinite;
  background: radial-gradient(circle at 35% 30%, rgba(246,220,168,.4), rgba(16,24,48,.95) 70%);
}
.ms-node.now .nm { color: var(--gold); font-weight: 500; }
.ms-node.now::after {
  content: "当前"; position: absolute; top: -16px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: .3em; color: var(--gold);
}
@keyframes nowPulse {
  0% { box-shadow: 0 0 0 0 rgba(232,192,125,.45); }
  70% { box-shadow: 0 0 0 14px rgba(232,192,125,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,192,125,0); }
}

/* ---------- 净值曲线 ---------- */
.networth-panel { margin-top: 22px; }
.networth-panel svg { width: 100%; height: 220px; display: block; }
.networth-panel .nw-line {
  fill: none; stroke: url(#nwGrad); stroke-width: 2;
  stroke-dasharray: 1600; stroke-dashoffset: 1600;
  transition: stroke-dashoffset 2.2s var(--ease-out);
}
.networth-panel.in-view .nw-line { stroke-dashoffset: 0; }
.networth-panel .nw-area { opacity: 0; transition: opacity 1.2s .5s; }
.networth-panel.in-view .nw-area { opacity: 1; }

/* ---------- 模块星图 ---------- */
.module-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .module-map { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .module-map { grid-template-columns: 1fr; } }
.module-tile {
  position: relative; display: block;
  padding: 30px 28px; min-height: 168px;
}
.module-tile .no {
  position: absolute; top: 20px; right: 24px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-faint); letter-spacing: .2em;
}
.module-tile .ic { font-size: 30px; display: block; margin-bottom: 18px; transition: transform .5s var(--ease-spring); }
.module-tile:hover .ic { transform: scale(1.2) rotate(-8deg); }
.module-tile h3 { font-family: var(--font-display); font-size: 21px; margin-bottom: 8px; }
.module-tile p { font-size: 12.5px; color: var(--ink-dim); line-height: 1.6; }
.module-tile .line {
  position: absolute; left: 28px; bottom: 22px;
  width: 30px; height: 1px; background: var(--gold);
  transition: width .5s var(--ease-out);
}
.module-tile:hover .line { width: 64px; }

/* ---------- 首页底部时间入口 ---------- */
.time-entry {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 24px 30px;
}
.time-entry .l { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.time-entry .l .ic { font-size: 22px; }
.time-entry .arrow { color: var(--gold); transition: transform .4s var(--ease-out); }
.time-entry:hover .arrow { transform: translateX(8px); }
