/* ============================================================
 *  域名展示系统 · 样式表
 *  设计基调：浅色 / 专业 / 信任感，移动端优先适配
 * ============================================================ */

:root {
  --bg: #f5f7fa;
  --bg-soft: #eef2f7;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --border: #e4e9f0;
  --border-strong: #d5dce7;

  --brand: #2563eb;
  --brand-deep: #1d4ed8;
  --brand-soft: #eff5ff;
  --violet: #7c3aed;
  --gold: #b45309;
  --gold-soft: #fff7ed;
  --success: #059669;
  --danger: #dc2626;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .06), 0 12px 32px rgba(15, 23, 42, .06);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, .08), 0 24px 64px rgba(15, 23, 42, .08);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.icon { flex: none; vertical-align: -0.15em; }

/* ============================ 导航 ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }

.nav__logo {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
}

.nav__name { font-size: 16px; letter-spacing: .01em; }

.nav__links { display: flex; align-items: center; gap: 6px; }

.nav__links > a,
.nav__links > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-2);
  background: none;
  border: 0;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.nav__links > a:hover,
.nav__links > button:hover { background: var(--bg-soft); color: var(--text); }
.nav__links > a.is-active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }

.nav__cta {
  background: var(--text) !important;
  color: #fff !important;
  font-weight: 600;
  margin-left: 6px;
}
.nav__cta:hover { background: #1e293b !important; }
.nav__cta svg { flex: none; }

/* ============================ Hero ============================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 40px;
  background:
    radial-gradient(1000px 420px at 12% -10%, #e5edff 0%, transparent 62%),
    radial-gradient(900px 380px at 92% 0%, #f2e9ff 0%, transparent 60%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero__inner { position: relative; text-align: center; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .8);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}
.hero__eyebrow .dot-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .16);
}

.hero__title {
  margin: 20px 0 12px;
  font-size: clamp(26px, 5.2vw, 42px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.02em;
}

.hero__sub { margin: 0 auto; max-width: 620px; color: var(--text-2); font-size: clamp(14px, 2.4vw, 16px); }

/* ==================== 主卡片（域名 + 价格） ==================== */
.panel {
  position: relative;
  margin: 34px auto 0;
  max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.panel__head {
  padding: 26px 28px 22px;
  border-bottom: 1px dashed var(--border);
  text-align: center;
}

.panel__label {
  display: block;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.domain-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.domain-name {
  font-family: var(--font-mono);
  font-size: clamp(24px, 6.4vw, 46px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  word-break: break-all;
  line-height: 1.15;
}

.btn-copy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  transition: all .18s;
}
.btn-copy:hover { border-color: var(--brand); color: var(--brand); }
.btn-copy.is-copied { border-color: var(--success); color: var(--success); background: #ecfdf5; }

.panel__interest {
  margin: 18px auto 0;
  max-width: 560px;
  font-size: clamp(14px, 2.6vw, 17px);
  color: var(--text-2);
}
.panel__interest strong { color: var(--text); font-family: var(--font-mono); font-weight: 700; }

.panel__body { padding: 24px 28px; }

.price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold-soft), #fffbeb);
  border: 1px solid #fde68a;
}

.price-row__label { font-size: 13px; color: var(--gold); font-weight: 600; }

.price-row__value {
  font-size: clamp(24px, 5.4vw, 34px);
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.price-row__note {
  font-size: 12px;
  font-style: normal;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(180, 83, 9, .1);
  color: var(--gold);
}

.price-row--ask {
  background: var(--brand-soft);
  border-color: #c7dbff;
}
.price-row--ask .price-row__label,
.price-row--ask .price-row__value { color: var(--brand); }
.price-row--ask .price-row__value { font-size: clamp(20px, 4.4vw, 26px); }

.price-row--sold {
  background: var(--bg-soft);
  border-color: var(--border);
}
.price-row--sold .price-row__value { color: var(--text-3); font-size: clamp(20px, 4vw, 24px); }

/* 行动按钮 */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .16s, box-shadow .16s, background .16s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--violet));
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .28);
}
.btn--primary:hover { box-shadow: 0 10px 26px rgba(37, 99, 235, .34); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--text-3); background: var(--surface-2); }

/* ==================== 联系方式 ==================== */
.contact { padding: 64px 0 8px; }

