/* ==========================================================================
   峡谷档案 · 王者荣耀英雄资料查询助手
   HTML + CSS + Node.js / 原创视觉系统
   ========================================================================== */

:root {
  --bg-0: #06080c;
  --bg-1: #090c12;
  --bg-2: #0f141c;
  --bg-3: #151b25;
  --panel: rgba(16, 21, 29, 0.72);
  --panel-solid: #11161f;
  --line: rgba(224, 202, 160, 0.13);
  --line-strong: rgba(224, 202, 160, 0.28);
  --line-bright: rgba(240, 216, 166, 0.48);
  --text: #eee7d9;
  --text-soft: #d2c9b8;
  --muted: #9b958a;
  --muted-2: #6f6c64;
  --gold: #d7b16a;
  --gold-light: #f2d79b;
  --gold-deep: #9d7435;
  --cinnabar: #b83c2e;
  --cinnabar-light: #df6351;
  --jade: #6fb8a8;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --kai: "KaiTi", "STKaiti", "Kaiti SC", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  --max-width: 1320px;
  --radius: 18px;
  --radius-small: 10px;
  --shadow-heavy: 0 40px 100px -40px rgba(0, 0, 0, 0.95);
  --transition: 220ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(215, 177, 106, 0.35) #080b10;
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  background:
    radial-gradient(1100px 760px at 8% -12%, rgba(66, 93, 138, 0.22), transparent 62%),
    radial-gradient(900px 720px at 98% 8%, rgba(148, 101, 48, 0.13), transparent 60%),
    linear-gradient(180deg, #06080c 0%, #080b10 42%, #06080c 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  color: #101014;
  background: var(--gold-light);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #070a0e;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4c3d27, #8d6b38);
  border: 2px solid #070a0e;
  border-radius: 999px;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   背景氛围
   -------------------------------------------------------------------------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 20s ease-in-out infinite alternate;
}

.ambient__orb--one {
  width: 40vw;
  height: 40vw;
  left: -16vw;
  top: 4vh;
  background: rgba(49, 79, 122, 0.34);
}

.ambient__orb--two {
  width: 34vw;
  height: 34vw;
  right: -12vw;
  top: 28vh;
  background: rgba(132, 86, 36, 0.2);
  animation-delay: -7s;
}

.ambient__orb--three {
  width: 32vw;
  height: 32vw;
  left: 32vw;
  bottom: -18vw;
  background: rgba(94, 42, 37, 0.18);
  animation-delay: -12s;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(221, 200, 158, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221, 200, 158, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(circle at 50% 18%, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 18%, black 0%, transparent 72%);
}

.ambient__noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.petal-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.petal-field i {
  position: absolute;
  top: -8vh;
  width: 8px;
  height: 12px;
  border-radius: 70% 20% 70% 30%;
  background: linear-gradient(135deg, rgba(240, 188, 180, 0.55), rgba(166, 69, 61, 0.15));
  opacity: 0;
  animation: petal-fall linear infinite;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(5vw, 5vh, 0) scale(1.15);
  }
}

@keyframes petal-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  10% {
    opacity: 0.5;
  }
  80% {
    opacity: 0.28;
  }
  100% {
    opacity: 0;
    transform: translate3d(12vw, 112vh, 0) rotate(540deg);
  }
}

/* --------------------------------------------------------------------------
   通用元素
   -------------------------------------------------------------------------- */

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.7rem 1rem;
  color: #0b0d10;
  background: var(--gold-light);
  border-radius: 6px;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.eyebrow__line {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: #171208;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, #b68742);
  border-color: rgba(255, 241, 207, 0.5);
  box-shadow: 0 12px 30px -16px rgba(215, 177, 106, 0.8);
}

.btn--primary:hover {
  box-shadow: 0 18px 36px -18px rgba(215, 177, 106, 0.9);
}

.btn--ghost {
  color: var(--gold-light);
  background: rgba(215, 177, 106, 0.04);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: rgba(215, 177, 106, 0.1);
  border-color: var(--line-bright);
}

.btn--small {
  min-height: 38px;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
}

.btn--tiny {
  min-height: 32px;
  padding: 0.3rem 0.8rem;
  font-size: 0.72rem;
}

.text-btn {
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  font-size: 0.78rem;
  cursor: pointer;
  transition:
    color var(--transition),
    border-color var(--transition);
}

