/* =====================================================
 * 域名探测 H5 全站样式（双主题：浅色默认 + 深色 data-theme）
 * ===================================================== */

/* ========== 主题变量：浅色 ========== */
:root {
  --bg-page: #F7F8FA;
  --bg-card: #FFFFFF;
  --bg-subtle: #F7F8FA;
  --bg-header: rgba(255, 255, 255, 0.9);

  --border: #E5E6EB;
  --border-faint: #F2F3F5;

  --text-primary: #1D2129;
  --text-secondary: #4E5969;
  --text-tertiary: #86909C;
  --text-placeholder: #C9CDD4;

  --primary: #2B5BE4;
  --primary-bg: #EEF2FD;
  --on-primary: #FFFFFF;
  --grad-a: #4A79F5;
  --grad-b: #2B5BE4;

  --success: #00B42A;
  --success-bg: #E8F8EE;
  --warn: #FF7D00;
  --warn-bg: #FFF3E8;
  --error: #F53F3F;
  --error-bg: #FCE5E5;
  --premium: #722ED1;
  --premium-bg: #F3EDFD;

  --shadow-card: 0 6px 28px rgba(29, 33, 41, 0.06);
  --shadow-primary: 0 8px 20px rgba(43, 91, 228, 0.28);

  --toast-bg: rgba(0, 0, 0, 0.75);
}

/* ========== 主题变量：深色 ========== */
html[data-theme='dark'] {
  --bg-page: #101114;
  --bg-card: #1A1D22;
  --bg-subtle: #24282E;
  --bg-header: rgba(16, 17, 20, 0.85);

  --border: #383D45;
  --border-faint: #262A31;

  --text-primary: #EBEDF0;
  --text-secondary: #A8AEB8;
  --text-tertiary: #7E8791;
  --text-placeholder: #5A626C;

  --primary: #5B85F0;
  --primary-bg: rgba(91, 133, 240, 0.16);
  --grad-a: #3D6EF7;
  --grad-b: #2B5BE4;

  --success: #23C343;
  --success-bg: rgba(35, 195, 67, 0.16);
  --warn: #FF9A2E;
  --warn-bg: rgba(255, 154, 46, 0.16);
  --error: #F76964;
  --error-bg: rgba(247, 105, 101, 0.16);
  --premium: #A871E3;
  --premium-bg: rgba(168, 113, 227, 0.16);

  --shadow-card: 0 6px 28px rgba(0, 0, 0, 0.45);
  --shadow-primary: 0 8px 20px rgba(43, 91, 228, 0.4);

  --toast-bg: rgba(50, 54, 60, 0.95);
}

/* ========== 基础重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* hidden 属性优先级最高（防止组件自身 display 声明覆盖 UA 的 display:none） */
[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

button {
  font-family: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  background: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
}

input {
  font-family: inherit;
  outline: none;
  border: none;
  background: transparent;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

input::placeholder {
  color: var(--text-placeholder);
}

/* ========== 页面骨架：头部 / 内容 / 底部 ========== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
}

.page-main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 32px;
}

/* ========== Toast ========== */
#app-toast {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80%;
  padding: 10px 16px;
  background-color: var(--toast-bg);
  color: #FFFFFF;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 8px;
  text-align: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  word-break: break-all;
}

#app-toast.visible {
  opacity: 1;
}

/* ========== 顶部导航 ========== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-faint);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-inner {
  max-width: 640px;
  margin: 0 auto;
  height: 52px;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4A79F5, #2B5BE4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(43, 91, 228, 0.3);
}

.logo svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.app-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

/* 主题切换按钮（图标显隐由 html[data-mode] 驱动，首屏无闪烁） */
.theme-toggle {
  width: 32px;
  height: 32px;
  margin-right: -6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: background-color 0.15s, color 0.15s;
}

.theme-toggle:hover {
  background-color: var(--border-faint);
  color: var(--text-primary);
}

.theme-toggle:active {
  opacity: 0.7;
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
  display: none;
}

html[data-mode='auto'] .theme-toggle svg[data-icon='auto'],
html[data-mode='light'] .theme-toggle svg[data-icon='light'],
html[data-mode='dark'] .theme-toggle svg[data-icon='dark'] {
  display: block;
}

