/* =========================================================
   3348.cc · 站点主样式（Apple Store 设计语言）
   依赖：tokens.css（所有变量在那边定义）
   结构：导航 → Hero → 精选 → 筛选 → 商品网格 → 服务 → 页脚
   ========================================================= */

/* ---------- 顶部导航（毛玻璃） ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
@media (prefers-color-scheme: dark) {
  .header { background: rgba(0, 0, 0, 0.72); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--nav-h);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text-primary);
}
.brand:hover { text-decoration: none; opacity: 0.72; }

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--text-primary);
  color: var(--bg-page);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand-title small {
  font-size: 0.72em;
  font-weight: 400;
  color: var(--text-tertiary);
  margin-left: 1px;
}
.brand-sub {
  display: none; /* 导航栏空间有限，副标题在小屏信息层级里已冗余 */
}

/* 导航链接 */
.header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-shrink: 0;
  margin-left: 8px;
}
.header-nav a,
.header-nav button {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0;
  transition: color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.header-nav a:hover,
.header-nav button:hover { color: var(--text-primary); text-decoration: none; }

/* 搜索：胶囊输入，聚焦时展开 */
.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  max-width: 300px;
  margin-left: auto;
  height: 36px;
  padding: 0 4px 0 12px;
  border-radius: var(--r-pill);
  background: var(--bg-subtle);
  border: 1px solid transparent;
  transition: max-width var(--dur) var(--ease),
              background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.search:focus-within {
  max-width: 420px;
  background: var(--bg-elevated);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}
.search-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--text-tertiary);
}
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--text-primary);
}
.search input::placeholder { color: var(--text-tertiary); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-btn {
  flex-shrink: 0;
  height: 28px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: background-color var(--dur-fast) var(--ease);
}
.search-btn:hover { background: var(--blue-hover); }

/* 搜索联想 */
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 300px;
  padding: 6px;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 120;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}
.suggest-item:hover,
.suggest-item.active { background: var(--bg-subtle); }
.suggest-name {
  font-size: var(--fs-sm);
  color: var(--text-primary);
  font-family: var(--font-display);
}
.suggest-name .hl {
  color: var(--blue);
  font-weight: 600;
}
.suggest-price {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.suggest-empty {
  padding: 18px 12px;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}
.suggest-more {
  margin-top: 4px;
  padding: 10px 12px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

/* 语言切换 */
.lang-switcher { position: relative; flex-shrink: 0; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-soft);
  background: transparent;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.lang-btn:hover { background: var(--bg-subtle); color: var(--text-primary); }
.lang-btn .lang-arrow {
  font-size: 8px;
  opacity: 0.6;
  transition: transform var(--dur-fast) var(--ease);
}
.lang-btn.open .lang-arrow { transform: rotate(180deg); }
.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  padding: 6px;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  z-index: 120;
}
.lang-menu.show { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--r-xs);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  text-align: left;
  transition: background-color var(--dur-fast) var(--ease);
}
.lang-option:hover { background: var(--bg-subtle); color: var(--text-primary); }
.lang-option.active { color: var(--blue); font-weight: 500; }
.lang-flag-icon {
  min-width: 20px;
  font-size: 11px;
  text-align: center;
  color: var(--text-tertiary);
}

/* ---------- 分类：分段控件 ---------- */
.navbar {
  background: var(--bg-page);
  border-bottom: 1px solid var(--line-soft);
}
.nav-wrap {
  display: flex;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}
.cat-list { width: auto; }
.cat { font-size: 13px; }

/* 二级 / 三级筛选：胶囊 chip */
.sub-navbar,
.tertiary-navbar {
  display: none;
  background: var(--bg-page);
  border-bottom: 1px solid var(--line-soft);
}
.sub-navbar.open,
.tertiary-navbar.open { display: block; }

.sub-nav-wrap,
.tertiary-nav-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-nav-wrap::-webkit-scrollbar,
.tertiary-nav-wrap::-webkit-scrollbar { display: none; }

