/* ============================================================
   jchen universe — 深空 HUD 主题
   作者：就是老陈（自用）
   ============================================================ */

:root {
  color-scheme: dark;
  --night-0: #020611;
  --night-1: #061128;
  --night-2: #0a1a39;
  --ink: #f4f6ff;
  --muted: #aab6d0;
  --dim: #697996;
  --line: rgba(175, 205, 255, .18);
  --line-bright: rgba(190, 218, 255, .38);
  --glass: rgba(7, 18, 40, .62);
  --purple: #b293ff;
  --blue: #7facff;
  --mint: #65dfb1;
  --gold: #efd889;
  --pink: #e99dc9;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Menlo", "Consolas", monospace;
  --sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  --radius: 4px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--night-0);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---------- 星空 ---------- */
.cosmos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 15% 8%, rgba(42, 74, 168, .28), transparent 62%),
    radial-gradient(900px 620px at 82% 22%, rgba(124, 78, 168, .22), transparent 60%),
    radial-gradient(1000px 800px at 50% 110%, rgba(18, 60, 120, .26), transparent 62%),
    linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 46%, var(--night-2) 100%);
}

.starfield {
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(1.1px 1.1px at 12% 18%, rgba(255,255,255,.85), transparent 100%),
    radial-gradient(1px 1px at 28% 62%, rgba(200,220,255,.7), transparent 100%),
    radial-gradient(1.2px 1.2px at 44% 12%, rgba(255,255,255,.75), transparent 100%),
    radial-gradient(1px 1px at 62% 44%, rgba(190,215,255,.65), transparent 100%),
    radial-gradient(1.3px 1.3px at 76% 78%, rgba(255,255,255,.8), transparent 100%),
    radial-gradient(1px 1px at 88% 26%, rgba(220,235,255,.6), transparent 100%),
    radial-gradient(1px 1px at 8% 84%, rgba(255,255,255,.55), transparent 100%),
    radial-gradient(1px 1px at 36% 88%, rgba(200,220,255,.5), transparent 100%);
  background-size: 260px 260px, 320px 320px, 400px 400px, 480px 480px, 560px 560px, 640px 640px, 720px 720px, 800px 800px;
  opacity: .9;
  animation: drift 240s linear infinite;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-180px, -120px, 0); }
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
}
.nebula-a {
  width: 620px; height: 620px;
  left: -180px; top: 6%;
  background: radial-gradient(circle, rgba(88, 130, 255, .45), transparent 70%);
}
.nebula-b {
  width: 720px; height: 720px;
  right: -220px; bottom: -10%;
  background: radial-gradient(circle, rgba(150, 96, 220, .38), transparent 70%);
}

/* ---------- HUD 外框 ---------- */
.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.corner {
  position: fixed;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-bright);
  z-index: 5;
  pointer-events: none;
}
.corner.tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.corner.br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }

/* ---------- 顶部系统栏 ---------- */
.sysbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 44px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.sys-id {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.sys-mark {
  color: var(--gold);
  font-size: 12px;
}
.sys-id b { font-weight: 500; letter-spacing: .1em; }
.sys-id .sep { color: var(--dim); }
.sys-id .role { color: var(--muted); }

.sys-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.dot-live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.jump-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}
.jump-links a { color: var(--muted); text-decoration: none; }
.jump-links a:hover { color: var(--ink); }

/* ---------- 主舞台 ---------- */
.stage {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 44px 30px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* ---------- 身份区 ---------- */
.identity {
  position: relative;
  padding-top: 10px;
  animation: rise .7s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.avatar-system {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 8px 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.halo {
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 175, 255, .22) 0 46%, transparent 70%);
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(160, 195, 255, .35);
}
.orbit-a { inset: -6px; animation: spin 46s linear infinite; }
.orbit-b { inset: -26px; border-style: dotted; border-color: rgba(160, 195, 255, .2); animation: spin 72s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.avatar-core {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 54px;
  color: #cfe0ff;
  background:
    radial-gradient(circle at 34% 28%, rgba(210, 230, 255, .5), transparent 46%),
    linear-gradient(160deg, #2a4a8c, #101d3d 62%, #0a1428);
  border: 1px solid rgba(190, 218, 255, .45);
  box-shadow: inset 0 0 40px rgba(120, 170, 255, .25), 0 0 50px rgba(70, 120, 220, .28);
  letter-spacing: .05em;
  overflow: hidden;
}

.avatar-core.has-img {
  padding: 0;
  background: #fff;
  border-color: rgba(210, 228, 255, .7);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .9),
    inset 0 -20px 40px rgba(40, 80, 170, .12),
    0 0 0 6px rgba(127, 172, 255, .07),
    0 0 54px rgba(80, 130, 240, .35);
}

.avatar-core.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05);
}

