/* =========================================================
   河南理工大学计算机 2502 班团支部 · 红色主题网站
   ========================================================= */

:root {
  --red-950: #300407;
  --red-900: #4b060b;
  --red-850: #5d080f;
  --red-800: #720b12;
  --red-700: #94131e;
  --red-600: #b31b29;
  --gold-200: #f8edd2;
  --gold-300: #efdba9;
  --gold-400: #e4c47f;
  --gold-500: #cfaa61;
  --gold-600: #b58d45;
  --cream: #f7efe2;
  --paper: #fbf7ef;
  --paper-deep: #f1e7d6;
  --ink: #291716;
  --ink-soft: #4c3531;
  --muted: #826b64;
  --line: rgba(94, 48, 41, 0.16);
  --line-gold: rgba(207, 170, 97, 0.38);
  --white: #fffdf8;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --shadow-soft: 0 24px 70px rgba(58, 8, 12, 0.14);
  --shadow-card: 0 12px 34px rgba(58, 8, 12, 0.1);
  --ease: cubic-bezier(0.22, 0.68, 0.36, 1);
  --header-h: 88px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  color: var(--paper);
  background: var(--red-700);
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 999;
  padding: 10px 18px;
  color: var(--red-800);
  background: var(--gold-300);
  border-radius: 2px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1240px, 90vw);
  margin-inline: auto;
}

/* =========================================================
   Buttons / tags / common
   ========================================================= */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

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

.btn-gold {
  color: var(--red-900);
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border-color: var(--gold-400);
  box-shadow: 0 8px 26px rgba(207, 170, 97, 0.18);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fbf0d5, #d6b36d);
  box-shadow: 0 12px 30px rgba(207, 170, 97, 0.3);
}

.btn-red {
  color: var(--paper);
  background: var(--red-800);
  border-color: var(--red-800);
  box-shadow: 0 8px 22px rgba(114, 11, 18, 0.16);
}

.btn-red:hover {
  background: var(--red-700);
  border-color: var(--red-700);
  box-shadow: 0 12px 30px rgba(114, 11, 18, 0.26);
}

.btn-ghost {
  color: var(--gold-200);
  border-color: rgba(239, 219, 169, 0.42);
  background: rgba(255, 255, 255, 0.025);
}

.btn-ghost:hover {
  color: var(--red-900);
  background: var(--gold-300);
  border-color: var(--gold-300);
}

.btn-ghost-dark {
  color: var(--red-800);
  border-color: rgba(114, 11, 18, 0.24);
  background: transparent;
}

.btn-ghost-dark:hover {
  background: rgba(114, 11, 18, 0.06);
}

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
}

.btn-plus {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.text-btn {
  padding: 0;
  color: var(--red-700);
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-bottom: 1px solid rgba(148, 19, 30, 0.28);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-btn:hover {
  color: var(--red-900);
  border-color: var(--red-900);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.tag-gold {
  color: var(--gold-300);
}

.play-dot {
  position: relative;
  width: 19px;
  height: 19px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.play-dot::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 7px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    height 0.35s var(--ease);
}

.site-header.scrolled {
  height: 74px;
  background: rgba(48, 4, 7, 0.94);
  border-bottom-color: rgba(207, 170, 97, 0.24);
  box-shadow: 0 12px 40px rgba(42, 3, 6, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1320px, 92vw);
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 3px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(239, 219, 169, 0.7);
  border-radius: 50%;
  transition: transform 0.3s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.04);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.32;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.brand-text small {
  color: rgba(247, 239, 226, 0.62);
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  margin-right: 38px;
}

.primary-nav a {
  position: relative;
  padding: 9px 0;
  color: rgba(247, 239, 226, 0.78);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  color: var(--paper);
  border: 1px solid rgba(239, 219, 169, 0.35);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  padding: calc(var(--header-h) + 58px) 0 94px;
  overflow: hidden;
  color: var(--paper);
  background: var(--red-900);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(100deg, rgba(48, 4, 7, 0.98) 0%, rgba(75, 6, 11, 0.92) 45%, rgba(75, 6, 11, 0.68) 100%),
    radial-gradient(circle at 78% 42%, rgba(207, 170, 97, 0.18), transparent 34%),
    url("assets/img/campus-aerial.jpg") center 54% / cover no-repeat;
  filter: saturate(0.72);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(12.5% - 1px), rgba(239, 219, 169, 0.055) calc(12.5% - 1px), rgba(239, 219, 169, 0.055) 12.5%),
    linear-gradient(180deg, rgba(48, 4, 7, 0.2), transparent 30%, rgba(48, 4, 7, 0.48));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  bottom: -34vw;
  z-index: -1;
  width: 62vw;
  height: 62vw;
  border: 1px solid rgba(207, 170, 97, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 8vw rgba(207, 170, 97, 0.025),
    0 0 0 18vw rgba(207, 170, 97, 0.018);
  pointer-events: none;
}

.hero-watermark {
  position: absolute;
  top: 46%;
  left: -1.5vw;
  z-index: -1;
  color: rgba(248, 237, 210, 0.035);
  font-family: var(--font-serif);
  font-size: clamp(200px, 33vw, 540px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.08em;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  pointer-events: none;
  user-select: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.68fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  width: min(1240px, 90vw);
}

.hero-copy > * {
  animation: heroIn 0.9s var(--ease) both;
}

.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.14s; }
.hero-copy > :nth-child(3) { animation-delay: 0.23s; }
.hero-copy > :nth-child(4) { animation-delay: 0.32s; }
.hero-copy > :nth-child(5) { animation-delay: 0.41s; }

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
  color: var(--gold-300);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.eyebrow-line {
  width: 46px;
  height: 1px;
  background: var(--gold-400);
}

.hero h1 {
  max-width: 780px;
  font-family: var(--font-serif);
  font-size: clamp(52px, 6.2vw, 88px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  color: var(--paper);
  text-shadow: 0 4px 40px rgba(48, 4, 7, 0.28);
}

.hero h1 em {
  display: block;
  margin-top: 4px;
  color: var(--gold-300);
  font-style: normal;
  background: linear-gradient(120deg, #fbf0d7 8%, #dcb972 52%, #f3dfb1 84%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 630px;
  margin-top: 32px;
  color: rgba(247, 239, 226, 0.73);
  font-size: 16px;
  line-height: 1.95;
  text-align: justify;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 540px;
  margin-top: 62px;
  padding-top: 24px;
  border-top: 1px solid rgba(239, 219, 169, 0.24);
}

.hero-facts div {
  padding-left: 22px;
  border-left: 1px solid rgba(239, 219, 169, 0.16);
}

.hero-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts dt {
  color: var(--gold-300);
  font-family: var(--font-serif);
  font-size: 29px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.hero-facts dd {
  margin-top: 4px;
  color: rgba(247, 239, 226, 0.55);
  font-size: 11.5px;
  letter-spacing: 0.12em;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 460px;
  justify-self: end;
  animation: heroVisual 1.15s var(--ease) 0.25s both;
}

@keyframes heroVisual {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-frame {
  position: relative;
  padding: 12px;
  background: rgba(248, 237, 210, 0.055);
  border: 1px solid rgba(207, 170, 97, 0.38);
  box-shadow: 0 40px 90px rgba(30, 2, 4, 0.36);
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 22px -14px -14px 22px;
  z-index: -1;
  border-right: 1px solid rgba(207, 170, 97, 0.2);
  border-bottom: 1px solid rgba(207, 170, 97, 0.2);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.85;
  object-fit: cover;
  object-position: 50% 54%;
  filter: saturate(0.88) contrast(1.03);
}

.hero-frame figcaption {
  position: absolute;
  right: 13px;
  bottom: 13px;
  left: 13px;
  display: flex;
  justify-content: space-between;
  padding: 32px 18px 14px;
  color: rgba(247, 239, 226, 0.74);
  background: linear-gradient(transparent, rgba(48, 4, 7, 0.78));
  font-size: 10.5px;
  letter-spacing: 0.22em;
}

.hero-star {
  position: absolute;
  top: -40px;
  left: -38px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  color: var(--red-900);
  background: var(--gold-300);
  border: 1px solid var(--gold-400);
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(30, 2, 4, 0.24);
}

.hero-star::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(75, 6, 11, 0.25);
  border-radius: 50%;
}

.hero-star svg {
  width: 41px;
  height: 41px;
  fill: currentColor;
}

.hero-stamp {
  position: absolute;
  right: -25px;
  bottom: -30px;
  z-index: 3;
  display: grid;
  place-content: center;
  width: 102px;
  height: 102px;
  color: var(--red-900);
  background: var(--gold-300);
  border: 1px solid var(--gold-500);
  box-shadow: 0 16px 36px rgba(30, 2, 4, 0.24);
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-align: center;
  transform: rotate(-4deg);
}

.hero-stamp span {
  display: block;
}

.hero-vertical {
  position: absolute;
  top: 22px;
  right: -46px;
  color: rgba(239, 219, 169, 0.52);
  font-size: 10.5px;
  letter-spacing: 0.42em;
  writing-mode: vertical-rl;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: rgba(247, 239, 226, 0.45);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  transform: translateX(-50%);
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 1px;
  height: 40px;
  overflow: hidden;
  background: rgba(239, 219, 169, 0.18);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 1px;
  height: 50%;
  background: var(--gold-300);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(0); }
  70%, 100% { transform: translateY(300%); }
}

/* =========================================================
   Marquee
   ========================================================= */

.marquee {
  overflow: hidden;
  color: var(--red-900);
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300) 35%, var(--gold-400) 70%, var(--gold-500));
  border-top: 1px solid rgba(48, 4, 7, 0.12);
  border-bottom: 1px solid rgba(48, 4, 7, 0.12);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  padding: 13px 0;
  animation: marqueeMove 34s linear infinite;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  white-space: nowrap;
}

.marquee-track b {
  opacity: 0.36;
  font-weight: 400;
}

@keyframes marqueeMove {
  to { transform: translateX(-50%); }
}

/* =========================================================
   Section basics
   ========================================================= */

.section {
  position: relative;
  padding: clamp(84px, 10vw, 132px) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(46px, 6vw, 72px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--red-700);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-grid;
  place-items: center;
  min-width: 27px;
  height: 22px;
  padding: 0 6px;
  color: var(--red-800);
  border: 1px solid rgba(148, 19, 30, 0.3);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.section-heading h2 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(37px, 4.7vw, 56px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.015em;
}

.section-heading h2 em {
  position: relative;
  color: var(--red-700);
  font-style: normal;
  white-space: nowrap;
}

.section-heading h2 em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, rgba(207, 170, 97, 0.7), rgba(207, 170, 97, 0));
  clip-path: polygon(0 40%, 100% 0, 100% 42%, 0 100%);
}

.section-heading .lead {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.95;
  text-align: justify;
}

.section-heading-light h2 {
  color: var(--paper);
}

.section-heading-light h2 em {
  color: var(--gold-300);
}

.section-heading-light .lead {
  color: rgba(247, 239, 226, 0.63);
}

.section-heading-light .eyebrow {
  color: var(--gold-300);
}

.section-heading-light .eyebrow span {
  color: var(--gold-300);
  border-color: rgba(239, 219, 169, 0.35);
}

.section-heading-center {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading-center .eyebrow {
  justify-content: center;
}

.section-heading-center .lead {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

/* Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
}

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

.pillars .reveal:nth-child(2),
.spirit-grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.pillars .reveal:nth-child(3),
.spirit-grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.spirit-grid .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

/* =========================================================
   Intro
   ========================================================= */

.intro-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 12%, rgba(207, 170, 97, 0.16), transparent 26%),
    linear-gradient(180deg, var(--paper) 0%, #f8f1e5 100%);
}

.intro-section::before {
  content: "2502";
  position: absolute;
  top: 0;
  right: -2vw;
  color: rgba(114, 11, 18, 0.035);
  font-family: var(--font-serif);
  font-size: clamp(180px, 28vw, 440px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.06em;
  pointer-events: none;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(300px, 0.72fr);
  gap: 28px;
  align-items: stretch;
}

.intro-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 610px;
  padding: clamp(34px, 4.4vw, 58px);
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 85% 12%, rgba(207, 170, 97, 0.16), transparent 30%),
    linear-gradient(145deg, var(--red-800), var(--red-900) 64%, var(--red-950));
  border: 1px solid rgba(48, 4, 7, 0.6);
  box-shadow: var(--shadow-soft);
}

.intro-card::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(239, 219, 169, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(239, 219, 169, 0.025),
    0 0 0 66px rgba(239, 219, 169, 0.018);
}

.intro-card::after {
  content: "团支部";
  position: absolute;
  right: 20px;
  bottom: -24px;
  color: rgba(248, 237, 210, 0.045);
  font-family: var(--font-serif);
  font-size: 130px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.06em;
  pointer-events: none;
}

.intro-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.intro-no {
  color: var(--gold-300);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.intro-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 52px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.1vw, 38px);
  font-weight: 600;
  line-height: 1.58;
  letter-spacing: 0.035em;
}

.intro-card h3 span {
  display: inline-block;
  margin-top: 10px;
  color: var(--gold-300);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.42;
}

.intro-placeholder {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-top: auto;
  padding-top: 34px;
  border-top: 1px solid rgba(239, 219, 169, 0.22);
}

.placeholder-label {
  margin-bottom: 12px;
  color: var(--gold-300);
  font-size: 10.5px;
  letter-spacing: 0.2em;
}

.intro-placeholder > p:not(.placeholder-label) {
  color: rgba(247, 239, 226, 0.66);
  font-size: 14px;
  line-height: 1.95;
  text-align: justify;
}

.copy-lines {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.copy-lines span {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(239, 219, 169, 0.2), rgba(239, 219, 169, 0.03));
}

.copy-lines span:nth-child(2) { width: 88%; }
.copy-lines span:nth-child(3) { width: 62%; }

.intro-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
  color: rgba(239, 219, 169, 0.58);
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.28em;
}

