/* IP-HOME-170 桌面Firefox模式选择图集 · custom-new 独立设计 */
:root {
  --ink: #1c2733;
  --ink-soft: #46586a;
  --paper: #f6f4ef;
  --card: #ffffff;
  --line: #cfd6dc;
  --track-a: #eef3f8;
  --track-b: #f3eef8;
  --accent: #0f5a8f;
  --chip-bg: #22303c;
  --chip-ink: #f2f5f7;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

.site-head {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 16px 4px;
}

.site-tag {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.site-nav a { color: var(--accent); text-decoration: none; }
.site-nav a:hover, .site-nav a:focus { text-decoration: underline; }

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 16px 32px;
}

h1 {
  font-size: 27px;
  line-height: 1.4;
  margin: 24px 0 12px;
}

h2 {
  font-size: 21px;
  margin: 34px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

h3 { font-size: 17px; margin: 18px 0 8px; }

p, li { color: var(--ink); }

a { color: var(--accent); }

.fine, .table-hint, .track-note {
  font-size: 13.5px;
  color: #55636f; /* 与 --paper 对比度 ≥ 4.5:1 */
}

/* ---- 入口图集：两条轨道 ---- */
.atlas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.track {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.track:first-child { border-top: 4px solid #356ea3; }
.track:last-child  { border-top: 4px solid #7d5ba6; }

.track h3 { margin-top: 4px; }

.pathlist {
  list-style: none;
  margin: 10px 0 8px;
  padding: 0;
  counter-reset: step;
}

.pathlist li {
  counter-increment: step;
  margin: 0 0 8px;
  padding-left: 34px;
  position: relative;
}

.pathlist li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--chip-ink);
  font-size: 13px;
  line-height: 22px;
  text-align: center;
}

.pathlabel {
  display: inline-block;
  font-family: "SFMono-Regular", Consolas, "Courier New", monospace;
  font-size: 13px;
  background: var(--chip-bg);
  color: var(--chip-ink);
  border-radius: 5px;
  padding: 2px 8px;
}

/* ---- 模式对比表 ---- */
.tablewrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  margin: 14px 0 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.tablewrap:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 15px;
}

caption.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--track-a);
  color: var(--ink);
  font-size: 14.5px;
}

tbody th[scope="row"] { white-space: nowrap; font-weight: 600; }

tbody tr:last-child th,
tbody tr:last-child td { border-bottom: none; }

/* ---- 列表 ---- */
ul, ol { padding-left: 24px; }

.reflist { padding-left: 0; list-style: none; }
.reflist li { word-break: break-all; }

footer.site-foot {
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 16px 36px;
  border-top: 1px solid var(--line);
}

footer.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
}

footer.site-foot a { color: var(--ink-soft); }

/* ---- 窄屏 ---- */
@media (max-width: 640px) {
  h1 { font-size: 23px; }
  .atlas { grid-template-columns: 1fr; }
  table { min-width: 620px; }
}
