:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #10243e;
  --muted: #66768a;
  --line: #e7ecf2;
  --blue: #246bfd;
  --blue2: #eaf1ff;
  --mint: #118365;
  --mint2: #e9fbf5;
  --amber: #b5790a;
  --amber2: #fdf1dd;
  --red: #ef5d67;
  --navy: #071a2f;
  --shadow: 0 20px 45px -20px rgba(16, 36, 62, 0.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07111f;
    --surface: #101f31;
    --ink: #edf4fc;
    --muted: #91a2b7;
    --line: #24374c;
    --blue: #5b8cff;
    --blue2: #162d4e;
    --mint: #35d6a5;
    --mint2: #102f2c;
    --amber: #f5c065;
    --amber2: #2c2410;
    --red: #ff8790;
    --navy: #0b1827;
    --shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.55);
  }
}
:root[data-theme="dark"] {
  --bg: #07111f;
  --surface: #101f31;
  --ink: #edf4fc;
  --muted: #91a2b7;
  --line: #24374c;
  --blue: #5b8cff;
  --blue2: #162d4e;
  --mint: #35d6a5;
  --mint2: #102f2c;
  --amber: #f5c065;
  --amber2: #2c2410;
  --red: #ff8790;
  --navy: #0b1827;
  --shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 13px;
}
.brand img { width: 26px; height: 26px; border-radius: 8px; display: block; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.lang-switch a, .lang-switch span {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
}
.lang-switch .active {
  background: var(--blue);
  color: #fff;
}
.lang-switch a:hover { text-decoration: none; background: var(--blue2); color: var(--blue); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px 90px; }

.hero {
  text-align: center;
  padding: 48px 10px 28px;
}
.hero img.logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--blue);
  background: var(--blue2);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.subtitle {
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}
.meta-row {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.meta-row strong { color: var(--ink); }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--mint);
  background: var(--mint2);
  padding: 8px 13px;
  border-radius: 999px;
}
.badge svg { width: 13px; height: 13px; flex: none; }

.summary {
  background: linear-gradient(155deg, var(--blue2), var(--surface) 65%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 26px;
  margin: 30px 0;
  box-shadow: var(--shadow);
}
.summary h2 {
  margin: 0 0 12px;
  font-size: 15px;
}
.summary ul { margin: 0; padding-left: 0; list-style: none; }
.summary li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink);
  padding: 7px 0;
}
.summary li svg {
  width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--mint);
}
.summary li b { font-weight: 800; }

nav.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  margin-bottom: 30px;
}
nav.toc h2 {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 800;
}
nav.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
}
nav.toc li a {
  display: flex;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  padding: 6px 4px;
  border-radius: 8px;
}
nav.toc li a:hover { color: var(--blue); text-decoration: none; background: var(--blue2); }
nav.toc li a .n {
  color: var(--blue);
  font-weight: 800;
  min-width: 18px;
}
@media (max-width: 560px) {
  nav.toc ol { grid-template-columns: 1fr; }
}

section.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 26px 24px;
  margin-bottom: 16px;
  scroll-margin-top: 84px;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.icon-chip {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--blue2);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.icon-chip svg { width: 17px; height: 17px; }
.card-head h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}
.card-head .num {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
section.card p, section.card li { font-size: 13.5px; color: var(--muted); }
section.card ul, section.card ol { padding-left: 20px; margin: 10px 0 0; }
section.card li { margin-bottom: 7px; }
section.card strong { color: var(--ink); }
section.card p + p { margin-top: 10px; }

.mini-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 12.5px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.mini-table th, .mini-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.mini-table th {
  background: var(--blue2);
  color: var(--blue);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.mini-table tr:last-child td { border-bottom: none; }
.mini-table td { color: var(--ink); }
.mini-table td.muted { color: var(--muted); }

.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--amber2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 15px;
  margin-top: 14px;
}
.callout svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--amber); }
.callout p { margin: 0; color: var(--ink); font-size: 12.5px; }

.contact-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--blue2);
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 6px;
}
.contact-box .icon-chip { background: var(--surface); }
.contact-box a { font-size: 14px; }
.contact-box .sub { font-size: 12px; color: var(--muted); font-weight: 600; }

footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
footer img { width: 30px; height: 30px; border-radius: 9px; margin-bottom: 10px; }
footer .app-name { font-size: 13px; font-weight: 800; }
footer .tag { font-size: 12px; color: var(--muted); margin-top: 3px; }
footer .links { margin-top: 14px; font-size: 12px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
footer .copyright { margin-top: 16px; font-size: 11px; color: var(--muted); }

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
}
