/* ==========================================================================
   PROJECT ATLAS · DESIGN PREVIEW V2
   未来主义创作机构 / 航天档案馆 / 个人作品博物馆
   仅用于预览，不改动正式站
   ========================================================================== */

:root {
  --void: #06090f;
  --deep: #0a1018;
  --slab: #0d1622;
  --raise: #131f2e;

  --ink: #eef3f8;
  --ink-1: #c3ccd6;
  --dim: #8b95a3;
  --faint: #5c6674;

  --line: rgba(158, 186, 214, 0.14);
  --line-soft: rgba(158, 186, 214, 0.08);

  --steel: #92bcdd;
  --brass: #c3a26d;
  --orange: #e8582a;
  --brass-dim: rgba(195, 162, 109, 0.4);

  --red: #cf5a4e;
  --green: #5fae86;
  --violet: #9786e0;

  --font-num: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-cn: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans SC", sans-serif;
  --font-mono: "Source Code Pro", "Consolas", ui-monospace, monospace;

  --pad: clamp(20px, 4.6vw, 84px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* 与首页 sheet.css 对齐的别名，让弹层在档案页也成立 */
  --bg-panel: #0d1622;
  --bg-raise: #131f2e;
  --bg-hall: #0a1018;
  --ink-0: #eef3f8;
  --ink-1: #c3ccd6;
  --ink-2: #8b95a3;
  --ink-3: #5c6674;
  --line-mid: rgba(158, 186, 214, 0.2);
  --line-hi: rgba(158, 186, 214, 0.32);
  --accent: #92bcdd;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --hair: 1px;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-cn);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 极淡星图 + 空间层次：只在顶部大面积铺，不铺满整页 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 620px at 22% -10%, rgba(72, 118, 165, 0.22), transparent 70%),
    radial-gradient(900px 520px at 88% 6%, rgba(56, 86, 126, 0.16), transparent 70%),
    radial-gradient(700px 700px at 50% 120%, rgba(24, 44, 66, 0.35), transparent 70%);
}

/* 星点：用极低密度 SVG 噪点代替满屏网格 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(210, 232, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 12%, rgba(210, 232, 255, 0.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 42% 68%, rgba(210, 232, 255, 0.28) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 54%, rgba(210, 232, 255, 0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 12% 82%, rgba(210, 232, 255, 0.3) 50%, transparent 51%);
  background-size: 520px 520px, 700px 700px, 640px 640px, 820px 820px, 900px 900px;
  background-repeat: repeat;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 55%, transparent 85%);
}

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* ============================ 顶部导航 ============================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px var(--pad);
  background: linear-gradient(to bottom, rgba(6, 9, 15, 0.92), rgba(6, 9, 15, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
}

.brand { display: flex; align-items: baseline; gap: 12px; }
.brand b {
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.14em;
}
.brand i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  color: var(--faint);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: clamp(18px, 2.6vw, 40px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
}
.nav__links a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  transition: color 0.3s var(--ease);
}
.nav__links a span {
  font-family: var(--font-cn);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: none;
  color: var(--faint);
}
.nav__links a.is-active span { color: var(--dim); }
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active {
  color: var(--orange, #e8582a);
}
.nav__links a.is-active span { color: var(--dim); }

.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }

.btn-cta {
  border: 1px solid var(--line);
  padding: 9px 18px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-1);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.btn-cta:hover { border-color: var(--orange); color: var(--orange); background: rgba(232, 88, 42, 0.08); }

/* ============================ 首页 · 指挥大厅 ============================ */

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 2.05fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(8px, 1.4vw, 26px);
  padding: 26px var(--pad) 56px;
}

/* 左侧舰船：突破栏位、与背景融合 */
/* 极淡的工程环：只做空间暗示，不抢信息 */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(78vw, 1080px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(150, 190, 225, 0.07);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 46%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(150, 190, 225, 0.08) 22%, rgba(150, 190, 225, 0.08) 78%, transparent);
  pointer-events: none;
  z-index: 0;
}

