/* =========================================================
   Reading pages — troubleshooting, battery, about, contact,
   and the privacy policy. Same blue / light system as the
   manual, narrower column for long text.
   ========================================================= */

:root {
  --ink: #1d2939;
  --ink-2: #33475a;
  --muted: #5d6b7a;
  --line: #d7e3ea;
  --blue: #66acd2;
  --blue-dark: #155a99;
  --blue-deep: #0f4a80;
  --blue-wash: #eaf6fd;
  --bg: #f4f9fc;
  --red: #b3382c;
  --font: Arial, "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; }

.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 300;
  padding: 10px 16px; border-radius: 10px;
  background: var(--blue-dark); color: #fff; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 10px; }

/* ---------- header ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: min(760px, 100%); min-height: 58px; margin: 0 auto; padding: 0 22px;
}
.brand { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; text-decoration: none; }
.brand-name { color: var(--blue-dark); font-size: 1.0625rem; font-weight: 900; letter-spacing: -.015em; }
.brand-sub { color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.back-link {
  flex: 0 0 auto; padding-bottom: 1px;
  color: var(--blue-dark); font-size: 0.8125rem; font-weight: 700; text-decoration: none;
  border-bottom: 1px solid rgba(21, 90, 153, .28); white-space: nowrap;
}
.back-link:hover { color: var(--blue); }

.page-nav {
  display: flex; gap: 6px;
  width: min(760px, 100%); margin: 0 auto; padding: 0 22px 10px;
  overflow-x: auto; scrollbar-width: none;
}
.page-nav::-webkit-scrollbar { display: none; }
.page-nav a {
  flex: 0 0 auto; padding: 7px 12px; border-radius: 999px;
  color: var(--ink-2); font-size: 0.8125rem; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.page-nav a:hover { background: var(--blue-wash); color: var(--blue-dark); }
.page-nav a[aria-current="page"] { background: var(--blue-dark); color: #fff; }

/* ---------- breadcrumb ---------- */
.crumbs { width: min(760px, 100%); margin: 0 auto; padding: 16px 22px 0; color: var(--muted); font-size: 0.75rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b6c6d3; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue-dark); }

/* ---------- article body ---------- */
.doc { width: min(760px, 100%); margin: 0 auto; padding: 18px 22px 40px; }
.doc h1 {
  margin: 0 0 10px; color: var(--blue-dark);
  font-size: clamp(1.7rem, 4.6vw, 2.3rem); line-height: 1.14; letter-spacing: -.022em;
}
.doc .lede { margin: 0 0 26px; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.doc .updated { margin: -14px 0 22px; color: var(--muted); font-size: 0.8125rem; }
.doc h2 { margin: 34px 0 10px; color: var(--ink); font-size: 1.1875rem; line-height: 1.35; letter-spacing: -.01em; }
.doc h3 { margin: 24px 0 8px; color: var(--ink); font-size: 1.0313rem; line-height: 1.4; }
.doc p { margin: 0 0 13px; color: var(--ink-2); font-size: 0.9688rem; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin: 0 0 7px; color: var(--ink-2); font-size: 0.9688rem; }
.doc li > ul { margin-top: 7px; }
.doc a { color: var(--blue-dark); text-underline-offset: 2px; }
.doc a:hover { color: var(--blue); }
.doc strong { color: var(--ink); }

/* ---------- tables ---------- */
.table-wrap { margin: 16px 0 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.doc table { width: 100%; min-width: 500px; border-collapse: collapse; font-size: 0.9rem; }
.doc th, .doc td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e6eff5; }
.doc th { background: #f1f8fc; color: var(--blue-deep); font-size: 0.8125rem; }
.doc td { color: var(--ink-2); }
.doc tr:last-child td { border-bottom: 0; }

/* ---------- callouts ---------- */
.note, .warn { margin: 18px 0; padding: 13px 15px; border-radius: 10px; font-size: 0.9375rem; }
.note { border-left: 4px solid var(--blue); background: #f4fafd; }
.warn { border-left: 4px solid var(--red); background: #fff5f5; color: #8f2b22; }
.note p, .warn p { margin: 0; color: inherit; font-size: inherit; }

/* ---------- related links ---------- */
.related { margin: 34px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.related h2 { margin: 0 0 10px; font-size: 1rem; }
.related ul { margin: 0; padding-left: 20px; }
.related li { margin-bottom: 6px; }
.related li:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { margin-top: 24px; border-top: 1px solid var(--line); background: #fff; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: baseline; justify-content: space-between;
  width: min(760px, 100%); margin: 0 auto; padding: 18px 22px;
  color: var(--muted); font-size: 0.8125rem;
}
.footer-inner p { margin: 0; }
.site-footer a { color: var(--blue-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* ---------- cookie notice ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: center;
  padding: 12px 18px; background: #0f2f4a; color: #eaf4fa; font-size: 0.8125rem;
  box-shadow: 0 -6px 24px rgba(15, 47, 74, .22);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; max-width: 620px; line-height: 1.55; }
.cookie-bar a { color: #bcdcf0; text-decoration: underline; }
.cookie-bar button {
  flex: 0 0 auto; padding: 7px 16px; border: 1px solid #6fa8c9; border-radius: 999px;
  background: #1b4a70; color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.cookie-bar button:hover { background: #256089; }

/* ---------- responsive ---------- */
@media (max-width: 560px) {
  .topbar-inner { padding: 0 16px; gap: 10px; }
  .brand-name { font-size: 0.9375rem; }
  .brand-sub { display: none; }
  .back-link { font-size: 0.75rem; }
  .page-nav { padding: 0 16px 10px; gap: 4px; }
  .page-nav a { padding: 6px 10px; font-size: 0.75rem; }
  .crumbs { padding: 14px 16px 0; }
  .doc { padding: 14px 16px 34px; }
  .doc table { min-width: 460px; }
  .footer-inner { padding: 16px; }
}

@media (min-width: 700px) {
  .topbar-inner { min-height: 62px; }
  .doc { padding: 26px 28px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* compact cookie notice on small screens */
@media (max-width: 560px) {
  .cookie-bar { padding: 10px 13px; gap: 8px 12px; font-size: 0.75rem; }
  .cookie-bar p { max-width: none; }
  .cookie-bar button { padding: 6px 14px; }
}
