:root {
  --c-deep: #0A1F44;
  --c-deeper: #071631;
  --c-electric: #00D4FF;
  --c-orange: #FF6B00;
  --c-cream: #F5EFE7;
  --c-ink: #1A1A1A;
  --c-white: #FFFFFF;
  --gradient-fire: linear-gradient(135deg, #FF6B00, #FF9500);
  --font-display: "Rajdhani", "Arial Black", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
}

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

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

body {
  margin: 0;
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  background:
    radial-gradient(circle at 15% -10%, rgba(0, 212, 255, 0.16), transparent 34%),
    radial-gradient(circle at 90% 110%, rgba(255, 107, 0, 0.12), transparent 28%),
    var(--c-deep);
}

h1, h2, h3, h4, p, ul, ol, dl, blockquote {
  margin-top: 0;
}

a {
  color: var(--c-electric);
}

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

button {
  font-family: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--c-electric);
  outline-offset: 4px;
  border-radius: 6px;
}

#main-content {
  min-height: 60vh;
  scroll-margin-top: 1.5rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section--alt {
  background: rgba(0, 212, 255, 0.04);
  border-top: 1px solid rgba(0, 212, 255, 0.12);
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
}

.section--paper {
  background: var(--c-cream);
  color: var(--c-ink);
}

.section--paper .section__title {
  color: var(--c-ink);
}

.section--paper .section__subtitle {
  color: rgba(26, 26, 26, 0.72);
}

.section--paper a {
  color: var(--c-deep);
  text-decoration-thickness: 0.15em;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section__index {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-orange);
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-white);
}

.section__subtitle {
  max-width: 640px;
  margin: 0.75rem 0 0;
  color: rgba(245, 239, 231, 0.68);
}

.panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 24px;
  background: rgba(245, 239, 231, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.18);
}

.panel--paper {
  background: var(--c-cream);
  color: var(--c-ink);
  border-color: transparent;
}

.panel--glow {
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.14), rgba(255, 107, 0, 0.08));
  border-color: rgba(0, 212, 255, 0.3);
}

.card {
  padding: 1.25rem;
  border-radius: 20px;
  background: rgba(245, 239, 231, 0.06);
  border: 1px solid rgba(245, 239, 231, 0.12);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 0, 0.6);
    background: rgba(245, 239, 231, 0.09);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--gradient-fire);
  color: var(--c-deep);
  box-shadow: 0 8px 22px rgba(255, 107, 0, 0.28);
}

.btn--primary:hover {
  color: var(--c-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 107, 0, 0.35);
}

.btn--ghost {
  border-color: rgba(0, 212, 255, 0.55);
  color: var(--c-electric);
}

.btn--ghost:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--c-white);
}

.chip {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: #CFF6FF;
  font-size: 0.85rem;
  line-height: 1.2;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.16);
  color: #FFB97F;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.data-line {
  font-family: var(--font-mono);
  color: var(--c-electric);
  font-variant-numeric: tabular-nums;
}

.glow-line {
  height: 2px;
  margin: 2rem 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.8), rgba(255, 107, 0, 0.7), transparent);
}

.divider {
  height: 1px;
  margin: 1.5rem 0;
  border: 0;
  background: rgba(245, 239, 231, 0.18);
}

.breadcrumb {
  padding: 1rem 0;
  font-size: 0.875rem;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(245, 239, 231, 0.6);
}

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

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 0.5rem;
  color: rgba(245, 239, 231, 0.35);
}

.breadcrumb__link {
  color: var(--c-electric);
  text-decoration: none;
}

.breadcrumb__current {
  color: rgba(245, 239, 231, 0.8);
}

.page-heading {
  margin-block: clamp(2.5rem, 6vw, 5rem) 2.5rem;
}

.page-heading__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-orange);
}

.page-heading__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--c-white);
}

.article {
  max-width: 780px;
}

.article__body {
  color: rgba(245, 239, 231, 0.88);
  font-size: 1.05rem;
}

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

.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));
}

.image-frame {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.14), rgba(10, 31, 68, 0.55));
}

.image-frame::after {
  content: "图片";
  position: absolute;
  right: 0.9rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(10, 31, 68, 0.7);
  color: rgba(0, 212, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.image-frame--hero {
  min-height: 440px;
}

.image-frame--card {
  min-height: 220px;
}

.image-frame--ratio {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--c-electric);
  color: var(--c-deep);
  font-weight: 800;
  text-decoration: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 31, 68, 0.95);
  border-bottom: 1px solid rgba(0, 212, 255, 0.18);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--c-white);
  text-decoration: none;
}

.brand:hover {
  color: var(--c-white);
  opacity: 0.92;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-white);
}

.brand__name {
  margin-left: 0.15rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--c-orange);
}

