:root {
  --brand-red: #a3202b;
  --brand-red-deep: #771620;
  --gold: #d8b96b;
  --gold-light: #f0d99b;
  --white: #fffdf7;
  --ink: #100f0d;
  --line: rgba(255, 253, 247, 0.28);
  --muted: rgba(255, 253, 247, 0.72);
  --safe-top: max(20px, env(safe-area-inset-top));
  --safe-right: max(20px, env(safe-area-inset-right));
  --safe-bottom: max(20px, env(safe-area-inset-bottom));
  --safe-left: max(20px, env(safe-area-inset-left));
  --page-pad: clamp(24px, 5vw, 80px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--white);
  font-family: "Songti SC", "Noto Serif CJK SC", "STSong", "Times New Roman", serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

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

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.copy-en {
  display: none;
}

body[data-language="en"] .copy-zh {
  display: none !important;
}

body[data-language="en"] .copy-en {
  display: inline;
}

body[data-language="en"] h1 .copy-en {
  display: block;
}

.image-stage,
.hero-background,
.hero-background img,
.image-shade,
.image-vignette {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.image-stage {
  z-index: 0;
  overflow: hidden;
  background: #071b36;
}

.hero-background,
.hero-background img {
  display: block;
}

.hero-background img {
  object-fit: cover;
  object-position: center;
}

.image-shade {
  background: rgba(2, 10, 24, 0.22);
}

.image-vignette {
  border: clamp(8px, 1.2vw, 18px) solid rgba(3, 12, 25, 0.4);
  box-shadow: inset 0 0 130px rgba(0, 0, 0, 0.34);
}

.site-header,
.site-footer,
.hero {
  position: relative;
  z-index: 10;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: var(--safe-top) max(var(--page-pad), var(--safe-right)) 12px max(var(--page-pad), var(--safe-left));
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.brand-title {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.brand-title strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.brand-title small {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  border: 1px solid var(--line);
  background: rgba(12, 11, 10, 0.52);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.language-switch {
  display: flex;
  height: 44px;
  align-items: center;
  padding: 3px;
}

.language-button {
  min-width: 40px;
  height: 36px;
  padding: 0 9px;
  cursor: pointer;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-family: Georgia, "Songti SC", serif;
  font-size: 12px;
  transition: background 220ms ease, color 220ms ease;
}

.language-button.is-active {
  background: var(--white);
  color: var(--brand-red-deep);
}

.hero {
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  padding: 112px max(var(--page-pad), var(--safe-right)) 104px max(var(--page-pad), var(--safe-left));
}

.hero::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: clamp(8px, 0.75vw, 12px);
  background: var(--brand-red);
  content: "";
}

.hero-content {
  width: min(860px, 74vw);
  animation: reveal-content 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  display: flex;
  margin: 0 0 22px;
  align-items: center;
  gap: 14px;
  color: var(--gold-light);
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 600;
  line-height: 1.4;
}

.eyebrow-line {
  width: 42px;
  height: 1px;
  flex: 0 0 42px;
  background: var(--gold);
}

h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(40px, 5.2vw, 78px);
  font-weight: 600;
  line-height: 1.22;
  text-wrap: balance;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.56);
}

body[data-language="en"] h1 {
  max-width: 1050px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.65vw, 70px);
  font-weight: 500;
  line-height: 1.09;
}

.event-meta {
  display: flex;
  margin-top: clamp(30px, 4vh, 46px);
  align-items: stretch;
  gap: 28px;
}

.meta-item {
  display: flex;
  min-width: 205px;
  align-items: center;
  gap: 13px;
}

.meta-item svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  color: var(--gold-light);
  stroke-width: 1.6;
}

.meta-item > span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.meta-item small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.meta-item strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.meta-divider {
  width: 1px;
  background: var(--line);
}

