@import url('https://fontsapi.zeoseven.com/184/main/result.css');

/* ===== 基础设计系统（来自 hyporos.com） ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-light: #444444;
  --border: #d0d0d0;
  --box-border: #b8b8b8;
  --box-bg: #f7f7f7;
  --faint: #777777;
  --select-bg: #1a1a1a;
  --select-text: #ffffff;
}

html.dark {
  --bg: #0c0c0c;
  --text: #f0f0f0;
  --text-light: #bbbbbb;
  --border: #2a2a2a;
  --box-border: #3a3a3a;
  --box-bg: #161616;
  --faint: #999999;
  --select-bg: #f0f0f0;
  --select-text: #0c0c0c;
}

::selection {
  background: var(--select-bg);
  color: var(--select-text);
}

::-moz-selection {
  background: var(--select-bg);
  color: var(--select-text);
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "LXGW 975 Yuan SC 400W", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  padding: 2rem 1.5rem;
}

/* 单页容器：内容短时垂直居中，内容长时自动顶部对齐不裁切 */
.page {
  width: 100%;
  max-width: 760px;
  margin: auto;
}

/* ===== 顶部 ===== */
.hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-head h1 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
}

.lang-btn {
  height: 32px;
  padding: 0 0.7rem;
  border: 1px solid var(--box-border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  border-color: var(--text);
  outline: none;
}

/* 返回主页：复用 .lang-btn 芯片样式，仅补充图标对齐与去下划线 */
.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.6rem;
}

.home-btn svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.home-btn:hover,
.home-btn:focus-visible {
  text-decoration: none;
  outline: none;
}

.theme-toggle {
  width: 32px;
  height: 32px;
  flex: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ===== 提示框 ===== */
.notice {
  border: 1px solid var(--box-border);
  border-radius: 8px;
  background: var(--box-bg);
  padding: 0.85rem 1rem;
  margin-bottom: 1.3rem;
  transition: border-color 0.2s;
}

.notice:hover {
  border-color: var(--text);
}

.notice p {
  font-size: 0.83rem;
  color: var(--text);
  line-height: 1.7;
  opacity: 0.9;
}

.notice-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.9rem;
}

.mail-link {
  font-weight: 600;
  word-break: break-all;
}

.qq-num {
  opacity: 0.9;
}

/* ===== 分组标题 ===== */
.panel-title {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

/* ===== 域名列表 ===== */
.domain-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.domain-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--box-border);
  border-radius: 8px;
  background: var(--box-bg);
  transition: border-color 0.2s;
}

.domain-item:hover {
  border-color: var(--text);
}

.domain-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.domain-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  overflow-wrap: anywhere;
}

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

.domain-expiry {
  font-size: 0.7rem;
  padding: 0.14rem 0.5rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--faint);
  line-height: 1.4;
  white-space: nowrap;
}

.domain-desc {
  flex: 1;
  font-size: 0.82rem;
  color: var(--text);
  opacity: 0.85;
  line-height: 1.65;
}

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

.domain-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.purchase-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.26rem 0.8rem;
  border: 1px solid var(--box-border);
  border-radius: 6px;
  background: var(--bg);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s;
}

.purchase-link:hover,
.purchase-link:focus-visible {
  border-color: var(--text);
  text-decoration: none;
  outline: none;
}

.status-chip {
  font-size: 0.72rem;
  padding: 0.26rem 0.8rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-light);
  font-weight: 600;
  line-height: 1.5;
}

.sold-mark {
  display: block;
  width: 100%;
  max-width: 84px;
  height: auto;
  margin-top: auto;
  margin-left: auto;
  opacity: 0.9;
}

/* ===== 页脚 ===== */
.footer {
  margin-top: 1.6rem;
  text-align: center;
}

.footer-note {
  font-size: 0.75rem;
  color: var(--faint);
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

.footer .beian {
  font-size: 0.75rem;
  color: var(--faint);
  opacity: 0.8;
  transition: color 0.2s;
}

.footer .beian:hover {
  color: var(--text);
  text-decoration: none;
}

/* ===== 响应式 ===== */
@media (max-width: 620px) {
  body {
    padding: 1.2rem 1rem;
  }

  .hero-head h1 {
    font-size: 1.4rem;
  }

  .domain-list {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .notice {
    padding: 0.7rem 0.85rem;
    margin-bottom: 1rem;
  }

  .notice p {
    font-size: 0.8rem;
  }

  .domain-item {
    padding: 0.8rem 0.85rem;
  }
}

@media (max-width: 400px) {
  .theme-toggle {
    width: 28px;
    height: 28px;
  }

  .theme-toggle svg {
    width: 18px;
    height: 18px;
  }

  .lang-btn {
    height: 28px;
    padding: 0 0.55rem;
    font-size: 0.7rem;
  }
}