.theme-toggle svg .stroke-only {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle svg .fill-only {
  fill: currentColor;
  stroke: none;
}

/* 返回按钮 */
.nav-back {
  width: 30px;
  height: 30px;
  margin: 0 6px 0 -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background-color 0.15s;
}

.nav-back:hover {
  background-color: var(--border-faint);
}

.nav-back:active {
  opacity: 0.7;
}

/* ========== 底部 ========== */
.app-footer {
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
}

.footer-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.footer-line {
  font-size: 12px;
  color: var(--text-placeholder);
  line-height: 1.9;
  transition: color 0.25s ease;
}

/* ========== 首页：Hero 区 ========== */
.hero {
  padding: 26px 2px 20px;
}

.hero-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, var(--text-primary) 35%, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ========== 首页：查询表单卡片 ========== */
.form-card {
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 14px 18px 16px;
  box-shadow: var(--shadow-card);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.host-input-wrap {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.host-input {
  flex: 1;
  height: 44px;
  font-size: 15px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding: 0 2px;
  transition: border-color 0.2s, color 0.25s ease;
}

.host-input:focus {
  border-bottom-color: var(--primary);
}

/* iOS 聚焦缩放修复：字号 < 16px 时 Safari/微信会自动放大页面 */
@media (max-width: 959px) {
  .host-input {
    font-size: 16px;
  }
}

.clear-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.clear-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--text-placeholder);
  position: relative;
  transition: background-color 0.15s;
}

.clear-btn:hover .clear-icon {
  background-color: var(--text-tertiary);
}

.clear-icon::before,
.clear-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 1.5px;
  background-color: var(--bg-card);
  transform: translate(-50%, -50%);
}

.clear-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.clear-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.btn {
  width: 100%;
  border-radius: 10px;
  font-size: 15px;
  height: 44px;
  line-height: 44px;
  font-weight: 600;
  margin-top: 8px;
}

/* PC：输入框与按钮合并为一行 */
@media (min-width: 960px) {
  .form-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
  }

  .host-input-wrap {
    flex: 1;
    margin-bottom: 0;
  }

  .btn {
    width: auto;
    flex-shrink: 0;
    margin-top: 0;
    padding: 0 30px;
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: var(--on-primary);
  box-shadow: var(--shadow-primary);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(43, 91, 228, 0.36);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.65;
}

/* ========== 首页：快捷示例 ========== */
.quick-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding: 0 2px;
}

.qt-label {
  font-size: 12px;
  color: var(--text-tertiary);
}

.tag {
  padding: 5px 12px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.tag:hover {
  color: var(--primary);
  border-color: var(--primary);
  background-color: var(--primary-bg);
}

.tag:active {
  opacity: 0.7;
}

/* 最近查询：单个删除 × 与全部删除按钮 */
.qt-clear {
  margin-left: auto;
  padding: 4px 6px;
  font-size: 12px;
  color: var(--text-tertiary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
}

.qt-clear:hover {
  color: var(--error);
}

.qt-tag {
  display: inline-flex;
  align-items: center;
}

.qt-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  font-size: 15px;
  line-height: 1;
  color: var(--text-tertiary);
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s, background-color 0.15s;
}

.qt-tag:hover .qt-del {
  color: var(--error);
}

/* ========== 首页：查询结果 ========== */
.result-card {
  margin-top: 20px;
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--border-faint);
}

