/* 知奥赵 · 全站样式（深空体系） */
:root {
  --bg: #0b1020;
  --panel: #101830;
  --panel-hover: #151f3d;
  --line: #1e2a44;
  --text: #ffffff;
  --text-2: #c7d2e8;
  --text-3: #8fa3c8;
  --text-4: #5c6e90;
  --accent: #85b7eb;
  --accent-2: #b5d4f4;
  --live: #5dcaa5;
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--text); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 头部导航 ---------- */
.site-header { border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  font-family: var(--serif); font-weight: 600; font-size: 18px;
  color: var(--text); letter-spacing: 0.15em;
}
.brand:hover { color: var(--accent-2); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { color: var(--text-3); }
.nav a:hover { color: var(--text); }
.nav .lang { color: var(--text-4); }
@media (max-width: 560px) { .nav { gap: 16px; font-size: 13px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 60px);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: var(--accent); opacity: 0.5;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.75; } }
@media (prefers-reduced-motion: reduce) {
  .stars i { animation: none; }
}

.kicker {
  font-size: 15px; color: var(--accent); letter-spacing: 0.35em;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: 0.06em; color: var(--text);
  line-height: 1.3;
}
.hero .sub { margin-top: 14px; color: var(--text-3); font-size: 15px; }

/* ---------- 实时胶囊卡 ---------- */
.capsule {
  display: flex; align-items: center; gap: 14px;
  margin-top: 40px; max-width: 100%;
  border: 1px solid rgba(133, 183, 235, 0.35);
  background: var(--panel);
  border-radius: 999px;
  padding: 14px 22px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.capsule:hover { border-color: rgba(181, 212, 244, 0.8); background: var(--panel-hover); }
.capsule .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--live);
  flex: none; animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(93, 202, 165, 0.45); } 50% { box-shadow: 0 0 0 6px rgba(93, 202, 165, 0); } }
