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

:root {
  --c-deep: #0B1F3A;
  --c-mid: #16345A;
  --c-blue: #2D6FB3;
  --c-orange: #FF6A3D;
  --c-gold: #FFB300;
  --c-silver: #B8C4D0;
  --c-paper: #F4F7FB;
  --c-ink: #101828;
  --c-slate: #4A5A72;
  --c-cream: #FAF6EF;
  --c-green: #12B76A;
  --c-red: #D92D20;
  --font-headline: "Arial Black", "Impact", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Roboto Mono", "Consolas", monospace;
  --container-max: 1240px;
  --shadow-card: 0 2px 12px rgba(11, 31, 58, 0.08);
  --shadow-hover: 0 10px 28px rgba(11, 31, 58, 0.16);
}

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

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-slate);
  background-color: var(--c-paper);
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headline);
  font-weight: 900;
  line-height: 1.25;
  color: var(--c-ink);
  margin: 0 0 0.55em;
}

h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

p { margin: 0 0 1em; }
ul,
ol { padding-left: 1.4em; }

a {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover { color: var(--c-orange); }

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

:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 2000;
  transform: translateY(-260%);
  background: var(--c-orange);
  color: #fff;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:
    linear-gradient(180deg, rgba(11, 31, 58, 0.98) 0%, rgba(22, 52, 90, 0.98) 100%),
    var(--c-deep);
  border-bottom: 3px solid var(--c-orange);
  box-shadow: 0 4px 24px rgba(8, 21, 39, 0.35);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1200;
  background: linear-gradient(90deg, var(--c-orange) 0%, var(--c-gold) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.ticker-bar {
  display: flex;
  align-items: stretch;
  height: 28px;
  background: var(--c-ink);
  border-bottom: 1px solid rgba(184, 196, 208, 0.16);
  overflow: hidden;
}

.ticker-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 16px;
  background: var(--c-orange);
  color: var(--c-deep);
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.ticker-label::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--c-ink);
  transform: rotate(45deg);
  position: absolute;
  right: -5px;
  top: 50%;
  margin-top: -5px;
}

.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-deep);
  animation: dot-pulse 1.6s ease-in-out infinite;
}

.ticker-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

[data-ticker].is-ticking .ticker-track {
  animation: ticker-scroll 42s linear infinite;
}

.ticker-item {
  display: inline-block;
  padding: 0 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-silver);
  white-space: nowrap;
}

.ticker-item::before {
  content: "//";
  color: var(--c-orange);
  font-weight: 700;
  margin-right: 10px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.header-main {
  position: relative;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 10px 24px 2px;
}

.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 6px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--c-orange) 0%, #FF8A5C 100%);
  clip-path: polygon(18% 0, 100% 22%, 82% 100%, 0 78%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--c-deep);
  clip-path: polygon(24% 0, 100% 28%, 76% 100%, 0 72%);
}

.brand-slash {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 21px;
  height: 3px;
  background: var(--c-orange);
  transform: rotate(-16deg);
  z-index: 1;
}

.brand-name {
  display: block;
  font-family: var(--font-headline);
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.05em;
  color: #fff;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--c-orange);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(184, 196, 208, 0.3);
  border-radius: 4px;
  cursor: pointer;
  z-index: 2;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-paper);
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.nav-toggle.is-active .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  padding: 10px 0 8px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  list-style: none;
  padding: 0;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-silver);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  background: var(--c-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: #fff;
}

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

.site-footer {
  position: relative;
  margin-top: 48px;
  background: linear-gradient(180deg, var(--c-deep) 0%, #081527 100%);
  color: var(--c-silver);
  border-top: 3px solid var(--c-orange);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--c-orange) 0 24px,
    transparent 24px 40px,
    var(--c-gold) 40px 56px,
    transparent 56px 72px
  );
  opacity: 0.55;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 52px 0 44px;
}

.footer-brand .brand-name {
  font-size: 20px;
}

.footer-heading {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-paper);
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--c-orange);
}

.footer-about-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-silver);
}

.footer-trust {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--c-gold);
  background: rgba(255, 179, 0, 0.08);
  font-size: 13px;
  line-height: 1.7;
  color: #D9E2EC;
}

.footer-contact-list {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 0;
  font-size: 13px;
}

.footer-contact-label {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--c-blue);
  text-transform: uppercase;
}

.footer-nav-list {
  list-style: none;
  display: grid;
  gap: 4px;
  padding: 0;
}

.footer-nav-list a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--c-silver);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-nav-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--c-orange);
  transform: translateY(-50%);
  transition: width 0.2s ease;
}

.footer-nav-list a:hover {
  color: #fff;
  padding-left: 16px;
}

.footer-nav-list a:hover::before {
  width: 8px;
}

.footer-bottom {
  background: #06101F;
  border-top: 1px solid rgba(184, 196, 208, 0.12);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7A8BA0;
}

.section {
  padding: 48px 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-orange);
}