.text-btn:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.section {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 7.5rem clamp(1.2rem, 4vw, 2.4rem);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  margin-top: 0.9rem;
  font-size: clamp(2.5rem, 4.6vw, 4.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.section-heading > div > p {
  max-width: 560px;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.index-meta {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.index-meta strong {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   顶部导航
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
  padding: 1.15rem clamp(1.2rem, 4vw, 3.4rem);
  border-bottom: 1px solid transparent;
  transition:
    background var(--transition),
    border-color var(--transition),
    padding var(--transition),
    backdrop-filter var(--transition);
}

.site-header.is-scrolled {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
  background: rgba(6, 8, 12, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand__seal {
  display: grid;
  grid-template-rows: 1fr 1fr;
  place-items: center;
  width: 39px;
  height: 46px;
  padding: 4px;
  color: #f6e5c7;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(145deg, #c24a35, #8c2a21);
  border: 1px solid rgba(246, 214, 165, 0.72);
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 2px rgba(92, 24, 18, 0.36),
    0 8px 24px -12px rgba(184, 60, 46, 0.7);
  font-family: var(--kai);
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.08em;
  transform: rotate(-2deg);
}

.brand__seal--small {
  width: 34px;
  height: 40px;
  font-size: 0.62rem;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.brand__text small {
  margin-top: 0.2rem;
  color: var(--muted-2);
  font-family: Georgia, serif;
  font-size: 0.53rem;
  letter-spacing: 0.34em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 0.4rem 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  transition: color var(--transition);
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--gold-light);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.favorite-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.72rem;
  cursor: pointer;
  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.favorite-toggle:hover,
.favorite-toggle[aria-pressed="true"] {
  color: var(--gold-light);
  background: rgba(215, 177, 106, 0.08);
  border-color: var(--line-bright);
}

.favorite-toggle__star {
  color: var(--gold);
  font-size: 0.9rem;
  line-height: 1;
}

.favorite-toggle__count {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  color: #141009;
  background: var(--gold);
  border-radius: 999px;
  font-family: Georgia, serif;
  font-size: 0.62rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   首屏
   -------------------------------------------------------------------------- */

.hero-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 8.5rem clamp(1.2rem, 4vw, 2.4rem) 4.5rem;
}

.hero-banner::before {
  position: absolute;
  top: 12%;
  left: 50%;
  width: min(820px, 90vw);
  height: 520px;
  background: radial-gradient(ellipse, rgba(160, 117, 57, 0.09), transparent 68%);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.hero-banner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6.5rem);
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-copy {
  max-width: 680px;
  animation: reveal-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy h1 {
  margin-top: 1.3rem;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0.025em;
}

.hero-copy h1 span {
  display: block;
  color: var(--text);
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.hero-copy h1 em {
  position: relative;
  display: inline-block;
  padding-bottom: 0.08em;
  color: transparent;
  background: linear-gradient(110deg, #f7e6c3 4%, var(--gold-light) 30%, var(--gold) 58%, #b88742 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: normal;
  filter: drop-shadow(0 16px 38px rgba(186, 141, 73, 0.16));
}

.hero-copy h1 em::after {
  position: absolute;
  right: 0.04em;
  bottom: -0.03em;
  width: 62%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 189, 121, 0.55), transparent);
  content: "";
}

.hero-copy__lead {
  max-width: 560px;
  margin-top: 1.55rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.95;
  letter-spacing: 0.02em;
}

/* 搜索 */

.search-wrap {
  position: relative;
  z-index: 10;
  max-width: 620px;
  margin-top: 2.2rem;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  height: 64px;
  padding: 0 0.45rem 0 1.25rem;
  background:
    linear-gradient(180deg, rgba(21, 27, 37, 0.9), rgba(11, 15, 21, 0.94));
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow:
    0 24px 60px -34px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.search-bar:focus-within {
  border-color: rgba(232, 201, 141, 0.65);
  box-shadow:
    0 26px 70px -34px rgba(0, 0, 0, 0.95),
    0 0 0 3px rgba(215, 177, 106, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.search-bar__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
  opacity: 0.85;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.search-bar input::placeholder {
  color: var(--muted-2);
}

.search-bar input::-webkit-search-cancel-button {
  filter: invert(0.7);
}

.search-bar__kbd {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: Georgia, serif;
  font-size: 0.7rem;
}

.search-bar__submit {
  height: 48px;
  padding: 0 1.2rem;
  color: #171208;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, #b3833e);
  border: 0;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition:
    filter var(--transition),
    transform var(--transition);
}

.search-bar__submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 370px;
  padding: 0.45rem;
  overflow-y: auto;
  background: rgba(11, 15, 21, 0.97);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-heavy);
  backdrop-filter: blur(20px);
  animation: reveal-up 0.2s ease both;
}

.suggestion {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.7rem 0.75rem;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.suggestion:hover,
.suggestion.is-active {
  background: rgba(215, 177, 106, 0.09);
}

.suggestion__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  background: var(--accent, var(--gold));
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, var(--gold)) 14%, transparent);
}

.suggestion__main {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
}

.suggestion__name {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}

.suggestion__title {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion__faction {
  flex-shrink: 0;
  color: var(--muted-2);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.suggestion__empty {
  padding: 1.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

/* 热门与统计 */

.hot-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin-top: 1.1rem;
  color: var(--muted-2);
  font-size: 0.7rem;
}

.hot-searches span {
  letter-spacing: 0.14em;
}

.hot-searches button {
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(215, 177, 106, 0.18);
  font-size: 0.7rem;
  cursor: pointer;
  transition:
    color var(--transition),
    border-color var(--transition);
}

.hot-searches button:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.hero-metrics {
  display: flex;
  gap: 0;
  margin-top: 2.8rem;
}

.metric {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0 2.2rem;
  border-left: 1px solid var(--line);
}

.metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.metric strong {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
}

.metric span {
  color: var(--muted-2);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

/* 今日档案 */

.spotlight-wrap {
  position: relative;
  justify-self: end;
  width: min(100%, 426px);
  animation: reveal-up 1s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.spotlight-wrap::before {
  position: absolute;
  inset: 10% -8% -8%;
  background: radial-gradient(ellipse at 50% 50%, rgba(187, 142, 76, 0.18), transparent 64%);
  content: "";
  filter: blur(36px);
  pointer-events: none;
}

.spotlight {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--panel-solid);
  border: 1px solid rgba(225, 197, 143, 0.24);
  border-radius: 4px 4px 4px 42px;
  box-shadow:
    0 40px 100px -46px rgba(0, 0, 0, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  isolation: isolate;
  animation: float-slow 9s ease-in-out infinite;
}

.spotlight__art {
  position: absolute;
  inset: 0;
}

.spotlight__art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.spotlight__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.08) 0%, transparent 34%, rgba(6, 8, 12, 0.72) 70%, rgba(6, 8, 12, 0.96) 100%),
    linear-gradient(90deg, rgba(6, 8, 12, 0.3), transparent 44%);
}

.spotlight__frame {
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid rgba(242, 215, 155, 0.2);
  border-radius: 2px 2px 2px 30px;
  pointer-events: none;
}

.spotlight__frame::before,
.spotlight__frame::after {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(242, 215, 155, 0.65);
  content: "";
}

.spotlight__frame::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.spotlight__frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.spotlight__info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  padding: 2rem 2rem 2.1rem;
}

.spotlight__label {
  color: var(--gold);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.spotlight__info h2 {
  margin-top: 0.45rem;
  color: #f4ead7;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.spotlight__info > p {
  margin-top: 0.25rem;
  color: var(--gold);
  font-family: var(--kai);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
}

.spotlight__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.spotlight__tags span {
  padding: 0.18rem 0.55rem;
  color: var(--text-soft);
  background: rgba(8, 11, 16, 0.44);
  border: 1px solid rgba(236, 211, 164, 0.2);
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(4px);
}

.spotlight__open {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
  padding: 0.5rem 0;
  color: var(--gold-light);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(242, 215, 155, 0.4);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  cursor: pointer;
  transition:
    gap var(--transition),
    border-color var(--transition);
}

.spotlight__open:hover {
  gap: 1rem;
  border-bottom-color: var(--gold-light);
}

.spotlight__side {
  position: absolute;
  top: 2rem;
  right: -2.4rem;
  z-index: 3;
  color: rgba(226, 204, 162, 0.45);
  font-family: var(--kai);
  font-size: 0.64rem;
  letter-spacing: 0.34em;
  writing-mode: vertical-rl;
}

.art-note {
  margin-top: 1.1rem;
  color: var(--muted-2);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-align: right;
}

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted-2);
  font-family: Georgia, serif;
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 44px;
  overflow: hidden;
  background: rgba(215, 177, 106, 0.17);
}

.scroll-cue i::after {
  position: absolute;
  top: -50%;
  left: 0;
  width: 1px;
  height: 50%;
  background: linear-gradient(180deg, transparent, var(--gold));
  content: "";
  animation: scroll-line 2.2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(300%);
  }
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   图鉴筛选
   -------------------------------------------------------------------------- */

.archive {
  padding-top: 6rem;
}

.archive::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  content: "";
  transform: translateX(-50%);
}

.filter-panel {
  padding: 1.25rem 1.35rem;
  background:
    linear-gradient(180deg, rgba(20, 25, 34, 0.68), rgba(11, 15, 21, 0.58));
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.role-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.filter-chip svg {
  width: 13px;
  height: 13px;
  opacity: 0.7;
}

.filter-chip:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.filter-chip.is-active {
  color: #191307;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: rgba(255, 244, 214, 0.6);
  font-weight: 700;
}

.filter-chip.is-active svg {
  opacity: 0.85;
}

.select-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.select-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 132px;
}

.select-field > span {
  color: var(--muted-2);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

.select-field select {
  height: 38px;
  padding: 0 2rem 0 0.7rem;
  color: var(--text-soft);
  background-color: rgba(8, 11, 16, 0.72);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) 16px,
    calc(100% - 9px) 16px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  font-size: 0.72rem;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition);
}

.select-field select:hover,
.select-field select:focus {
  border-color: var(--line-bright);
}

.select-field option {
  color: var(--text);
  background: #11161f;
}

.check-field {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 38px;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.7rem;
  cursor: pointer;
  user-select: none;
}

.check-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.check-field__box {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  transition:
    background var(--transition),
    border-color var(--transition);
}

.check-field input:checked + .check-field__box {
  background: var(--gold);
  border-color: var(--gold-light);
}

.check-field input:checked + .check-field__box::after {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border-right: 1.5px solid #171208;
  border-bottom: 1.5px solid #171208;
  content: "";
  transform: rotate(42deg);
}

.check-field input:focus-visible + .check-field__box {
  box-shadow: 0 0 0 3px rgba(215, 177, 106, 0.2);
}

.check-field--compact {
  min-height: 32px;
  margin-left: 0;
  font-size: 0.68rem;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
}

.active-filters:empty {
  display: none;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.6rem;
  color: var(--gold-light);
  background: rgba(215, 177, 106, 0.07);
  border: 1px solid rgba(215, 177, 106, 0.22);
  border-radius: 999px;
  font-size: 0.65rem;
}

.active-chip button {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  padding: 0;
  color: var(--gold);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
}

.active-chip button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   英雄卡片
   -------------------------------------------------------------------------- */

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 1.35rem;
  margin-top: 1.7rem;
  transition: opacity 180ms ease;
}

.hero-grid.is-loading {
  opacity: 0.4;
  pointer-events: none;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20, 26, 35, 0.86), rgba(9, 12, 17, 0.94));
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition:
    transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color var(--transition),
    box-shadow 360ms ease;
  animation: card-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}

.hero-card::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--gold)), transparent);
  content: "";
  opacity: 0;
  transition: opacity var(--transition);
}

