:root {
  --racing-red: #E63946;
  --midnight-blue: #1D3557;
  --neon-green: #39FF14;
  --electric-cyan: #00F0FF;
  --violet: #9D4EDD;
  --cool-gray: #D3D3D3;
  --paper-white: #F8F9FA;
  --ink-black: #111111;
  --font-heading: 'Anton', 'Impact', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-data: 'Roboto Mono', 'Courier New', monospace;
  --header-height: 72px;
  --transition-speed: 0.2s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--paper-white);
  color: var(--ink-black);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

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

:focus-visible {
  outline: 3px solid var(--neon-green);
  outline-offset: 2px;
}

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

.st-skip-link {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--racing-red);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 0 0 12px 12px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.st-skip-link:focus-visible {
  top: 0;
}

.st-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* 按钮 */
.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  white-space: nowrap;
}

.st-btn-primary {
  background: var(--racing-red);
  color: #ffffff;
  border: 1px solid var(--racing-red);
}

.st-btn-primary:hover {
  background: var(--neon-green);
  border-color: var(--neon-green);
  color: var(--midnight-blue);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.st-btn-outline {
  background: transparent;
  color: var(--midnight-blue);
  border: 1px solid var(--midnight-blue);
}

.st-btn-outline:hover {
  border-color: var(--racing-red);
  color: var(--racing-red);
}

/* 实时指示点 */
.st-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  animation: st-pulse 1.5s infinite;
}

@keyframes st-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(57, 255, 20, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0);
  }
}

/* 滚动进度条 */
.st-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--racing-red), var(--electric-cyan));
  z-index: 1000;
  transition: width 0.05s linear;
}

/* 页头悬浮胶囊 */
.st-site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  padding: 0 16px;
  pointer-events: none;
}

.st-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px 12px 24px;
  background: rgba(29, 53, 87, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 60px;
  border: 1px solid rgba(211, 211, 211, 0.25);
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.25);
  pointer-events: auto;
}

.st-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.st-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  background: linear-gradient(135deg, var(--racing-red) 0%, var(--electric-cyan) 100%);
  color: var(--midnight-blue);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.st-logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--paper-white);
  letter-spacing: 0.03em;
  line-height: 1;
}

.st-logo-text em {
  font-style: normal;
  color: var(--racing-red);
  margin-left: 2px;
}

.st-logo-light .st-logo-mark {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 导航 */
.st-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.st-nav-link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(248, 249, 250, 0.8);
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.st-nav-link:hover {
  background: rgba(230, 57, 70, 0.15);
  color: var(--paper-white);
  transform: translateY(-2px);
}

.st-nav-link[aria-current="page"] {
  background: var(--racing-red);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(230, 57, 70, 0.4);
}

.st-nav-link[aria-current="page"]:hover {
  background: var(--racing-red);
  color: #ffffff;
}

.st-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.st-subscribe-btn .st-live-dot {
  margin-right: 4px;
}

/* 导航切换按钮 */
.st-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(248, 249, 250, 0.1);
  transition: background-color var(--transition-speed) ease;
}

.st-nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper-white);
  border-radius: 2px;
  transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

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

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

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

/* 页脚 */
.st-site-footer {
  position: relative;
  background: var(--midnight-blue);
  color: var(--paper-white);
  padding: 72px 0 32px;
  margin-top: 80px;
  overflow: hidden;
}

.st-site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(135deg, transparent 70%, rgba(230, 57, 70, 0.08) 90%),
    linear-gradient(45deg, transparent 65%, rgba(0, 240, 255, 0.05) 85%);
  pointer-events: none;
}

.st-footer-diagonal {
  height: 4px;
  background: linear-gradient(90deg, var(--racing-red), var(--electric-cyan), var(--violet), var(--neon-green));
  position: relative;
  z-index: 1;
}

.st-footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.st-footer-brand .st-logo-text {
  color: var(--paper-white);
  font-size: 1.8rem;
}

.st-footer-desc {
  margin-top: 16px;
  font-size: 0.95rem;
  color: rgba(248, 249, 250, 0.7);
  line-height: 1.7;
}

.st-footer-trust {
  margin-top: 16px;
  padding: 12px;
  border-left: 3px solid var(--racing-red);
  background: rgba(230, 57, 70, 0.08);
  font-size: 0.85rem;
  color: rgba(248, 249, 250, 0.6);
  line-height: 1.6;
}

.st-footer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: var(--paper-white);
  text-transform: uppercase;
}

.st-footer-title-spaced {
  margin-top: 24px;
}

.st-footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.st-footer-link {
  display: inline-block;
  color: rgba(248, 249, 250, 0.7);
  font-size: 0.95rem;
  transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.st-footer-link:hover {
  color: var(--neon-green);
  transform: translateX(4px);
}

.st-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  color: rgba(248, 249, 250, 0.7);
}

.st-footer-contact a {
  color: rgba(248, 249, 250, 0.7);
  transition: color var(--transition-speed) ease;
}

.st-footer-contact a:hover {
  color: var(--electric-cyan);
}

.st-footer-icp-code {
  font-family: var(--font-data);
  font-size: 1rem;
  color: var(--racing-red);
  border: 1px dashed rgba(230, 57, 70, 0.5);
  padding: 8px 12px;
  display: inline-block;
  margin-bottom: 12px;
}

.st-footer-service {
  font-size: 0.85rem;
  color: rgba(248, 249, 250, 0.5);
  line-height: 1.7;
}

.st-footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(248, 249, 250, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(248, 249, 250, 0.5);
}

.st-footer-bottom p {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 通用网格与组件 */
.st-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.st-card {
  background: var(--paper-white);
  border: 1px solid var(--cool-gray);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 8px 8px 0 var(--midnight-blue);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.st-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--racing-red);
}

.st-tag {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--midnight-blue);
  background: var(--electric-cyan);
  padding: 4px 12px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  margin-bottom: 12px;
}

.st-data-flow {
  height: 4px;
  background-image: linear-gradient(90deg, transparent, var(--electric-cyan), transparent);
  background-size: 200% 100%;
  animation: st-data-flow-anim 3s linear infinite;
}

@keyframes st-data-flow-anim {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* 响应式 */
@media (max-width: 1024px) {
  .st-header-inner {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .st-nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(248, 249, 250, 0.1);
    margin-top: 8px;
  }

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

  .st-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .st-nav-link {
    display: block;
    text-align: center;
    padding: 12px 16px;
  }

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

  .st-btn-outline {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

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

@media (max-width: 768px) {
  .st-container {
    padding: 0 20px;
  }

  .st-site-header {
    top: 8px;
    padding: 0 8px;
  }

  .st-header-inner {
    border-radius: 24px;
  }

  .st-logo-text {
    font-size: 1.3rem;
  }

  .st-logo-mark {
    min-width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .st-subscribe-btn .st-btn {
    padding: 10px 16px;
  }

  .st-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .st-footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .st-footer-bottom p {
    justify-content: center;
  }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    box-shadow: none !important;
  }

  .st-live-dot {
    animation: none !important;
    box-shadow: none !important;
  }

  .st-scroll-progress {
    transition: none !important;
  }
}
