:root {
  --primary: #1677ff;
  --primary-dark: #0958d9;
  --accent: #ff6a00;
  --accent-hover: #e55f00;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --hero-dark: #0b1220;
  --hero-mid: #152238;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

.container-main {
  width: min(1200px, 92vw);
  max-width: 100%;
  margin: 0 auto;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.site-logo:hover { color: var(--primary); }
.site-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #69b1ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  margin-left: 20px;
}
.nav-menu a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.nav-menu a:hover { background: #f1f5f9; color: var(--primary); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  border: 1px solid var(--border);
  background: #fff;
}
.cart-link:hover { border-color: var(--primary); color: var(--primary); }
.cart-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 119, 255, .35);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 106, 0, .35);
}
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 10px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ========== Hero (首页) ========== */
.hero-section {
  position: relative;
  padding: 72px 0 88px;
  background: linear-gradient(160deg, var(--hero-dark) 0%, var(--hero-mid) 45%, #1a3a5c 100%);
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(22, 119, 255, .25), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 106, 0, .08), transparent);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: 13px;
  margin-bottom: 20px;
}
.hero-title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.hero-desc {
  margin: 0 auto 36px;
  max-width: 640px;
  color: rgba(255,255,255,.75);
  font-size: 16px;
}
.search-wrap {
  max-width: 780px;
  margin: 0 auto;
}
.search-box {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  gap: 6px;
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 20px;
  font-size: 17px;
  border-radius: 10px;
  min-width: 0;
}
.search-box input::placeholder { color: #9ca3af; }
.search-box .btn-search {
  padding: 0 32px;
  border-radius: 10px;
  white-space: nowrap;
}
.tld-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.tld-chip {
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.tld-chip:hover, .tld-chip.active {
  background: rgba(22, 119, 255, .35);
  border-color: rgba(22, 119, 255, .5);
  color: #fff;
}

/* 查价结果 */
.result-panel {
  max-width: 780px;
  margin: -40px auto 0;
  position: relative;
  z-index: 10;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
  display: none;
  border: 1px solid var(--border);
}
.result-panel.show { display: block; }
.result-panel .domain-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.result-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.result-price small { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.result-actions { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }

/* 多后缀批量查价结果 */
.search-results-panel {
  max-width: 960px;
  margin: -32px auto 0;
  position: relative;
  z-index: 10;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-lg);
  display: none;
  border: 1px solid var(--border);
  overflow: hidden;
}
.search-results-panel.show { display: block; }
.search-results-hd {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.search-results-hd h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.search-results-hd .keyword {
  color: var(--primary);
}
.search-results-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.search-results-table {
  width: 100%;
  border-collapse: collapse;
}
.search-results-table th,
.search-results-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.search-results-table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.search-results-table tr:last-child td { border-bottom: none; }
.search-results-table .domain-cell {
  font-weight: 700;
  color: var(--text);
}
.search-results-table .domain-cell .suffix {
  color: var(--primary);
}
.search-results-table .price-cell {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.search-results-table .price-cell.muted {
  color: var(--text-muted);
  font-weight: 400;
}
.search-results-table tr.row-unavailable {
  background: #fafafa;
}
.search-results-table tr.row-unavailable .domain-cell {
  color: var(--text-muted);
}
.search-results-ft {
  padding: 14px 24px;
  background: #f8fafc;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.search-results-ft .reg-years-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search-results-ft select {
  width: auto;
  min-width: 72px;
  padding: 6px 10px;
  font-size: 13px;
}
@media (max-width: 768px) {
  .search-results-table thead { display: none; }
  .search-results-table tr {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
  }
  .search-results-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: none;
  }
  .search-results-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    margin-right: 12px;
  }
  .search-results-table td.td-action {
    justify-content: flex-end;
    padding-top: 10px;
  }
  .search-results-table td.td-action::before { display: none; }
}

/* ========== TLD 价格区 ========== */
.section { padding: 64px 0; }
.section-gray { background: #fff; }
.section-title {
  text-align: center;
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 40px;
  font-size: 15px;
}
.tld-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.tld-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all .25s;
  cursor: pointer;
}
.tld-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.tld-card .ext {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.tld-card .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}
.tld-card .price span { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.tld-card .hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ========== 特性 ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow .25s;
}
.feature-item:hover { box-shadow: var(--shadow); }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e6f4ff, #bae0ff);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-item h4 { margin: 0 0 8px; font-size: 1.05rem; }
.feature-item p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ========== FAQ ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-q::after { content: "+"; color: var(--primary); font-size: 1.25rem; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  display: none;
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ========== 内页 ========== */
.page-banner {
  background: linear-gradient(135deg, var(--hero-dark), var(--hero-mid));
  padding: 40px 0 48px;
  color: #fff;
}
.page-banner h1 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.page-banner p { margin: 8px 0 0; opacity: .75; font-size: 14px; }
.page-body { padding: 32px 0 56px; }
.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 24px;
}
.panel-card h3 {
  margin: 0 0 20px;
  font-size: 1.1rem;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, .15);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left;
  padding: 12px 14px;
  background: #f8fafc;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafbfc; }
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 48px; opacity: .3; margin-bottom: 12px; }

/* 用户中心快捷入口 */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: all .2s;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}
.quick-item:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.quick-item .qi-icon { font-size: 28px; }
.balance-display {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin: 8px 0 20px;
}