.primary-cta {
  display: inline-flex;
  min-width: 180px;
  min-height: 54px;
  margin-top: clamp(30px, 4vh, 46px);
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 14px 22px 14px 26px;
  background: var(--brand-red);
  box-shadow: 0 16px 46px rgba(45, 2, 7, 0.28);
  font-size: 16px;
  font-weight: 600;
  transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.primary-cta:hover {
  background: #b52834;
  box-shadow: 0 18px 52px rgba(45, 2, 7, 0.38);
  transform: translateY(-2px);
}

.primary-cta:active {
  transform: translateY(0) scale(0.98);
}

.primary-cta svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.edition-mark {
  position: absolute;
  right: max(var(--page-pad), var(--safe-right));
  bottom: clamp(100px, 13vh, 150px);
  display: flex;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.16);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.75;
  pointer-events: none;
  user-select: none;
}

.edition-mark span {
  font-size: clamp(110px, 16vw, 250px);
}

.edition-mark small {
  margin: 5px 0 0 6px;
  color: var(--gold);
  font-size: clamp(14px, 1.5vw, 22px);
}

.site-footer {
  position: fixed;
  right: max(var(--page-pad), var(--safe-right));
  bottom: var(--safe-bottom);
  left: max(var(--page-pad), var(--safe-left));
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-family: Georgia, "Songti SC", serif;
  font-size: 10px;
}

.footer-rule {
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.32);
}

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

@media (max-width: 900px) {
  .hero-content {
    width: min(680px, 88vw);
  }

  .edition-mark {
    right: 28px;
    opacity: 0.75;
  }
}

@media (max-width: 640px) {
  :root {
    --page-pad: 22px;
  }

  .image-shade {
    background: rgba(2, 10, 24, 0.14);
  }

  .site-header {
    align-items: flex-start;
  }

  .brand {
    max-width: calc(100vw - 126px);
    gap: 10px;
  }

  .brand img {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-title strong {
    font-size: 11px;
  }

  .brand-title small {
    font-size: 8px;
  }

  body[data-language="en"] .brand-title strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 8px;
    line-height: 1.15;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .header-actions {
    gap: 7px;
  }

  .language-switch {
    height: 42px;
  }

  .language-button {
    min-width: 36px;
    height: 34px;
    padding: 0 6px;
  }

  .hero {
    align-items: flex-end;
    padding-top: 116px;
    padding-bottom: max(80px, calc(var(--safe-bottom) + 64px));
  }

  .hero-content {
    width: 100%;
  }

  .eyebrow {
    margin-bottom: 16px;
    gap: 10px;
    font-size: 11px;
  }

  .eyebrow-line {
    width: 30px;
    flex-basis: 30px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.2;
  }

  body[data-language="en"] h1 {
    font-size: clamp(31px, 8.8vw, 43px);
    line-height: 1.08;
  }

  .desktop-break {
    display: none;
  }

  .event-meta {
    margin-top: 26px;
    gap: 16px;
  }

  .meta-item {
    min-width: 0;
    flex: 1;
    align-items: flex-start;
    gap: 9px;
  }

  .meta-item svg {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .meta-item small {
    font-size: 9px;
  }

  .meta-item strong {
    font-size: 13px;
    white-space: nowrap;
  }

  .primary-cta {
    width: 100%;
    min-height: 52px;
    margin-top: 26px;
  }

  .edition-mark {
    top: 126px;
    right: 18px;
    bottom: auto;
    color: rgba(255, 255, 255, 0.11);
  }

  .edition-mark span {
    font-size: 96px;
  }

  .edition-mark small {
    margin-top: 2px;
    font-size: 12px;
  }

  .site-footer {
    right: auto;
    gap: 10px;
    font-size: 9px;
  }

}

@media (max-height: 690px) {
  .hero {
    padding-top: 88px;
    padding-bottom: 48px;
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  h1 {
    font-size: clamp(31px, 7.6vh, 56px);
  }

  body[data-language="en"] h1 {
    font-size: clamp(28px, 5.8vh, 38px);
  }

  .event-meta,
  .primary-cta {
    margin-top: 18px;
  }

  .site-footer {
    display: none;
  }
}

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

}

@media (prefers-contrast: more) {
  .image-shade {
    background: rgba(0, 0, 0, 0.5);
  }

  .brand-title small,
  .eyebrow,
  .meta-item svg {
    color: #ffe29a;
  }
}