@media (prefers-reduced-motion: reduce) { .capsule .dot { animation: none; } }
.capsule .txt { font-size: 14px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capsule .num { font-family: var(--mono); color: var(--text); font-weight: 500; letter-spacing: 0.02em; }
.capsule .go {
  margin-left: auto; flex: none; font-size: 14px; color: var(--accent-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.capsule:hover .go .arr { transform: translateX(4px); }
.go .arr { display: inline-block; transition: transform 0.2s ease; }
.capsule .full { display: inline; }
.capsule .compact { display: none; }
@media (max-width: 760px) {
  .capsule { border-radius: 20px; flex-wrap: wrap; }
  .capsule .full { display: none; }
  .capsule .compact { display: inline; }
}

/* ---------- 内容页 ---------- */
.page-hero {
  padding: 72px 0 40px; border-bottom: 1px solid var(--line);
  position: relative;
}
.page-hero .crumb { font-size: 13px; color: var(--text-4); margin-bottom: 22px; }
.page-hero .crumb a { color: var(--text-4); }
.page-hero .crumb a:hover { color: var(--accent-2); }
.page-hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 5vw, 44px); letter-spacing: 0.05em; color: var(--text);
}
.page-hero .lede { margin-top: 14px; font-size: 16px; color: var(--text-3); max-width: 640px; }

.countdown-box { margin-top: 36px; }
.countdown-label { font-size: 14px; color: var(--text-3); letter-spacing: 0.1em; }
.countdown {
  margin-top: 8px; font-family: var(--mono); font-weight: 500;
  font-size: clamp(22px, 4.5vw, 38px); color: var(--accent-2);
  letter-spacing: 0.03em; font-variant-numeric: tabular-nums;
}

section.block { padding: 44px 0; border-bottom: 1px solid var(--line); }
section.block:last-of-type { border-bottom: none; }
section.block h2 {
  font-family: var(--serif); font-weight: 600; font-size: 22px;
  color: var(--text); letter-spacing: 0.04em; margin-bottom: 18px;
}
section.block p { margin-bottom: 14px; max-width: 760px; }
section.block p:last-child { margin-bottom: 0; }
.note { font-size: 13px; color: var(--text-4); }

/* 数据卡 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 8px; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 22px 24px;
}
.card h3 { font-size: 15px; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 8px; }
.card h3 .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 2s ease-in-out infinite; }
.card .m { margin-top: 14px; }
.card .m .k { font-size: 12px; color: var(--text-4); }
.card .m .v { font-family: var(--mono); font-size: 17px; color: var(--text); font-variant-numeric: tabular-nums; }
.card .m .v small { font-family: var(--sans); font-size: 12px; color: var(--text-3); margin-left: 4px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--text-3); font-weight: 500; font-size: 13px; }
td { color: var(--text-2); }
td .on { color: var(--live); }
td .off { color: var(--text-4); }

/* 光尺对比 */
.light-ruler { margin-top: 10px; }
.light-ruler li { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.light-ruler li:last-child { border-bottom: none; }
.light-ruler .t { color: var(--text-2); }
.light-ruler .v { font-family: var(--mono); color: var(--accent-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 页尾来源气泡 */
.page-end { padding: 10px 0 22px; text-align: center; }
section.block.block-last { padding-bottom: 18px; }
details.src-pop { display: inline-block; position: relative; }
details.src-pop summary {
  list-style: none; cursor: pointer; user-select: none;
  font-size: 13px; color: var(--text-4);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
details.src-pop summary::-webkit-details-marker { display: none; }
details.src-pop summary:hover { color: var(--accent-2); border-color: var(--line); }
details.src-pop .caret {
  width: 6px; height: 6px; flex: none;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(-135deg) translateY(-1px);
  transition: transform 0.2s ease;
}
details.src-pop[open] .caret { transform: rotate(45deg); }
details.src-pop .src-panel {
  position: absolute; bottom: calc(100% + 14px); left: 50%;
  transform: translateX(-50%);
  width: min(620px, 84vw);
  max-height: 320px; overflow: auto;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px 22px;
  font-size: 13px; line-height: 1.9; color: var(--text-4);
  text-align: left;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  z-index: 20;
}
details.src-pop .src-panel::after {
  content: ''; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--line);
}
details.src-pop .src-panel p { margin-bottom: 10px; }
details.src-pop .src-panel p:last-child { margin-bottom: 0; }
details.src-pop .src-panel a { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  details.src-pop .src-panel { left: 50%; width: min(340px, 92vw); }
}

/* NASA Eyes 嵌入：全宽、纵向堆叠，不改动组件本身 */
.eyes-block { padding: 44px 0 0; }
section.block.eyes-block { padding: 44px 0 0; }
.eyes-tag {
  font-family: var(--mono); font-size: 12px; color: var(--text-4);
  letter-spacing: 0.12em; margin: 0; padding: 12px 24px 8px;
}
.eyes-frame { display: block; width: 100%; height: 76vh; min-height: 480px; border: 0; background: #000; }
.eyes-frame + .eyes-tag { border-top: 1px solid var(--line); }

/* 载荷状态：NASA 原图 + 原表样式 */
.nasa-fig { margin: 18px 0 22px; }
.nasa-fig img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.table-scroll { overflow-x: auto; }
.table-nasa { width: 100%; border-collapse: collapse; border: 1px solid var(--line); font-size: 14px; }
.table-nasa th, .table-nasa td {
  border: 1px solid var(--line); padding: 11px 14px;
  text-align: left; vertical-align: top; white-space: normal;
}
.table-nasa thead th { background: rgba(133, 183, 235, 0.07); color: var(--text); font-weight: 600; font-size: 13px; }
.table-nasa .instr { color: var(--text); min-width: 250px; }
.table-nasa .instr em { display: block; font-style: normal; font-size: 12px; color: var(--text-4); margin-top: 2px; line-height: 1.5; }
.table-nasa .on { color: var(--live); font-weight: 600; }
/* 载荷状态表：水平左对齐、垂直居中 */
.table-payload th, .table-payload td { vertical-align: middle; }

/* 实时数据表：NASA 的全部字段，只保留公制 */
.table-live { margin-top: 8px; }
.table-live tbody th {
  font-weight: 400; font-size: 13px; color: var(--text-3);
  background: rgba(133, 183, 235, 0.035);
  white-space: nowrap; width: 190px; vertical-align: middle;
}
.table-live td {
  color: var(--text); font-family: var(--mono); font-size: 15px;
  font-variant-numeric: tabular-nums; vertical-align: middle;
  line-height: 1.45; letter-spacing: 0.01em;
}
.table-live td.dt { font-size: 14px; color: var(--text-2); }
.table-live td .u { font-family: var(--sans); font-size: 12px; color: var(--text-3); margin-left: 5px; }
.table-live td .sub {
  display: block; font-style: normal; font-family: var(--mono);
  font-size: 12px; color: var(--text-4); margin-top: 3px;
}
.eyes-note { margin: 16px auto 0; font-size: 13.5px; color: var(--text-3); line-height: 1.95; }
.eyes-note .credit { color: var(--text-4); font-family: var(--mono); font-size: 12px; margin-left: 8px; white-space: nowrap; }
@media (max-width: 760px) {
  .eyes-frame { height: 62vh; min-height: 380px; }
  .table-nasa { min-width: 560px; }
  .table-live { min-width: 520px; }
  .table-live tbody th { width: auto; }
  .eyes-tag { padding-left: 20px; }
}

/* ---------- 联系页 / 简单页 ---------- */
.simple { padding: 90px 0; max-width: 640px; }
.simple h1 { font-family: var(--serif); font-weight: 600; font-size: 32px; color: var(--text); margin-bottom: 24px; letter-spacing: 0.05em; }
.simple p { margin-bottom: 16px; }
.simple .mail { font-family: var(--mono); font-size: 18px; color: var(--accent-2); }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 40px; }
.site-footer .f1 { font-size: 13px; color: var(--text-3); }
.site-footer .f2 { margin-top: 8px; font-size: 12px; color: var(--text-4); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer .f2 a { color: var(--text-4); text-decoration: underline; text-underline-offset: 3px; }
.site-footer .f2 a:hover { color: var(--text-2); }
