*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --text: #111111;
  --text-secondary: #555555;
  --accent: #0a83d6;
  --accent-hover: #0568b3;
  --border: #e2e0d8;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --container: 1120px;
  --header-h: 64px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
.section-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.section-desc { color: var(--text-secondary); max-width: 720px; margin-bottom: 40px; font-size: clamp(0.95rem, 1.2vw, 1.05rem); }

/* Header & Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 246, 242, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border); height: var(--header-h);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { height: 32px; width: auto; display: block; }
.brand-name { font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; }
.nav-list { display: flex; gap: 24px; list-style: none; }
.nav-link {
  text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.95rem;
  transition: color 0.2s; position: relative;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; bottom: -6px; left: 0; width: 100%; height: 2px; background: var(--accent);
}
@media (max-width: 768px) { .nav-list { display: none; } }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 48px 0; margin-top: 60px; }
.footer-inner { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-link { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; }
.footer-copy { color: #888; font-size: 0.85rem; margin-top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-weight: 600; text-decoration: none;
  cursor: pointer; transition: all 0.2s; font-size: 1rem; border: none;
}
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: #333; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--text); }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Cards & Grid */
.grid-2, .grid-3 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: box-shadow 0.2s; }
.card:hover { box-shadow: var(--shadow); }
.card-title { font-weight: 700; margin-bottom: 8px; font-size: 1.1rem; }
.card-text { color: var(--text-secondary); font-size: 0.95rem; }

/* Table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #fafaf7; font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: var(--surface); }
details summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 1.2rem; font-weight: 400; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 20px 16px; color: var(--text-secondary); line-height: 1.6; }

/* Update Cards */
.update-card { display: flex; flex-direction: column; height: 100%; }
.update-date { font-size: 0.8rem; color: #888; margin-bottom: 8px; }
.update-title { font-weight: 700; margin-bottom: 6px; }
.update-summary { flex-grow: 1; color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 16px; }
.link-btn { align-self: flex-start; color: var(--accent); text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.link-btn:hover { text-decoration: underline; }

/* Related */
.related-list { list-style: none; columns: 2; column-gap: 24px; }
.related-list li { margin-bottom: 12px; break-inside: avoid; }
.related-link { text-decoration: none; color: var(--text); font-weight: 500; display: block; margin-bottom: 2px; }
.related-link:hover { color: var(--accent); }
.related-desc { font-size: 0.9rem; color: var(--text-secondary); }
@media (max-width: 600px) { .related-list { columns: 1; } }

/* SVG Animation Base */
.svg-container { width: 100%; max-width: 100%; height: auto; display: block; }
.svg-path { fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svg-highlight { stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 4px rgba(10,131,214,0.3)); }
.anim-draw {
  pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 0;
  animation: drawPath 6s ease-in-out infinite alternate;
}
.anim-sweep {
  pathLength: 1; stroke-dasharray: 0.3 0.7; stroke-dashoffset: 0;
  animation: sweepLine 8s linear infinite;
}
@keyframes drawPath {
  0%, 100% { stroke-dashoffset: 1; opacity: 0.6; }
  50% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes sweepLine {
  0% { stroke-dashoffset: 1; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .anim-draw, .anim-sweep { animation: none !important; stroke-dashoffset: 0; opacity: 1; }
}

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.grid-cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step-num { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; display: block; }
