/* ============================================================
   tld.coupons —— 独立站外壳样式
   只管站壳(基础排版 / 页脚 / 内容页排版)。
   频道内部的表格、气泡、折叠等样式在 tld.css 与 tld-detail.css 里
   (那两份是 tldes.com 的真实样式表, 作用域限定在 .tld-root)。
   ============================================================ */

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

body {
  margin: 0;
  background: #fff;
  color: #212529;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
        "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { vertical-align: middle; }

a { color: #a84700; }
a:hover { color: #8a3d00; }

.tld-page { display: flex; flex-direction: column; min-height: 100vh; }
.tld-main { flex: 1 0 auto; }

/* ---------- 页脚 ---------- */
.tld-foot {
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
  margin-top: 30px;
}
.tld-foot .inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 12px 26px;
  font-size: 13px;
  line-height: 1.7;
  color: #6c757d;
}
/* 链接行分左右两组: 左侧品牌+主入口, 右侧「常见问题/数据说明/关于本站」。
   右组用 margin-left:auto 推到最右; 窄屏换行后要复位, 否则会歪在右边。 */
.tld-foot .frow {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 4px 18px; margin-bottom: 6px;
}
.tld-foot .fleft, .tld-foot .fright {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px;
  min-width: 0;
}
.tld-foot .fleft { flex: 0 1 auto; }
.tld-foot .fright { flex: 0 0 auto; margin-left: auto; }
.tld-foot a { color: #a84700; text-decoration: none; }
.tld-foot a:hover { text-decoration: underline; }
.tld-foot .brand { font-weight: 600; color: #212529; }

/* 窄屏: 右侧这组换到下一行后要回到左边, 不然会歪在行尾 */
@media (max-width: 575px) {
  .tld-foot .fright { margin-left: 0; }
}

/* ---------- 内容页(常见问题 / 数据说明 / 关于本站) ---------- */
/* 选择器带 .tld-root 前缀是为了压过 tld.css 里 .tld-root h1 的 16px */
.tld-root .tld-read { font-size: 15px; line-height: 1.85; color: #333; }
/* 工具页的 h1 带 .mb-0(!important), 标题与下方页首卡片会贴在一起 ——
   mb-0 改不动, 就从卡片这一侧补: .tld-tool 只有 12 个工具模块会出,
   详情页/关于/常见问题那些页面不受影响。卡片自己还有 2px 上外边距, 合计 14px。 */
.tld-root .tld-tool { margin-top: 12px; }
.tld-root .tld-read h1 { font-size: 21px; font-weight: 600; margin: 6px 0 16px; color: #212529; }
.tld-root .tld-read h2 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; color: #212529; }
.tld-root .tld-read h3 { font-size: 15px; font-weight: 600; margin: 16px 0 4px; color: #212529; }
.tld-root .tld-read p { margin: 0 0 11px; }
.tld-root .tld-read ul { padding-left: 22px; margin: 6px 0 12px; }
.tld-root .tld-read li { margin-bottom: 5px; }
.tld-root .tld-read code {
  background: #f1f3f5; padding: 1px 5px; border-radius: 3px;
  color: #a84700; font-size: 13px;
  font-family: SFMono-Regular, Menlo, Consolas, monospace;
}
.tld-root .tld-read table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 14px; }
.tld-root .tld-read th, .tld-root .tld-read td {
  border: 1px solid #dee2e6; padding: 7px 10px; text-align: left; vertical-align: top;
}
.tld-root .tld-read th { background: #f8f9fa; font-weight: 600; }

/* ---------- 404 ---------- */
.tld-404 { text-align: center; padding: 60px 20px; }
.tld-404 h1 { font-size: 44px; margin: 0 0 8px; color: #dee2e6; }
.tld-404 p { color: #6c757d; margin: 0 0 18px; }

/* ---------- 面包屑 ----------
   与 BreadcrumbList 结构化数据一一对应(见 leh/tldsite.py 的 breadcrumb())

   选择器必须带 .tld-root: tld.css / tld-detail.css 里有 `.tld-root ol { padding-left:2rem }`,
   与 `.tld-crumb ol` 特异性相同(0,1,1), 而它们加载在 site.css **之后** ——
   同权重下后者胜出, 面包屑会被推右 32px(表现为"没居左")。
   加一层 .tld-root 变成 0,2,1 才压得住。 */
.tld-root .tld-crumb { margin: 8px 0 2px; font-size: 13px; line-height: 1.6; color: #6c757d; }
.tld-root .tld-crumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px;
}
.tld-root .tld-crumb li { display: flex; align-items: center; gap: 7px; }
.tld-root .tld-crumb li + li::before { content: "/"; color: #ced4da; }
.tld-root .tld-crumb a { color: #a84700; text-decoration: none; }
.tld-root .tld-crumb a:hover { color: #8a3d00; text-decoration: underline; }
.tld-root .tld-crumb-cur { color: #495057; }

/* ---------- 小节标题 ----------
   tldes 原站只有 H1, 为了 SEO 层级补的 H2。
   用 .tld-root 前缀压过 tld.css 里的 h2 规则(那边是 2rem, 太大)。 */
.tld-root .tld-sec {
  font-size: 16px; font-weight: 600; color: #212529;
  margin: 18px 0 8px; line-height: 1.4;
}
.tld-root .tld-sec-inline {
  display: inline; font-size: 15px; margin: 0 8px 0 0; vertical-align: middle;
}
.tld-root .tld-sec-sub { font-size: 13px; color: #6c757d; margin: 0 0 8px; }

/* ---------- 首页底部「最便宜的 .X 价格」区块 ----------
   1:1 复刻 tldes 的 cheapest-block。样式放在这里(而不是生成的
   tld-detail.css)是因为首页只加载 tld.css, 而这块要首页与详情页通用。
   取值与 tld-detail.css 里那份**必须保持一致** —— 详情页后加载 tld-detail.css,
   同特异性后者胜, 只改一边就会出现「首页小了、详情页没变」。
   全套字号与间距比 tldes 原版小一号(用户要求): ol 13.6→12.8px、h3 14.4→13.1px、
   h2 16.8→15.2px, 块内上下内边距 16→12px。12.8px 是中文小字的 12px 下限之上。 */
.tld-root .cheapest-block {
  margin: 1rem 0; padding: .75rem 1rem;
  border: 1px solid #dee2e6; border-radius: 8px; background: #f8fafc;
}
.tld-root .cheapest-block > h2 {
  font-size: .95rem; margin: 0 0 .5rem; color: #8a3d00;
}
.tld-root .cheapest-col {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
  padding: .45rem .6rem; margin-bottom: .5rem;
}
.tld-root .cheapest-col:last-child { margin-bottom: 0; }
.tld-root .cheapest-col h3 {
  font-size: .82rem; margin: 0 0 .25rem; color: #333; font-weight: 600;
}
.tld-root .cheapest-col ol {
  margin: 0; padding-left: 1.05rem; font-size: .8rem; line-height: 1.45;
}
.tld-root .cheapest-col ol li { margin-bottom: .05rem; }
.tld-root .cheapest-col .promo {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: #fff3cd; padding: 0 .25rem; border-radius: 3px;
}
.tld-root .cheapest-block .cb-head:hover { color: #a84700; }

/* ---------- 首页「三个最便宜后缀 + 广告位」两栏(左 60% / 右 40%) ----------
   用 grid 的 3fr/2fr 而不是 60%/40%: 百分比列宽再加上 gap 会超过 100%,
   右边那栏被挤出容器(实测 60%+40%+16px 的顺序就会溢出)。minmax(0,…) 是必须的,
   否则长单词/图片会把 grid 项的最小宽度撑到内容宽度, 左栏压不动。 */
.tld-root .tld-cb-split {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 16px; align-items: start; margin: 1.5rem 0 0;
}
/* 区块自带的 1.5rem 上下 margin 在网格项里不会合并, 会在顶部留出一段空白 */
.tld-root .tld-cb-left .cheapest-block { margin: 0 0 8px; }
.tld-root .tld-cb-left .cheapest-block:last-child { margin-bottom: 0; }
/* 左栏第一块默认展开, 比后面两块长很多 —— 广告跟着视口走, 不被顶到看不见 */
.tld-root .tld-cb-right { position: sticky; top: 12px; }
.tld-root .cb-ad {
  display: block; overflow: hidden; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid #ffe0c2; border-radius: 8px;
}
.tld-root .cb-ad:hover { border-color: #f67d17; text-decoration: none; }
.tld-root .cb-ad-img { display: block; width: 100%; height: auto; }
.tld-root .cb-ad-body { display: block; padding: 10px 12px 12px; }
/* 「广告」标识必须真能看见 —— 12px 是中文小字下限, 再小手机上就糊成一团 */
.tld-root .cb-ad-tag {
  display: inline-block; font-size: 12px; line-height: 1.5; padding: 0 5px;
  border-radius: 3px; background: #f1f3f5; color: #6c757d; margin-right: 6px;
  vertical-align: 1px;
}
.tld-root .cb-ad-t { font-size: 14px; font-weight: 600; color: #212529; }
.tld-root .cb-ad-d {
  display: block; font-size: 12.5px; line-height: 1.7; color: #6c757d; margin: 4px 0 0;
}
.tld-root .cb-ad-cta {
  display: inline-block; margin-top: 8px;
  font-size: 13px; font-weight: 600; color: #a84700;
}

/* ---------- 首页左栏: 「最便宜的 .COM 价格」下方的 NameCheap 优惠广告 ----------
   位置由 tldsite.cheapest_blocks() 决定(紧贴 .COM 那块)。左栏只有 60% 宽,
   所以做成「标题 / 一行说明 / 两个动作」的横条, 不做大图 banner。
   左边那条 3px 橙线是为了在三个灰底 cheapest-block 之间一眼认出这是广告而不是
   又一个价格区块 —— 广告标识(cb-ad-tag)仍在标题行里, 不靠边框暗示。 */
.tld-root .cb-ncad {
  margin: 0 0 12px; padding: 12px 14px;
  border: 1px solid #ffe0c2; border-left: 3px solid #f67d17;
  border-radius: 8px; background: #fff8f0;
}
.tld-root .cb-ncad-t {
  margin: 0; font-size: 14px; font-weight: 600; color: #212529; line-height: 1.5;
}
.tld-root .cb-ncad-d {
  margin: 4px 0 0; font-size: 13px; line-height: 1.7; color: #495057;
}
.tld-root .cb-ncad-d b {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px; color: #a84700;
}
.tld-root .cb-ncad-act {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px;
}
/* 优惠码胶囊: 虚线框表示「这是一串可以抄走的东西」, 与价格区块里的实线卡片区分 */
.tld-root .cb-ncad-code {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 6px 0 10px;
  border: 1px dashed #f0c9a4; border-radius: 6px; background: #fff;
  font-size: 12.5px; color: #6c757d;
}
.tld-root .cb-ncad-code b {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px; letter-spacing: 0.02em; color: #a84700;
}
.tld-root .cb-ncad-go {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: 6px;
  background: #f67d17; color: #fff;
  font-size: 13px; font-weight: 600; text-decoration: none;
}
.tld-root .cb-ncad-go:hover { background: #de6c0d; color: #fff; text-decoration: none; }
/* 价格 span 会继承链接的白色 —— 全局 .tld-root .tld-px 是深色, 这里要压回来 */
.tld-root .cb-ncad-go .tld-px { color: #fff; font-weight: 600; }
.tld-root .cb-ncad-ar { font-size: 14px; line-height: 1; }
@media (max-width: 767px) {
  /* 两个动作在手机上各占一行也够宽, 但要抬到 40px 才好点 */
  .tld-root .cb-ncad-code, .tld-root .cb-ncad-go { min-height: 40px; }
}
/* 991px 以下两栏并排会让广告栏窄到 180px 左右, 图小字挤 —— 直接上下堆叠 */
@media (max-width: 991px) {
  .tld-root .tld-cb-split { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tld-root .tld-cb-right { position: static; }
}

/* ---------- 云厂商促销页(/cloud-deals/) ----------
   人民币口径, 与主站的美元比价表分开 —— 视觉上用橙色系区分。 */
.tld-root .cloud-lead { font-size: 15px; line-height: 1.8; color: #495057; margin: 10px 0 4px; }
.tld-root .cloud-lead strong { color: #a84700; }
.tld-root .cloud-meta { font-size: 13px; color: #6c757d; margin: 0 0 4px; }
.tld-root .cloud-note { font-size: 13px; color: #6c757d; margin: 0 0 10px; }
.tld-root .cloud-h3 {
  font-size: 15px; font-weight: 600; color: #212529;
  margin: 20px 0 8px; line-height: 1.4;
}
.tld-root .cloud-vendor { margin: 0 0 34px; }
.tld-root .cloud-vendor > h2 { margin-top: 26px; }

.tld-root .cloud-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px; margin: 0 0 6px;
}
.tld-root .cloud-card {
  display: block; padding: 11px 13px; border: 1px solid #ffd5ae;
  border-radius: 8px; background: #fffaf4; color: inherit; text-decoration: none;
}
.tld-root .cloud-card:hover { border-color: #f67d17; background: #fff3e8; text-decoration: none; }
.tld-root .cloud-card strong { display: block; color: #a84700; font-size: 14px; }
.tld-root .cloud-card span:not(.cloud-tag) { display: block; color: #6c757d; font-size: 13px; margin-top: 3px; }
.tld-root .cloud-tag {
  display: inline-block; font-size: 11px; line-height: 1; padding: 3px 7px;
  border-radius: 999px; border: 1px solid #f67d17; color: #a84700; margin-bottom: 6px;
}
.tld-root .cloud-tag-off { background: #fff3cd; border-color: #e8cf88; color: #8a6400; }

.tld-root .cloud-table { font-size: 13px; }
.tld-root .cloud-table th { white-space: nowrap; }
.tld-root .cloud-table td { vertical-align: middle; white-space: nowrap; }
.tld-root .cloud-table .cloud-tld { font-weight: 600; }
.tld-root .cloud-table .cloud-desc { color: #6c757d; font-weight: 400; white-space: normal; }
.tld-root .cloud-table .cloud-sub { color: #adb5bd; font-weight: 400; font-size: 12px; }
.tld-root .cloud-table .cloud-v { font-weight: 600; }
.tld-root .cloud-table .cloud-old { color: #adb5bd; margin-left: 6px; font-size: 12px; }
.tld-root .cloud-table .cloud-nil { color: #ced4da; }
.tld-root .cloud-details { margin: 14px 0 0; }
.tld-root .cloud-details > summary {
  cursor: pointer; padding: 9px 13px; border: 1px solid #ffd5ae; border-radius: 8px;
  background: #fffaf4; color: #a84700; font-size: 14px; font-weight: 600;
}
.tld-root .cloud-details > summary:hover { border-color: #f67d17; background: #fff3e8; }
.tld-root .cloud-details[open] > summary { margin-bottom: 10px; }
.tld-root .cloud-more { margin: 12px 0 0; font-size: 14px; }
.tld-root .cloud-more a { font-weight: 600; text-decoration: none; }
.tld-root .cloud-more a:hover { text-decoration: underline; }

/* ============================================================
   页眉: 左侧 logo + .COM + .CN, 右侧 Faqs + 数据 + 币种切换
   ============================================================ */
.tld-root .navbar .navbar-nav .nav-link.tld-brand {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.tld-root .navbar .navbar-nav .nav-link.tld-brand:hover { text-decoration: none; }
.tld-root .tld-logo { display: block; border-radius: 5px; flex: none; }
.tld-root .navbar-nav .nav-link { display: inline-flex; align-items: center; }

/* 页眉布局自己控 —— 不靠 Bootstrap 的 navbar 撑开。

   之前有两个坑:
   1) 两组菜单是 flex item(min-width:auto), 窄屏时互相挤, 宽度被压窄;
   2) 组内 ul 开了 flex-wrap:wrap, 一压窄菜单项就自己断行 ——
      320px 下「数据」被拆成「数」「据」两行, 币种切换还留在第一行,
      就是用户说的「货币切换与菜单项没在同一行」。

   现在: 组内 nowrap 不拆行, 组本身不压缩(flex:0 0 auto),
   外层容器可换行 —— 真放不下就整组换到下一行, 两组始终各自完整。 */
.tld-root .navbar .navbar-collapse {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 14px;
  width: 100%;
  min-width: 0;
}
.tld-root .navbar .navbar-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.tld-root .navbar .navbar-nav.tld-nav-right { margin-left: auto; }

/* ---------- 币种切换(导航右侧) ----------
   原始数据口径不变 —— 主表/详情页是 USD, 云厂商促销页是 CNY。
   这里只切**显示币种**, 换算发生在前端展示层, data-px/data-cur
   保留原始值, 切回原币种不会有精度损失。

   只有一个按钮: 显示**当前**币种的符号($ 或 ¥), 点一下切到另一个。
   不做成 $ / ¥ 两个并排 —— 页眉只留一个图标, 干净。

   尺寸按「跟菜单项同一行」倒推:
   菜单项 16px/line-height 1.5 → 行盒 24px, 上下 padding 8px → 整项 40px。
   这里按钮 16px/line-height 22px + 上下各 1px 边框 = 24px(border-box),
   正好等于菜单项的行盒高度, 居中后基线与 Faqs / 数据 完全重合。 */
.tld-root .tld-cur-item {
  display: inline-flex; align-items: center; margin-left: 8px;
}
.tld-root .tld-cur { display: inline-flex; }
.tld-root .tld-cur-btn {
  display: inline-block; cursor: pointer; text-align: center;
  border: 1px solid #f0c9a4; border-radius: 6px; background: #fff;
  font: 600 16px/22px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #a84700; padding: 0 12px; min-width: 30px;
}
.tld-root .tld-cur-btn:hover:not(.active) { background: #fff1e3; }
/* 折算成人民币时整块点亮 —— 一眼看出当前不是默认的美元口径 */
.tld-root .tld-cur-btn.active {
  background: #f67d17; border-color: #f67d17; color: #fff;
}
.tld-root .tld-cur-btn:focus-visible { outline: 2px solid #a84700; outline-offset: 1px; }

/* ---------- 优惠码复制按钮 ---------- */
.tld-root .tld-copy {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; padding: 0; margin-left: 4px;
  border: 1px solid #f0c9a4; border-radius: 4px; background: #fff;
  color: #a84700; cursor: pointer; vertical-align: -3px;
}
.tld-root .tld-copy:hover { background: #f67d17; border-color: #f67d17; color: #fff; }
.tld-root .tld-copy:focus-visible { outline: 2px solid #a84700; outline-offset: 1px; }
.tld-root .tld-copy.done { background: #1a7f37; border-color: #1a7f37; color: #fff; }
.tld-root .tld-copy svg { display: block; }

/* 价格元素本身不额外占位 —— 只是个带 data-px 的文本节点 */
.tld-root .tld-px { white-space: nowrap; }

/* 防闪烁: 价格先按服务端默认币种(美元)写死, 前端脚本就绪后
   才按用户选择改写。脚本没跑起来时不能让价格空白。
   @media (scripting: enabled) 不支持的老浏览器直接忽略整段。 */
@media (scripting: enabled) {
  html:not([data-cur-ready]) [data-px] { visibility: hidden; }
}

/* ---------- 域名后缀价格查询工具(/price/) ----------
   一个输入框 + 一张对比表: 首年优惠价 / 续费价 / 3 年总成本 / 5 年总成本。
   表格里的价格元素带 data-px/data-cur, 跟全站共用货币切换模块。 */
.tld-root .srch-lead { font-size: 15px; line-height: 1.8; color: #495057; margin: 0 0 14px; }
.tld-root .srch-lead b { color: #212529; }
.tld-root .srch-tool {
  background: #fff8f0; border: 1px solid #ffe0c2; border-radius: 8px;
  padding: 14px 16px 12px; margin: 0 0 18px;
}
.tld-root .srch-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tld-root .srch-lbl { font-size: 14px; font-weight: 600; color: #495057; flex: none; }
.tld-root .srch-input {
  flex: 1 1 220px; min-width: 0; height: 36px; font-size: 15px;
  border: 1px solid #f0c9a4; border-radius: 6px; padding: 0 12px; background: #fff;
  color: #212529;
}
.tld-root .srch-input:focus {
  outline: 0; border-color: #f67d17; box-shadow: 0 0 0 .2rem rgba(246,125,23,.18);
}
.tld-root .srch-btn {
  flex: none; height: 36px; padding: 0 20px; font-size: 15px; cursor: pointer;
  background: #f67d17; color: #fff; border: 1px solid #f67d17; border-radius: 6px;
}
.tld-root .srch-btn:hover { background: #d96a10; border-color: #d96a10; color: #fff; }
.tld-root .srch-btn:focus-visible { outline: 2px solid #a84700; outline-offset: 1px; }
.tld-root .srch-hint { font-size: 13px; color: #6c757d; margin: 8px 0 8px; line-height: 1.7; }
.tld-root .srch-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tld-root .srch-chips-lbl { font-size: 13px; color: #6c757d; margin-right: 2px; }
.tld-root .srch-chip {
  display: inline-block; font-size: 13px; line-height: 1.6; color: #a84700;
  background: #fff; border: 1px solid #f0c9a4; border-radius: 12px;
  padding: 1px 10px; text-decoration: none;
}
.tld-root .srch-chip:hover { background: #fff1e3; text-decoration: none; }
.tld-root .srch-out { margin-bottom: 6px; }
.tld-root .srch-meta { font-size: 13px; color: #6c757d; margin: 0 0 8px; line-height: 1.7; }
.tld-root .srch-table { font-size: 13px; min-width: 560px; margin-bottom: 6px; }
.tld-root .srch-table th, .tld-root .srch-table td { padding: 6px 8px; }
.tld-root .srch-table td { vertical-align: top; }
.tld-root .srch-table td:nth-child(n+2):nth-child(-n+5) { white-space: nowrap; }
.tld-root .srch-srt { cursor: pointer; user-select: none; white-space: nowrap; }
.tld-root .srch-srt:hover { color: #a84700; }
.tld-root .srch-srt-on { color: #a84700; }
.tld-root .srch-reg { font-weight: 500; }
.tld-root .srch-nil { color: #adb5bd; }
.tld-root .srch-lim, .tld-root .srch-reg-price { font-size: 12px; color: #6c757d; }
.tld-root .srch-note { font-size: 13px; color: #6c757d; margin: 8px 0 0; }
.tld-root .srch-more { font-size: 14px; margin: 8px 0 0; }
.tld-root .srch-more a { font-weight: 600; text-decoration: none; }
.tld-root .srch-more a:hover { text-decoration: underline; }
.tld-root .srch-empty {
  background: #f8f9fa; border: 1px dashed #dee2e6; border-radius: 8px;
  padding: 14px 16px; color: #6c757d; font-size: 14px;
}
.tld-root .srch-empty p { margin: 0 0 6px; }
.tld-root .srch-empty p:last-child { margin-bottom: 0; }
.tld-root .srch-links {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px 8px;
}
.tld-root .srch-links li { margin: 0; }
.tld-root .srch-links a {
  display: inline-block; font-size: 13px; line-height: 1.6; color: #a84700;
  background: #fff; border: 1px solid #f0c9a4; border-radius: 12px;
  padding: 1px 10px; text-decoration: none;
}
.tld-root .srch-links a:hover { background: #fff1e3; text-decoration: none; }
@media (max-width: 575px) {
  .tld-root .srch-form { gap: 8px; }
  .tld-root .srch-lbl { width: 100%; }
  .tld-root .srch-input { flex: 1 1 100%; }
  .tld-root .srch-btn { width: 100%; }
}

/* ---------- 域名搜索(/search/) ----------
   一个名字 × 62 个后缀: 每行 = 域名 + 占用预检徽章 + 价格 + 去注册。
   占用状态是前端 DoH 预检的结果, 四态配色要一眼分开, 但都别太抢眼 ——
   这页真正的主角是价格。
   窄屏(<640)退化成两行: 第一行域名+徽章, 第二行价格+链接。 */
.tld-root .find-form { margin: 0 0 8px; }
.tld-root .find-box { display: flex; gap: 8px; align-items: stretch; }
/* 输入区是 textarea(批量要能一行一个名字), 单行态靠 height 压成一行的高度,
   行高 22 + 上下内边距 18 + 边框 2 = 42, 与右侧按钮齐平 */
.tld-root .find-inp {
  flex: 1 1 auto; min-width: 0; height: 42px; font-size: 15px;
  border: 1px solid #f0c9a4; border-radius: 6px; padding: 9px 12px;
  background: #fff; color: #212529; line-height: 22px; resize: none;
}
/* 批量模式: 一行一个名字(最多 20 个), 框高到能看见自己在贴一列 —— 三行 */
.tld-root .find-inp.is-batch { height: 86px; overflow-y: auto; }
.tld-root .find-inp:focus {
  outline: 0; border-color: #f67d17; box-shadow: 0 0 0 .2rem rgba(246,125,23,.18);
}
.tld-root .find-go {
  flex: none; height: 42px; padding: 0 22px; font-size: 15px; cursor: pointer;
  background: #f67d17; color: #fff; border: 1px solid #f67d17; border-radius: 6px;
}
.tld-root .find-go:hover { background: #d96a10; border-color: #d96a10; }
.tld-root .find-go:focus-visible { outline: 2px solid #a84700; outline-offset: 1px; }
.tld-root .find-modes { display: inline-flex; margin: 8px 0 0; border: 1px solid #f0c9a4; border-radius: 6px; overflow: hidden; }
.tld-root .find-mode {
  font-size: 13px; line-height: 1; padding: 7px 14px; cursor: pointer;
  background: #fff; color: #a84700; border: 0; border-right: 1px solid #f0c9a4;
}
.tld-root .find-mode:last-child { border-right: 0; }
.tld-root .find-mode.on { background: #f67d17; color: #fff; }
.tld-root .find-hint { font-size: 13px; color: #6c757d; margin: 8px 0 14px; line-height: 1.7; }
.tld-root .find-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 8px 12px; margin: 0 0 10px;
  background: #fff8f0; border: 1px solid #ffe0c2; border-radius: 8px;
  font-size: 13px; color: #495057;
}
.tld-root .find-sort, .tld-root .find-check { display: inline-flex; align-items: center; gap: 6px; }
.tld-root .find-sort select {
  font-size: 13px; height: 28px; padding: 0 6px; border: 1px solid #f0c9a4;
  border-radius: 4px; background: #fff; color: #212529;
}
.tld-root .find-mini {
  font-size: 13px; padding: 4px 10px; cursor: pointer; background: #fff;
  color: #a84700; border: 1px solid #f0c9a4; border-radius: 4px;
}
.tld-root .find-mini:hover { background: #fff1e3; }
.tld-root .find-out { margin: 0 0 10px; }
.tld-root .find-meta { font-size: 13px; color: #6c757d; margin: 0 0 10px; line-height: 1.7; }
.tld-root .find-bad { font-size: 14px; color: #a84700; background: #fff8f0; border: 1px solid #ffe0c2; border-radius: 6px; padding: 10px 12px; margin: 0 0 10px; }
.tld-root .find-gname { font-size: 16px; font-weight: 600; color: #212529; margin: 18px 0 8px; display: flex; align-items: baseline; gap: 10px; }
.tld-root .find-solo { font-size: 12px; font-weight: 400; color: #a84700; }
.tld-root .find-h2 { font-size: 15px; font-weight: 600; color: #495057; margin: 18px 0 6px; }
.tld-root .find-top { border: 1px solid #f67d17; border-radius: 8px; background: #fff8f0; margin: 0 0 14px; overflow: hidden; }
.tld-root .ft-label { font-size: 12px; font-weight: 600; color: #a84700; padding: 6px 12px 0; letter-spacing: .04em; }
.tld-root .find-top .find-row { border-bottom: 0; background: transparent; }
.tld-root .find-list { border: 1px solid #f1e3d5; border-radius: 8px; overflow: hidden; }
.tld-root .find-row {
  display: grid; align-items: center; gap: 4px 14px;
  grid-template-columns: minmax(0, 1fr) auto minmax(150px, auto) auto;
  padding: 9px 12px; border-bottom: 1px solid #f6ece1; background: #fff;
}
.tld-root .find-row:last-child { border-bottom: 0; }
.tld-root .find-row.pin { background: #fff5ea; box-shadow: inset 3px 0 0 #f67d17; }
.tld-root .fr-name { font-size: 15px; color: #212529; overflow-wrap: anywhere; }
.tld-root .fr-name b { font-weight: 600; }
.tld-root .fr-name i { font-style: normal; color: #a84700; font-weight: 600; }
.tld-root .fr-badge {
  font-size: 12px; line-height: 1.5; padding: 2px 9px; cursor: pointer;
  border-radius: 11px; border: 1px solid #e3dbd3; background: #f7f4f1; color: #6c757d;
  white-space: nowrap;
}
.tld-root .st-f .fr-badge { border-color: #b7e0c4; background: #eaf7ee; color: #1a7f37; }
.tld-root .st-b .fr-badge { border-color: #e0dcd8; background: #f2f0ee; color: #8a8f94; }
.tld-root .st-u .fr-badge { border-color: #f0dcae; background: #fdf6e6; color: #96700a; }
.tld-root .st-w .fr-badge { border-color: #f0dcae; background: #fdf6e6; color: #96700a; opacity: .8; }
.tld-root .st-b .fr-name { color: #8a8f94; }
.tld-root .st-b .fr-price { opacity: .55; }
.tld-root .fr-price { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-variant-numeric: tabular-nums; }
.tld-root .fr-first { font-size: 15px; font-weight: 600; color: #212529; }
.tld-root .fr-sub { font-size: 12px; color: #6c757d; white-space: nowrap; }
.tld-root .fr-alt { font-size: 11px; color: #96700a; white-space: nowrap; }
.tld-root .fr-act { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.tld-root .fr-go {
  font-size: 13px; line-height: 1.4; padding: 4px 12px; border-radius: 4px;
  background: #f67d17; color: #fff; border: 1px solid #f67d17; text-decoration: none;
  white-space: nowrap;
}
.tld-root .fr-go:hover { background: #d96a10; border-color: #d96a10; color: #fff; text-decoration: none; }
/* 已被占用的域名没有「去注册」了, 这里是 WHOIS 入口 —— 用描边而不是实心橙:
   实心橙在这一页的语义是「付费行动」(联盟注册商), WHOIS 只是免费查询,
   两者长得一样会让人以为点过去要下单。 */
.tld-root .fr-whois { background: #fff; color: #a84700; border-color: #f0c9a4; }
.tld-root .fr-whois:hover { background: #fff5ec; border-color: #f67d17; color: #a84700; text-decoration: none; }
.tld-root .fr-cmp { font-size: 12px; color: #a84700; white-space: nowrap; }
.tld-root .find-default { overflow-x: auto; }
.tld-root .find-note { font-size: 13px; color: #6c757d; margin: 0 0 10px; line-height: 1.7; }
.tld-root .find-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 6px; }
.tld-root .find-scroll .find-table { margin-bottom: 0; }
.tld-root .find-table { width: 100%; font-size: 13px; border-collapse: collapse; margin-bottom: 6px; }
.tld-root .find-table th, .tld-root .find-table td { padding: 6px 8px; border-bottom: 1px solid #f6ece1; text-align: left; }
.tld-root .find-table th { font-weight: 600; color: #495057; background: #fdf8f3; white-space: nowrap; }
.tld-root .find-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.tld-root .find-table tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 640px) {
  .tld-root .find-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name state" "price act";
    gap: 2px 10px;
  }
  .tld-root .fr-name { grid-area: name; }
  .tld-root .fr-state { grid-area: state; justify-self: end; }
  .tld-root .fr-price { grid-area: price; align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .tld-root .fr-act { grid-area: act; justify-content: flex-end; }
  .tld-root .find-inp { height: 42px; }
  .tld-root .find-inp.is-batch { height: 80px; }
  .tld-root .find-go { height: 42px; padding: 0 16px; }
}
@media (max-width: 400px) {
  .tld-root .find-box { flex-wrap: wrap; }
  .tld-root .find-inp { flex: 1 1 100%; }
  .tld-root .find-go { width: 100%; }
}

/* 首页搜索框: 输入的不是后缀而像个名字时, 给一条去 /search/ 的引导。
   以前这种输入只会筛出空表, 用户不知道还能去哪查。 */
.tld-root .home-name-hint {
  margin: 6px 0 0; padding: 8px 12px; font-size: 13px; line-height: 1.7;
  color: #495057; background: #fff8f0;
  border: 1px solid #ffe0c2; border-radius: 6px;
}
.tld-root .home-name-hint b { color: #212529; }
.tld-root .home-name-hint a { color: #a84700; font-weight: 600; }

/* ---------- 页眉右组 5 项 + 币种(价格/搜索/工具/数据/Faq/币种) ----------
   右组本身 flex:0 0 auto + 组内 nowrap(见上), 所以放不下时是**整组**换到第二行,
   不会把「数据」拆成「数」「据」。375px 下整组约 250px, 换到第二行放得下;
   320px 极窄时才允许组内换行, 并把间距收紧。 */
.tld-root .navbar .navbar-nav .nav-link { white-space: nowrap; }
@media (max-width: 575px) {
  .tld-root .navbar .navbar-collapse { gap: 2px 8px; }
  .tld-root .navbar .tld-nav-right .nav-link { padding-left: 6px; padding-right: 6px; font-size: 14px; }
  .tld-root .navbar .tld-nav-left .nav-link { padding-left: 6px; padding-right: 6px; }
  .tld-root .tld-cur-item { margin-left: 4px; }
}
@media (max-width: 380px) {
  .tld-root .navbar .navbar-nav.tld-nav-right {
    flex-wrap: wrap; justify-content: flex-end; row-gap: 2px;
  }
  .tld-root .navbar .tld-nav-right .nav-link { padding-left: 5px; padding-right: 5px; font-size: 13px; }
  .tld-root .tld-cur-item { margin-left: 2px; }
}

/* ---------- 工具中心(/tools/) ----------
   三张卡片并排(760px 列下每张约 240px), 窄屏堆成一列。
   卡片不是装饰: 每张都说清「什么时候用它」+「它给你什么」, 页尾再用一条
   四步流程把三个工具串起来 —— 用户从任何一个工具页进来都能看懂全貌。 */
.tld-root .tool-lead {
  font-size: 15px; line-height: 1.85; color: #495057; margin: 0 0 14px;
}
.tld-root .tool-lead b { color: #212529; }
/* 固定 2 列: 卡片上有「什么时候用它 / 它给你什么 / 三条要点」三段文字,
   3 列时每张只剩 ~240px、句子被折成五六行, 读起来像清单; 2 列(~370px)才读得顺。
   minmax(0,1fr) 是必须的 —— 用 1fr 时长 URL / 长单词会把列顶宽, 撑破 760px 容器。
   断点定在 767: 768 视口下列宽只剩 ~330px, 两组文字还能读, 手机才降到 1 列。 */
.tld-root .tool-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; margin: 0 0 22px;
}
@media (max-width: 575px) {
  .tld-root .tool-grid { grid-template-columns: minmax(0, 1fr); }
}
/* 分组: 一张卡片只回答一个处境, 15 张摊平会让人不知道从哪看起 —— 按「你手上有什么」
   分五组, 每组一个小标题 + 一句这一组解决什么。 */
.tld-root .tool-group { margin: 0 0 26px; }
.tld-root .tool-group-h {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 600; line-height: 1.4;
  color: #212529; margin: 0 0 4px;
}
.tld-root .tool-group-n {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff8f0; border: 1px solid #ffe0c2; color: #a84700;
  font-size: 12px; font-weight: 700;
}
.tld-root .tool-group-d {
  font-size: 13px; line-height: 1.75; color: #6c757d; margin: 0 0 12px;
}
/* 组内的栅格不再自带下边距, 否则 22px(栅格) + 26px(组) = 48px, 组间空得断开 */
.tld-root .tool-group .tool-grid { margin-bottom: 0; }
.tld-root .tool-card {
  display: flex; flex-direction: column;
  padding: 14px 16px 12px; background: #fff;
  border: 1px solid #ffe0c2; border-radius: 10px;
}
.tld-root .tool-card:hover { border-color: #f67d17; }
/* 图标与标题「首行」对齐: 标题换行时不能把图标拉到两行中间(居中对齐的老问题)。
   选择器必须带 .tool-card(0,3,0) —— 卡片整体渲染在 <div class="tld-read"> 里,
   而上面「内容页」那段有 .tld-root .tld-read h3 { font-size:15px; margin:16px 0 4px }
   与 .tld-root .tld-read p / ul 三条(0,3,0 / 0,2,1), 都压得过 .tld-root .tc-*(0,2,0)。
   实测: 标题拿到 15px + margin-top:16px + line-height 21px, 图标却在 flex 行首,
   于是图标比标题高 13px、head 被撑到 41px —— 这就是「图标浮在标题上方」的真因。 */
.tld-root .tool-card .tc-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
/* 20px 图标 vs 22.4px 行盒: 差 2.4px, 上边留 1px 让两者中心线对齐(不是 top 对齐) */
.tld-root .tool-card .tc-ico { width: 20px; height: 20px; flex: none; color: #f67d17; margin-top: 1px; }
/* 品牌图(intoDNS): 原图 240×155 是横版字标, 按高度缩放, 宽度自动;
   必须写在 .tc-ico 之后 —— 同特异性, 后加载者胜, 才能盖掉 width:20px */
.tld-root .tool-card .tc-ico-img { width: auto; height: 20px; margin-top: 0; }
.tld-root .tool-card .tc-title { font-size: 16px; font-weight: 600; line-height: 1.4; margin: 0; color: #212529; }
.tld-root .tool-card .tc-when { font-size: 13px; line-height: 1.7; color: #a84700; margin: 0 0 8px; }
.tld-root .tool-card .tc-desc {
  font-size: 13px; line-height: 1.75; color: #495057;
  margin: 0 0 8px; flex: 1 1 auto;
}
.tld-root .tool-card .tc-list {
  margin: 0 0 10px; padding-left: 18px;
  font-size: 12.5px; line-height: 1.8; color: #6c757d;
}
.tld-root .tc-go {
  align-self: flex-start; font-size: 13px; font-weight: 600;
  color: #a84700; background: #fff8f0;
  border: 1px solid #f0c9a4; border-radius: 6px;
  padding: 5px 12px; text-decoration: none;
}
.tld-root .tc-go:hover { background: #fff1e3; text-decoration: none; }
.tld-root .tool-flow { padding-left: 22px; font-size: 14px; line-height: 1.9; color: #495057; }
.tld-root .tool-flow li { margin-bottom: 6px; }
.tld-root .tool-note {
  font-size: 13px; line-height: 1.8; color: #6c757d;
  background: #fff8f0; border-left: 3px solid #f67d17;
  padding: 8px 12px; border-radius: 0 6px 6px 0;
}
@media (max-width: 575px) {
  .tld-root .tool-card { padding: 12px 14px 10px; }
  .tld-root .tool-flow { padding-left: 18px; font-size: 13.5px; }
}

/* ==========================================================================
   工具页骨架(.tl-*) —— 12 个工具共用, 说明见 agent/leh/tools/shell.py
   --------------------------------------------------------------------------
   结构: hero(图标+副标题+统计条) / 工具卡 / 结果区 / 内容区 / FAQ / 信任脚注。
   这些规则一律带 .tld-root 前缀: 引入的 tld.css 排在 site.css 之后,
   同权重它会赢(踩过: 面包屑被推右 32px)。
   ========================================================================== */
.tld-root .tl-hero {
  margin: 2px 0 16px; padding: 14px 16px 12px;
  background: #fff8f0; border: 1px solid #ffe0c2; border-radius: 10px;
}
.tld-root .tl-leadrow { display: flex; align-items: flex-start; gap: 10px; }
.tld-root .tl-ico { width: 26px; height: 26px; flex: none; color: #f67d17; margin-top: 2px; }
.tld-root .tl-ico-sm { width: 18px; height: 18px; flex: none; color: #f67d17; }
.tld-root .tl-sub { margin: 0; font-size: 14.5px; line-height: 1.8; color: #495057; }
.tld-root .tl-sub b { color: #212529; }

/* 统计条: 对齐竞品结果页顶部的 4 个数据块, 但用同一套浅 tint, 不做四色。
   列数**写死 4 列**, 不用 auto-fit: 容器宽度落在 306~462px 之间时 auto-fit 只排得下
   2 列, 576~900 那段会排成「3 列 + 1 个落单」, 看起来就像统计条坏了。用户要的是
   「一行四个」, 所以列数固定, 放不下的档位交给下面的媒体查询改成 2×2。
   minmax(0, 1fr) 而不是 1fr: 长值(一串 IP)不会把列撑破造成横向溢出。 */
.tld-root .tl-chips {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; margin-top: 12px;
}
@media (max-width: 639px) {
  .tld-root .tl-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tld-root .tl-chip {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  padding: 8px 10px; background: #fff;
  border: 1px solid #ffe0c2; border-radius: 8px;
}
.tld-root .tl-chip-k { font-size: 11.5px; color: #6c757d; letter-spacing: .02em; }
.tld-root .tl-chip-v { font-size: 13.5px; font-weight: 600; color: #212529; overflow-wrap: anywhere; }

/* ---------- 工具卡 ---------- */
.tld-root .tl-form { margin: 0 0 8px; }
.tld-root .tl-label { display: block; font-size: 12.5px; color: #6c757d; margin-bottom: 6px; }
.tld-root .tl-box { display: flex; gap: 8px; }
.tld-root .tl-inp {
  flex: 1 1 auto; min-width: 0; height: 42px; padding: 0 12px;
  font-size: 15px; color: #212529; background: #fff;
  border: 1px solid #ced4da; border-radius: 8px;
}
.tld-root .tl-inp:focus {
  outline: none; border-color: #f67d17;
  box-shadow: 0 0 0 3px rgba(246, 125, 23, .18);
}
.tld-root .tl-go {
  flex: none; height: 42px; padding: 0 20px;
  font-size: 15px; font-weight: 600; color: #fff;
  background: #f67d17; border: 1px solid #f67d17; border-radius: 8px;
  cursor: pointer;
}
.tld-root .tl-go:hover { background: #e06f0f; border-color: #e06f0f; }
.tld-root .tl-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tld-root .tl-preset {
  font-size: 12.5px; color: #a84700; background: #fff8f0;
  border: 1px solid #f0c9a4; border-radius: 999px;
  padding: 3px 10px; cursor: pointer;
}
.tld-root .tl-preset:hover { background: #fff1e3; }
.tld-root .tl-hint { font-size: 12.5px; line-height: 1.75; color: #6c757d; margin: 0 0 12px; }
.tld-root .tl-mini {
  font-size: 13px; color: #a84700; background: #fff8f0;
  border: 1px solid #f0c9a4; border-radius: 6px; padding: 4px 12px; cursor: pointer;
}
.tld-root .tl-mini:hover { background: #fff1e3; }

/* ---------- 子网计算器: 内联控件(拆分层级 / 按主机数反推) ---------- */
/* 这两个控件长在结果区里, 不是主表单 —— 用 .tl-inline 而不是 .tl-box,
   免得抢主输入的视觉权重。窄屏整体换行, 不缩字号。 */
.tld-root .tl-inline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px;
}
.tld-root .tl-inline .tl-label { display: inline; margin: 0; }
.tld-root .tl-sel, .tld-root .tl-inp-sm {
  height: 32px; padding: 0 8px; font-size: 13px; color: #212529;
  background: #fff; border: 1px solid #ced4da; border-radius: 6px;
}
.tld-root .tl-inp-sm { width: 104px; }
.tld-root .tl-sel:focus, .tld-root .tl-inp-sm:focus {
  outline: none; border-color: #f67d17;
  box-shadow: 0 0 0 3px rgba(246, 125, 23, .18);
}

/* 二进制视图: 网络位用品牌橙加粗, 主机位走灰 —— 一眼看出从哪里切开。
   128 位(IPv6)靠 flex-wrap 折行, 不横向滚动。 */
.tld-root .tl-bin {
  display: flex; flex-wrap: wrap; gap: 6px 12px;
  padding: 10px 12px; margin: 0 0 8px;
  background: #fbfcfd; border: 1px solid #e9ecef; border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; line-height: 1.6; overflow-wrap: anywhere;
}
.tld-root .tl-bin .b-o { white-space: nowrap; letter-spacing: .08em; }
.tld-root .tl-bin .b-net { color: #a84700; font-weight: 600; }
.tld-root .tl-bin .b-host { color: #8a94a6; }
.tld-root .tl-bin-legend { margin: 2px 0 2px; }
.tld-root .tl-bin-legend .b-net { color: #a84700; }
.tld-root .tl-bin-legend .b-host { color: #8a94a6; }

/* ---------- 结果区 ---------- */
.tld-root .tl-out:empty { display: none; }
.tld-root .tl-res {
  margin: 0 0 16px; padding: 12px 14px; background: #fff;
  border: 1px solid #e9ecef; border-radius: 10px;
}
.tld-root .tl-reshead {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid #f1f3f5;
}
.tld-root .tl-resname { font-size: 15px; font-weight: 600; color: #212529; }
.tld-root .tl-resmeta { font-size: 12px; }
.tld-root .tl-dim { color: #6c757d; font-size: 12.5px; }
.tld-root .tl-res-msg p { margin: 8px 0 10px; font-size: 13.5px; line-height: 1.85; color: #495057; }
.tld-root .tl-msg-bad { margin: 0; font-size: 13.5px; color: #a84700; }

.tld-root .tl-kv { display: flex; flex-direction: column; }
.tld-root .tl-kvrow {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  padding: 7px 0; border-bottom: 1px dashed #f1f3f5;
}
.tld-root .tl-kvrow:last-child { border-bottom: 0; }
.tld-root .tl-kvk { flex: 0 0 88px; font-size: 12.5px; color: #6c757d; }
.tld-root .tl-kvv {
  flex: 1 1 200px; min-width: 0;
  font-size: 13.5px; line-height: 1.7; color: #212529;
  word-break: break-word;
}
.tld-root .tl-kvv code, .tld-root .tl-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; color: #a84700; background: #fff8f0;
  padding: 1px 5px; border-radius: 4px;
}
.tld-root .tl-copy {
  flex: none; font-size: 11.5px; color: #6c757d; background: #fff;
  border: 1px solid #dee2e6; border-radius: 5px;
  padding: 1px 7px; cursor: pointer;
}
.tld-root .tl-copy:hover { color: #a84700; border-color: #f0c9a4; background: #fff8f0; }

/* 状态徽章 —— 四档语义 + 两档过程态 */
.tld-root .tl-badge {
  display: inline-block; font-size: 12px; line-height: 1.6;
  padding: 1px 8px; border-radius: 999px; border: 1px solid transparent;
  white-space: nowrap;
}
.tld-root .tl-b-ok { color: #1a6b46; background: #e8f6ef; border-color: #bfe3cf; }
.tld-root .tl-b-lock { color: #495057; background: #f1f3f5; border-color: #dee2e6; }
.tld-root .tl-b-warn { color: #a84700; background: #fff4e5; border-color: #ffd5ae; }
.tld-root .tl-b-bad { color: #a4141b; background: #fdecec; border-color: #f5c2c0; }
.tld-root .tl-b-idle { color: #6c757d; background: #f8f9fa; border-color: #e9ecef; }
/* 「信息」态: 只陈述不加判断的条目(前缀规模、持有者、注册时间) —— 之前没定义,
   落到 .tl-badge 的默认蓝灰, 与「通过」的绿在灰度下难区分 */
.tld-root .tl-b-info { color: #495057; background: #f4f6f8; border-color: #dfe3e8; }
.tld-root .tl-b-wait { color: #a84700; background: #fff8f0; border-color: #ffe0c2; }
/* 表格单元格里的徽章必须能折行: 表格是 table-layout:fixed, 一个 nowrap 的长徽章
   不会缩也不会折, 直接把整张表撑宽(实测 375 下 geo 表被「这个 IP 没有位置信息」
   撑出 32px、320 下 53px 的横向滚动)。 */
.tld-root .tl-table .tl-badge { white-space: normal; }

.tld-root .tl-raw { margin: 10px 0 0; }
.tld-root .tl-raw summary {
  font-size: 12.5px; color: #a84700; cursor: pointer; user-select: none;
}
.tld-root .tl-raw pre {
  margin: 8px 0 0; padding: 10px 12px; max-height: 320px; overflow: auto;
  font-size: 11.5px; line-height: 1.6; color: #495057;
  background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 8px;
}

/* 加载骨架 */
.tld-root .tl-skel { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 4px; }
.tld-root .tl-skel span {
  display: block; height: 12px; border-radius: 4px;
  background: linear-gradient(90deg, #f1f3f5 25%, #e9ecef 37%, #f1f3f5 63%);
  background-size: 400% 100%;
  animation: tl-skel 1.4s ease infinite;
}
.tld-root .tl-skel span:nth-child(2) { width: 82%; }
.tld-root .tl-skel span:nth-child(3) { width: 64%; }
.tld-root .tl-skel span:nth-child(4) { width: 74%; }
@keyframes tl-skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* 价格联动卡 —— 竞品都没有, 是本站的差异化 */
.tld-root .tl-price {
  margin: 12px 0 0; padding: 10px 12px;
  background: #fff8f0; border: 1px solid #ffe0c2; border-radius: 8px;
}
.tld-root .tl-price-h { font-size: 12.5px; color: #6c757d; margin-bottom: 6px; }
.tld-root .tl-price-b {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  font-size: 13px; color: #212529;
}
.tld-root .tl-price-dom { font-weight: 600; color: #a84700; }
.tld-root .tl-price-by { font-size: 12.5px; color: #495057; }
.tld-root .tl-price-k { font-size: 13px; }
.tld-root .tl-price-go {
  font-size: 12.5px; font-weight: 600; color: #a84700; text-decoration: none;
  border-bottom: 1px solid #f0c9a4;
}
.tld-root .tl-price-go:hover { color: #8a3d00; text-decoration: none; }
.tld-root .tl-price-none { margin: 0; font-size: 13px; color: #495057; }
.tld-root .tl-price-none a { color: #a84700; font-weight: 600; }

/* 示例快照 —— 无 JS 时给抓取器和首访用户看结果长什么样 */
.tld-root .tl-sample {
  margin: 0 0 22px; padding: 12px 14px;
  background: #fbfcfd; border: 1px dashed #ced4da; border-radius: 10px;
}
.tld-root .tl-sample-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid #f1f3f5;
}
.tld-root .tl-sample-tag {
  font-size: 11.5px; color: #fff; background: #868e96;
  padding: 1px 8px; border-radius: 999px;
}
/* 示例快照里的 IP 本身要一眼能看到, 用等宽 + 品牌色 */
.tld-root .tl-sample-ip {
  font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #a84700;
}
.tld-root .tl-sample-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.75; color: #6c757d; }
.tld-root .tl-sample-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; color: #a84700;
}

/* ---------- 内容区 ---------- */
.tld-root .tl-steps { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 18px; }
.tld-root .tl-step {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; background: #fff;
  border: 1px solid #e9ecef; border-radius: 8px;
}
.tld-root .tl-step-n {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  font-size: 12px; font-weight: 700; line-height: 22px; text-align: center;
  color: #fff; background: #f67d17;
}
.tld-root .tl-step p { margin: 0; font-size: 13.5px; line-height: 1.75; color: #495057; }

.tld-root .tl-scroll { overflow-x: auto; margin: 0 0 14px; }
/* 由 tld-dns.js 的 markScroll() 在「表格确实比可视区宽」时插到表下面, 不溢出则不存在。
   贴在表格下沿, 右对齐, 用次级色, 不抢正文。 */
.tld-root .tl-scroll-hint {
  margin: -8px 0 14px; font-size: 12.5px; line-height: 1.6;
  color: #8a6a52; text-align: right;
}
/* 必须用固定布局: auto 布局会按「最大内容宽度」把表撑到 1200px 以上 —— 比
   760px 的列还宽, 桌面端要横向拖动才能看全, 这是量出来才发现的
   (table-layout:auto -> 1216px, 改成 fixed -> 736px)。 */
.tld-root .tl-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  table-layout: fixed; min-width: 460px;
}
/* style.css:410 有一条全局 `.tld-root table { white-space: nowrap }`(比价表靠它防挤),
   它会连带把 .tl-table 的每个单元格也锁成不换行 —— overflow-wrap 因此失效,
   长说明文字把 <td> 内部撑宽(td scrollWidth 337 vs clientWidth 677), .tl-scroll 就冒出横向滚动条。
   这里必须显式改回 normal, 只有表头与字段名保留 nowrap。 */
.tld-root .tl-table th, .tld-root .tl-table td { overflow-wrap: anywhere; white-space: normal; }
/* 两列表: 原始记录(项目 / 值)。值里可能是一整条 SPF, 必须允许任意断行 */
.tld-root .tl-table-2 th:nth-child(1), .tld-root .tl-table-2 td:nth-child(1) { width: 34%; }
.tld-root .tl-table-2 th:nth-child(2), .tld-root .tl-table-2 td:nth-child(2) { width: 66%; }
.tld-root .tl-table-3 th:nth-child(1), .tld-root .tl-table-3 td:nth-child(1) { width: 20%; }
.tld-root .tl-table-3 th:nth-child(2), .tld-root .tl-table-3 td:nth-child(2) { width: 46%; }
.tld-root .tl-table-3 th:nth-child(3), .tld-root .tl-table-3 td:nth-child(3) { width: 34%; }
.tld-root .tl-table-epp th:nth-child(1), .tld-root .tl-table-epp td:nth-child(1) { width: 30%; }
.tld-root .tl-table-epp th:nth-child(2), .tld-root .tl-table-epp td:nth-child(2) { width: 22%; }
.tld-root .tl-table-epp th:nth-child(3), .tld-root .tl-table-epp td:nth-child(3) { width: 48%; }
.tld-root .tl-table th, .tld-root .tl-table td {
  padding: 6px 10px; text-align: left; vertical-align: top;
  border-bottom: 1px solid #f1f3f5; line-height: 1.6;
}
.tld-root .tl-table thead th {
  font-size: 12px; font-weight: 600; color: #6c757d;
  background: #fbfcfd; border-bottom: 1px solid #e9ecef; white-space: nowrap;
}
.tld-root .tl-table code { font-size: 12px; color: #a84700; }
/* td 上的 nowrap(tl-table-3 首列字段名)会连带锁住里面的 <code>, 于是一个域名
   (cloudflare.com/cdn-cgi/trace)就把整张表撑宽 100px+。折行能力交还给 <code>:
   它装的永远是代码串/主机名, 短字段名本来就折不到。 */
.tld-root .tl-table td code { white-space: normal; }
/* style.css:55 给所有 <code> 写了 word-wrap:break-word(等价 overflow-wrap:break-word),
   它是直接声明, 会盖掉从 td 继承来的 anywhere —— 而 break-word 不参与「最小内容宽度」
   计算, 于是 DNSKEY / base64 / 一整条 SPF 这类无空格长串仍然按原长度占位, 记录表被
   撑出横向滚动(实测 375px over=28, 320px over=82)。这里在 code 上直接写回 anywhere
   (特异性 0,3,1 压过 0,1,1): 只在装不下时断行, 不是 break-all 那种逐字符硬拆。 */
.tld-root .tl-table td code { overflow-wrap: anywhere; }
/* 首列的 nowrap 只对「ASN / TTL / 状态」这种短字段名安全; 「管理员邮箱（RNAME）」
   在 20% 列宽下会溢出 13px 压到相邻列(实测 1280 的 DNS 查询页 SOA 表)。
   短字段名本来也不会折行, 所以这里放开折行是净收益。 */
.tld-root .tl-table-3 td:first-child { white-space: normal; }

/* 四列表: 检查项说明表(4 列等宽)与三家解析器对比表(解析器/状态/结果/耗时) */
.tld-root .tl-table-4 th:nth-child(1), .tld-root .tl-table-4 td:nth-child(1) { width: 22%; }
.tld-root .tl-table-4 th:nth-child(2), .tld-root .tl-table-4 td:nth-child(2) { width: 24%; }
.tld-root .tl-table-4 th:nth-child(3), .tld-root .tl-table-4 td:nth-child(3) { width: 22%; }
.tld-root .tl-table-4 th:nth-child(4), .tld-root .tl-table-4 td:nth-child(4) { width: 32%; }
.tld-root .tl-table-prop th:nth-child(1), .tld-root .tl-table-prop td:nth-child(1) { width: 25%; }
.tld-root .tl-table-prop th:nth-child(2), .tld-root .tl-table-prop td:nth-child(2) { width: 12%; }
.tld-root .tl-table-prop th:nth-child(3), .tld-root .tl-table-prop td:nth-child(3) { width: 45%; }
.tld-root .tl-table-prop th:nth-child(4), .tld-root .tl-table-prop td:nth-child(4) { width: 18%; }

/* DNS 传播检测的两张表 —— 都不能借用 tl-table-4(22/24/22/32)。

   1) 明细表 tl-table-lat: 类型 / 解析器 / 看到的值 / 耗时。
      第四列装的是「12 ms」「—」这种三四个字符, 拿到 32%(实测 226px)后右边空掉
      一大片, 而真正长的「看到的值」(一整条 TXT、一串 NS)只分到 22%(155px),
      被折成好几行。按内容重分: 值 56%, 耗时 14% 且右对齐(right 才读得出量级)。
   2) 矩阵表 tl-table-mx: 类型 / 3 家解析器。
      等分 20% 时第一列只放「TXT」也得占 152px, 解析器列(名字 + IP 两行)反而偏窄。 */
.tld-root .tl-table-lat th:nth-child(1), .tld-root .tl-table-lat td:nth-child(1) { width: 12%; }
.tld-root .tl-table-lat th:nth-child(2), .tld-root .tl-table-lat td:nth-child(2) { width: 18%; }
.tld-root .tl-table-lat th:nth-child(3), .tld-root .tl-table-lat td:nth-child(3) { width: 56%; }
.tld-root .tl-table-lat th:nth-child(4), .tld-root .tl-table-lat td:nth-child(4) { width: 14%; }
.tld-root .tl-table-lat th:nth-child(4), .tld-root .tl-table-lat td:nth-child(4) { text-align: right; }
.tld-root .tl-table-lat td:nth-child(1),
.tld-root .tl-table-lat td:nth-child(4) { white-space: nowrap; }
.tld-root .tl-table-mx th:nth-child(1), .tld-root .tl-table-mx td:nth-child(1) { width: 13%; }
.tld-root .tl-table-mx th:nth-child(2), .tld-root .tl-table-mx td:nth-child(2) { width: 29%; }
.tld-root .tl-table-mx th:nth-child(3), .tld-root .tl-table-mx td:nth-child(3) { width: 29%; }
.tld-root .tl-table-mx th:nth-child(4), .tld-root .tl-table-mx td:nth-child(4) { width: 29%; }
.tld-root .tl-table-mx td:nth-child(1) { white-space: nowrap; }

/* 注册商对比表: 6 列(后缀 / A 首年 / B 首年 / A 三年 / B 三年 / 三年差额)。
   不给 min-width 时 760px 列宽下能塞进 6 列, 但 375px 一定溢出 —— 交给下面的媒体查询横滑。 */
.tld-root .tl-table-cmp th:nth-child(1), .tld-root .tl-table-cmp td:nth-child(1) { width: 12%; }
.tld-root .tl-table-cmp th:nth-child(2), .tld-root .tl-table-cmp td:nth-child(2) { width: 16%; }
.tld-root .tl-table-cmp th:nth-child(3), .tld-root .tl-table-cmp td:nth-child(3) { width: 16%; }
.tld-root .tl-table-cmp th:nth-child(4), .tld-root .tl-table-cmp td:nth-child(4) { width: 16%; }
.tld-root .tl-table-cmp th:nth-child(5), .tld-root .tl-table-cmp td:nth-child(5) { width: 16%; }
.tld-root .tl-table-cmp th:nth-child(6), .tld-root .tl-table-cmp td:nth-child(6) { width: 24%; }

/* 记录清单表 —— 「名称 / TTL / 值」这种三段式(DNS 记录、原始返回)。
   不能复用 tl-table-3: 那一套是「字段 / 含义 / 备注」, 第二列本来该宽;
   搬到记录表上就成了「一个三字符的 TTL 占掉 46%」—— 实测 486px 的表里
   TTL 列拿到 223px, 而真正长的解析结果挤在 165px 里换行。 */
.tld-root .tl-table-rec th:nth-child(1), .tld-root .tl-table-rec td:nth-child(1) { width: 30%; }
.tld-root .tl-table-rec th:nth-child(2), .tld-root .tl-table-rec td:nth-child(2) { width: 9%; }
.tld-root .tl-table-rec th:nth-child(3), .tld-root .tl-table-rec td:nth-child(3) { width: 61%; }
.tld-root .tl-table-rec td:first-child { white-space: nowrap; }
.tld-root .tl-table-rec td:nth-child(2) { white-space: nowrap; color: #6c757d; }

/* 地理对照表 —— 数据源 / 国家 / 城市 / 经纬度与备注。
   tl-table-4 的四等分把最长的第 4 列压到 32%(实测 155px), 一段坐标 + 备注被折成
   十几行、单行高达 376px。这里按内容长度重分, 第 4 列给到 51%。
   第 1 列 19% 时「ipwho.is」这类数据源名(nowrap)会溢出 3~5px 压到相邻列上,
   所以给到 22% —— 这一列的下限是「最长数据源名」。 */
.tld-root .tl-table-geo th:nth-child(1), .tld-root .tl-table-geo td:nth-child(1) { width: 22%; }
.tld-root .tl-table-geo th:nth-child(2), .tld-root .tl-table-geo td:nth-child(2) { width: 12%; }
.tld-root .tl-table-geo th:nth-child(3), .tld-root .tl-table-geo td:nth-child(3) { width: 15%; }
.tld-root .tl-table-geo th:nth-child(4), .tld-root .tl-table-geo td:nth-child(4) { width: 51%; }
.tld-root .tl-table-geo td:nth-child(1) { white-space: nowrap; }

/* 注册商排行表 5 列: # / 注册商 / 覆盖热门后缀 / 三年平均 / 最便宜的后缀数。
   这张表原先是借用 tl-table-4(四列 22/24/22/32) 的, 但行里有 5 格 ——
   第 5 格没有列宽, 在 table-layout:fixed 下被压成一条竖线(数字竖排)。
   列宽按内容给: 注册商名字最长、覆盖数是「25 / 30」这种短串。 */
.tld-root .tl-table-rank th:nth-child(1), .tld-root .tl-table-rank td:nth-child(1) { width: 6%; }
.tld-root .tl-table-rank th:nth-child(2), .tld-root .tl-table-rank td:nth-child(2) { width: 30%; }
.tld-root .tl-table-rank th:nth-child(3), .tld-root .tl-table-rank td:nth-child(3) { width: 21%; }
.tld-root .tl-table-rank th:nth-child(4), .tld-root .tl-table-rank td:nth-child(4) { width: 21%; }
.tld-root .tl-table-rank th:nth-child(5), .tld-root .tl-table-rank td:nth-child(5) { width: 22%; }
.tld-root .tl-table-rank td:nth-child(1),
.tld-root .tl-table-rank td:nth-child(3),
.tld-root .tl-table-rank td:nth-child(5) { white-space: nowrap; }

/* 我的 IP 的来源表 —— 来源(含角色) / 地址 / 状态+原因。
   这张表不做固定百分比: 首列是主机名(长的有 29 个字符, 如
   cloudflare.com/cdn-cgi/trace)、第三列是「状态 + 失败原因」, 两列长度差着几倍,
   钉死 27/33/40 会把主机名挤成四行(实测整表 533px 高); auto 布局让它按内容分。
   两条不能删的约束: 基础 .tl-table 的 min-width:460px 必须去掉(这张表在卡片里),
   首列也不能 nowrap(nowrap 时整格内容直接溢出列盒, 实测 over 最大 140px)。 */

/* IP 地图 /ip-map/: OpenStreetMap 的官方 embed。
   iframe 不能按内容自适应高度(嵌的是整页), 所以给固定高度 + 绝对定位铺满;
   用 padding-bottom 宽高比盒在手机上会算出 190px 左右, 太扁, 地图就废了。 */
.tld-root .tl-map {
  position: relative; width: 100%; height: 340px; margin: 0 0 6px;
  background: #fbfcfd; border: 1px solid #e9ecef; border-radius: 10px;
  overflow: hidden;
}
.tld-root .tl-map iframe {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  border: 0; display: block;
}
.tld-root .tl-map-empty {
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: 16px; text-align: center;
  font-size: 12.5px; line-height: 1.8; color: #6c757d;
}
.tld-root .tl-map-attr { font-size: 11.5px; line-height: 1.7; color: #6c757d; margin: 0 0 12px; }
@media (max-width: 575px) {
  .tld-root .tl-map { height: 260px; }
}

/* DNS 健康检查 —— 体检清单 */
.tld-root .tl-sec {
  margin: 18px 0 8px; padding-bottom: 6px; border-bottom: 1px dashed #f1f3f5;
  font-size: 13.5px; font-weight: 600; color: #212529;
}
.tld-root .tl-checks { display: flex; flex-direction: column; gap: 8px; }
.tld-root .tl-check {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 11px; background: #fff;
  border: 1px solid #e9ecef; border-radius: 8px;
}
.tld-root .tl-check .tl-badge { flex: none; }
.tld-root .tl-ck-ok { border-color: #e3f1e9; background: #fcfefd; }
.tld-root .tl-ck-warn { border-color: #ffe0c2; background: #fffaf5; }
.tld-root .tl-ck-bad { border-color: #f5c2c0; background: #fffbfb; }
.tld-root .tl-ck-info { border-color: #e9ecef; background: #fbfcfd; }
.tld-root .tl-ck-b { min-width: 0; }
.tld-root .tl-ck-b b { display: block; font-size: 13px; font-weight: 600; color: #212529; }
.tld-root .tl-ck-b p {
  margin: 3px 0 0; font-size: 12.5px; line-height: 1.75; color: #495057;
  overflow-wrap: anywhere;
}
.tld-root .tl-verdict {
  margin: 0 0 6px; padding: 8px 12px; font-size: 12.5px; line-height: 1.8;
  border-radius: 0 6px 6px 0; border-left: 3px solid #dee2e6; color: #495057;
  background: #fbfcfd;
}
.tld-root .tl-v-ok { background: #e8f6ef; border-color: #2f9e63; color: #1a6b46; }
.tld-root .tl-v-warn { background: #fff8f0; border-color: #f67d17; color: #a84700; }
.tld-root .tl-v-bad { background: #fdecec; border-color: #d9534f; color: #a4141b; }
.tld-root .tl-sample-checks {
  display: flex; flex-direction: column; gap: 6px;
  margin: 10px 0 0; padding: 0; list-style: none;
  font-size: 12.5px; line-height: 1.7; color: #495057;
}
.tld-root .tl-sample-checks li { display: flex; gap: 8px; align-items: baseline; }
.tld-root .tl-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tld-root .tl-disc { margin: 14px 0 0; font-size: 12px; line-height: 1.8; }

/* 窄屏: 460px 的最小宽度会让 375px 手机里冒出 109px 的横向滚动条(实测 over=109)。
   手机上宁可让「字段」列自换行, 也要把表格压进 100% —— 一行字被拆成两行比左右拖动好读。 */
@media (max-width: 575px) {
  .tld-root .tl-table { min-width: 0; }
  .tld-root .tl-table-3 th:nth-child(1), .tld-root .tl-table-3 td:nth-child(1) { width: 27%; }
  .tld-root .tl-table-3 th:nth-child(2), .tld-root .tl-table-3 td:nth-child(2) { width: 41%; }
  .tld-root .tl-table-3 th:nth-child(3), .tld-root .tl-table-3 td:nth-child(3) { width: 32%; }
  .tld-root .tl-table-3 td:first-child { white-space: normal; }
  .tld-root .tl-table-2 th:nth-child(1), .tld-root .tl-table-2 td:nth-child(1) { width: 42%; }
  /* 记录清单 / 地理 / 排行这三套在手机上不能再钉百分比列宽:
     13% 的 TTL 列在 321px 表里只有 42px,「86400s」直接压出 13px(320px 下 21px);
     6% 的序号列容不下「10」(over 6px)。窄屏一律 auto 布局按内容分列 ——
     内容长度差得越远, 固定百分比越容易翻车。 */
  .tld-root .tl-table-rec, .tld-root .tl-table-geo, .tld-root .tl-table-src {
    table-layout: auto;
  }
  .tld-root .tl-table-rec th:nth-child(n), .tld-root .tl-table-rec td:nth-child(n),
  .tld-root .tl-table-geo th:nth-child(n), .tld-root .tl-table-geo td:nth-child(n) { width: auto; }
  .tld-root .tl-table-geo td:nth-child(1) { white-space: normal; }
  .tld-root .tl-table thead th { white-space: normal; }
  .tld-root .tl-table th, .tld-root .tl-table td { padding: 6px 8px; }
  /* 四列/六列表在手机上挤不下: 与其把「检查项」压成 70px, 不如保留横向滚动。
     但「fixed 布局 + 百分比列宽」会把表格盒子钉死在 min-width 上, 装不下的列盒就往
     表格盒子外面溢(实测 375px: table client=520 / scroll=538 / over=18, 而每个 td 自己
     的 scrollWidth 都不超 —— 溢出发生在「列盒 vs 表格盒」这一层, 不在单元格内部,
     所以给单元格补 white-space 是治不了的)。窄屏改回 auto 布局并清掉百分比列宽,
     让表格按内容自撑到真实宽度, 外层 .tl-scroll 照常横向滚动, 表格内部零溢出。 */
  .tld-root .tl-table-4, .tld-root .tl-table-prop { min-width: 520px; }
  .tld-root .tl-table-cmp { min-width: 560px; }
  /* 排行表 5 列(序号/注册商/覆盖/三年平均/最便宜), 266px 下按内容自撑也有 270 左右,
     与其压出列盒不如保底 520 + 横滑。 */
  .tld-root .tl-table-rank { min-width: 520px; }
  .tld-root .tl-table-4, .tld-root .tl-table-prop, .tld-root .tl-table-cmp,
  .tld-root .tl-table-rank { table-layout: auto; }
  /* :nth-child(n) 与上面的 :nth-child(1..6) 同级特异性(0,3,1), 靠顺序压过它们 */
  .tld-root .tl-table-4 th:nth-child(n), .tld-root .tl-table-4 td:nth-child(n),
  .tld-root .tl-table-prop th:nth-child(n), .tld-root .tl-table-prop td:nth-child(n),
  .tld-root .tl-table-cmp th:nth-child(n), .tld-root .tl-table-cmp td:nth-child(n),
  .tld-root .tl-table-rank th:nth-child(n), .tld-root .tl-table-rank td:nth-child(n) { width: auto; }
}
.tld-root .tl-tbl-lead { font-size: 12.5px; color: #6c757d; margin: 0 0 6px; }

.tld-root .tl-note {
  font-size: 13px; line-height: 1.8; color: #495057;
  background: #fff8f0; border-left: 3px solid #f67d17;
  padding: 8px 12px; border-radius: 0 6px 6px 0; margin: 0 0 16px;
}

.tld-root .tl-uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0 0 18px; }
.tld-root .tl-use { padding: 12px 14px; background: #fff; border: 1px solid #e9ecef; border-radius: 8px; }
.tld-root .tl-use h3 { font-size: 14px; margin: 0 0 6px; color: #212529; }
.tld-root .tl-use p { margin: 0; font-size: 12.5px; line-height: 1.8; color: #495057; }

.tld-root .tl-fixes { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.tld-root .tl-fix {
  padding: 10px 12px; background: #fff;
  border: 1px solid #e9ecef; border-left: 3px solid #f67d17; border-radius: 0 8px 8px 0;
}
.tld-root .tl-fix h3 { font-size: 13.5px; margin: 0 0 4px; color: #212529; }
.tld-root .tl-fix p { margin: 0; font-size: 13px; line-height: 1.8; color: #495057; }
.tld-root .tl-fix code { font-size: 12px; color: #a84700; background: #fff8f0; padding: 1px 4px; border-radius: 3px; }

/* Related tools 四卡 */
.tld-root .tl-rel {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px; margin: 0 0 20px;
}
.tld-root .tl-rel-card {
  display: flex; flex-direction: column; gap: 3px;
  padding: 11px 13px; background: #fff; text-decoration: none;
  border: 1px solid #ffe0c2; border-radius: 9px;
}
.tld-root .tl-rel-card:hover { border-color: #f67d17; text-decoration: none; }
.tld-root .tl-rel-ico { display: block; }
.tld-root .tl-rel-t { font-size: 13.5px; font-weight: 600; color: #212529; }
.tld-root .tl-rel-d { font-size: 12px; line-height: 1.6; color: #6c757d; }

/* 信任脚注 —— EEAT: 来源 + 更新日期 + 局限 + 纠错 */
.tld-root .tl-trust {
  margin: 22px 0 0; padding: 13px 15px;
  background: #fbfcfd; border: 1px solid #e9ecef; border-radius: 10px;
}
.tld-root .tl-trust-h { font-size: 14px !important; margin: 0 0 8px !important; color: #495057; }
.tld-root .tl-trust-dl { margin: 0 0 8px; font-size: 12.5px; line-height: 1.8; }
.tld-root .tl-trust-dl div { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 2px 0; }
.tld-root .tl-trust-dl dt { flex: 0 0 76px; color: #6c757d; margin: 0; }
.tld-root .tl-trust-dl dd { flex: 1 1 220px; margin: 0; color: #212529; }
.tld-root .tl-trust-lim {
  margin: 0 0 8px; padding-left: 18px;
  font-size: 12.5px; line-height: 1.8; color: #495057;
}
.tld-root .tl-trust-fb { margin: 0; font-size: 12.5px; color: #6c757d; }
.tld-root .tl-trust-fb a { color: #a84700; }

/* ---------- 窄屏 ---------- */
@media (max-width: 575px) {
  .tld-root .tl-hero { padding: 12px 13px 10px; }
  .tld-root .tl-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tld-root .tl-kvk { flex: 1 1 100%; }
  .tld-root .tl-kvv { flex: 1 1 100%; }
  .tld-root .tl-copy { margin-left: auto; }
  .tld-root .tl-uses { grid-template-columns: 1fr; }
  .tld-root .tl-rel { grid-template-columns: 1fr 1fr; }
  /* 二进制视图: 375px 下 8 位一组放一行刚好, 16 位(IPv6)必然折行 —— 缩字号不缩列 */
  .tld-root .tl-bin { font-size: 11.5px; gap: 4px 8px; padding: 9px 10px; }
  .tld-root .tl-bin .b-o { letter-spacing: .04em; }
  .tld-root .tl-inp-sm { width: 88px; }
}
@media (max-width: 400px) {
  .tld-root .tl-box { flex-wrap: wrap; }
  .tld-root .tl-inp { flex: 1 1 100%; }
  .tld-root .tl-go { width: 100%; }
  .tld-root .tl-rel { grid-template-columns: 1fr; }
}

/* ---------- 结果区: 大地址 + 事实格 + 两栏 ----------
   结构对齐 whatismyip.io 的两张结果页: 一眼看到的地址 → 四个关键事实 → 地图/明细两栏。
   与他们的差别只有配色(品牌橙)与「三家库并排」这件事本身 —— 那是我们比他们多说的部分。 */
/* 结果区的大地址行。**不能叫 .tl-hero**: 那个名字是工具页页首卡片(shell.hero),
   卡片里装着 .tl-chips 统计网格; 两条同特异性的规则撞在一起时, 这里的 display:flex
   会把卡片变成 flex 容器, .tl-chips 作为 flex 子项被压到 min-content(140px),
   于是 4 个统计块变成一行一个。改名前实测: chips 宽 140 / 单列。 */
.tld-root .tl-iphero {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 12px;
}
/* 地址本身是这一页唯一的主角, 所以给到 38px 等宽字; 手机降到 26px 免得折成两行 */
.tld-root .tl-hero-ip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 38px; font-weight: 700; line-height: 1.15;
  letter-spacing: -.6px; color: #212529; word-break: break-all;
}
@media (max-width: 575px) {
  .tld-root .tl-hero-ip { font-size: 26px; letter-spacing: -.2px; }
}
.tld-root .tl-hero-sub { font-size: 13px; color: #6c757d; margin: 0 0 16px; line-height: 1.7; }
/* 事实格: 桌面 4 列 / 平板与手机 2 列(3 列会剩一个孤格) */
.tld-root .tl-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; margin: 0 0 18px;
}
@media (max-width: 767px) {
  .tld-root .tl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tld-root .tl-fact {
  padding: 10px 12px; background: #fff;
  border: 1px solid #e9ecef; border-radius: 8px; min-width: 0;
}
.tld-root .tl-fact-k {
  display: block; font-size: 11.5px; line-height: 1.5; color: #6c757d;
  margin: 0 0 2px; letter-spacing: .02em;
}
.tld-root .tl-fact-v {
  display: block; font-size: 14px; font-weight: 600; line-height: 1.45;
  color: #212529; word-break: break-word;
}
.tld-root .tl-fact-v code { font-size: 12.5px; font-weight: 500; }
/* 两栏: 左「明细表」右「本地事实」这类并列信息; 991 以下堆成一列。
   断点定在 991(不是 767)是因为两栏里的表: 768 视口下每张卡只有 266 宽、
   表内容区 232, 数据源名「ipwho.is」(nowrap)与「国家」表头都会溢出压到相邻列上
   (实测 over=13 / 7)。堆成一列后表格拿到整宽, 这个问题从根上消失。 */
.tld-root .tl-cols2 {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin: 0 0 16px; align-items: start;
}
@media (max-width: 991px) {
  .tld-root .tl-cols2 { grid-template-columns: minmax(0, 1fr); }
}
.tld-root .tl-card {
  padding: 14px 16px; background: #fff;
  border: 1px solid #e9ecef; border-radius: 10px; min-width: 0;
}
/* 单列卡片: 明细表不要放进两栏 —— 本站容器上限 760px, 两栏时每张卡只有 346px,
   而明细表是三~四列(数据源主机名 + 地址/国家 + 状态), 钉在 346px 里被折成四五行
   (实测 /my-ip/ 的 4 行来源表高达 533px)。整宽后同一张表 40px 一行。
   两栏(.tl-cols2)仍留给真正的短内容并列。 */
.tld-root .tl-col1 { display: grid; gap: 14px; margin: 0 0 16px; }
.tld-root .tl-card > :last-child { margin-bottom: 0; }
/* 半宽卡片里的表格必须贴合卡片: 基础 .tl-table 的 min-width:460px 是给正文整宽表格的
   (窄屏靠 .tl-scroll 横滑), 但 .tl-cols2 的卡片只有 ~340px —— 460 会让它在桌面端
   也永远横滑(实测 1280 下 table 460 / 卡片内容区 312, over=148)。 */
.tld-root .tl-cols2 .tl-table { min-width: 0; }
/* 卡片里的表头允许折行: 表头默认 nowrap, 「登记国（RDAP）」这种长表头在 20% 的
   窄列里会溢出 3px 压到相邻列(半宽卡与整宽卡都量到过)。 */
.tld-root .tl-cols2 .tl-table thead th { white-space: normal; }
.tld-root .tl-card-h {
  display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: #212529;
  margin: 0 0 10px; line-height: 1.5;
}
.tld-root .tl-card-h .tl-ico-sm { width: 16px; height: 16px; color: #f67d17; flex: none; }

/* ============================================================
   Apple-design 层 —— 按 emilkowalski/skills 的 apple-design 落地的通用工艺
   取的是那套原则里**跟静态内容站相关**的部分: 排版尺度、按压即反馈、
   材质的层级、光学的对齐、以及无障碍偏好的降级。
   手势类内容(弹簧、动量投射、橡皮筋)这站没有可拖拽的界面, 不做。
   全部是叠加规则, 不改上面任何既有尺寸 —— 想回退删掉本段即可。
   ============================================================ */

/* ---------- 1. 排版: 字距随字号变, 数字等宽 ---------- */
/* 大字要负字距(字越大看起来越散), 小字要正字距(越大越难认) —— 一个固定值必然错一半。 */
.tld-root { font-optical-sizing: auto; }
.tld-root h1, .tld-root h2, .tld-root h3, .tld-root .tl-hero-h { text-wrap: balance; }
.tld-root h1 { letter-spacing: -0.018em; line-height: 1.22; }
.tld-root h2 { letter-spacing: -0.012em; line-height: 1.32; }
.tld-root h3 { letter-spacing: -0.006em; }
.tld-root .tld-read { text-wrap: pretty; }
/* 小字加一点正字距: 表头 / 徽章 / 图注这类 11–13px 的字 */
.tld-root .tl-table thead th,
.tld-root .tl-badge,
.tld-root .tl-tbl-lead,
.tld-root .tl-lang-h { letter-spacing: 0.012em; }
/* 价格与地址用等宽数字 —— 竖向扫一列价格时, 数字宽度不齐会读得慢 */
.tld-root .tl-table td,
.tld-root .tl-hero-ip,
.tld-root .tl-fact-v,
.tld-root .tld-px,
.tld-root .srch-table td { font-variant-numeric: tabular-nums; }

/* ---------- 2. 反馈: 按下就响应, 不等抬起 ---------- */
.tld-root a, .tld-root button { -webkit-tap-highlight-color: rgba(246, 125, 23, 0.12); }
.tld-root .tl-go,
.tld-root .tl-preset,
.tld-root .tl-copy,
.tld-root .tc-go,
.tld-root .tl-rel-card,
.tld-root .tool-card,
.tld-root .tld-cur-btn,
.tld-root .navbar .nav-link {
  transition: transform 120ms cubic-bezier(0.32, 0.72, 0, 1),
              border-color 160ms ease-out, background-color 160ms ease-out,
              box-shadow 160ms ease-out, color 160ms ease-out;
}
.tld-root .tl-go:active, .tld-root .tl-preset:active, .tld-root .tl-copy:active,
.tld-root .tc-go:active, .tld-root .tld-cur-btn:active,
.tld-root .navbar .nav-link:active { transform: scale(0.96); }
/* 卡片按下时轻微下沉而不是缩放 —— 大面积的缩放会让人误以为布局在动 */
.tld-root .tool-card:active, .tld-root .tl-rel-card:active { transform: scale(0.994); }

/* ---------- 3. 层级: 一层很淡的投影, 把卡片从底色上抬起来 ---------- */
.tld-root .tool-card,
.tld-root .tl-use,
.tld-root .tl-fix,
.tld-root .tl-card {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04),
              0 10px 26px -18px rgba(16, 24, 40, 0.22);
}
.tld-root .tool-card:hover {
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05),
              0 14px 30px -18px rgba(166, 71, 0, 0.28);
}

/* ---------- 4. 焦点: 键盘用户看到的环要和品牌一致 ---------- */
.tld-root a:focus-visible, .tld-root button:focus-visible,
.tld-root input:focus-visible, .tld-root summary:focus-visible,
.tld-root .tl-lang a:focus-visible, .tld-root .tl-lang button:focus-visible {
  outline: 2px solid #a84700;
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- 5. 材质: 贴在**屏幕右侧中间**的语言/币种切换竖排小标签 ----------
   浮动层挂在 body 上(见 tld-lang.js), 外面包一层 .tld-root 以便复用站内变量。
   位置按用户要求改到**视口右侧中间**: right:0 + top:50% 再 translateY(-50%),
   形状是「只有左边圆角」的竖标签, 看起来是贴在屏幕边缘上拉出来的一小片,
   而不是一颗飘在外面的胶囊。桌面端正文是 980px 居中的, 两侧留白足够,
   这个标签正好落在右侧留白里, 一个内容都不压。
   面板从**左边**展开: 标签已经贴着右边缘, 往右展开会出屏。
   右下角整块留给「回到顶部」, 两者不在同一高度, 互不遮挡。 */
.tld-root .tl-lang {
  position: fixed; right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
}
.tld-root .tl-lang-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 44px; min-height: 84px; padding: 10px 0;
  border-radius: 12px 0 0 12px;
  border: 1px solid #ffd9b8; border-right: 0;
  background: #fff;
  color: #212529; font-family: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  box-shadow: -6px 0 18px -10px rgba(16, 24, 40, 0.36),
              0 8px 24px -14px rgba(16, 24, 40, 0.32);
  transition: background-color 150ms ease, border-color 150ms ease;
}
.tld-root .tl-lang-btn:hover { background: #fff8f0; border-color: #f67d17; }
.tld-root .tl-lang-btn:active { background: #ffe9d3; }
/* 竖排单字「简 / 繁」—— 中文竖排是原生写法(text-orientation: upright),
   不需要 rotate, 旋转过的汉字很难一眼认出来 */
.tld-root .tl-lang-cur {
  writing-mode: vertical-rl; text-orientation: upright;
  letter-spacing: 0.14em; font-size: 12.5px; line-height: 1;
}
.tld-root .tl-lang-ico { width: 15px; height: 15px; color: #a84700; flex: none; }
/* 面板从标签**左侧**弹出, 垂直居中对齐标签中心 ——
   transform-origin 指向右边缘那个点, 展开时像是从标签里"抽"出来 */
.tld-root .tl-lang-pop {
  position: absolute; right: calc(100% + 10px); left: auto;
  top: 50%; bottom: auto;
  transform: translateY(-50%);
  transform-origin: 100% 50%;
  min-width: 212px; max-width: calc(100vw - 68px); padding: 8px;
  border-radius: 16px;
  border: 1px solid #ffe0c2;
  background: #fff;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.06),
              0 20px 48px -18px rgba(16, 24, 40, 0.34);
  animation: tl-lang-in 180ms cubic-bezier(0.32, 0.72, 0, 1);
}
.tld-root .tl-lang-pop[hidden] { display: none; }
/* 结束态必须带上 translateY(-50%), 否则动画一结束面板会掉半个身子 */
@keyframes tl-lang-in {
  from { opacity: 0; transform: translateY(-50%) scale(0.94) translateX(8px); }
  to   { opacity: 1; transform: translateY(-50%) scale(1) translateX(0); }
}
.tld-root .tl-lang-h {
  padding: 4px 10px 6px; font-size: 11.5px; font-weight: 600;
  color: #8a6a52; text-transform: uppercase;
}
.tld-root .tl-lang-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 44px; padding: 0 10px; border-radius: 10px;
  font-size: 14px; color: #212529; text-decoration: none;
}
.tld-root .tl-lang-opt:hover { background: rgba(246, 125, 23, 0.10); text-decoration: none; }
.tld-root .tl-lang-opt:active { background: rgba(246, 125, 23, 0.16); }
.tld-root .tl-lang-opt.is-on { font-weight: 600; color: #a84700; }
.tld-root .tl-lang-check { width: 16px; height: 16px; flex: none; }
.tld-root .tl-lang-sep { height: 1px; margin: 6px 4px; background: rgba(0, 0, 0, 0.07); }
.tld-root .tl-lang-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 2px 10px 4px;
}
.tld-root .tl-lang-k { font-size: 13px; color: #6c757d; }

/* ---------- 6. 移动端: 触控目标、字号、可滚动的表格要看得见 ---------- */
@media (max-width: 767px) {
  /* 44×44 是最低触控框 —— 页眉 5 个菜单项在 320px 下只有 28px 高, 手指很难点准 */
  .tld-root .navbar .navbar-nav .nav-link {
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .tld-root .tl-go { min-height: 44px; }
  .tld-root .tl-preset { min-height: 34px; }
  /* 复制按钮很小, 用 padding 把命中区撑开, 视觉尺寸不变 */
  /* 面包屑是「一行顺排的文字链接」, 桌面端 20.8px 高够用, 手指点就太窄了。
     面包屑独占一行, 撑高不会挤到别人, 所以手机上直接给 36px 命中区。 */
  .tld-root .tld-crumb a {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 2px;
  }
  .tld-root .tld-crumb li { min-height: 36px; }
  /* 搜索页的后缀快捷标签同理: 24.8px 高在小屏上很难点准 */
  .tld-root .srch-chip {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
  }
  .tld-root .tl-copy { min-height: 36px; min-width: 36px; }
  /* 中文小字在手机上 11.5px 会糊成一团, 抬到 12px 的可读下限 */
  .tld-root .tl-chip-k, .tld-root .tl-copy, .tld-root .tl-fact-k,
  .tld-root .tl-sample-tag, .tld-root .cloud-tag { font-size: 12px; }
  /* 比价表里的优惠码复制按钮只有 17×17, 完全点不着 */
  .tld-root .tld-copy { min-width: 24px; min-height: 24px; }
  /* 详情页那两个筛选复选框原生只有 14.4px, 手指点不准; 放大并让 label 撑起命中区。
     注意 style.css 加载在 site.css **之后**, Bootstrap 的 `.form-check .form-check-input`
     是 (0,2,0), 跟我写的 .tld-root .form-check-input 同权重 —— 同权重后者赢,
     所以这里必须写成 input.form-check-input 把它压到 (0,2,1)。 */
  .tld-root input.form-check-input { width: 24px; height: 24px; margin-top: 0; }
  .tld-root .form-check-label { min-height: 40px; display: inline-flex; align-items: center; }
  /* 页脚链接是 .fleft 这个 flex 容器里的子项, display 会被块级化成 block,
     所以「行内文字链接」的豁免管不到它们 —— 单独给命中区。
     注意 .tld-foot 在 .tld-root **外面**(构建器把它放在主容器之后),
     所以这条不能带 .tld-root 前缀, 跟文件里其他页脚规则保持一致。 */
  .tld-foot .fleft a, .tld-foot .fright a {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 36px; min-width: 24px; padding: 0 3px;
  }
  .tld-root h1 { font-size: clamp(18px, 5.4vw, 22px); line-height: 1.24; }
  .tld-root .tl-hero-ip { font-size: clamp(24px, 7.4vw, 32px); }
  /* 宽表在手机上靠 .table-responsive 横向滚动, 但滚动条默认是「滚的时候才出现」。
     试过在容器上做白色渐隐遮罩, 实测没用 —— 渐变画在容器背景层, 文字压在它上面,
     根本遮不住; 所以老老实实把滚动条做成细而常驻(WebKit 与标准两套都写)。 */
  .tld-root .table-responsive { scrollbar-width: thin; }
  .tld-root .table-responsive::-webkit-scrollbar { height: 6px; }
  .tld-root .table-responsive::-webkit-scrollbar-thumb {
    background: #e3cbb6; border-radius: 3px;
  }
  .tld-root .table-responsive::-webkit-scrollbar-track { background: transparent; }
  .tld-root .tld-read { font-size: 14.5px; line-height: 1.8; }
}
@media (max-width: 400px) {
  .tld-root h1 { font-size: 18px; }
  /* 频道页的价格表(body 里是 #table1)在 320 下溢出 33px —— 原因不是内边距,
     而是 style.css:410 那条全局 `.tld-root table{white-space:nowrap}` 把单元格
     锁死了, 列宽按最长内容撑开就缩不回来。这里放开折行, 让它压进 100%;
     /price/ 的 srch-table 是 min-width:560px 的六列表, 横滑属设计内, 不受影响。 */
  .tld-root .table-responsive > .table td,
  .tld-root .table-responsive > .table th { white-space: normal; }
}

/* ---------- 7. 无障碍偏好: 降级而不是消失 ---------- */
@media (prefers-reduced-motion: reduce) {
  .tld-root .tl-go:active, .tld-root .tl-preset:active, .tld-root .tl-copy:active,
  .tld-root .tc-go:active, .tld-root .tld-cur-btn:active,
  .tld-root .navbar .nav-link:active,
  .tld-root .tool-card:active, .tld-root .tl-rel-card:active,
  .tld-root .tl-lang-btn:active { transform: none; }
  .tld-root .tl-lang-pop { animation: tl-lang-fade 160ms ease; }
}
@keyframes tl-lang-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-contrast: more) {
  .tld-root .tl-lang-btn, .tld-root .tl-lang-pop {
    background: #fff; border: 1.5px solid #212529;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}

/* ---------- 8. 窄屏表格: 先紧凑, 仍装不下由 tld-mobile.js 改成卡片 ----------
   以前的方案是给宽表加 min-width + 外套 .tl-scroll 横滑 —— 桌面端没问题, 但在
   375px 的手机上, 6 列的价格表和 4 列的工具表都要横向拖动才看得全, 等于一半
   内容被藏起来了。这层先做「压缩」: 撤掉 min-width 与固定列宽, 收紧内边距与字号,
   让大部分 3~4 列表直接装进屏宽; 真正装不下的(6 列价格表)由脚本改成卡片堆叠。
   两档都保留 .tl-scroll 的 overflow-x: auto 作为兜底 —— 脚本没跑起来时最多还是
   横滑, 绝不会把整页撑出横向滚动条。 */
@media (max-width: 640px) {
  .tld-root .tl-table,
  .tld-root .srch-table { min-width: 0; table-layout: auto; width: 100%; }
  /* :nth-child(n) 是伪类, 特异性 0,3,1, 与上面那些百分比列宽(0,3,1)同级,
     靠书写顺序压过去 —— 直接写 width 是压不住 .tl-table-4 td:nth-child(1) 的。 */
  .tld-root .tl-table th:nth-child(n), .tld-root .tl-table td:nth-child(n),
  .tld-root .srch-table th:nth-child(n), .tld-root .srch-table td:nth-child(n) {
    width: auto; white-space: normal;
  }
  .tld-root .tl-table th, .tld-root .tl-table td,
  .tld-root .srch-table th, .tld-root .srch-table td { padding: 5px 4px; font-size: 12px; }
  /* 12px 是中文小字的下限 —— 这里缩到 11.5px 会在 375px 上糊成一团,
     实测 /intodns/ 的 REFRESH/RETRY/EXPIRE 三格就是被这条压到 11.5px 的。 */
  .tld-root .tl-table code { font-size: 12px; }
  .tld-root .srch-table { font-size: 12px; }
  /* 紧凑档把行高压到 23px, 表内的链接就掉到 24px 触控下限下面了(实测 /price/
     的 10 个 .srch-reg、/search/ 的 62 个后缀链接都变成 19~79×23)。
     只补命中区, 不把内边距加回来 —— 那会把表格重新撑宽, 正好抵消这一档的意义。 */
  .tld-root .tl-table td a, .tld-root .srch-table td a,
  .tld-root .find-table td a,
  .tld-root .srch-more a { display: inline-flex; align-items: center; min-height: 24px; min-width: 24px; }
  .tld-root .tl-scroll { margin: 0 0 10px; }
  /* 横滑提示在窄屏尤其重要 —— 表格真的还能横滑时得让用户看出来 */
  .tld-root .tl-scroll-hint { display: block; }

  /* ---- 卡片堆叠档(脚本判定后才加上 data-stack) ---- */
  .tld-root table[data-stack] { display: block; border: 0; }
  .tld-root table[data-stack] thead { display: none; }
  .tld-root table[data-stack] tbody { display: block; }
  .tld-root table[data-stack] tr {
    display: block;
    padding: 9px 10px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #f0e4d8;
    border-radius: 10px;
  }
  .tld-root table[data-stack] td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    width: auto;
    padding: 3px 0;
    border: 0;
    text-align: left;
  }
  .tld-root table[data-stack] td[data-l]::before {
    content: attr(data-l);
    flex: 0 0 auto;
    max-width: 46%;
    color: #8a7f76;
    font-size: 12px;
    line-height: 1.5;
  }
  .tld-root table[data-stack] td:not([data-l]) {
    font-weight: 600;
    font-size: 13px;
    padding-bottom: 5px;
  }
  /* 跨列的折叠行(详情页的价格阶梯)整行铺开, 不参与两端对齐 */
  .tld-root table[data-stack] td[colspan] { display: block; }
  .tld-root table[data-stack] td[colspan]::before { display: none; }
}

/* 404 页 —— 选择器全部挂 .tld-root 前缀, 不改全局选择器 */
.tld-root .nf-page { max-width:768px;margin:0 auto;padding:44px 20px 72px;min-height:62vh;display:flex;flex-direction:column;justify-content:center }
.tld-root .nf-brand { display:inline-flex;align-items:center;gap:10px;align-self:flex-start;min-height:44px;margin-bottom:30px;font-size:1rem;font-weight:600;line-height:1.2;color:#212529;text-decoration:none }
.tld-root .nf-brand:hover { color:#a84700 }
.tld-root .nf-brand-mark { display:block;width:26px;height:26px;flex:none }
.tld-root .nf-brand-name { letter-spacing:-.01em }
.tld-root .nf-eyebrow { margin:0 0 10px;font-size:.8125rem;line-height:1.4;letter-spacing:.04em;color:#6c757d }
.tld-root .nf-title { margin:0 0 12px;font-size:clamp(1.75rem,4vw,2.5rem);font-weight:700;line-height:1.22;letter-spacing:-.01em;color:#212529 }
.tld-root .nf-lead { max-width:44ch;margin:0 0 24px;font-size:1rem;line-height:1.7;color:#6c757d }
.tld-root .nf-actions { display:flex;flex-wrap:wrap;gap:12px;margin:0 }
.tld-root .nf-btn { display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 24px;border:1px solid transparent;border-radius:10px;font-size:1rem;font-weight:600;line-height:1.2;text-decoration:none;transition:background-color .15s ease,border-color .15s ease,color .15s ease }
.tld-root .nf-btn-primary { background:#f67d17;border-color:#f67d17;color:#fff }
.tld-root .nf-btn-primary:hover { background:#a84700;border-color:#a84700;color:#fff }
.tld-root .nf-btn-ghost { background:#fff;border-color:#ced4da;color:#212529 }
.tld-root .nf-btn-ghost:hover { background:#fff6ec;border-color:#a84700;color:#a84700 }
.tld-root .nf-btn:focus-visible, .tld-root .nf-brand:focus-visible, .tld-root .nf-link:focus-visible { outline:3px solid rgba(246,125,23,.4);outline-offset:2px }
.tld-root .nf-card { margin:28px 0 0;padding:22px 22px 20px;background:#fff;border:1px solid #e9ecef;border-radius:14px;box-shadow:0 1px 2px rgba(16,24,40,.04) }
.tld-root .nf-card-title { margin:0 0 6px;font-size:1.0625rem;font-weight:600;line-height:1.4;color:#212529 }
.tld-root .nf-card-desc { margin:0 0 16px;font-size:.9375rem;line-height:1.66;color:#6c757d }
.tld-root .nf-defs { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 20px;margin:0;padding:16px 0 0;border-top:1px solid #f1f3f5 }
.tld-root .nf-def { margin:0 }
.tld-root .nf-def dt { margin:0 0 4px;font-size:.9375rem;font-weight:600;line-height:1.45;color:#212529 }
.tld-root .nf-def dd { margin:0;font-size:.875rem;line-height:1.65;color:#6c757d }
.tld-root .nf-links { display:flex;flex-wrap:wrap;align-items:center;margin:26px 0 0;padding:0;border-top:1px solid #e9ecef }
.tld-root .nf-link { display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border-right:1px solid #e9ecef;font-size:.9375rem;font-weight:500;line-height:1.3;color:#a84700;text-decoration:none }
.tld-root .nf-link:first-child { padding-left:0 }
.tld-root .nf-link:last-child { border-right:0 }
.tld-root .nf-link:hover { color:#8a3d00;text-decoration:none }
.tld-root .nf-link-ico { width:14px;height:14px;flex:none;transition:transform .15s ease }
.tld-root .nf-link:hover .nf-link-ico { transform:translateX(2px) }

/* 平板: 三列只剩 130px 宽, 中文会被挤成四五短行 —— 提前转单列 */
@media (max-width:767px) {
.tld-root .nf-defs { grid-template-columns:1fr;gap:14px }
}

/* 窄屏: 内边距收紧, 按钮允许换行, 内链转竖排列表 */
@media (max-width:575px) {
.tld-root .nf-page { padding:28px 16px 48px;min-height:0 }
.tld-root .nf-title { font-size:1.75rem }
.tld-root .nf-lead { margin-bottom:20px }
.tld-root .nf-actions { gap:10px }
.tld-root .nf-btn { flex:1 1 190px }
.tld-root .nf-card { padding:18px 16px 16px }
.tld-root .nf-links { flex-direction:column;align-items:stretch;margin-top:22px;border-top:0 }
.tld-root .nf-link { justify-content:space-between;padding:0;border-right:0;border-bottom:1px solid #f1f3f5 }
.tld-root .nf-link:last-child { border-bottom:0 }
}

/* ==========================================================================
   9. /intodns/ 报告表 —— 四列, 连皮一起照 intodns.com
   --------------------------------------------------------------------------
   Category | Status | Test name | Information 一一对应; 分类用 rowspan 把同组
   纵向合并(不是每组一张卡片)。状态列是「圆点 + 中文标签」, 整行再给一层浅底
   —— intodns 用 tr.error / tr.warn 上整行底色, 这里同构(id-t-bad / id-t-warn),
   但字色与文案仍由徽章表达, 不拿颜色当唯一信息。
   1px 网格靠 border-spacing 做: intodns 是 cellspacing="1" + 表格底色 #c4d5de,
   白格压在底色上, 从缝里透出来的就是网格线。这里同构, 底色换成本站的 #f0c9a4。
   **不能**再叠 border-collapse —— 两者互斥, 叠了网格线就没了。
   信息列的内容排版也是它的: 引导句 → 每条记录一行(名字加粗、地址 [x]、[TTL=n])
   → 结论句, 对应 .id-il / .id-recs / .id-rec。
   窄屏(≤640px)走本节末尾的堆叠版式: 表上有 data-nostack="1", tld-mobile.js 不碰它。
   ========================================================================== */
.tld-root .id-src { margin:14px 0 0;font-size:12.5px;line-height:1.7 }

.tld-root .id-head { display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0 0 8px }
.tld-root .id-who { font-size:1.0625rem;font-weight:700;line-height:1.4;color:#212529;word-break:break-all }
.tld-root .id-cnt { font-size:12.5px;line-height:1.6;color:#6c757d }
.tld-root .id-copy { display:inline-flex;align-items:center;justify-content:center;min-height:24px;margin-left:auto;padding:3px 12px;border:1px solid #ffe0c2;border-radius:3px;background:#fff8f0;color:#a84700;font-size:12.5px;font-weight:600;line-height:1.4;cursor:pointer }
.tld-root .id-copy:hover { border-color:#f67d17;background:#fff1e2 }
.tld-root .id-copy:focus-visible { outline:3px solid rgba(246,125,23,.4);outline-offset:2px }

.tld-root .id-table { width:100%;border-collapse:separate;border-spacing:1px;background:#f0c9a4;font-size:13px;line-height:1.55 }
.tld-root .id-table th { padding:7px 8px;background:#fff8f0;color:#a84700;font-size:12.5px;font-weight:700;line-height:1.4;text-align:left;white-space:nowrap }
/* style.css:410 有一条全局 `.tld-root table { white-space: nowrap }`(比价表靠它防挤)。
   这条报告表的信息列是整句中文 + 原始记录, 必须允许折行 —— 不然整张表撑到 2000px 以上。 */
.tld-root .id-table td { padding:7px 8px;background:#fff;vertical-align:top;text-align:left;white-space:normal }
.tld-root .id-table .id-th-cat, .tld-root .id-table td.id-cat { width:12% }
.tld-root .id-table .id-th-st, .tld-root .id-table td.id-st { width:10% }
.tld-root .id-table .id-th-name, .tld-root .id-table td.id-name { width:24% }
.tld-root .id-table td.id-cat { color:#a84700;font-weight:700;line-height:1.5 }
.tld-root .id-table td.id-name { color:#212529;font-weight:600 }
.tld-root .id-table td.id-st { text-align:center }
.tld-root .id-table td.id-info { color:#3f3f3f;word-break:break-word;overflow-wrap:anywhere }

/* 整行浅底: 只给失败与警告 —— 与 intodns 的 tr.error / tr.warn 同一层信息 */
.tld-root .id-table tr.id-t-bad td { background:#fff3f4 }
.tld-root .id-table tr.id-t-warn td { background:#fffdf0 }

/* 信息列: 引导句 / 记录行 / 结论句 */
.tld-root .id-info .id-il { margin:0 }
.tld-root .id-info .id-recs { margin:3px 0 0 }
.tld-root .id-info .id-rec { display:block;line-height:1.7 }
.tld-root .id-info .id-iv { margin-top:4px;color:#4a4a4a }
.tld-root .id-info .id-im { margin-top:5px }
.tld-root .id-info .id-ip { color:#5f6a72;font-variant-numeric:tabular-nums }
.tld-root .id-info .id-ttl { color:#8a8f95;font-size:12px }
.tld-root .id-info .id-k { color:#8a8f95;font-size:12px;letter-spacing:.04em }
.tld-root .id-info .id-tx { color:#5f6a72;word-break:break-all }
.tld-root .id-info .id-pref { color:#a84700;font-weight:700 }
.tld-root .id-info .id-ar { color:#aeb5bc }
.tld-root .id-info .id-note { color:#6c757d;font-size:12px }
.tld-root .id-info b { color:#212529;font-weight:600 }
.tld-root .id-info a { color:#a84700 }
.tld-root .idn-res { margin:0 }
.tld-root .id-when { margin:6px 0 0;font-size:12px;line-height:1.6;color:#6c757d }

.tld-root .id-badge { display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap }
.tld-root .id-dot { display:inline-block;width:9px;height:9px;flex:none;border-radius:50%;background:currentColor }
.tld-root .id-ok { color:#1f7a4d }
.tld-root .id-warn { color:#a84700 }
.tld-root .id-bad { color:#b3261e }
.tld-root .id-none { color:#6c757d }
.tld-root .id-warn .id-dot { background:#f67d17 }
.tld-root .id-none .id-dot { background:#aeb5bc }

/* 窄屏: 一行变一张卡 —— 每组首行顶部出分类色带, 右侧状态, 下面信息正文。
   用 grid + order 而不是绝对定位: 分类格只在每组第一行存在, 缺了它右侧那块要自动
   补位, order 让两种情况共用同一套规则。
   内边距一律放在 td 上而不是 tr 上 —— 色带要满宽, 若靠负 margin 出血, 表格的
   scrollWidth 会多算出血的 22px。
   三列的百分比宽度也必须一起清掉: 桌面端的 12% 在 321px 容器里只剩 38px,
   「委派与权威」这种五字 nowrap 的色带文字会直接撑到格子外面。 */
@media (max-width:640px) {
.tld-root .id-table { display:block;width:100%;border-spacing:0;background:transparent;font-size:14px;line-height:1.6 }
.tld-root .id-table thead { display:none }
.tld-root .id-table tbody { display:block }
.tld-root .id-table tr.id-tr { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 8px;padding:0;border:1px solid #ffe0c2;border-top:0;background:#fff }
.tld-root .id-table tr.id-first { margin-top:14px;border-top:1px solid #ffe0c2;border-radius:3px 3px 0 0 }
.tld-root .id-table tr.id-last { border-radius:0 0 3px 3px }
.tld-root .id-table tr.id-t-bad { background:#fff3f4 }
.tld-root .id-table tr.id-t-warn { background:#fffdf0 }
.tld-root .id-table td { display:block;width:auto;padding:0;background:transparent }
/* 分类色带要压住上面的行底色: 写成 tr td.id-cat(0,4,2) 才够格, 单写 td.id-cat 会被
   `tr.id-t-bad td`(0,4,2)按先后顺序反超。 */
.tld-root .id-table tr td.id-cat { width:auto;grid-column:1 / -1;order:0;padding:7px 10px;border-bottom:1px solid #ffe0c2;border-radius:2px 2px 0 0;background:#fff8f0;font-size:12.5px;line-height:1.5 }
.tld-root .id-table tr td.id-name { width:auto;order:1;padding:9px 0 0 10px;font-size:14px;line-height:1.5 }
.tld-root .id-table tr td.id-st { width:auto;order:2;justify-self:end;padding:10px 10px 0 0;text-align:right }
.tld-root .id-table tr td.id-info { width:auto;grid-column:1 / -1;order:3;padding:3px 10px 10px;font-size:13px;line-height:1.62 }
.tld-root .id-head { margin-bottom:10px }
.tld-root .id-copy { min-height:28px;padding:4px 12px }
}

/* ==========================================================================
   10. /intodns/ 的整页骨架 —— 照 intodns.com 的比例, 颜色换成本站的橙
   --------------------------------------------------------------------------
   980px 居中的 master / 140px 高的页眉(logo 块在左, 查询框贴右) / 一段居中说明
   (对应它那两行 "Work in progress") / 正文 / 一条细线之上左右两块的页脚。
   这一页自带页眉页脚(构建脚本的 BARE 分支), 所以站点的导航条与 .tld-foot 都不在
   它身上 —— 一页两套页眉会立刻破功。
   页眉的绝对定位只在 ≥1200px 生效: 语言/货币浮标钉在视口右上角, 1280 宽时它在
   980 容器之外, 但 1142 以下就会压住查询框。与其卡临界值, 不如在这个宽度以下把
   查询框放到 logo 下面, 右上角整个让给浮标。
   ========================================================================== */
.tld-root.idn { background:#fff;color:#2b2d30 }
.tld-root .idn-master { width:100%;max-width:980px;margin:0 auto;padding:0 16px;box-sizing:border-box }
@media (min-width:1200px) { .tld-root .idn-master { padding:0 } }

/* 面包屑: 这一类工具页也要求有可见面包屑(与 BreadcrumbList 对应),
   所以放在 master 的最上面一行, 12px 灰色, 不抢页眉的视线。 */
.tld-root.idn .tld-crumb { margin:0;padding:10px 0 0;font-size:12px;line-height:1.6 }
/* 页眉高度两态一致 = 查询前后下方内容不跳。
   140 是「logo 26 + 72 高 + 空隙」那版版式的数字; 提示行搬到 logo 与查询框之间后,
   初始态纵向堆叠是 logo 72 + 14 + 提示 21 + 10 + 查询框 30 + 底内边距 16 = 163,
   所以这里给 168 —— 留 5px 余量, 让初始态(底部对齐)与结果态(绝对定位)同高。 */
.tld-root .idn-head { position:relative;min-height:168px }
.tld-root .idn-logo { position:absolute;top:26px;left:0;margin:0;font-size:0;line-height:1 }
.tld-root .idn-logo a { display:inline-block;text-decoration:none }
.tld-root .idn-logo a:focus-visible { outline:2px solid #a84700;outline-offset:4px;border-radius:2px }
/* 品牌字标换成图片(用户提供的 intoDNS logo) —— 只给高度, 宽度由宽高比自动算;
   文件是 240×155(3 倍于显示尺寸), 手机上按 40px 高缩放。 */
.tld-root .idn-logo-img { display:block;height:52px;width:auto;max-width:100% }
.tld-root .idn-logo a:hover .idn-logo-img { opacity:.86 }
.tld-root .idn-sub { display:block;margin-top:7px;font-size:12.5px;font-weight:700;letter-spacing:.12em;color:#a84700 }
.tld-root .idn-report { position:absolute;top:33px;right:0 }
.tld-root .idn-form { display:flex;align-items:center;gap:8px }
.tld-root .idn-inps { width:250px;max-width:100%;padding:3px 8px;border:1px solid #f0c9a4;border-radius:3px;background:#fff;color:#2b2d30;font-size:16px;line-height:1.35 }
.tld-root .idn-inps::placeholder { color:#aeb5bc }
.tld-root .idn-inps:focus { outline:0;border-color:#f67d17;box-shadow:0 0 0 3px rgba(246,125,23,.16) }
.tld-root .idn-go { flex:none;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:71px;height:30px;padding:0 12px;border:0;border-radius:3px;background:#f67d17;color:#fff;font-size:13px;font-weight:700;line-height:1;cursor:pointer }
.tld-root .idn-go-ico { width:13px;height:13px;flex:none }
.tld-root .idn-go:hover { background:#e06f0d }
.tld-root .idn-go:active { transform:translateY(1px) }
.tld-root .idn-go:focus-visible { outline:2px solid #a84700;outline-offset:2px }

/* ---- 初始态: logo + 查询框一起居中堆叠, 从页眉右上角挪到说明文字上方 ----
   DOM 不动(查询框仍是 .idn-head 的孩子), 只改定位 —— 于是结果态的坐标一个像素都不用算,
   去掉 is-idle 就回到 logo 左上 / 查询框右上, 与改动前完全一致。
   只在 ≥1200 用 flex-end: 那个宽度下页眉是 140px 的绝对定位版式, 要堆叠就得把
   logo 从 position:absolute 拉回文档流, 否则它会压住居中的查询框。
   窄屏页眉本来就是纵向排的(logo 在上、查询框在下), 只需让两者都居中,
   见下面的 1199 媒体查询。
   这条**必须**限定在 min-width:1200 —— 不限的话窄屏 head 会变成 flex 容器,
   justify-content:flex-end 会把整块压到底部。 */
@media (min-width:1200px) {
  .tld-root .idn-master.is-idle .idn-head {
    display:flex;flex-direction:column;justify-content:flex-end;align-items:center;
    min-height:168px;padding-bottom:16px;
  }
  .tld-root .idn-master.is-idle .idn-logo {
    position:static;align-self:center;margin:0 0 14px;text-align:center;
  }
  .tld-root .idn-master.is-idle .idn-report { position:static;margin:0;align-self:center }
}

.tld-root .idn-note { margin:0 0 14px;text-align:center }
.tld-root .idn-lead { max-width:720px;margin:0 auto;font-size:13.5px;line-height:1.8;color:#4a4a4a }
.tld-root .idn-lead b { color:#a84700;font-weight:700 }
/* 数据来源那一句现在紧跟 logo、在查询框**上方**(原来挂在下方说明段落末尾)。
   ≥1200 的页眉是绝对定位版式(logo top:26 / 查询框 top:33), 提示行必须落在 0~31px
   这一条里, 否则会压住查询框 —— 所以宽屏下上方不留 margin, 靠 33-21 的 12px 自然间距;
   贴右对齐是为了跟查询框那一列收在同一个右边界上。 */
.tld-root .idn-hint {
  max-width:720px;margin:10px auto 14px;
  font-size:12.5px;line-height:1.7;color:#6c757d;text-align:center;
}
@media (min-width:1200px) {
  .tld-root .idn-head > .idn-hint { max-width:100%;margin:0 0 2px;text-align:right }
  .tld-root .idn-master.is-idle .idn-hint { max-width:720px;margin:0 auto 10px;text-align:center }
}

.tld-root .idn-out { min-height:80px }
.tld-root .idn-empty, .tld-root .idn-wait, .tld-root .idn-badmsg { margin:20px 0 26px;text-align:center;font-size:13px;line-height:1.7;color:#6c757d }
.tld-root .idn-badmsg { color:#b3261e }

.tld-root .idn-foot { margin:18px 0 0;padding:10px 0 30px;border-top:1px solid #ffe0c2;font-size:12.5px;line-height:1.7;color:#6c757d }
.tld-root .idn-frow { display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px }
.tld-root .idn-fleft { flex:1 1 auto;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px }
.tld-root .idn-fright { flex:0 0 auto;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-left:auto }
.tld-root .idn-brand { color:#212529;font-weight:600 }
.tld-root .idn-foot a { color:#a84700;text-decoration:none }
.tld-root .idn-foot a:hover { text-decoration:underline }
.tld-root .idn-fsrc { margin:9px 0 0;font-size:12px;line-height:1.7;color:#8a8f95 }

@media (max-width:1199px) {
/* 页眉改成纵向之后查询框就落在拇指区了, 高度按触控放宽到 42px */
.tld-root .idn-head { min-height:0;padding:18px 0 2px }
.tld-root .idn-inps { padding:8px 10px;font-size:16px }
.tld-root .idn-go { height:42px }
.tld-root .idn-go-ico { width:14px;height:14px }
.tld-root .idn-logo { position:static }
.tld-root .idn-logo-img { height:44px }
/* 提示行自带 14px 下外边距, 查询框这里不再另加 —— 否则两段间距叠成 28px */
.tld-root .idn-report { position:static;margin-top:0 }
.tld-root .idn-form { max-width:420px }
.tld-root .idn-inps { width:auto;flex:1 1 auto;min-width:0 }
/* 初始态: 纵向版式里查询框本来就在 logo 下方, 这里把两者都居中,
   并补一点与下方说明文字的间距(页眉自身只有 2px 底内边距) */
.tld-root .idn-master.is-idle .idn-logo { text-align:center;margin:0 auto 12px }
.tld-root .idn-master.is-idle .idn-form { margin-left:auto;margin-right:auto }
.tld-root .idn-master.is-idle .idn-report { margin-bottom:12px }
}
@media (max-width:640px) {
.tld-root .idn-master { padding:0 12px }
/* 页脚链接在窄屏要够手指点: 24px 是硬下限, 这里给到 36px(审计只报 hard 才必须改,
   soft 与全站一致 —— 导航条上那些短标签也是 30×36)。 */
.tld-root .idn-foot a { display:inline-flex;align-items:center;min-height:36px }
.tld-root .idn-logo-img { height:38px }
.tld-root .idn-lead { font-size:13px;line-height:1.75 }
.tld-root .idn-frow { flex-direction:column;gap:6px }
.tld-root .idn-fright { margin-left:0 }
}

/* ---------- 10b. 子域名发现(/subdomain-finder/) ----------
   这一页多出三样别处没有的东西, 全部用 .sd- 前缀, 不与 .tl-* 骨架抢名字:
     1) 复制工具条 —— 复制按钮是**独立**的 button + 一个独立的 note span。
        不复用 .tl-copy: tld-currency.js 那套复制会重写按钮的 innerHTML,
        按钮上的监听在第一次点击后就丢了;
     2) 泛解析警示条 —— 开了 *.domain 时词表命中的前缀不能说明真实存在,
        这条必须是「红框 + 左侧色条」, 不能落成一行动静很小的灰字;
     3) 结果表纵向滚动 —— 证书日志一次能返回上百个名字, 让表格自己在
        560px 内滚, 页面本身不长出几百行; 横向仍由 .tl-scroll 兜底。 */
.tld-root .sd-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  margin: 0 0 12px;
}
.tld-root .sd-copy {
  font-size: 13px; font-weight: 600; color: #a84700;
  background: #fff8f0; border: 1px solid #f0c9a4; border-radius: 8px;
  padding: 6px 14px; cursor: pointer;
}
.tld-root .sd-copy:hover:not(:disabled) { background: #fff1e3; border-color: #f67d17; }
.tld-root .sd-copy:active:not(:disabled) { transform: scale(0.98); }
.tld-root .sd-copy:disabled {
  color: #adb5bd; background: #f8f9fa; border-color: #e9ecef; cursor: default;
}
.tld-root .sd-cnote { font-size: 12.5px; color: #1a6b46; }

.tld-root .sd-wild {
  margin: 8px 0 12px; padding: 9px 12px;
  font-size: 13px; line-height: 1.8; color: #a4141b;
  background: #fdecec; border: 1px solid #f5c2c0;
  border-left: 4px solid #d9484f; border-radius: 8px;
}
.tld-root .sd-wild b { color: #8a1016; }
.tld-root .sd-wild code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; color: #8a1016; background: #fff;
  padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere;
}
/* 检测本身没做成 —— 是「不知道」而不是「有问题」, 用品牌橙而不是红 */
.tld-root .sd-wild-soft {
  color: #a84700; background: #fff8f0;
  border-color: #ffe0c2; border-left-color: #f67d17;
}

.tld-root .sd-scroll { max-height: 560px; overflow: auto; }
.tld-root .sd-table th:nth-child(1), .tld-root .sd-table td:nth-child(1) { width: 52%; }
.tld-root .sd-table th:nth-child(2), .tld-root .sd-table td:nth-child(2) { width: 14%; }
.tld-root .sd-table th:nth-child(3), .tld-root .sd-table td:nth-child(3) { width: 34%; }

@media (max-width: 640px) {
  /* 表格纵向让出一半屏高: 结果区上方还有泛解析提示与汇总, 不能把首屏吃光 */
  .tld-root .sd-scroll { max-height: 58vh; }
  /* 复制按钮是主操作, 手机上按 44px 命中区给 */
  .tld-root .sd-copy { min-height: 44px; padding: 0 16px; font-size: 13px; }
  .tld-root .sd-cnote { font-size: 12px; }
  .tld-root .sd-wild { font-size: 13px; line-height: 1.8; }
}

/* ---------- 11. 回到顶部 ----------
   按钮由 tld-top.js 建出来挂在 body 上 —— 固定层要脱离 .tld-root 的包含块,
   否则祖先一旦有 transform / filter, position:fixed 就会换基准。
   右下角这一块现在整块让给它: 语言切换已挪到内容列右上角, 两者不再抢同一条边。
   44×44 稳过触控下限; 只在滚过 600px 后浮现, 平时不占视线、不进 Tab 序。 */
.tld-root .tl-top {
  position: fixed; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%;
  border: 1px solid #ffd9b8;
  background: #fff;
  color: #a84700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06),
              0 10px 24px -12px rgba(16, 24, 40, 0.34);
  opacity: 0; visibility: hidden;
  transform: translateY(8px) scale(0.92);
  transition: opacity 180ms ease, transform 180ms cubic-bezier(0.32, 0.72, 0, 1),
              visibility 180ms linear, background-color 150ms, border-color 150ms;
}
.tld-root .tl-top.is-on { opacity: 1; visibility: visible; transform: none; }
.tld-root .tl-top:hover { background: #fff8f0; border-color: #f67d17; }
.tld-root .tl-top:active { transform: scale(0.94); }
.tld-root .tl-top svg { width: 20px; height: 20px; display: block; }
.tld-root .tl-top:focus-visible { outline: 2px solid #a84700; outline-offset: 2px; }

@media (max-width: 767px) {
  .tld-root .tl-top { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  /* 语言标签贴右边缘、垂直居中 —— 手机上内容列是满宽的, 它必然压住一小条正文;
     所以窄屏把标签压薄一点(仍 ≥ 24px 触控硬下限), 并把圆角收小。
     早先要在页眉右侧让出 70px 的那条 nav.navbar 规则已经删掉:
     标签不再落在页眉高度上, 页眉右组不必整组换行, 400~479px 恢复单行。 */
  .tld-root .tl-lang-btn { width: 40px; min-height: 76px; border-radius: 10px 0 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .tld-root .tl-top { transition: opacity 120ms ease; transform: none; }
  .tld-root .tl-top.is-on, .tld-root .tl-top:active { transform: none; }
}
