/* ============================================================
   Whois 查询站（仿 HU.iS 风格）主样式
   配色：蓝灰 #7f8eb0 / 渐变按钮 / 深色结果卡片 / 浅灰网格背景
   ============================================================ */
:root {
  --bg-color: #eaeaea;
  --result-color: white;
  --text-color: #333;
  --brand-color: #9aa6af;
  --main-text-color: white;
  --main-bg: rgba(0, 0, 0, 0.8);
  --tabel-th-color: lightgray;
  --tabel-a-color: #a4dcff;
  --domain-color: #26caff;
  --search-box-color: #7f8eb0;
  --price-box-color: whitesmoke;
  --search-input-color: white;
  --search-input-text-color: black;
  --search-button-text-color: #fff;
  --footer-color: #7f8eb0;
  --watermark-color: rgba(200, 200, 200, 1);
  --primary: #6b83b7;
  --primary-dark: #53658d;
  --green: #2da44e;
  --red: #e5534b;
  --orange: #d29922;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 100%;
  font-family: Avenir, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
}

/* 网格纹理背景 */
.background {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0; left: 0;
  background-color: var(--bg-color);
  background-image:
    linear-gradient(90deg, #3c0a1e0a 3%, transparent 0),
    linear-gradient(1turn, #3c0a1e0a 3%, transparent 0);
  background-size: 20px 20px;
  z-index: -1;
}

a { color: inherit; }

/* ---------------- 主布局 ---------------- */
.page {
  font-family: Avenir, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  max-width: 630px;
  width: 100%;
  margin-top: 10px;
  padding-bottom: 70px;
}

/* ---------------- 搜索区域 ---------------- */
.search_box {
  background-color: var(--search-box-color);
  padding: 15px;
  border-radius: 10px 10px 0 0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  top: 10px;
  height: 28px;
  margin-right: -3px;
}

.home_label {
  font-size: 28px;
  color: var(--main-text-color);
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 1px;
}

.head-icons { display: flex; align-items: center; gap: 10px; }

.head-icon-btn {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  transition: background 0.15s;
}
.head-icon-btn:hover { background: rgba(255, 255, 255, 0.15); }

/* ---------------- 输入框与按钮 ---------------- */
.input_btn {
  display: flex;
  margin-top: 45px;
  width: 100%;
  justify-content: flex-start;
}

.input-container { position: relative; flex: 1; display: flex; align-items: center; }

#search_input {
  border: none;
  outline: none;
  position: relative;
  height: 48px;
  width: 100%;
  border-radius: 5px 0 0 5px;
  font-size: 21px;
  padding: 0 45px 0 12px;
  background-color: var(--search-input-color);
  color: var(--search-input-text-color);
}

#clear-input-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  cursor: pointer;
  color: #999;
  display: none;
  align-items: center;
  justify-content: center;
}
#clear-input-btn.show { display: flex; }
#clear-input-btn:hover { color: #555; }

#search_button {
  position: relative;
  height: 48px;
  width: 85px;
  border: 0;
  cursor: pointer;
  color: var(--search-button-text-color);
  border-radius: 0 5px 5px 0;
  background: linear-gradient(to right, rgb(107 131 183), rgb(83 101 141));
  font-size: 15px;
  flex-shrink: 0;
  transition: filter 0.15s;
}
#search_button:hover { filter: brightness(1.12); }
#search_button:active { filter: brightness(0.92); }

/* ---------------- 价格信息栏 ---------------- */
#price_load {
  font-size: 14px;
  display: none;
  align-items: center;
  z-index: 2;
  position: relative;
  top: 10px;
  color: var(--price-box-color);
  line-height: 20px;
  width: 100%;
}
#price_load.show { display: flex; }

.spin {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 7px;
}
@keyframes spin { to { transform: rotate(360deg); } }

#price_box {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  z-index: 2;
  position: relative;
  top: 10px;
  overflow: visible;
  color: var(--price-box-color);
}
#price_box.hide { display: none; }