.hero-card:hover {
  border-color: rgba(225, 195, 138, 0.4);
  box-shadow:
    0 30px 70px -36px rgba(0, 0, 0, 0.95),
    0 0 0 1px color-mix(in srgb, var(--accent, var(--gold)) 16%, transparent);
  transform: translateY(-7px);
}

.hero-card:hover::after {
  opacity: 0.8;
}

.hero-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.hero-card__art {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0b0e13;
}

.hero-card__art::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.18) 0%, transparent 30%, transparent 68%, rgba(5, 7, 10, 0.6) 100%);
  content: "";
  pointer-events: none;
}

.hero-card__art svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-card:hover .hero-card__art svg {
  transform: scale(1.035);
}

.hero-card__top {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.faction-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  color: var(--faction, var(--gold-light));
  background: rgba(7, 10, 14, 0.54);
  border: 1px solid color-mix(in srgb, var(--faction, var(--gold)) 35%, transparent);
  border-radius: 999px;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
}

.faction-pill::before {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--faction, var(--gold));
  border-radius: 50%;
  content: "";
}

.card-fav {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: rgba(238, 231, 217, 0.6);
  background: rgba(7, 10, 14, 0.5);
  border: 1px solid rgba(238, 231, 217, 0.14);
  border-radius: 50%;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.card-fav:hover {
  color: var(--gold-light);
  border-color: rgba(215, 177, 106, 0.6);
  transform: scale(1.08);
}

.card-fav.is-fav {
  color: #1b1408;
  background: var(--gold);
  border-color: var(--gold-light);
}

.hero-card__no {
  position: absolute;
  right: 0.8rem;
  bottom: 0.35rem;
  z-index: 2;
  color: rgba(240, 225, 194, 0.22);
  font-family: Georgia, serif;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-card__body {
  padding: 1.05rem 1.1rem 1rem;
}

.hero-card__name-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.hero-card__name-row h3 {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.hero-card__name-row span {
  flex-shrink: 1;
  max-width: 46%;
  overflow: hidden;
  color: var(--muted-2);
  font-family: Georgia, serif;
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-card__title {
  margin-top: 0.18rem;
  color: var(--gold);
  font-family: var(--kai);
  font-size: 0.73rem;
  letter-spacing: 0.14em;
}

.hero-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.7rem;
}

.role-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.16rem 0.42rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 4px;
  font-size: 0.58rem;
  letter-spacing: 0.05em;
}

.role-tag svg {
  width: 10px;
  height: 10px;
  opacity: 0.7;
}

.hero-card__foot {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  color: var(--muted-2);
  border-top: 1px solid rgba(224, 202, 160, 0.08);
  font-size: 0.6rem;
}

.difficulty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.difficulty__track {
  position: relative;
  width: 38px;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
}

.difficulty__track i {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--jade), var(--gold), var(--cinnabar-light));
  border-radius: inherit;
}

