:root {
  --bg: #FDF6E3;
  --ink: #3E2A1E;
  --brand: #FF6B35;
  --deep: #1D3557;
  --success: #2A9D8F;
  --highlight: #FFC300;
  --surface: #FFFFFF;
  --border: #E0E0E0;
  --muted: #6B5D4F;
  --footer-bg: #1A1A1A;
  --footer-ink: #FDF6E3;
  --shadow: 0 14px 34px rgba(29, 53, 87, 0.22);
  --radius: 18px;
  --container: 1240px;
  --font-head: "Noto Sans SC", "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-number: "DIN Alternate", "Bahnschrift", "Roboto Mono", "SFMono-Regular", Consolas, monospace;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
}

#main-content {
  scroll-margin-top: 7rem;
  outline: none;
}

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

ul,
ol {
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-size: inherit;
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 3px;
}

::selection {
  background: var(--brand);
  color: #fff;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  display: inline-block;
  padding: 0.6rem 1rem;
  background: var(--deep);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  transform: translateY(-300%);
  transition: transform 0.2s ease;
}

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

.site-header {
  position: sticky;
  top: 0.6rem;
  z-index: 80;
  padding: 0 1rem;
}

.header-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.55rem 0.6rem 0.55rem 0.85rem;
  background: linear-gradient(135deg, #1D3557 0%, #142A47 70%, #0F2035 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: #fff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  background: var(--brand);
  border-radius: 0.7rem 0.25rem 0.7rem 0.25rem;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 900;
  transform: skewX(-6deg);
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
  transform: skewX(-6deg) scale(1.05);
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-app {
  display: inline-block;
  padding: 0.08rem 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  white-space: nowrap;
}

.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  display: inline-block;
  padding: 0.55rem 0.72rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-link[aria-current="page"] {
  background: var(--brand);
  color: #fff;
}

.notify-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.notify-bell:hover {
  background: var(--highlight);
  color: var(--deep);
}

.notify-bell::before {
  content: "";
  width: 0.72rem;
  height: 0.82rem;
  border: 2px solid currentColor;
  border-bottom: none;
  border-radius: 0.4rem 0.4rem 0.1rem 0.1rem;
  display: inline-block;
}

.notify-bell::after {
  content: "";
  width: 0.9rem;
  height: 2px;
  background: currentColor;
  display: inline-block;
  margin-left: -0.28rem;
  border-radius: 2px;
}

.notify-bell__dot {
  position: absolute;
  top: -0.1rem;
  right: -0.1rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 0 4px rgba(255, 195, 0, 0.25);
  animation: bell-pulse 2s ease-in-out infinite;
}

@keyframes bell-pulse {
  0%, 100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.35);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 7px rgba(255, 195, 0, 0);
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-toggle-box {
  display: grid;
  grid-template-rows: repeat(3, 2px);
  gap: 3px;
  width: 1rem;
}

.nav-toggle-box span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

@media (max-width: 1023.98px) {
  .header-pill {
    border-radius: 1.6rem;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    left: 0;
    padding: 0.55rem;
    background: var(--deep);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-nav[data-open] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .nav-link {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
  }

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

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: row;
  }
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
  background: var(--footer-bg);
  color: var(--footer-ink);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 107, 53, 0.16), transparent 40%),
    linear-gradient(0deg, rgba(29, 53, 87, 0.3), transparent 70%);
  pointer-events: none;
}

.footer-main,
.footer-legal {
  position: relative;
  z-index: 1;
}

.footer-main {
  max-width: var(--container);
  margin-inline: auto;
  padding: 3.5rem 1.25rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.1fr 0.8fr;
  gap: 2rem;
}

.footer-brand {
  min-width: 0;
}

.brand--footer {
  color: var(--footer-ink);
}

.brand--footer .brand-mark {
  border-radius: 0.4rem 0.9rem 0.4rem 0.9rem;
}

.footer-lead {
  margin-top: 1.2rem;
  max-width: 42rem;
  color: rgba(253, 246, 227, 0.72);
  font-size: 0.92rem;
  line-height: 1.8;
}

.footer-column {
  min-width: 0;
}

.footer-heading {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--highlight);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  display: inline-block;
  color: rgba(253, 246, 227, 0.75);
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand);
  transform: translateX(0.2rem);
}

.footer-contact {
  display: grid;
}

.footer-contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  color: rgba(253, 246, 227, 0.8);
  font-size: 0.85rem;
}

.footer-contact-label {
  color: var(--highlight);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-note {
  margin-top: 1.1rem;
  padding-left: 0.7rem;
  border-left: 2px solid var(--brand);
  color: rgba(253, 246, 227, 0.58);
  font-size: 0.78rem;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.2rem 1.25rem;
}

.footer-meta {
  flex-basis: 100%;
  color: rgba(253, 246, 227, 0.7);
  font-size: 0.8rem;
  text-align: center;
}

.footer-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.footer-legal-links a {
  color: rgba(253, 246, 227, 0.72);
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--brand);
}

.footer-legend {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.footer-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(253, 246, 227, 0.65);
  font-size: 0.72rem;
  font-weight: 700;
}

.legend-key {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 auto;
  border-radius: 2px;
  font-style: normal;
  transform: skewX(-8deg);
}

.legend-key--brand {
  background: var(--brand);
}

.legend-key--deep {
  background: var(--deep);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.legend-key--success {
  background: var(--success);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.85rem;
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.35);
  opacity: 0;
  transform: translateY(0.8rem);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.back-to-top[data-visible] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--highlight);
  color: var(--deep);
}

.content {
  max-width: var(--container);
  margin-inline: auto;
  padding: 2rem 1.25rem 4rem;
}

.content--narrow {
  max-width: 900px;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section-index {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--brand);
  font-family: var(--font-number);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.index-label {
  color: var(--brand);
  font-family: var(--font-number);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(62, 42, 30, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

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

.btn--ghost {
  border-color: var(--deep);
  color: var(--deep);
}

.btn--ghost:hover {
  background: var(--deep);
  color: #fff;
}

.tag {
  display: inline-block;
  padding: 0.18rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.4;
}

.tag--hot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.tag--live {
  border-color: var(--success);
  color: var(--success);
}

.breadcrumbs {
  max-width: var(--container);
  margin: 1.25rem auto 0;
  padding: 0 1.25rem;
  font-size: 0.85rem;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  margin: 0 0.6rem;
  color: var(--brand);
  font-weight: 900;
}

.breadcrumbs__link {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.breadcrumbs__current {
  color: var(--ink);
  font-weight: 900;
}

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

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

@media (min-width: 680px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

.media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 13rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--deep), var(--success));
  color: var(--surface);
  isolation: isolate;
}

.media--wide {
  min-height: 20rem;
}

.media--tall {
  min-height: 24rem;
}

.media::after {
  content: "";
  position: absolute;
  inset: -20% -20%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.22) 48%, transparent 60%);
  transform: translateX(-30%);
  pointer-events: none;
  transition: transform 0.6s ease;
}

.media:hover::after {
  transform: translateX(30%);
}

.media__placeholder {
  position: relative;
  z-index: 1;
  padding: 1rem;
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js-reveal [data-reveal="in"] {
  opacity: 1;
  transform: none;
}

@media (max-width: 1023.98px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-legal-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-legend {
    justify-content: center;
  }

  .notify-bell__text {
    display: none;
  }

  .notify-bell {
    padding: 0.55rem 0.65rem;
  }
}

@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;
  }

  html.js-reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