.intro-card-footer .dot {
  width: 4px;
  height: 4px;
  background: var(--gold-400);
  border-radius: 50%;
}

.intro-side {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
}

.fact-card {
  padding: 30px 28px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(58, 8, 12, 0.045);
}

.fact-title {
  padding-bottom: 15px;
  color: var(--red-800);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.fact-list {
  display: grid;
  gap: 0;
}

.fact-list div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(94, 48, 41, 0.12);
  font-size: 12.5px;
}

.fact-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fact-list dt {
  color: var(--muted);
  letter-spacing: 0.06em;
}

.fact-list dd {
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.6;
}

.intro-photo {
  position: relative;
  min-height: 235px;
  overflow: hidden;
  background: var(--red-900);
}

.intro-photo img {
  width: 100%;
  height: 100%;
  min-height: 235px;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.intro-photo:hover img {
  transform: scale(1.04);
}

.intro-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(48, 4, 7, 0.84));
}

.intro-photo figcaption {
  position: absolute;
  right: 18px;
  bottom: 15px;
  left: 18px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

.photo-index {
  color: rgba(239, 219, 169, 0.65);
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.intro-empty {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 20px 22px;
  border: 1px dashed rgba(114, 11, 18, 0.26);
  background: rgba(255, 253, 248, 0.4);
}

.empty-plus {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--red-700);
  border: 1px solid rgba(114, 11, 18, 0.24);
  border-radius: 50%;
  font-size: 23px;
  font-weight: 300;
}

.intro-empty strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.intro-empty p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(42px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.pillar {
  position: relative;
  padding: 34px 38px 0 0;
}

.pillar + .pillar {
  padding-left: 38px;
  border-left: 1px solid var(--line);
}

.pillar-no {
  color: var(--gold-600);
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.pillar h3 {
  margin-top: 13px;
  color: var(--red-800);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pillar p {
  max-width: 330px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  text-align: justify;
}

/* =========================================================
   Video section
   ========================================================= */

.video-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(207, 170, 97, 0.14), transparent 24%),
    linear-gradient(180deg, #f3eadb 0%, #f8f2e8 100%);
  border-top: 1px solid rgba(94, 48, 41, 0.08);
}

.video-section::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38vw;
  height: 38vw;
  max-width: 560px;
  max-height: 560px;
  border: 1px solid rgba(114, 11, 18, 0.06);
  border-radius: 50%;
  transform: translate(35%, -35%);
  pointer-events: none;
}

.section-heading-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  max-width: none;
}

.section-heading-split > div:first-child {
  max-width: 760px;
}

.video-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  flex: 0 0 auto;
  padding-bottom: 4px;
}

.storage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.65);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.storage-badge i {
  width: 6px;
  height: 6px;
  background: var(--gold-600);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(207, 170, 97, 0.14);
}

.storage-badge.is-server i {
  background: #4d7c4f;
  box-shadow: 0 0 0 3px rgba(77, 124, 79, 0.15);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.video-grid:empty {
  display: none;
}

.video-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(94, 48, 41, 0.12);
  box-shadow: 0 8px 28px rgba(58, 8, 12, 0.055);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(148, 19, 30, 0.22);
  box-shadow: 0 22px 48px rgba(58, 8, 12, 0.13);
}

.video-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: var(--red-900);
  border: 0;
  cursor: pointer;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease), filter 0.35s ease;
}