.result-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.result-count {
  font-size: 12px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 结果筛选栏（与"查询结果"标题同行，space-between 居中分布） */
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

/* 小屏：筛选 chips 换到标题下方独占一行，避免标题/计数被挤压换行 */
@media (max-width: 640px) {
  .result-head {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .result-title {
    white-space: nowrap;
  }

  .result-head .filter-bar {
    order: 3;
    flex-basis: 100%;
  }
}

.filter-chip {
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-secondary);
  background-color: var(--bg-subtle);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}

.filter-chip:hover {
  color: var(--primary);
}

.filter-chip.active {
  background-color: var(--primary-bg);
  color: var(--primary);
  font-weight: 500;
}

.filter-chip:active {
  opacity: 0.7;
}

/* 筛选空态 */
.filter-empty {
  padding: 22px 0 8px;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

.domain-list {
  display: flex;
  flex-direction: column;
}

.domain-item {
  padding: 13px 0;
  border-bottom: 1px solid var(--border-faint);
}

.domain-item:last-child {
  border-bottom: none;
}

.domain-item-main {
  display: flex;
  align-items: center;
}

.domain-item-name {
  flex: 1;
  font-size: 15px;
  color: var(--text-primary);
  margin-right: 8px;
  word-break: break-all;
  transition: color 0.15s;
}

.item-pending {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.pending-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--text-placeholder);
  margin-right: 5px;
  animation: pending-pulse 1s ease-in-out infinite;
}

.item-pending-text {
  font-size: 12px;
  color: var(--text-placeholder);
}

@keyframes pending-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* 状态徽标（bb- 前缀 + tone） */
.item-badge-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.item-badge {
  display: flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
}

.item-clickable {
  cursor: pointer;
}

.item-clickable:hover .domain-item-name {
  color: var(--primary);
}

.item-clickable:active {
  opacity: 0.7;
}

.item-status-text {
  font-size: 12px;
  font-weight: 500;
}

.bb-primary { background-color: var(--primary-bg); }
.bb-primary .item-status-text { color: var(--primary); }

.bb-success { background-color: var(--success-bg); }
.bb-success .item-status-text { color: var(--success); }

.bb-warn { background-color: var(--warn-bg); }
.bb-warn .item-status-text { color: var(--warn); }

.bb-error { background-color: var(--error-bg); }
.bb-error .item-status-text { color: var(--error); }

.bb-premium { background-color: var(--premium-bg); }
.bb-premium .item-status-text { color: var(--premium); }

.bb-default { background-color: var(--border-faint); }
.bb-default .item-status-text { color: var(--text-secondary); }

/* 加载更多（tier2） */
.batch-more {
  margin-top: 12px;
  text-align: center;
  padding: 10px 0;
  border-radius: 8px;
  background-color: var(--bg-subtle);
  cursor: pointer;
  transition: background-color 0.15s;
}

.batch-more:hover {
  background-color: var(--primary-bg);
}

.batch-more:active {
  opacity: 0.7;
}

.batch-more-text {
  font-size: 13px;
  color: var(--primary);
}

/* 选中行（右侧面板正在展示的域名） */
.domain-item.item-active .domain-item-name {
  color: var(--primary);
  font-weight: 600;
}

/* ========== 首页：查询结果双栏（左列表 + 右详情面板） ========== */
.query-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start; /* 允许右列 sticky */
  margin-top: 20px;
}

/* 双栏容器内去掉列表卡片自带的顶边距（由 gap/margin-top 接管） */
.query-layout .result-card {
  margin-top: 0;
}

/* 首页宽容器：搜索区与双栏同宽对齐（头部/底部同步），取窄表单与宽双栏的中间值 */
.page-wide .page-main,
.page-wide .header-inner,
.page-wide .footer-inner {
  max-width: 880px;
}

/* 右侧详情面板（卡片外观与列表一致；PC 吸顶跟随） */
.detail-panel {
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

@media (min-width: 960px) {
  .detail-panel {
    position: sticky;
    top: 72px;
  }
}

/* 面板内的详情卡片去除外层卡片外观（避免卡片套卡片） */
.detail-panel .detail-card {
  margin-top: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

/* 未选择域名时的占位提示 */
.detail-placeholder {
  padding: 46px 16px;
  text-align: center;
}

.placeholder-icon {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: var(--text-placeholder);
  stroke-width: 1.6;
  stroke-linecap: round;
  margin-bottom: 12px;
}

.placeholder-text {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* 面板工具条：移动端返回列表 + 新窗口打开（PC 仅保留新窗口入口） */
.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.panel-back {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px 4px 4px;
  margin-left: -4px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--primary);
  transition: background-color 0.15s, opacity 0.15s;
}

.panel-back:hover {
  background-color: var(--primary-bg);
}

.panel-back:active {
  opacity: 0.7;
}

.panel-back-arrow {
  font-size: 20px;
  line-height: 1;
  margin-right: 2px;
}

.panel-external {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-tertiary);
  transition: background-color 0.15s, color 0.15s;
}

.panel-external:hover {
  background-color: var(--border-faint);
  color: var(--primary);
}

.panel-external svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 960px) {
  .panel-back {
    display: none;
  }

  .panel-toolbar {
    justify-content: flex-end;
  }
}

/* 面板加载/错误态（复用 pending-pulse 呼吸动画） */
.panel-loading {
  padding: 46px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  animation: pending-pulse 1s ease-in-out infinite;
}