.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 3.6vw, 28px);
  font-weight: 800;
  letter-spacing: -.01em;
}
.section-head p { margin: 0; color: var(--text-2); font-size: 15px; }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, border-color .18s;
}
.contact-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.contact-card__icon {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
.contact-card__icon.is-green { background: #ecfdf5; color: var(--success); }
.contact-card__icon.is-dark { background: #f1f5f9; color: var(--text); }

.contact-card__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.contact-card__label { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.contact-card__value {
  font-weight: 600;
  font-size: 15px;
  word-break: break-all;
  line-height: 1.45;
}
a.contact-card__value:hover { color: var(--brand); text-decoration: underline; }

.contact-card__copy {
  margin-left: auto;
  flex: none;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-2);
  transition: all .18s;
}
.contact-card__copy:hover { color: var(--brand); border-color: var(--brand); }

/* ==================== 交易流程 ==================== */
.process { padding: 64px 0; }

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step {
  position: relative;
  padding: 22px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.step p { margin: 0; font-size: 13.5px; color: var(--text-2); }

/* ==================== 推荐域名 ==================== */
.recommend { padding: 8px 0 72px; }

.dgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.dcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.dcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #c7dbff;
}
.dcard.is-sold { opacity: .62; }
.dcard.is-sold:hover { transform: none; }

.dcard__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.dcard__domain {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  word-break: break-all;
  letter-spacing: -.01em;
}

.dcard__tag {
  padding: 2px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
}

.dcard__desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
  flex: 1;
}

.dcard__bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.price {
  font-size: 19px;
  font-weight: 800;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.price__note {
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--gold-soft);
  color: var(--gold);
}
.price--ask { color: var(--brand); font-size: 16px; }
.price--off { color: var(--text-3); font-size: 15px; }

.badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid transparent;
}
.badge--onsale { background: #ecfdf5; color: var(--success); border-color: #a7f3d0; }
.badge--sold { background: #f1f5f9; color: var(--text-3); border-color: var(--border); }
.badge--reserved { background: #fffbeb; color: var(--gold); border-color: #fde68a; }

.dcard__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  color: var(--text-3);
}

/* ==================== 列表页 ==================== */
.list-hero {
  padding: 48px 0 26px;
  background:
    radial-gradient(900px 340px at 20% -20%, #e5edff 0%, transparent 60%),
    radial-gradient(800px 300px at 88% -10%, #f2e9ff 0%, transparent 58%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.list-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4.6vw, 36px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.list-hero p { margin: 0; color: var(--text-2); font-size: 15px; }

.stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.stat__num { font-size: 26px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat__label { font-size: 13px; color: var(--text-2); }

.toolbar {
  padding: 22px 0 6px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.search {
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
}
.search input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.search .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--text-2);
  transition: all .18s;
}
.chip:hover { border-color: var(--text-3); }
.chip.is-active { background: var(--text); border-color: var(--text); color: #fff; font-weight: 600; }

.results-bar { padding: 14px 0 16px; font-size: 13.5px; color: var(--text-3); }

.empty {
  padding: 72px 24px;
  text-align: center;
  color: var(--text-3);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.list-body { padding-bottom: 72px; }

/* ==================== 页脚 ==================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__brand { margin: 0; font-weight: 700; font-size: 14.5px; }
.footer__sub { margin: 4px 0 0; font-size: 13px; color: var(--text-3); }
.footer__links { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.footer__links a:hover { color: var(--brand); }
.footer__links .dot { color: var(--border-strong); }
.footer__icp { text-align: center; margin: 16px 0 0; font-size: 12.5px; color: var(--text-3); }

/* ==================== 响应式 ==================== */
@media (max-width: 900px) {
  .process__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { height: 58px; padding: 0 16px; }
  .nav__name { display: none; }
  .nav__links > a,
  .nav__links > button { padding: 7px 10px; font-size: 13.5px; }
  .nav__cta span { display: none; }

  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 28px; }
  .panel__head { padding: 22px 18px 18px; }
  .panel__body { padding: 18px; }
  .actions { grid-template-columns: 1fr; }

  .contact, .process { padding: 44px 0; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero__eyebrow { font-size: 12px; padding: 5px 11px; }
  .dgrid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .stats { gap: 18px; }
  .stat__num { font-size: 22px; }
  .contact-card { padding: 15px; }
  .toolbar { gap: 10px; }
  .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ==================== 二维码弹窗 ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; animation: modalFadeIn .2s ease; }
@keyframes modalFadeIn { from { opacity: 0 } to { opacity: 1 } }

.modal__mask {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: 20px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .24);
  animation: modalPop .24s cubic-bezier(.18, .89, .32, 1.28);
}
@keyframes modalPop {
  from { transform: scale(.94); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--text-2);
  display: grid;
  place-items: center;
  transition: background .18s, color .18s;
}
.modal__close:hover { background: var(--bg-soft); color: var(--text); }
.modal__close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.modal__title { margin: 0 0 4px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.modal__domain {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-2);
  font-weight: 600;
}

.modal__qrbox {
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  background: #fff;
  position: relative;
}
.modal__qr { width: 100%; height: 100%; object-fit: contain; display: block; }
.modal__qr-missing {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-3);
  font-size: 13px;
  gap: 6px;
}
.modal__qr-missing code {
  background: var(--bg-soft);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11.5px;
}
.modal__qrbox.is-missing .modal__qr { display: none; }
.modal__qrbox.is-missing .modal__qr-missing { display: flex; }

.modal__tip {
  margin: 0 0 16px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

.modal__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  background: var(--surface-2);
  border-radius: 12px;
  margin-bottom: 14px;
}
.modal__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.modal__copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-2);
  transition: color .18s, border-color .18s;
}
.modal__copy:hover { color: var(--brand); border-color: var(--brand); }
.modal__copy.is-copied { color: var(--success); border-color: var(--success); }

.modal__alt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: 8px;
  transition: color .18s;
}
.modal__alt:hover { color: var(--brand); text-decoration: underline; }

@media (max-width: 480px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal__panel {
    padding: 24px 20px 18px;
    border-radius: 20px 20px 0 0;
    max-width: none;
    animation: modalUp .26s ease;
  }
  @keyframes modalUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .modal__qrbox { width: 200px; height: 200px; }
}