.auth-wrap {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}
.auth-card {
  width: min(420px, 92vw);
  background: var(--bg-card);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.auth-card h2 { margin: 0 0 8px; text-align: center; font-size: 1.5rem; }
.auth-card .sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.status-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.status-ok { background: #ecfdf5; color: #059669; }
.status-warn { background: #fff7ed; color: #ea580c; }
.status-fail { background: #fef2f2; color: #dc2626; }

/* ========== Footer ========== */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,.65);
  padding: 48px 0 24px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.footer-col h5 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.footer-col a {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: 13px;
  margin-bottom: 8px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* Toast */
.toast-wrap {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 24px;
  border-radius: 8px;
  background: #1f2937;
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.toast-wrap.show { opacity: 1; }
.toast-wrap.error { background: #dc2626; }
.toast-wrap.success { background: #059669; }

.oauth-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.oauth-btn {
  min-width: 72px; padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: #fff; text-align: center; text-decoration: none;
}
.oauth-qq { background: #12b7f5; }
.oauth-wx { background: #07c160; }
.oauth-github { background: #24292f; }
.oauth-google { background: #4285f4; }
.oauth-divider { text-align: center; color: var(--text-muted); font-size: 13px; margin: 16px 0; position: relative; }
.oauth-divider::before, .oauth-divider::after {
  content: ''; position: absolute; top: 50%; width: 30%; height: 1px; background: var(--border);
}
.oauth-divider::before { left: 0; }
.oauth-divider::after { right: 0; }

.site-wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

/* ========== 移动端导航 ========== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  z-index: 1001;
  opacity: 0;
  transition: opacity .3s;
}
.nav-overlay.is-open { display: block; opacity: 1; }

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100%;
  height: 100dvh;
  background: #fff;
  z-index: 1002;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -8px 0 30px rgba(0,0,0,.12);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  overflow-y: auto;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.nav-drawer-title { font-weight: 700; font-size: 1rem; }
.nav-drawer-close {
  width: 40px;
  height: 40px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}
.nav-menu--mobile {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  gap: 4px;
}
.nav-menu--mobile a {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.nav-drawer-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  padding: 16px 20px 6px;
}
.nav-drawer-label:first-child { padding-top: 8px; }
.nav-drawer-console { font-weight: 600 !important; color: var(--primary) !important; }
.hero-console-link {
  margin: 0 0 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
}
.hero-console-link a { color: #93c5fd; font-weight: 600; }
.hero-console-link a:hover { color: #fff; }

.nav-menu--mobile a:hover,
.nav-menu--mobile a:active {
  background: #f1f5f9;
  color: var(--primary);
}
body.nav-open { overflow: hidden; }

.header-auth { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.hide-xs { display: inline-flex; }

/* 表格横向滚动 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  padding: 0 4px;
}
.table-responsive .data-table { min-width: 520px; }

/* ========== 响应式：平板 ========== */
@media (max-width: 992px) {
  .container-main { width: min(1200px, 94vw); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tld-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ========== 响应式：手机 ========== */
@media (max-width: 768px) {
  .container-main { width: 100%; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

  .header-inner {
    height: 56px;
    gap: 8px;
  }
  .nav-menu--desktop { display: none !important; }
  .nav-toggle { display: flex; }

  .site-logo-text {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
  }
  .site-logo { gap: 8px; min-width: 0; }
  .logo-icon { width: 32px; height: 32px; font-size: 16px; flex-shrink: 0; }

  .header-actions { gap: 6px; }
  .cart-link { padding: 8px 10px; }
  .cart-text { display: none; }
  .header-auth .btn { padding: 8px 12px; font-size: 13px; }
  .header-auth .btn-primary { padding: 8px 14px; }
  .btn-user {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hide-xs { display: none !important; }

  .hero-section { padding: 48px 0 64px; }
  .hero-desc { font-size: 14px; margin-bottom: 28px; padding: 0 8px; }
  .hero-tag { font-size: 12px; padding: 5px 12px; }

  .search-box {
    flex-direction: column;
    padding: 10px;
    gap: 8px;
  }
  .search-box input {
    padding: 14px 16px;
    font-size: 16px; /* 防止 iOS 缩放 */
  }
  .search-box .btn-search {
    width: 100%;
    padding: 14px 20px;
  }
  .tld-quick { gap: 8px; margin-top: 16px; }
  .tld-chip { padding: 6px 12px; font-size: 13px; }

  .result-panel {
    margin: -24px 16px 0;
    padding: 20px 18px;
  }
  .result-price { font-size: 1.65rem; }
  .result-actions { flex-direction: column; }
  .result-actions .btn { width: 100%; }

  .section { padding: 40px 0; }
  .section-title { font-size: 1.35rem; }
  .tld-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tld-card { padding: 16px 12px; }
  .tld-card .ext { font-size: 1.25rem; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-item { padding: 22px 18px; }

  .page-banner { padding: 28px 0 32px; }
  .page-banner h1 { font-size: 1.25rem; }
  .page-body { padding: 20px 0 40px; }
  .panel-card { padding: 18px 16px; border-radius: 10px; }
  .form-row { grid-template-columns: 1fr; }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar .btn { width: 100%; justify-content: center; }

  .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .quick-item { padding: 16px 10px; font-size: 13px; }
  .balance-display { font-size: 2rem; }

  .auth-wrap { padding: 24px 0; min-height: auto; }
  .auth-card { padding: 28px 22px; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding: 36px 0 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }

  .toast-wrap {
    top: auto;
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 16px;
    right: 16px;
    transform: none;
    text-align: center;
  }

  .btn-lg { padding: 14px 20px; font-size: 15px; }
  .btn { min-height: 44px; }

  .order-toolbar { align-items: flex-start !important; }
  .order-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
  }
  .table-cards-sm .data-table tbody td[data-label="操作"] {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .table-cards-sm .data-table tbody td[data-label="操作"] .btn {
    margin: 2px 0 2px 8px;
  }
}

/* ========== 响应式：小屏手机 ========== */
@media (max-width: 480px) {
  .site-logo-text { max-width: 90px; font-size: 0.9rem; }
  .header-auth .btn-ghost:not(.btn-user) { display: none; }
  .header-auth .btn-primary { font-size: 12px; padding: 8px 12px; }

  .hero-title { font-size: 1.5rem; }
  .tld-grid { grid-template-columns: repeat(2, 1fr); }
  .tld-card .price { font-size: 1.1rem; }

  .table-responsive .data-table { min-width: 480px; font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 12px; }

  /* 小屏表格卡片化（带 data-label 的单元格） */
  .table-cards-sm .data-table { min-width: 0; }
  .table-cards-sm .data-table thead { display: none; }
  .table-cards-sm .data-table tbody tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px 0;
    background: #fff;
  }
  .table-cards-sm .data-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    text-align: right;
  }
  .table-cards-sm .data-table tbody td:last-child { border-bottom: none; }
  .table-cards-sm .data-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    text-align: left;
    flex-shrink: 0;
  }
  .table-cards-sm .data-table tbody td .btn { width: auto; }
}

.impersonate-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #fef3c7, #fde68a);
  color: #92400e;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #f59e0b;
}
.impersonate-bar .btn { flex-shrink: 0; }

.notify-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}
.notify-switch input { width: 18px; height: 18px; }

.ref-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.ref-stat-item { text-align: center; min-width: 100px; }
.ref-stat-val { display: block; font-size: 1.75rem; font-weight: 800; color: var(--accent); }
.ref-stat-label { font-size: 13px; color: var(--text-muted); }

.notice-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  border-radius: 8px;
}
.notice-link:hover { color: var(--primary); background: #f1f5f9; }
.notice-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  color: #fff;
  background: #ef4444;
  border-radius: 8px;
}

.announce-bar {
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.announce-bar--info { background: #eff6ff; color: #1e40af; }
.announce-bar--warning { background: #fffbeb; color: #92400e; }
.announce-bar--important { background: #fef2f2; color: #991b1b; }
.announce-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.announce-bar-text { flex: 1; color: inherit; text-decoration: none; }
.announce-bar-text:hover { text-decoration: underline; }
.announce-bar-close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: .6;
  padding: 0 4px;
}
.announce-bar-close:hover { opacity: 1; }

.announce-list { display: flex; flex-direction: column; gap: 12px; }
.announce-item {
  display: block;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .2s;
}
.announce-item:hover { box-shadow: var(--shadow); }
.announce-item--unread { border-left: 4px solid var(--primary); }
.announce-item-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.announce-item-title { font-weight: 700; font-size: 1rem; }
.announce-item-preview { margin: 0 0 8px; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.announce-item-time { font-size: 12px; color: var(--text-muted); }
.announce-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #dbeafe;
  color: #1d4ed8;
}
.announce-badge-top { background: #fef3c7; color: #b45309; }
.announce-detail-body { font-size: 15px; line-height: 1.8; word-break: break-word; }

.page-banner--market { background: linear-gradient(135deg, #0b1220 0%, #1e3a5f 100%); color: #fff; }
.page-banner--market h1, .page-banner--market p { color: #fff; }
.page-banner--market p { opacity: .85; }

.market-promo-section { padding: 32px 0; background: linear-gradient(90deg, #fff7ed, #fff); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.market-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.market-promo-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.market-toolbar { margin-bottom: 20px; padding: 16px !important; }
.market-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.market-search .form-control { flex: 1; min-width: 160px; max-width: 320px; }
.market-search select.form-control { max-width: 180px; flex: 0 1 180px; }

.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .2s, transform .2s;
}
.market-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.market-card-domain { font-size: 1.1rem; font-weight: 700; word-break: break-all; color: var(--text); }
.market-card-price { font-size: 14px; color: var(--text-muted); }
.market-card-price span { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.market-card-meta { font-size: 13px; color: var(--text-muted); }
.market-card-intro { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; flex: 1; }
.btn-block { width: 100%; margin-top: auto; }
.pagination-wrap { text-align: center; padding: 16px 0; }
.pagination-wrap ul { display: inline-flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.pagination-wrap li a, .pagination-wrap li span { display: block; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); font-size: 14px; }
.pagination-wrap li.active span { background: var(--primary); color: #fff; border-color: var(--primary); }