.panel-error {
  padding: 46px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* 移动端：单列，列表与详情互斥显示（点击行进详情，返回按钮回列表） */
@media (max-width: 959px) {
  .query-layout {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    display: none;
  }

  .query-layout.show-detail .query-col-list {
    display: none;
  }

  .query-layout.show-detail .detail-panel {
    display: block;
  }
}

/* ========== 详情页 ========== */
.detail-card {
  margin-top: 8px;
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.domain-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-faint);
  margin-bottom: 4px;
}

.domain-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  margin-right: 10px;
  word-break: break-all;
}

/* 已注册域名标题处的快速打开外链（noopener nofollow，不传递 SEO 权重） */
.domain-external {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  max-width: 100%;
}

.domain-external:hover {
  color: var(--primary);
}

.domain-external svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
}

.domain-external:hover svg {
  opacity: 1;
}

.status-badge {
  display: flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* 缓存信息 + 刷新按钮：置于"注册商"下方，淡色弱化不抢注意力 */
.cache-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
}

.cache-time {
  font-size: 12px;
  color: var(--text-placeholder);
}

/* 刷新缓存按钮：小尺寸、无边框、浅色，hover 仅轻微加深 */
.panel-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  color: var(--text-placeholder);
  opacity: 0.75;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.panel-refresh:hover {
  opacity: 1;
  color: var(--text-secondary);
}

.panel-refresh:active {
  opacity: 0.5;
}

.panel-refresh svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.badge-primary { background-color: var(--primary-bg); }
.badge-success { background-color: var(--success-bg); }
.badge-warn { background-color: var(--warn-bg); }
.badge-premium { background-color: var(--premium-bg); }
.badge-error { background-color: var(--error-bg); }
.badge-default { background-color: var(--border-faint); }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
}

.dot-primary { background-color: var(--primary); }
.dot-success { background-color: var(--success); }
.dot-warn { background-color: var(--warn); }
.dot-premium { background-color: var(--premium); }
.dot-error { background-color: var(--error); }
.dot-default { background-color: var(--text-tertiary); }

.status-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

.badge-success .status-text { color: var(--success); }
.badge-warn .status-text { color: var(--warn); }
.badge-premium .status-text { color: var(--premium); }
.badge-error .status-text { color: var(--error); }
.badge-default .status-text { color: var(--text-secondary); }

/* 信息列表（dl 语义化） */
.info-list {
  padding-top: 12px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-faint);
}

.info-item:last-child { border-bottom: none; }

.info-label {
  font-size: 14px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  margin-right: 20px;
}

.info-value {
  font-size: 15px;
  color: var(--text-primary);
  text-align: right;
  word-break: break-all;
}

/* 提示文案 */
.premium-tip, .unregistered-tip, .source-tip {
  padding-top: 14px;
}

.tip-text {
  font-size: 14px;
  color: var(--warn);
  line-height: 1.6;
}

.premium-tip .tip-text { color: var(--premium); }

.src-text {
  font-size: 12px;
  color: var(--text-placeholder);
}

/* 原始数据折叠区（details/summary） */
.raw-card {
  margin-top: 14px;
  border-top: 1px solid var(--border-faint);
  padding-top: 12px;
}

.raw-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  cursor: pointer;
  list-style: none;
}

.raw-toggle::-webkit-details-marker {
  display: none;
}

.raw-toggle::marker {
  content: '';
}

.raw-toggle:hover .raw-toggle-text {
  color: var(--primary);
}

.raw-toggle-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.raw-arrow {
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--text-tertiary);
  border-right: 2px solid var(--text-tertiary);
  transform: rotate(135deg);
  transition: transform 0.25s;
  margin-top: -2px;
}

.raw-card[open] .raw-arrow {
  transform: rotate(-45deg);
  margin-top: 2px;
}

.raw-body {
  margin-top: 8px;
  background-color: var(--bg-subtle);
  border-radius: 8px;
  padding: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.raw-text {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.6;
  word-break: break-all;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: Menlo, Consolas, 'Courier New', monospace;
}

/* ========== SEO 静态内容区 ========== */
.seo-intro {
  margin-top: 28px;
  padding: 0 2px;
}

.seo-intro h2 {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.seo-intro p {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.8;
  margin-bottom: 6px;
}

.seo-link {
  color: var(--primary);
  text-decoration: none;
}

.seo-link:hover {
  text-decoration: underline;
}

/* ========== 404 错误页 ========== */
.error-404 {
  margin-top: 80px;
  text-align: center;
}

.error-code {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--border);
  margin-bottom: 12px;
}

.error-text {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.8;
  margin-bottom: 16px;
}
