:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #1a1d23;
  --muted: #5c6570;
  --line: #e3e7ec;
  --accent: #0d99ff;
  --accent-soft: #e8f4ff;
  --warn: #fff6e5;
  --warn-ink: #8a5a00;
  --nav: #111418;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px 64px; }
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246,247,249,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: 1080px; margin: 0 auto; padding: 12px 20px;
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between;
}
.brand { font-weight: 700; color: var(--nav); letter-spacing: .02em; }
.brand span { color: var(--muted); font-weight: 500; margin-left: 8px; font-size: .9rem; }
.toc {
  display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .85rem;
}
.toc a {
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 999px;
  background: transparent;
}
.toc a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.hero {
  padding: 36px 0 18px;
}
.hero h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2rem); }
.hero p { margin: 0; color: var(--muted); max-width: 46rem; }
.badge {
  display: inline-block; margin-bottom: 12px;
  background: var(--accent-soft); color: #0a6cb3;
  font-size: .8rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: start;
}
.side {
  position: sticky; top: 68px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 12px;
}
.side h2 {
  margin: 0 0 8px; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); font-weight: 700;
}
.side ol { margin: 0; padding-left: 18px; }
.side li { margin: 6px 0; }
.side a { color: var(--ink); font-size: .9rem; }
.side a:hover { color: var(--accent); }
.content section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  margin-bottom: 16px;
  scroll-margin-top: 76px;
}
.content h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.content h3 { margin: 16px 0 6px; font-size: 1.02rem; }
.content p, .content li { color: var(--ink); }
.content ul, .content ol { padding-left: 1.2rem; }
.content li { margin: 4px 0; }
.kicker { color: var(--muted); font-size: .92rem; margin-top: 0; }
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px;
}
.tile {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.tile strong { display: block; margin-bottom: 4px; }
.tile span { color: var(--muted); font-size: .9rem; }
.kbd {
  font-family: var(--mono);
  font-size: .85em;
  background: #eef1f5;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
}
.callout {
  margin-top: 12px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 10px 12px;
  color: #174868;
  font-size: .92rem;
}
.placeholder {
  margin-top: 12px;
  background: var(--warn);
  border: 1px dashed #e0b34d;
  border-radius: 10px;
  padding: 16px;
  color: var(--warn-ink);
}
.placeholder h3 { margin: 0 0 6px; color: var(--warn-ink); }
.placeholder ul { margin: 8px 0 0; }
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 36px;
  margin: 10px 0;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .8rem; font-weight: 700;
  display: grid; place-items: center;
}
footer {
  margin-top: 28px;
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .grid-2 { grid-template-columns: 1fr; }
  .toc { display: none; }
}

/* Tips section extensions */
.status-ok {
  margin: 10px 0 14px;
  background: #e8f8ef;
  border: 1px solid #b7e4c7;
  border-radius: 10px;
  padding: 10px 12px;
  color: #1b5e3a;
  font-size: .9rem;
  font-weight: 600;
}
.content h4 {
  margin: 12px 0 4px;
  font-size: .95rem;
  color: var(--muted);
}
.content code {
  font-family: var(--mono);
  font-size: .85em;
  background: #eef1f5;
  border-radius: 4px;
  padding: 1px 5px;
}
.table-wrap {
  overflow-x: auto;
  margin: 10px 0 4px;
  -webkit-overflow-scrolling: touch;
}
.tips-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 520px;
}
.tips-table th,
.tips-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.tips-table th {
  background: var(--bg);
  font-weight: 700;
  white-space: nowrap;
}
.tips-table tbody tr:nth-child(even) {
  background: #fafbfc;
}
@media (max-width: 860px) {
  .tips-table { font-size: .82rem; min-width: 440px; }
  .tips-table th, .tips-table td { padding: 6px 8px; }
}
