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

:root {
  --orange-500: #FF4D00;
  --orange-300: #FF8A5C;
  --blue-500: #00C2FF;
  --black-900: #0A0E13;
  --white-100: #F2F4F7;
  --gray-500: #6B7A8A;
  --border-color: #D9E1E8;
  --green-400: #00D26A;
  --red-400: #FF3B30;
  --yellow-400: #FFD100;

  --font-heading: 'Alibaba PuHuiTi', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --text-dark: #14202A;
  --text-muted: var(--gray-500);
  --sidebar-width: 260px;
  --content-max: 1120px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(10, 14, 19, 0.06);
  --shadow-md: 0 6px 24px rgba(10, 14, 19, 0.10);
  --shadow-lg: 0 16px 48px rgba(10, 14, 19, 0.18);
  --ease: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--white-100);
  background: var(--black-900);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

ul,
ol {
  list-style: none;
}

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

button {
  cursor: pointer;
}

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

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

[id] {
  scroll-margin-top: 76px;
}

#main-content {
  scroll-margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 10px 20px;
  background: var(--orange-500);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
  transform: translateY(calc(-100% - 18px));
  transition: transform 0.25s ease;
}

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

.reading-progress {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  height: 3px;
  z-index: 1200;
  background: rgba(10, 14, 19, 0.28);
  pointer-events: none;
}

.reading-progress::before {
  content: "";
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--orange-500) 0%, var(--orange-300) 40%, var(--blue-500) 100%);
  box-shadow: 0 0 12px rgba(255, 77, 0, 0.35);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 32px 22px 28px;
  background:
    radial-gradient(circle at 80% 8%, rgba(255, 77, 0, 0.22), transparent 52%),
    radial-gradient(circle at 0% 96%, rgba(0, 194, 255, 0.10), transparent 42%),
    linear-gradient(165deg, #0D1219 0%, var(--black-900) 70%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.sidebar-decor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background:
    repeating-linear-gradient(115deg,
      rgba(255, 77, 0, 0.045) 0 1px,
      transparent 1px 22px),
    repeating-linear-gradient(65deg,
      rgba(0, 194, 255, 0.035) 0 1px,
      transparent 1px 30px);
  pointer-events: none;
  z-index: 0;
}

.sidebar-vline {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.14);
  font-weight: 700;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 0;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(0, 194, 255, 0.12);
  border: 1px solid rgba(0, 194, 255, 0.32);
  position: relative;
  z-index: 1150;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white-100);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle-line + .nav-toggle-line {
  margin-top: 3px;
}

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

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

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

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--white-100);
  padding: 4px 0;
}

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

.brand-logo {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 54px;
}

.brand-logo-mark {
  width: 46px;
  height: 48px;
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-300) 55%, var(--yellow-400) 100%);
  clip-path: polygon(50% 0%, 82% 18%, 100% 52%, 80% 84%, 50% 100%, 20% 84%, 0% 52%, 18% 18%);
  filter: drop-shadow(0 4px 16px rgba(255, 77, 0, 0.35));
  transition: transform 0.3s var(--ease);
}

.brand:hover .brand-logo-mark {
  transform: scale(1.06) rotate(-3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 1.5px;
  color: var(--white-100);
  white-space: nowrap;
}

.brand-version {
  font-size: 10px;
  font-weight: 700;
  color: var(--blue-500);
  background: rgba(0, 194, 255, 0.12);
  border: 1px solid rgba(0, 194, 255, 0.30);
  padding: 1px 7px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 12px;
  color: rgba(242, 244, 247, 0.55);
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.nav-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(242, 244, 247, 0.30);
  font-weight: 700;
  text-transform: uppercase;
}

.nav-kicker-line {
  display: block;
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav {
  position: relative;
  z-index: 1;
  margin-top: 28px;
}

.nav-list {
  position: relative;
}

.nav-item + .nav-item {
  margin-top: 4px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  color: rgba(242, 244, 247, 0.72);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  transform: translateY(-50%);
  background: linear-gradient(180deg, var(--orange-500), var(--orange-300));
  border-radius: 2px;
  opacity: 0;
  transition: height 0.25s ease, opacity 0.25s ease;
}

.nav-link:hover {
  color: var(--white-100);
  background: rgba(255, 77, 0, 0.10);
  padding-left: 18px;
}

.nav-link[aria-current="page"] {
  color: var(--white-100);
  font-weight: 700;
  background: rgba(255, 77, 0, 0.08);
}

.nav-link[aria-current="page"]::before {
  height: 24px;
  opacity: 1;
}

.nav-index {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  color: var(--orange-500);
  letter-spacing: 1px;
  min-width: 18px;
}

.nav-label {
  letter-spacing: 0.5px;
}

.sidebar-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-foot-line {
  display: block;
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-300));
  border-radius: 2px;
  margin-bottom: 14px;
}

