/* =========================================================
   3348.cc · 精品域名交易平台
   设计风格：深墨绿 + 古铜金 · 高端精品收藏感
   主色：#0F2A2A 深墨绿   强调：#B8860B 古铜金
   背景：#FAF8F5 米白     文字：#1A2332 深墨色
   ========================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1A2332;
  --ink-2: #374151;
  --muted: #6B7280;
  --line: #E5E1DB;
  --line-soft: #F0EDE6;
  --bg: #FAF8F5;
  --bg-2: #F3F0EA;
  --card: #FFFFFF;
  --brand: #0F2A2A;
  --brand-2: #1A3D3D;
  --brand-soft: #E0EBEB;
  --accent: #B8860B;
  --accent-2: #D4A853;
  --accent-soft: #F5EEDC;
  --ok: #2D7A58;
  --warn: #B45309;
  --danger: #B91C1C;
  --radius: 2px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 3px rgba(15,42,42,.08);
  --shadow-md: 0 4px 16px rgba(15,42,42,.10);
  --shadow-lg: 0 12px 40px rgba(15,42,42,.14);
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --font-num: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
}

html, body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
input, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- 顶部信息栏 ---------- */
.topbar {
  background: var(--brand);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  letter-spacing: .5px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
}
.topbar-text { color: var(--accent-2); }
.topbar-contact { color: rgba(255,255,255,.6); }

