:root {
  --color-bg: #0b1229;
  --color-surface: #131b38;
  --color-surface-hover: #1a254a;
  --color-text-primary: #e6ecf7;
  --color-text-secondary: #8fa3c8;
  --color-accent: #f57020;
  --color-accent-hover: #e05a15;
  --color-border: #263460;
  --color-success: #2dd36f;
  --font-display: "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-body: "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4.5rem;
  --space-xl: 6rem;
  --radius-sm: 0.6rem;
  --radius-md: 1rem;
  --radius-lg: 1.25rem;
  --shadow-card: 0 6px 24px rgba(0,0,0,0.35);
  --container-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; text-wrap: balance; color: var(--color-text-primary); }
h1 { font-size: clamp(2.4rem, 4.8vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); margin-bottom: var(--space-xs); }
p, li, td, th, label, caption { color: var(--color-text-secondary); }
p { margin-bottom: var(--space-sm); max-width: 68ch; }
strong { color: var(--color-text-primary); font-weight: 600; }
a { color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s ease; }
a:hover, a:focus-visible { color: var(--color-accent-hover); }

/* Layout */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 var(--space-sm); }
section { padding: var(--space-lg) 0; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-lg); align-items: start; }
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }

/* Header & Nav */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(11, 18, 41, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); padding: 0.75rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 34px; width: auto; display: block; }
.brand-name { font-weight: 700; font-size: 1.1rem; color: var(--color-text-primary); letter-spacing: 0.02em; }
.nav-list { display: flex; list-style: none; gap: var(--space-md); }
.nav-list a { color: var(--color-text-secondary); font-weight: 500; font-size: 0.95rem; padding: 0.4rem 0; position: relative; }
.nav-list a::after { content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-accent); transition: width 0.25s ease; }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { width: 100%; }
.nav-list a[aria-current="page"] { color: var(--color-text-primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.6rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.2s ease; border: 1.5px solid transparent; text-decoration: none; }
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: 0 4px 12px rgba(245, 112, 32, 0.25); }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(245, 112, 32, 0.35); }
.btn-outline { background: transparent; border-color: var(--color-border); color: var(--color-text-primary); }
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn-icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; }

/* Cards */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.5rem; transition: border-color 0.2s, transform 0.2s; position: relative; overflow: hidden; }
.card:hover { border-color: var(--color-accent); transform: translateY(-3px); }
.card-icon { width: 36px; height: 36px; margin-bottom: 1rem; stroke: var(--color-accent); }
.card-desc { font-size: 0.95rem; line-height: 1.6; }

/* Table */
.table-wrapper { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-surface); color: var(--color-text-primary); font-weight: 600; white-space: nowrap; }
td { font-size: 0.95rem; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* FAQ */
.faq-group { display: flex; flex-direction: column; gap: 0.75rem; }
details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.2s; }
details:hover { border-color: #3a4a7a; }
details[open] { border-color: var(--color-accent); }
summary { padding: 1rem 1.25rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; color: var(--color-accent); font-weight: 400; transition: transform 0.25s ease; }
details[open] summary::after { transform: rotate(45deg); }
.details-content { padding: 0 1.25rem 1rem; font-size: 0.95rem; line-height: 1.65; color: var(--color-text-secondary); }
.details-content p { margin-bottom: 0.5rem; }

/* Latest Updates & Related */
.update-card { display: flex; flex-direction: column; gap: 0.5rem; }
.update-meta { font-size: 0.85rem; color: var(--color-text-secondary); display: flex; gap: 1rem; }
.view-link { font-size: 0.9rem; font-weight: 600; margin-top: auto; }
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; list-style: none; }
.related-item dt { font-weight: 600; color: var(--color-text-primary); margin-bottom: 0.3rem; }
.related-item dd { font-size: 0.9rem; color: var(--color-text-secondary); }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-surface); padding: var(--space-lg) 0 var(--space-md); margin-top: var(--space-lg); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-md); margin-bottom: var(--space-md); }
.footer-col h4 { color: var(--color-text-primary); font-size: 1rem; margin-bottom: 1rem; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--color-text-secondary); font-size: 0.9rem; }
.footer-bottom { text-align: center; font-size: 0.85rem; color: var(--color-text-secondary); padding-top: var(--space-md); border-top: 1px solid var(--color-border); }

/* SVG Animations */
.wave-path { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes waveDrawLoop { 0% { stroke-dashoffset: 1; } 45% { stroke-dashoffset: 0; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 1; } }
.anim-wave-1 { animation: waveDrawLoop 7s ease-in-out infinite; }
.anim-wave-2 { animation: waveDrawLoop 8.5s ease-in-out infinite 1.2s; }
.anim-wave-3 { animation: waveDrawLoop 6.5s ease-in-out infinite 0.4s; }

@keyframes pulseFloat { 0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; } 50% { transform: translateY(-8px) scale(1.03); opacity: 1; } }
.anim-float { animation: pulseFloat 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

@keyframes syncRotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.anim-spin { animation: syncRotate 12s linear infinite; transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .anim-wave-1, .anim-wave-2, .anim-wave-3, .anim-float, .anim-spin { animation: none !important; }
}
