/* =========================================================
   域名出售站点 · 前台样式
   设计基调：浅色、留白充足、蓝紫渐层品牌色、卡片式信息密度
   ========================================================= */

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #fbfcfe;
  --ink: #0c1424;
  --ink-soft: #35415a;
  --muted: #6b7688;
  --line: #e6eaf2;
  --line-strong: #d6dceb;
  --brand: #3255f5;
  --brand-deep: #1f37c9;
  --brand-soft: #eef2ff;
  --violet: #7c5cff;
  --green: #0f9d6e;
  --green-soft: #e8f8f1;
  --amber: #b7791f;
  --amber-soft: #fdf5e4;
  --gray-soft: #f1f3f8;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(12, 20, 36, 0.04), 0 1px 3px rgba(12, 20, 36, 0.03);
  --shadow-md: 0 4px 12px rgba(12, 20, 36, 0.05), 0 12px 32px rgba(12, 20, 36, 0.06);
  --shadow-lg: 0 12px 32px rgba(18, 32, 68, 0.1), 0 32px 64px rgba(18, 32, 68, 0.12);
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 统一处理 hidden 属性，避免被组件的 display 规则覆盖 */
[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

p {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.mono {
  font-family: var(--mono);
  font-variant-ligatures: none;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(680px 380px at 12% -8%, rgba(50, 85, 245, 0.1), transparent 65%),
    radial-gradient(560px 320px at 88% 2%, rgba(124, 92, 255, 0.09), transparent 62%);
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 247, 251, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(230, 234, 242, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--violet));
  box-shadow: 0 6px 16px rgba(50, 85, 245, 0.28);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 15.5px;
  letter-spacing: -0.01em;
}

.brand-text small {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-soft);
}

.header-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.18s ease;
}

