/* ============================================================
   群星计划 · 共享样式（demo-a「代办处星图」演进版）
   双主题：浅色（默认） / 深色（data-theme="dark" 或无属性时由 JS 设定）
   设计原则：
   - Hero 星图区随主题切换：深色=天鹅绒夜空银线星图，
     浅色=纸上墨线星图（如同公文附图）
   - DX3906 暗红是全站唯一暖色
   ============================================================ */

:root {
  --bg: #06070B;
  --surface: #0C0E14;
  --surface2: #101320;
  --border: rgba(201, 209, 217, 0.12);
  --border-strong: rgba(201, 209, 217, 0.28);
  --text: #E6E9EF;
  --dim: #8A92A3;
  --red: #9E4A3F;
  --red-bright: #C25B4E;
  --blue: #5B92E5;
  --nav-bg: rgba(6, 7, 11, 0.88);
  /* Hero 星图区（随主题切换） */
  --hero-bg: #06070B;
  --hero-star: #C9D1D9;        /* 星尘与星座银线 */
  --hero-star-bright: #E6E9EF; /* 北斗七星主星 */
  --hero-text: #E6E9EF;
  --hero-dim: #97A0B0;
  --hero-title-shadow: 0 0 40px rgba(201,209,217,0.25);
  --badge-fg: #9FC1F5;
  --badge-border: rgba(91,146,229,0.55);
  --badge-bg: rgba(91,146,229,0.10);
  --badge-dot: #6FCF97;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --mono: "SF Mono", Consolas, "Courier New", monospace;
}

html[data-theme="light"] {
  --bg: #F4F1EA;
  --surface: #FDFCF8;
  --surface2: #F1ECE1;
  --border: rgba(27, 42, 74, 0.16);
  --border-strong: rgba(27, 42, 74, 0.34);
  --text: #1B2A4A;
  --dim: #6E7891;
  --red: #A03E32;
  --red-bright: #B03A2E;
  --blue: #2F5FB3;
  --nav-bg: rgba(244, 241, 234, 0.9);
  /* Hero 星图区：浅色=纸上墨线星图 */
  --hero-bg: #EDE7DA;
  --hero-star: #55617E;
  --hero-star-bright: #1B2A4A;
  --hero-text: #1B2A4A;
  --hero-dim: #6E7891;
  --hero-title-shadow: none;
  --badge-fg: #2F5FB3;
  --badge-border: rgba(47,95,179,0.4);
  --badge-bg: rgba(47,95,179,0.07);
  --badge-dot: #2E8B5F;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.7; transition: background .25s, color .25s; }
a { color: inherit; text-decoration: none; }

/* ── 顶部机构条 ── */
.orgbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 32px; font-family: var(--mono); font-size: 12px; letter-spacing: 1px;
  color: var(--dim); border-bottom: 1px solid var(--border);
}
.orgbar .seal-dot { color: var(--blue); }

/* ── 导航 ── */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 32px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
}
.nav-left { display: flex; align-items: center; gap: 40px; }
.logo { font-family: var(--serif); font-size: 20px; letter-spacing: 6px; white-space: nowrap; }
.logo small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 3px; color: var(--dim); margin-top: 2px; }
.nav-links { display: flex; gap: 26px; font-size: 14px; color: var(--dim); }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); border-bottom: 1px solid var(--red); padding-bottom: 3px; }