.sidebar-trust {
  font-size: 12px;
  color: rgba(242, 244, 247, 0.5);
  line-height: 1.7;
  letter-spacing: 0.4px;
}

.site-footer {
  position: relative;
  margin-left: var(--sidebar-width);
  padding: 64px 0 0;
  background: var(--black-900);
  color: var(--white-100);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-500) 0%, var(--orange-300) 55%, var(--blue-500) 100%);
  z-index: 1;
}

.site-footer::after {
  content: "FIREFOX";
  position: absolute;
  right: 10px;
  bottom: -14px;
  font-family: var(--font-heading);
  font-size: clamp(72px, 10vw, 140px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--content-max) - 16px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px) 0;
  display: grid;
  grid-template-columns: 1.8fr 0.9fr 1.1fr 1.4fr;
  gap: 48px;
}

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

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white-100);
  text-decoration: none;
}

.footer-brand-link:hover {
  color: var(--orange-300);
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 44px;
}

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

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--white-100);
}

.footer-tagline {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-300);
  letter-spacing: 1px;
}

.footer-trust {
  margin-top: 12px;
  max-width: 280px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(242, 244, 247, 0.5);
}

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

.footer-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(242, 244, 247, 0.45);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.footer-title::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--orange-500);
  margin-top: 8px;
}

.footer-nav li + li {
  margin-top: 4px;
}

.footer-nav a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: rgba(242, 244, 247, 0.78);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-nav a:hover {
  color: var(--orange-300);
  padding-left: 6px;
}

.footer-contact p {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: rgba(242, 244, 247, 0.78);
  margin-bottom: 8px;
}

.contact-label {
  flex-shrink: 0;
  min-width: 34px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(242, 244, 247, 0.40);
  letter-spacing: 1px;
}

.footer-contact-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-500);
  border-bottom: 1px solid rgba(0, 194, 255, 0.4);
  padding-bottom: 2px;
}

.footer-contact-link:hover {
  color: var(--orange-300);
  border-color: rgba(255, 138, 92, 0.5);
}

.footer-legal {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  padding: 18px clamp(20px, 4vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(242, 244, 247, 0.40);
  text-align: center;
}

.legal-divider {
  color: rgba(242, 244, 247, 0.20);
}

.site-main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: var(--white-100);
  color: var(--text-dark);
  position: relative;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  .site-main {
    overflow-x: clip;
  }
}

.page-container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 40px) 88px;
}

.page-header {
  position: relative;
  margin-bottom: 36px;
  padding: 10px 0 30px;
  border-bottom: 1px solid var(--border-color);
}

.page-header::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 76px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-300));
  border-radius: 2px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.page-title em {
  font-style: italic;
  color: var(--orange-500);
}

.page-desc {
  margin-top: 12px;
  max-width: 640px;
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.75;
}

.section {
  padding: clamp(36px, 6vw, 64px) 0;
}

.section--dark {
  background: var(--black-900);
  color: var(--white-100);
}

.section--accent {
  background: var(--orange-500);
  color: #fff;
}

.section-header {
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-300));
}

.section-desc {
  margin-top: 6px;
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

.section--dark .section-title {
  color: var(--white-100);
}

.section--dark .section-desc {
  color: rgba(242, 244, 247, 0.55);
}

.section--accent .section-title {
  color: #fff;
}

.section--accent .section-title::before {
  background: #fff;
}

.section--accent .section-desc {
  color: rgba(255, 255, 255, 0.85);
}

.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--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-500), var(--orange-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, transparent 42%, rgba(10, 14, 19, 0.03) 42%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card:hover::before {
  transform: scaleX(1);
}

.card--blue::before {
  background: linear-gradient(90deg, var(--blue-500), #66D9FF);
}

.card--green::before {
  background: linear-gradient(90deg, var(--green-400), #66F0AA);
}

.card--yellow::before {
  background: linear-gradient(90deg, var(--yellow-400), #FFDD66);
}

.card--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white-100);
  box-shadow: none;
}

.card--dark .card-title {
  color: var(--white-100);
}

.card--dark .card-text {
  color: rgba(242, 244, 247, 0.7);
}

.card--dark .card-footer {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(242, 244, 247, 0.5);
}

.card--dark::after {
  background: linear-gradient(135deg, transparent 42%, rgba(255, 255, 255, 0.04) 42%);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.4;
}

.card-text {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

.card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--gray-500);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 20px;
  background: rgba(0, 194, 255, 0.10);
  color: var(--blue-500);
  border: 1px solid rgba(0, 194, 255, 0.25);
  white-space: nowrap;
}

.tag--orange {
  background: rgba(255, 77, 0, 0.10);
  color: var(--orange-500);
  border-color: rgba(255, 77, 0, 0.25);
}

.tag--yellow {
  background: rgba(255, 209, 0, 0.12);
  color: #8F6E00;
  border-color: rgba(255, 209, 0, 0.35);
}

.tag--on-dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white-100);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--orange-500);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 77, 0, 0.25);
}

