/* 赛博 ICU — liki4.icu
   主题：暗色床旁监护。青绿是主色，红色只给第 4 号（ECMO）。
   交互只剩一件事：鼠标停在图上，示意图换成实物图。 */

:root {
  --bg: #06090b;
  --panel: #0d1418;
  --panel-hi: #131d22;
  --line: #1f2f38;
  --line-hi: #2c4049;
  --ink: #e8f2f5;
  --muted: #7c919d;
  --accent: #3fe0c8;
  --accent-dim: rgba(63, 224, 200, .12);
  --danger: #ff4d45;

  --sans: system-ui, -apple-system, "PingFang SC", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --r: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(1100px 560px at 18% -12%, rgba(63, 224, 200, .10), transparent 62%),
    radial-gradient(820px 480px at 104% -4%, rgba(255, 77, 69, .07), transparent 58%),
    var(--bg);
}

/* 背景网格：压得很低的坐标纸 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(63, 224, 200, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(63, 224, 200, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 78%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* ── 顶栏 ───────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 9, 11, .94);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 650;
  letter-spacing: .02em;
}

.brand .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: breathe 2.6s ease-in-out infinite;
}

.brand .host {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.beds {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ── 头图区 ─────────────────────────────────────── */
.hero { padding: 56px 0 8px; }

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 9vw, 78px);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: 800;
}

.hero .ask {
  margin: 14px 0 0;
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 700;
  color: var(--danger);
  letter-spacing: .01em;
}

/* 号位网格：3×3 ───────────────────────────────── */
.slots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 40px 0 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 620px) { .slots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .slots { grid-template-columns: repeat(3, 1fr); } }

.slots > li { display: flex; }

.slot {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 16px;
  background: linear-gradient(180deg, var(--panel-hi), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.num {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  letter-spacing: .02em;
}

/* 图：示意图打底，实物图盖在上面，hover 时淡入 */
.slot-art {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.slot-ill,
.slot-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slot-photo {
  background: #f2f5f6;
  border-radius: 10px;
  opacity: 0;
  transition: opacity .28s ease;
}

.slot:hover .slot-photo { opacity: 1; }

/* 没有 hover 的设备（触屏）：直接给实物图 */
@media (hover: none) {
  .slot-photo { opacity: 1; }
}

.slot figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slot-name {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: .01em;
}

.slot-model {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.slot-line {
  margin-top: 4px;
  font-size: 14px;
  color: #b9c9d2;
}

/* 第 4 号：淡红底 + 红序号，格子本身保持等权 */
.slots > li.flagship .slot {
  border-color: rgba(255, 77, 69, .4);
  background: linear-gradient(180deg, rgba(255, 77, 69, .07), var(--panel));
}

.slots > li.flagship .num { color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
