.title-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/img/bg/title.webp") center / cover no-repeat;
  animation: title-drift 40s ease-in-out infinite alternate;
}
@keyframes title-drift { from { transform: scale(1) translateX(0); } to { transform: scale(1.06) translateX(-14px); } }

.title-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 7, 12, 0.94) 0%, rgba(4, 7, 12, 0.78) 34%, rgba(4, 7, 12, 0.25) 62%, rgba(4, 7, 12, 0.05) 100%),
    linear-gradient(0deg, rgba(4, 7, 12, 0.85) 0%, rgba(4, 7, 12, 0) 30%, rgba(4, 7, 12, 0) 75%, rgba(4, 7, 12, 0.6) 100%);
}

.title-dust { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.title-dust i {
  position: absolute;
  left: var(--x);
  bottom: -10px;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: rgba(220, 232, 236, 0.7);
  box-shadow: 0 0 6px rgba(95, 211, 208, 0.6);
  opacity: 0;
  animation: dust var(--d) linear var(--dl) infinite;
}
@keyframes dust {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: 0.7; }
  85% { opacity: 0.35; }
  100% { transform: translateY(-760px) translateX(40px); opacity: 0; }
}

.title-frame {
  position: absolute;
  inset: 0;
  padding: 34px 56px 30px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.title-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: 3px; color: var(--dim); }