.video-card:hover .video-cover img {
  transform: scale(1.045);
  filter: brightness(0.88);
}

.video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(48, 4, 7, 0.04) 40%, rgba(48, 4, 7, 0.42));
  pointer-events: none;
}

.video-cover.no-cover {
  background:
    radial-gradient(circle at 50% 45%, rgba(207, 170, 97, 0.17), transparent 40%),
    var(--red-900);
}

.video-cover.no-cover::before {
  content: "红色影像";
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(239, 219, 169, 0.28);
  font-family: var(--font-serif);
  font-size: 40px;
  letter-spacing: 0.25em;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--red-900);
  background: rgba(248, 237, 210, 0.94);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(30, 2, 4, 0.3);
  transform: translate(-50%, -50%) scale(0.94);
  transition: transform 0.35s var(--ease), background 0.3s ease;
}

.video-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}

.video-card:hover .video-play {
  background: var(--gold-300);
  transform: translate(-50%, -50%) scale(1);
}

.video-duration {
  position: absolute;
  right: 12px;
  bottom: 11px;
  z-index: 2;
  padding: 2px 7px;
  color: var(--paper);
  background: rgba(30, 2, 4, 0.72);
  border: 1px solid rgba(247, 239, 226, 0.18);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.video-card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 21px 22px 22px;
}

.video-card-copy {
  min-width: 0;
}

.video-card-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.025em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-card-copy p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.video-card-copy p i {
  width: 3px;
  height: 3px;
  background: var(--gold-500);
  border-radius: 50%;
}

.video-delete {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-top: 2px;
  padding: 0;
  color: rgba(77, 53, 49, 0.42);
  background: transparent;
  border: 1px solid rgba(77, 53, 49, 0.14);
  border-radius: 50%;
  font-size: 17px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  transition: color 0.2s, border-color 0.2s, opacity 0.2s, background 0.2s;
}

.video-card:hover .video-delete,
.video-delete:focus-visible {
  opacity: 1;
}

.video-delete:hover {
  color: var(--red-700);
  border-color: rgba(148, 19, 30, 0.3);
  background: rgba(148, 19, 30, 0.05);
}

.video-empty {
  position: relative;
  padding: clamp(34px, 5vw, 62px);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.7), rgba(247, 239, 226, 0.3));
  border: 1px dashed rgba(114, 11, 18, 0.26);
}

.video-empty-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.empty-play {
  display: block;
  width: 84px;
  height: 84px;
  color: var(--red-700);
}

.empty-play svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.empty-play svg path {
  fill: currentColor;
  stroke: none;
}

.video-empty-eyebrow {
  margin-bottom: 6px;
  color: var(--gold-600);
  font-size: 10px;
  letter-spacing: 0.22em;
}

.video-empty h3 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.video-empty p:not(.video-empty-eyebrow) {
  max-width: 580px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.video-note {
  margin-top: 18px;
  color: rgba(130, 107, 100, 0.8);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

/* =========================================================
   History
   ========================================================= */

.history-section {
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% 4%, rgba(207, 170, 97, 0.12), transparent 24%),
    radial-gradient(circle at 8% 40%, rgba(148, 19, 30, 0.55), transparent 30%),
    linear-gradient(180deg, var(--red-950), #43060b 30%, #390508 100%);
}

.history-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(12.5% - 1px), rgba(239, 219, 169, 0.035) calc(12.5% - 1px), rgba(239, 219, 169, 0.035) 12.5%);
  pointer-events: none;
}

.history-section .container {
  position: relative;
  z-index: 1;
}

.history-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

.history-opening-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(207, 170, 97, 0.34);
  box-shadow: 0 32px 80px rgba(20, 1, 3, 0.32);
}

.history-opening-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(30, 2, 4, 0.65));
  pointer-events: none;
}

.history-opening-photo img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  object-position: 52% 56%;
  filter: saturate(0.86) contrast(1.02);
  transition: transform 1s var(--ease);
}

.history-opening-photo:hover img {
  transform: scale(1.035);
}