.orbit-label {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .28em;
  color: var(--dim);
  white-space: nowrap;
}

.micro {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dim);
}

.name {
  margin: 4px 0 6px;
  font-family: "HarmonyOS Sans SC", var(--sans);
  font-size: 40px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: .04em;
}
.name .accent { color: var(--gold); }

.bio {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.loc {
  margin: 12px 0 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--dim);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.tag {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 11px;
  color: var(--muted);
  background: rgba(10, 26, 57, .5);
  backdrop-filter: blur(6px);
}
.tag.hot { border-color: rgba(239, 216, 137, .42); color: var(--gold); }

.contacts {
  display: flex;
  gap: 10px;
}
.contact {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
  transition: .2s;
}
.contact:hover { border-color: var(--line-bright); color: var(--ink); }

/* ---------- 星图区 ---------- */
.universe { padding-top: 4px; animation: rise .8s .1s ease both; }

.map-head {
  margin-bottom: 26px;
}
.map-head h2 {
  font-family: "HarmonyOS Sans SC", var(--sans);
  margin: 8px 0 6px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .06em;
}
.map-head p {
  margin: 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
}

.nodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.node {
  position: relative;
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(12, 30, 62, .82), rgba(6, 16, 36, .72));
  backdrop-filter: blur(8px);
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.node::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--blue);
  opacity: .7;
}
.node.mint::before { background: var(--mint); }
.node.gold::before { background: var(--gold); }
.node.purple::before { background: var(--purple); }

.node:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(4, 12, 30, .6);
}

.node-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.node-index { color: var(--blue); }
.node.mint .node-index { color: var(--mint); }
.node.gold .node-index { color: var(--gold); }
.node.purple .node-index { color: var(--purple); }

.node h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .04em;
}
.node p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.node-arrow {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}

/* 中央核 */
.hub {
  position: relative;
  margin: 34px 0 8px;
  height: 130px;
  display: grid;
  place-items: center;
}
.hub-core {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, #eaf2ff 0%, #9cc0ff 34%, rgba(90, 140, 240, .3) 62%, transparent 72%);
  box-shadow: 0 0 40px rgba(140, 180, 255, .55);
}
.hub-ring {
  position: absolute;
  border: 1px solid rgba(160, 195, 255, .18);
  border-radius: 50%;
}
.hub-ring.a { width: 132px; height: 132px; }
.hub-ring.b { width: 232px; height: 232px; border-color: rgba(160, 195, 255, .1); }
.hub-label {
  position: absolute;
  bottom: 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .24em;
  color: var(--dim);
}

/* ---------- 动态 / 任务 ---------- */
.boards {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 18px 22px 22px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}
.panel-head .more { color: var(--muted); text-decoration: none; }
.panel-head .more:hover { color: var(--ink); }

.postline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(175, 205, 255, .12);
  text-decoration: none;
  color: var(--ink);
}
.postline:last-child { border-bottom: 0; }
.postline:hover .t { color: var(--gold); }
.postline .t { font-size: 13px; transition: color .2s; }
.postline .d { font-family: var(--mono); font-size: 10px; color: var(--dim); white-space: nowrap; }

.mission {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(175, 205, 255, .12);
}
.mission:last-child { border-bottom: 0; }
.mission .idx {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  padding-top: 2px;
}
.mission .txt { font-size: 13px; }
.mission .st {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: var(--mint);
  white-space: nowrap;
}