.title-mark { display: flex; align-items: center; gap: 12px; color: var(--cyan); }
.title-mark svg { filter: drop-shadow(0 0 8px rgba(95, 211, 208, 0.5)); }
.title-mark-cn { font-family: var(--font); font-size: 14px; letter-spacing: 3px; color: var(--text); }
.title-mark-en { margin-top: 2px; font-size: 11px; }
.title-top-right { display: flex; align-items: center; gap: 10px; }
.title-led { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: led 1.6s ease-in-out infinite; }
@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.title-brand { align-self: center; margin-top: -10px; animation: rise 0.9s var(--ease) both; }
.title-kicker { font-size: 14px; letter-spacing: 4px; color: var(--cyan); margin-bottom: 14px; }
.title-kicker::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--cyan); vertical-align: middle; margin-right: 14px; }
.title-cn {
  font-size: 112px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 14px;
  color: #f3f7f8;
  text-shadow: 0 0 40px rgba(95, 211, 208, 0.25), 0 6px 30px rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, #ffffff 0%, #dce8ec 55%, #9fb6c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.title-en { display: flex; align-items: center; gap: 16px; margin-top: 14px; font-family: var(--mono); font-size: 20px; letter-spacing: 12px; color: var(--amber); }
.title-en i { width: 6px; height: 6px; background: var(--amber); transform: rotate(45deg); }
.title-tagline { margin-top: 26px; font-size: 17px; line-height: 1.9; letter-spacing: 2px; color: rgba(220, 232, 236, 0.82); border-left: 2px solid rgba(232, 178, 76, 0.7); padding-left: 16px; }

.title-panel { display: flex; align-items: flex-end; gap: 48px; margin-top: 36px; animation: rise 0.9s 0.15s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.title-menu { display: flex; flex-direction: column; gap: 2px; width: 400px; }
.title-menu-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 11px 16px 11px 12px;
  background: transparent;
  border: 0;
  border-left: 2px solid transparent;
  color: rgba(220, 232, 236, 0.78);
  font-size: 19px;
  letter-spacing: 4px;
  text-align: left;
  transition: all 0.22s var(--ease);
}
.title-menu-index { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; color: var(--dim); transition: color 0.2s; }
.title-menu-label { font-weight: 500; }
.title-menu-arrow { font-size: 12px; letter-spacing: 1px; color: var(--dim); font-family: var(--font); opacity: 0; transform: translateX(-6px); transition: all 0.22s; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title-menu-item:hover, .title-menu-item:focus-visible {
  outline: none;
  background: linear-gradient(90deg, rgba(95, 211, 208, 0.16), rgba(95, 211, 208, 0));
  border-left-color: var(--cyan);
  color: #fff;
  padding-left: 20px;
}
.title-menu-item:hover .title-menu-index, .title-menu-item:focus-visible .title-menu-index { color: var(--cyan); }
.title-menu-item:hover .title-menu-arrow, .title-menu-item:focus-visible .title-menu-arrow { opacity: 1; transform: translateX(0); }
.title-menu-item:disabled { color: rgba(143, 164, 174, 0.45); }
.title-menu-item:disabled:hover { background: none; border-left-color: transparent; padding-left: 12px; }
.title-menu-item:disabled:hover .title-menu-arrow { opacity: 1; }

.title-summary { display: flex; gap: 26px; padding-bottom: 14px; margin-left: auto; }
.summary-cell { display: flex; flex-direction: column; align-items: flex-end; }
.summary-cell b { font-family: var(--mono); font-size: 30px; font-weight: 600; color: var(--amber); line-height: 1.1; }
.summary-cell span { font-size: 12px; letter-spacing: 2px; color: var(--dim); }

.title-foot { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--dim); border-top: 1px solid rgba(220, 232, 236, 0.08); padding-top: 14px; }
.title-foot-audio { color: var(--cyan); }

/* ---------- 通用页面（收藏室 / 制作人员） ---------- */
.page { position: absolute; inset: 0; padding: 30px 56px 34px; display: flex; flex-direction: column; background: radial-gradient(ellipse at 20% 0%, #121b28 0%, var(--bg) 55%); }
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/img/bg/title.webp") center / cover no-repeat;
  opacity: 0.18;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  pointer-events: none;
}
.page > * { position: relative; }
.page-head { display: flex; align-items: center; gap: 24px; }
.back-btn { align-self: flex-start; }
.page-title { display: flex; align-items: baseline; gap: 14px; }
.page-title-cn { font-size: 30px; font-weight: 800; letter-spacing: 8px; }
.page-title-en { font-family: var(--mono); font-size: 13px; letter-spacing: 5px; color: var(--cyan); }
.gallery-count { margin-left: auto; font-family: var(--mono); font-size: 13px; letter-spacing: 2px; color: var(--amber); }

/* ---------- 收藏室 ---------- */
.gallery-tabs { display: flex; gap: 6px; margin-top: 20px; border-bottom: 1px solid var(--line-soft); }
.gallery-body { flex: 1; min-height: 0; margin-top: 20px; overflow-y: auto; padding-right: 6px; }
.gallery-grid { display: grid; gap: 16px; align-items: start; align-content: start; grid-auto-rows: max-content; }
.gallery-grid.endings { grid-template-columns: repeat(4, 1fr); }
.gallery-grid.cgs { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.profiles { grid-template-columns: repeat(6, 1fr); }

.g-card { display: flex; flex-direction: column; border: 1px solid var(--line-soft); background: rgba(14, 21, 32, 0.7); transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.g-card.clickable { cursor: pointer; }
.g-card.on.clickable:hover, .g-card.on.clickable:focus-visible { border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(95, 211, 208, 0.3); outline: none; }
.g-card.locked { opacity: 0.72; }
.g-thumb { position: relative; aspect-ratio: 16 / 9; background: #0a0f18 center / cover no-repeat; }
.g-thumb.figure { aspect-ratio: 3 / 4; background-size: contain; background-position: bottom center; background-color: #0d141f; }
.card-silhouette { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(143, 164, 174, 0.5); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 8px, transparent 8px 16px); }
.card-silhouette svg { width: 32px; height: 32px; }
.g-card.locked .g-thumb { filter: grayscale(1) brightness(0.35); }
.g-meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.g-label { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--dim); }
.g-type { font-weight: 600; }
.g-title { font-size: 17px; font-weight: 600; letter-spacing: 1px; }
.g-sub { font-size: 12px; color: var(--dim); line-height: 1.5; }
.tier-dots { display: flex; gap: 6px; margin-top: 6px; }
.tier-dot { width: 22px; height: 4px; background: rgba(255, 255, 255, 0.12); transition: background 0.3s; }
.tier-dot.on { background: var(--cyan); box-shadow: 0 0 8px rgba(95, 211, 208, 0.6); }

.lightbox { width: 1120px; }
.lightbox-img { aspect-ratio: 16 / 9; background: #000 center / contain no-repeat; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }

/* ---------- 制作人员 ---------- */
.about-grid { flex: 1; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; margin-top: 26px; align-content: start; }
.about-box { border: 1px solid var(--line-soft); background: rgba(14, 21, 32, 0.7); padding: 22px 24px; }
.about-box h3 { font-size: 13px; letter-spacing: 4px; color: var(--cyan); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.about-lead { font-size: 15px; line-height: 1.9; color: var(--text); }
.credits { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.credit-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; font-size: 14px; line-height: 1.7; }
.credit-row dt { color: var(--dim); letter-spacing: 1px; }
.credit-row dd { color: var(--text); }
.about-box.note p { font-size: 14px; line-height: 1.9; color: rgba(220, 232, 236, 0.8); }
.about-box.note p + p { margin-top: 6px; }
.about-foot { margin-top: 18px; font-family: var(--mono); font-size: 12px; letter-spacing: 4px; color: var(--dim); text-align: right; }