/* 主题切换按钮 */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); display: flex; align-items: center; justify-content: center;
  transition: border-color .2s;
  flex: none;
}
.theme-toggle:hover { border-color: var(--blue); }
.theme-toggle svg { width: 18px; height: 18px; }
/* 图标随主题切换：深色显示太阳（点击去浅色），浅色显示月亮 */
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ── Hero：星图区（颜色全部随主题切换） ── */
.hero { position: relative; height: 78vh; min-height: 520px; overflow: hidden; background: var(--hero-bg); transition: background .25s; }
.hero svg.starmap { position: absolute; inset: 0; width: 100%; height: 100%; }
/* SVG 内部颜色交给主题变量 */
.hero .sky { fill: var(--hero-bg); }
.hero .dust circle { fill: var(--hero-star); }
.hero .constellations polyline { stroke: var(--hero-star); stroke-width: 0.6; opacity: 0.35; }
.hero .big-dipper-line { stroke: var(--hero-star); stroke-width: 0.8; opacity: 0.7; }
.hero .big-dipper-stars circle { fill: var(--hero-star-bright); }
.hero .const-label { fill: var(--hero-dim); opacity: 0.75; }
.hero .dx-core { fill: var(--red-bright); }
.hero .dx-ring, .hero .dx-ring2 { stroke: var(--red-bright); }
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  color: var(--hero-text);
}
.hero-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 6px; color: var(--blue); margin-bottom: 22px; }
.hero h1 { font-family: var(--serif); font-size: 64px; font-weight: 600; letter-spacing: 12px; text-shadow: var(--hero-title-shadow); }
.hero .sub { margin-top: 18px; color: var(--hero-dim); font-size: 15px; letter-spacing: 2px; max-width: 580px; }
.sold-badge {
  margin-top: 34px; font-family: var(--mono); font-size: 12px; letter-spacing: 3px;
  color: var(--badge-fg); border: 1px solid var(--badge-border); padding: 8px 22px; border-radius: 999px;
  background: var(--badge-bg);
}
.sold-badge b { font-weight: 600; }
.sold-badge .live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--badge-dot);
  margin-right: 9px; vertical-align: 1px; box-shadow: 0 0 8px var(--badge-dot);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.hero-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: 3px; color: var(--hero-dim); white-space: nowrap; }
.dx-label { font-family: var(--mono); font-size: 11px; fill: var(--red-bright); letter-spacing: 2px; }
.dx-sub { fill: var(--hero-dim); opacity: 0.9; }
.dx-guide { stroke: var(--red-bright); stroke-dasharray: 4 5; stroke-width: 1; fill: none; opacity: 0.65; }

/* ── 数据条 ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { padding: 34px 24px; text-align: center; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--mono); font-size: 34px; color: var(--text); }
.stat .num em { color: var(--red-bright); font-style: normal; }
.stat .cap { margin-top: 8px; font-size: 12px; letter-spacing: 2px; color: var(--dim); }
.stat .num .live-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #4CAF7D;
  margin-right: 10px; vertical-align: 4px; box-shadow: 0 0 10px rgba(76,175,125,0.8);
  animation: pulse 2s ease-in-out infinite;
}
html[data-theme="light"] .stat .num .live-dot { background: #2E8B5F; }

/* ── 区块通用 ── */
section { max-width: 1120px; margin: 0 auto; padding: 72px 32px; }
.sec-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 36px; }
.sec-head h2 { font-family: var(--serif); font-size: 30px; letter-spacing: 6px; }
.sec-head .no { font-family: var(--mono); color: var(--blue); font-size: 12px; letter-spacing: 2px; }
.sec-head .line { flex: 1; height: 1px; background: var(--border); }

/* 提案摘要 */
.proposal { border: 1px solid var(--border); background: var(--surface); padding: 34px 38px; border-left: 3px solid var(--blue); }
.proposal .pno { font-family: var(--mono); font-size: 12px; color: var(--blue); letter-spacing: 2px; margin-bottom: 12px; }
.proposal p { color: var(--dim); font-size: 15px; }
.proposal p b { color: var(--text); font-weight: 600; }