.history-opening-photo figcaption {
  position: absolute;
  right: 20px;
  bottom: 17px;
  left: 20px;
  z-index: 1;
  color: rgba(247, 239, 226, 0.7);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.history-index {
  color: var(--gold-400);
  font-size: 10.5px;
  letter-spacing: 0.32em;
}

.history-opening-copy h3 {
  margin-top: 16px;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.5vw, 54px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0.04em;
}

.history-opening-copy > p {
  margin-top: 19px;
  color: rgba(247, 239, 226, 0.67);
  font-size: 13.5px;
  line-height: 1.98;
  text-align: justify;
}

.history-opening-copy blockquote {
  margin-top: 28px;
  padding: 18px 0 18px 23px;
  color: var(--gold-200);
  border-left: 1px solid var(--gold-500);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.04em;
}

.history-opening-copy cite {
  display: block;
  margin-top: 6px;
  color: rgba(247, 239, 226, 0.42);
  font-family: var(--font-sans);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.history-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(46px, 6vw, 76px) 0 clamp(60px, 8vw, 96px);
  border-top: 1px solid rgba(207, 170, 97, 0.23);
  border-bottom: 1px solid rgba(207, 170, 97, 0.23);
}

.history-stats div {
  padding: 28px 28px 26px;
  border-left: 1px solid rgba(207, 170, 97, 0.14);
}

.history-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.history-stats strong {
  display: block;
  color: var(--gold-300);
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.history-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(247, 239, 226, 0.5);
  font-size: 10.5px;
  line-height: 1.55;
  letter-spacing: 0.08em;
}

.timeline {
  position: relative;
  max-width: 1120px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 0;
  left: 184px;
  width: 1px;
  background: linear-gradient(180deg, rgba(207, 170, 97, 0.6), rgba(207, 170, 97, 0.12));
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 48px minmax(0, 1fr);
  align-items: start;
}

.timeline-year {
  padding: 4px 24px 0 0;
  text-align: right;
}

.timeline-year span {
  display: block;
  color: var(--gold-300);
  font-family: var(--font-serif);
  font-size: clamp(31px, 3.4vw, 43px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.timeline-year small {
  display: block;
  margin-top: 7px;
  color: rgba(239, 219, 169, 0.48);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
  height: 100%;
}

.timeline-rail i {
  position: relative;
  z-index: 1;
  display: block;
  width: 13px;
  height: 13px;
  margin-top: 14px;
  background: var(--red-900);
  border: 1px solid var(--gold-400);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--red-950);
}

.timeline-item:first-child .timeline-rail i {
  background: var(--gold-300);
}

.timeline-body {
  padding: 2px 24px clamp(55px, 7vw, 82px) 40px;
  border-bottom: 1px solid rgba(239, 219, 169, 0.12);
}

.timeline-item:last-child .timeline-body {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-kicker {
  color: var(--gold-400);
  font-size: 9.5px;
  letter-spacing: 0.22em;
}

.timeline-body h3 {
  margin-top: 11px;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(25px, 2.8vw, 34px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.timeline-body > p:not(.timeline-kicker) {
  margin-top: 15px;
  color: rgba(247, 239, 226, 0.64);
  font-size: 13.5px;
  line-height: 2;
  text-align: justify;
}

.timeline-photo {
  max-width: 650px;
  margin-top: 27px;
  overflow: hidden;
  background: rgba(248, 237, 210, 0.04);
  border: 1px solid rgba(207, 170, 97, 0.25);
}

.timeline-photo img {
  width: 100%;
  max-height: 390px;
  object-fit: cover;
  filter: saturate(0.88);
  transition: filter 0.4s ease;
}

.timeline-photo:hover img {
  filter: saturate(1);
}

.timeline-photo figcaption {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  color: rgba(247, 239, 226, 0.44);
  border-top: 1px solid rgba(207, 170, 97, 0.16);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.timeline-photo-wide img {
  aspect-ratio: 16 / 9;
}

.timeline-photo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(207, 170, 97, 0.24);
}

.timeline-photo-duo img {
  height: 100%;
  aspect-ratio: 1.35 / 1;
}

.timeline-photo-duo figcaption {
  grid-column: 1 / -1;
  background: var(--red-950);
}

.timeline-quote {
  display: flex;
  gap: 14px;
  max-width: 600px;
  margin-top: 25px;
  padding: 20px 24px;
  background: rgba(248, 237, 210, 0.045);
  border-left: 2px solid var(--gold-500);
}

.timeline-quote > span {
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 0.9;
}

.timeline-quote p {
  color: rgba(247, 239, 226, 0.72);
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.history-gallery {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  gap: 18px;
  margin-top: clamp(62px, 8vw, 100px);
}

.history-gallery figure {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background: var(--red-900);
  border: 1px solid rgba(207, 170, 97, 0.18);
}

.history-gallery img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.4s ease;
}

.history-gallery figure:hover img {
  transform: scale(1.045);
}

.history-gallery figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(30, 2, 4, 0.82));
  pointer-events: none;
}

.history-gallery figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.history-gallery figcaption span:first-child {
  color: var(--gold-200);
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 0.1em;
}

.history-gallery figcaption span:last-child {
  color: rgba(247, 239, 226, 0.5);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.sources {
  margin-top: clamp(50px, 6vw, 76px);
  padding-top: 27px;
  border-top: 1px solid rgba(239, 219, 169, 0.15);
}

.sources > p:first-child {
  color: var(--gold-400);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 13px;
}

.sources a {
  color: rgba(247, 239, 226, 0.56);
  font-size: 11px;
  border-bottom: 1px solid rgba(247, 239, 226, 0.17);
  transition: color 0.2s, border-color 0.2s;
}

.sources a:hover {
  color: var(--gold-300);
  border-color: var(--gold-400);
}

.source-note {
  max-width: 860px;
  margin-top: 20px;
  color: rgba(247, 239, 226, 0.32);
  font-size: 10px;
  line-height: 1.85;
}

/* =========================================================
   Spirit
   ========================================================= */

.spirit-section {
  background:
    radial-gradient(circle at 50% 0, rgba(207, 170, 97, 0.18), transparent 32%),
    var(--paper);
  border-top: 1px solid var(--line);
}

.spirit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spirit-card {
  position: relative;
  min-height: 295px;
  padding: 40px 30px;
}

.spirit-card + .spirit-card {
  border-left: 1px solid var(--line);
}

.spirit-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  color: var(--red-800);
  border: 1px solid rgba(114, 11, 18, 0.28);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 15px;
}

.spirit-card h3 {
  margin-top: 29px;
  color: var(--red-800);
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.spirit-card p {
  margin-top: 13px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
  text-align: justify;
}

.spirit-banner {
  margin-top: 46px;
  padding: 30px 40px;
  color: var(--paper);
  background:
    radial-gradient(circle at 88% 50%, rgba(207, 170, 97, 0.18), transparent 35%),
    var(--red-900);
  text-align: center;
}

.spirit-banner p {
  color: var(--gold-200);
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.3vw, 27px);
  letter-spacing: 0.16em;
}

.spirit-banner span {
  display: block;
  margin-top: 7px;
  color: rgba(247, 239, 226, 0.4);
  font-size: 9.5px;
  letter-spacing: 0.16em;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  color: var(--paper);
  background: var(--red-950);
  border-top: 1px solid rgba(207, 170, 97, 0.24);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 38px 0 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 43px;
  height: 43px;
  padding: 2px;
  background: var(--paper);
  border-radius: 50%;
  object-fit: contain;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.footer-brand span {
  color: rgba(247, 239, 226, 0.44);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.footer-motto {
  color: var(--gold-300);
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.24em;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(247, 239, 226, 0.48);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold-300);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0 22px;
  color: rgba(247, 239, 226, 0.28);
  border-top: 1px solid rgba(239, 219, 169, 0.1);
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

/* =========================================================
   Modals
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 2, 4, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1060px, 94vw);
  max-height: 92vh;
  overflow: auto;
  background:
    radial-gradient(circle at 88% 0, rgba(207, 170, 97, 0.13), transparent 30%),
    var(--paper);
  border: 1px solid rgba(207, 170, 97, 0.46);
  border-top: 4px solid var(--red-800);
  box-shadow: 0 40px 110px rgba(10, 0, 1, 0.5);
  animation: modalIn 0.35s var(--ease) both;
}

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

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 34px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-eyebrow {
  color: var(--gold-600);
  font-size: 9.5px;
  letter-spacing: 0.24em;
}

.modal-header h2 {
  margin-top: 4px;
  color: var(--red-800);
  font-family: var(--font-serif);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.modal-close,
.player-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--red-800);
  border-color: rgba(114, 11, 18, 0.34);
  background: rgba(114, 11, 18, 0.05);
}

/* Upload choose */

.upload-step {
  padding: 30px 34px 28px;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 330px;
  padding: 40px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.8), rgba(243, 234, 219, 0.42));
  border: 1px dashed rgba(114, 11, 18, 0.32);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.dropzone:hover,
.dropzone.is-dragging {
  background: rgba(207, 170, 97, 0.09);
  border-color: var(--red-700);
}

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
  color: var(--red-700);
  border: 1px solid rgba(114, 11, 18, 0.22);
  border-radius: 50%;
}

.dropzone-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropzone strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.dropzone > span:last-child {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11.5px;
}

.upload-tips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.upload-tips i {
  width: 24px;
  height: 1px;
  background: var(--line);
}

/* Upload editor */

.upload-editor {
  padding: 28px 34px 0;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  gap: 30px;
}

.editor-preview {
  position: relative;
  align-self: start;
  overflow: hidden;
  background: #16090a;
  border: 1px solid rgba(48, 4, 7, 0.4);
  box-shadow: 0 16px 40px rgba(48, 4, 7, 0.16);
}

.editor-preview video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d0506;
  object-fit: contain;
}

.editor-preview-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  color: var(--gold-200);
  background: rgba(30, 2, 4, 0.68);
  border: 1px solid rgba(239, 219, 169, 0.18);
  font-size: 9px;
  letter-spacing: 0.14em;
  pointer-events: none;
}

.editor-side {
  min-width: 0;
}

.field {
  position: relative;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 46px 0 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(94, 48, 41, 0.22);
  border-radius: 2px;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  border-color: var(--red-700);
  outline: none;
  box-shadow: 0 0 0 3px rgba(148, 19, 30, 0.08);
}

.field-count {
  position: absolute;
  right: 12px;
  bottom: 14px;
  color: var(--muted);
  font-size: 9px;
}

.cover-preview-wrap {
  margin-top: 18px;
}

.cover-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(207, 170, 97, 0.13), transparent 45%),
    var(--red-900);
  border: 1px solid rgba(48, 4, 7, 0.24);
}

.cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(239, 219, 169, 0.45);
  text-align: center;
}

.cover-placeholder > span {
  font-size: 26px;
  line-height: 1;
}

.cover-placeholder p {
  margin-top: 9px;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.seek-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.seek-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.seek-head label {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.seek-head output {
  color: var(--red-700);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  margin: 15px 0 11px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, var(--red-700), var(--gold-500));
  border-radius: 99px;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--paper);
  border: 3px solid var(--red-700);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(48, 4, 7, 0.25);
}

input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--paper);
  border: 3px solid var(--red-700);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(48, 4, 7, 0.25);
}

.seek-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.seek-help > span {
  color: var(--muted);
  font-size: 9.5px;
}

.editor-hint {
  margin-top: 17px;
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(207, 170, 97, 0.08);
  border-left: 2px solid var(--gold-500);
  font-size: 10px;
  line-height: 1.7;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 27px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--line);
}

.modal-footer-actions {
  display: flex;
  gap: 10px;
}

.modal-footer .btn {
  min-height: 43px;
  padding: 0 20px;
  font-size: 12px;
}

.upload-progress {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(251, 247, 239, 0.96);
  text-align: center;
  backdrop-filter: blur(5px);
}

.progress-spinner {
  width: 53px;
  height: 53px;
  border: 1px solid rgba(114, 11, 18, 0.14);
  border-top-color: var(--red-700);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.upload-progress p {
  margin-top: 21px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: 0.05em;
}

.upload-progress small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.progress-bar {
  width: min(330px, 76%);
  height: 3px;
  margin-top: 21px;
  overflow: hidden;
  background: rgba(114, 11, 18, 0.12);
  border-radius: 99px;
}

.progress-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red-700), var(--gold-500));
  transition: width 0.25s ease;
}

/* Player */

.player-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 94vw);
  max-height: 92vh;
  overflow: auto;
  color: var(--paper);
  background: #180708;
  border: 1px solid rgba(207, 170, 97, 0.36);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  animation: modalIn 0.35s var(--ease) both;
}

.player-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  color: var(--paper);
  background: rgba(30, 2, 4, 0.5);
  border-color: rgba(247, 239, 226, 0.22);
}

.player-close:hover {
  color: var(--gold-200);
  background: rgba(30, 2, 4, 0.7);
  border-color: rgba(247, 239, 226, 0.4);
}

.player-stage {
  background: #000;
}

.player-stage video {
  display: block;
  width: 100%;
  max-height: 72vh;
  background: #000;
}

.player-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: 23px 28px 26px;
  border-top: 1px solid rgba(239, 219, 169, 0.14);
}