.hero__ship {
  position: relative;
  grid-column: 1;
  margin-left: calc(var(--pad) * -0.15);
  margin-right: clamp(-70px, -4vw, -20px);
  z-index: 1;
  align-self: end;
}
.hero__ship > svg,
.hero__ship > img {
  width: 100%;
  max-height: 74vh;
  height: auto;
  /* 右缘与底缘融进背景，不再是一个矩形画框 */
  mask-image: linear-gradient(to right, #000 46%, rgba(0, 0, 0, 0.55) 74%, transparent 96%),
    linear-gradient(to bottom, #000 62%, transparent 98%);
  -webkit-mask-image: linear-gradient(to right, #000 46%, rgba(0, 0, 0, 0.55) 74%, transparent 96%),
    linear-gradient(to bottom, #000 62%, transparent 98%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  filter: drop-shadow(0 30px 60px rgba(10, 26, 44, 0.6));
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__ship figcaption {
  position: absolute;
  left: 12px;
  bottom: 8%;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--faint);
  text-transform: uppercase;
}

/* 中央：倒计时 */
.hero__core {
  grid-column: 2;
  position: relative;
  z-index: 2;
  padding: 0 clamp(0px, 2vw, 34px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--faint);
}
.eyebrow::before {
  content: "";
  width: clamp(28px, 4vw, 54px);
  height: 1px;
  background: var(--line);
}

.cd {
  margin: 22px 0 0;
  display: flex;
  align-items: baseline;
  gap: clamp(4px, 0.55vw, 12px);
  font-family: var(--font-num);
  font-weight: 200;
  line-height: 0.86;
  letter-spacing: -0.02em;
}
.cd__unit { display: flex; align-items: baseline; gap: 8px; }
.cd__num {
  font-size: clamp(50px, 8.4vw, 138px);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(178deg, #ffffff 8%, #cfe0f2 46%, #8fa9c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 42px rgba(143, 188, 226, 0.16);
}
.cd__label {
  font-family: var(--font-cn);
  font-size: clamp(9.5px, 0.72vw, 12px);
  letter-spacing: 0.12em;
  color: var(--faint);
}

.cd-title {
  margin: 30px 0 0;
  font-size: clamp(19px, 1.9vw, 30px);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.cd-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px clamp(20px, 3vw, 42px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.cd-meta b { color: var(--ink-1); font-weight: 400; }
.cd-meta .type { color: var(--violet); }

.cd-next {
  margin-top: clamp(26px, 4vh, 46px);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  font-size: 12.5px;
  color: var(--dim);
}
.cd-next span:first-child {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
}
.cd-next b { color: var(--ink-1); font-weight: 400; }

/* 右侧：月历 —— 提亮、留白、别像仪表盘 */
.hero__cal {
  grid-column: 3;
  position: relative;
  z-index: 2;
  align-self: center;
  padding-left: clamp(10px, 1.6vw, 28px);
  border-left: 1px solid var(--line-soft);
}

.cal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.cal-month {
  font-family: var(--font-num);
  font-size: clamp(30px, 2.6vw, 40px);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: 0.02em;
}
.cal-month em {
  font-style: normal;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.22em;
  color: var(--faint);
  display: block;
  margin-bottom: 6px;
}
.cal-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: right;
  line-height: 1.8;
}

.cal-week,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-week {
  margin-bottom: 8px;
  font-family: var(--font-cn);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.cal-week span { text-align: center; }

.cal-day {
  position: relative;
  min-height: clamp(46px, 4.6vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 2px 16px;
  font-family: var(--font-num);
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 300;
  color: #d8e0ea;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.cal-day.is-out { color: var(--faint); opacity: 0.35; }
.cal-day.is-past { color: var(--dim); opacity: 0.55; }
.cal-day:hover { color: var(--ink); background: rgba(146, 184, 220, 0.05); }
.cal-day.is-today { color: #fff; box-shadow: inset 0 0 0 1px rgba(150, 200, 240, 0.45); }
.cal-day.is-today::before {
  content: "";
  position: absolute;
  top: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--steel);
}

.cal-day[data-type="deadline"] { color: var(--red); }
.cal-day[data-type="video"] { color: var(--green); }
.cal-day[data-type="special"] { color: var(--violet); }
.cal-day.is-overdue {
  color: #ffb0a6;
  background: rgba(180, 54, 47, 0.16);
  box-shadow: inset 0 0 0 1px rgba(200, 80, 70, 0.35);
}
.cal-day.is-overdue::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: rgba(220, 90, 80, 0.5);
}

.cal-dots {
  position: absolute;
  bottom: 6px;
  display: flex;
  gap: 3px;
}
.cal-dots i {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--dim);
}
.cal-dots i[data-t="deadline"] { background: var(--red); }
.cal-dots i[data-t="video"] { background: var(--green); }
.cal-dots i[data-t="special"] { background: var(--violet); }

/* 顶部一行的欢迎/统计：极轻 */
.hero__note {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 30px;
  padding-bottom: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--dim);
}
.hero__note b { color: var(--ink-1); font-weight: 400; }
.hero__note .tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ============================ 滚动提示 / 页脚 ============================ */

.scroll-hint {
  position: absolute;
  left: var(--pad);
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--faint);
  text-transform: uppercase;
}
.scroll-hint i {
  display: block;
  width: 46px;
  height: 1px;
  background: linear-gradient(to right, var(--line), transparent);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px var(--pad) 40px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--faint);
  text-transform: uppercase;
}

/* ============================ 展厅 · 封面 / 精选 ============================ */

.gallery-head {
  padding: clamp(48px, 9vh, 120px) var(--pad) clamp(26px, 4vh, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
}

.gallery-head__titleline {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.gallery-head__no {
  font-family: var(--font-num);
  font-size: clamp(60px, 7vw, 104px);
  font-weight: 200;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(150, 190, 220, 0.3);
  letter-spacing: 0.02em;
}

.gallery-head .gallery-head__lead p {
  margin: 26px 0 0;
  max-width: 44ch;
}

.gallery-head__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.gallery-head__ships {
  font-family: var(--font-cn);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--orange);
}
.gallery-head h1 {
  margin: 18px 0 0;
  font-size: clamp(44px, 8vw, 118px);
  font-weight: 200;
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.gallery-head h1 em {
  font-style: normal;
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.9vw, 12px);
  letter-spacing: 0.4em;
  color: var(--faint);
  margin-bottom: 18px;
  font-weight: 400;
}
.gallery-head p {
  margin: 0;
  max-width: 46ch;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--dim);
}
.gallery-head .count {
  font-family: var(--font-num);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 200;
  color: var(--orange);
  line-height: 0.9;
  text-align: right;
}
.gallery-head .count small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--faint);
  margin-top: 10px;
}

/* 精选作品：像博物馆入口的主展品 */
.featured {
  position: relative;
  display: block;
  margin: 0 var(--pad);
  min-height: clamp(400px, 64vh, 660px);
  overflow: hidden;
}
.featured__art {
  position: absolute;
  inset: 0;
}
.featured__art svg,
.featured__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 1.6s var(--ease);
}
.featured:hover .featured__art svg,
.featured:hover .featured__art img { transform: scale(1.06); }

.featured__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 7, 11, 0.96) 0%, rgba(4, 7, 11, 0.72) 34%, rgba(4, 7, 11, 0.18) 62%, transparent 78%),
    linear-gradient(to right, rgba(4, 7, 11, 0.78) 0%, rgba(4, 7, 11, 0.25) 48%, transparent 68%);
}

