:root {
  --color-bg: #f0f5fc;
  --color-surface: #ffffff;
  --color-primary: #0b6ef5;
  --color-primary-dark: #0a58ca;
  --color-accent: #00e5ff;
  --color-text: #1a2b3c;
  --color-text-muted: #5c6b7a;
  --color-border: #dbe4f0;
  --color-success: #10b981;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 14px rgba(11, 110, 245, 0.08);
  --shadow-hover: 0 10px 28px rgba(11, 110, 245, 0.14);
  --font-main: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --container-max: 1160px;
  --section-gap: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 { line-height: 1.3; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw + 1rem, 3.25rem); font-weight: 700; color: var(--color-text); }
h2 { font-size: clamp(1.5rem, 3vw + 0.8rem, 2.25rem); font-weight: 600; margin-bottom: 1.5rem; position: relative; padding-left: 1rem; }
h2::before { content: ""; position: absolute; left: 0; top: 0.2em; bottom: 0.2em; width: 4px; background: linear-gradient(180deg, var(--color-accent), var(--color-primary)); border-radius: 4px; }
h3 { font-size: clamp(1.1rem, 2vw + 0.4rem, 1.35rem); font-weight: 600; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; color: var(--color-text); }
.text-muted { color: var(--color-text-muted); }

/* Layout */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--section-gap) 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.split-row { display: flex; flex-direction: row; align-items: center; gap: 48px; }
.split-row.reverse { flex-direction: row-reverse; }
@media (max-width: 860px) {
  .grid-2, .split-row, .split-row.reverse { grid-template-columns: 1fr; flex-direction: column; }
  .section { padding: 48px 0; }
}

/* Header & Nav */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(240, 245, 252, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.nav-list { display: flex; gap: 24px; list-style: none; }
.nav-link { text-decoration: none; color: var(--color-text-muted); font-weight: 500; padding: 6px 10px; border-radius: var(--radius-sm); transition: color 0.2s, background 0.2s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-primary); background: rgba(11, 110, 245, 0.06); }
.mobile-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--color-text); }
@media (max-width: 768px) {
  .nav-list { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; background: var(--color-surface); padding: 20px; border-bottom: 1px solid var(--color-border); }
  .nav-list.active { display: flex; }
  .mobile-toggle { display: block; }
}

/* Footer */
.site-footer { background: #0f1724; color: #cbd5e1; padding: 64px 0 32px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom { border-top: 1px solid #334155; padding-top: 24px; text-align: center; font-size: 0.85rem; color: #64748b; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), #0084ff); color: #fff; box-shadow: 0 4px 12px rgba(11, 110, 245, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11, 110, 245, 0.45); }
.btn-secondary { background: transparent; border: 1.5px solid var(--color-primary); color: var(--color-primary); }
.btn-secondary:hover { background: rgba(11, 110, 245, 0.06); }
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* Cards */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 24px; transition: transform 0.25s var(--ease-out), box-shadow 0.25s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-icon { width: 48px; height: 48px; background: rgba(11, 110, 245, 0.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--color-primary); }
.card-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; color: var(--color-text); }
.card-desc { font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.7; }

/* Table */
.table-wrapper { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: #f8fafc; font-weight: 600; color: var(--color-text); }
td { color: var(--color-text-muted); }
tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 18px 20px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--color-text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--color-primary); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; margin: 0; color: var(--color-text-muted); line-height: 1.75; }

/* News */
.news-meta { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 8px; display: block; }
.news-btn { display: inline-block; margin-top: 12px; font-size: 0.9rem; color: var(--color-primary); text-decoration: none; font-weight: 500; padding: 6px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); transition: background 0.2s; }
.news-btn:hover { background: rgba(11, 110, 245, 0.06); }

/* Related */
.related-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.related-list li { position: relative; padding-left: 16px; }
.related-list li::before { content: "→"; position: absolute; left: 0; color: var(--color-accent); font-weight: bold; }
.related-list a { color: var(--color-text-muted); text-decoration: none; transition: color 0.2s; }
.related-list a:hover { color: var(--color-primary); }

/* SVG Canvas */
.svg-canvas { width: 100%; height: auto; max-width: 800px; margin: 0 auto; display: block; }
.star { fill: var(--color-accent); opacity: 0.6; }
.line { stroke: var(--color-primary); stroke-width: 1.5; fill: none; }
.draw-line { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* Animations */
@keyframes twinkle { 0%, 100% { opacity: 0.3; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes drawStroke { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes floatSoft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.star.twinkle-1 { animation: twinkle 4s ease-in-out infinite; }
.star.twinkle-2 { animation: twinkle 5.5s ease-in-out infinite 1s; }
.line.draw-line { animation: drawStroke 3s var(--ease-out) forwards; }
.ui-panel { animation: floatSoft 6s ease-in-out 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; }
  .star.twinkle-1, .star.twinkle-2, .line.draw-line, .ui-panel { animation: none !important; opacity: 0.8; transform: none !important; }
  .card, .btn { transform: none !important; box-shadow: var(--shadow-card) !important; }
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.accent-bg { background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(11, 110, 245, 0.06)); border-radius: var(--radius-lg); padding: 24px; }
.step-num { display: inline-flex; width: 32px; height: 32px; background: var(--color-primary); color: #fff; border-radius: 50%; align-items: center; justify-content: center; font-weight: 600; margin-right: 12px; flex-shrink: 0; }
.step-list { list-style: none; counter-reset: step; }
.step-list li { counter-increment: step; margin-bottom: 16px; display: flex; align-items: flex-start; }
.step-list li::before { content: "" !important; }
.focus-ring:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