.btn-primary:hover {
  background: var(--orange-300);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 77, 0, 0.35);
}

.btn-outline {
  border-color: var(--blue-500);
  color: var(--blue-500);
  background: transparent;
}

.btn-outline:hover {
  background: var(--blue-500);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white-100);
}

.btn-ghost-light:hover {
  border-color: var(--white-100);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white-100);
  transform: translateY(-2px);
}

.breadcrumb {
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--gray-500);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

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

.breadcrumb li + li::before {
  content: "›";
  font-size: 15px;
  line-height: 1;
  color: var(--gray-500);
  opacity: 0.6;
}

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

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

.breadcrumb [aria-current="page"] {
  color: var(--text-dark);
  font-weight: 600;
}

.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background:
    linear-gradient(135deg, rgba(255, 77, 0, 0.07), rgba(0, 194, 255, 0.07)),
    var(--white-100);
}

.image-frame::after {
  content: "";
  display: block;
  padding-top: 62.5%;
}

.image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.image-frame:hover img {
  transform: scale(1.04);
}

.image-frame--16-9::after {
  padding-top: 56.25%;
}

.image-frame--4-3::after {
  padding-top: 75%;
}

.image-frame--1-1::after {
  padding-top: 100%;
}

.image-frame--2-1::after {
  padding-top: 50%;
}

.image-frame--3-4::after {
  padding-top: 133.34%;
}

.image-frame--dark {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 77, 0, 0.12), rgba(0, 194, 255, 0.10)),
    var(--black-900);
}

.stat {
  position: relative;
  padding: 20px 20px 18px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--orange-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
}

.stat--blue {
  border-left-color: var(--blue-500);
}

.stat--green {
  border-left-color: var(--green-400);
}

.stat--yellow {
  border-left-color: var(--yellow-400);
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-dark);
  font-variant-numeric: tabular-nums;
}

.stat-value .unit {
  margin-left: 2px;
  font-size: 0.6em;
  font-weight: 700;
  color: var(--gray-500);
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--gray-500);
  letter-spacing: 0.4px;
}

.stat--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.stat--dark .stat-value {
  color: var(--white-100);
}

.stat--dark .stat-label {
  color: rgba(242, 244, 247, 0.6);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
}

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

.table-wrap th {
  padding: 10px 16px;
  background: var(--black-900);
  color: var(--white-100);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: left;
}

.table-wrap td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

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

.table-wrap tbody tr:hover {
  background: rgba(0, 194, 255, 0.04);
}

.alert {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--blue-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #fff;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.7;
}

.alert--orange {
  border-left-color: var(--orange-500);
}

.alert--green {
  border-left-color: var(--green-400);
}

.alert--red {
  border-left-color: var(--red-400);
}

.alert--yellow {
  border-left-color: var(--yellow-400);
}

[data-scrollspy][aria-current="true"] {
  color: var(--orange-500);
  font-weight: 700;
}

@media (max-width: 960px) {
  .site-header {
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 64px;
    flex-direction: row;
    align-items: center;
    padding: 0 16px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .sidebar-decor,
  .sidebar-vline,
  .sidebar-foot {
    display: none;
  }

  .brand {
    margin-right: auto;
    margin-bottom: 0;
    gap: 10px;
    padding: 0;
  }

  .brand-logo {
    width: 40px;
    height: 42px;
  }

  .brand-logo-mark {
    width: 36px;
    height: 38px;
  }

  .brand-name {
    font-size: 20px;
    letter-spacing: 1px;
  }

  .brand-version,
  .brand-tagline {
    display: none;
  }

  .nav-toggle {
    display: flex;
    margin-left: 8px;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: min(320px, 86vw);
    margin: 0;
    padding: 32px 24px;
    background: var(--black-900);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 36px 0 70px rgba(0, 0, 0, 0.45);
    transform: translateX(-100%);
    transition: transform 0.32s var(--ease);
    overflow-y: auto;
    z-index: 1050;
  }

  .site-nav[data-open] {
    transform: translateX(0);
  }

  .site-main {
    margin-left: 0;
    padding-top: 64px;
  }

  .site-footer {
    margin-left: 0;
    padding-top: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .reading-progress {
    left: 0;
    width: 100%;
    top: 63px;
  }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 19, 0.55);
    z-index: 1010;
    pointer-events: auto;
  }

  body.nav-open .site-header {
    z-index: 1040;
  }

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

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

@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 6px;
  }

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

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

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

  .card:hover,
  .btn:hover,
  .brand:hover .brand-logo-mark,
  .image-frame:hover img {
    transform: none;
  }
}
