/* ==========================================================================
   ProbeXKit LOG — 基础层（两端共用）
   浅色：白卡片 + 极浅蓝灰底；一个蓝主色；品牌里的 X 用珊瑚色。
   版式分别由 pc.css / mobile.css 提供，本文件不写任何布局宽度断点。
   ========================================================================== */

:root {
  --bg:         #f4f6fa;
  --bg-deep:    #eaeef6;
  --surf:       #ffffff;
  --line:       #e2e7f1;
  --line-2:     #cfd7e6;
  --ink:        #182030;
  --ink-2:      #4a5568;
  --ink-3:      #7c8798;
  --brand:      #2f6bf0;
  --brand-dk:   #1f4fc4;
  --brand-soft: #e8effe;
  --x:          #ff5a36;
  --ok:         #12996b;
  --warn:       #b8770a;
  --shadow:     0 1px 2px rgba(24, 32, 48, .05), 0 8px 24px -12px rgba(24, 32, 48, .16);
  --shadow-lg:  0 2px 4px rgba(24, 32, 48, .05), 0 18px 48px -18px rgba(24, 32, 48, .24);
  --radius:     10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Noto Sans SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.mono {
  font-family: "SFMono-Regular", "Cascadia Mono", "JetBrains Mono",
               Consolas, "Liberation Mono", monospace;
}

/* 长路径 / 64 位哈希不能撑出横向滚动 */
code.mono, .checksum code {
  overflow-wrap: anywhere; word-break: break-all; white-space: normal;
}

/* ── 品牌字标：X 用独立色 ──────────────────────────────────────────── */
.wordmark {
  display: inline-flex; align-items: baseline;
  font-size: 19px; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); line-height: 1.15;
}
.wordmark .x { color: var(--x); }
.wordmark .suffix {
  font-size: 10px; font-weight: 700; letter-spacing: .14em;
  color: var(--ink-3); margin-left: 7px; align-self: center;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand svg { flex: none; }

/* ── 按钮 ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 7px;
  font-size: 14.5px; font-weight: 500; line-height: 1;
  min-height: 46px; cursor: pointer;
  border: 1px solid transparent;
  transition: background .16s, border-color .16s, box-shadow .16s;
}
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 1px 2px rgba(47, 107, 240, .3), 0 8px 20px -10px rgba(47, 107, 240, .55);
}
.btn-primary:hover { background: var(--brand-dk); text-decoration: none; }
.btn-ghost { background: var(--surf); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

/* ── 小标签 ─────────────────────────────────────────────────────────── */
.pill {
  display: inline-block; font-size: 11px; line-height: 1;
  padding: 5px 9px; border-radius: 4px; font-weight: 600;
  letter-spacing: .02em; white-space: nowrap;
}
.pill.ok   { background: #e5f6ee; color: var(--ok); }
.pill.soon { background: #fdf3e1; color: var(--warn); }

/* ── 章节小标题 ─────────────────────────────────────────────────────── */
.sec-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 13px;
}
h2 {
  font-size: 30px; line-height: 1.25; letter-spacing: -.025em;
  font-weight: 700; margin: 0 0 13px; color: var(--ink);
}
h3 { margin: 0; }

/* 中文按词组断行，避免只剩一个孤字掉到下一行 */
.lede, .sec-head p, .split p, .feature > div:nth-child(3) > p, .faq .a {
  word-break: keep-all; line-break: strict;
}

/* ── 截图外框 ───────────────────────────────────────────────────────── */
.shot-frame {
  border: 1px solid var(--line-2); border-radius: 12px;
  overflow: hidden; background: var(--surf); padding: 6px;
  box-shadow: var(--shadow-lg);
}
.shot-frame a { display: block; border-radius: 7px; overflow: hidden; }
.shot-frame a:hover { text-decoration: none; }
.shot-frame img { display: block; width: 100%; height: auto; border-radius: 6px; }
.shot-caption { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.55; }

.split-media {
  border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  background: var(--surf); padding: 6px; box-shadow: var(--shadow-lg);
}
.split-media img { display: block; width: 100%; height: auto; border-radius: 6px; }

/* ── 代码块（浅色） ─────────────────────────────────────────────────── */
.code {
  background: var(--surf); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  font-size: 13px; line-height: 1.75; box-shadow: var(--shadow);
}
.code-head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3); background: var(--bg-deep);
}
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.code .c { color: var(--ink-3); }
.code .k { color: var(--brand); font-weight: 500; }
.code .s { color: #1c7a4b; }

/* ── 表格 ───────────────────────────────────────────────────────────── */
.matrix {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: var(--surf); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.matrix th {
  text-align: left; font-weight: 600; color: var(--ink-3);
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  padding: 15px 20px; background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.matrix td {
  padding: 15px 20px; border-bottom: 1px solid var(--line);
  color: var(--ink-2); vertical-align: middle;
}
.matrix td:first-child { color: var(--ink); font-weight: 500; }
.matrix tr:last-child td { border-bottom: 0; }
.matrix tr:hover td { background: #fafbfe; }

/* ── 下载卡片 ───────────────────────────────────────────────────────── */
.dl-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surf); box-shadow: var(--shadow);
}
.dl-card-top {
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--bg-deep);
}
.dl-card-top h3 { font-size: 15px; font-weight: 600; }
.dl-card-top .size { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.dl-links { display: grid; }
.dl-link {
  display: block; padding: 15px 22px;
  border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px;
}
.dl-link:hover { background: #fafbfe; text-decoration: none; }
.dl-link:last-child { border-bottom: 0; }
.dl-main { display: flex; align-items: center; gap: 12px; }
.dl-main .os { width: 58px; color: var(--ink-3); font-size: 12.5px; }
.dl-main .arrow { margin-left: auto; color: var(--brand); font-weight: 600; }
.dl-link .fname {
  display: block; margin-top: 3px; padding-left: 70px;
  font-size: 11px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.checksum { padding: 13px 22px 15px; background: #fbfcfe; border-top: 1px solid var(--line); }
.checksum-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--ink-3);
}
.checksum code {
  display: block; color: var(--ink); font-size: 11.5px;
  word-break: break-all; line-height: 1.7;
  font-variant-numeric: tabular-nums;
}
.copy-btn {
  font: inherit; font-size: 10.5px; letter-spacing: .03em;
  background: var(--surf); border: 1px solid var(--line-2); border-radius: 4px;
  color: var(--ink-2); padding: 4px 10px; cursor: pointer; min-height: 24px;
}
.copy-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ── 规格列表 ───────────────────────────────────────────────────────── */
.spec-list {
  margin: 0; padding: 0; list-style: none;
  background: var(--surf); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.spec-list li {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px;
  padding: 13px 20px; border-top: 1px solid var(--line); font-size: 13.5px;
}
.spec-list li:first-child { border-top: 0; }
.spec-list li > span:first-child { color: var(--ink-3); font-size: 13px; }
.spec-list li > span:last-child {
  color: var(--ink-2); min-width: 0;
  overflow-wrap: anywhere; word-break: break-all;
}

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq {
  background: var(--surf); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  padding: 18px 22px; cursor: pointer; font-size: 14.5px; font-weight: 500;
  list-style: none; display: flex; align-items: flex-start; gap: 12px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; color: var(--brand); font-size: 15px; font-weight: 600;
  width: 14px; flex: none; text-align: center; line-height: 1.5;
}
.faq details[open] summary::before { content: "−"; }
.faq summary:hover { background: #fafbfe; }
.faq .a {
  padding: 0 22px 20px 48px; color: var(--ink-2); font-size: 14px;
  line-height: 1.75;
}

/* ── 页脚 ───────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line); background: var(--surf);
  font-size: 12.5px; color: var(--ink-3);
}
footer a { color: var(--ink-3); }
footer a:hover { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