.player-eyebrow {
  color: var(--gold-500);
  font-size: 9px;
  letter-spacing: 0.22em;
}

.player-info h2 {
  margin-top: 5px;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 29px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.player-info > span {
  flex: 0 0 auto;
  padding-bottom: 4px;
  color: rgba(247, 239, 226, 0.38);
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* Toast */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 21px;
  color: var(--paper);
  background: var(--red-900);
  border: 1px solid rgba(207, 170, 97, 0.45);
  box-shadow: 0 16px 40px rgba(30, 2, 4, 0.3);
  font-size: 12px;
  letter-spacing: 0.04em;
  transform: translateX(-50%);
  animation: toastIn 0.3s var(--ease) both;
}

.toast::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold-300);
  border-radius: 50%;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .primary-nav {
    gap: 24px;
    margin-right: 24px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.64fr);
    gap: 58px;
  }

  .hero-vertical,
  .hero-stamp {
    right: -12px;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 76px;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 4vw;
    left: 4vw;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px;
    background: rgba(48, 4, 7, 0.98);
    border: 1px solid rgba(207, 170, 97, 0.28);
    box-shadow: 0 20px 44px rgba(20, 1, 3, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav a {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(239, 219, 169, 0.09);
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

  .primary-nav a::after {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-inner {
    width: 92vw;
  }

  .hero {
    padding-top: calc(var(--header-h) + 54px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 62px;
    align-items: start;
  }

  .hero-visual {
    max-width: 460px;
    justify-self: start;
    margin-left: 22px;
  }

  .hero-frame img {
    aspect-ratio: 16 / 10;
  }

  .hero-vertical {
    display: none;
  }

  .hero-stamp {
    right: -18px;
  }

  .hero::after {
    width: 80vw;
    height: 80vw;
  }

  .scroll-cue {
    display: none;
  }

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

  .intro-card {
    min-height: 540px;
  }

  .intro-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .fact-card {
    grid-row: span 2;
  }

  .intro-photo,
  .intro-photo img {
    min-height: 190px;
  }

  .section-heading-split {
    display: block;
  }

  .video-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
  }

  .history-opening {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .history-opening-photo img {
    aspect-ratio: 16 / 9;
  }

  .history-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .history-stats div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(207, 170, 97, 0.14);
  }

  .history-stats div:nth-child(4) {
    border-top: 1px solid rgba(207, 170, 97, 0.14);
  }

  .timeline::before {
    left: 13px;
  }

  .timeline-item {
    grid-template-columns: 26px minmax(0, 1fr);
    padding-left: 0;
  }

  .timeline-year {
    grid-column: 2;
    padding: 0 0 14px 24px;
    text-align: left;
  }

  .timeline-year span {
    font-size: 33px;
  }

  .timeline-year small {
    display: inline-block;
    margin-top: 0;
    margin-left: 10px;
  }

  .timeline-rail {
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-content: flex-start;
    padding-left: 7px;
  }

  .timeline-rail i {
    margin-top: 8px;
  }

  .timeline-body {
    grid-column: 2;
    padding: 0 12px 55px 24px;
  }

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

  .history-gallery .gallery-wide {
    grid-column: 1 / -1;
    min-height: 300px;
  }

  .spirit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spirit-card {
    min-height: 260px;
  }

  .spirit-card:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .spirit-card:nth-child(4) {
    border-top: 1px solid var(--line);
  }

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

  .footer-motto {
    order: 3;
    width: 100%;
  }

  .footer-links {
    margin-left: auto;
  }

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

  .editor-preview video {
    max-height: 44vh;
  }

  .upload-editor {
    padding: 25px 26px 0;
  }

  .modal-header {
    padding: 24px 26px 20px;
  }

  .upload-step {
    padding: 25px 26px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .container,
  .hero-grid {
    width: min(100% - 40px, 1240px);
  }

  .site-header.scrolled {
    height: 66px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-text strong {
    font-size: 14.5px;
  }

  .brand-text small {
    font-size: 9px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-h) + 46px);
    padding-bottom: 70px;
  }

  .hero-eyebrow {
    margin-bottom: 22px;
    font-size: 10.5px;
    letter-spacing: 0.17em;
  }

  .hero h1 {
    font-size: clamp(41px, 12vw, 60px);
    line-height: 1.16;
  }

  .hero-desc {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.9;
  }

  .hero-actions {
    margin-top: 29px;
  }

  .hero-actions .btn {
    flex: 1 1 160px;
  }

  .hero-facts {
    margin-top: 42px;
  }

  .hero-facts dt {
    font-size: 24px;
  }

  .hero-facts dd {
    font-size: 9.5px;
    letter-spacing: 0.05em;
  }

  .hero-visual {
    width: calc(100% - 24px);
    margin-left: 12px;
  }

  .hero-star {
    top: -30px;
    left: -20px;
    width: 72px;
    height: 72px;
  }

  .hero-star svg {
    width: 31px;
    height: 31px;
  }

  .hero-stamp {
    right: -12px;
    bottom: -22px;
    width: 80px;
    height: 80px;
    font-size: 15px;
  }

  .marquee-track {
    padding: 10px 0;
    font-size: 10px;
    gap: 20px;
  }

  .section {
    padding: 72px 0;
  }

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

  .section-heading h2 {
    font-size: clamp(31px, 9vw, 42px);
  }

  .section-heading .lead {
    margin-top: 19px;
    font-size: 13.5px;
    line-height: 1.9;
  }

  .intro-section::before {
    display: none;
  }

  .intro-card {
    min-height: 0;
    padding: 30px 24px;
  }

  .intro-card h3 {
    margin-top: 35px;
    font-size: 22px;
  }

  .intro-card h3 span {
    font-size: 26px;
  }

  .intro-card::after {
    font-size: 80px;
  }

  .intro-placeholder {
    padding-top: 25px;
  }

  .intro-side {
    grid-template-columns: 1fr;
  }

  .fact-card {
    grid-row: auto;
  }

  .intro-photo,
  .intro-photo img {
    min-height: 220px;
  }

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

  .pillar {
    padding: 26px 0;
  }

  .pillar + .pillar {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .video-empty {
    padding: 32px 24px;
  }

  .video-empty-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .empty-play {
    width: 64px;
    height: 64px;
  }

  .video-empty .btn {
    width: 100%;
  }

  .history-opening-copy h3 {
    font-size: 37px;
  }

  .history-stats div {
    padding: 22px 18px;
  }

  .history-stats div:nth-child(odd) {
    padding-left: 0;
  }

  .history-stats strong {
    font-size: 34px;
  }

  .timeline-item {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .timeline::before {
    left: 11px;
  }

  .timeline-rail {
    padding-left: 5px;
  }

  .timeline-year {
    padding-left: 20px;
  }

  .timeline-body {
    padding-right: 6px;
    padding-left: 20px;
  }

  .timeline-body h3 {
    font-size: 24px;
  }

  .timeline-body > p:not(.timeline-kicker) {
    font-size: 12.5px;
  }

  .timeline-photo-duo {
    grid-template-columns: 1fr;
  }

  .timeline-photo-duo img {
    aspect-ratio: 16 / 10;
  }

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

  .history-gallery .gallery-wide {
    grid-column: auto;
    min-height: 240px;
  }

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

  .spirit-card {
    min-height: 0;
    padding: 28px 4px;
  }

  .spirit-card + .spirit-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .spirit-banner {
    padding: 25px 20px;
  }

  .footer-grid {
    align-items: flex-start;
    padding-top: 30px;
  }

  .footer-brand strong {
    font-size: 12px;
  }

  .footer-links {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal-panel,
  .player-panel {
    width: 100%;
    max-height: 94vh;
    border-right: 0;
    border-left: 0;
  }

  .modal-panel {
    border-bottom: 0;
  }

  .modal-header h2 {
    font-size: 24px;
  }

  .dropzone {
    min-height: 280px;
    padding: 28px 20px;
  }

  .dropzone strong {
    font-size: 17px;
  }

  .upload-tips {
    gap: 8px;
    font-size: 8.5px;
  }

  .upload-tips i {
    width: 12px;
  }

  .upload-editor {
    padding: 20px 18px 0;
  }

  .modal-footer {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 14px;
  }

  .modal-footer-actions {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
  }

  .modal-footer .btn {
    width: 100%;
  }

  .modal-footer > .text-btn {
    align-self: flex-start;
  }

  .player-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 18px 20px 22px;
  }

  .toast {
    right: 20px;
    bottom: 20px;
    left: 20px;
    justify-content: center;
    transform: none;
    animation-name: toastInMobile;
  }

  @keyframes toastInMobile {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 420px) {
  .brand-text small {
    display: none;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-facts {
    gap: 0;
  }

  .hero-facts div {
    padding-left: 13px;
  }

  .hero-facts dt {
    font-size: 21px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .history-stats {
    grid-template-columns: 1fr;
  }

  .history-stats div {
    padding-left: 0;
    border-top: 1px solid rgba(207, 170, 97, 0.14);
    border-left: 0;
  }

  .history-stats div:first-child {
    border-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   2026-10 更新：成员认证 / 支部风采 / 照片墙
   ========================================================= */

/* 顶部成员认证入口 */
.primary-nav {
  margin-right: 26px;
}

.member-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  color: var(--gold-200);
  background: rgba(248, 237, 210, 0.04);
  border: 1px solid rgba(239, 219, 169, 0.38);
  border-radius: 2px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.member-entry:hover {
  color: var(--red-900);
  background: var(--gold-300);
  border-color: var(--gold-300);
  transform: translateY(-1px);
}

.member-entry-icon {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.member-entry-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.member-entry.is-authenticated {
  color: var(--red-900);
  background: var(--gold-300);
  border-color: var(--gold-400);
  box-shadow: 0 6px 20px rgba(207, 170, 97, 0.18);
}

.member-entry.is-authenticated:hover {
  background: var(--gold-200);
  border-color: var(--gold-200);
}

.member-text-short {
  display: none;
}

/* 支部风采 */
.gallery-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(207, 170, 97, 0.15), transparent 25%),
    linear-gradient(180deg, #fbf7ef 0%, #f6edde 100%);
  border-bottom: 1px solid rgba(94, 48, 41, 0.08);
}

.gallery-section::before {
  content: "风采";
  position: absolute;
  top: 100px;
  right: -2vw;
  color: rgba(114, 11, 18, 0.035);
  font-family: var(--font-serif);
  font-size: clamp(170px, 24vw, 380px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: 0.08em;
  pointer-events: none;
  user-select: none;
}

.gallery-section .container {
  position: relative;
  z-index: 1;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  padding-bottom: 4px;
}

.btn-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 19px;
  margin-left: 4px;
  padding: 0 5px;
  color: var(--paper);
  background: var(--red-800);
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
}

.btn-ghost-dark .btn-count {
  color: var(--paper);
}

.featured-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.featured-gallery:empty {
  display: none;
}

.photo-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: var(--red-900);
  border: 1px solid rgba(94, 48, 41, 0.12);
  box-shadow: 0 8px 28px rgba(58, 8, 12, 0.07);
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s var(--ease), filter 0.4s ease;
}

.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(30, 2, 4, 0.78));
  pointer-events: none;
}

.photo-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(148, 19, 30, 0.25);
  box-shadow: 0 20px 42px rgba(58, 8, 12, 0.15);
}

.photo-tile:hover img {
  transform: scale(1.045);
  filter: brightness(0.92);
}

.photo-tile-overlay {
  position: absolute;
  right: 17px;
  bottom: 14px;
  left: 17px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  color: var(--paper);
  text-align: left;
}

.photo-tile-overlay strong {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.photo-tile-overlay span {
  color: rgba(247, 239, 226, 0.58);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.photo-tile-view {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--red-900);
  background: rgba(248, 237, 210, 0.9);
  border-radius: 50%;
  font-size: 13px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.photo-tile:hover .photo-tile-view {
  opacity: 1;
  transform: translateY(0);
}

.gallery-empty {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 35px 40px;
  background: rgba(255, 253, 248, 0.55);
  border: 1px dashed rgba(114, 11, 18, 0.24);
}

.gallery-empty-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 68px;
  height: 68px;
  color: var(--red-700);
  border: 1px solid rgba(114, 11, 18, 0.2);
  border-radius: 50%;
}

.gallery-empty-icon svg {
  width: 33px;
  height: 33px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-empty h3 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.gallery-empty p {
  max-width: 570px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.gallery-empty .btn {
  margin-left: auto;
  flex: 0 0 auto;
}

.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  color: rgba(130, 107, 100, 0.74);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.gallery-footer .text-btn {
  flex: 0 0 auto;
}

/* 成员认证弹窗 */
.member-panel {
  width: min(500px, 94vw);
}

.auth-form-view,
.auth-status-view {
  padding: 28px 34px 36px;
}

.auth-description {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

.auth-form {
  display: grid;
  gap: 17px;
  margin-top: 24px;
}

.auth-field {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
}

.auth-field input {
  width: 100%;
  height: 49px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(94, 48, 41, 0.22);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
  border-color: var(--red-700);
  outline: none;
  box-shadow: 0 0 0 3px rgba(148, 19, 30, 0.08);
}

.auth-error {
  padding: 9px 12px;
  color: var(--red-700);
  background: rgba(148, 19, 30, 0.055);
  border-left: 2px solid var(--red-700);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.auth-submit {
  width: 100%;
  margin-top: 3px;
}

.auth-status-view {
  text-align: center;
}

.auth-check {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 4px auto 22px;
  color: var(--red-700);
  background: rgba(207, 170, 97, 0.13);
  border: 1px solid rgba(207, 170, 97, 0.34);
  border-radius: 50%;
}

.auth-check svg {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-check circle {
  fill: rgba(248, 237, 210, 0.4);
}

.auth-status-label {
  color: var(--gold-600);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
}

.auth-status-name {
  margin-top: 6px;
  color: var(--red-800);
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.auth-status-meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11.5px;
}

.auth-status-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 29px;
}

.auth-status-actions .btn {
  min-height: 43px;
  padding: 0 24px;
  font-size: 12px;
}

/* 上传照片 */
.photo-upload-panel {
  position: relative;
  width: min(760px, 94vw);
}

.photo-upload-body {
  padding: 26px 34px 30px;
}

.photo-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 205px;
  padding: 26px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.8), rgba(243, 234, 219, 0.42));
  border: 1px dashed rgba(114, 11, 18, 0.3);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.photo-dropzone:hover,
.photo-dropzone.is-dragging {
  background: rgba(207, 170, 97, 0.09);
  border-color: var(--red-700);
}

.photo-dropzone-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 15px;
  color: var(--red-700);
  border: 1px solid rgba(114, 11, 18, 0.2);
  border-radius: 50%;
}

.photo-dropzone-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-dropzone strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.photo-dropzone > span:last-child {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
}

.photo-picks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-top: 17px;
}

.photo-picks:empty {
  display: none;
}

.photo-pick {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--red-900);
  border: 1px solid rgba(94, 48, 41, 0.14);
}

.photo-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-pick-info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 20px 8px 6px;
  overflow: hidden;
  color: rgba(247, 239, 226, 0.7);
  background: linear-gradient(transparent, rgba(30, 2, 4, 0.78));
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-pick-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  padding: 0;
  color: var(--paper);
  background: rgba(30, 2, 4, 0.66);
  border: 1px solid rgba(247, 239, 226, 0.25);
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.photo-pick-remove:hover {
  background: var(--red-700);
}

.photo-upload-message {
  margin-top: 13px;
  padding: 8px 10px;
  color: var(--red-700);
  background: rgba(148, 19, 30, 0.055);
  border-left: 2px solid var(--red-700);
  font-size: 11px;
}

.photo-upload-footer {
  margin-top: 19px;
  padding-bottom: 0;
}

/* 全部照片 */
.gallery-panel {
  width: min(1120px, 94vw);
}

.gallery-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  margin-left: 7px;
  padding: 0 6px;
  color: var(--red-800);
  background: rgba(207, 170, 97, 0.18);
  border: 1px solid rgba(207, 170, 97, 0.3);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  vertical-align: 3px;
  letter-spacing: 0;
}

.gallery-modal-body {
  min-height: 220px;
  padding: 25px 30px 32px;
}

.all-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.all-photo-grid:empty {
  display: none;
}

.all-photo-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  background: var(--red-900);
  border: 1px solid rgba(94, 48, 41, 0.11);
  cursor: pointer;
}

.all-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease), filter 0.3s ease;
}

.all-photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 63%, rgba(30, 2, 4, 0.66));
  pointer-events: none;
}