.sub-cat-list,
.tertiary-cat-list {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.sub-cat,
.tertiary-cat {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease);
}
.sub-cat:hover,
.tertiary-cat:hover { border-color: var(--text-tertiary); color: var(--text-primary); }
.sub-cat.active,
.tertiary-cat.active {
  border-color: transparent;
  background: var(--text-primary);
  color: var(--bg-page);
  font-weight: 500;
}
.tertiary-label {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  text-align: center;
  background: var(--bg-page);
  overflow: hidden;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  margin-bottom: 22px;
  max-width: 900px;
}
.hero h1 em {
  font-style: normal;
  color: var(--text-tertiary);
}
.hero-desc {
  max-width: 620px;
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 64px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line-soft);
  width: 100%;
  max-width: 720px;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.hero-stats span {
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

/* Hero 右侧装饰（旧结构兼容，默认隐藏） */
.hero-right { display: none; }

/* ---------- 精选域名（feature tile） ---------- */
.feature { padding-bottom: 8px; }

.feature-tile {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding: 56px 60px;
  border-radius: var(--r-xl);
  background: var(--bg-subtle);
  overflow: hidden;
  min-height: 300px;
}
.feature-tile:empty { display: none; }
.feature-copy .badge { margin-bottom: 16px; }
.feature-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.feature-copy p {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 420px;
}
.feature-visual {
  text-align: right;
  font-family: var(--font-display);
}
.feature-visual .fv-domain {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  word-break: break-all;
  color: var(--text-primary);
}
.feature-visual .fv-domain .ext { color: var(--text-tertiary); font-weight: 400; }
.feature-visual .fv-price {
  margin-top: 14px;
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.feature-visual .fv-price strong { color: var(--text-primary); font-weight: 600; }

/* ---------- 筛选 / 排序条（吸顶） ---------- */
.filter {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
@media (prefers-color-scheme: dark) {
  .filter { background: rgba(0, 0, 0, 0.78); }
}
.filter-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.sort-group { flex: 0 1 auto; }
.sort { font-size: 13px; }

/* 数字域名筛选行：在筛选条内独占一行 */
.filter-inner > .sub-navbar,
.filter-inner > .tertiary-navbar {
  flex: 0 0 100%;
  width: 100%;
  border-bottom: none;
  background: transparent;
}
.filter-inner > .sub-navbar .sub-nav-wrap,
.filter-inner > .tertiary-nav-wrap { padding-top: 6px; padding-bottom: 2px; }

.price-filter { position: relative; flex-shrink: 0; min-width: 0; }
.price-filter select {
  height: 34px;
  padding: 0 30px 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.price-filter::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 1.5px solid var(--text-tertiary);
  border-bottom: 1.5px solid var(--text-tertiary);
  transform: rotate(45deg);
  pointer-events: none;
}
.price-filter select:hover { border-color: var(--text-tertiary); color: var(--text-primary); }
.price-filter select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }

.result-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.result-count strong { color: var(--text-primary); font-weight: 500; }

/* ---------- 主体 ---------- */
.main { padding: 32px 0 56px; }
.main-inner { display: block; }

/* 商品网格 */
.domain-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  align-content: start;
}

/* ---------- 域名卡片 ---------- */
.domain-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  border-radius: var(--r-lg);
  background: var(--bg-subtle);
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.domain-card:hover {
  text-decoration: none;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.domain-card:active { transform: translateY(0) scale(0.995); }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
  margin-bottom: 14px;
}
.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: var(--blue-soft);
  color: var(--blue);
}
.card-tag.tag-hot { background: rgba(215, 0, 21, 0.08); color: var(--red); }
.card-tag.tag-new { background: rgba(29, 138, 78, 0.1); color: var(--green); }

.fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: -6px;
  border-radius: 50%;
  color: var(--line);
  transition: color var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.fav-btn svg { width: 17px; height: 17px; }
.fav-btn:hover { background: var(--line-soft); color: var(--text-tertiary); }
.fav-btn.active { color: #f0a020; }
.fav-btn.active:hover { color: #d98b12; }

.domain-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  word-break: break-all;
  margin-bottom: 10px;
}
.domain-name .ext {
  color: var(--text-tertiary);
  font-weight: 400;
}
.domain-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.meta-chip {
  padding: 2px 8px;
  border-radius: var(--r-xs);
  background: var(--bg-page);
  font-size: 11px;
  color: var(--text-tertiary);
}

.domain-desc {
  flex: 1;
  min-height: 42px;
  margin-bottom: 20px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}
.price-cur {
  font-size: 14px;
  color: var(--text-secondary);
}
.price-num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: var(--blue);
  white-space: nowrap;
}
.visit-btn svg {
  width: 12px;
  height: 12px;
  transition: transform var(--dur-fast) var(--ease);
}
.domain-card:hover .visit-btn svg { transform: translateX(2px); }