.relation-count {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}

.relation-count::before {
  width: 4px;
  height: 4px;
  background: var(--accent, var(--gold));
  border-radius: 50%;
  content: "";
  opacity: 0.8;
}

.card-arrow {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--gold);
  border: 1px solid rgba(215, 177, 106, 0.28);
  border-radius: 50%;
  font-size: 0.65rem;
  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.hero-card:hover .card-arrow {
  color: #171208;
  background: var(--gold);
  transform: rotate(45deg);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 空状态与加载 */

.empty-state {
  padding: 4.5rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.012);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
}

.empty-state__seal {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--kai);
  font-size: 1.1rem;
}

.empty-state h3 {
  margin-top: 1rem;
  font-size: 1.4rem;
  font-weight: 500;
}

.empty-state p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.empty-state .btn {
  margin-top: 1.4rem;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.load-more-wrap .btn {
  min-width: 200px;
}

/* --------------------------------------------------------------------------
   关系星图
   -------------------------------------------------------------------------- */

.relations-section {
  padding-top: 5.5rem;
}

.relations-section::before {
  position: absolute;
  inset: 4rem calc(50% - 50vw) 4rem;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(58, 79, 113, 0.14), transparent 62%),
    linear-gradient(180deg, transparent, rgba(8, 11, 16, 0.58) 20%, rgba(8, 11, 16, 0.58) 80%, transparent);
  content: "";
  pointer-events: none;
}

.section-heading--relations {
  margin-bottom: 1.8rem;
}

.graph-summary {
  display: flex;
  gap: 1.6rem;
  padding-bottom: 0.4rem;
  color: var(--muted-2);
  font-size: 0.7rem;
}

.graph-summary strong {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
}

.graph-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.graph-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.graph-type {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 32px;
  padding: 0.3rem 0.7rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.66rem;
  cursor: pointer;
  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.graph-type::before {
  width: 5px;
  height: 5px;
  background: var(--type-color, var(--gold));
  border-radius: 50%;
  content: "";
}

.graph-type:hover {
  color: var(--text-soft);
  border-color: var(--line-strong);
}

.graph-type.is-active {
  color: #171208;
  background: var(--gold);
  border-color: var(--gold-light);
  font-weight: 700;
}

.graph-type.is-active::before {
  background: #171208;
}

.graph-toolbar__right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.graph-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1rem;
}

.graph-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(circle at 48% 44%, rgba(44, 61, 88, 0.2), transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(12, 16, 23, 0.5), rgba(6, 9, 13, 0.94) 78%);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.38);
}

.graph-stage::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(225, 204, 163, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(225, 204, 163, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  mask-image: radial-gradient(circle, black 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle, black 10%, transparent 78%);
  pointer-events: none;
}

#relationGraph {
  display: block;
  width: 100%;
  height: 620px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

#relationGraph.is-dragging {
  cursor: grabbing;
}

.graph-edge {
  fill: none;
  stroke-linecap: round;
  transition: opacity 200ms ease;
}

.graph-edge.is-fan {
  stroke-dasharray: 4 7;
}

.graph-edge.is-dim {
  opacity: 0.06 !important;
}

.graph-edge.is-lit {
  opacity: 0.95 !important;
}

.graph-node {
  cursor: pointer;
  transition: opacity 200ms ease;
}