/* 恒星卡 */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--border); background: var(--surface); padding: 22px; position: relative;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(194,91,78,0.45); transform: translateY(-3px); }
.card.featured { border-color: rgba(158,74,63,0.55); background: linear-gradient(180deg, rgba(158,74,63,0.10), var(--surface) 45%); }
html[data-theme="light"] .card.featured { border-color: rgba(160,62,50,0.6); background: linear-gradient(180deg, rgba(160,62,50,0.07), var(--surface) 45%); }
.card .star-dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 14px; }
.card .star-dot.red    { background: #C25B4E; box-shadow: 0 0 12px rgba(194,91,78,0.8); }
.card .star-dot.gold   { background: #D9A441; box-shadow: 0 0 10px rgba(217,164,65,0.7); }
.card .star-dot.orange { background: #C96B3A; box-shadow: 0 0 10px rgba(201,107,58,0.7); }
.card .star-dot.blue   { background: #7FB4E8; box-shadow: 0 0 10px rgba(127,180,232,0.7); }
.card .star-dot.white  { background: #E8EDF4; box-shadow: 0 0 10px rgba(232,237,244,0.8); }
.card h3 { font-family: var(--mono); font-size: 18px; letter-spacing: 2px; }
.card .tag {
  position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 10px; letter-spacing: 1px;
  color: var(--red-bright); border: 1px solid rgba(194,91,78,0.4); padding: 2px 8px; border-radius: 999px;
}
.card dl { margin-top: 14px; font-size: 13px; }
.card dl div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed var(--border); gap: 10px; }
.card dt { color: var(--dim); white-space: nowrap; }
.card dd { font-family: var(--mono); color: var(--text); text-align: right; }
.card .status { margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--dim); }
.card .status b { color: #4CAF7D; font-weight: 600; }
html[data-theme="light"] .card .status b { color: #2E8B5F; }
.card .note { margin-top: 6px; font-size: 11px; color: var(--dim); }
.card-link { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--blue); }
.card-link:hover { text-decoration: underline; }

/* 新闻 */
.news-item { display: flex; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.news-item .date { font-family: var(--mono); font-size: 12px; color: var(--blue); letter-spacing: 1px; white-space: nowrap; }
.news-item .t { font-size: 15px; }
.news-item:hover .t { color: var(--red-bright); }
.news-item .src { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--dim); white-space: nowrap; }

/* ── 认购页专用 ── */
.page-title { max-width: 1120px; margin: 0 auto; padding: 52px 32px 0; }
.page-title h1 { font-family: var(--serif); font-size: 36px; letter-spacing: 8px; }
.page-title .sub { color: var(--dim); margin-top: 10px; font-size: 14px; }
.demo-banner {
  max-width: 1120px; margin: 24px auto 0; padding: 12px 20px;
  border: 1px dashed var(--border-strong); font-size: 13px; color: var(--dim); background: var(--surface2);
}
.demo-banner b { color: var(--red-bright); font-weight: 600; }

/* 步骤条 */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 1120px; margin: 34px auto 0; padding: 0 32px; gap: 12px; }
.step { border: 1px solid var(--border); background: var(--surface); padding: 16px 14px; text-align: center; }
.step .no { font-family: var(--mono); font-size: 11px; color: var(--blue); letter-spacing: 2px; }
.step .t { margin-top: 6px; font-size: 14px; }
.step .d { margin-top: 4px; font-size: 11px; color: var(--dim); }

/* 表单区 */
.order-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; max-width: 1120px; margin: 40px auto 0; padding: 0 32px; align-items: start; }
.form-card { border: 1px solid var(--border); background: var(--surface); padding: 28px 30px; }
.form-card fieldset { border: none; margin-bottom: 26px; }
.form-card legend { font-family: var(--serif); font-size: 16px; letter-spacing: 3px; color: var(--text); margin-bottom: 14px; padding: 0; }
.form-card legend .en { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 2px; margin-left: 10px; }
.f-row { margin-bottom: 16px; }
.f-row label.lbl { display: block; font-size: 13px; color: var(--dim); margin-bottom: 7px; letter-spacing: 1px; }
.f-row input[type="text"], .f-row select, .f-row textarea {
  width: 100%; background: var(--surface2); border: 1px solid var(--border-strong);
  color: var(--text); font-family: var(--mono); font-size: 14px; padding: 10px 12px; border-radius: 4px;
}
.f-row textarea { min-height: 72px; resize: vertical; font-family: var(--sans); }
.f-row input:focus, .f-row select:focus, .f-row textarea:focus { outline: none; border-color: var(--blue); }
.f-row select option { background: var(--surface); color: var(--text); }
.radio-row { display: flex; gap: 22px; }
.radio-row label, .check-row label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.radio-row input, .check-row input { accent-color: var(--red-bright); width: 15px; height: 15px; }
.check-row { margin-top: 10px; }
.f-hint { font-size: 12px; color: var(--dim); margin-top: 8px; }
.f-hint b { color: var(--blue); font-weight: 600; }
.submit-btn {
  width: 100%; margin-top: 6px; padding: 14px; cursor: pointer;
  background: var(--red); color: #F6F1EA; border: none; border-radius: 4px;
  font-family: var(--serif); font-size: 17px; letter-spacing: 6px;
  transition: filter .2s;
}
.submit-btn:hover { filter: brightness(1.12); }
.submit-btn:active { filter: brightness(0.95); }

/* 预览区 */
.preview-col { position: sticky; top: 86px; }
.preview-empty {
  border: 1px dashed var(--border-strong); padding: 60px 26px; text-align: center;
  color: var(--dim); font-size: 13px; background: var(--surface2);
}
/* 受理回执 */
.receipt { border: 1px solid var(--border); background: var(--surface); padding: 22px 24px; margin-bottom: 18px; }
.receipt .r-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed var(--border); padding-bottom: 10px; margin-bottom: 12px; }
.receipt .r-head b { font-family: var(--mono); letter-spacing: 2px; font-size: 15px; }
.receipt .r-head span { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.receipt .r-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; gap: 12px; }
.receipt .r-row .k { color: var(--dim); white-space: nowrap; }
.receipt .r-row .v { font-family: var(--mono); text-align: right; }
.receipt .r-next { margin-top: 12px; font-size: 12px; color: var(--dim); border-top: 1px dashed var(--border); padding-top: 10px; }
.receipt .r-next b { color: var(--blue); font-weight: 600; }
.receipt .r-state { color: #4CAF7D; font-weight: 600; }
html[data-theme="light"] .receipt .r-state { color: #2E8B5F; }

/* 证书预览（黑皮文件夹风，恒为深色卡） */
.cert {
  background: linear-gradient(160deg, #17181D, #0B0C10 70%);
  border: 1px solid rgba(201,209,217,0.22); border-radius: 6px;
  padding: 26px 28px; color: #E6E9EF; position: relative; overflow: hidden;
}
.cert::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(217,164,65,0.35);
  border-radius: 4px; pointer-events: none;
}
.cert .c-org { text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: 3px; color: #97A0B0; }
.cert .c-org b { color: #D9A441; font-weight: 600; }
.cert .c-title { text-align: center; font-family: var(--serif); font-size: 24px; letter-spacing: 10px; margin: 14px 0 2px; color: #E9D9A6; text-shadow: 0 0 14px rgba(217,164,65,0.35); }
.cert .c-en { text-align: center; font-family: var(--mono); font-size: 9px; letter-spacing: 4px; color: #8A92A3; }
.cert .c-body { margin: 18px 6px 0; font-size: 13px; line-height: 2; font-family: var(--sans); color: #C8D0DC; }
.cert .c-body b { color: #E9D9A6; font-family: var(--mono); letter-spacing: 1px; }
.cert .c-body .blank { display: inline-block; min-width: 90px; border-bottom: 1px solid rgba(233,217,166,0.55); text-align: center; padding: 0 6px; }
.cert .c-foot { margin-top: 20px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: #8A92A3; }
.cert .c-foot .sig { border-bottom: 1px solid rgba(138,146,163,0.5); padding: 0 26px 2px; }
.cert .c-id { text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: #D9A441; margin-top: 14px; }

/* 底价总表 */
.price-table-wrap { max-width: 1120px; margin: 40px auto 0; padding: 0 32px; }
table.price { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface); }
table.price th, table.price td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
table.price th { font-weight: 400; letter-spacing: 2px; font-size: 11px; color: var(--dim); background: var(--surface2); }
table.price td { font-family: var(--mono); }
table.price td.zh { font-family: var(--sans); }
table.price tr.hl td { background: rgba(158,74,63,0.08); }
table.price tr.hl .sid { color: var(--red-bright); font-weight: 700; }
table.price .sid { color: var(--blue); }
table.price .st { color: #4CAF7D; }
html[data-theme="light"] table.price .st { color: #2E8B5F; }

/* 页脚 */
footer { border-top: 1px solid var(--border); margin-top: 60px; }
.foot-org { display: flex; justify-content: center; gap: 36px; padding: 30px; font-size: 13px; letter-spacing: 2px; color: var(--dim); flex-wrap: wrap; }
.foot-org span::before { content: "◆ "; color: var(--blue); font-size: 9px; vertical-align: 2px; }
.foot-base { text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--dim); padding-bottom: 26px; }
.foot-fan { text-align: center; font-size: 11px; color: var(--dim); opacity: 0.65; padding-bottom: 34px; }

/* 响应式 */
@media (max-width: 960px) {
  .stats, .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .order-grid { grid-template-columns: 1fr; }
  .preview-col { position: static; }
  .hero h1 { font-size: 44px; letter-spacing: 8px; }
}
@media (max-width: 560px) {
  .stats, .cards, .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero h1 { font-size: 34px; }
}


/* ── 分支页补充组件（about/catalog/news/dossier） ── */
section.narrow { max-width: 880px; margin: 0 auto; padding: 34px 32px 0; }
.article-block p { color: var(--dim); font-size: 15px; margin-bottom: 12px; }
.article-block p b { color: var(--text); font-weight: 600; }
.article-block ul { margin: 0 0 14px 22px; color: var(--dim); font-size: 15px; }
.article-block ul li { margin-bottom: 8px; }
.article-block ul b { color: var(--text); }
.article-block blockquote {
  margin: 14px 0; padding: 14px 20px; border-left: 3px solid var(--red-bright);
  background: var(--surface); color: var(--text); font-family: var(--serif); font-size: 15px;
}
.dim-note { font-size: 12px; color: var(--dim); opacity: 0.8; margin-top: 14px; }
.center-note { text-align: center; margin-top: 26px; }
.more-row { margin-top: 20px; }

/* 目录筛选条 */
.filters {
  max-width: 1120px; margin: 26px auto 0; padding: 0 32px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--dim);
}
.chip {
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--dim);
  padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-family: var(--sans);
  transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--blue); }
.chip.active { color: #fff; background: var(--red); border-color: var(--red); }
html[data-theme=light] .chip.active { color: #F6F1EA; }
.sort-box { margin-left: auto; }
.sort-box select {
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
  font-family: var(--mono); font-size: 13px; padding: 5px 8px; border-radius: 4px;
}
.catalog-sec { padding-top: 26px; padding-bottom: 30px; }

/* 恒星详情：参数卡与档案正文 */
.param-dl { font-size: 13px; }
.param-dl div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); gap: 10px; }
.param-dl dt { color: var(--dim); white-space: nowrap; }
.param-dl dd { font-family: var(--mono); text-align: right; }
.egg-reg {
  margin-top: 16px; font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  color: var(--dim); opacity: 0.45; user-select: none;
}
.dossier { border: 1px solid var(--border); background: var(--surface); padding: 30px 34px; }
.dossier h2 { font-family: var(--serif); font-size: 21px; letter-spacing: 4px; margin: 22px 0 12px; color: var(--text); }
.dossier h2:first-child { margin-top: 0; }
.dossier p { color: var(--dim); font-size: 15px; margin-bottom: 12px; }
.dossier p b, .dossier li b { color: var(--text); }
.dossier ul { margin: 0 0 14px 22px; color: var(--dim); font-size: 15px; }
.dossier ul li { margin-bottom: 7px; }
.dossier blockquote {
  margin: 16px 0; padding: 14px 20px; border-left: 3px solid var(--red-bright);
  background: var(--surface2); color: var(--text); font-family: var(--serif); font-size: 15px;
}
.dossier em { color: var(--red-bright); font-style: normal; }
.dossier table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 14px 0; }
.dossier th, .dossier td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.dossier th { color: var(--text); background: var(--surface2); font-weight: 600; }
.dossier td { color: var(--dim); }
.news-h1 { font-size: 26px; letter-spacing: 2px; line-height: 1.5; }
a.t-link { color: inherit; }
a.t-link:hover { color: var(--red-bright); }
a.submit-btn { display: block; text-align: center; text-decoration: none; }

@media (max-width: 960px) {
  .filters { padding: 0 22px; }
  .sort-box { margin-left: 0; }
}

/* ---- 恒星画像（详情页外观展示） ---- */
.star-portrait { margin: 0 0 16px; border: 1px solid var(--border); background: #0B0F16; }
.star-portrait svg { display: block; width: 100%; height: auto; }
.star-portrait figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--dim); }
.star-appearance { margin: 0 0 16px; padding: 13px 16px 15px; border: 1px dashed var(--border); }
.star-appearance b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--red-bright); font-weight: 600; margin-bottom: 8px; }
.star-appearance p { margin: 0; font-size: 13px; line-height: 2; color: var(--text); }
/* ---- 目录卡片整卡可点 ---- */
.card { position: relative; cursor: pointer; }
.card .card-link::after { content: ""; position: absolute; inset: 0; }
.star-portrait figcaption .p3d { color: var(--red-bright); text-decoration: none; }
.star-portrait figcaption .p3d:hover { text-decoration: underline; }

/* ---- 详情页 3D 实时渲染视口 ---- */
.star-portrait .v3d { position: relative; width: 100%; height: 240px; background: #0B0F16; overflow: hidden; }
.star-portrait .v3d canvas { display: block; }
.star-portrait .v3d .ld { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; letter-spacing: 3px; color: var(--dim); }
.star-portrait .v3d .fb { display: none; position: absolute; inset: 0; }
.star-portrait .v3d .fb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.star-portrait .v3d .hint { position: absolute; right: 8px; bottom: 6px; font-family: var(--mono); font-size: 9px; letter-spacing: 1px; color: rgba(199,211,224,0.55); pointer-events: none; z-index: 3; }
