/* name.fanda.cn —— 域名展示页样式 */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg:        #060810;
  --bg-soft:   #0B1020;
  --panel:     rgba(255, 255, 255, .045);
  --panel-hi:  rgba(255, 255, 255, .075);
  --line:      rgba(255, 255, 255, .10);
  --line-hi:   rgba(255, 201, 74, .38);
  --text:      #EEF2F8;
  --muted:     #8B95A7;
  --accent:    #FFC94A;
  --accent-2:  #FFB020;
  --radius:    18px;
}

html { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- 背景光效 ---------- */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 480px at 50% -8%, rgba(255, 201, 74, .16), transparent 62%),
    radial-gradient(620px 420px at 88% 14%, rgba(64, 120, 255, .12), transparent 66%),
    radial-gradient(520px 380px at 6% 88%, rgba(255, 120, 60, .07), transparent 68%);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 32%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 32%, #000 0%, transparent 72%);
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 0;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
}
.brand em {
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ghost {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: .22s ease;
  white-space: nowrap;
}
.ghost:hover {
  color: var(--accent);
  border-color: var(--line-hi);
  background: rgba(255, 201, 74, .06);
}

/* ---------- 详情主区 ---------- */
.stage {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 44px 0 46px;
}
.hero { text-align: center; max-width: 860px; width: 100%; min-width: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 7px 16px 7px 13px;
  border: 1px solid rgba(255, 201, 74, .26);
  background: rgba(255, 201, 74, .07);
  border-radius: 999px;
  margin-bottom: 20px;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 201, 74, .6);
  animation: pulse 2.1s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 201, 74, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 201, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 201, 74, 0); }
}

h1.domain {
  margin: 0;
  font-size: clamp(34px, 7.4vw, 78px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.035em;
  word-break: break-all;
  /* 域名原文大小写原样显示，不做任何转换 */
  text-transform: none;
  background: linear-gradient(178deg, #FFFFFF 8%, #C9D3E4 52%, #7E8CA3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 14px 40px rgba(120, 160, 255, .16));
}

/* 一口价：不加框、不加底色，只留文字 */
.price-line {
  margin-top: 20px;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
}
.price-label {
  font-size: 12.5px;
  letter-spacing: .18em;
  color: rgba(255, 201, 74, .78);
  text-transform: uppercase;
}
.price {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* 简介排在价格上方时的间距 */
.intro {
  margin: 16px auto 0;
  max-width: 620px;
  font-size: 15.5px;
  line-height: 1.95;
  color: #A9B4C6;
  white-space: pre-wrap;
}
/* 简介与下方价格之间的紧凑间距 */
.intro + .price-line { margin-top: 12px; }

/* 价格为 0 时不显示价格胶囊，标题与下方内容补足间距 */
h1.domain.no-price { margin-bottom: 32px; }

/* ---------- 联系卡片 ---------- */
.contact-card {
  margin: 26px auto 0;
  width: 100%;
  max-width: 620px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 22px;
  text-align: left;
}
.contact-main { flex: 1 1 auto; min-width: 0; max-width: 100%; }
.contact-label {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
/* 用 grid 三列共享列宽：标签 / 值 / 复制按钮，两行按钮自动左对齐 */
.contact-rows {
  display: grid;
  grid-template-columns: max-content minmax(0, max-content) max-content;
  justify-content: start;
  align-items: center;
  gap: 10px 12px;
  font-size: 15px;
  line-height: 1.5;
  min-width: 0;
  max-width: 100%;
}
.ck {
  min-width: 32px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}
.cv {
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.cv a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, .2);
  padding-bottom: 1px;
  transition: .2s ease;
}
.cv a:hover { color: var(--accent); border-bottom-color: rgba(255, 201, 74, .55); }

/* 旧的单行联系方式（兜底保留） */
.contact-value {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.copy-btn {
  flex: 0 0 auto;
  margin-left: 0;
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: .2s ease;
}
.copy-btn:hover { color: var(--text); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); }
.copy-btn.done { color: #7BE0A6; border-color: rgba(123, 224, 166, .4); background: rgba(123, 224, 166, .1); }

/* 微信二维码 */
.qr-box {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.qr-box img {
  width: 106px;
  height: 106px;
  display: block;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 5px;
}
.qr-tip {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .06em;
}
.contact-card.has-qr { max-width: 660px; }

.actions { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 列表页 ---------- */
.list-head { padding: 26px 0 30px; text-align: center; }
.list-head .kicker {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.list-head h1 {
  margin: 0;
  font-size: clamp(30px, 5.2vw, 50px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.18;
  background: linear-gradient(178deg, #FFF 10%, #A9B6CB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.list-head p {
  margin: 18px auto 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding-bottom: 72px;
}
.card {
  display: block;
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: .26s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px 160px at 20% -20%, rgba(255, 201, 74, .16), transparent 70%);
  opacity: 0;
  transition: opacity .26s ease;
  pointer-events: none;
}
.card:hover {
  border-color: var(--line-hi);
  background: var(--panel-hi);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
}
.card:hover::after { opacity: 1; }

.card .d {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.02em;
  text-transform: none;
  color: #F3F6FB;
  word-break: break-all;
  margin-bottom: 12px;
}
.card .p {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.card .i {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 201, 74, .1);
  border: 1px solid rgba(255, 201, 74, .26);
  padding: 3px 8px;
  border-radius: 999px;
}

/* ---------- 空状态 ---------- */
.empty {
  text-align: center;
  padding: 74px 24px 90px;
}
.empty h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #E7ECF5;
}
.empty p {
  margin: 0 auto;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

/* 未收录域名：感谢关注（黄色大字） */
.empty h2.nf-title {
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--accent);
  margin-bottom: 18px;
  text-shadow: 0 10px 34px rgba(255, 201, 74, .22);
}

/* ---------- 页脚 ---------- */
footer {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
footer .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #5E6878;
}
footer a { color: #5E6878; text-decoration: none; }
footer a:hover { color: var(--muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .topbar { padding-top: 14px; }
  .stage { padding: 30px 0 34px; }
  .badge { margin-bottom: 18px; }
  .price-line { margin-top: 18px; padding: 0; gap: 9px; }
  .intro { margin-top: 12px; font-size: 14.5px; line-height: 1.9; }
  .intro + .price-line { margin-top: 10px; }
  .contact-card { margin-top: 24px; padding: 18px; flex-direction: column; align-items: stretch; gap: 16px; }
  .qr-box { align-self: flex-start; }
  .ck { min-width: 30px; }
  .copy-btn { padding: 5px 10px; font-size: 11.5px; }
  .grid { grid-template-columns: 1fr; gap: 13px; }
  .list-head { padding: 18px 0 24px; }
  .list-head p { margin-top: 12px; }
}

/* ---------- 页脚（备案号 / 站点声明） ---------- */
.foot {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 6px 24px 12px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}
@media (max-width: 560px) {
  .foot { padding: 4px 20px 10px; font-size: 13px; }
}