.graph-node .node-halo {
  opacity: 0.12;
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.graph-node .node-core {
  transition:
    stroke var(--transition),
    stroke-width var(--transition),
    filter var(--transition);
}

.graph-node:hover .node-halo,
.graph-node.is-selected .node-halo {
  opacity: 0.32;
}

.graph-node:hover .node-core,
.graph-node.is-selected .node-core {
  stroke: #f7e8c8;
  stroke-width: 2.5px;
  filter: drop-shadow(0 0 8px rgba(247, 232, 200, 0.55));
}

.graph-node:focus {
  outline: none;
}

.graph-node:focus-visible .node-core {
  stroke: #f7e8c8;
  stroke-width: 2.5px;
  filter: drop-shadow(0 0 6px rgba(247, 232, 200, 0.5));
}

.graph-node.is-dim {
  opacity: 0.12;
}

.graph-label {
  fill: #ded5c4;
  stroke: #070a0e;
  stroke-width: 3px;
  paint-order: stroke;
  font-family: var(--sans);
  font-size: 10.5px;
  text-anchor: middle;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.graph-node.is-labeled .graph-label,
.graph-node:hover .graph-label,
.graph-node.is-selected .graph-label {
  opacity: 1;
}

.graph-node.is-dim .graph-label {
  opacity: 0.12;
}

.graph-hint {
  position: absolute;
  top: 0.9rem;
  left: 1rem;
  color: var(--muted-2);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.graph-zoom {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(8, 11, 16, 0.72);
  backdrop-filter: blur(8px);
}

.graph-zoom button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    color var(--transition),
    background var(--transition);
}

.graph-zoom button:last-child {
  border-bottom: 0;
}

.graph-zoom button:hover {
  color: var(--gold-light);
  background: rgba(215, 177, 106, 0.09);
}

.graph-legend {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  max-width: 60%;
  pointer-events: none;
}

.graph-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted-2);
  font-size: 0.56rem;
}

.graph-legend i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.graph-side {
  min-height: 560px;
  padding: 1.4rem;
  background:
    linear-gradient(180deg, rgba(20, 26, 35, 0.68), rgba(9, 12, 17, 0.68));
  border: 1px solid var(--line);
  border-radius: 14px;
}

.graph-side__empty {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
  justify-content: center;
}

.graph-side__seal {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--kai);
  font-size: 1.2rem;
}

.graph-side__empty h3 {
  margin-top: 1.2rem;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.graph-side__empty > p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.9;
}

.graph-side__featured {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.graph-side__featured .panel-label {
  margin-bottom: 0.7rem;
}

.graph-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  width: 100%;
  padding: 0.5rem 0.6rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 0.66rem;
  text-align: left;
  cursor: pointer;
  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.graph-feature:hover {
  color: var(--text-soft);
  background: rgba(215, 177, 106, 0.06);
  border-color: var(--line-strong);
}

.graph-feature span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.graph-feature i {
  flex-shrink: 0;
  padding: 0.1rem 0.35rem;
  color: var(--type-color, var(--gold));
  border: 1px solid color-mix(in srgb, var(--type-color, var(--gold)) 35%, transparent);
  border-radius: 3px;
  font-size: 0.56rem;
  font-style: normal;
}

.graph-side__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.graph-side__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.6rem;
}

