/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  font-weight: 400; line-height: 1.6; color: #FFFFFF; background: #1A0A2E;
  min-height: 100vh; display: flex; flex-direction: column;
}
h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, 'Times New Roman', 'STSong', 'SimSun', serif;
  font-weight: 900; line-height: 1.25; letter-spacing: 0.02em;
}
code, pre, .numeric {
  font-family: Consolas, 'Liberation Mono', 'Courier New', monospace;
}
a { color: #00D4FF; text-decoration: none; transition: color 0.2s; }
a:hover { color: #39FF14; }
a:focus-visible { outline: 2px solid #39FF14; outline-offset: 2px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
/* ===== CSS Variables ===== */
:root {
  --color-primary-bg: #1A0A2E;
  --color-card-bg: #2E0A4E;
  --color-accent-blue: #00D4FF;
  --color-accent-green: #39FF14;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #B0B0B0;
  --color-footer-bg: #0D0D0D;
  --color-divider: #00D4FF33;
  --color-chart-bg: #1A1A2E;
  --sidebar-width: 240px;
  --header-top-height: 64px;
  --content-max-width: 1200px;
  --focus-outline: 2px solid #39FF14;
}
/* ===== Skip Link ===== */
.skip-link {
  position: absolute; top: -100px; left: 0; z-index: 10000;
  background: #00D4FF; color: #1A0A2E; padding: 8px 16px;
  font-weight: 700; font-size: 0.875rem; border-radius: 0 0 4px 0;
  transition: top 0.2s; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.skip-link:focus { top: 0; clip: auto; overflow: visible; clip-path: none; }
/* ===== Progress Bar ===== */
[data-progress-bar] {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, #00D4FF, #39FF14);
  transition: width 0.1s linear; pointer-events: none;
}
/* ===== Header Sidebar ===== */
.header-sidebar {
  position: fixed; top: 0; left: 0; z-index: 900;
  width: var(--sidebar-width); height: 100vh;
  background: #2E0A4E; border-right: 1px solid #00D4FF33;
  display: flex; flex-direction: column; padding: 0;
  overflow-y: auto; overflow-x: hidden;
}
.header-brand {
  padding: 28px 20px 16px; border-bottom: 1px solid #00D4FF22;
  display: flex; flex-direction: column; gap: 4px;
}
.brand-link {
  font-family: Georgia, 'Times New Roman', 'STSong', 'SimSun', serif;
  font-size: 1.5rem; font-weight: 900; color: #FFFFFF;
  letter-spacing: 0.04em; transition: color 0.2s;
}
.brand-link:hover { color: #00D4FF; }
.brand-tagline {
  font-size: 0.75rem; color: #00D4FF; letter-spacing: 0.06em;
  font-weight: 400; opacity: 0.8;
}
.nav-toggle { display: none; }
.nav-container { flex: 1; padding: 20px 0; }
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; padding: 10px 20px 10px 28px;
  font-size: 0.95rem; font-weight: 500; color: #B0B0B0;
  border-left: 3px solid transparent; transition: all 0.25s;
  position: relative; letter-spacing: 0.02em;
}
.nav-link::before {
  content: ''; position: absolute; left: 12px; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: #B0B0B0; transform: translateY(-50%);
  transition: background 0.25s, box-shadow 0.25s;
}
.nav-link:hover {
  color: #FFFFFF; background: #1A0A2E44; border-left-color: #00D4FF;
}
.nav-link:hover::before { background: #00D4FF; box-shadow: 0 0 8px #00D4FF; }
.nav-link[aria-current="page"] {
  color: #39FF14; border-left-color: #39FF14; background: #1A0A2E33;
}
.nav-link[aria-current="page"]::before {
  background: #39FF14; box-shadow: 0 0 10px #39FF14;
}
.sidebar-footer {
  padding: 16px 20px; border-top: 1px solid #00D4FF22;
  font-size: 0.7rem; color: #B0B0B066;
}
/* ===== Main Content Area ===== */
#main-content, .page-container {
  margin-left: var(--sidebar-width); padding: 32px 40px 60px;
  max-width: var(--content-max-width); flex: 1; width: 100%;
}
/* ===== Footer ===== */
.footer {
  margin-left: var(--sidebar-width); background: #0D0D0D;
  border-top: 1px solid #00D4FF22; padding: 48px 40px 24px;
  color: #B0B0B0; font-size: 0.875rem;
}
.footer-content {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px;
  max-width: var(--content-max-width); margin: 0 auto;
}
.footer-brand-link {
  font-family: Georgia, 'Times New Roman', 'STSong', 'SimSun', serif;
  font-size: 1.25rem; font-weight: 900; color: #FFFFFF;
  letter-spacing: 0.04em;
}
.footer-brand-link:hover { color: #00D4FF; }
.footer-desc { margin-top: 8px; font-size: 0.8rem; color: #B0B0B0AA; line-height: 1.5; }
.footer-links-title, .footer-contact-title {
  font-size: 0.75rem; font-weight: 700; color: #00D4FF;
  text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 12px;
}
.footer-link-list { display: flex; flex-direction: column; gap: 8px; }
.footer-link { color: #B0B0B0; font-size: 0.85rem; transition: color 0.2s; }
.footer-link:hover { color: #39FF14; }
.footer-contact-list { display: flex; flex-direction: column; gap: 6px; }
.footer-contact-item { color: #B0B0B0; font-size: 0.85rem; }
.footer-contact-item[href] { color: #B0B0B0; transition: color 0.2s; }
.footer-contact-item[href]:hover { color: #00D4FF; }
.footer-contact-note { margin-top: 10px; font-size: 0.75rem; color: #B0B0B066; line-height: 1.5; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  max-width: var(--content-max-width); margin: 32px auto 0;
  padding-top: 20px; border-top: 1px solid #00D4FF22;
  font-size: 0.75rem; color: #B0B0B066; align-items: center;
}
.footer-copyright, .footer-icp, .footer-trust { white-space: nowrap; }
.footer-trust { color: #00D4FF66; font-style: italic; }
/* ===== Shared Components ===== */
.page-container { margin-left: var(--sidebar-width); padding: 32px 40px 60px; max-width: var(--content-max-width); flex: 1; }
.btn-accent {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; background: #00D4FF; color: #1A0A2E;
  font-weight: 700; font-size: 0.9rem; border: none; border-radius: 4px;
  cursor: pointer; transition: all 0.25s; letter-spacing: 0.02em;
}
.btn-accent:hover { background: #39FF14; color: #1A0A2E; transform: translateY(-1px); box-shadow: 0 4px 16px #00D4FF44; }
.btn-accent:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
.card {
  background: #2E0A4E; border: 1px solid #00D4FF22; border-radius: 6px;
  padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover { border-color: #00D4FF66; box-shadow: 0 6px 28px rgba(0,212,255,0.12); }
.card-title { font-size: 1.1rem; color: #FFFFFF; margin-bottom: 8px; }
.card-data { font-family: Consolas, 'Liberation Mono', 'Courier New', monospace; color: #39FF14; font-size: 1.4rem; font-weight: 700; }
.card-label { font-size: 0.8rem; color: #B0B0B0; }
/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .header-sidebar { width: 200px; }
  #main-content, .page-container, .footer { margin-left: 200px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  :root { --sidebar-width: 0px; --header-top-height: 56px; }
  .header-sidebar {
    width: 100%; height: var(--header-top-height);
    position: fixed; top: 0; left: 0; flex-direction: row;
    align-items: center; justify-content: space-between;
    padding: 0 16px; border-right: none; border-bottom: 1px solid #00D4FF33;
    z-index: 900; overflow: visible;
  }
  .header-brand { padding: 0; border-bottom: none; flex-direction: row; align-items: center; gap: 8px; }
  .brand-link { font-size: 1.15rem; }
  .brand-tagline { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 4px;
    background: none; border: none; cursor: pointer; padding: 8px;
    z-index: 910; position: relative;
  }
  .toggle-line {
    display: block; width: 22px; height: 2px;
    background: #00D4FF; border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
  }
  .nav-toggle[aria-expanded="true"] .toggle-line:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  .nav-toggle[aria-expanded="true"] .toggle-line:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .toggle-line:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
  .nav-container {
    position: fixed; top: 0; left: -100%; width: 80%; height: 100vh;
    background: #2E0A4E; border-right: 2px solid #00D4FF44;
    padding-top: 72px; transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 890; box-shadow: 4px 0 40px rgba(0,0,0,0.6);
  }
  .nav-container[data-open] { left: 0; }
  .nav-list { gap: 0; }
  .nav-link { padding: 14px 20px 14px 32px; font-size: 1rem; }
  .sidebar-footer { display: none; }
  #main-content, .page-container, .footer { margin-left: 0; }
  #main-content, .page-container { padding: 72px 16px 40px; }
  .footer { padding: 32px 16px 20px; }
  .footer-content { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}
@media (max-width: 480px) {
  .nav-container { width: 100%; left: -100%; }
  .nav-container[data-open] { left: 0; }
}
/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  [data-progress-bar] { display: none; }
  .nav-container { transition: none; }
}
/* ===== Focus Visible ===== */
:focus-visible { outline: var(--focus-outline); outline-offset: 2px; }
/* ===== Utility ===== */
.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; }