#price_box .p-item { display: flex; align-items: center; height: 20px; line-height: 20px; white-space: nowrap; }
#price_box .p-label { color: rgba(255, 255, 255, 0.78); margin-right: 4px; }
#price_box .p-value { color: #fff; font-weight: 600; }
#price_box .p-value small { font-weight: 400; color: rgba(255, 255, 255, 0.85); margin-left: 2px; }
#price_box .p-value.reg { color: #9fe8b0; }
#price_box .p-value.renew { color: #ffd8a8; }
#price_box .p-value.transfer { color: #b8d4ff; }
#price_box .p-value.status-ok { color: #9fe8b0; }
#price_box .p-value.status-no { color: #ffb3ae; }
#price_box .p-link { color: inherit; text-decoration: none; }
#price_box .p-link:hover { text-decoration: underline; }

/* 公告条 */
#announcement {
  display: none;
  margin-top: 10px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}
#announcement.show { display: block; }

/* 错误提示 */
#error_box {
  display: none;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  color: #ffe3e0;
  font-size: 13px;
}
#error_box.show { display: block; }

/* ---------------- 结果区域 ---------------- */
#result {
  position: relative;
  font-size: 15px;
  margin-top: 12px;
  min-height: 30px;
}

/* 品牌水印 */
#result-watermark {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: var(--watermark-color);
  opacity: 0.35;
}
#result-watermark.show { display: flex; }
#result-watermark svg { width: 260px; height: auto; max-height: 180px; }

/* 加载器 */
.gb-loader {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(127, 142, 176, 0.25);
  border-top-color: #7f8eb0;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
#loader { display: none; justify-content: center; padding: 26px 0; }
#loader.show { display: flex; }

/* Whois 主表格卡片 */
#main-card-wrap { position: relative; }

#main {
  background: var(--main-bg);
  padding: 5px 10px;
  margin: 5px auto 10px auto;
  width: 98%;
  border-collapse: collapse;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
#main tbody th {
  text-align: right;
  color: var(--tabel-th-color);
  font-weight: normal;
  width: 88px;
  padding: 4px 6px;
  font-size: 13px;
  vertical-align: top;
  white-space: nowrap;
}
#main tbody td {
  padding: 4px 0.6rem;
  padding-left: 0.8rem;
  font-size: 15px;
  color: var(--main-text-color);
  word-break: break-word;
  line-height: 20px;
}
#main tbody tr:last-child th, #main tbody tr:last-child td { padding-bottom: 10px; }
#main a {
  color: var(--tabel-a-color);
  text-decoration: underline;
  text-decoration-color: var(--tabel-a-color);
}
#main .domain-link { color: var(--domain-color); font-weight: 600; }
#main .avail { color: #7ee2a0; font-weight: 600; }
#main .tag {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  color: #ddd;
  margin-right: 4px;
}

/* 元数据卡片 */
#metadata-card {
  display: none;
  background: var(--main-bg);
  border-radius: 8px;
  margin: 10px auto;
  width: 98%;
  overflow: hidden;
}
#metadata-card.show { display: block; }
#metadata-card .meta-header {
  color: var(--tabel-th-color);
  font-size: 13px;
  padding: 8px 12px 0 12px;
}
#metadata-card pre {
  margin: 6px 0 10px 0;
  padding: 0 12px;
  color: #cfe3ff;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 420px;
  overflow-y: auto;
}
#metadata-card pre::-webkit-scrollbar { width: 5px; }
#metadata-card pre::-webkit-scrollbar-thumb { background: #667; border-radius: 5px; }

#metadata-toggle-box { display: flex; justify-content: center; margin: 2px 0 8px 0; }