/* ---------- 头部 ---------- */
.header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 76px;
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-logo {
  width: 56px;
  height: 40px;
  background: var(--brand);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 1px;
  font-family: var(--font-num);
  border: 1px solid rgba(184,134,11,.3);
  overflow: hidden;
}
.brand-title {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--brand);
  letter-spacing: 1px;
}
.brand-title .ext { font-size: 1.1em; }
.brand-title small {
  color: var(--accent);
  font-weight: 500;
  font-size: 13px;
  margin-left: 2px;
}
.brand-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* 搜索 */
.search {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px 2px 2px 16px;
  transition: all .2s;
  max-width: 520px;
  position: relative;
}
.search:focus-within {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,134,11,.1);
}
.search-icon { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  padding: 10px 12px;
  color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.search-btn {
  background: var(--brand);
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 10px 24px;
  border-radius: var(--radius);
  transition: all .2s;
  font-family: var(--font-serif);
}
.search-btn:hover { background: var(--brand-2); }

/* 搜索联想 */
.search-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 4px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.suggest-item {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f5f5f5;
  transition: background .15s;
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover, .suggest-item.active {
  background: #f8f9fa;
}
.suggest-name { font-size: 14px; color: var(--text); }
.suggest-name .hl { color: var(--brand); font-weight: 600; }
.suggest-price { font-size: 13px; color: var(--brand); font-weight: 600; }
.suggest-empty {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.suggest-more {
  padding: 10px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
}

/* ---------- 分类导航 ---------- */
.navbar {
  background: var(--card);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-wrap { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.nav-wrap::-webkit-scrollbar { display: none; }
.cat-list {
  display: flex;
  gap: 4px;
  padding: 12px 0;
  white-space: nowrap;
}
.cat {
  padding: 8px 20px;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  transition: all .2s;
  white-space: nowrap;
  position: relative;
  font-family: var(--font-serif);
  letter-spacing: .5px;
}
.cat:hover { color: var(--brand); }
.cat.active {
  color: var(--brand);
  font-weight: 600;
}
.cat.active::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--accent);
}

/* 二级导航 */
.sub-navbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 53px;
  z-index: 19;
  display: none;
}
.sub-navbar.open { display: block; }
.sub-nav-wrap { overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.sub-nav-wrap::-webkit-scrollbar { display: none; }
.sub-cat-list {
  display: flex;
  gap: 4px;
  padding: 10px 0;
  white-space: nowrap;
}
.sub-cat {
  padding: 6px 16px;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  transition: all .15s;
  white-space: nowrap;
  border-radius: var(--radius);
}
.sub-cat:hover { color: var(--brand); }
.sub-cat.active {
  background: var(--brand);
  color: #fff;
  font-weight: 500;
}

/* ---------- 三级导航（数字域名-后缀细分） ---------- */
.tertiary-navbar {
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 88px;
  z-index: 18;
  display: none;
}
.tertiary-navbar.open { display: block; }
.tertiary-nav-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tertiary-nav-wrap::-webkit-scrollbar { display: none; }
.tertiary-label {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
  white-space: nowrap;
}
.tertiary-cat-list {
  display: flex;
  gap: 4px;
  padding: 8px 0;
  white-space: nowrap;
}
.tertiary-cat {
  padding: 4px 12px;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  transition: all .15s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.tertiary-cat:hover { color: var(--brand); border-color: var(--line-soft); }
.tertiary-cat.active {
  color: var(--brand);
  border-color: var(--accent-2);
  font-weight: 500;
  background: rgba(184,134,11,.06);
}

/* ---------- Hero 区 ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(15,42,42,.03) 0%, transparent 50%),
    linear-gradient(315deg, rgba(184,134,11,.04) 0%, transparent 50%),
    var(--bg);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .3;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
}
.hero-left { flex: 1; max-width: 580px; }
.hero-eyebrow {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--brand);
  letter-spacing: 1px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(184,134,11,.15);
  z-index: -1;
}
.hero-desc { color: var(--ink-2); font-size: 16px; margin-bottom: 36px; line-height: 1.8; }
.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-num);
  font-size: 32px;
  line-height: 1;
  font-weight: 600;
  color: var(--brand);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.hero-stats span { font-size: 12px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

.hero-right {
  position: relative;
  width: 340px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-frame {
  position: relative;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent), rgba(184,134,11,.3), var(--accent));
}
.hero-frame-inner {
  background: var(--card);
  padding: 48px 56px;
  text-align: center;
}
.hero-domain {
  font-family: var(--font-num);
  font-size: 32px;
  line-height: 1;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.hero-domain .ext { color: var(--accent); font-size: 1.15em; }
.hero-domain-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 4px;
  text-transform: uppercase;
}
.hero-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--accent);
  border-style: solid;
}
.hero-corner.tl { top: -4px; left: -4px; border-width: 1px 0 0 1px; }
.hero-corner.tr { top: -4px; right: -4px; border-width: 1px 1px 0 0; }
.hero-corner.bl { bottom: -4px; left: -4px; border-width: 0 0 1px 1px; }
.hero-corner.br { bottom: -4px; right: -4px; border-width: 0 1px 1px 0; }

/* ---------- 筛选栏 ---------- */
.filter {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
}
.sort-group {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  align-items: stretch;
}
.price-filter {
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.price-filter select {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-serif);
  outline: none;
}
.price-filter select:hover { color: var(--brand); }
.sort {
  padding: 8px 18px;
  font-size: 13px;
  color: var(--muted);
  transition: all .15s;
  border-right: 1px solid var(--line);
  font-family: var(--font-serif);
}
.sort:last-child { border-right: none; }
.sort:hover { color: var(--brand); }
.sort.active {
  background: var(--brand);
  color: #fff;
  font-weight: 500;
}
.result-count { font-size: 13px; color: var(--muted); }
.result-count strong { color: var(--brand); font-family: var(--font-serif); font-size: 18px; font-weight: 600; }

/* ---------- 主体 ---------- */
.main { padding: 32px 0 80px; }
.main-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

/* 侧边栏 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 80px;
  align-self: start;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 24px;
}
.panel h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 1px;
  position: relative;
}
.panel h3::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}
.feature-list li {
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line-soft);
}
.feature-list li:last-child { border-bottom: none; }
.contact-line {
  font-size: 13px;
  color: var(--ink-2);
  padding: 6px 0;
  line-height: 1.8;
}
.contact-line strong { color: var(--brand); font-weight: 500; }

.hot-panel {
  background: linear-gradient(180deg, #fff 0%, #FAF8F5 100%);
  border: 1px solid var(--line);
}
.hot-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px dashed var(--line-soft);
  transition: color .2s, padding .2s;
}
.hot-item:last-child { border-bottom: none; }
.hot-item:hover { color: var(--accent); padding-left: 6px; }
.hot-item span { color: var(--muted); font-family: var(--font-sans); font-size: 12px; }

/* 收藏夹 */
.fav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px dashed var(--line-soft);
  transition: color .2s, padding .2s;
}
.fav-item:last-child { border-bottom: none; }
.fav-item:hover { color: var(--accent); padding-left: 6px; }
.fav-item .fav-price { color: var(--brand); font-family: var(--font-sans); font-size: 12px; font-weight: 600; }
.fav-empty {
  padding: 12px 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* 卡片收藏按钮 */
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: #ccc;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  line-height: 1;
}
.fav-btn:hover {
  transform: scale(1.15);
  color: #f59e0b;
}
.fav-btn.active {
  color: #f59e0b;
}

/* 域名列表 */
.domain-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  align-content: start;
}
.domain-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 24px;
  position: relative;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.domain-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.domain-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}
.domain-card:hover::before { transform: scaleX(1); }

.card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  letter-spacing: 1px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-serif);
}
.card-tag.hot { background: #FEE2E2; color: #B91C1C; }
.card-tag.new { background: #DCFCE7; color: var(--ok); }

.domain-name {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 4px;
  word-break: break-all;
  padding-right: 36px;
  letter-spacing: .5px;
}
.domain-name .ext { color: var(--accent); font-size: 1.1em; }
.domain-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.meta-chip {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--bg);
  color: var(--muted);
  border-radius: 2px;
  letter-spacing: .5px;
}
.domain-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  min-height: 40px;
  flex: 1;
  line-height: 1.6;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.price-cur { font-family: var(--font-num); font-size: 12px; line-height: 1; color: var(--muted); font-weight: 500; }
.price-num {
  font-family: var(--font-num);
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: .5px;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.visit-btn {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}
.domain-card:hover .visit-btn { gap: 8px; }

/* 加载更多 */
.load-more-btn {
  display: block;
  margin: 32px auto 0;
  padding: 12px 48px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.load-more-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}

/* 空状态 */
.empty {
  text-align: center;
  padding: 80px 20px;
}
.empty-inner {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 60px 80px;
  display: inline-block;
}
.empty-inner p { font-size: 16px; color: var(--ink-2); margin-bottom: 8px; font-family: var(--font-serif); }
.empty-inner small { color: var(--muted); }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--brand);
  color: rgba(255,255,255,.6);
  margin-top: 48px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 40px;
}
.footer h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 15px;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 1px;
}
.footer p, .footer li { font-size: 13px; line-height: 2; color: rgba(255,255,255,.55); }
.footer ul li { cursor: pointer; transition: color .2s; }
.footer ul li:hover { color: var(--accent-2); }
.copyright {
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  border-top: 1px solid rgba(255,255,255,.08);
  letter-spacing: 1px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  top: 32px;
  transform: translate(-50%, -20px);
  background: var(--brand);
  color: #fff;
  padding: 10px 28px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(184,134,11,.3);
  letter-spacing: .5px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 悬浮联系球 ---------- */
.float-ball {
  position: fixed;
  right: 32px;
  bottom: 120px;
  width: 56px;
  height: 56px;
  background: var(--brand);
  color: var(--accent-2);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all .2s;
  border: 1px solid rgba(184,134,11,.4);
  outline: none;
}
.float-ball:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(15,42,42,.3);
}
.float-ball:active { transform: scale(0.96); }

