:root {
  --color-bg: #0B1D3A;
  --color-surface: #132F4C;
  --color-surface-alt: #0A1628;
  --color-text: #E6F1FF;
  --color-text-muted: #8892B0;
  --color-accent: #FF7A45;
  --color-accent-hover: #FF9A6C;
  --color-border: #233554;
  --color-success: #4ECDEB;
  --font-sans: 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-button: 0 2px 8px rgba(255, 122, 69, 0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: var(--space-sm);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.25; margin-top: var(--space-lg); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); line-height: 1.3; }
p { margin-bottom: var(--space-sm); color: var(--color-text-muted); max-width: 70ch; }
strong { color: var(--color-text); font-weight: 600; }

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
ul, ol { padding-left: 1.2rem; margin-bottom: var(--space-sm); }
li { margin-bottom: 0.4rem; color: var(--color-text-muted); }
li::marker { color: var(--color-accent); }

/* Layout */
.section { padding: var(--space-xl) 0; position: relative; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-lg); }
.text-center { text-align: center; }
.mb-lg { margin-bottom: var(--space-lg); }

/* Header & Footer */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 29, 58, 0.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--color-text); }
.brand img { height: 32px; width: auto; display: block; }
.nav-list { display: flex; gap: var(--space-md); list-style: none; padding: 0; }
.nav-link { font-size: 0.95rem; color: var(--color-text-muted); font-weight: 500; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-accent); }

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0; margin-top: var(--space-xl);
  background: var(--color-surface-alt);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-sm); }
.footer-copy { font-size: 0.85rem; color: var(--color-text-muted); }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--color-accent); color: #fff;
  padding: 0.9rem 2rem; border-radius: var(--radius-md);
  font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
  box-shadow: var(--shadow-button); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 6px 12px rgba(255, 122, 69, 0.4); }
.btn-primary:focus-visible { outline: 3px solid var(--color-success); outline-offset: 2px; }

/* Cards & Components */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: var(--space-md);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--color-accent); }
.card-icon { width: 32px; height: 32px; margin-bottom: var(--space-sm); stroke: var(--color-accent); }
.card h3 { color: var(--color-text); margin-bottom: 0.5rem; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-md); font-size: 0.95rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--color-border); word-wrap: break-word; }
th { color: var(--color-accent); font-weight: 600; background: var(--color-surface-alt); }
td { color: var(--color-text-muted); }
tr:hover td { background: rgba(255, 122, 69, 0.05); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--color-border); padding: var(--space-sm) 0; }
summary { cursor: pointer; font-weight: 600; color: var(--color-text); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--color-accent); font-size: 1.2rem; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details[open] summary { border-bottom: 1px solid transparent; padding-bottom: var(--space-sm); margin-bottom: var(--space-sm); }
.faq-answer { color: var(--color-text-muted); line-height: 1.7; }

/* SVG Animations */
.wave-container { position: absolute; bottom: 0; left: 0; width: 100%; height: 180px; pointer-events: none; opacity: 0.6; }
.wave { fill: none; stroke: var(--color-accent); stroke-width: 2; }
.anim-draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; animation: drawPath 5s ease-in-out infinite; }
.anim-wave { animation: waveFloat 4s ease-in-out infinite; }
@keyframes drawPath {
  0%, 100% { stroke-dashoffset: 1; }
  50% { stroke-dashoffset: 0; }
}
@keyframes waveFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .anim-draw, .anim-wave { animation: none !important; }
}

/* Interface Mockup */
.mockup-frame { 
  background: var(--color-surface-alt); 
  border: 1px solid var(--color-border); 
  border-radius: var(--radius-md); 
  padding: 12px; 
  display: inline-block; 
  margin-top: var(--space-md); 
  max-width: 100%; 
}
.mockup-frame svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-list { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: var(--space-lg) 0; }
}