.brand__pulse {
  width: 8px;
  height: 8px;
  margin-left: 0.45rem;
  border-radius: 50%;
  background: var(--c-electric);
  box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.5);
  animation: brandPulse 2.2s infinite;
}

@keyframes brandPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(0, 212, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

.header__nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  margin: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.65rem 0.8rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--gradient-fire);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--c-orange);
  background: rgba(255, 107, 0, 0.08);
}

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

.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.06);
  color: var(--c-white);
  cursor: pointer;
}

.nav__toggle:hover {
  border-color: var(--c-orange);
}

.nav__toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}

.nav__toggle-line + .nav__toggle-line {
  margin-top: 4px;
}

.nav__toggle-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-line:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

.header__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding: 0.5rem 0 0.9rem;
  border-top: 1px solid rgba(0, 212, 255, 0.14);
}

.header__search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 680px;
  max-width: 780px;
  min-width: 0;
  padding: 0.3rem;
  border: 1px solid rgba(0, 212, 255, 0.32);
  border-radius: 999px;
  background: rgba(245, 239, 231, 0.07);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.header__search:focus-within {
  border-color: var(--c-electric);
  background: rgba(245, 239, 231, 0.1);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15);
}

.header__search-prefix {
  flex: 0 0 auto;
  padding-left: 1rem;
  padding-right: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--c-orange);
}

.header__search-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.6rem 0.25rem 0.6rem 0.5rem;
  border: 0;
  background: transparent;
  color: var(--c-white);
  font: inherit;
}

.header__search-input::placeholder {
  color: rgba(245, 239, 231, 0.5);
}

.header__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.header__search-btn {
  flex: 0 0 auto;
  padding: 0.55rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--gradient-fire);
  color: var(--c-deep);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}

.header__search-btn:hover {
  filter: brightness(1.08);
}

.refresh-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(245, 239, 231, 0.88);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.refresh-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-orange);
  animation: refreshPulse 2.6s infinite;
}

@keyframes refreshPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(255, 107, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0); }
}

.site-footer {
  background: var(--c-deeper);
  border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1.6fr;
  gap: 2rem;
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding-block: 3rem 2.5rem;
}

.footer__brand {
  display: block;
}

.footer__brand-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--c-white);
  text-decoration: none;
}

.footer__desc {
  max-width: 36rem;
  margin: 0 0 1.2rem;
  color: rgba(245, 239, 231, 0.72);
}

.footer__trust {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  color: rgba(245, 239, 231, 0.7);
  font-size: 0.86rem;
}

.footer__trust-mark {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--c-orange);
}

.footer__nav {
  min-width: 0;
}

.footer__heading {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-white);
}

.footer__links {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  color: rgba(245, 239, 231, 0.72);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.footer__links a:hover {
  color: var(--c-orange);
  padding-left: 0.2rem;
}

.footer__contact {
  min-width: 0;
}

.footer__contact-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(245, 239, 231, 0.78);
  font-size: 0.9rem;
}

.footer__contact-label {
  display: inline-block;
  min-width: 3em;
  margin-right: 0.4rem;
  color: var(--c-electric);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.footer__note {
  margin: 1.2rem 0 0;
  color: rgba(245, 239, 231, 0.55);
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer__meta {
  background: rgba(5, 15, 36, 0.7);
  border-top: 1px solid rgba(0, 212, 255, 0.16);
}

.footer__meta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  padding-block: 1rem;
}

.footer__copyright,
.footer__icp {
  margin: 0;
  color: rgba(245, 239, 231, 0.6);
  font-size: 0.82rem;
}

.footer__top {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--c-electric);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.footer__top:hover {
  background: rgba(255, 107, 0, 0.12);
  border-color: var(--c-orange);
  color: var(--c-orange);
}

@media (max-width: 1060px) {
  .header__inner {
    flex-wrap: wrap;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 130;
    margin-left: 0;
    padding: 0.6rem;
    background: rgba(7, 22, 49, 0.98);
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: 20px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  }

  .header__nav[data-open] {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav__link {
    display: block;
    padding: 0.85rem 1rem;
  }

  .nav__link::after {
    left: 1rem;
    right: 1rem;
    bottom: 0.4rem;
  }

  .header__tools {
    flex-wrap: wrap;
  }
}

@media (max-width: 980px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

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

@media (max-width: 640px) {
  .header__inner,
  .header__tools,
  .footer__inner,
  .footer__meta-inner {
    width: min(100% - 24px, 1180px);
  }

  .header__tools {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 1rem;
  }

  .header__search {
    width: 100%;
    max-width: none;
  }

  .header__search-prefix {
    display: none;
  }

  .refresh-badge {
    justify-content: center;
    padding-block: 0.25rem 0.5rem;
  }

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

@media (max-width: 560px) {
  .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;
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-line {
    transform: none;
  }
}