.all-photo-tile span {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  z-index: 1;
  overflow: hidden;
  color: rgba(247, 239, 226, 0.75);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.all-photo-tile:hover img {
  transform: scale(1.045);
  filter: brightness(0.9);
}

.all-photos-empty {
  padding: 54px 20px;
  color: var(--muted);
  text-align: center;
}

.all-photos-empty p {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 20px;
}

.all-photos-empty span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
}

/* 灯箱 */
.lightbox {
  z-index: 350;
}

.lightbox .modal-backdrop {
  background: rgba(17, 2, 3, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(1240px, 94vw);
  animation: lightboxFade 0.25s ease both;
}

@keyframes lightboxFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-figure {
  margin: 0;
  text-align: center;
}

.lightbox-figure img {
  max-width: min(82vw, 1120px);
  max-height: 77vh;
  object-fit: contain;
  border: 1px solid rgba(239, 219, 169, 0.2);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.lightbox-figure figcaption {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  color: var(--paper);
  text-align: center;
}

.lightbox-figure strong {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.lightbox-figure figcaption span {
  color: rgba(247, 239, 226, 0.45);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--paper);
  background: rgba(30, 2, 4, 0.48);
  border: 1px solid rgba(247, 239, 226, 0.26);
  border-radius: 50%;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: var(--paper);
  background: rgba(248, 237, 210, 0.06);
  border: 1px solid rgba(247, 239, 226, 0.24);
  border-radius: 50%;
  font-size: 38px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.lightbox-nav:hover {
  color: var(--red-900);
  background: var(--gold-300);
  border-color: var(--gold-300);
}

.lightbox-nav:disabled {
  opacity: 0.22;
  cursor: default;
}

@media (max-width: 1180px) {
  .primary-nav {
    gap: 25px;
    margin-right: 20px;
  }

  .member-entry {
    padding: 0 12px;
    font-size: 11px;
  }
}

@media (max-width: 980px) {
  .section-heading-split .gallery-toolbar {
    justify-content: flex-start;
    margin-top: 25px;
  }

  .featured-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .all-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .member-text-full {
    display: none;
  }

  .member-text-short {
    display: inline;
  }

  .member-entry {
    gap: 6px;
    min-height: 38px;
    padding: 0 11px;
    font-size: 10.5px;
  }

  .member-entry-icon {
    width: 15px;
    height: 15px;
  }

  .gallery-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 8px;
    padding-bottom: 0;
  }

  .gallery-toolbar .btn {
    width: 100%;
    min-height: 42px;
    padding: 0 11px;
    font-size: 11px;
    letter-spacing: 0.03em;
  }

  .gallery-toolbar .btn-red {
    grid-column: 1 / -1;
  }

  .featured-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .photo-tile {
    aspect-ratio: 1;
  }

  .photo-tile-overlay {
    right: 10px;
    bottom: 9px;
    left: 10px;
  }

  .photo-tile-overlay strong {
    font-size: 11.5px;
  }

  .photo-tile-overlay span {
    display: none;
  }

  .photo-tile-view {
    display: none;
  }

  .gallery-empty {
    flex-direction: column;
    align-items: flex-start;
    gap: 17px;
    padding: 28px 22px;
  }

  .gallery-empty-icon {
    width: 56px;
    height: 56px;
  }

  .gallery-empty-icon svg {
    width: 27px;
    height: 27px;
  }

  .gallery-empty h3 {
    font-size: 20px;
  }

  .gallery-empty .btn {
    width: 100%;
    margin-left: 0;
  }

  .gallery-footer {
    gap: 12px;
    align-items: flex-start;
    font-size: 9.5px;
  }

  .gallery-footer .text-btn {
    font-size: 10px;
    white-space: nowrap;
  }

  .auth-form-view,
  .auth-status-view {
    padding: 22px 20px 28px;
  }

  .auth-description {
    font-size: 12px;
  }

  .auth-status-name {
    font-size: 29px;
  }

  .photo-upload-body {
    padding: 20px 18px 24px;
  }

  .photo-dropzone {
    min-height: 180px;
    padding: 22px 16px;
  }

  .photo-picks {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-modal-actions {
    gap: 8px;
  }

  .gallery-modal-actions .btn {
    min-height: 35px;
    padding: 0 9px;
    font-size: 9.5px;
    letter-spacing: 0.02em;
  }

  .gallery-modal-body {
    padding: 16px;
  }

  .all-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .lightbox-inner {
    width: 100%;
    padding: 0 10px;
  }

  .lightbox-figure img {
    max-width: 100%;
    max-height: 72vh;
  }

  .lightbox-figure figcaption {
    align-items: center;
    flex-direction: column;
    gap: 3px;
    padding: 0 20px;
    text-align: center;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    font-size: 30px;
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 4px;
  }

  .lightbox-next {
    right: 4px;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 420px) {
  .member-entry {
    gap: 5px;
    padding: 0 9px;
  }

  .brand {
    gap: 10px;
  }

  .gallery-toolbar .btn {
    padding: 0 8px;
    font-size: 10px;
  }
}


/* 嵌套弹窗层级：照片墙 < 上传照片 < 成员认证 < 灯箱 */
.gallery-modal { z-index: 310; }
.photo-upload-modal { z-index: 320; }
.member-modal { z-index: 330; }

.member-entry-text {
  max-width: 138px;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .member-entry-text {
    max-width: 64px;
  }
}


/* 照片数量较少时保持画面平衡 */
.featured-gallery[data-count="1"] {
  display: flex;
  justify-content: center;
}

.featured-gallery[data-count="1"] .photo-tile {
  width: min(760px, 100%);
}

.featured-gallery[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .featured-gallery[data-count="1"] .photo-tile {
    width: 100%;
    aspect-ratio: 4 / 3;
  }
}


.lightbox {
  align-items: center;
}

@media (max-width: 720px) {
  .lightbox {
    align-items: center;
  }
}

/* =========================================================
   红色印记
   ========================================================= */

.red-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 7%, rgba(207, 170, 97, 0.2), transparent 27%),
    linear-gradient(180deg, #f3e8d7 0%, #fbf7ef 62%, #f7efe2 100%);
  border-top: 1px solid rgba(94, 48, 41, 0.1);
}

.red-section::before {
  content: "红";
  position: absolute;
  top: 35px;
  right: -2vw;
  color: rgba(114, 11, 18, 0.04);
  font-family: var(--font-serif);
  font-size: clamp(220px, 30vw, 460px);
  font-weight: 900;
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}

.red-section .container {
  position: relative;
  z-index: 1;
}

.red-kicker {
  color: var(--gold-600);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.19em;
}

.red-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 90% 8%, rgba(207, 170, 97, 0.16), transparent 36%),
    linear-gradient(145deg, var(--red-800), var(--red-950));
  border: 1px solid rgba(114, 11, 18, 0.4);
  box-shadow: var(--shadow-soft);
}

.red-feature-photo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 30px 28px;
  background: #f2e7d4;
  border-right: 1px solid rgba(207, 170, 97, 0.34);
}