/* 简易开关 */
.switch-simple { position: relative; display: inline-block; width: 34px; height: 19px; cursor: pointer; }
.switch-simple input { opacity: 0; width: 0; height: 0; }
.switch-inner {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  transition: 0.2s;
}
.switch-inner::before {
  content: "";
  position: absolute;
  width: 15px; height: 15px;
  left: 2px; top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.switch-simple input:checked + .switch-inner { background: #6b83b7; }
.switch-simple input:checked + .switch-inner::before { transform: translateX(15px); }

/* DNS 结果表 */
#dns-result-container { margin-top: 10px; }
.dns-table {
  background: var(--main-bg);
  color: #fff;
  border-radius: 8px;
  width: 98%;
  margin: 10px auto;
  border-collapse: collapse;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.dns-table caption {
  caption-side: top;
  text-align: left;
  color: var(--tabel-th-color);
  font-size: 13px;
  padding: 9px 12px 2px 12px;
}
.dns-table th, .dns-table td {
  text-align: left;
  padding: 5px 10px;
  font-size: 13.5px;
  word-break: break-all;
}
.dns-table th { color: var(--tabel-th-color); font-weight: normal; width: 64px; white-space: nowrap; }
.dns-table td { color: #eef3ff; }
.dns-empty { color: #8892a8 !important; }

.dns-lines-select { display: flex; justify-content: center; gap: 8px; margin: 14px 0 4px 0; flex-wrap: wrap; }
.dns-line-chip {
  font-size: 12.5px;
  padding: 3px 12px;
  border-radius: 14px;
  border: 1px solid #97a3c0;
  color: #5d6b8f;
  background: #fff;
  cursor: pointer;
  user-select: none;
}
.dns-line-chip.on { background: #7f8eb0; color: #fff; border-color: #7f8eb0; }

/* ---------------- 历史记录侧栏 ---------------- */
#history-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 1500;
}
#history-overlay.show { display: block; }

#history {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: 1600;
  box-shadow: -4px 0 18px rgba(0, 0, 0, 0.18);
  transition: right 0.25s ease;
  display: flex;
  flex-direction: column;
}
#history.show { right: 0; }

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #7f8eb0;
  color: #fff;
  font-size: 16px;
}
.history-close-btn { background: none; border: 0; color: #fff; cursor: pointer; display: flex; }
.history-close-btn:hover { opacity: 0.8; }

.history-search-container { padding: 10px 12px; border-bottom: 1px solid #eee; }
.history-search-box { position: relative; }
#history-search-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7dce8;
  border-radius: 6px;
  font-size: 13px;
  padding: 7px 30px 7px 10px;
  outline: none;
}
#history-search-input:focus { border-color: #7f8eb0; }
#history-search-clear {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  cursor: pointer;
  display: none;
}
#history-search-clear.show { display: block; }

#history-list-container { flex: 1; overflow-y: auto; padding: 6px 0; }
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 13.5px;
}
.history-item:hover { background: #f2f4fa; }
.history-item .h-domain { color: #3b4664; word-break: break-all; }
.history-item .h-time { color: #9aa1b5; font-size: 11.5px; margin-left: 8px; white-space: nowrap; }
.history-empty { text-align: center; color: #a5abc0; font-size: 13px; padding: 30px 0; }
.history-footer { padding: 10px; text-align: center; color: #a5abc0; font-size: 12px; border-top: 1px solid #f0f0f0; }
.history-clear-btn {
  margin-top: 6px;
  border: 1px solid #d7dce8;
  background: #fff;
  color: #e5534b;
  border-radius: 6px;
  font-size: 12px;
  padding: 4px 12px;
  cursor: pointer;
}
.history-clear-btn:hover { background: #fdf2f1; }

/* ---------------- 弹窗 ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 2000;
}
.modal-overlay.show { display: block; }

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 420px);
  background: #fff;
  border-radius: 12px;
  z-index: 2100;
  display: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  max-height: 86vh;
  overflow-y: auto;
}
.modal.show { display: block; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px 0 18px;
}
.modal-title { font-size: 16px; color: #333; font-weight: 600; }
.modal-close { background: none; border: 0; cursor: pointer; color: #999; display: flex; }
.modal-close:hover { color: #333; }

.modal-body { padding: 12px 18px 18px 18px; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: #666; margin-bottom: 5px; }
.field input[type="text"], .field input[type="password"], .field select, .field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7dce8;
  border-radius: 6px;
  font-size: 14px;
  padding: 8px 10px;
  outline: none;
  font-family: inherit;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #7f8eb0; }

.opt-group { display: flex; gap: 8px; }
.opt-chip {
  flex: 1;
  text-align: center;
  font-size: 13px;
  padding: 7px 0;
  border-radius: 6px;
  border: 1px solid #d7dce8;
  color: #555;
  cursor: pointer;
  user-select: none;
}
.opt-chip.on { background: #7f8eb0; color: #fff; border-color: #7f8eb0; }

.btn {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(to right, rgb(107 131 183), rgb(83 101 141));
  color: #fff;
  font-size: 14px;
  padding: 10px 0;
  cursor: pointer;
  margin-top: 4px;
}
.btn:hover { filter: brightness(1.1); }
.btn.btn-ghost {
  background: #fff;
  color: #53658d;
  border: 1px solid #c4cede;
}
.btn.btn-danger { background: linear-gradient(to right, #e5655e, #c73e38); }

.form-msg { font-size: 13px; min-height: 18px; margin: 6px 0 2px 0; }
.form-msg.err { color: var(--red); }
.form-msg.ok { color: var(--green); }

/* ---------------- 底部版权栏 ---------------- */
#footer-info {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--footer-color);
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 9px 10px;
  z-index: 900;
  box-sizing: border-box;
}
#footer-info a { color: #fff; text-decoration: none; margin: 0 6px; }
#footer-info a:hover { text-decoration: underline; }

/* ---------------- 通用提示 toast ---------------- */
#toast {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  z-index: 100000;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
  letter-spacing: 1px;
}
#toast.show { opacity: 1; }

/* ============================================================
   后缀价格百科页 / 关于页
   ============================================================ */
.subpage {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 14px 80px 14px;
}

.subpage-header {
  background: var(--search-box-color);
  border-radius: 10px;
  padding: 16px 18px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.subpage-header h1 { font-size: 22px; margin: 0; font-weight: 600; letter-spacing: 1px; }
.subpage-header .sub { font-size: 12.5px; opacity: 0.85; margin-top: 4px; }
.subpage-header a.back {
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 6px;
  padding: 5px 12px;
  white-space: nowrap;
}
.subpage-header a.back:hover { background: rgba(255, 255, 255, 0.14); }

/* 搜索与排序工具条 */
.toolbar {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  flex-wrap: wrap;
}
.toolbar input[type="search"] {
  flex: 1;
  min-width: 180px;
  border: 1px solid #c9d0e2;
  border-radius: 6px;
  font-size: 14px;
  padding: 9px 12px;
  outline: none;
  background: #fff;
}
.toolbar input[type="search"]:focus { border-color: #7f8eb0; }
.toolbar select {
  border: 1px solid #c9d0e2;
  border-radius: 6px;
  font-size: 13.5px;
  padding: 8px;
  background: #fff;
  outline: none;
  cursor: pointer;
}

/* 数据表 */
.data-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table thead th {
  text-align: left;
  color: #7c8499;
  font-weight: 600;
  font-size: 12.5px;
  padding: 10px 12px;
  border-bottom: 1px solid #eceff5;
  background: #fafbfd;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.data-table thead th.sorted { color: #53658d; }
.data-table tbody td { padding: 9px 12px; border-bottom: 1px solid #f3f4f8; color: #333; }
.data-table tbody tr:hover { background: #f7f9fd; }
.data-table .tld-cell { font-weight: 600; color: #3b4664; }
.data-table .price { font-weight: 600; }
.price.cny { color: #2da44e; }
.registrar-cell { display: flex; align-items: center; gap: 7px; min-width: 120px; }
.registrar-cell img { width: 16px; height: 16px; border-radius: 3px; flex-shrink: 0; }
.registrar-cell a { color: #53658d; text-decoration: none; }
.registrar-cell a:hover { text-decoration: underline; }

.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  flex-wrap: wrap;
}
.pager button {
  border: 1px solid #c9d0e2;
  background: #fff;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  color: #53658d;
}
.pager button:hover:not(:disabled) { border-color: #7f8eb0; color: #7f8eb0; }
.pager button:disabled { opacity: 0.4; cursor: default; }
.pager .page-info { font-size: 13px; color: #777; }

.load-note { text-align: center; color: #8a93a8; font-size: 13px; padding: 22px 0; }

/* 关于页 */
.about-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  padding: 22px 24px;
  margin-top: 14px;
  line-height: 1.85;
  font-size: 14px;
  color: #3c4356;
}
.about-card h2 { font-size: 17px; margin: 0 0 10px 0; color: #333; }
.about-card a { color: #53658d; }

.sponsor-total { color: var(--green); font-weight: 700; }

/* 响应式 */
@media (max-width: 640px) {
  .home_label { font-size: 24px; }
  #search_input { height: 43px; font-size: 18px; }
  #search_button { height: 43px; width: 70px; font-size: 14px; }
  .input_btn { margin-top: 35px; }
  #price_box { font-size: 12.5px; }
  #main tbody td { font-size: 13.5px; }
  #main tbody th { width: 70px; font-size: 12px; }
  .subpage { padding: 12px 8px 80px 8px; }
  .registrar-cell span.reg-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ============================================================
   v2.1 新增组件：工具栏 / 工具结果卡 / 批量检测 / 徽章
   ============================================================ */

/* ---- 工具选择栏 ---- */
.tools-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.tool-chip {
  padding: 4px 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
  line-height: 18px;
}
.tool-chip:hover { background: rgba(255, 255, 255, 0.28); }
.tool-chip.on {
  background: #fff;
  color: #53658d;
  border-color: #fff;
  font-weight: 600;
}

/* ---- Whois 结果辅助元素 ---- */
#main .muted-txt { color: #8892a8; font-weight: 400; }
#main .age-text { color: #ffd8a8; font-weight: 600; }
#main .mail-link { color: #a4dcff; text-decoration: none; }
#main .mail-link:hover { text-decoration: underline; }

.xp-badge {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
  margin-left: 4px;
}
.xp-badge.ok { background: rgba(46, 164, 78, 0.22); color: #7ee2a0; }
.xp-badge.warn { background: rgba(210, 153, 34, 0.25); color: #ffd8a8; }
.xp-badge.bad { background: rgba(229, 83, 75, 0.25); color: #ffb3ae; }

.tag.tag-ok { background: rgba(46, 164, 78, 0.22); color: #7ee2a0; }
.tag.tag-no { background: rgba(229, 83, 75, 0.2); color: #ffb3ae; }
.tag.tag-warn { background: rgba(210, 153, 34, 0.25); color: #ffd8a8; }

/* ---- 工具结果卡（IP / 子域名 / 邮箱 / 网站体检） ---- */
.tool-card {
  background: var(--main-bg);
  border-radius: 12px;
  padding: 18px 20px 8px 20px;
  margin-top: 10px;
}
.tool-card-title {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tool-card .dns-table { margin-top: 0; }
.tool-card .dns-table th { width: 96px; }
.tool-card .dns-table td { word-break: break-all; }

.dns-code {
  display: inline-block;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  color: #b8d4ff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 7px;
  word-break: break-all;
}

.mini-btn {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 12px;
  cursor: pointer;
}
.mini-btn:hover { background: rgba(255, 255, 255, 0.28); }

/* ---- 子域名列表 ---- */
.sub-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 6px;
  margin-bottom: 10px;
  max-height: 460px;
  overflow-y: auto;
}
.sub-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12.5px;
  color: #e8eeff;
}
.sub-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-item a {
  color: #a4dcff;
  font-size: 12px;
  text-decoration: none;
  margin-left: 8px;
  flex-shrink: 0;
}
.sub-item a:hover { text-decoration: underline; }

/* ---- 批量检测面板 ---- */
#batch-panel {
  background: var(--main-bg);
  border-radius: 12px;
  padding: 20px 22px;
  margin-top: 10px;
}
.batch-head { margin-bottom: 12px; }
.batch-title { color: #fff; font-size: 15.5px; font-weight: 600; }
.batch-sub { color: #8892a8; font-size: 12.5px; margin-top: 4px; }
#batch-input {
  width: 100%;
  min-height: 120px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  font-size: 13.5px;
  font-family: Consolas, Monaco, monospace;
  padding: 10px 12px;
  resize: vertical;
  outline: none;
}
#batch-input:focus { border-color: #7f8eb0; }
.batch-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px 0;
}
.batch-actions .btn { width: auto; padding: 8px 24px; }
.batch-actions .btn:disabled { opacity: 0.6; cursor: default; }

.batch-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 12px 0;
}
.bs-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 3px 13px;
  color: #dfe7ff;
  font-size: 13px;
}
.bs-item.ok { background: rgba(46, 164, 78, 0.25); color: #7ee2a0; font-weight: 600; }
.bs-item.reg { background: rgba(127, 142, 176, 0.35); color: #c9d4ec; }
.bs-item.err { background: rgba(229, 83, 75, 0.25); color: #ffb3ae; }

.batch-table thead th {
  text-align: left;
  color: #8892a8;
  font-weight: normal;
  font-size: 12.5px;
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.batch-domain {
  color: #26caff;
  cursor: pointer;
  font-weight: 500;
}
.batch-domain:hover { text-decoration: underline; }

/* ---- 响应式补充 ---- */
@media (max-width: 640px) {
  .tools-bar { gap: 5px; }
  .tool-chip { padding: 3px 9px; font-size: 12px; }
  .sub-list { grid-template-columns: 1fr; }
  .tool-card .dns-table th { width: 76px; }
}

/* ============================================================
   价格趋势模态框（v2.1）
   ============================================================ */
.tld-cell.tld-link {
  cursor: pointer;
  text-decoration: underline dotted rgba(91, 141, 239, 0.5);
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.tld-cell.tld-link:hover { color: var(--primary); }

.trend-modal {
  position: fixed;
  inset: 0;
  background: rgba(25, 30, 45, 0.5);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 18px;
}
.trend-modal.show { display: flex; }

.trend-card {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 700px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 18px 20px 16px;
  animation: trendPop 0.18s ease;
}
@keyframes trendPop {
  from { transform: translateY(12px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.trend-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.trend-head h3 { margin: 0; font-size: 20px; color: #2c3654; }
.trend-sub { font-size: 12.5px; color: #8a94ab; margin-top: 2px; }
.trend-close {
  border: none;
  background: #f0f2f7;
  color: #66708a;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s;
}
.trend-close:hover { background: #e2e6ef; color: #333; }

.trend-range { display: flex; gap: 6px; margin-bottom: 12px; }
.range-btn {
  border: 1px solid #dde2ec;
  background: #fff;
  color: #66708a;
  font-size: 12.5px;
  padding: 4px 14px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.15s;
}
.range-btn:hover { border-color: var(--primary); color: var(--primary); }
.range-btn.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.trend-chart-wrap {
  position: relative;
  height: 280px;
  margin-bottom: 10px;
}

.trend-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.trend-stat {
  background: #f2f5fa;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12.5px;
  color: #4a5570;
}

.trend-note {
  font-size: 12.5px;
  color: #98a0b3;
  text-align: center;
  min-height: 18px;
}

@media (max-width: 640px) {
  .trend-chart-wrap { height: 220px; }
  .trend-card { padding: 14px; }
}

/* ================================================================
   v2.2 语言切换按钮 + 待删除域名页
   ================================================================ */

/* 语言切换按钮（首页头部 / 子页头部通用） */
.lang-btn,
.head-icon-btn.lang-toggle {
  width: auto;
  min-width: 30px;
  padding: 0 10px;
  height: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  user-select: none;
  white-space: nowrap;
}
.lang-btn:hover,
.head-icon-btn.lang-toggle:hover { background: rgba(255, 255, 255, 0.15); }

/* 子页头部的语言按钮 */
.subpage-header .head-mini { display: flex; align-items: center; gap: 10px; }
.subpage-lang {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  padding: 5px 12px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  user-select: none;
  transition: background 0.15s;
}
.subpage-lang:hover { background: rgba(255, 255, 255, 0.15); }

/* ---------------- 待删除域名页 ---------------- */
.drops-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 4px;
}
.drop-stat-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 14px 16px;
  backdrop-filter: blur(6px);
}
.drop-stat-card .ds-label { font-size: 12px; opacity: 0.75; letter-spacing: 0.5px; }
.drop-stat-card .ds-value {
  font-size: 26px;
  font-weight: 700;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.drop-stat-card .ds-value.hot { color: #ffd8a8; }

.drop-date-cell { white-space: nowrap; }
.drop-date-cell .dd-main { font-weight: 600; font-variant-numeric: tabular-nums; }
.drop-date-cell .dd-sub { font-size: 11.5px; opacity: 0.7; margin-left: 6px; }
.drop-domain-cell {
  font-weight: 600;
  letter-spacing: 0.2px;
}
.drop-domain-cell .dd-tld { opacity: 0.55; font-weight: 500; }
.drop-action-link {
  font-size: 12.5px;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.drop-action-link:hover { background: rgba(255, 255, 255, 0.15); }

.drops-empty {
  text-align: center;
  padding: 40px 16px 30px;
}
.drops-empty .de-icon { font-size: 34px; opacity: 0.5; }
.drops-empty .de-title { margin-top: 10px; font-size: 15px; font-weight: 600; }
.drops-empty .de-tip { margin-top: 6px; font-size: 12.5px; opacity: 0.65; }

@media (max-width: 640px) {
  .drops-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   内容区块（v2.3 推广位）
   类名使用 cb- 前缀（content block），与站点原生卡片视觉一致，
   避免携带广告特征类名被拦截规则按选择器命中。
   ============================================================ */

/* 容器：默认用于浅色背景（子页面） */
.cb-slot {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 卡片：浅色背景变体（与 about-card 一致的白卡） */
.cb-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  padding: 16px 18px;
  border-left: 4px solid var(--primary);
  color: #3c4356;
  font-size: 14px;
  line-height: 1.7;
}
.cb-card .cb-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.cb-card .cb-text { color: #5a6072; }
.cb-card .cb-img {
  display: block;
  max-width: 100%;
  max-height: 120px;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 8px;
}
.cb-card .cb-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 14px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 12.5px;
  text-decoration: none;
  transition: background 0.15s;
}
.cb-card .cb-btn:hover { background: var(--primary-dark); }

/* 深色背景变体：用于首页查询卡与子页头部（视觉与公告条一致） */
.cb-slot.on-dark { margin-top: 10px; }
.cb-slot.on-dark .cb-card {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  color: #fff;
  border-left-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}
.cb-slot.on-dark .cb-card .cb-title { color: #fff; }
.cb-slot.on-dark .cb-card .cb-text { color: rgba(255, 255, 255, 0.85); }
.cb-slot.on-dark .cb-card .cb-btn {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.cb-slot.on-dark .cb-card .cb-btn:hover { background: rgba(255, 255, 255, 0.32); }

/* 拦截提示条（仅管理端开启后展示，低调样式） */
#cb-notice {
  position: fixed;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  max-width: 92vw;
  padding: 8px 16px;
  border-radius: 18px;
  background: rgba(51, 51, 51, 0.88);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 9000;
  animation: cb-in 0.3s ease;
}
@keyframes cb-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
