:root {
  --ink-black: #111111;
  --paper: #ffffff;
  --paper-soft: #f4f2ec;
  --wall: #2e3438;
  --pink: #ff2d8f;
  --oc-pink: #fe99ad;
  --green: #20df32;
  --oc-blue: #7ad3ef;
  --orange: #ff6a00;
  --purple: #6246ff;
  --yellow: #ffd21f;
  --muted: #676767;
  --shadow: 0 24px 60px rgba(17, 17, 17, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-black);
  font-family: "Arial", "Noto Sans SC", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 26px clamp(18px, 5vw, 72px);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10;
}

.site-header.compact {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 4px solid var(--ink-black);
  position: sticky;
}

.brand {
  background: var(--paper);
  border-radius: 999px;
  color: var(--ink-black);
  font-weight: 900;
  padding: 10px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  text-transform: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.brand:hover {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
  transform: translate(3px, 3px) rotate(-1deg);
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.site-nav a,
.button,
.name-link {
  /*border: 3px solid var(--ink-black); */
  font-weight: 900;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-nav a {
  background: var(--paper);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

.site-nav a:hover,
.button:hover,
.name-link:hover {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
  transform: translate(3px, 3px) rotate(-1deg);
}

/* 首页导航：独立的半透明按钮 */
.home-header {
  left: clamp(18px, 4vw, 64px);
  padding: 0;
  right: clamp(18px, 4vw, 64px);
  top: 20px;
}

.home-header .brand {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(31, 54, 60, 0.08);
  color: #000000;
  font-weight: 700;
  padding: 9px 13px;
}

.home-header .brand:hover {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 18px rgba(31, 54, 60, 0.08);
  transform: none;
}

.home-header .site-nav {
  gap: 10px;
}

.home-header .site-nav a {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(31, 54, 60, 0.08);
  color: #000000;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 12px;
  transition: background 160ms ease, color 160ms ease;
}

.home-header .site-nav a:hover,
.home-header .site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 18px rgba(31, 54, 60, 0.08);
  color: #111111;
  transform: none;
}

.home-header .site-nav a:focus-visible {
  outline: 2px solid #253d42;
  outline-offset: 2px;
}

.hero {
  min-height: 86vh;
  overflow: hidden;
  position: relative;
}

.hero::after {
  background:
    linear-gradient(
      180deg,
      transparent 82%,
      rgba(255, 255, 255, 0.6) 92%,
      #ffffff 100%
    );
  content: "";
  inset: 0;
  position: absolute;
}

.hero-image {
  height: 86vh;
  object-fit: cover;
  width: 100%;
}

.hero-credit {
  bottom: 8px;
  color: #253d42;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  position: absolute;
  right: clamp(20px, 6vw, 88px);
  z-index: 2;
}

.hero-copy {
  bottom: clamp(32px, 8vw, 96px);
  color: var(--paper);
  left: clamp(20px, 6vw, 88px);
  max-width: 780px;
  position: absolute;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.36);
  z-index: 2;
}

.eyebrow,
.section-kicker,
.role-label {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3.2rem, 9vw, 8rem);
  line-height: 0.88;
  margin-bottom: 22px;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  margin-bottom: 18px;
}

h3 {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  line-height: 1;
  margin-bottom: 14px;
}

.hero-copy p:not(.eyebrow) {
  font-size: clamp(1rem, 2vw, 1.35rem);
  max-width: 640px;
}

.hero-copy .eyebrow,
.hero-copy > p:not(.eyebrow),
.hero-copy h1 {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.28);
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.name-link {
  backdrop-filter: blur(14px);
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(31, 54, 60, 0.1);
  color: #000000;
  display: inline-flex;
  padding: 14px 24px;
}

.name-a {
  background: rgba(122, 211, 239, 0.72);
  border-color: var(--oc-blue);
}

.name-b {
  background: rgba(254, 153, 173, 0.72);
  border-color: var(--oc-pink);
}

.name-link:hover,
.name-link:focus-visible {
  box-shadow: 0 8px 22px rgba(31, 54, 60, 0.12);
  transform: none;
}

.name-a:hover,
.name-a:focus-visible {
  background: rgba(122, 211, 239, 0.88);
}

.name-b:hover,
.name-b:focus-visible {
  background: rgba(254, 153, 173, 0.88);
}

.ink-splash {
  border-radius: 48% 52% 43% 57% / 58% 42% 58% 42%;
  filter: drop-shadow(8px 8px 0 var(--ink-black));
  position: absolute;
  z-index: 1;
}

.hero-title-row {
  align-items: center;
  display: flex;
  gap: 0;
}

.hero-title-row h1 {
  margin-bottom: 0;
  white-space: nowrap;
  font-size: clamp(3rem, 7vw, 7rem);
}

.hero-title-ink {
  width: clamp(100px, 14vw, 220px);
  flex: 0 0 auto;
  margin-left: -28px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24));
  transform: rotate(4deg);
}