/* 加载更多 */
.load-more-btn {
  display: block;
  margin: 40px auto 0;
  height: 44px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  transition: all var(--dur-fast) var(--ease);
}
.load-more-btn:hover {
  background: var(--bg-subtle);
  border-color: transparent;
}

/* ---------- 空状态 ---------- */
.empty { padding: 96px 20px; text-align: center; }
.empty-inner { display: inline-block; }
.empty-inner p {
  font-size: 1.3125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.empty-inner small { font-size: var(--fs-sm); color: var(--text-tertiary); }

/* ---------- 服务区（原侧栏） ---------- */
.support {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
}
.panel {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--bg-subtle);
}
.panel h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}
.feature-list li svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--green);
}

.contact-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--line-soft);
}
.contact-line:last-child { border-bottom: none; }
.contact-line strong {
  color: var(--text-primary);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.hot-item,
.fav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
  transition: color var(--dur-fast) var(--ease);
  font-family: var(--font-display);
}
.hot-item:last-child,
.fav-item:last-child { border-bottom: none; }
.hot-item:hover,
.fav-item:hover { color: var(--blue); }
.hot-item span,
.fav-item .fav-price {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.hot-empty,
.fav-empty {
  padding: 10px 0;
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}

/* ---------- 页脚（深色品牌锚点） ---------- */
.footer {
  margin-top: 72px;
  background: var(--bg-dark);
  color: var(--text-on-dark-dim);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 40px;
}
.footer h4 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: 0.01em;
}
.footer p,
.footer li {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-on-dark-dim);
}
.footer ul li {
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}
.footer ul li:hover { color: var(--text-on-dark); }
.footer a { color: var(--text-on-dark-dim); }
.footer a:hover { color: var(--text-on-dark); text-decoration: none; }
.copyright {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 300;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  background: rgba(29, 29, 31, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  box-shadow: var(--shadow-md);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 悬浮客服 ---------- */
.float-ball {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--blue);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-soft);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.float-ball:hover { transform: scale(1.06); box-shadow: var(--shadow-lg); }
.float-ball:active { transform: scale(0.96); }
.float-ball svg { width: 22px; height: 22px; }
.fb-ring, .fb-dot { display: none; }

/* ---------- 联系弹窗（Apple sheet 风格） ---------- */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.contact-modal.open { visibility: visible; pointer-events: auto; }
.cm-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.contact-modal.open .cm-mask { opacity: 1; }
.cm-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 440px;
  max-width: calc(100% - 32px);
  padding: 40px 32px 24px;
  border-radius: var(--r-xl);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.96);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.contact-modal.open .cm-panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.cm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  transition: background-color var(--dur-fast) var(--ease);
}
.cm-close:hover { background: var(--line-soft); }
.cm-close svg { width: 14px; height: 14px; }
.cm-panel h3 {
  margin-bottom: 24px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}
