:root {
  --bg: #1A0A2E;
  --bg-deep: #12061F;
  --surface: #2B1546;
  --surface-2: #3A205A;
  --gold: #D4AF37;
  --gold-bright: #E6C86A;
  --green: #1F4D3B;
  --red: #8B0000;
  --ink: #F7F2E9;
  --muted: #B8A9C9;
  --blue: #6A8DFF;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Source Han Serif", serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "Source Han Sans", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", monospace;
  --container: 1200px;
  --space: clamp(3rem, 7vw, 6rem);
  --radius: 12px;
  --border-gold: rgba(212, 175, 55, 0.42);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px) 0 0 / 100% 64px,
    radial-gradient(circle at 85% -10%, rgba(58, 32, 90, 0.45), transparent 42%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
}

ul,
ol {
  list-style: none;
}

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

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--gold-bright);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--gold);
  color: var(--bg-deep);
}

[id] {
  scroll-margin-top: 6rem;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px dashed var(--gold-bright);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.page-main {
  min-height: 60vh;
  padding: var(--space) 0;
}

.section {
  padding-block: var(--space);
}

.section--ink {
  background: var(--bg-deep);
}

.section--tint {
  background: rgba(43, 21, 70, 0.45);
}

.section-head {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-head__kicker {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-head__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

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

@media (max-width: 800px) {
  .grid--2,
  .grid--3,
  .grid--aside {
    grid-template-columns: 1fr;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border-gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.1s ease;
}

.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-deep);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--gold);
  color: var(--bg-deep);
}

.btn--primary:hover {
  background: var(--gold-bright);
}

.tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--border-gold);
  background: rgba(212, 175, 55, 0.06);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(58, 32, 90, 0.35), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), transparent 36%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.card:hover {
  border-color: var(--gold-bright);
  background-color: var(--surface-2);
}

.card:hover::before {
  opacity: 1;
}

.card__title {
  font-size: 1.25rem;
}

.card__meta {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.media-frame {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid var(--border-gold);
  background:
    linear-gradient(rgba(212, 175, 55, 0.12) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, rgba(212, 175, 55, 0.1) 1px, transparent 1px) 0 0 / 48px 100%,
    radial-gradient(circle at 20% 10%, rgba(58, 32, 90, 0.5), transparent 45%),
    var(--bg-deep);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, transparent 47%, rgba(212, 175, 55, 0.55) 47%, rgba(212, 175, 55, 0.55) 47.2%, transparent 47.4%);
  pointer-events: none;
}

.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 1.1rem 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--gold-bright);
}

.breadcrumb [aria-current="page"] {
  color: var(--gold-bright);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.75rem;
  color: rgba(212, 175, 55, 0.35);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(230, 200, 106, 0.8);
}

.status-dot--live {
  position: relative;
}

.status-dot--live::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  from {
    transform: scale(0.6);
    opacity: 0.8;
  }
  to {
    transform: scale(1.7);
    opacity: 0;
  }
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 0.55rem 1.25rem;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(26, 10, 46, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.site-head .announce,
.site-head .masthead {
  transition: max-height 0.28s ease, opacity 0.2s ease, visibility 0.2s ease, border-bottom-width 0.2s ease;
}

.site-head[data-scrolled] .announce,
.site-head[data-scrolled] .masthead {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  border-bottom-width: 0;
}

.announce {
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  background: linear-gradient(90deg, rgba(18, 6, 31, 0.9), rgba(43, 21, 70, 0.55) 50%, rgba(18, 6, 31, 0.9));
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.announce__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  min-height: 36px;
  padding: 0.35rem 0;
}

.announce__count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
}

.countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  color: var(--muted);
}

.countdown__num {
  display: inline-block;
  min-width: 2ch;
  text-align: center;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.countdown__unit {
  color: var(--muted);
}

.countdown__sep {
  color: var(--gold);
}

.announce__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.7rem;
  border: 1px solid var(--border-gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%);
}

.announce__link:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

.masthead {
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 1.3rem 0;
}

.masthead__side {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.masthead__side--left {
  text-align: left;
}

.masthead__side--right {
  text-align: right;
}

.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: start;
  column-gap: 0.8rem;
  color: inherit;
}

.brand:hover {
  color: var(--gold-bright);
}

.brand__mark {
  grid-row: 1 / 3;
  grid-column: 1;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--bg-deep);
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 900;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.brand__name {
  grid-row: 1;
  grid-column: 2;
  align-self: end;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.brand__tag {
  grid-row: 2;
  grid-column: 2;
  align-self: start;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-block {
  position: relative;
  background: rgba(18, 6, 31, 0.94);
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
}

.nav-block__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 50px;
}

.nav-cn {
  display: none;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.nav-cn:hover {
  color: var(--gold-bright);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid var(--border-gold);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.nav-toggle:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-deep);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle__bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.nav-list {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.65rem 0.15rem;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav-link:hover {
  color: var(--gold-bright);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--gold);
}

.site-foot {
  margin-top: clamp(3rem, 8vw, 6rem);
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  background:
    linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(circle at 10% 0%, rgba(58, 32, 90, 0.45), transparent 45%),
    var(--bg-deep);
}

.site-foot::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr;
  gap: 2.5rem;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2.25rem;
}

.brand--footer .brand__name {
  font-size: 1.7rem;
}

.brand--footer .brand__mark {
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.4rem;
}

.brand--footer .brand__tag {
  font-size: 0.66rem;
}

.footer-about {
  max-width: 34em;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-panel {
  border-left: 1px solid rgba(212, 175, 55, 0.2);
  padding-left: 1.5rem;
}

.footer-heading {
  position: relative;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.footer-contact li {
  display: grid;
  grid-template-columns: 3.2em 1fr;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.footer-contact__label {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.footer-contact__value {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.footer-note {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-links a {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border-gold);
  background: rgba(212, 175, 55, 0.05);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.footer-links a:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

.footer-meta {
  background: rgba(0, 0, 0, 0.2);
}

.footer-meta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer-trust {
  flex-basis: 100%;
  text-align: center;
  padding-top: 0.2rem;
  color: var(--muted);
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 180;
  width: 4px;
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.22), rgba(255, 255, 255, 0.05));
  pointer-events: none;
}

.scroll-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold-bright), var(--gold));
  transform: scaleY(calc(var(--progress, 0) / 100));
  transform-origin: top;
}

@media (max-width: 900px) {
  .nav-cn {
    display: inline-block;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 0.6rem 1.25rem 1rem;
    background: rgba(18, 6, 31, 0.98);
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.46);
  }

  .nav-list[data-open] {
    display: block;
  }

  .nav-item {
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  }

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

  .nav-link {
    display: block;
    padding: 0.8rem 0.25rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    border-left: 2px solid var(--gold);
    padding-left: 0.85rem;
    color: var(--gold-bright);
  }
}

@media (max-width: 760px) {
  .masthead__inner {
    grid-template-columns: 1fr;
    padding: 0.8rem 0;
    text-align: center;
  }

  .masthead__side {
    display: none;
  }

  .brand {
    justify-content: center;
    margin-inline: auto;
  }
}

@media (max-width: 800px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-panel {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding-top: 1.25rem;
  }
}

@media (max-width: 560px) {
  .announce__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand__name {
    font-size: 1.55rem;
  }

  .countdown__unit {
    font-size: 0.7rem;
  }

  .footer-meta__inner {
    justify-content: center;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