.red-feature-photo img {
  width: 100%;
  max-height: 355px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.red-feature-photo figcaption {
  margin-top: 14px;
  color: rgba(94, 48, 41, 0.58);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
}

.red-feature-copy {
  padding: clamp(32px, 4vw, 54px);
}

.red-feature-copy .red-kicker {
  color: var(--gold-400);
}

.red-feature-copy h3 {
  margin-top: 12px;
  color: var(--gold-300);
  font-family: var(--font-serif);
  font-size: clamp(31px, 3.5vw, 46px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.03em;
  text-wrap: balance;
}

.red-feature-copy > p:not(.red-kicker) {
  margin-top: 17px;
  color: rgba(247, 239, 226, 0.7);
  font-size: 13.5px;
  line-height: 2;
  text-align: justify;
}

.red-feature-copy blockquote {
  margin-top: 24px;
  padding: 11px 0 11px 18px;
  color: var(--gold-200);
  border-left: 1px solid var(--gold-500);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.red-feature-copy cite {
  display: block;
  margin-top: 3px;
  color: rgba(247, 239, 226, 0.4);
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.red-stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.red-story {
  padding: 29px 31px 32px;
  background: rgba(255, 253, 248, 0.46);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}

.red-story:hover {
  background: rgba(255, 253, 248, 0.82);
}

.red-story-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}

.red-story-no {
  color: var(--gold-500);
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
}

.red-story-year {
  color: var(--red-700);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
}

.red-story h3 {
  margin-top: 14px;
  color: var(--red-800);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.red-story p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.92;
  text-align: justify;
}

.red-story-wide {
  grid-column: 1 / -1;
  color: var(--paper);
  background:
    radial-gradient(circle at 92% 20%, rgba(207, 170, 97, 0.15), transparent 28%),
    var(--red-900);
}

.red-story-wide:hover {
  background:
    radial-gradient(circle at 92% 20%, rgba(207, 170, 97, 0.18), transparent 28%),
    var(--red-850);
}

.red-story-wide .red-story-no {
  color: var(--gold-400);
}

.red-story-wide .red-story-year {
  color: var(--gold-300);
}

.red-story-wide h3 {
  color: var(--gold-300);
}

.red-story-wide p {
  max-width: 1100px;
  color: rgba(247, 239, 226, 0.67);
}

.red-stories .reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.red-stories .reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.red-stories .reveal:nth-child(4) {
  transition-delay: 0.18s;
}

.red-profile {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr) 290px;
  align-items: stretch;
  margin-top: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.red-profile-photo {
  position: relative;
  min-height: 370px;
  margin: 0;
  overflow: hidden;
  background: var(--red-950);
}

.red-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: transform 0.8s var(--ease);
}

.red-profile:hover .red-profile-photo img {
  transform: scale(1.035);
}

.red-profile-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(30, 2, 4, 0.78));
}

