/* 域名售卖页面样式，覆盖页面布局、域名信息、售价及状态标签。 */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #777777;
  --line: #eeeeee;
  --red: #d7000f;
  font-family:
    Inter,
    "Noto Sans SC",
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) 0;
}

.hero {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(38px, 6vw, 64px);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lang-toggle {
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: var(--ink);
  color: var(--bg);
  outline: none;
}

.kicker,
h2 {
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.92;
  font-weight: 820;
  letter-spacing: 0;
}

h1 span {
  color: var(--red);
}

.summary {
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  white-space: nowrap;
}

.domain-panel {
  width: 100%;
}

.panel-head {
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.domain-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.domain-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  min-height: 220px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.04);
}

.domain-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px 10px;
}

.domain-item-sold .domain-name {
  text-decoration: line-through;
}

.sold-placeholder {
  display: block;
  width: 100%;
  max-width: 140px;
  height: auto;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
}

.domain-name {
  margin: 0;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.02;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.domain-name span {
  color: inherit;
}

.domain-expiry {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.domain-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.purchase-chip {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 0;
}

.domain-status-sold {
  color: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.domain-status-personal {
  color: #24634f;
  background: #f0f8f5;
  border-color: #b8d9ce;
}

.domain-desc {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.domain-purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.domain-price {
  color: var(--ink);
  font-size: 16px;
  font-weight: 720;
  white-space: nowrap;
}

.purchase-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--bg);
  font-size: 13px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.purchase-link:hover,
.purchase-link:focus-visible {
  color: var(--ink);
  background: var(--bg);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.footer-links {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-items a {
  color: var(--muted);
  font-size: 13px;
  transition: color 160ms ease;
}

.footer-items a:hover,
.footer-items a:focus-visible {
  color: var(--ink);
  outline: none;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 32px, 1180px);
  }

  .domain-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .domain-item {
    min-height: 210px;
    padding: 16px;
  }

  .domain-purchase {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