.header-nav a:hover {
  color: var(--brand);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.lang-switch:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.lang-switch .is-active {
  color: var(--brand);
}

.lang-divider {
  opacity: 0.4;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: 74px 0 46px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(50, 85, 245, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(680px 300px at 50% 0%, #000 10%, transparent 78%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(50, 85, 245, 0.18);
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand-deep);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(15, 157, 110, 0.16);
}

.hero-title {
  margin: 22px auto 0;
  max-width: 780px;
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-title em {
  display: block;
  font-style: normal;
  background: linear-gradient(96deg, var(--brand) 12%, var(--violet) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
}

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 34px auto 0;
  padding: 0 16px;
  height: 54px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search:focus-within {
  border-color: rgba(50, 85, 245, 0.6);
  box-shadow: 0 0 0 4px rgba(50, 85, 245, 0.1), var(--shadow-md);
}

.search-icon {
  width: 19px;
  height: 19px;
  color: var(--muted);
  flex: 0 0 auto;
}

.hero-search input {
  flex: 1;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
}

.hero-search input::placeholder {
  color: #9aa4b8;
}

.hero-search input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  border: 0;
  background: var(--gray-soft);
  color: var(--muted);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.search-clear:hover {
  color: var(--ink);
}

/* ---------------- Section ---------------- */

.section {
  position: relative;
  padding: 30px 0;
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: 26px;
  letter-spacing: -0.025em;
}

.section-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------------- Toolbar ---------------- */

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

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

.chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 550;
  transition: all 0.16s ease;
}

.chip:hover {
  border-color: rgba(50, 85, 245, 0.45);
  color: var(--brand);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #dfe4ef;
  transition: background 0.2s ease;
  flex: 0 0 auto;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(12, 20, 36, 0.2);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch input:checked + .switch-track {
  background: var(--brand);
}

.switch input:checked + .switch-track::after {
  transform: translateX(16px);
}

.switch input:focus-visible + .switch-track {
  box-shadow: 0 0 0 3px rgba(50, 85, 245, 0.24);
}

.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.select-wrap select {
  appearance: none;
  padding: 7px 32px 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  outline: 0;
}

.select-wrap select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(50, 85, 245, 0.12);
}

.select-wrap svg {
  position: absolute;
  right: 10px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}

/* ---------------- Domain grid ---------------- */

.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(324px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease,
    border-color 0.2s ease;
  animation: card-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(50, 85, 245, 0.28);
}

.card.is-sold {
  background: var(--surface-soft);
}

.card.is-sold:hover {
  transform: none;
  border-color: var(--line);
}

.card.is-reserved {
  border-color: rgba(183, 121, 31, 0.28);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.domain-name {
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
  word-break: break-all;
  color: var(--ink);
}

.domain-name .tld {
  color: var(--brand);
}

.card.is-sold .domain-name {
  color: var(--muted);
}

.card.is-sold .domain-name .tld {
  color: #9aa4b8;
}

.badge {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.badge.available {
  background: var(--green-soft);
  color: var(--green);
}

.badge.sold {
  background: var(--gray-soft);
  color: var(--muted);
}

.badge.reserved {
  background: var(--amber-soft);
  color: var(--amber);
}

.card-star {
  position: absolute;
  top: -1px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 3px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(120deg, var(--brand), var(--violet));
  color: #fff;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 16px;
}

.price {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.price small {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.price-note {
  font-size: 12px;
  color: var(--muted);
}

.meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--muted);
}

.meta-label svg {
  width: 12px;
  height: 12px;
  opacity: 0.75;
}

.meta-value {
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.meta-value.is-empty {
  color: #a7b0c2;
}

.card-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  margin-top: 18px;
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #4a5cff);
  color: #fff;
  box-shadow: 0 6px 16px rgba(50, 85, 245, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 20px rgba(50, 85, 245, 0.3);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  border-color: rgba(50, 85, 245, 0.5);
  color: var(--brand);
}

/* 「立即购买」：跳转外部购买页，用绿色与蓝色「询价」区分 */
.btn-buy {
  background: linear-gradient(135deg, #0f9d6e, #12b981);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(15, 157, 110, 0.22);
}

.btn-buy:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 20px rgba(15, 157, 110, 0.3);
  color: #fff;
}

.btn-buy:visited {
  color: #fff;
}

.btn-buy svg {
  width: 14px;
  height: 14px;
}

.btn-block {
  width: 100%;
  margin-top: 10px;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.card-actions .btn {
  flex: 1;
}

/* ---------------- Empty state ---------------- */

.empty-state {
  text-align: center;
  padding: 64px 20px 80px;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.empty-icon svg {
  width: 24px;
  height: 24px;
}

.empty-state h3 {
  font-size: 17px;
}

.empty-state p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------------- Contact ---------------- */

.contact-section {
  padding-top: 56px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 0.18s ease;
}

.contact-card:hover {
  border-color: rgba(50, 85, 245, 0.35);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-body {
  min-width: 0;
}

.contact-label {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-value {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-note {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(50, 85, 245, 0.05);
  border: 1px solid rgba(50, 85, 245, 0.12);
  color: var(--ink-soft);
  font-size: 13.5px;
}

/* ---------------- Process ---------------- */

.process-section {
  padding-bottom: 70px;
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  counter-reset: step;
}

.process-list li {
  position: relative;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.process-index {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.08em;
}

.process-list h3 {
  margin-top: 8px;
  font-size: 15.5px;
}

.process-list p {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  padding: 30px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 650;
  font-size: 14.5px;
}

.footer-note {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 520px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-meta a:hover {
  color: var(--brand);
}

/* ---------------- Modal ---------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 36, 0.42);
  backdrop-filter: blur(3px);
  animation: fade-in 0.18s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
}

.modal-card {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--gray-soft);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.modal-close:hover {
  background: #e8ebf3;
  color: var(--ink);
}

.modal-card h3 {
  font-size: 19px;
}

.modal-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.modal-sub .mono {
  color: var(--brand);
  font-weight: 600;
}

#inquiryForm {
  margin-top: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 13px;
}

.field > span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(50, 85, 245, 0.12);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-error {
  margin-bottom: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: #fff1f1;
  border: 1px solid #ffd7d7;
  color: #b42318;
  font-size: 13px;
}

.form-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.success-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.success-icon svg {
  width: 26px;
  height: 26px;
}

#inquirySuccessView p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------------- Responsive ---------------- */

/* 锚点跳转时给吸顶栏留出空间，避免标题被挡住 */
#domains,
#contact {
  scroll-margin-top: 76px;
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 28px);
  }

  /* ---- 顶部固定栏：移动端同样显示「域名列表 / 联系我们」 ---- */
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    height: 56px;
    gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .brand-mark {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .brand-mark svg {
    width: 18px;
    height: 18px;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-text strong {
    display: block;
    max-width: 8em;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-text small {
    display: none;
  }

  .header-nav {
    flex: 0 0 auto;
    gap: 12px;
    font-size: 13px;
  }

  .header-nav a {
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    white-space: nowrap;
  }

  .lang-switch {
    gap: 2px;
    padding: 4px 8px;
    font-size: 12px;
  }

  .hero {
    padding: 32px 0 22px;
  }

  .hero-title {
    margin-top: 16px;
    font-size: 30px;
  }

  .hero-sub {
    margin-top: 12px;
    font-size: 14.5px;
  }

  .hero-search {
    height: 48px;
    margin-top: 22px;
  }

  .section {
    padding: 22px 0;
  }

  .toolbar {
    gap: 12px;
    margin-bottom: 16px;
  }

  .chips {
    gap: 6px;
  }

  .toolbar-right {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  /* 触控友好：移动端按钮最小 40px 高 */
  .btn {
    min-height: 42px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .domain-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding: 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .header-nav {
    gap: 9px;
    font-size: 12.5px;
  }

  .brand-text strong {
    max-width: 5.5em;
    font-size: 13px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-search {
    height: 46px;
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.skeleton {
  background: linear-gradient(90deg, #eef1f7 25%, #f6f8fc 37%, #eef1f7 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
  border-radius: 6px;
  color: transparent !important;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.chip-count {
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(12, 20, 36, 0.06);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.chip.is-active .chip-count {
  background: rgba(255, 255, 255, 0.22);
}