.featured__no {
  position: absolute;
  top: clamp(18px, 3vw, 34px);
  left: clamp(18px, 3vw, 34px);
  font-family: var(--font-num);
  font-size: clamp(64px, 11vw, 180px);
  font-weight: 200;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(190, 215, 238, 0.45);
  letter-spacing: -0.02em;
}

.featured__body {
  position: absolute;
  left: clamp(20px, 3.4vw, 52px);
  right: clamp(20px, 3.4vw, 52px);
  bottom: clamp(24px, 4vw, 54px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}
.featured__cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
}
.featured__title {
  margin: 12px 0 0;
  max-width: 18em;
  font-size: clamp(26px, 3.4vw, 52px);
  font-weight: 200;
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.featured__intro {
  margin: 14px 0 0;
  max-width: 46ch;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-1);
}
.featured__more {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-1);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--brass-dim);
  transition: gap 0.4s var(--ease), color 0.3s var(--ease);
}
.featured:hover .featured__more { gap: 20px; color: #fff; }

/* ============================ 展厅 · 档案列表 ============================ */

.archive {
  padding: clamp(36px, 6vh, 86px) var(--pad) 40px;
}

.archive-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filters { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.filter {
  padding: 8px 14px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.filter:hover { color: var(--ink); }
.filter.is-on { color: var(--ink); border-color: var(--brass); }
.filter em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--faint);
  margin-left: 5px;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(320px, 60vw);
  border-bottom: 1px solid var(--line);
  padding: 8px 2px;
}
.search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.search input::placeholder { color: var(--faint); }
.search svg { width: 14px; height: 14px; stroke: var(--faint); fill: none; }

.archive-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
}

