:root {
  color-scheme: dark;
  --bg: #080807;
  --panel: #13120f;
  --panel-soft: #1a1813;
  --line: rgba(235, 218, 181, 0.24);
  --text: #fff9ef;
  --muted: rgba(255, 249, 239, 0.76);
  --gold: #d9b568;
  --gold-soft: #f0dcae;
  --button: #705a2c;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(217, 181, 104, 0.14), transparent 38rem),
    var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.story-page {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(44px, env(safe-area-inset-bottom));
}

.story-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.story-header a {
  color: var(--gold-soft);
  font-weight: 700;
  text-decoration: none;
}

.story-header span {
  color: var(--muted);
  font-size: 0.84rem;
  text-align: right;
}

.story-intro {
  padding: 38px 0 24px;
  text-align: center;
}

.kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h1 span,
h2 span,
.adjacent-zh {
  display: block;
  margin-top: 0.45em;
  color: var(--gold-soft);
  font-family: "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  font-size: 0.54em;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
}

.lead {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.video-shell {
  width: min(100%, 430px);
  margin: 0 auto 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.video-shell video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82svh;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  object-position: center center;
  background: #000;
}

.caption-note {
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.quick-actions {
  max-width: 680px;
  margin: 0 auto 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(19, 18, 15, 0.94);
}

.quick-actions .actions { margin-top: 0; }

.language-links,
.permalink,
.share-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.language-links a,
.permalink a {
  color: var(--gold-soft);
  overflow-wrap: anywhere;
}

.story-section {
  margin-top: 24px;
  padding: clamp(20px, 5vw, 34px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(19, 18, 15, 0.94);
}

.story-section h2 {
  margin-bottom: 20px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 5vw, 2.3rem);
  line-height: 1.12;
}

.bilingual-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.language-panel {
  padding: 18px;
  border-radius: 10px;
  background: var(--panel-soft);
}

.language-panel h3 {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.language-panel p:last-child,
.language-panel blockquote:last-child { margin-bottom: 0; }

blockquote {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.75;
}

.facts p + p { margin-top: 14px; }

.boundary-note,
.access-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(217, 181, 104, 0.08);
  color: var(--muted);
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.button,
.share-button {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid rgba(255, 249, 239, 0.22);
  border-radius: 9px;
  background: var(--button);
  color: #fff;
  font: inherit;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary,
.share-button { background: #29261f; }

.button:hover,
.button:focus-visible,
.share-button:hover,
.share-button:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

.share-tools {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.share-tools span {
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

.story-footer {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 680px) {
  .story-page { padding-inline: 12px; }
  .story-header { align-items: flex-start; }
  .story-header span { max-width: 12rem; }
  .story-intro { padding-top: 28px; }
  .bilingual-pair,
  .actions { grid-template-columns: 1fr; }
  .story-section { padding: 20px 15px; }
}

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