/* ═══════════════════════════════════════════════════════════════
   帧序 · 首页 / 作品库
   ═══════════════════════════════════════════════════════════════ */

.app { min-height: 100vh; display: flex; flex-direction: column; }

/* ── 顶栏 ──────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
  height: var(--topbar-h);
  padding: 0;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
[data-theme="day"] .topbar { background: color-mix(in srgb, #f6f2e9 78%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; align-self: stretch; padding-left: clamp(20px, 3.4vw, 38px); border-right: 1px solid var(--line); }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: linear-gradient(160deg, var(--panel-3), var(--panel));
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 23px; height: 23px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-cn { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: .16em; }
.brand-en { margin-top: 5px; font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .24em; color: var(--ink-3); }

.topnav { display: flex; align-items: center; gap: 4px; margin-left: 0; padding-left: clamp(20px, 2.4vw, 34px); }
.topnav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  transition: color var(--t-fast), background var(--t-fast);
}
.topnav a:hover { color: var(--ink); background: var(--accent-soft); }
.topnav a.is-active { color: var(--ink); }
.topnav a.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 1px;
  background: var(--flow); box-shadow: 0 0 6px var(--flow-soft);
}
.top-actions { margin-left: 0; display: flex; align-items: center; gap: 10px; padding-right: clamp(20px, 2.4vw, 32px); }
.save-state {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
  padding-right: 4px;
}
.save-state .dot { width: 5px; height: 5px; }
.save-state.is-saving .dot { animation: dot-pulse .9s infinite; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 11.5px;
  transition: all var(--t-fast) var(--ease);
}
.theme-toggle:hover { border-color: var(--line-3); color: var(--ink); background: var(--panel-2); }
.theme-toggle .icon { width: 15px; height: 15px; color: var(--accent); }

/* ── Hero ──────────────────────────────────────────────────── */
.home { flex: 1; width: 100%; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(36px, 4.4vw, 74px);
  align-items: center;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(46px, 6vh, 74px) clamp(20px, 2.6vw, 38px) clamp(38px, 5vh, 56px);
}
.hero-copy { max-width: 640px; animation: fade-up .8s var(--ease-out) both; }
.hero-copy .eyebrow { color: var(--ink-3); }
.hero h1 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.4vw, 72px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: .01em;
  color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2%; right: 2%; bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--flow-soft) 18%, var(--flow-soft) 82%, transparent);
}
.hero-lead {
  margin-top: 24px;
  max-width: 470px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-2);
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-hint {
  display: flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .07em;
  color: var(--ink-3);
}
.hero-hint .icon { width: 13px; height: 13px; }
.hero-stats { display: none; }

/* ── 全宽数据条 ────────────────────────────────────────────── */
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 clamp(20px, 2.6vw, 38px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.home-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 22px 24px 24px;
  min-width: 0;
}
.home-stat + .home-stat { border-left: 1px solid var(--line); }
.home-stat b {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.02em;
}
.home-stat span { font-size: 11px; color: var(--ink-3); letter-spacing: .06em; white-space: nowrap; }

/* ── Hero 视觉：取景器 ────────────────────────────────────── */
.hero-visual {
  position: relative;
  min-height: 480px;
  animation: fade-up .9s .12s var(--ease-out) both;
}
.sv-halo {
  position: absolute;
  left: 50%; top: 46%;
  width: 560px; height: 560px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--flow-faint) 0%, transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}