/* 档案网格：6 栏骨架，普通条目占 2 栏（每行 3 件），每 7 件留一件通栏做节奏 */
.works {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px) clamp(14px, 1.8vw, 28px);
  margin-top: 18px;
}

.work {
  display: block;
  margin: 0;
}

.works > .work {
  grid-column: span 2;
}

.work__frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--slab);
  aspect-ratio: 4 / 3;
}

.work__frame svg,
.work__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}
.work:hover .work__frame svg,
.work:hover .work__frame img { transform: scale(1.045); }

.work__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(230, 240, 250, 0.82);
  background: rgba(6, 10, 16, 0.55);
  padding: 3px 7px;
  backdrop-filter: blur(4px);
}

.work__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
}
.work__title {
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink);
  line-height: 1.5;
}
.work__no {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--faint);
  white-space: nowrap;
}
.work__meta {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

.load-more {
  display: flex;
  justify-content: center;
  padding: 28px 0 10px;
}
.load-more button {
  border: 1px solid var(--line);
  padding: 13px 34px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-1);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.load-more button:hover { border-color: var(--brass-dim); color: var(--ink); background: rgba(195, 162, 109, 0.05); }
.load-more button:disabled { opacity: 0.4; cursor: default; }

.empty {
  padding: 70px 0;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* ============================ 作品详情 ============================ */

.work-hero {
  position: relative;
  min-height: clamp(380px, 66vh, 720px);
  overflow: hidden;
}
.work-hero__art { position: absolute; inset: 0; }
.work-hero__art svg,
.work-hero__art img { width: 100%; height: 100%; object-fit: cover; }
.work-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--void) 2%, rgba(6, 9, 15, 0.45) 46%, rgba(6, 9, 15, 0.1) 78%);
}

.work-hero__inner {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(26px, 5vh, 64px);
  z-index: 2;
}
.work-hero__cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
}
.work-hero h1 {
  margin: 16px 0 0;
  font-size: clamp(28px, 3.6vw, 58px);
  font-weight: 200;
  line-height: 1.16;
  letter-spacing: 0.005em;
  max-width: 18em;
  text-wrap: balance;
}

.work-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.75fr);
  gap: clamp(26px, 5vw, 86px);
  padding: clamp(40px, 7vh, 90px) var(--pad) 30px;
}

.prose { max-width: 68ch; }
.prose p {
  margin: 0 0 1.4em;
  font-size: 15px;
  line-height: 2.05;
  color: var(--ink-1);
}
.prose p:first-child {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.85;
  color: var(--ink);
}

.spec {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  align-self: start;
  position: sticky;
  top: 96px;
}
.spec dl { margin: 0; display: grid; gap: 16px; }
.spec dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
}
.spec dd {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-1);
}
.spec a { color: var(--steel); border-bottom: 1px solid rgba(146, 188, 221, 0.3); }

.work-gallery {
  padding: 10px var(--pad) 20px;
  display: grid;
  gap: clamp(14px, 2vw, 28px);
}
.work-gallery figure { margin: 0; }
.work-gallery figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.work-gallery .wide { grid-column: 1 / -1; }
.work-gallery .half { grid-column: span 1; }
.work-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}

.video-slot {
  margin: 20px var(--pad) 10px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  gap: 14px;
  background: rgba(10, 17, 26, 0.7);
  border: 1px solid var(--line-soft);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.video-slot span { color: var(--ink-1); }

.related {
  padding: clamp(40px, 7vh, 80px) var(--pad) 20px;
}
.related h2 {
  margin: 0 0 26px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 34px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 var(--pad) 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.3s var(--ease);
}
.back-link:hover { color: var(--ink); }

/* ============================ 响应式 ============================ */

@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.9fr) minmax(0, 1fr); }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work { grid-column: span 1; }
}

