:root {
  --ink: #111315;
  --ink-soft: #30343a;
  --muted: #6f7378;
  --paper: #fff;
  --paper-soft: #f6f5f3;
  --vermilion: #d8453b;
  --vermilion-dark: #b9322b;
  --line: #dededc;
  --display: "Songti SC", STSong, SimSun, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
}

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

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

button {
  color: inherit;
  font: inherit;
}

a:focus-visible,
button:focus-visible,
video:focus-visible {
  outline: 3px solid var(--vermilion);
  outline-offset: 4px;
}

.demo-disclaimer {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 50;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 2px;
  color: #fff;
  background: rgba(17, 19, 21, .78);
  font-size: 11px;
  letter-spacing: .04em;
}

.site-header {
  position: relative;
  z-index: 20;
  min-height: 88px;
  padding: 0 clamp(24px, 3.4vw, 52px);
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
  border-bottom: 1px solid #ececea;
  background: var(--paper);
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand strong {
  font-family: var(--display);
  font-size: clamp(25px, 2.1vw, 31px);
  font-weight: 800;
  letter-spacing: .06em;
}

.brand small {
  padding-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
}

.primary-navigation {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 50px);
}

.primary-navigation a,
.admin-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.primary-navigation a {
  border-bottom: 2px solid transparent;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible {
  border-bottom-color: var(--vermilion);
}

.admin-link {
  padding: 0 17px;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.admin-link:hover,
.admin-link:focus-visible {
  color: #fff;
  background: var(--ink);
}

.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  display: none;
  border: 1px solid var(--ink);
  background: var(--paper);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.portal-hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #0c1114;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body[data-page="home"] > .demo-disclaimer ~ .site-header + main .portal-hero .hero-media {
  background-image: url("/assets/showcase/hero-great-wall.webp");
  background-size: cover;
  background-position: center;
}

body[data-page="home"] > .demo-disclaimer ~ .site-header + main .portal-hero .hero-media img {
  visibility: hidden;
}

.hero-overlay {
  z-index: -1;
  background: rgba(5, 8, 11, .28);
}

.hero-copy {
  width: min(620px, 52vw);
  min-height: 610px;
  padding: 70px 0 56px clamp(36px, 7.4vw, 112px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .38);
}

.eyebrow {
  margin: 0 0 26px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.portal-hero .eyebrow {
  padding-bottom: 10px;
  border-bottom: 5px solid var(--vermilion);
}

.hero-copy h1 {
  max-width: 590px;
  margin: 0;
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: clamp(58px, 5.3vw, 80px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 500px;
  margin: 24px 0 31px;
  color: rgba(255, 255, 255, .86);
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-button,
.secondary-link,
.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.primary-button {
  min-width: 150px;
  padding: 0 24px;
  border: 1px solid var(--vermilion);
  border-radius: 2px;
  color: #fff;
  background: var(--vermilion);
  font-size: 15px;
  font-weight: 700;
}

.primary-button:hover,
.primary-button:focus-visible {
  border-color: var(--vermilion-dark);
  background: var(--vermilion-dark);
}

.primary-button.is-disabled {
  cursor: not-allowed;
  opacity: .62;
}

.secondary-link {
  border-bottom: 2px solid var(--vermilion);
  font-size: 15px;
  font-weight: 700;
}

.latest-section,
.city-section {
  padding: 42px clamp(24px, 3vw, 44px) 58px;
  background: var(--paper);
}

.section-heading {
  margin: 0 0 28px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.section-heading .eyebrow {
  margin: 0;
  color: var(--vermilion);
  font-size: 11px;
  letter-spacing: .13em;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(27px, 2.4vw, 34px);
  line-height: 1.2;
  letter-spacing: .02em;
}

.release-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
}

.content-card {
  min-width: 0;
}

.content-card > a {
  min-height: 44px;
  display: block;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  border-radius: 3px;
  background: var(--paper-soft);
}

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

.card-copy {
  padding: 12px 1px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card-copy small {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.card-copy small span {
  color: var(--vermilion);
  font-weight: 700;
  text-transform: uppercase;
}

.card-copy strong {
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.45;
}

.content-card a:hover .card-copy strong,
.content-card a:focus-visible .card-copy strong {
  color: var(--vermilion-dark);
}

.city-section {
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
}

.city-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.city-links a {
  min-height: 44px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #c9c9c6;
  background: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

.city-links a:hover,
.city-links a:focus-visible {
  border-color: var(--vermilion);
  color: var(--vermilion-dark);
}

.live-notice {
  padding: 18px clamp(24px, 3vw, 44px);
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  background: var(--ink);
}

.live-notice span {
  color: #ff8178;
  font-size: 12px;
  font-weight: 800;
}

.live-notice strong {
  font-family: var(--display);
  font-size: 18px;
}

.empty-state {
  min-height: 180px;
  padding: 42px;
  display: grid;
  place-content: center;
  border: 1px solid var(--line);
  text-align: center;
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state h3 {
  font-family: var(--display);
  font-size: 24px;
}

.empty-state p {
  margin-top: 10px;
  color: var(--muted);
}

.watch-page,
.state-page {
  min-height: calc(100vh - 88px);
  padding: clamp(48px, 7vw, 96px) clamp(24px, 7vw, 110px);
  background: var(--paper-soft);
}

.watch-heading {
  width: min(1120px, 100%);
  margin: 0 auto 28px;
}

.back-link {
  margin-bottom: 34px;
  border-bottom: 1px solid var(--ink);
  font-weight: 700;
}

.watch-heading .eyebrow {
  margin-bottom: 12px;
  color: var(--vermilion);
}

.watch-heading h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.watch-heading time {
  color: var(--muted);
  font-size: 13px;
}

.video-frame {
  width: min(1120px, 100%);
  margin: 0 auto;
  background: #000;
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.media-error {
  margin: 0;
  padding: 14px 18px;
  color: #fff;
  background: var(--vermilion-dark);
  text-align: center;
}

.public-state {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 80px);
  border-top: 6px solid var(--vermilion);
  background: var(--paper);
}

.public-state .eyebrow {
  margin-bottom: 16px;
  color: var(--vermilion);
}

.public-state h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.2;
}

.public-state p:not(.eyebrow) {
  margin: 20px 0 30px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  min-height: 132px;
  padding: 30px clamp(24px, 3vw, 44px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  color: #d8d8d6;
  background: var(--ink);
}

.site-footer > div {
  display: grid;
  gap: 3px;
}

.site-footer strong {
  color: #fff;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: .06em;
}

.site-footer small {
  font-size: 9px;
  letter-spacing: .18em;
}

.site-footer p,
.site-footer a {
  font-size: 12px;
}

.site-footer p {
  color: #999b9e;
}

.footer-compliance {
  gap: 6px;
  justify-items: start;
}

.footer-compliance p {
  margin: 0;
  line-height: 1.6;
}

.footer-credentials,
.footer-report {
  color: #b4b6b9;
}

.site-footer .footer-icp a {
  min-height: 0;
  color: #b4b6b9;
  border-bottom-color: #5f6266;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid #777a7e;
}

@media (max-width: 980px) {
  .site-header {
    gap: 18px;
  }

  .primary-navigation {
    gap: 20px;
  }

  .hero-copy {
    width: min(650px, 68vw);
  }

  .release-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 34px;
  }
}

@media (max-width: 760px) {
  .demo-disclaimer {
    right: 10px;
    bottom: 10px;
  }

  .site-header {
    min-height: 68px;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .brand {
    margin-right: auto;
  }

  .brand strong {
    font-size: 24px;
  }

  .brand small {
    display: none;
  }

  .nav-enhanced .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .admin-link {
    min-height: 44px;
    padding: 0 12px;
    font-size: 12px;
  }

  .primary-navigation {
    order: 4;
    width: 100%;
    margin: 2px 0 0;
    padding: 8px 0 4px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .nav-enhanced .primary-navigation[hidden] {
    display: none;
  }

  .primary-navigation a {
    min-height: 44px;
    justify-content: flex-start;
    border-bottom: 1px solid #ececea;
  }

  .portal-hero {
    min-height: 590px;
  }

  .hero-media img {
    object-position: center;
  }

  body[data-page="home"] > .demo-disclaimer ~ .site-header + main .portal-hero .hero-media {
    background-position: 61% center;
  }

  .hero-overlay {
    background: rgba(5, 8, 11, .44);
  }

  .hero-copy {
    width: 100%;
    min-height: 590px;
    padding: 54px 20px 42px;
    justify-content: flex-end;
  }

  .portal-hero .eyebrow {
    margin-bottom: 19px;
  }

  .hero-copy h1 {
    max-width: 350px;
    font-size: clamp(42px, 13vw, 54px);
    line-height: 1.07;
  }

  .hero-copy > p:not(.eyebrow) {
    margin: 18px 0 24px;
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-actions {
    width: 100%;
    align-items: stretch;
    gap: 12px;
  }

  .primary-button,
  .secondary-link {
    min-height: 48px;
    flex: 1 1 0;
    padding: 0 14px;
    font-size: 14px;
  }

  .latest-section,
  .city-section {
    padding: 34px 16px 44px;
  }

  .section-heading {
    margin-bottom: 22px;
    display: grid;
    gap: 6px;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .release-rail {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .card-copy strong {
    font-size: 20px;
  }

  .live-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .watch-page,
  .state-page {
    min-height: calc(100vh - 68px);
    padding: 36px 16px 52px;
  }

  .watch-heading h1 {
    font-size: 40px;
  }

  .site-footer {
    padding: 30px 18px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .site-footer p {
    margin: 0;
  }

  .site-footer a {
    width: max-content;
  }
}

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

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