:root {
  --bg-deep: #0A1628;
  --bg-card: #13263F;
  --bg-panel: #101E33;
  --bg-elevated: #17304F;
  --text: #E6F0FF;
  --muted: #8FA9C9;
  --line: #2E4B6B;
  --accent: #FF8A4C;
  --teal: #00D3B4;
  --yellow: #FFC857;
  --rose: #FF5C7A;
  --radius: 20px;
  --radius-soft: 14px;
  --site-width: 1440px;
  --font-head: "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-number: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 122px;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(rgba(0, 211, 180, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 211, 180, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin-top: 0;
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
}

p {
  margin-top: 0;
}

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

button {
  font-family: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 2000;
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(255, 138, 76, 0.35);
  transition: top 0.2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  z-index: 5;
  pointer-events: none;
}

.scroll-progress::after {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--rose), var(--teal));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
}

.header-meta {
  background: linear-gradient(90deg, #081120, #0F2037 65%, #132A44);
  border-bottom: 1px solid rgba(46, 75, 107, 0.7);
  color: var(--muted);
}

.header-meta .header-shell {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.header-shell {
  width: 100%;
  max-width: var(--site-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  font-family: var(--font-number);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meta-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 211, 180, 0.14);
}

.meta-item:first-child {
  color: var(--yellow);
}

.meta-item:first-child::before {
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(255, 200, 87, 0.14);
}

.header-main {
  max-width: var(--site-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
}

.brand-mark {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--rose));
  color: var(--bg-deep);
  font-family: var(--font-number);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  border-radius: 16px 16px 16px 4px;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 76% 100%, 0 100%);
  box-shadow: 0 10px 28px rgba(255, 138, 76, 0.28);
}

.brand-name {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.68rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(0, 211, 180, 0.08);
  border-color: rgba(0, 211, 180, 0.35);
  transform: translateY(-1px);
}

.site-nav a[aria-current="page"] {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent), #FFB37B);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(255, 138, 76, 0.22);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
  z-index: 2;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 185px;
  padding: 0.58em 0.85em 0.58em 2.2em;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition: width 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input::placeholder {
  color: #5B7494;
}

.search-input:focus {
  width: 230px;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 211, 180, 0.12);
}

.search-icon {
  position: absolute;
  left: 0.8rem;
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -4px;
  width: 2px;
  height: 7px;
  background: var(--muted);
  transform: rotate(45deg);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--bg-elevated);
}

.nav-toggle-box {
  position: relative;
  width: 20px;
  height: 14px;
}

.nav-toggle-box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: top 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-box span:nth-child(1) {
  top: 0;
}

.nav-toggle-box span:nth-child(2) {
  top: 6px;
}

.nav-toggle-box span:nth-child(3) {
  top: 12px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) {
  top: 6px;
  transform: 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) {
  top: 6px;
  transform: rotate(-45deg);
}

.body-nav-open {
  overflow: hidden;
}

.page-shell {
  max-width: var(--site-width);
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(1.5rem, 5vw, 4rem);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0;
}

.text-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.85rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.65em 1.2em;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.2;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

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

.btn-primary:hover {
  background: #FF6A1F;
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(10, 22, 40, 0.4);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25em 0.7em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tag-live {
  color: var(--yellow);
  border-color: rgba(255, 200, 87, 0.4);
}

.tag-up {
  color: var(--rose);
  border-color: rgba(255, 92, 122, 0.4);
}

.tag-down {
  color: var(--teal);
  border-color: rgba(0, 211, 180, 0.4);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.data-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.data-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.data-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 211, 180, 0.5);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.data-card:hover::after {
  opacity: 1;
}

.data-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.data-value {
  font-family: var(--font-number);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.card {
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.9rem;
}

.table-wrap th {
  background: var(--bg-panel);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

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

[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
  background: #070F1C;
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -45px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(0, 211, 180, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 40px rgba(0, 211, 180, 0.03),
    0 0 0 80px rgba(255, 138, 76, 0.02);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 138, 76, 0.12), transparent 68%);
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--site-width);
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 3vw, 2.5rem) 1.5rem;
}

.footer-topline {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 2rem;
  align-items: end;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.site-footer .brand-mark {
  width: 46px;
  height: 46px;
  font-size: 0.72rem;
}

.footer-brand-text strong {
  display: block;
  font-weight: 900;
  font-size: 1.1rem;
}

.footer-brand-text small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.footer-statement {
  margin: 0;
  max-width: 46em;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-block: 2rem;
}

.footer-section h2 {
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-section ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-section a {
  display: inline-block;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-section a:hover {
  color: var(--teal);
  transform: translateX(4px);
}

.footer-section p {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-contact li {
  position: relative;
  padding-left: 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-contact li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(46, 75, 107, 0.6);
  color: #5B7494;
  font-size: 0.84rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1023px) {
  .header-main {
    grid-template-columns: auto 1fr;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(78vw, 340px);
    padding: calc(76px + 1.5rem) 1.5rem 1.5rem;
    background: linear-gradient(180deg, #0C1B30, #081225);
    border-left: 1px solid var(--line);
    box-shadow: none;
    transform: translateX(106%);
    visibility: hidden;
    overflow-y: auto;
    z-index: 1001;
    transition: transform 0.32s ease, visibility 0.32s ease, box-shadow 0.32s ease;
  }

  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -18px 0 44px rgba(0, 0, 0, 0.5);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .site-nav a {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-soft);
    font-size: 1rem;
    color: var(--text);
  }

  .site-nav a:hover {
    border-color: rgba(0, 211, 180, 0.4);
  }

  .header-actions {
    justify-content: flex-end;
  }

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

  .search-input {
    width: 150px;
  }

  .search-input:focus {
    width: 165px;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
  }

  .header-main {
    gap: 0.6rem;
  }

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

  .brand-name {
    font-size: 1.05rem;
  }

  .search-box {
    display: none;
  }

  .site-nav {
    width: min(86vw, 320px);
    padding-top: calc(68px + 1.25rem);
  }

  .footer-topline {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .header-meta .meta-item:nth-child(n + 2) {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand-subtitle {
    display: none;
  }

  .brand-name {
    font-size: 0.98rem;
  }

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

  .header-main {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .meta-item {
    font-size: 0.62rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    gap: 0.4rem 1rem;
    font-size: 0.78rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-nav {
    transition: none;
  }
}