@media (max-width: 960px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 10px;
  }
  .hero__ship {
    grid-column: 1;
    order: 1;
    margin: 0 calc(var(--pad) * -0.4);
    max-height: 34vh;
    overflow: hidden;
  }
  .hero__ship > svg { max-height: 34vh; width: auto; margin: 0 auto; }
  .hero__core { grid-column: 1; order: 2; padding: 0; }
  .hero__cal {
    grid-column: 1;
    order: 3;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
    padding: 22px 0 0;
  }
  .cd__num { font-size: clamp(46px, 13vw, 76px); }
  .scroll-hint { display: none; }

  .gallery-head { grid-template-columns: 1fr; gap: 18px; }
  .gallery-head .count {
    display: flex;
    align-items: baseline;
    gap: 10px;
    text-align: left;
    font-size: 36px;
  }
  .gallery-head .count small { margin-top: 0; }

  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work { grid-column: span 1; }

  .work-body { grid-template-columns: 1fr; }
  .spec { position: static; }
  .related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-gallery__grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --pad: 20px; }
  .works { grid-template-columns: 1fr; }
  .related__grid { grid-template-columns: 1fr; }
  .cd__num { font-size: clamp(42px, 14vw, 64px); }
  .featured { margin: 0 12px; min-height: 68vh; }
  .featured__body { position: absolute; }
  .archive-bar { align-items: flex-start; }
  .search { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__ship > svg { animation: none; }
  * { transition-duration: 0.01ms !important; }
}


/* ============================ 首页 · 最近入档 ============================ */

.home-archive {
  padding: clamp(40px, 8vh, 100px) var(--pad) clamp(20px, 4vh, 50px);
  border-top: 1px solid var(--line-soft);
}
.home-archive__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(20px, 3vh, 34px);
}
.home-archive__head h2 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 200;
  letter-spacing: 0.02em;
}
.home-archive__head a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.home-archive__head a:hover { color: var(--ink); border-color: var(--brass-dim); }
.home-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 30px);
}
.home-archive__grid .work__frame { aspect-ratio: 4 / 3; }
.home-archive__grid .work__frame svg { width: 100%; height: 100%; }

@media (max-width: 960px) {
  .home-archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .home-archive__grid { grid-template-columns: 1fr; }
}


/* 真实封面：图片填满画框，保持 cover 裁切 */
.work__frame img,
.featured__art img,
.work-hero__art img,
.work-gallery__grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.featured__art img { object-position: center 40%; }


/* 作品状态：待修复 / 检修中 */
.work__status {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: #ffb4ab;
  background: rgba(10, 6, 8, 0.72);
  border: 1px solid rgba(216, 84, 76, 0.4);
  backdrop-filter: blur(6px);
}
.work-hero__status {
  color: #ffb4ab;
  font-weight: 400;
}

/* 所有档案页共用的右侧委托条 */
.cta-rail {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 40;
  transform: translateY(-50%);
  display: block;
  padding: 24px 10px;
  border: 1px solid rgba(232, 88, 42, 0.55);
  border-right: 0;
  background: linear-gradient(180deg, rgba(232, 88, 42, 0.18), rgba(232, 88, 42, 0.04));
  box-shadow: -14px 0 34px -20px rgba(232, 88, 42, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.cta-rail__cn {
  display: inline;
  font-family: var(--font-cn);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.28em;
  color: var(--ink);
}

.cta-rail__en {
  display: inline;
  margin-inline-start: 0.8em;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.32em;
  color: rgba(232, 88, 42, 0.8);
}

.cta-rail:hover {
  border-color: var(--orange);
  background: linear-gradient(180deg, rgba(232, 88, 42, 0.26), rgba(232, 88, 42, 0.06));
}

@media (max-width: 900px) {
  .cta-rail {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px;
    border-right: 1px solid rgba(232, 88, 42, 0.4);
    border-top: 1px solid rgba(232, 88, 42, 0.4);
    border-left: 0;
    border-bottom: 0;
    background: rgba(6, 11, 18, 0.9);
    writing-mode: horizontal-tb;
  }
  .cta-rail__en {
    margin-inline-start: 0;
  }
  body {
    padding-bottom: 54px;
  }
}