.red-profile-photo figcaption {
  position: absolute;
  right: 17px;
  bottom: 14px;
  left: 17px;
  z-index: 1;
  color: rgba(247, 239, 226, 0.7);
  font-size: 9.5px;
  letter-spacing: 0.07em;
}

.red-profile-copy {
  padding: 34px 36px;
}

.red-profile-copy h3 {
  margin-top: 9px;
  color: var(--red-800);
  font-family: var(--font-serif);
  font-size: clamp(29px, 3vw, 39px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-wrap: balance;
}

.red-profile-copy > p:not(.red-kicker) {
  margin-top: 13px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.93;
  text-align: justify;
}

.red-profile-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.red-profile-facts div {
  padding-right: 12px;
}

.red-profile-facts div + div {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.red-profile-facts dt {
  color: var(--red-700);
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
}

.red-profile-facts dd {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.red-profile-relics {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 22px;
  background: #f2e7d4;
  border-left: 1px solid var(--line);
}

.red-profile-relics img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(94, 48, 41, 0.16);
  transition: transform 0.6s var(--ease);
}

.red-profile-relics:hover img {
  transform: scale(1.025);
}

.red-profile-relics figcaption {
  margin-top: 10px;
  color: rgba(94, 48, 41, 0.52);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.red-landmark {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  overflow: hidden;
  margin-top: 30px;
  color: var(--paper);
  background:
    radial-gradient(circle at 90% 5%, rgba(207, 170, 97, 0.16), transparent 35%),
    linear-gradient(140deg, var(--red-800), var(--red-950));
  border: 1px solid rgba(48, 4, 7, 0.55);
}

.red-landmark-photo {
  position: relative;
  min-height: 400px;
  margin: 0;
  overflow: hidden;
}

.red-landmark-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.red-landmark:hover .red-landmark-photo img {
  transform: scale(1.035);
}

.red-landmark-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(48, 4, 7, 0.42));
  pointer-events: none;
}

.red-landmark-photo figcaption {
  position: absolute;
  right: 18px;
  bottom: 15px;
  left: 18px;
  z-index: 1;
  color: rgba(247, 239, 226, 0.55);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.red-landmark-copy {
  padding: clamp(33px, 4vw, 52px);
}

.red-landmark-copy .red-kicker {
  color: var(--gold-400);
}

.red-landmark-copy h3 {
  margin-top: 12px;
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: clamp(27px, 3.1vw, 39px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-wrap: balance;
}

.red-landmark-copy p:not(.red-kicker) {
  margin-top: 15px;
  color: rgba(247, 239, 226, 0.66);
  font-size: 12.5px;
  line-height: 1.96;
  text-align: justify;
}

.red-landmark-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.red-landmark-tags span {
  padding: 5px 10px;
  color: var(--gold-300);
  border: 1px solid rgba(239, 219, 169, 0.25);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.red-sources {
  margin-top: 45px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.red-sources > p:first-child {
  color: var(--red-700);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.red-sources ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin-top: 10px;
}

.red-sources a {
  color: var(--muted);
  font-size: 10.5px;
  border-bottom: 1px solid rgba(130, 107, 100, 0.25);
  transition: color 0.2s, border-color 0.2s;
}

.red-sources a:hover {
  color: var(--red-700);
  border-color: var(--red-700);
}

.red-sources .source-note {
  max-width: 900px;
  margin-top: 14px;
  color: rgba(130, 107, 100, 0.62);
  font-size: 9.5px;
  line-height: 1.75;
}

@media (max-width: 1180px) {
  .red-profile {
    grid-template-columns: 210px minmax(0, 1fr) 250px;
  }

  .red-profile-photo {
    min-height: 360px;
  }

  .red-profile-copy {
    padding: 30px 28px;
  }

  .red-profile-relics {
    padding: 18px;
  }
}

@media (max-width: 980px) {
  .red-feature {
    grid-template-columns: 1fr;
  }

  .red-feature-photo {
    border-right: 0;
    border-bottom: 1px solid rgba(207, 170, 97, 0.34);
  }

  .red-feature-photo img {
    max-height: 330px;
  }

  .red-profile {
    grid-template-columns: 225px minmax(0, 1fr);
  }

  .red-profile-relics {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .red-profile-relics figcaption {
    margin-top: 0;
  }

  .red-landmark {
    grid-template-columns: 1fr;
  }

  .red-landmark-photo {
    min-height: 300px;
    max-height: 380px;
  }

  .red-landmark-photo::after {
    background: linear-gradient(180deg, transparent 62%, rgba(48, 4, 7, 0.55));
  }
}

@media (max-width: 720px) {
  .red-feature-photo {
    padding: 20px 18px;
  }

  .red-feature-photo img {
    max-height: 230px;
  }

  .red-feature-copy {
    padding: 27px 22px 30px;
  }

  .red-feature-copy h3 {
    font-size: 30px;
  }

  .red-feature-copy > p:not(.red-kicker) {
    font-size: 12px;
  }

  .red-stories {
    grid-template-columns: 1fr;
  }

  .red-story {
    padding: 25px 22px 27px;
    border-right: 0;
  }

  .red-story-wide {
    grid-column: auto;
  }

  .red-story h3 {
    font-size: 21px;
  }

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

  .red-profile-photo {
    min-height: 300px;
    max-height: 380px;
  }

  .red-profile-photo img {
    object-position: 50% 28%;
  }

  .red-profile-copy {
    padding: 26px 22px;
  }

  .red-profile-facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .red-profile-facts div {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
  }

  .red-profile-facts div + div {
    padding-left: 0;
    border-top: 1px dashed rgba(94, 48, 41, 0.12);
    border-left: 0;
  }

  .red-profile-facts dd {
    margin-top: 0;
    font-size: 10px;
  }

  .red-profile-relics {
    display: block;
    padding: 18px;
  }

  .red-profile-relics figcaption {
    margin-top: 8px;
  }

  .red-landmark-photo {
    min-height: 230px;
  }

  .red-landmark-copy {
    padding: 27px 22px 30px;
  }

  .red-landmark-copy h3 {
    font-size: 24px;
    line-height: 1.5;
    text-wrap: balance;
  }

  .red-landmark-tags span {
    font-size: 8.5px;
  }

  .red-sources ul {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .red-profile-facts div {
    display: block;
  }

  .red-profile-facts dd {
    margin-top: 2px;
  }
}

/* ---------------------------------------------------------
   红色影像 · 外链表单与播放器
   --------------------------------------------------------- */

.link-form {
  display: grid;
  gap: 18px;
  padding: 26px 34px 10px;
}

.field-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.link-status {
  padding: 10px 14px;
  color: var(--ink-soft);
  background: rgba(207, 170, 97, 0.09);
  border-left: 2px solid var(--gold-500);
  font-size: 11.5px;
  line-height: 1.7;
}

.link-status[data-tone="ok"] {
  color: #2f5d3a;
  background: rgba(58, 122, 74, 0.08);
  border-left-color: #3a7a4a;
}

.link-status[data-tone="warn"] {
  color: #8a5a12;
  background: rgba(196, 132, 24, 0.1);
  border-left-color: #c48418;
}

.link-status[data-tone="pending"] {
  color: var(--muted);
  background: rgba(94, 48, 41, 0.05);
  border-left-color: rgba(94, 48, 41, 0.3);
}

.link-form .editor-hint {
  margin: 0;
}

.video-cover.no-cover.is-external::before {
  content: none;
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 26px;
  text-align: center;
}

.cover-fallback em {
  color: rgba(239, 219, 169, 0.52);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.cover-fallback span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: rgba(247, 239, 226, 0.86);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.03em;
}

.player-stage iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 72vh;
  background: #000;
  border: 0;
}

.player-side {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  padding-bottom: 4px;
}

.player-side span {
  color: rgba(247, 239, 226, 0.38);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.player-link {
  color: var(--gold-300);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.player-link:hover {
  color: var(--gold-200);
}

@media (max-width: 720px) {
  .link-form {
    padding: 20px 18px 6px;
  }

  .player-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .player-side {
    align-items: flex-start;
  }

  .player-stage iframe {
    aspect-ratio: 4 / 3;
  }
}