/* ---------- 联系弹窗 ---------- */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  pointer-events: none;
}
.contact-modal.open { visibility: visible; pointer-events: auto; }
.cm-mask {
  position: absolute;
  inset: 0;
  background: rgba(15,42,42,.6);
  opacity: 0;
  transition: opacity .3s;
}
.contact-modal.open .cm-mask { opacity: 1; }
.cm-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.95);
  width: 420px;
  max-width: calc(100% - 48px);
  background: #fff;
  padding: 40px 32px 28px;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.contact-modal.open .cm-panel {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.cm-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  background: transparent;
  border: none;
}
.cm-close:hover { background: var(--bg); color: var(--brand); }
.cm-panel h3 {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 24px;
  font-family: var(--font-serif);
  letter-spacing: 1px;
}
.cm-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cm-item {
  display: flex;
  align-items: center;
  padding: 14px;
  transition: background .2s;
  cursor: pointer;
  text-align: left;
  background: transparent;
  border: none;
  width: 100%;
  font-family: inherit;
  text-decoration: none;
  color: inherit;
}
.cm-item:hover { background: var(--bg); }
.cm-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 14px;
  flex-shrink: 0;
}
.cm-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cm-label { font-size: 12px; color: var(--muted); }
.cm-value { font-size: 17px; color: var(--brand); font-weight: 600; font-family: var(--font-mono); }
.cm-arrow { font-size: 20px; color: var(--muted); margin-left: 8px; }
.cm-foot {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .5px;
}