/* ---------- 页脚 ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 14px 44px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--dim);
}

/* ---------- 内容页 ---------- */
.reading {
  max-width: 860px;
  margin: 0 auto;
  padding: 46px 44px 60px;
}
.sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 34px 40px 44px;
}
.sheet h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .03em;
}
.sheet .meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--dim);
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px dashed rgba(175, 205, 255, .16);
}
.sheet .meta .pill {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1px 7px;
  color: var(--muted);
}

.content { font-size: 14px; line-height: 1.95; color: #dde5f7; }
.content h2 {
  font-size: 18px;
  font-weight: 500;
  margin: 34px 0 12px;
  padding-left: 12px;
  border-left: 2px solid var(--blue);
  letter-spacing: .03em;
}
.content h3 { font-size: 15px; font-weight: 500; margin: 26px 0 10px; color: var(--muted); }
.content p { margin: 0 0 16px; }
.content a { color: var(--blue); text-decoration: none; border-bottom: 1px dashed rgba(127, 172, 255, .4); }
.content a:hover { color: var(--ink); }
.content ul, .content ol { padding-left: 22px; margin: 0 0 16px; }
.content li { margin: 6px 0; }
.content blockquote {
  margin: 22px 0;
  padding: 12px 18px;
  border-left: 2px solid var(--purple);
  background: rgba(178, 147, 255, .08);
  color: var(--muted);
}
.content code {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(127, 172, 255, .1);
  border: 1px solid rgba(127, 172, 255, .18);
  padding: 1px 5px;
  border-radius: 2px;
  color: #bcd6ff;
}
.content pre {
  background: rgba(2, 8, 20, .8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 18px 0;
}
.content pre code { background: none; border: 0; padding: 0; font-size: 12.5px; line-height: 1.8; }
.content img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.content hr { border: 0; border-top: 1px dashed rgba(175, 205, 255, .16); margin: 32px 0; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
}
.pager a {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  text-decoration: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .2s, color .2s;
}
.pager a:hover { border-color: var(--line-bright); color: var(--ink); }
.pager b { color: var(--ink); font-weight: 500; font-family: var(--sans); font-size: 13px; }

.yearsec { margin-bottom: 30px; }
.yhead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: .16em;
}
.yhead h3 { margin: 0; font-size: 14px; color: var(--ink); font-weight: 500; letter-spacing: .08em; }
.yhead .ln { flex: 1; height: 1px; background: var(--line); }

.nf {
  text-align: center;
  padding: 80px 20px;
}
.nf .big {
  font-family: var(--mono);
  font-size: 64px;
  letter-spacing: .18em;
  color: rgba(140, 175, 255, .5);
}
.nf p { color: var(--muted); }
.nf a {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 18px;
  border: 1px solid var(--line-bright);
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
}

/* ---------- 启动动效 ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--night-0);
  display: grid;
  place-items: center;
  transition: opacity .7s ease .3s, visibility .7s;
}
.boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-inner { text-align: center; }
.boot-kicker {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .34em;
  color: var(--dim);
  margin-bottom: 14px;
}
.boot-title {
  font-size: 22px;
  letter-spacing: .3em;
  color: var(--ink);
  margin-bottom: 22px;
}
.boot-bar {
  width: 300px;
  height: 2px;
  background: rgba(175, 205, 255, .16);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}
.boot-bar i {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  animation: fill 1.4s ease forwards;
}
@keyframes fill { to { width: 100%; } }
.boot-log {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--dim);
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .stage { grid-template-columns: 1fr; gap: 34px; padding: 30px 24px; }
  .identity { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .tags, .contacts { justify-content: center; }
  .nodes { grid-template-columns: 1fr; }
  .boards { grid-template-columns: 1fr; }
  .sysbar { padding: 16px 20px 12px; }
  .jump-links { display: none; }
  .corner { width: 22px; height: 22px; }
  .sheet { padding: 24px 20px 30px; }
  .reading { padding: 28px 18px 40px; }
  .foot { padding: 12px 20px 18px; }
  .name { font-size: 32px; }
  .map-head h2 { font-size: 22px; }
}

/* ============================================================
   首页单屏模式：整页铺满视口，不出现滚动条
   ============================================================ */
@media (min-width: 981px) {
  body.home,
  body.home .shell {
    height: 100vh;
    overflow: hidden;
  }

  body.home .shell {
    display: flex;
    flex-direction: column;
  }

  body.home .sysbar,
  body.home .foot {
    flex: 0 0 auto;
  }

  body.home .stage {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    align-content: center;
    padding: clamp(10px, 2.4vh, 34px) clamp(24px, 3.4vw, 52px) clamp(6px, 1.6vh, 22px);
    gap: clamp(20px, 3.2vw, 48px);
    grid-template-columns: clamp(230px, 24vw, 320px) minmax(0, 1fr);
  }

  /* 身份区按高度缩放 */
  body.home .identity { padding-top: 0; }
  body.home .avatar-system {
    width: clamp(88px, 17vh, 176px);
    height: clamp(88px, 17vh, 176px);
    margin: 0 0 clamp(10px, 1.8vh, 24px);
  }
  body.home .avatar-core {
    width: clamp(70px, 13.5vh, 140px);
    height: clamp(70px, 13.5vh, 140px);
    font-size: clamp(24px, 5vh, 44px);
  }
  body.home .name { font-size: clamp(22px, 3.4vh, 38px); margin: 2px 0 4px; }
  body.home .bio { font-size: clamp(11px, 1.5vh, 13px); margin-bottom: 0; }
  body.home .loc { margin: clamp(6px, 1.2vh, 14px) 0 clamp(8px, 1.6vh, 18px); }
  body.home .tags { gap: 6px; margin-bottom: clamp(8px, 1.4vh, 16px); }
  body.home .tag { padding: clamp(3px, .6vh, 5px) clamp(6px, .8vw, 10px); font-size: clamp(9px, 1.3vh, 11px); }
  body.home .contact { width: clamp(26px, 3.4vh, 32px); height: clamp(26px, 3.4vh, 32px); }

  /* 星图区压缩 */
  body.home .map-head { margin-bottom: clamp(10px, 1.8vh, 22px); }
  body.home .map-head h2 {
    font-size: clamp(18px, 2.8vh, 28px);
    margin: clamp(4px, .8vh, 8px) 0 4px;
  }
  body.home .map-head p { font-size: 10px; }
  body.home .nodes { gap: clamp(10px, 1.6vh, 18px); }
  body.home .node { padding: clamp(10px, 1.8vh, 20px) clamp(12px, 1.6vw, 22px); }
  body.home .node-top { margin-bottom: clamp(6px, 1.1vh, 12px); }
  body.home .node h3 { font-size: clamp(13px, 1.9vh, 17px); margin-bottom: clamp(3px, .8vh, 8px); }
  body.home .node p { font-size: clamp(10px, 1.35vh, 12px); line-height: 1.55; }
  body.home .node-arrow { margin-top: clamp(6px, 1.2vh, 14px); }

  /* 中央核 */
  body.home .hub { height: clamp(44px, 9vh, 110px); margin: clamp(8px, 1.8vh, 26px) 0 0; }
  body.home .hub-core { width: clamp(26px, 4.2vh, 44px); height: clamp(26px, 4.2vh, 44px); }
  body.home .hub-ring.a { width: clamp(76px, 13vh, 132px); height: clamp(76px, 13vh, 132px); }
  body.home .hub-ring.b { width: clamp(130px, 23vh, 232px); height: clamp(130px, 23vh, 232px); }
  body.home .hub-label { bottom: 0; }

  /* 底部两块面板 */
  body.home .boards { margin-top: clamp(8px, 1.8vh, 26px); gap: clamp(10px, 1.6vh, 18px); }
  body.home .panel { padding: clamp(10px, 1.6vh, 18px) clamp(12px, 1.6vw, 22px); }
  body.home .panel-head { margin-bottom: clamp(4px, .9vh, 12px); }
  body.home .postline { padding: clamp(5px, 1vh, 11px) 0; }
  body.home .postline .t { font-size: clamp(11px, 1.4vh, 13px); }
  body.home .mission { padding: clamp(5px, 1vh, 10px) 0; }
  body.home .mission .txt { font-size: clamp(11px, 1.4vh, 13px); }
}

/* 屏幕偏矮（笔记本常见 660~760）：保留四张卡和两块面板，只收掉次要装饰 */
@media (min-width: 981px) and (max-height: 780px) {
  body.home .identity .tags { display: none; }
  body.home .avatar-system { width: 112px; height: 112px; margin-bottom: 8px; }
  body.home .avatar-core { width: 90px; height: 90px; }
  body.home .name { font-size: 24px; }
  body.home .bio { font-size: 11px; }
  body.home .loc { margin: 4px 0 8px; font-size: 9px; }
  body.home .contacts { display: none; }
  body.home .map-head { margin-bottom: 8px; }
  body.home .map-head h2 { font-size: 19px; }
  body.home .node { padding: 9px 14px; }
  body.home .node h3 { font-size: 14px; }
  body.home .node-arrow { margin-top: 5px; }
  body.home .boards { margin-top: 10px; }
  body.home .panel { padding: 8px 14px 10px; }
  body.home .postline, body.home .mission { padding: 4px 0; }
}

@media (min-width: 981px) and (max-height: 620px) {
  body.home .hub,
  body.home .foot { display: none; }
}

/* 中等高度：收掉中央核，给底部面板腾空间 */
@media (min-width: 981px) and (max-height: 880px) {
  body.home .hub { display: none; }
  body.home .boards { margin-top: clamp(8px, 1.4vh, 16px); }
  body.home .panel-head { margin-bottom: 6px; }
  body.home .stage { align-content: center; }
  body.home .node p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* 矮屏（≤880px）进一步压扁卡片，保证四张星图卡 + 两块面板同屏 */
@media (min-width: 981px) and (max-height: 880px) {
  body.home .map-head { margin-bottom: 12px; }
  body.home .map-head h2 { font-size: 22px; margin: 4px 0 2px; }
  body.home .map-head p { display: none; }
  body.home .nodes { gap: 10px; }
  body.home .node { padding: 12px 16px 12px; }
  body.home .node-top { margin-bottom: 6px; font-size: 8px; }
  body.home .node h3 { font-size: 15px; margin-bottom: 4px; }
  body.home .node p {
    font-size: 11px;
    line-height: 1.5;
    -webkit-line-clamp: 1;
  }
  body.home .node-arrow { margin-top: 8px; font-size: 10px; }
  body.home .boards { margin-top: 12px; gap: 10px; }
  body.home .panel { padding: 10px 16px 12px; }
  body.home .panel-head { font-size: 8px; margin-bottom: 6px; }
  body.home .postline { padding: 6px 0; }
  body.home .mission { padding: 6px 0; }
  body.home .avatar-system { width: 132px; height: 132px; margin-bottom: 10px; }
  body.home .avatar-core { width: 104px; height: 104px; }
  body.home .name { font-size: 26px; }
  body.home .loc { margin: 6px 0 10px; }
  body.home .tags { margin-bottom: 10px; }
}

/* ---------------- 音乐频道 ---------------- */
.music-deck {
  margin-top: 18px;
  padding: 10px 12px 10px;
  border: 1px solid rgba(150, 185, 240, .16);
  border-radius: 10px;
  background: rgba(10, 22, 46, .28);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(190, 220, 255, .08);
  width: 100%;
  max-width: 320px;
  position: relative;
  z-index: 3;
}

.deck-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.deck-head .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #62e9a8;
  box-shadow: 0 0 8px rgba(98, 233, 168, .8);
  flex: 0 0 auto;
}

.deck-head .micro { color: #7f95bb; font-size: 9px; letter-spacing: .18em; }

.deck-state {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: .12em;
  color: #6f86ad;
}

.deck-note {
  margin-top: 6px;
  font-size: 10px;
  color: #6d819f;
  line-height: 1.5;
  min-height: 13px;
}

.aplayer-slot { font-size: 12px; }

/* APlayer 深色改造 */
.music-deck .aplayer {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  color: #c8d7f2;
  font-family: inherit;
}

.music-deck .aplayer .aplayer-info {
  background: transparent !important;
  border: 0 !important;
  padding: 0 0 0 10px !important;
}

.music-deck .aplayer .aplayer-info .aplayer-music .aplayer-title {
  font-size: 12px !important;
  color: #e2ecff !important;
  font-weight: 500;
}

.music-deck .aplayer .aplayer-info .aplayer-music .aplayer-author {
  font-size: 10px !important;
  color: #7b90b0 !important;
}

.music-deck .aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar {
  background: rgba(120, 150, 205, .2) !important;
  height: 2px !important;
}

.music-deck .aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-loaded {
  background: rgba(150, 180, 235, .35) !important;
  height: 2px !important;
}

.music-deck .aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played {
  background: #7fb0ff !important;
  height: 2px !important;
}

.music-deck .aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb {
  background: #a9c9ff !important;
  width: 8px !important; height: 8px !important;
  box-shadow: 0 0 8px rgba(127, 176, 255, .8);
}

.music-deck .aplayer .aplayer-info .aplayer-controller .aplayer-time {
  color: #7086a6 !important;
  font-size: 9px !important;
}

.music-deck .aplayer .aplayer-icon { color: #9db4d6; opacity: .8; }
.music-deck .aplayer .aplayer-icon:hover { opacity: 1; }
.music-deck .aplayer .aplayer-icon path { fill: #9db4d6; }

.music-deck .aplayer .aplayer-lrc:before,
.music-deck .aplayer .aplayer-lrc:after { background: none !important; }
.music-deck .aplayer .aplayer-lrc p {
  color: #a6bada !important;
  font-size: 10px !important;
  text-shadow: none !important;
}

.music-deck .aplayer .aplayer-list {
  max-height: 168px;
  background: rgba(9, 16, 34, .96) !important;
  border: 1px solid rgba(130, 165, 225, .2) !important;
  border-radius: 8px;
  margin-top: 6px;
  overflow-y: auto;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  z-index: 12;
}

.music-deck .aplayer .aplayer-list ol { background: transparent; }
.music-deck .aplayer .aplayer-list ol li {
  border-top: 1px solid rgba(120, 150, 205, .12) !important;
  color: #a9bcd8 !important;
  font-size: 11px !important;
  height: auto !important;
  line-height: 2;
  padding: 3px 0 !important;
  letter-spacing: .01em;
  background: transparent !important;
}
.music-deck .aplayer .aplayer-list ol li:hover { background: rgba(90, 130, 210, .16) !important; }
.music-deck .aplayer .aplayer-list ol li.aplayer-list-light { background: rgba(90, 130, 210, .22) !important; }
.music-deck .aplayer .aplayer-list ol li .aplayer-list-index { color: #6a7e9c !important; }
.music-deck .aplayer .aplayer-list ol li .aplayer-list-author { color: #6f84a3 !important; }

/* 矮屏：播放器单独压薄，避免撑破一屏 */
@media (min-width: 981px) and (max-height: 780px) {
  .music-deck { margin-top: 10px; padding: 8px 10px; width: 268px; max-width: 268px; }
  .deck-note { display: none; }
  .music-deck .aplayer .aplayer-list { max-height: 140px; }
}
@media (min-width: 981px) and (max-height: 700px) {
  .music-deck { margin-top: 8px; padding: 6px 9px; }
  .deck-head { margin-bottom: 3px; }
  .deck-head .micro { font-size: 8px; }
}

/* 播放器：更贴主题的透明质感 */
.music-deck .aplayer .aplayer-pic {
  border-radius: 8px;
  background-size: cover;
  box-shadow: 0 0 0 1px rgba(150, 190, 250, .18), 0 8px 20px rgba(0, 0, 0, .35);
}
.music-deck .aplayer .aplayer-pic .aplayer-button { opacity: .9; }
.music-deck .aplayer .aplayer-info .aplayer-music .aplayer-title { letter-spacing: .02em; }
.deck-head .micro { color: rgba(140, 172, 214, .8); }
.deck-head .dot { box-shadow: 0 0 10px rgba(98, 233, 168, .9); }

/* 播放按钮：压暗，融进深空 */
.music-deck .aplayer .aplayer-pic .aplayer-button {
  background: rgba(6, 14, 32, .55) !important;
  box-shadow: inset 0 0 0 1px rgba(160, 195, 255, .22), 0 4px 14px rgba(0, 0, 0, .4);
}
.music-deck .aplayer .aplayer-pic .aplayer-button path { fill: rgba(225, 236, 255, .92); }