.graph-side__legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.graph-side__hero {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.graph-side__art {
  width: 72px;
  height: 96px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 4px 4px 4px 18px;
}

.graph-side__art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.graph-side__name {
  min-width: 0;
}

.graph-side__name span {
  color: var(--muted-2);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
}

.graph-side__name h3 {
  margin-top: 0.15rem;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.graph-side__name p {
  margin-top: 0.1rem;
  color: var(--gold);
  font-family: var(--kai);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.graph-side__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.graph-side__tags span {
  padding: 0.12rem 0.4rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.55rem;
}

.graph-side__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.graph-mini-relation {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.5rem 0.55rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.graph-mini-relation:hover {
  color: var(--text-soft);
  background: rgba(215, 177, 106, 0.06);
  border-color: var(--line-strong);
}

.graph-mini-relation__type {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  background: var(--type-color, var(--gold));
  border-radius: 50%;
}

.graph-mini-relation strong {
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 500;
}

.graph-mini-relation span:last-child {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 0.58rem;
}

.graph-side__open {
  width: 100%;
  margin-top: 1.2rem;
}

.graph-empty {
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   关于
   -------------------------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 7rem;
}

.about::before {
  position: absolute;
  top: 1rem;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  content: "";
  transform: translateX(-50%);
}

.about__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-height: 340px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(74, 93, 124, 0.15), transparent 62%);
  border: 1px solid var(--line);
  border-radius: 50% 50% 48% 52% / 52% 48% 52% 48%;
}

.about__ring {
  position: absolute;
  border: 1px solid rgba(215, 177, 106, 0.16);
  border-radius: 50%;
}

.about__ring--one {
  width: 62%;
  height: 62%;
  animation: spin 32s linear infinite;
}

.about__ring--one::before,
.about__ring--two::before {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 12px rgba(215, 177, 106, 0.7);
}

.about__ring--two {
  width: 82%;
  height: 82%;
  border-style: dashed;
  border-color: rgba(215, 177, 106, 0.12);
  animation: spin 46s linear infinite reverse;
}

.about__seal {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  color: #f0d9b0;
  background: linear-gradient(145deg, #ba4733, #86281f);
  border: 1px solid rgba(246, 216, 170, 0.6);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 5px rgba(73, 20, 14, 0.28),
    0 22px 50px -24px rgba(184, 60, 46, 0.8);
  font-family: var(--kai);
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0.1em;
  text-align: center;
  transform: rotate(-3deg);
}

.about__visual p {
  position: relative;
  z-index: 1;
  margin-top: 1.6rem;
  color: var(--muted);
  font-family: var(--kai);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  line-height: 2;
  text-align: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.about__content h2 {
  margin-top: 0.9rem;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.about__lead {
  max-width: 640px;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 2;
}

.about__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.feature {
  padding: 1.1rem 1rem;
  background: rgba(255, 255, 255, 0.018);
  border-top: 1px solid var(--line-strong);
}

.feature > span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
}

.feature h3 {
  margin-top: 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.feature p {
  margin-top: 0.35rem;
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1.8;
}

.about__disclaimer {
  margin-top: 1.8rem;
  padding: 0.95rem 1.1rem;
  color: var(--muted-2);
  background: rgba(184, 60, 46, 0.045);
  border-left: 2px solid rgba(184, 60, 46, 0.5);
  font-size: 0.7rem;
  line-height: 1.9;
}

.about__disclaimer strong {
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--cinnabar-light);
  font-weight: 500;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.2rem clamp(1.2rem, 4vw, 2.4rem);
  border-top: 1px solid var(--line);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-footer__brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.site-footer__brand small {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted-2);
  font-size: 0.6rem;
}

.site-footer > p {
  color: var(--muted-2);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.site-footer > a {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  transition: color var(--transition);
}

.site-footer > a:hover {
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   英雄档案弹窗
   -------------------------------------------------------------------------- */

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(3, 5, 8, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fade-in 220ms ease both;
}

.hero-dialog {
  position: relative;
  width: min(1160px, 100%);
  height: min(880px, 92vh);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(20, 26, 35, 0.98), rgba(8, 11, 16, 0.99));
  border: 1px solid rgba(225, 197, 143, 0.26);
  border-radius: 18px;
  box-shadow:
    0 60px 140px -50px rgba(0, 0, 0, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  outline: 0;
  animation: dialog-in 320ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.dialog-layout {
  display: grid;
  grid-template-columns: 41% 59%;
  height: 100%;
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--muted);
  background: rgba(8, 11, 16, 0.62);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.dialog-close:hover {
  color: var(--gold-light);
  border-color: var(--line-bright);
  transform: rotate(90deg);
}

.dialog-visual {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1.2rem;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 24%, rgba(96, 78, 47, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(14, 18, 25, 0.8), rgba(6, 9, 13, 0.9));
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}

.dialog-art {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #080b10;
  border: 1px solid var(--line);
  border-radius: 5px 5px 5px 28px;
}

.dialog-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dialog-art__caption {
  padding-top: 0.65rem;
  color: var(--muted-2);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-align: center;
}

.dialog-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.dialog-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  padding: 0;
  background: #080b10;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.55;
  transition:
    opacity var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.dialog-thumb svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dialog-thumb span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.22rem 0.2rem;
  color: rgba(240, 230, 210, 0.85);
  background: linear-gradient(180deg, transparent, rgba(5, 7, 10, 0.9));
  font-size: 0.52rem;
  text-align: center;
}

.dialog-thumb:hover {
  opacity: 0.85;
}

.dialog-thumb.is-active {
  border-color: var(--gold);
  opacity: 1;
  transform: translateY(-2px);
}

.dialog-visual__note {
  padding-top: 0.5rem;
  color: var(--muted-2);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-align: center;
}

.dialog-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 2.4rem 2.6rem 1.4rem;
  overflow: hidden;
}

.dialog-header {
  flex-shrink: 0;
  padding-right: 2rem;
}

.dialog-mobile-art {
  display: none;
}

.dialog-header__text {
  min-width: 0;
}

.dialog-kicker {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
}

.dialog-name-row {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-top: 0.3rem;
}

.dialog-name-row h2 {
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.dialog-name-row span {
  color: var(--muted-2);
  font-family: Georgia, serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

.dialog-title {
  margin-top: 0.35rem;
  color: var(--gold);
  font-family: var(--kai);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
}

.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.dialog-tags .faction-pill,
.dialog-tags .role-tag {
  font-size: 0.62rem;
}

.dialog-quote {
  margin-top: 1rem;
  padding-left: 0.9rem;
  color: var(--text-soft);
  border-left: 1px solid rgba(215, 177, 106, 0.42);
  font-family: var(--kai);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.dialog-tabs {
  display: flex;
  flex-shrink: 0;
  gap: 1.7rem;
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.dialog-tabs button {
  position: relative;
  padding: 0.55rem 0;
  color: var(--muted-2);
  background: none;
  border: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color var(--transition);
}

.dialog-tabs button::after {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transition: transform var(--transition);
}

.dialog-tabs button:hover {
  color: var(--text-soft);
}

.dialog-tabs button[aria-selected="true"] {
  color: var(--gold-light);
}

.dialog-tabs button[aria-selected="true"]::after {
  transform: scaleX(1);
}

.dialog-panels {
  flex: 1;
  min-height: 0;
  padding: 1.5rem 0.4rem 1.2rem 0;
  overflow-y: auto;
  scrollbar-width: thin;
  animation: fade-in 240ms ease both;
}

.dialog-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  margin-top: auto;
  padding: 1rem 0 0.15rem;
  background: linear-gradient(180deg, transparent, rgba(10, 13, 19, 0.92) 34%);
  border-top: 1px solid var(--line);
}

.dialog-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dialog-nav button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 150px;
  padding: 0.3rem 0.55rem;
  overflow: hidden;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.62rem;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  transition:
    color var(--transition),
    border-color var(--transition);
}

.dialog-nav button:hover {
  color: var(--gold-light);
  border-color: var(--line-strong);
}

.dialog-nav button:disabled {
  opacity: 0.25;
  cursor: default;
}

/* 档案面板 */

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
}

.panel-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
}

.panel-label::before {
  width: 16px;
  height: 1px;
  background: var(--gold);
  content: "";
  opacity: 0.6;
}

.stat-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.stat-row {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  gap: 0.7rem;
  align-items: center;
}

.stat-row span:first-child {
  color: var(--muted);
  font-size: 0.67rem;
}

.stat-row strong {
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 0.7rem;
  font-weight: 400;
  text-align: right;
}

.stat-track {
  position: relative;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
}

.stat-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value, 50%);
  background: linear-gradient(90deg, rgba(111, 184, 168, 0.7), var(--gold) 60%, var(--cinnabar-light));
  border-radius: inherit;
  box-shadow: 0 0 10px rgba(215, 177, 106, 0.2);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem 1.1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.info-item span {
  display: block;
  color: var(--muted-2);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.info-item strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 400;
}

.profile-lore {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 2;
}

.profile-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1.15rem;
}

.keyword {
  padding: 0.18rem 0.5rem;
  color: var(--gold);
  background: rgba(215, 177, 106, 0.06);
  border: 1px solid rgba(215, 177, 106, 0.18);
  border-radius: 999px;
  font-size: 0.6rem;
}

/* 技能面板 */

.skill-list {
  display: flex;
  flex-direction: column;
}

.skill-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0.95rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.skill-card:first-child {
  padding-top: 0;
}

.skill-card:last-child {
  border-bottom: 0;
}

.skill-key {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--gold-light);
  background:
    radial-gradient(circle at 50% 35%, rgba(215, 177, 106, 0.16), transparent 70%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--kai);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.skill-body h3 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.skill-body h3 small {
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
}

.skill-body p {
  margin-top: 0.32rem;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.9;
}

/* 关系面板 */

.dialog-graph-wrap {
  position: relative;
  margin-bottom: 1.3rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(47, 64, 91, 0.16), rgba(7, 10, 14, 0.25) 65%);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.dialog-graph-wrap svg {
  display: block;
  width: 100%;
  height: 240px;
}

.dialog-relation-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.relation-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.75rem 0.85rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--line);
  border-radius: 7px;
  text-align: left;
  cursor: pointer;
  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.relation-row:hover {
  background: rgba(215, 177, 106, 0.055);
  border-color: var(--line-strong);
  transform: translateX(3px);
}

.relation-type {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-width: 66px;
  color: var(--type-color, var(--gold));
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.relation-type::before {
  width: 5px;
  height: 5px;
  background: var(--type-color, var(--gold));
  border-radius: 50%;
  content: "";
}

.relation-main strong {
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 500;
}

.relation-main p {
  margin-top: 0.15rem;
  color: var(--muted-2);
  font-size: 0.66rem;
  line-height: 1.65;
}

.relation-row > span:last-child {
  color: var(--gold);
  font-size: 0.72rem;
}

.relation-canon {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.05rem 0.3rem;
  color: #b9a7d8;
  border: 1px solid rgba(159, 143, 191, 0.35);
  border-radius: 3px;
  font-size: 0.52rem;
  vertical-align: middle;
}

.no-relations {
  padding: 2.5rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 0.8rem;
  text-align: center;
}

/* 绘卷面板 */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.gallery-card__art {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #080b10;
}

.gallery-card__art svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 500ms ease;
}

.gallery-card:hover .gallery-card__art svg {
  transform: scale(1.03);
}

.gallery-card figcaption {
  padding: 0.55rem;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.gallery-note {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.016);
  border-left: 2px solid var(--line-strong);
  font-size: 0.66rem;
  line-height: 1.8;
}

/* 弹窗动画 */

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --------------------------------------------------------------------------
   Toast / noscript
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  z-index: 130;
  max-width: calc(100vw - 2rem);
  padding: 0.7rem 1.1rem;
  color: var(--gold-light);
  background: rgba(13, 17, 23, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 200;
  padding: 1rem;
  color: #171208;
  background: var(--gold-light);
  border-radius: 8px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero-banner__inner {
    gap: 3.5rem;
  }

  .spotlight-wrap {
    width: min(100%, 380px);
  }

  .graph-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .dialog-layout {
    grid-template-columns: 38% 62%;
  }

  .dialog-content {
    padding: 2rem 2rem 1.2rem;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero-banner {
    padding-top: 7.5rem;
  }

  .hero-banner__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-copy {
    max-width: 720px;
  }

  .spotlight-wrap {
    justify-self: start;
    width: min(100%, 360px);
  }

  .spotlight__side {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about__visual {
    width: min(100%, 380px);
    justify-self: center;
  }

  .graph-layout {
    grid-template-columns: 1fr;
  }

  .graph-side {
    min-height: 0;
  }

  .graph-side__empty {
    min-height: 0;
    padding: 1rem 0;
  }

  .dialog-backdrop {
    padding: 0;
  }

  .hero-dialog {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .dialog-layout {
    grid-template-columns: 34% 66%;
  }

  .dialog-content {
    padding: 1.6rem 1.5rem 1rem;
  }

  .dialog-visual {
    padding: 0.9rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 1rem;
    padding: 0.9rem 1rem;
  }

  .site-header.is-scrolled {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .brand__text small {
    display: none;
  }

  .brand__seal {
    width: 34px;
    height: 40px;
    font-size: 0.62rem;
  }

  .favorite-toggle__label {
    display: none;
  }

  .favorite-toggle {
    padding: 0.4rem 0.55rem;
  }

  .header-actions .btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.7rem;
  }

  .hero-banner {
    min-height: auto;
    padding: 7rem 1.1rem 4rem;
  }

  .hero-copy h1 {
    font-size: clamp(3.1rem, 15vw, 4.6rem);
  }

  .hero-copy__lead {
    font-size: 0.84rem;
  }

  .search-bar {
    height: 58px;
    padding-left: 0.9rem;
  }

  .search-bar input {
    font-size: 0.8rem;
  }

  .search-bar__kbd {
    display: none;
  }

  .search-bar__submit {
    height: 44px;
    padding: 0 0.9rem;
  }

  .metric {
    padding: 0 1.1rem;
  }

  .metric strong {
    font-size: 1.65rem;
  }

  .metric span {
    font-size: 0.6rem;
  }

  .spotlight-wrap {
    width: min(100%, 340px);
  }

  .section {
    padding: 4.5rem 1.1rem;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .section-heading h2 {
    font-size: 2.5rem;
  }

  .index-meta {
    width: 100%;
    justify-content: space-between;
  }

  .role-filter {
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .role-filter::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex-shrink: 0;
  }

  .select-row {
    gap: 0.7rem;
  }

  .select-field {
    flex: 1 1 calc(50% - 0.7rem);
    min-width: 120px;
  }

  .check-field {
    margin-left: 0;
  }

  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .hero-card__body {
    padding: 0.8rem 0.7rem 0.75rem;
  }

  .hero-card__name-row h3 {
    font-size: 1.15rem;
  }

  .hero-card__name-row span {
    display: none;
  }

  .hero-card__title {
    font-size: 0.64rem;
  }

  .hero-card__tags {
    margin-top: 0.5rem;
  }

  .role-tag {
    font-size: 0.52rem;
  }

  .hero-card__foot {
    gap: 0.45rem;
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    font-size: 0.54rem;
  }

  .difficulty__track {
    width: 28px;
  }

  .card-arrow {
    width: 19px;
    height: 19px;
  }

  .graph-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .graph-toolbar__right {
    width: 100%;
    justify-content: space-between;
  }

  .graph-types {
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 0.3rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .graph-types::-webkit-scrollbar {
    display: none;
  }

  .graph-type {
    flex-shrink: 0;
  }

  .graph-stage {
    min-height: 440px;
  }

  #relationGraph {
    height: 500px;
  }

  .graph-legend {
    display: none;
  }

  .graph-summary {
    gap: 1rem;
  }

  .about__features {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.6rem 1.1rem;
  }

  .site-footer > p {
    order: 3;
  }

  .dialog-layout {
    display: block;
    overflow-y: auto;
  }

  .dialog-visual {
    display: none;
  }

  .dialog-content {
    min-height: 100dvh;
    padding: 1.4rem 1.1rem 1rem;
    overflow: visible;
  }

  .dialog-header {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding-right: 2.2rem;
  }

  .dialog-mobile-art {
    display: block;
    flex-shrink: 0;
    width: 76px;
    height: 101px;
    overflow: hidden;
    background: #080b10;
    border: 1px solid var(--line-strong);
    border-radius: 4px 4px 4px 16px;
  }

  .dialog-mobile-art svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .dialog-header__text {
    flex: 1;
    min-width: 0;
  }

  .dialog-name-row h2 {
    font-size: 2.2rem;
  }

  .dialog-tabs {
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .dialog-tabs::-webkit-scrollbar {
    display: none;
  }

  .dialog-tabs button {
    flex-shrink: 0;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    display: grid;
    grid-template-columns: 38% 1fr;
    align-items: center;
  }

  .gallery-card figcaption {
    text-align: left;
  }

  .dialog-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .relation-row {
    grid-template-columns: auto 1fr;
  }

  .relation-row > span:last-child {
    display: none;
  }

  .dialog-graph-wrap svg {
    height: 210px;
  }

  .dialog-panels {
    padding-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-metrics {
    margin-top: 2rem;
  }

  .metric {
    padding: 0 0.8rem;
  }

  .metric strong {
    font-size: 1.45rem;
  }

  .metric span {
    font-size: 0.54rem;
  }

  .spotlight__info {
    padding: 1.4rem;
  }

  .spotlight__info h2 {
    font-size: 2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .hero-card__art {
    aspect-ratio: 3 / 4;
  }

  .hero-card__body {
    padding: 0.9rem;
  }

  .hero-card__name-row h3 {
    font-size: 1.35rem;
  }

  .hero-card__name-row span {
    display: inline;
  }

  .hero-card__title {
    font-size: 0.7rem;
  }

  .role-tag {
    font-size: 0.58rem;
  }

  .hero-card__foot {
    font-size: 0.6rem;
  }

  .select-field {
    flex-basis: calc(50% - 0.7rem);
  }

  .graph-stage {
    min-height: 380px;
  }

  #relationGraph {
    height: 430px;
  }

  .graph-hint {
    font-size: 0.52rem;
  }

  .dialog-name-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .dialog-tabs {
    gap: 0.8rem;
  }

  .dialog-tabs button {
    font-size: 0.68rem;
  }

  .dialog-content {
    padding: 1.2rem 0.9rem 0.8rem;
  }

  .skill-card {
    grid-template-columns: 46px 1fr;
    gap: 0.7rem;
  }

  .skill-key {
    width: 42px;
    height: 42px;
    font-size: 0.65rem;
  }

  .dialog-footer .text-btn {
    font-size: 0.65rem;
  }
}

@media (hover: none) {
  .hero-card:hover {
    transform: none;
  }

  .hero-card:hover .hero-card__art svg {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .petal-field {
    display: none;
  }
}