/* ---------- 客服聊天窗口 ---------- */
.chat-widget {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 90;
}
.chat-toggle {
  width: 56px;
  height: 56px;
  background: var(--brand);
  color: var(--accent-2);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(184,134,11,.4);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.chat-toggle:hover { transform: scale(1.05); box-shadow: 0 8px 24px rgba(15,42,42,.3); }
.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-weight: 600;
}
.chat-window {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 340px;
  height: 440px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
}
.chat-widget.open .chat-window { display: flex; }
.chat-header {
  background: var(--brand);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header h3 { font-size: 15px; font-weight: 600; font-family: var(--font-serif); letter-spacing: 1px; }
.chat-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.7);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-close:hover { background: rgba(255,255,255,.1); color: #fff; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-welcome { text-align: center; color: var(--muted); padding: 20px 0; }
.chat-welcome p { margin: 0 0 6px 0; font-size: 13px; }
.chat-msg-wrap { display: flex; gap: 8px; margin-bottom: 12px; width: 100%; }
.chat-msg-wrap.service { flex-direction: row; }
.chat-msg-wrap.customer { flex-direction: row-reverse; }
.chat-msg-content { max-width: 75%; display: flex; flex-direction: column; }
.chat-msg-wrap.customer .chat-msg-content { align-items: flex-end; }
.chat-msg-avatar {
  width: 32px; height: 32px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-msg { padding: 8px 12px; font-size: 13px; line-height: 1.6; }
.chat-msg-wrap.customer .chat-msg { background: var(--accent-soft); color: var(--brand); }
.chat-msg-wrap.service .chat-msg { background: var(--bg); color: var(--ink); }
.chat-msg-time { font-size: 10px; color: var(--muted); margin-top: 4px; }
.chat-input-area { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.chat-input-area input {
  flex: 1; padding: 8px 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  outline: none;
  transition: border-color .15s;
}
.chat-input-area input:focus { border-color: var(--accent); }
.chat-input-area button {
  padding: 8px 18px;
  background: var(--brand);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}
.chat-input-area button:hover { background: var(--brand-2); }

/* ---------- 多语言切换器 ---------- */
.lang-switcher { position: relative; flex-shrink: 0; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; border: 1px solid var(--line);
  padding: 6px 12px;
  font-size: 12px; color: var(--ink-2);
  background: var(--card);
  transition: all .2s;
  letter-spacing: .5px;
  font-family: var(--font-serif);
  border-radius: var(--radius);
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.lang-btn .lang-arrow { font-size: 8px; transition: transform .15s; }
.lang-btn.open .lang-arrow { transform: rotate(180deg); }
.lang-menu {
  display: none; position: absolute; top: 100%; right: 0;
  margin-top: 4px; background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  z-index: 100; min-width: 140px; overflow: hidden;
  border-radius: var(--radius);
}
.lang-menu.show { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 8px;
  width: 100%; border: none; background: none;
  padding: 10px 14px; font-size: 13px; color: var(--ink-2);
  cursor: pointer; text-align: left; transition: background .15s;
  font-family: inherit;
}
.lang-option:hover { background: var(--bg-2); }
.lang-option.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.lang-flag-icon { font-size: 14px; min-width: 20px; text-align: center; font-family: var(--font-serif); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .main-inner { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar .panel { flex: 1; min-width: 220px; }
  .hero h1 { font-size: 36px; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .topbar-contact { display: none; }
  .header-inner { flex-wrap: wrap; gap: 12px; padding: 14px 0; }
  .search { order: 3; width: 100%; max-width: none; }
  .lang-switcher { order: 2; margin-left: auto; }
  .lang-btn { padding: 5px 10px; font-size: 11px; }
  .brand-logo { height: 38px; font-size: 18px; min-width: 52px; width: 52px; }
  .brand-title { font-size: 18px; }
  .brand-sub { display: none; }
  .hero { padding: 48px 0; }
  .hero-inner { flex-direction: column; text-align: center; gap: 32px; }
  .hero h1 { font-size: 28px; }
  .hero-desc { font-size: 14px; }
  .hero-stats { justify-content: center; gap: 32px; }
  .hero-stats strong { font-size: 24px; }
  .hero-right { width: 260px; height: 220px; }
  .hero-frame-inner { padding: 32px 40px; }
  .hero-domain { font-size: 24px; }
  .filter-inner { flex-wrap: wrap; padding: 14px 0; }
  .sort-group { flex: 1; overflow-x: auto; }
  .sort { white-space: nowrap; }
  .domain-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 24px; }
  .float-ball { width: 48px; height: 48px; font-size: 18px; right: 20px; bottom: 100px; }
  .chat-widget { right: 20px; bottom: 20px; }
  .chat-toggle { width: 48px; height: 48px; font-size: 18px; }
  .chat-window { width: calc(100vw - 40px); height: 400px; }
  .sidebar { flex-direction: column; }
  .empty-inner { padding: 40px 24px; }
  .empty-inner p { font-size: 14px; }
  .cm-panel { padding: 32px 24px 20px; }
  .cm-panel h3 { font-size: 18px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 24px; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 20px; }
  .price-num { font-size: 20px; }
  .domain-name { font-size: 18px; }
  .lang-btn { padding: 4px 8px; font-size: 10px; }
  .lang-menu { min-width: 120px; }
}

/* ---------- 手机横屏优化（landscape） ---------- */
@media (max-width: 900px) and (orientation: landscape) {
  .hero { padding: 24px 0; }
  .hero-inner { flex-direction: row; text-align: left; gap: 24px; }
  .hero h1 { font-size: 22px; line-height: 1.3; }
  .hero-desc { font-size: 13px; margin-bottom: 12px; }
  .hero-stats { justify-content: flex-start; gap: 20px; }
  .hero-stats strong { font-size: 18px; }
  .hero-right { width: 200px; height: 160px; flex-shrink: 0; }
  .hero-frame-inner { padding: 20px 28px; }
  .hero-domain { font-size: 20px; }
  .hero-domain-sub { font-size: 10px; }
  .nav ul { gap: 4px; }
  .nav button { padding: 6px 10px; font-size: 12px; }
  .sub-navbar button, .tertiary-navbar button { padding: 6px 10px; font-size: 12px; }
  .filter-inner { padding: 10px 0; gap: 8px; }
  .sort { padding: 6px 10px; font-size: 12px; }
  .domain-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sidebar { display: none; }
  .main-col { grid-template-columns: 1fr; }
  .chat-window { height: 280px; }
  .float-ball { width: 44px; height: 44px; font-size: 16px; bottom: 80px; }
}

/* ---------- 小屏横屏（< 600px 高） ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 16px 0; }
  .hero h1 { font-size: 20px; }
  .hero-desc { display: none; }
  .hero-stats strong { font-size: 16px; }
  .hero-right { width: 180px; height: 140px; }
  .domain-list { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .domain-name { font-size: 14px; }
  .price-num { font-size: 16px; }
  .card-footer { padding-top: 6px; }
  .visit-btn { font-size: 11px; }
}

/* ---------- RTL 支持 ---------- */
html[dir="rtl"] .search-icon { transform: scaleX(-1); }
html[dir="rtl"] .hot-item:hover { transform: translateX(-6px); padding-left: 0; padding-right: 6px; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .chat-toggle { right: auto; left: 32px; }
html[dir="rtl"] .chat-window { right: auto; left: 0; }
html[dir="rtl"] .float-ball { right: auto; left: 32px; }
html[dir="rtl"] .drawer-panel { right: auto; left: 0; }

/* ---------- 暗黑模式 ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E5E7EB;
    --ink-2: #D1D5DB;
    --muted: #9CA3AF;
    --line: #374151;
    --line-soft: #1F2937;
    --bg: #0F172A;
    --bg-2: #1E293B;
    --card: #1E293B;
    --brand: #2DD4BF;
    --brand-2: #14B8A6;
    --brand-soft: #0F3D3D;
    --accent: #D4A853;
    --accent-2: #F59E0B;
    --accent-soft: #3D2E0F;
    --ok: #34D399;
    --warn: #FBBF24;
    --danger: #F87171;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
  }
  body {
    background: var(--bg);
    color: var(--ink);
  }
  .domain-card, .card, .panel, .detail-card, .inquiry-card, .chat-widget, .contact-modal-content,
  .admin-content, .admin-table-wrap, .modal-content {
    background: var(--card);
    border-color: var(--line);
  }
  .search, .sort-group, .price-filter select, .lang-switcher select, input, textarea, select {
    background: var(--bg-2);
    border-color: var(--line);
    color: var(--ink);
  }
  .search input { color: var(--ink); }
  .fav-btn { background: rgba(30,41,59,0.9); }
  .search-suggest {
    background: var(--card);
    border-color: var(--line);
  }
  .suggest-item { border-bottom-color: var(--line-soft); }
  .suggest-item:hover, .suggest-item.active { background: var(--bg-2); }
  .tag-hot { background: var(--accent-soft); color: var(--accent); }
  .tag-new { background: var(--brand-soft); color: var(--brand); }
  .topbar { background: var(--brand); }
  .navbar, .sub-navbar {
    background: var(--bg-2);
    border-bottom-color: var(--line);
  }
  .tertiary-navbar {
    background: var(--bg);
    border-bottom-color: var(--line);
  }
  .cat.active, .sub-cat.active, .tertiary-cat.active {
    color: var(--brand);
  }
  .sort.active { color: var(--brand); border-bottom-color: var(--brand); }
  .detail-price-value { color: var(--brand); }
  .detail-offer-hint { background: var(--accent-soft); color: var(--accent); }
  .lang-btn {
    background: var(--bg);
    border-color: var(--line);
    color: var(--ink-2);
  }
  .lang-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
  }
  .lang-menu {
    background: var(--card);
    border-color: var(--line);
  }
  .lang-option { color: var(--ink-2); }
  .lang-option:hover { background: var(--bg-2); }
}

/* ---------- 打印 ---------- */
@media print {
  .topbar, .navbar, .sub-navbar, .filter, .sidebar, .float-ball, .chat-widget,
  .lang-switcher, .contact-modal, .toast { display: none !important; }
  .main-inner { grid-template-columns: 1fr !important; }
  .domain-card { break-inside: avoid; border: 1px solid #999 !important; box-shadow: none !important; }
  .hero { background: none !important; padding: 20px 0 !important; }
}

/* ---------- 跨浏览器兼容 ---------- */
.nav-wrap, .sub-nav-wrap, .sort-group, .chat-messages, .domain-list {
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}
.domain-card { -webkit-tap-highlight-color: transparent; }
input, textarea, button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
select { -webkit-appearance: menulist; -moz-appearance: menulist; appearance: menulist; }