.section {
  padding: clamp(48px, 5.5vw, 80px) clamp(20px, 6vw, 88px);
}

.relation-section,
.gallery-preview {
  align-items: end;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
}

.wide-copy {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.section-heading {
  margin-bottom: 32px;
}

.stories-section,
.timeline-section {
  background: #ffffff;
}

.stories-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: auto;
  padding-block: clamp(48px, 5.5vw, 80px);
}

.stories-section .section-heading,
.story-feature {
  margin-inline: auto;
  max-width: 1400px;
  width: 100%;
}

.stories-section .section-heading {
  margin-bottom: clamp(28px, 3vw, 40px);
}

.stories-section .section-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}

.stories-section .section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin: 0;
}

.characters-section {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: auto;
  padding-block: clamp(48px, 5.5vw, 80px);
}

.characters-section .section-heading,
.character-grid {
  max-width: 1400px;
  width: 100%;
  margin-inline: auto;
}

.characters-section .section-heading {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  margin-bottom: clamp(28px, 3vw, 40px);
}

.characters-section .section-kicker {
  color: #000000;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}

.characters-section h2 {
  color: #000000;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
  margin: 0;
}

.characters-intro {
  color: #66787b;
  font-size: 0.88rem;
  margin: 0 0 3px;
}

.character-grid {
  display: grid;
  gap: clamp(24px, 2.5vw, 40px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.character-card {
  border: 1px solid var(--card-border);
  border-radius: 22px;
  background: var(--card-accent);
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--card-accent) 52%, #ffffff) 0%,
    color-mix(in srgb, var(--card-accent) 30%, #ffffff) 58%,
    color-mix(in srgb, var(--card-accent) 42%, #ffffff) 100%
  );
  color: var(--card-ink);
  min-height: clamp(520px, 60vh, 680px);
  min-width: 0;
  position: relative;
}

.character-card-a {
  --card-border: #a9dce9;
  --card-ink: #274c58;
  --card-muted: #526f78;
  --card-accent: var(--oc-blue);
}

.character-card-b {
  --card-border: #efb8c4;
  --card-ink: #65434f;
  --card-muted: #80616c;
  --card-accent: var(--oc-pink);
}

.character-card-link {
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 3.5vw, 52px);
  position: relative;
  transition: box-shadow 200ms ease;
}

.character-card-link:hover {
  box-shadow: 0 12px 28px rgba(44, 70, 78, 0.1);
}

.character-card-link:focus-visible {
  outline: 3px solid var(--card-ink);
  outline-offset: 5px;
}

.character-card-top,
.character-card-bottom {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.character-index {
  color: var(--card-muted);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.character-color {
  align-items: center;
  color: var(--card-muted);
  display: inline-flex;
  font-size: 0.7rem;
  gap: 7px;
  white-space: nowrap;
}

.character-color i {
  background: var(--card-accent);
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.character-art {
  align-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px 999px 18px 18px;
  bottom: 24px;
  display: flex;
  justify-content: center;
  margin: 0;
  position: absolute;
  right: 24px;
  top: 88px;
  width: 42%;
  z-index: 1;
}

.character-art::after {
  background: var(--card-accent);
  border-radius: 50%;
  bottom: 18px;
  content: "";
  filter: blur(18px);
  height: 44%;
  opacity: 0.24;
  position: absolute;
  width: 68%;
}

.character-art span {
  color: var(--card-muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  z-index: 1;
}

.character-art small {
  display: block;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  margin-top: 5px;
  opacity: 0.7;
}

.character-art img {
  height: 100%;
  inset: 0;
  object-fit: contain;
  object-position: center bottom;
  position: absolute;
  width: 100%;
  z-index: 2;
}

.character-art .character-art-credit {
  bottom: 8px;
  color: var(--card-ink);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  pointer-events: none;
  position: absolute;
  right: 10px;
  z-index: 3;
}

.character-card-copy {
  flex: 1;
  max-width: 55%;
  padding-block: clamp(56px, 8vh, 92px) 40px;
  position: relative;
  z-index: 2;
}

.character-romanized {
  color: var(--card-muted);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.character-card h3 {
  font-size: clamp(2.8rem, 4.5vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.character-description {
  color: var(--card-muted);
  font-size: 0.88rem;
  line-height: 1.8;
  margin: 0;
}

.character-card-bottom {
  border-top: 1px solid var(--card-border);
  font-size: 0.82rem;
  font-weight: 600;
  gap: 12px;
  justify-content: flex-start;
  padding-top: 18px;
  width: 55%;
}

.character-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: inline-flex;
  font-size: 1.2rem;
  height: 36px;
  justify-content: center;
  width: 36px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.character-card-link:hover .character-arrow,
.character-card-link:focus-visible .character-arrow {
  background: var(--card-ink);
  color: #fff;
  transform: rotate(45deg);
}

.button {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 16px;
}

.button-dark {
  background: var(--ink-black);
  color: var(--paper);
}

.button-accent {
  background: var(--yellow);
}

.story-feature {
  align-items: center;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    135deg,
    rgba(122, 211, 239, 0.18) 0%,
    rgba(255, 255, 255, 0.58) 48%,
    rgba(254, 153, 173, 0.17) 100%
  );
  border: 1px solid rgba(82, 111, 120, 0.14);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(44, 70, 78, 0.08);
  display: grid;
  gap: clamp(32px, 4vw, 64px);
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  overflow: hidden;
  padding: clamp(18px, 2.2vw, 32px);
}

.story-feature img,
.story-article img,
.gallery-grid img {
  border: 4px solid var(--ink-black);
  box-shadow: var(--shadow);
}

.story-feature img {
  aspect-ratio: auto;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  height: auto;
  max-height: min(64vh, 700px);
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.story-image-frame {
  align-items: center;
  align-self: center;
  display: flex;
  justify-content: center;
  width: 100%;
}

.story-image-media {
  max-width: 100%;
  position: relative;
  width: fit-content;
}

.story-image-credit {
  bottom: 10px;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.4;
  pointer-events: none;
  position: absolute;
  right: 10px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.story-feature-copy {
  padding-right: clamp(8px, 2vw, 28px);
}

.story-feature-copy > p:not(.role-label) {
  color: #5f7074;
}

.story-feature .button-accent {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(37, 61, 66, 0.18);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(44, 70, 78, 0.08);
  color: #253d42;
  font-weight: 700;
}

.story-feature .button-accent:hover,
.story-feature .button-accent:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(44, 70, 78, 0.1);
  transform: none;
}

.timeline {
  display: grid;
  gap: clamp(18px, 2vw, 28px);
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0 auto;
  max-width: 1400px;
  padding: 0;
  width: 100%;
}

.timeline li {
  background: linear-gradient(
    135deg,
    rgba(122, 211, 239, 0.18) 0%,
    rgba(255, 255, 255, 0.58) 48%,
    rgba(254, 153, 173, 0.17) 100%
  );
  align-items: start;
  border: 1px solid rgba(82, 111, 120, 0.14);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(44, 70, 78, 0.07);
  display: grid;
  gap: clamp(20px, 2.5vw, 36px);
  grid-template-columns: auto 1fr;
  padding: clamp(24px, 2.5vw, 36px);
}

.timeline-number {
  align-items: center;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(82, 111, 120, 0.16);
  border-radius: 10px;
  color: #253d42;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  letter-spacing: 0.12em;
  width: 48px;
}

.timeline h3 {
  color: #253d42;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.timeline p {
  color: #5f7074;
  font-size: 0.88rem;
  line-height: 1.8;
  margin: 0;
}

.timeline-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: auto;
  padding-block: clamp(48px, 5.5vw, 80px);
}

.timeline-section .section-heading {
  margin: 0 auto clamp(28px, 3vw, 40px);
  max-width: 1400px;
  width: 100%;
}

.timeline-section .section-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}

.timeline-section .section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin: 0;
}

.gallery-preview {
  align-items: center;
  background: #ffffff;
  color: var(--ink-black);
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-block: clamp(48px, 5.5vw, 80px);
  padding-inline: max(clamp(20px, 6vw, 88px), calc((100% - 1400px) / 2));
}

.gallery-preview .section-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}

.gallery-preview h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin: 0;
}

.gallery-preview .button {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(37, 61, 66, 0.18);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(44, 70, 78, 0.08);
  color: #253d42;
  justify-self: end;
  margin: 0;
}

.gallery-preview .button:hover,
.gallery-preview .button:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(44, 70, 78, 0.1);
  transform: none;
}

.site-footer {
  align-items: center;
  background: var(--paper);
  border-top: 1px solid #e7e7e7;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 88px);
}

.site-footer p {
  margin: 0;
}

.profile-page,
.story-page {
  background: var(--paper-soft);
  min-height: 100vh;
}

.profile-hero {
  color: var(--paper);
  padding: clamp(90px, 12vw, 170px) clamp(20px, 6vw, 88px);
}

.hero-a {
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.hero-b {
  background: linear-gradient(135deg, var(--green), var(--purple));
}

.profile-layout {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
}

.profile-panel,
.profile-body,
.story-article {
  background: var(--paper);
  border: 4px solid var(--ink-black);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}

dt {
  font-weight: 900;
}

dd {
  margin: 0 0 16px;
}

.story-article {
  margin: clamp(40px, 8vw, 80px) auto;
  max-width: 980px;
}

.story-article img {
  aspect-ratio: 16 / 9;
  margin-bottom: 34px;
  object-fit: cover;
  width: 100%;
}

/* 角色页共用布局，通过页面变量区分海叶与潮音的配色 */
.character-a-page,
.character-b-page {
  --profile-accent: var(--oc-blue);
  --profile-title: #274c58;
  --profile-ink: var(--profile-title);
  --profile-muted: var(--profile-title);
  --profile-copy: var(--profile-title);
  color: var(--profile-title);
  background: var(--profile-accent);
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--profile-accent) 52%, #ffffff) 0%,
    color-mix(in srgb, var(--profile-accent) 30%, #ffffff) 58%,
    color-mix(in srgb, var(--profile-accent) 42%, #ffffff) 100%
  );
}

.character-b-page {
  --profile-accent: var(--oc-pink);
  --profile-title: #65434f;
}

:is(.character-a-page, .character-b-page) .home-header :is(.brand, .site-nav a) {
  color: var(--profile-title);
}

.character-profile {
  align-items: start;
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  margin-inline: auto;
  max-width: 1576px;
  padding: 128px clamp(20px, 6vw, 88px) clamp(64px, 7vw, 104px);
}

.character-profile-art {
  align-items: flex-end;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  height: min(760px, calc(100svh - 128px));
  justify-content: center;
  margin: 0;
  min-height: 320px;
  min-width: 0;
  overflow: visible;
  padding: 0;
  position: sticky;
  top: 32px;
}

.character-profile-art img {
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  width: 100%;
}

.character-profile-art-credit {
  bottom: 8px;
  color: #253d42;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  pointer-events: none;
  position: absolute;
  right: 10px;
}

.character-profile-content {
  display: grid;
  gap: 36px;
  min-width: 0;
}

.character-profile-heading {
  padding-top: 8px;
}

.profile-index,
.profile-romanized,
.profile-panel-label {
  color: var(--profile-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.profile-index {
  margin-bottom: 32px;
}

.profile-romanized {
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.character-profile-heading h1 {
  color: var(--profile-title);
  font-size: clamp(3.4rem, 5.5vw, 5rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 24px;
  text-transform: none;
}

.profile-intro {
  color: var(--profile-muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.9;
  margin: 0;
  max-width: 560px;
}

.character-profile-data {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  color: var(--profile-ink);
  padding: clamp(24px, 2.5vw, 36px);
}

.profile-panel-label {
  margin-bottom: 12px;
}

.character-profile-content h2 {
  color: var(--profile-ink);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin-bottom: 20px;
}

.character-profile-story + .character-profile-story {
  margin-top: 0;
}

.character-profile-story {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  padding: clamp(24px, 2.5vw, 36px);
}

.character-profile-story > p:not(.profile-panel-label) {
  color: var(--profile-copy);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.profile-data-grid {
  display: grid;
  gap: 20px 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.profile-data-grid > div {
  border-top: 1px solid rgba(82, 111, 120, 0.12);
  padding-top: 12px;
  overflow-wrap: anywhere;
}

.profile-data-grid dt {
  color: var(--profile-ink);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.profile-data-grid dd {
  color: var(--profile-copy);
  margin: 6px 0 0;
}

.gallery-body {
  background: linear-gradient(130deg, #e9f8fc 0%, #ffffff 48%, #fff0f4 100%);
  background-attachment: fixed;
  color: #253d42;
}

.gallery-header {
  position: static;
}

.gallery-header .brand,
.gallery-header .site-nav a {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(44, 70, 78, 0.08);
  color: inherit;
  font-weight: 600;
}

.gallery-header .brand {
  font-weight: 700;
}

.gallery-header .site-nav a {
  font-size: 0.86rem;
}

.gallery-header .brand:hover,
.gallery-header .site-nav a:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: none;
}

.gallery-page {
  margin: 0 auto;
  max-width: 1560px;
  min-height: 100vh;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 5vw, 80px) 88px;
}

.gallery-heading {
  margin-bottom: clamp(32px, 4vw, 60px);
}

.gallery-heading .section-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin: 0 0 12px;
}

.gallery-heading h1 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin: 0;
}

.gallery-intro {
  margin: 16px 0 0;
}

.gallery-grid {
  column-count: 4;
  column-gap: clamp(24px, 2vw, 30px);
}

.gallery-item {
  break-inside: avoid;
  display: inline-block;
  margin: 0 0 30px;
  min-width: 0;
  width: 100%;
}

.gallery-image-link {
  background: rgba(255, 255, 255, 0.38);
  border-radius: 18px;
  cursor: zoom-in;
  display: block;
  position: relative;
}

.gallery-item img {
  aspect-ratio: auto;
  border: 0;
  border-radius: inherit;
  box-shadow: 0 12px 28px rgba(44, 70, 78, 0.06);
  height: auto;
  width: 100%;
}

.gallery-item figcaption {
  align-items: baseline;
  display: flex;
  font-size: 0.9rem;
  gap: 12px;
  justify-content: space-between;
  padding-top: 9px;
}

.gallery-item-index {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.gallery-zoom-hint {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  bottom: 14px;
  font-size: 0.8rem;
  opacity: 0;
  padding: 8px 12px;
  pointer-events: none;
  position: absolute;
  right: 14px;
  transition: opacity 160ms ease;
}

.gallery-image-link:hover .gallery-zoom-hint,
.gallery-image-link:focus-visible .gallery-zoom-hint {
  opacity: 1;
}

.gallery-image-link:focus-visible,
.gallery-header a:focus-visible {
  outline: 2px solid #253d42;
  outline-offset: 5px;
}

.gallery-body .story-lightbox-close {
  color: inherit;
}

@media (max-width: 1100px) {
  .gallery-grid {
    column-count: 3;
  }
}

@media (max-width: 760px) {
  .gallery-grid {
    column-count: 2;
    column-gap: 16px;
  }

  .gallery-item {
    margin-bottom: 22px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    column-count: 1;
  }
}

@media (hover: none) {
  .gallery-zoom-hint {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px) rotate(0.5deg);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-18px) rotate(4deg);
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-header.compact {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .brand {
    font-size: 0.9rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a {
    font-size: 0.88rem;
    padding: 7px 9px;
  }

  .home-header {
    left: 12px;
    padding: 0;
    right: 12px;
    top: 12px;
  }

  .home-header .site-nav {
    gap: 6px;
  }

  .hero,
  .hero-image {
    min-height: 760px;
  }

  .hero-copy {
    left: 20px;
    right: 20px;
  }

  .relation-section,
  .gallery-preview,
  .character-grid,
  .story-feature,
  .timeline,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .character-art {
    bottom: 18px;
    right: 18px;
    top: 78px;
    width: 42%;
  }

  .characters-section {
    min-height: auto;
    padding-block: 56px;
  }

  .character-card {
    min-height: 460px;
  }

  .character-card-link {
    padding: 28px;
  }

  .stories-section {
    min-height: auto;
    padding-block: 56px;
  }

  .timeline-section {
    min-height: auto;
    padding-block: 56px;
  }

  .timeline li {
    gap: 20px;
  }

  .story-feature-copy {
    padding: 8px 4px 12px;
  }

  .story-feature img {
    max-height: none;
    width: 100%;
  }

  .gallery-preview .button {
    justify-self: start;
  }

  .character-profile {
    padding: 150px 18px 72px;
  }

}

@media (max-width: 900px) {
  .character-profile {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .character-profile-art {
    height: min(64svh, 560px);
    justify-self: center;
    max-width: 560px;
    position: relative;
    width: 100%;
  }
}

/* 故事页：沿用首页的粉蓝渐变与独立毛玻璃组件 */
.stories-page {
  background: linear-gradient(
    130deg,
    rgba(122, 211, 239, 0.36) 0%,
    rgba(255, 255, 255, 0.72) 50%,
    rgba(254, 153, 173, 0.34) 100%
  );
  background-attachment: fixed;
  min-height: 100vh;
}

.story-header {
  backdrop-filter: blur(16px);
  background: transparent;
  border-bottom: 0;
  position: static;
}

.story-header .brand,
.story-header .site-nav a {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(44, 70, 78, 0.08);
  color: #000000;
}

.story-header .brand {
  font-weight: 700;
}

.story-header .site-nav a {
  font-size: 0.86rem;
  font-weight: 600;
}

.story-page {
  background: transparent;
  min-height: calc(100vh - 90px);
  padding: clamp(34px, 5vw, 72px) clamp(20px, 6vw, 88px) clamp(56px, 7vw, 96px);
}

.story-masthead {
  align-items: flex-end;
  background:
    radial-gradient(circle at 5% 35%, rgba(122, 211, 239, 0.2), transparent 30%),
    radial-gradient(circle at 92% 70%, rgba(254, 153, 173, 0.18), transparent 28%);
  display: flex;
  gap: 32px;
  justify-content: space-between;
  margin: 0 auto clamp(28px, 4vw, 48px);
  max-width: 1180px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px) clamp(10px, 2.5vw, 30px);
  position: relative;
}

.story-masthead::after {
  background: linear-gradient(90deg, var(--oc-blue), var(--oc-pink));
  border-radius: 999px;
  bottom: 0;
  content: "";
  height: 3px;
  left: clamp(10px, 2.5vw, 30px);
  opacity: 0.65;
  position: absolute;
  width: clamp(72px, 10vw, 140px);
}

.story-masthead .section-kicker {
  color: #526f78;
  margin: 0 0 10px;
}

.story-masthead h1 {
  background: linear-gradient(100deg, #274c58 0%, #65434f 100%);
  background-clip: text;
  color: transparent;
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin: 0 0 18px;
}

.story-masthead-copy > p:last-child {
  color: #62757a;
  margin: 0;
}

.story-progress {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(82, 111, 120, 0.12);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(44, 70, 78, 0.08);
  color: #526f78;
  flex: 0 0 auto;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  padding: 8px 12px;
}

.story-article {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
  margin: 0 auto;
  max-width: 1180px;
  overflow: visible;
  padding: 0;
}

.story-article-visual {
  align-items: center;
  align-self: center;
  background: transparent;
  border: 0;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-width: 100%;
  overflow: hidden;
  width: fit-content;
}

.story-image-button {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: flex;
  justify-content: center;
  max-width: 100%;
  padding: 0;
  position: relative;
  width: fit-content;
}

.story-article .story-image-button img {
  aspect-ratio: auto;
  border: 0;
  box-shadow: none;
  height: auto;
  margin: 0;
  max-height: min(70svh, 760px);
  max-width: 100%;
  object-fit: contain;
  border-radius: 20px;
  width: auto;
}

.story-image-hint {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  bottom: 16px;
  box-shadow: 0 6px 18px rgba(44, 70, 78, 0.1);
  color: #000000;
  font-size: 0.84rem;
  font-weight: 700;
  opacity: 0;
  padding: 7px 11px;
  pointer-events: none;
  position: absolute;
  right: 16px;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.story-image-button:hover .story-image-hint,
.story-image-button:focus-visible .story-image-hint {
  opacity: 1;
  transform: translateY(0);
}

.story-lightbox {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(27, 45, 50, 0.25);
  height: fit-content;
  max-height: calc(100svh - 32px);
  max-width: calc(100vw - 32px);
  overflow: hidden;
  padding: 16px;
  width: fit-content;
}

.story-lightbox::backdrop {
  backdrop-filter: blur(18px);
  background: rgba(35, 50, 55, 0.5);
}

.story-lightbox-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(37, 61, 66, 0.12);
  border-radius: 10px;
  color: #000000;
  cursor: pointer;
  display: flex;
  font-size: 1.5rem;
  height: 38px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 24px;
  top: 24px;
  width: 38px;
}

.story-lightbox-image {
  cursor: zoom-in;
  display: block;
  height: auto;
  margin: auto;
  max-height: calc(100svh - 64px);
  max-width: calc(100vw - 64px);
  object-fit: contain;
  width: auto;
}

.story-lightbox-image.is-zoomed {
  cursor: zoom-out;
  height: auto;
  max-height: none;
  max-width: none;
  object-fit: initial;
  width: auto;
}

.story-lightbox:has(.story-lightbox-image.is-zoomed) {
  overflow: auto;
}

.story-article-copy {
  margin: 0 auto;
  max-width: 860px;
  padding: 0 clamp(8px, 3vw, 36px) clamp(14px, 2vw, 28px);
  width: 100%;
}

.story-article-copy .section-kicker {
  color: #526f78;
  margin-bottom: 12px;
}

.story-article-copy h1 {
  color: #253d42;
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 28px;
}

.story-article-copy > p:not(.section-kicker) {
  color: #52666c;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  margin: 0 0 16px;
}

.story-article-copy .story-introduction {
  color: #405a61;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  margin-bottom: 28px;
}

/* 故事页统一使用标题色 */
.stories-page,
.stories-page .brand,
.stories-page .site-nav a,
.stories-page .section-kicker,
.stories-page .story-article-copy h1,
.stories-page .story-article-copy > p,
.stories-page .story-back-link,
.stories-page .story-image-hint,
.stories-page .story-lightbox-close {
  color: #253d42;
}

.story-back-link {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(37, 61, 66, 0.12);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(44, 70, 78, 0.08);
  color: #000000;
  display: inline-flex;
  font-weight: 700;
  margin-top: 20px;
  padding: 10px 15px;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.story-end + .story-back-link {
  margin-top: 48px;
}

.story-back-link:hover,
.story-back-link:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(44, 70, 78, 0.12);
  transform: translateY(-2px);
}

@media (max-width: 820px) {
  .story-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .story-article {
    gap: 24px;
  }

  .story-masthead {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .story-progress {
    align-self: flex-end;
  }

  .story-article-copy {
    max-width: none;
    padding: 8px 8px 18px;
  }

  .story-article .story-image-button img {
    max-height: calc(100svh - 240px);
  }

  .story-image-hint {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 420px) {
  .profile-data-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 560px) {
  .character-profile-art {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  .characters-section .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .character-card-link,
  .character-arrow {
    transition: none;
  }
}