.section-tag::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--c-orange);
}

.section-title {
  margin: 12px 0 8px;
  font-family: var(--font-headline);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--c-ink);
}

.section-lead {
  max-width: 720px;
  font-size: 15px;
  color: var(--c-slate);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: none;
  background: var(--c-orange);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 2px 8px rgba(255, 106, 61, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: #FF835C;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 106, 61, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--c-orange);
  border: 2px solid var(--c-orange);
  clip-path: none;
  box-shadow: none;
}

.btn--outline:hover {
  background: rgba(255, 106, 61, 0.1);
  color: var(--c-orange);
}

.btn--paper {
  background: var(--c-paper);
  color: var(--c-deep);
  box-shadow: none;
}

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

.breadcrumb {
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-slate);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--c-orange);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--c-blue);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

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

.card-panel {
  background: var(--c-paper);
  border: 1px solid rgba(184, 196, 208, 0.4);
  border-radius: 10px 10px 10px 2px;
  box-shadow: var(--shadow-card);
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 106, 61, 0.5);
}

.card-panel--dark {
  background: var(--c-mid);
  color: var(--c-silver);
  border-color: transparent;
}

.card-panel--dark h3 {
  color: var(--c-paper);
}

.index-list {
  list-style: none;
  display: grid;
  gap: 0;
  padding: 0;
}

.index-list-item + .index-list-item {
  border-top: 1px dashed rgba(184, 196, 208, 0.55);
}

.index-list-link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 8px;
  text-decoration: none;
  color: var(--c-ink);
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.index-list-link:hover {
  background: rgba(255, 106, 61, 0.06);
  padding-left: 14px;
  color: var(--c-ink);
}

.index-list-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-orange);
}

.index-list-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
}

.tag {
  display: inline-block;
  padding: 3px 12px 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  background: rgba(45, 111, 179, 0.1);
  color: var(--c-blue);
  border-left: 3px solid var(--c-blue);
  border-radius: 999px;
}

.tag--orange {
  background: rgba(255, 106, 61, 0.1);
  color: var(--c-orange);
  border-left-color: var(--c-orange);
}

.tag--gold {
  background: rgba(255, 179, 0, 0.14);
  color: #A87400;
  border-left-color: var(--c-gold);
}

.img-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 0 8px, transparent 8px 16px),
    linear-gradient(135deg, var(--c-mid), var(--c-deep));
}

.img-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.img-frame--square::before { padding-top: 100%; }
.img-frame--portrait::before { padding-top: 132%; }
.img-frame--wide::before { padding-top: 44%; }
.img-frame--banner::before { padding-top: 38%; }

.img-frame > img,
.img-frame > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 12px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-paper);
  background: linear-gradient(transparent, rgba(11, 31, 58, 0.8));
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-red);
}

.status-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-red);
  animation: dot-pulse 1.6s ease-in-out infinite;
}

.stat-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  border-bottom: 1px dashed rgba(184, 196, 208, 0.5);
}

.stat-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-orange);
}

.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-enabled [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

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

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

  .col-span-2,
  .col-span-3,
  .col-span-4,
  .col-span-6 {
    grid-column: span 2;
  }

  .masthead {
    justify-content: space-between;
    padding: 14px 0 10px;
  }

  .nav-toggle {
    display: inline-flex;
    position: static;
    transform: none;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--c-deep);
    border-top: 2px solid var(--c-orange);
    box-shadow: 0 18px 36px rgba(11, 31, 58, 0.35);
    transition: max-height 0.34s ease;
  }

  .site-nav[data-open="true"] {
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 10px 16px 16px;
  }

  .nav-link {
    display: block;
    padding: 13px 12px;
    font-size: 16px;
    border-bottom: 1px solid rgba(184, 196, 208, 0.1);
  }

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

  .nav-link[aria-current="page"] {
    color: var(--c-orange);
    background: rgba(255, 106, 61, 0.1);
    border-left: 3px solid var(--c-orange);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer-brand,
  .footer-about {
    grid-column: span 2;
  }
}

@media (max-width: 599px) {
  .container {
    padding-inline: 18px;
  }

  .grid-2,
  .grid-3,
  .grid-6 {
    grid-template-columns: 1fr;
  }

  .col-span-2,
  .col-span-3,
  .col-span-4,
  .col-span-6 {
    grid-column: span 1;
  }

  .ticker-label {
    padding: 0 10px;
    font-size: 11px;
  }

  .ticker-item {
    padding: 0 14px;
    font-size: 11px;
  }

  .header-main {
    padding: 0 18px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 36px;
  }

  .footer-brand,
  .footer-about,
  .footer-contact,
  .footer-links {
    grid-column: span 1;
  }

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

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

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

  .js-enabled [data-reveal],
  .js-enabled [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }

  .ticker-viewport {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ticker-viewport::-webkit-scrollbar {
    display: none;
  }

  .scroll-progress {
    transition: none;
  }
}