.sv-stage {
  position: relative;
  width: min(360px, 78%);
  margin: 0 auto;
  aspect-ratio: 9 / 13.4;
  border-radius: 6px;
  padding: 11px 11px 40px;
  background: linear-gradient(165deg, #171b27, #0b0d14 62%);
  border: 1px solid rgba(230, 220, 255, .14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .06) inset,
    0 60px 100px -50px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(0, 0, 0, .4);
  transform: rotate(-2.2deg);
}
[data-theme="day"] .sv-stage {
  background: linear-gradient(165deg, #fffdf7, #ece5d7 70%);
  border-color: rgba(40, 40, 30, .16);
  box-shadow: 0 1px 0 #fff inset, 0 50px 90px -50px rgba(60, 50, 30, .55), 0 0 0 1px rgba(80, 68, 44, .08);
}
.sv-stage::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(220, 208, 255, .1);
  border-radius: 3px;
  pointer-events: none;
}
[data-theme="day"] .sv-stage::before { border-color: rgba(40, 40, 30, .12); }
.sv-art {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2px;
  background:
    radial-gradient(ellipse 50% 30% at 74% 22%, rgba(255, 226, 174, .34), transparent 62%),
    linear-gradient(175deg, #33405c 0%, #202b42 36%, #121826 68%, #090c13 100%);
}
[data-theme="day"] .sv-art { background: radial-gradient(ellipse 60% 34% at 70% 20%, rgba(255, 244, 210, .7), transparent 60%), linear-gradient(175deg, #bcd2d3 0%, #93aab1 38%, #6f8990 70%, #4d646d 100%); }
.sv-moon {
  position: absolute; right: 18%; top: 15%;
  width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fff3d8, #e0c391 58%, #a98c5d);
  box-shadow: 0 0 40px 10px rgba(255, 224, 170, .26);
  opacity: .9;
}
[data-theme="day"] .sv-moon { background: #fff8e2; box-shadow: 0 0 50px 14px rgba(255, 246, 210, .55); }
.sv-rain { position: absolute; inset: 0; opacity: .5; }
.sv-rain i {
  position: absolute;
  top: -20%; width: 1px; height: 60px;
  background: linear-gradient(180deg, transparent, rgba(212, 224, 255, .55));
  animation: rain-fall 1.6s linear infinite;
}
.sv-rain i:nth-child(1) { left: 12%; animation-delay: -.2s; }
.sv-rain i:nth-child(2) { left: 28%; animation-delay: -.9s; height: 40px; }
.sv-rain i:nth-child(3) { left: 46%; animation-delay: -.5s; }
.sv-rain i:nth-child(4) { left: 63%; animation-delay: -1.2s; height: 36px; }
.sv-rain i:nth-child(5) { left: 79%; animation-delay: -.7s; }
.sv-rain i:nth-child(6) { left: 91%; animation-delay: -1.5s; height: 50px; }
@keyframes rain-fall { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .7; } 100% { transform: translateY(560px); opacity: 0; } }
.sv-ridge {
  position: absolute; left: -8%; right: -8%; bottom: 0; height: 46%;
  background:
    radial-gradient(ellipse 30% 60% at 18% 100%, #06090f 0 70%, transparent 71%),
    radial-gradient(ellipse 44% 72% at 56% 104%, #080b12 0 70%, transparent 71%),
    radial-gradient(ellipse 34% 52% at 92% 100%, #05080d 0 69%, transparent 70%);
  filter: blur(.4px);
}
[data-theme="day"] .sv-ridge { opacity: .92; filter: none; background:
    radial-gradient(ellipse 30% 60% at 18% 100%, #2d4249 0 70%, transparent 71%),
    radial-gradient(ellipse 44% 72% at 56% 104%, #22353c 0 70%, transparent 71%),
    radial-gradient(ellipse 34% 52% at 92% 100%, #2a3d44 0 69%, transparent 70%); }
.sv-tower {
  position: absolute; left: 26%; bottom: 28%;
  width: 34px; height: 74px;
  background: linear-gradient(90deg, #06080d, #10141d);
  clip-path: polygon(0 22%, 50% 0, 100% 18%, 100% 100%, 0 100%);
  opacity: .85;
}
.sv-lantern {
  position: absolute; left: 31.5%; bottom: 33%;
  width: 6px; height: 9px; border-radius: 50%;
  background: #ffcf8a;
  box-shadow: 0 0 14px 4px rgba(255, 190, 110, .55);
  animation: lantern-flicker 3.4s ease-in-out infinite;
}
@keyframes lantern-flicker { 0%, 100% { opacity: .8; } 42% { opacity: 1; } 47% { opacity: .55; } 60% { opacity: .9; } }
.sv-figure {
  position: absolute; left: 47%; bottom: 17%;
  width: 13px; height: 54px;
  background: linear-gradient(180deg, #04060a 40%, #080b11);
  border-radius: 50% 50% 20% 20%;
  opacity: .95;
}
.sv-figure::before {
  content: ""; position: absolute; top: -9px; left: 1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #04060a;
}
.sv-figure::after {
  content: ""; position: absolute; top: 8px; left: 10px;
  width: 1px; height: 44px; background: #04060a;
  transform: rotate(9deg);
  transform-origin: top;
}
.sv-frame-bar {
  position: absolute;
  left: 20px; right: 20px; top: 20px;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 7.5px; letter-spacing: .14em;
  color: rgba(228, 220, 248, .55);
  z-index: 3;
}
[data-theme="day"] .sv-frame-bar { color: rgba(245, 242, 230, .78); }
.sv-frame-bar b { color: #ff8f83; font-size: 6px; vertical-align: middle; }
.sv-caption {
  position: absolute;
  left: 20px; right: 20px; bottom: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  z-index: 3;
}
.sv-caption .cn {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .12em;
  color: #f4eee2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}
[data-theme="day"] .sv-caption .cn { color: #fdfbf2; }
.sv-caption .en {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 6.5px;
  letter-spacing: .16em;
  color: rgba(238, 231, 249, .45);
}
.sv-caption .ratio {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
  color: rgba(238, 231, 249, .55);
  border: 1px solid rgba(238, 231, 249, .25);
  padding: 2px 6px;
  border-radius: 3px;
}
.sv-corners span {
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid rgba(230, 220, 255, .4);
  z-index: 4;
}
.sv-corners span:nth-child(1) { left: 15px; top: 38px; border-right: 0; border-bottom: 0; }
.sv-corners span:nth-child(2) { right: 15px; top: 38px; border-left: 0; border-bottom: 0; }
.sv-corners span:nth-child(3) { left: 15px; bottom: 48px; border-right: 0; border-top: 0; }
.sv-corners span:nth-child(4) { right: 15px; bottom: 48px; border-left: 0; border-top: 0; }

/* 漂浮提示词卡 */
.sv-prompt {
  position: absolute;
  right: -2%;
  bottom: 6%;
  width: 240px;
  padding: 14px 15px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--panel-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.85;
  color: var(--ink-2);
  animation: sv-float 7s ease-in-out infinite;
  z-index: 6;
}
.sv-prompt-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  font-size: 7.5px;
  letter-spacing: .14em;
  color: var(--ink-3);
}
.sv-prompt-head b { color: var(--accent); font-weight: 500; }
.sv-prompt p { margin: 0; }
.sv-prompt .k { color: var(--accent); }
.sv-prompt .ln { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-prompt .caret {
  display: inline-block; width: 5px; height: 10px;
  background: var(--flow); vertical-align: -1px;
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes sv-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-11px) rotate(.6deg); } }

.sv-strip {
  position: absolute;
  left: 50%; bottom: 0;
  width: min(420px, 94%);
  transform: translateX(-50%) rotate(1.4deg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--panel-glass);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  z-index: 5;
}
.sv-cell {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(160deg, #2a3450, #0d1119);
  border: 1px solid rgba(220, 210, 255, .09);
}
[data-theme="day"] .sv-cell { background: linear-gradient(160deg, #b9cbc9, #647b80); border-color: rgba(40, 40, 30, .12); }
.sv-cell::after {
  content: attr(data-n);
  position: absolute; left: 4px; bottom: 2px;
  font-family: var(--font-mono); font-size: 6px; color: rgba(255, 255, 255, .55);
}
.sv-cell:nth-child(1) { background: linear-gradient(140deg, #3a4568, #131a28); }
.sv-cell:nth-child(2) { background: radial-gradient(circle at 70% 30%, #c9a978 0 8%, transparent 30%), linear-gradient(140deg, #26314a, #0c1018); }
.sv-cell:nth-child(3) { background: linear-gradient(140deg, #514866, #191425); }
.sv-cell:nth-child(4) { background: radial-gradient(circle at 30% 70%, #ffce8a 0 5%, transparent 24%), linear-gradient(140deg, #1d2839, #090c12); }
.sv-cell.is-active { outline: 1px solid var(--flow); outline-offset: -1px; }
.sv-badge {
  position: absolute;
  left: -6%;
  top: 15%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--flow) 30%, transparent);
  border-radius: 7px;
  background: var(--panel-glass);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
  z-index: 6;
  animation: sv-float 8s -2s ease-in-out infinite;
}
.sv-badge .dot { width: 5px; height: 5px; }
.sv-vertical {
  position: absolute;
  right: -4%;
  top: 10%;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: .3em;
  color: var(--ink-3);
  opacity: .7;
}
.sv-coord {
  position: absolute;
  left: 2%;
  bottom: 24%;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: .12em;
  color: var(--ink-3);
  opacity: .65;
}

/* ── 流程条 ────────────────────────────────────────────────── */
.flowmap {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px clamp(20px, 2.6vw, 38px) 8px;
}
.flowmap-inner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel-2), transparent);
  overflow: hidden;
}
.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 20px 22px;
}
.step + .step { border-left: 1px solid var(--line); }
.step-n {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  padding-top: 3px;
  letter-spacing: .05em;
}
.step-t { font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.step-d { margin-top: 4px; font-size: 10.5px; line-height: 1.7; color: var(--ink-3); }
.step::after {
  content: "";
  position: absolute; top: 50%; right: -3px;
  width: 5px; height: 5px;
  border-top: 1px solid var(--line-3);
  border-right: 1px solid var(--line-3);
  transform: rotate(45deg) translateY(-50%);
  background: var(--bg);
  z-index: 2;
}
.step:last-child::after { display: none; }

/* ── 作品库 ────────────────────────────────────────────────── */
.library {
  max-width: 1480px;
  margin: 0 auto;
  padding: 40px clamp(20px, 2.6vw, 38px) 28px;
}
.library-eyebrow {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .26em;
  color: var(--ink-4);
  margin-bottom: 14px;
}
.library-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.library-title { display: flex; align-items: baseline; gap: 13px; }
.library-title h2 { font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: .06em; }
.library-title .count {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  letter-spacing: .08em;
}
.library-tools { display: flex; align-items: center; gap: 9px; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--panel-2);
  color: var(--ink-3);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.search-box:focus-within { border-color: var(--line-3); background: var(--panel); }
.search-box .icon { width: 14px; height: 14px; }
.search-box input {
  width: 130px;
  border: 0; outline: none; background: none;
  font-size: 12px; color: var(--ink);
}
.search-box input::placeholder { color: var(--ink-4); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.proj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  background: var(--panel);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), background .3s;
  animation: fade-up .6s var(--ease-out) both;
}
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.proj-card:focus-visible { outline: 2px solid var(--flow-strong); outline-offset: 3px; }
.proj-cover {
  position: relative;
  height: 168px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0c1018;
}
.proj-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 7, 11, .74));
  z-index: 2;
}
[data-theme="day"] .proj-cover::after { background: linear-gradient(180deg, transparent 46%, rgba(25, 25, 18, .42)); }
.cover-art { position: absolute; inset: 0; transition: transform .8s var(--ease-out); }
.proj-card:hover .cover-art { transform: scale(1.045); }
.cover-art .ca-sky {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 70% 24%, rgba(252, 220, 165, .35), transparent 60%),
              linear-gradient(170deg, #2a3652, #121a29 56%, #080b12);
}
.cover-art.art-b .ca-sky { background: radial-gradient(ellipse 60% 44% at 30% 26%, rgba(189, 213, 232, .22), transparent 62%), linear-gradient(170deg, #1b2630, #0c1116 60%, #07090c); }
.cover-art.art-c .ca-sky { background: radial-gradient(ellipse 60% 50% at 74% 20%, rgba(255, 207, 178, .4), transparent 58%), linear-gradient(170deg, #3b3547, #221e2b 50%, #100e15); }
.cover-art.art-d .ca-sky { background: radial-gradient(ellipse 54% 50% at 24% 24%, rgba(235, 240, 221, .34), transparent 60%), linear-gradient(170deg, #314047, #1a2529 54%, #0b1113); }
.cover-art .ca-glow {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  right: 22%; top: 22%;
  background: radial-gradient(circle, #ffeacb, #e8c894 56%, rgba(204, 165, 105, .2) 70%);
  box-shadow: 0 0 50px 12px rgba(255, 224, 170, .28);
}
.cover-art.art-b .ca-glow { right: auto; left: 24%; background: radial-gradient(circle, #f3f8ff, #c8d8e8 60%, rgba(170, 195, 220, .2) 72%); box-shadow: 0 0 46px 10px rgba(200, 222, 240, .22); }
.cover-art.art-c .ca-glow { width: 58px; height: 58px; right: 18%; top: 18%; background: radial-gradient(circle, #ffe2cd, #e6ad8c 60%, rgba(200, 130, 100, .2) 72%); box-shadow: 0 0 56px 14px rgba(255, 190, 160, .22); }
.cover-art.art-d .ca-glow { left: 20%; right: auto; top: 20%; width: 40px; height: 40px; background: radial-gradient(circle, #f6f7ea, #cfd6bd 60%, rgba(170, 190, 160, .2) 72%); box-shadow: 0 0 44px 10px rgba(220, 235, 210, .2); }
.cover-art .ca-ridge-a, .cover-art .ca-ridge-b {
  position: absolute; left: -10%; right: -10%; bottom: 0;
  height: 62%;
  background:
    radial-gradient(ellipse 32% 70% at 14% 100%, #05080d 0 72%, transparent 73%),
    radial-gradient(ellipse 46% 90% at 54% 104%, #070a10 0 72%, transparent 73%),
    radial-gradient(ellipse 38% 62% at 94% 100%, #04070b 0 72%, transparent 73%);
}
.cover-art .ca-ridge-b { height: 40%; opacity: .85; transform: translateY(16px); }
.cover-art.art-b .ca-ridge-a { background: radial-gradient(ellipse 50% 70% at 20% 100%, #0a1014 0 72%, transparent 73%), radial-gradient(ellipse 44% 84% at 74% 104%, #070b0e 0 72%, transparent 73%); }
.cover-art.art-c .ca-ridge-a { background: radial-gradient(ellipse 36% 66% at 18% 100%, #17121b 0 72%, transparent 73%), radial-gradient(ellipse 52% 88% at 62% 104%, #120e16 0 72%, transparent 73%), radial-gradient(ellipse 42% 56% at 96% 100%, #0e0a12 0 72%, transparent 73%); }
.cover-art .ca-pillar {
  position: absolute; bottom: 20%; width: 8px; border-radius: 1px 1px 0 0;
  background: linear-gradient(180deg, #151b27, #05070b);
}
.cover-art .ca-pillar.p1 { left: 13%; height: 70px; }
.cover-art .ca-pillar.p2 { left: 17%; height: 46px; }
.cover-art .ca-pillar.p3 { right: 13%; height: 62px; }
.cover-art .ca-window {
  position: absolute; right: 7%; bottom: 24%;
  width: 54px; height: 66px;
  border: 1px solid rgba(255, 218, 160, .35);
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 218, 160, .3) 49% 51%, transparent 52%),
    linear-gradient(180deg, rgba(255, 205, 140, .16), rgba(255, 190, 120, .04));
  box-shadow: 0 0 30px rgba(255, 190, 120, .12);
}
.cover-art .ca-figure {
  position: absolute; left: 48%; bottom: 15%;
  width: 11px; height: 40px;
  background: #04060a; border-radius: 45% 45% 20% 20%;
}
.cover-art .ca-figure::before { content: ""; position: absolute; top: -7px; left: 1px; width: 9px; height: 9px; border-radius: 50%; background: #04060a; }
.cover-art .ca-haze {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(180deg, transparent, rgba(140, 160, 190, .12));
  backdrop-filter: blur(1px);
}
.proj-cover-meta {
  position: absolute; left: 16px; right: 16px; top: 13px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .13em;
  color: rgba(245, 240, 255, .62);
}
.proj-cover-meta .rec { display: inline-flex; align-items: center; gap: 5px; }
.proj-cover-meta .rec i { width: 4px; height: 4px; border-radius: 50%; background: #ff8178; }
.proj-cover-title {
  position: absolute; left: 18px; right: 18px; bottom: 14px;
  z-index: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.proj-cover-title h3 {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 500;
  letter-spacing: .1em;
  color: #f6f1e6;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
.proj-cover-title .ratio-chip {
  font-family: var(--font-mono);
  font-size: 8px; letter-spacing: .08em;
  color: rgba(245, 240, 255, .72);
  border: 1px solid rgba(245, 240, 255, .28);
  border-radius: 3px;
  padding: 2px 6px;
  white-space: nowrap;
}
.proj-menu {
  position: absolute; right: 12px; top: 10px; z-index: 5;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px;
  color: rgba(245, 240, 255, .6);
  opacity: 0;
  transition: all var(--t-fast);
}
.proj-card:hover .proj-menu, .proj-menu:focus-visible { opacity: 1; }
.proj-menu:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.proj-body { display: flex; flex-direction: column; gap: 13px; padding: 17px 18px 16px; flex: 1; }
.proj-desc {
  font-size: 12px; line-height: 1.75; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 42px;
}
.proj-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.proj-meta-row .chip { height: 23px; font-size: 10.5px; }
.proj-progress { margin-top: auto; }
.proj-progress-head {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .06em; color: var(--ink-3);
  margin-bottom: 6px;
}
.proj-progress-head b { color: var(--ink-2); font-weight: 500; }
.proj-bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.proj-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--flow-soft), var(--flow)); border-radius: 2px; }
.proj-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 10.5px; color: var(--ink-3);
}
.proj-foot .open { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-size: 11px; }
.proj-foot .open .icon { width: 13px; height: 13px; transition: transform var(--t-fast); }
.proj-card:hover .proj-foot .open .icon { transform: translateX(3px); }

.new-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 320px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, transparent, var(--flow-faint));
  color: var(--ink-3);
  transition: all .3s var(--ease);
}
.new-card:hover { border-color: var(--line-3); color: var(--ink); background: var(--accent-soft); }
.new-card .nc-icon {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--accent);
  transition: transform .3s var(--ease-out);
}
.new-card:hover .nc-icon { transform: rotate(90deg); }
.new-card b { font-size: 13px; font-weight: 600; }
.new-card span { font-size: 11px; color: var(--ink-3); }

/* ── 首页页脚 ──────────────────────────────────────────────── */
.home-footer {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  padding: 26px clamp(20px, 3.4vw, 52px) 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .1em;
  color: var(--ink-3);
}
.home-footer .foot-left { display: flex; align-items: center; gap: 10px; }
.home-footer .foot-left .dot { width: 4px; height: 4px; }
.home-footer kbd {
  border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 5px;
  font-family: var(--font-mono); font-size: 8px;
}

/* 覆盖层菜单 */
.popmenu {
  position: fixed;
  z-index: 300;
  min-width: 158px;
  padding: 5px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  animation: scale-in .16s var(--ease-out) both;
}
.popmenu button {
  display: flex; align-items: center; gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-2);
  text-align: left;
}
.popmenu button:hover { background: var(--accent-soft); color: var(--ink); }
.popmenu button.danger { color: var(--danger); }
.popmenu button.danger:hover { background: var(--danger-soft); }
.popmenu .icon { width: 14px; height: 14px; }
.popmenu hr { border: 0; height: 1px; background: var(--line); margin: 4px 6px; }
