/* api-nav 设计令牌（舰队母版）：强调 #2563eb / 底 #f7f7f5 / 版心 1120px / 圆角 6·10·14·20 / 按钮高 40px */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --accent: #2563eb; --bg: #f7f7f5; --surface: #ffffff; --ink: #17181c; --muted: #6b7280;
  --line: #e7e5e0; --ok: #15803d; --warn: #b45309; --bad: #b91c1c; --chip: #eef2ff;
}
html { -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--ink); font-size: 15.5px; line-height: 1.65; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { font-weight: 700; font-size: 18px; color: var(--ink); display: flex; align-items: center; gap: 9px; }
.brand .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar nav a { color: var(--ink); font-size: 14.5px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14.5px; cursor: pointer; transition: all .18s ease; }
.btn:hover { border-color: #c9c6bf; text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #1d4fd7; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero { padding: 52px 0 30px; }
.hero h1 { font-size: 34px; line-height: 1.3; letter-spacing: -.01em; max-width: 760px; }
.hero .sub { color: var(--muted); margin-top: 12px; max-width: 720px; }
.section { padding: 26px 0 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .hero h1 { font-size: 27px; } }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--chip); color: #3730a3; font-size: 12.5px; margin-right: 6px; }
.tag-ad { background: #fef3c7; color: #92400e; }
.tag-self { background: #ecfdf5; color: #065f46; }
.tag-example { background: #f3f4f6; color: #4b5563; }
.ev { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12.5px; font-weight: 600; }
.ev-verified { background: #dcfce7; color: #166534; }
.ev-probed { background: #fef9c3; color: #854d0e; }
.ev-none { background: #f3f4f6; color: #6b7280; }
.st-alive { color: var(--ok); } .st-suspect, .st-final { color: var(--warn); } .st-dead { color: var(--bad); } .st-unknown { color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 13px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
input, select, textarea { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14.5px; font-family: inherit; color: var(--ink); }
textarea { height: auto; padding: 10px 12px; width: 100%; }
input[type="text"], input[type="search"], input[type="password"], input[type="tel"], select { min-width: 0; }
.field { margin-bottom: 14px; } .field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.field input, .field select { width: 100%; }
.adslot { border: 1px dashed #d6a419; background: #fffbeb; border-radius: 14px; padding: 14px 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.score { font-weight: 700; font-size: 18px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 44px; margin-top: 30px; color: var(--muted); font-size: 13.5px; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 800px) { .kv { grid-template-columns: repeat(2, 1fr); } }
.kv .num { font-size: 26px; font-weight: 700; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; }
.tabs button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