.cm-list { display: flex; flex-direction: column; gap: 4px; }
.cm-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px;
  border-radius: var(--r-md);
  text-align: left;
  color: inherit;
  transition: background-color var(--dur-fast) var(--ease);
}
.cm-item:hover { background: var(--bg-subtle); text-decoration: none; }
.cm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--blue-soft);
  color: var(--blue);
  flex-shrink: 0;
}
.cm-icon svg { width: 19px; height: 19px; }
.cm-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cm-label { font-size: 12px; color: var(--text-tertiary); }
.cm-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cm-arrow {
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
}
.cm-arrow svg { width: 14px; height: 14px; }
.cm-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ---------- 客服聊天 ---------- */
.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 95;
}
.chat-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.32);
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.chat-toggle:hover { transform: scale(1.06); background: var(--blue-hover); }
.chat-toggle:active { transform: scale(0.96); }
.chat-icon { display: flex; }
.chat-icon svg { width: 22px; height: 22px; }
.chat-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-window {
  position: absolute;
  right: 0;
  bottom: 68px;
  display: none;
  flex-direction: column;
  width: 344px;
  height: 460px;
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.chat-widget.open .chat-window { display: flex; }
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.chat-header h3 {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0;
}
.chat-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}
.chat-close svg { width: 12px; height: 12px; }
.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
  background: var(--bg-page);
}
.chat-welcome { padding: 20px 0; text-align: center; color: var(--text-tertiary); }
.chat-welcome p { font-size: var(--fs-sm); margin-bottom: 4px; }
.chat-msg-wrap { display: flex; gap: 8px; width: 100%; }
.chat-msg-wrap.customer { flex-direction: row-reverse; }
.chat-msg-content { display: flex; flex-direction: column; max-width: 76%; }
.chat-msg-wrap.customer .chat-msg-content { align-items: flex-end; }
.chat-msg-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 9px;
  font-weight: 600;
}
.chat-msg {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg-wrap.service .chat-msg {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.chat-msg-wrap.customer .chat-msg {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg-time { margin-top: 4px; font-size: 10px; color: var(--text-tertiary); }
.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
}
.chat-input-area input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  font-size: 13px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.chat-input-area input:focus {
  border-color: var(--blue);
  background: var(--bg-page);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.chat-input-area button {
  flex-shrink: 0;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.chat-input-area button:hover { background: var(--blue-hover); }

/* ---------- 响应式 ---------- */
@media (max-width: 1068px) {
  .header-nav { display: none; }
  .hero { padding: 64px 0 56px; }
  .feature-tile { grid-template-columns: 1fr; gap: 28px; padding: 40px; }
  .feature-visual { text-align: left; }
  .support { grid-template-columns: 1fr 1fr; }
  .support .panel:first-child { grid-column: 1 / -1; }
}

@media (max-width: 833px) {
  :root { --nav-h: 50px; }
  .search { max-width: 200px; }
  .search:focus-within { max-width: 100%; }
  .domain-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .hero-stats { gap: 40px; }
  .hero-stats strong { font-size: 32px; }
  .filter { position: static; }
  .filter-inner { gap: 10px; }
  .result-count { width: 100%; margin-left: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .header-inner { gap: 10px; }
  .search {
    max-width: none;
    flex: 1;
    height: 34px;
    padding-left: 10px;
  }
  .search-btn { display: none; }
  .brand-title { font-size: 16px; }
  .lang-btn { padding: 0 9px; }
  .lang-btn .lang-current-label { display: none; }
  .nav-wrap { padding-top: 10px; padding-bottom: 10px; }
  .hero { padding: 48px 0 40px; }
  .hero-desc { font-size: 1rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .hero-stats { gap: 28px; margin-top: 36px; padding-top: 28px; }
  .hero-stats strong { font-size: 26px; }
  .feature-tile { padding: 32px 24px; border-radius: var(--r-lg); }
  .domain-list { grid-template-columns: 1fr; gap: 14px; }
  .domain-card { padding: 22px 20px 18px; }
  .domain-name { font-size: 23px; }
  .support { grid-template-columns: 1fr; }
  .main { padding: 20px 0 40px; }
  .float-ball { right: 16px; bottom: 16px; width: 48px; height: 48px; }
  .chat-widget { right: 16px; bottom: 76px; }
  .chat-toggle { width: 48px; height: 48px; }
  .chat-window {
    width: calc(100vw - 32px);
    height: min(460px, 70vh);
    right: -8px;
  }
  .cm-panel { padding: 34px 22px 20px; }
  .cm-panel h3 { font-size: 1.25rem; }
  .suggest-item { padding: 9px 10px; }
}

/* ---------- RTL ---------- */
html[dir="rtl"] .search-icon { transform: scaleX(-1); }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .chat-widget { right: auto; left: 24px; }
html[dir="rtl"] .chat-window { right: auto; left: 0; }
html[dir="rtl"] .float-ball { right: auto; left: 24px; }
html[dir="rtl"] .result-count { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .visit-btn svg { transform: scaleX(-1); }
html[dir="rtl"] .domain-card:hover .visit-btn svg { transform: scaleX(-1) translateX(2px); }

/* ---------- 打印 ---------- */
@media print {
  .header, .navbar, .sub-navbar, .tertiary-navbar, .filter, .support,
  .float-ball, .chat-widget, .contact-modal, .toast, .feature { display: none !important; }
  .domain-list { grid-template-columns: repeat(2, 1fr) !important; }
  .domain-card { border: 1px solid #ccc !important; box-shadow: none !important; break-inside: avoid; }
  .hero { padding: 20px 0 !important; }
  .footer { background: none !important; color: #000 !important; }
}
