/* ==========================================================
   数字商品商城 · 前台样式（原创）
   浅色背景 · 白卡片 · 细边框 · 圆角 12px · 主色橙
   ========================================================== */
:root {
  --primary: #f97316;
  --primary-600: #ea580c;
  --primary-700: #c2410c;
  --primary-50: #fff7ed;
  --pill-bg: #fff1e8;
  --green: #16a34a;
  --green-50: #ecfdf3;
  --red: #dc2626;
  --blue: #2563eb;
  --bg: #f5f6f8;
  --card: #ffffff;
  --border: #e7e9ee;
  --border-strong: #d7dbe2;
  --text: #1f2430;
  --text-2: #4b5363;
  --muted: #8a92a3;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary-600); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; }
p { margin: 0 0 .8em; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.text-sm { font-size: 12px; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-primary { color: var(--primary-600); }
.fw-600 { font-weight: 600; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 卡片 / 按钮 / 表单 ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 20px; }
.card-head { padding: 14px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h3 { margin: 0; font-size: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: #fff; color: var(--text); font-weight: 500; white-space: nowrap; transition: .15s;
}
.btn:hover { border-color: var(--primary); color: var(--primary-600); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.btn-green { background: var(--green); border-color: var(--green); color: #fff; }
.btn-green:hover { filter: brightness(.95); color: #fff; }
.btn-danger { color: var(--red); border-color: #f3c4c4; }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--text-2); }
.form-label .req { color: var(--red); }
.form-control {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border-strong);
  border-radius: 10px; background: #fff; outline: none; transition: .15s;
}
textarea.form-control { height: auto; min-height: 100px; padding: 10px 12px; resize: vertical; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249, 115, 22, .15); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge-success { background: var(--green-50); color: var(--green); }
.badge-warning { background: #fff7e6; color: #b45309; }
.badge-danger { background: #fef2f2; color: var(--red); }
.badge-info { background: #eff6ff; color: var(--blue); }
.badge-muted { background: #f1f2f5; color: var(--muted); }
.badge-primary { background: var(--pill-bg); color: var(--primary-700); }

.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid; }
.alert-success { background: var(--green-50); border-color: #bbf0cf; color: #166534; }
.alert-error { background: #fef2f2; border-color: #fbd0d0; color: #991b1b; }
.alert-info { background: #eff6ff; border-color: #cfe0fd; color: #1e40af; }
.alert-warning { background: #fffbeb; border-color: #fde7a5; color: #92400e; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-weight: 500; color: var(--muted); font-size: 13px; background: #fafbfc; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); }
.empty svg { width: 48px; height: 48px; opacity: .4; margin: 0 auto 8px; }

/* ---------- 顶栏 ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); }
.topbar-inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); flex-shrink: 0; }
.logo:hover { color: var(--text); }
.logo img, .logo-img { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 4px 10px rgba(234, 88, 12, .2)); }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1.05; gap: 2px; }
.logo-wordmark b { font-size: 19px; font-weight: 900; letter-spacing: -.03em; color: var(--text); }
.logo-wordmark small { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: var(--primary-600); }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), #e11d48); color: #fff; display: grid; place-items: center; font-size: 17px; }
.search { flex: 1; max-width: 560px; display: flex; align-items: center; height: 42px; border: 1px solid var(--border-strong); border-radius: 12px; background: #fff; overflow: hidden; position: relative; }
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,.12); }
.search-scope { padding: 0 12px; height: 100%; display: flex; align-items: center; gap: 4px; color: var(--text-2); border-right: 1px solid var(--border); background: #fafbfc; font-size: 13px; white-space: nowrap; }
.search input { flex: 1; border: 0; outline: 0; height: 100%; padding: 0 12px; background: transparent; min-width: 0; }
.search button { border: 0; height: 34px; margin-right: 4px; padding: 0 16px; border-radius: 9px; background: var(--primary); color: #fff; }
.search-btn-ico { display: none; }
.search-recent { position: absolute; top: 100%; left: 0; right: 0; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.pill-balance { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--pill-bg); color: var(--primary-700); font-weight: 600; border: 0; }
.pill-balance:hover { color: var(--primary-700); filter: brightness(.98); }
.plus-circle { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 18px; line-height: 1; font-weight: 400; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: #fff; color: var(--text-2); }
.icon-btn:hover { color: var(--primary-600); border-color: var(--primary); }
.icon-btn .dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; display: grid; place-items: center; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--border); background: #fff; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #fdba74, var(--primary)); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 64px; height: 64px; font-size: 24px; }
.svg-ico { width: 18px; height: 18px; flex-shrink: 0; }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; color: var(--text); background: none; border: 0; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--primary-50); color: var(--primary-700); }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.balance-panel { padding: 12px; }
.balance-panel .amt { font-size: 22px; font-weight: 700; color: var(--primary-700); }
.balance-panel .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* 用户头像下拉：分区面板（头像条 + 双列图标入口 + 底栏） */
.dropdown-menu.user-panel {
  width: 340px; min-width: 340px; padding: 12px; border-radius: 16px;
  border: 1px solid rgba(16, 24, 40, .06); box-shadow: 0 16px 40px rgba(16, 24, 40, .14);
}
.user-panel__head {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin-bottom: 10px; border-radius: 12px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 55%, #fff1e8 100%);
  overflow: hidden;
}
.user-panel__avatar { width: 42px; height: 42px; font-size: 16px; }
.user-panel__name { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.user-panel__crown {
  position: absolute; right: 14px; top: 10px; width: 28px; height: 28px;
  color: rgba(249, 115, 22, .28); pointer-events: none;
}
.user-panel__body { padding: 2px 4px 6px; }
.user-panel__group + .user-panel__group { margin-top: 12px; }
.user-panel__label {
  font-size: 12px; font-weight: 600; color: var(--muted);
  margin: 0 4px 8px; letter-spacing: .02em;
}
.user-panel__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 4px;
}
.dropdown-menu.user-panel .user-panel__link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--text);
  width: auto; background: transparent;
}
.dropdown-menu.user-panel .user-panel__link:hover {
  background: var(--primary-50); color: var(--primary-700);
}
.upi {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0;
}
.upi svg { width: 15px; height: 15px; }
.upi-console { background: #ede9fe; color: #7c3aed; }
.upi-orders { background: #eef2ff; color: #4f46e5; }
.upi-heart { background: #fce7f3; color: #db2777; }
.upi-wallet { background: #ffedd5; color: #ea580c; }
.upi-seller { background: #ecfdf3; color: #16a34a; }
.upi-ticket { background: #dcfce7; color: #15803d; }
.upi-bell { background: #fff7ed; color: #ea580c; }
.upi-aff { background: #fef3c7; color: #d97706; }
.upi-chat { background: #e0f2fe; color: #0284c7; }
.user-panel__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 8px; padding: 10px 4px 2px;
  border-top: 1px solid var(--border);
}
.dropdown-menu.user-panel .user-panel__home,
.dropdown-menu.user-panel .user-panel__logout {
  display: inline-flex; align-items: center; gap: 8px;
  width: auto; padding: 8px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500; background: transparent;
}
.dropdown-menu.user-panel .user-panel__home { color: var(--text-2); }
.dropdown-menu.user-panel .user-panel__home:hover { background: #f3f4f6; color: var(--text); }
.dropdown-menu.user-panel .user-panel__logout { color: var(--red); }
.dropdown-menu.user-panel .user-panel__logout:hover { background: #fef2f2; color: #b91c1c; }
.user-panel__home svg,
.user-panel__logout svg { width: 16px; height: 16px; flex-shrink: 0; }
.user-panel__foot form { margin: 0; }

.hamburger { display: none; }

/* ---------- 分类导航（左：多标签商品分类大下拉 + 右飞出二级菜单 · 右：右置主导航栏） ---------- */
.catbar {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--header-h);
  z-index: 45;
}
.catbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 54px; overflow: visible; }
.catbar-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.catbar a.nav-link, .catbar .nav-item > a { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 13px; border-radius: 8px; color: var(--text-2); font-weight: 500; white-space: nowrap; transition: .15s; }
.catbar a.nav-link:hover, .catbar .nav-item:hover > a { color: var(--primary-600); background: var(--primary-50); }
.catbar a.nav-link.active, .catbar .nav-item > a.active { color: var(--primary-600); font-weight: 600; }
.catbar a.nav-link.active::after, .catbar .nav-item > a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -8px; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); }
.nav-item { position: relative; }
.nav-sub { position: absolute; right: 0; top: 100%; padding-top: 8px; display: none; z-index: 55; opacity: 0; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease; pointer-events: none; }
.nav-item:hover .nav-sub { display: block; opacity: 1; transform: translateY(0); pointer-events: auto; }
.nav-sub-inner {
  background: rgba(255,255,255,.98); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226,232,240,.9); border-radius: 16px;
  box-shadow: 0 18px 42px rgba(15,23,42,.12), 0 2px 8px rgba(15,23,42,.04);
  padding: 8px; min-width: 190px;
}
.nav-sub a { display: block; padding: 8px 12px; border-radius: 8px; white-space: nowrap; color: var(--text-2); }
.nav-sub a:hover { background: var(--primary-50); color: var(--primary-700); }
.nav-sub .all { border-top: 1px solid var(--border); margin-top: 4px; color: var(--primary-600); font-weight: 500; }

.nav-dd-item {
  display: flex !important; align-items: center; gap: 10px; padding: 8px 10px !important;
  border-radius: 12px !important; white-space: normal !important; color: var(--text) !important;
}
.nav-dd-item:hover { background: #f8fafc !important; }
.nav-dd-ico {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; box-shadow: 0 4px 10px rgba(15,23,42,.12);
}
.nav-dd-ico svg { width: 16px; height: 16px; }
.nav-dd-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.nav-dd-body b { font-size: 13.5px; font-weight: 650; color: #0f172a; line-height: 1.25; }
.nav-dd-body small { font-size: 11.5px; color: #94a3b8; font-weight: 500; line-height: 1.2; }

.nav-sub--tools .nav-sub-inner--tools { width: 396px; min-width: 396px; padding: 10px; }
.nav-tools-label { font-size: 11.5px; color: #94a3b8; font-weight: 600; letter-spacing: .02em; padding: 2px 6px 8px; }
.nav-tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-tool-cell {
  display: flex !important; align-items: center; gap: 8px; padding: 8px !important;
  border-radius: 12px !important; white-space: normal !important; color: #334155 !important; font-size: 12.5px; font-weight: 600; line-height: 1.25;
}
.nav-tool-cell:hover { background: #f8fafc !important; color: #0f172a !important; }
.nav-tool-ico {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; overflow: hidden; box-shadow: 0 3px 8px rgba(15,23,42,.1);
}
.nav-tool-ico--brand { background: transparent; box-shadow: none; }
.nav-tool-ico--brand svg, .nav-tool-ico--brand img { width: 30px !important; height: 30px !important; border-radius: 9px; display: block; }

.nav-seller-cta { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; margin-left: 6px; border-radius: 9px; color: #b45309; font-weight: 600; white-space: nowrap; transition: .15s; }
.nav-seller-cta:hover { background: #fffbeb; color: #92400e; }
.nav-seller-cta .cta-ico { width: 22px; height: 22px; border-radius: 6px; background: #f59e0b; color: #fff; font-size: 12px; display: grid; place-items: center; }
.nav-seller-cta .cta-ico svg { display: block; }

/* 左侧「商品分类」胶囊按钮与多标签二级悬浮菜单 */
.cat-mega { position: relative; flex-shrink: 0; }
.cat-mega-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 999px; border: 0; background: var(--primary); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px rgba(249, 115, 22, .25); transition: .18s;
}
.cat-mega-btn:hover { background: var(--primary-600); }
.cat-mega.open .cat-mega-btn .chev { transform: rotate(180deg); }
.cat-mega-btn .chev { transition: transform .18s; }

.cat-mega-drop { position: absolute; left: 0; top: calc(100% + 8px); display: none; z-index: 65; }
.cat-mega.open .cat-mega-drop { display: flex; align-items: flex-start; gap: 8px; }

.cat-mega-card {
  width: 268px; background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .14); padding: 10px;
  max-height: calc(100vh - 88px); display: flex; flex-direction: column;
}
.cat-mega-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #f4f5f8; padding: 4px; border-radius: 10px; margin-bottom: 8px; }
.cat-mega-tabs button {
  border: 0; background: transparent; height: 30px; border-radius: 7px; font-size: 12.5px;
  font-weight: 600; color: var(--text-2); padding: 0 4px; white-space: nowrap; transition: .15s;
}
.cat-mega-tabs button.active { background: #1f2430; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12); }

.cat-mega-pane { display: none; }
.cat-mega-pane.active { display: block; }
.cat-mega-list {
  list-style: none; margin: 0; padding: 0;
  overflow-y: auto; overscroll-behavior: contain;
  max-height: calc(100vh - 210px);
  scrollbar-width: thin;
}
.cat-mega-list::-webkit-scrollbar { width: 6px; }
.cat-mega-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.cat-mega-row a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  color: var(--text); font-weight: 500; transition: .12s;
}
.cat-mega-row:hover > a, .cat-mega-row.active > a { background: var(--primary-50); color: var(--primary-700); }
.cat-dot-ico {
  width: 24px; height: 24px; border-radius: 7px; color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; flex-shrink: 0;
}
.cat-dot-ico--img {
  display: block; object-fit: cover; background: #f1f5f9; padding: 0;
}
.cat-row-name { flex: 1; min-width: 0; font-size: 13.5px; }
.cat-row-count { font-size: 12px; color: var(--muted); font-weight: 400; }
.cat-mega-row .arr { width: 14px; height: 14px; color: var(--muted); flex-shrink: 0; }

.cat-mega-quick {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px;
}
.cat-mega-quick a {
  display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px;
  font-size: 12.5px; color: var(--text-2); font-weight: 500;
}
.cat-mega-quick a:hover { background: #f7f8fa; color: var(--primary-600); }
.cat-mega-quick .q-ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }

/* 右侧二级子分类飞出浮层 */
.cat-flyout {
  display: none;
  min-width: 440px;
  width: max-content;
  max-width: min(580px, calc(100vw - 310px));
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .14);
  padding: 16px 18px;
}
.cat-flyout.active { display: block; animation: pop .14s ease-out; }
.cat-flyout-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--border);
}
.cat-flyout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
}
.cat-flyout-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 13.5px;
  box-sizing: border-box;
}
.cat-flyout-grid a:hover { background: var(--primary-50); color: var(--primary-700); }
.cat-flyout-grid small {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}
.cat-flyout .category-leaf__main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.cat-flyout .category-leaf__name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 手机抽屉 */
.drawer-mask { position: fixed; inset: 0; background: rgba(15, 20, 30, .45); z-index: 90; display: none; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: 290px; max-width: 86vw; background: #fff; z-index: 91; transform: translateX(-100%); transition: transform .25s; overflow-y: auto; padding: 16px; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-mask { display: block; }
.drawer a { display: block; padding: 10px 12px; border-radius: 8px; }
.drawer a:hover { background: var(--primary-50); }
.drawer .sub { padding-left: 16px; font-size: 13px; color: var(--text-2); }
.drawer h4 { font-size: 12px; color: var(--muted); margin: 14px 12px 4px; font-weight: 500; }

/* ---------- 页面结构 ---------- */
main { min-height: 60vh; padding: 24px 0 48px; }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; margin: 0; display: flex; align-items: center; gap: 8px; }
.section-head h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--primary); }
.more-link { color: var(--primary-600); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb { display: flex; gap: 6px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--primary-600); }
.page-title { font-size: 24px; margin-bottom: 4px; }

/* ---------- 首页轮播 ---------- */
.hero { position: relative; border-radius: 16px; overflow: hidden; height: 320px; background: #222; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; display: flex; align-items: center; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) brightness(.68) saturate(1.3); transform: scale(1.12); }
.hero-content { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 0 64px; width: 100%; color: #fff; }
.hero-content .txt { flex: 1; max-width: 580px; }
.hero-content h2 { font-size: 34px; margin-bottom: 10px; }
.hero-content p { color: rgba(255,255,255,.86); font-size: 15px; }
.hero-thumb { width: 244px; height: 244px; border-radius: 22px; object-fit: cover; box-shadow: 0 24px 48px rgba(0,0,0,.42); border: 2px solid rgba(255,255,255,.22); flex-shrink: 0; }
.hero-dots { position: absolute; z-index: 3; bottom: 16px; left: 56px; display: flex; gap: 8px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; background: rgba(255,255,255,.5); padding: 0; transition: .2s; }
.hero-dots button.active { width: 24px; background: #fff; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.feature { display: flex; align-items: center; gap: 12px; padding: 16px; }
.feature-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--pill-bg); color: var(--primary-600); display: grid; place-items: center; flex-shrink: 0; }
.feature-ico svg { width: 22px; height: 22px; }
.feature b { display: block; font-size: 15px; }
.feature span { color: var(--muted); font-size: 12px; }

.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px; text-align: center; transition: .15s; }
.cat-tile:hover { border-color: var(--primary); transform: translateY(-2px); }
.cat-tile img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.cat-tile b { font-size: 14px; font-weight: 600; }
.cat-tile .hot { position: absolute; }

.topup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.topup-card { display: flex; align-items: center; gap: 12px; padding: 14px; }
.topup-card img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.topup-card:hover { border-color: var(--primary); }

/* ---------- 商品卡 ---------- */
.grid-products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.grid-products.cols-4 { grid-template-columns: repeat(4, 1fr); }
.p-card { display: flex; flex-direction: column; overflow: hidden; transition: .15s; }
.p-card:hover { border-color: #fbc8a2; box-shadow: 0 8px 24px rgba(249,115,22,.10); }
.p-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
  object-position: center;
}
.p-tag { position: absolute; top: 8px; left: 8px; }
.p-off { position: absolute; top: 8px; right: 8px; background: var(--red); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.p-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-title { font-weight: 500; line-height: 1.45; min-height: 2.9em; }
.p-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.p-meta .ship { display: inline-flex; align-items: center; gap: 4px; }
.p-meta .ship::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.p-meta .ship.manual::before { background: #f59e0b; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { color: var(--primary-600); font-weight: 700; font-size: 18px; }
.price small { font-size: 12px; font-weight: 400; color: var(--muted); text-decoration: line-through; margin-left: 4px; }
.btn-buy { height: 32px; padding: 0 14px; border-radius: 8px; background: var(--primary); color: #fff; border: 0; font-weight: 500; }
.btn-buy:hover { background: var(--primary-600); }
.btn-cart-sm {
  width: 32px; height: 32px; padding: 0; border-radius: 8px;
  border: 1px solid var(--border-strong); background: #fff; color: var(--text-2);
  display: grid; place-items: center; flex-shrink: 0; transition: .15s;
}
.btn-cart-sm:hover { border-color: var(--primary); color: var(--primary-600); background: var(--primary-50); }
.btn-cart-outline {
  border-color: var(--primary); color: var(--primary-700); background: var(--primary-50); font-weight: 600;
}
.btn-cart-outline:hover { background: #ffedd5; border-color: var(--primary-600); color: var(--primary-700); }

/* ---------- 顶栏购物车徽标、滑出抽屉与购物车收银页 ---------- */
.cart-trigger .cart-dot { background: var(--primary-600); font-weight: 700; }
@keyframes cartPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.32); }
  100% { transform: scale(1); }
}
.cart-pop { animation: cartPop .28s ease-out; }

.cart-drawer-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  z-index: 94; display: none; backdrop-filter: blur(2px);
}
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 390px; max-width: 92vw;
  background: var(--card); z-index: 95;
  display: flex; flex-direction: column;
  box-shadow: -16px 0 40px rgba(15, 23, 42, .18);
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.22, 1, .36, 1);
}
body.cart-drawer-open .cart-drawer-mask { display: block; }
body.cart-drawer-open .cart-drawer { transform: none; }
.cart-drawer-head {
  padding: 16px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.cart-drawer-foot { padding: 14px 18px 18px; border-top: 1px solid var(--border); background: var(--card); }
.cart-drawer-foot.is-empty { display: none; }

.cd-item {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border);
}
.cd-item:last-child { border-bottom: 0; }
.cd-item.is-invalid { opacity: .62; }
.cd-thumb {
  width: 64px; height: 64px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; padding: 4px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden;
}
.cd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cd-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.cd-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.cd-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.cd-foot .price { font-size: 15px; }
.cd-ctrl { display: flex; align-items: center; gap: 8px; }
.qty-xs { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 7px; overflow: hidden; height: 26px; }
.qty-xs button { width: 24px; height: 26px; border: 0; background: #f8fafc; font-weight: 700; padding: 0; }
.qty-xs button:hover { background: var(--primary-50); color: var(--primary-700); }
.qty-xs span { min-width: 26px; text-align: center; font-size: 12.5px; font-weight: 600; }
.cd-del { width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; }
.cd-del:hover { background: #fef2f2; color: var(--red); }

.pick-list .pick-item { position: relative; }
.pick-list .pick-item.in-cart {
  opacity: .56;
  background: #f8fafc !important;
  border-style: dashed !important;
  border-color: var(--border-strong) !important;
  cursor: not-allowed !important;
}
.pick-list .pick-item.in-cart:hover {
  border-color: var(--border-strong) !important;
  color: inherit !important;
}
.pick-in-cart-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #e2e8f0;
  color: #475569;
}
html[data-theme="dark"] .pick-list .pick-item.in-cart { background: #121827 !important; }
html[data-theme="dark"] .pick-in-cart-tag { background: #28334a; color: #cbd5e1; }

.cart-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start;
}
.cart-summary-card { position: sticky; top: calc(var(--header-h) + 16px); }
.cart-rows { divide-y: 1px solid var(--border); }
.cart-row {
  display: flex; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--border); align-items: flex-start;
}
.cart-row:last-child { border-bottom: 0; }
.cart-row.is-invalid { background: rgba(241, 245, 249, .55); }
.cart-row-check { padding-top: 28px; }
.cart-row-check input { width: 17px; height: 17px; accent-color: var(--primary-600); cursor: pointer; }
.cart-row-thumb {
  width: 82px; height: 82px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; padding: 6px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden;
}
.cart-row-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-row-main { flex: 1; min-width: 0; }
.cart-row-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.cart-row-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.cart-row-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.cart-row-price-box { text-align: right; flex-shrink: 0; }
.cart-topup-box { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px dashed var(--border-strong); }
.cart-row-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }

/* ---------- 列表页 ---------- */
.list-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 68px); padding: 8px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 8px; color: var(--text-2); }
.side-nav a:hover, .side-nav a.active { background: var(--primary-50); color: var(--primary-700); }
.side-nav h4 { font-size: 13px; color: var(--muted); padding: 8px 12px 4px; margin: 0; font-weight: 500; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sort-tabs { display: inline-flex; padding: 3px; border-radius: 10px; background: #fff; border: 1px solid var(--border); }
.sort-tabs a { padding: 5px 14px; border-radius: 8px; color: var(--text-2); font-size: 13px; }
.sort-tabs a.active { background: var(--primary); color: #fff; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.chip:hover, .chip.active { border-color: var(--primary); color: var(--primary-700); background: var(--primary-50); }
.chip .x { border: 0; background: none; color: var(--muted); padding: 0; font-size: 15px; line-height: 1; }
.feed-loader { text-align: center; padding: 20px; color: var(--muted); }

/* ---------- 账号市场专业横排卡片（仅 market 页） ---------- */
.container-market { max-width: 1680px; }
body:has(.container-market) main {
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(37, 99, 235, .08), transparent 60%),
    radial-gradient(900px 360px at 88% 0%, rgba(14, 165, 233, .06), transparent 55%),
    #f3f6fb;
}
.market-toolbar-count { color: #64748b; }
.market-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.mcard {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 74px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e6ebf2;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.mcard:nth-child(even) { background: #f8fafc; }
.mcard--featured {
  background: linear-gradient(180deg, #f3fbf7 0%, #fff 70%);
  border-color: #c7ebd9;
}
.mcard:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .08);
  transform: translateY(-1px);
}
.mcard-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  overflow: hidden;
  border: 1px solid #e8eef5;
  background: #fff;
  flex-shrink: 0;
  align-self: center;
}
.mcard-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mcard-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.mcard-row1 {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.mcard-row2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mcard-tag {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 20px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  background: #eef2ff;
  color: #4338ca;
}
.mcard-tag--hot { background: #fff1f2; color: #e11d48; }
.mcard-tag--rec { background: #ecfdf5; color: #047857; }
.mcard-tag--pick {
  gap: 3px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .28);
}
.mcard-tag--pick svg { flex: none; }
.mcard-tag--multi {
  gap: 3px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  box-shadow: 0 2px 8px rgba(14, 165, 233, .28);
}
.mcard-tag--multi svg { flex: none; }
.mcard-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
  text-overflow: ellipsis;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
  cursor: pointer;
}
@media (min-width: 1100px) {
  .mcard-title {
    /* 宽屏尽量单行露出 50+ 字；过长仍可落到 2 行 */
    -webkit-line-clamp: 2;
  }
}
.mcard-title:hover { color: #1d4ed8; }
.mcard-price {
  font-size: 16.5px;
  font-weight: 800;
  color: #e11d48;
  letter-spacing: -.02em;
  flex: none;
}
.mcard-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.mcard-chip--stock { background: #ecfdf5; color: #047857; }
.mcard-chip--ship { background: #eff6ff; color: #2563eb; }
.mcard-chip--manual { background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; }
.mcard-seller {
  color: #94a3b8;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 10em;
}
.mcard-side {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: none;
}
.mcard-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 96px;
  padding: 0 14px;
  border-radius: 9px;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.mcard-cta:hover { background: var(--primary-600); color: #fff; }
.mcard-cta--pick { background: var(--primary); }
.mcard-cta--ghost {
  background: #fff;
  color: #334155;
  border: 1px solid #dbe3ef;
  min-width: 88px;
}
.mcard-cta--ghost:hover { background: #f8fafc; color: #0f172a; border-color: #cbd5e1; }
/* 兼容旧类名（若残留） */
.mcard-tags, .mcard-desc, .mcard-meta, .mcard-foot, .mcard-fav { display: none !important; }

/* 详情页规格短标签 */
.variant-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 96px;
  max-width: 220px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  transition: .15s;
}
.variant-chip:hover { border-color: var(--primary); color: var(--primary-700); }
.variant-chip.is-active {
  border-color: var(--primary);
  background: var(--primary-50);
  box-shadow: 0 0 0 1px var(--primary) inset;
}
.variant-chip__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}
.variant-chip__price { font-size: 12px; color: #64748b; font-weight: 600; }
.variant-chip.is-active .variant-chip__price { color: var(--primary-700); }
.variant-chip.is-oos { opacity: .55; border-style: dashed; }

/* ---------- 详情 ---------- */
.detail { display: grid; grid-template-columns: 460px 1fr; gap: 28px; padding: 24px; }
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
  object-position: center;
}
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs img {
  width: 72px;
  height: 54px;
  padding: 3px;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  cursor: pointer;
  border: 2px solid transparent;
}
.gallery-thumbs img.active { border-color: var(--primary); }
.detail h1 { font-size: 22px; }
.detail-price { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--primary-50); margin: 14px 0; }
.detail-price .price { font-size: 28px; }
.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin: 16px 0; }
.spec-list div { display: flex; gap: 8px; font-size: 13px; }
.spec-list dt { color: var(--muted); min-width: 64px; margin: 0; }
.spec-list dd { margin: 0; font-weight: 500; }
.seller-box { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.seller-top-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0; flex-wrap: wrap; }
.seller-top-card--official { border-left: 4px solid #f59e0b; background: linear-gradient(90deg, #fffbeb 0%, #f8fafc 55%); border-color: #fde68a; }
.seller-top-card__avatar { position: relative; width: 42px; height: 42px; border-radius: 10px; overflow: hidden; background: #e2e8f0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #475569; font-weight: 700; text-decoration: none; }
.seller-top-card__avatar--official { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; font-size: 18px; font-weight: 800; }
.seller-top-card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.seller-top-card__dot { position: absolute; right: 2px; bottom: 2px; width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; border: 2px solid #fff; }
.seller-top-card__dot.is-on { background: #22c55e; }
.seller-top-card__meta { flex: 1; min-width: 160px; }
.seller-top-card__row1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seller-top-card__name { font-size: 15px; font-weight: 700; color: #0f172a; text-decoration: none; }
.seller-top-card__name:hover { color: var(--primary); }
.seller-top-card__lv { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.seller-top-card__lv--official { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; font-weight: 700; border: 0; }
.seller-top-card__row2 { margin-top: 4px; font-size: 12px; color: #64748b; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.seller-top-card__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ss-avatar--official { background: linear-gradient(135deg, #fbbf24, #f59e0b) !important; color: #fff !important; font-size: 30px !important; font-weight: 800 !important; }
.ss-lv--official { background: linear-gradient(135deg, #f59e0b, #d97706) !important; color: #fff !important; border: 0 !important; }
.avatar-lg--official { background: linear-gradient(135deg, #fbbf24, #f59e0b) !important; color: #fff !important; font-weight: 800 !important; }
.review-auto-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 500; color: #64748b; background: #f1f5f9; border: 1px solid #e2e8f0; vertical-align: middle; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 20px; }
.tabs button { border: 0; background: none; padding: 14px 14px; color: var(--text-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--primary-700); border-color: var(--primary); }
.tab-pane { display: none; padding: 20px; }
.tab-pane.active { display: block; }
/* ---------- 联系我们页 ---------- */
.contact-page { max-width: 1080px; }
.contact-tip {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; margin-bottom: 20px;
  border-radius: 16px; background: #fff7ed; border: 1px solid #fed7aa;
}
.contact-tip-ico {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: #fff; font-weight: 800;
  display: grid; place-items: center;
}
.contact-tip-body { flex: 1; min-width: 220px; }
.contact-tip-body b { display: block; margin-bottom: 2px; color: var(--text); }
.contact-tip-body p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.contact-tip-btn { white-space: nowrap; }

.contact-layout {
  display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start;
}
.contact-side h1 {
  margin: 0 0 8px; font-size: 28px; letter-spacing: -.03em;
}
.contact-side-lead {
  margin: 0 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.65;
}
.contact-info-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; margin-bottom: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
}
.contact-info-ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: var(--pill-bg); color: var(--primary-700);
  display: grid; place-items: center; font-size: 18px;
}
.contact-info-card b { display: block; margin-bottom: 4px; font-size: 14px; }
.contact-info-card p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.contact-info-card a { color: var(--primary-700); font-weight: 600; }
.contact-info-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.contact-copy {
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  height: 26px; padding: 0 8px; border-radius: 7px; font-size: 12px;
}
.contact-copy:hover { border-color: var(--primary); color: var(--primary-700); }

.contact-panel {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 22px 24px 24px; box-shadow: var(--shadow);
}
.contact-panel-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.contact-panel-head h2 { margin: 0; font-size: 20px; }
.contact-panel-ico {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--pill-bg); color: var(--primary-700);
  display: grid; place-items: center; font-weight: 700;
}
.contact-topics {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.contact-topic {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--border); background: #fff;
  color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: .15s;
}
.contact-topic input { position: absolute; opacity: 0; pointer-events: none; }
.contact-topic:hover { border-color: #fdba74; color: var(--primary-700); }
.contact-topic.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.contact-msg-wrap { position: relative; }
.contact-msg-wrap textarea { min-height: 140px; padding-bottom: 28px; resize: vertical; }
.contact-counter {
  position: absolute; right: 12px; bottom: 8px;
  font-size: 12px; color: var(--muted); pointer-events: none;
}
.contact-submit { width: 100%; margin-top: 4px; }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-tip { align-items: flex-start; }
  .contact-tip-btn { width: 100%; }
}

.rich { line-height: 1.85; word-break: break-word; color: var(--text-2); font-size: 15px; }
.rich p { margin: 0 0 1em; }
.rich p:last-child { margin-bottom: 0; }
.rich h2, .rich h3 { color: var(--text); margin: 1.4em 0 .6em; line-height: 1.35; }
.rich h2 { font-size: 1.25em; }
.rich h3 { font-size: 1.1em; }
.rich ul, .rich ol { margin: 0 0 1em; padding-left: 1.4em; }
.rich li { margin: .35em 0; }
.rich a { color: var(--primary-600); text-decoration: underline; }
.rich img { display: block; max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.review { padding: 14px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.seller-reply { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: #fafbfc; border-left: 3px solid var(--primary); font-size: 13px; }

/* ---------- 商品操作行 / 分享 ---------- */
.detail-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.detail-actions-main {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.share-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-left: auto;
}
.share-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.share-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  display: inline-grid; place-items: center; padding: 0;
  transition: .15s;
}
.share-btn:hover { border-color: var(--primary); color: var(--primary-700); background: var(--primary-50); }
.share-btn.copied { border-color: var(--green); color: var(--green); background: var(--green-50); }
@media (max-width: 560px) {
  .detail-actions { align-items: stretch; }
  .share-row { margin-left: 0; width: 100%; justify-content: flex-end; }
}

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 100; background: rgba(15, 20, 30, .5); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-mask.open { display: flex; }
.modal { width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.modal-lg { max-width: 640px; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-close { border: 0; background: #f3f4f6; width: 32px; height: 32px; border-radius: 50%; font-size: 18px; color: var(--text-2); }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.buy-head { display: flex; gap: 14px; }
.buy-head img {
  width: 84px;
  height: 84px;
  padding: 5px;
  border-radius: 10px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid var(--border);
}
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; }
.qty button { width: 38px; height: 38px; border: 0; background: #f7f8fa; font-size: 18px; }
.qty input { width: 64px; height: 38px; border: 0; text-align: center; outline: 0; }
.pay-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: .15s; }
.pay-option:hover { border-color: #fbc8a2; }
.pay-option.selected { border-color: var(--primary); background: var(--primary-50); }
.pay-option.disabled { opacity: .55; cursor: not-allowed; background: #fafafa; }
.pay-option .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; position: relative; }
.pay-option.selected .radio { border-color: var(--primary); }
.pay-option.selected .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--primary); }
.pay-option .info { flex: 1; min-width: 0; }
.pay-option .info small { display: block; color: var(--muted); font-size: 12px; }
.pay-sub { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 10px 30px; }

/* 购买弹窗：双列支付方式瓷砖 */
#buyModalMask .modal { max-width: 560px; }
.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pay-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  text-align: left;
  width: 100%;
}
.pay-tile:hover { border-color: #cbd5e1; box-shadow: 0 2px 8px rgba(15, 23, 42, .06); }
.pay-tile.selected {
  border-color: #2563eb;
  background: #f8fbff;
  box-shadow: 0 0 0 1px #2563eb inset;
}
.pay-tile.disabled { opacity: .5; cursor: not-allowed; background: #f8fafc; box-shadow: none; }
.pay-tile-icon {
  position: relative;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: #2563eb;
  overflow: visible;
}
.pay-tile-icon img,
.pay-tile-icon > svg { width: 36px; height: 36px; display: block; border-radius: 50%; }
.pay-tile-icon.is-cart { background: #3b82f6; }
.pay-tile-icon.is-wallet { background: #2563eb; }
.pay-tile-icon.is-topup { background: #0ea5e9; }
.pay-tile-icon.is-usdt { background: #26a17b; }
.pay-tile-icon.is-trx { background: #ef4444; }
.pay-tile-icon.is-alipay { background: #1677ff; }
.pay-tile-icon.is-chain { background: #6366f1; }
.pay-tile-icon--svg { background: transparent; overflow: visible; }
.pay-tile-badge {
  position: absolute;
  right: -3px; bottom: -3px;
  min-width: 15px; height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  border: 2px solid #fff;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  box-sizing: border-box;
}
.pay-tile-badge--tron { background: #EF0027; }
.pay-tile-badge--bsc { background: #F3BA2F; color: #111; }
.pay-tile-badge--eth { background: #627EEA; }
.pay-tile-badge--sol { background: linear-gradient(135deg, #9945FF, #14F195); }
.pay-tile-text { min-width: 0; flex: 1; }
.pay-tile-text b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}
.pay-tile-text small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.3;
}
@media (max-width: 560px) {
  .pay-grid { grid-template-columns: 1fr; }
}
.sum-row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--text-2); }
.sum-row.total { font-size: 16px; color: var(--text); font-weight: 600; padding-top: 8px; border-top: 1px dashed var(--border); margin-top: 6px; }
.sum-row.total b { color: var(--primary-600); font-size: 20px; }
/* —— 专业列表式自选弹窗 —— */
.pick-modal { width: min(860px, 96vw); max-height: min(88vh, 820px); display: flex; flex-direction: column; }
.pick-price-range { display: inline-flex; align-items: center; gap: 6px; }
.pick-price-input { width: 88px; height: 32px; padding: 0 8px; font-size: 12px; }
.pick-stat-badge { display: inline-block; padding: 1px 7px; border-radius: 6px; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 700; }
.pick-stat-pulse { color: #94a3b8; animation: pickPulse 1.2s ease-in-out infinite; }
@keyframes pickPulse { 0%,100%{opacity:.35} 50%{opacity:1} }
.pick-col-stat { width: 72px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pick-col-reg { width: 88px; text-align: center; }
.pick-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pick-modal__head h3 { font-size: 16px; font-weight: 700; margin: 0; }
.pick-head-main { min-width: 0; flex: 1; }
.pick-listing-title { margin: 4px 0 0; line-height: 1.35; }
.pick-load-hint { margin: 4px 0 0; color: #ea580c; }
.pick-modal__body { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1; }
.pick-variant-box, .buy-variant-box {
  display: grid; gap: 8px; margin-bottom: 2px;
}
.pick-variant-box[hidden], .buy-variant-box[hidden] { display: none !important; }
.pick-variant-card, .buy-variant-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1.5px solid #e2e8f0; border-radius: 12px;
  background: #fff; cursor: pointer; text-align: left; width: 100%;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.pick-variant-card:hover, .buy-variant-card:hover { border-color: #fdba74; }
.pick-variant-card.is-active, .buy-variant-card.is-active {
  border-color: #ea580c; background: #fff7ed; box-shadow: 0 0 0 1px rgba(234,88,12,.15);
}
.pick-variant-card.is-disabled, .buy-variant-card.is-disabled {
  opacity: .55; cursor: not-allowed; background: #f8fafc;
}
.pick-variant-card__name, .buy-variant-card__name { font-size: 13px; font-weight: 650; color: #0f172a; line-height: 1.35; }
.pick-variant-card__meta, .buy-variant-card__meta { font-size: 12px; color: #64748b; white-space: nowrap; }
.pick-toolbar { display: flex; flex-direction: column; gap: 8px; }
.pick-toolbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pick-sort-btn.is-active { background: var(--primary-50, #eff6ff); border-color: var(--primary, #2563eb); color: var(--primary-700, #1d4ed8); }
.pick-search { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; background: #fff; }
.pick-search input { flex: 1; border: 0; outline: 0; height: 34px; font-size: 13px; background: transparent; }
.pick-search__ico { opacity: .55; font-size: 13px; }
.pick-table-wrap { border: 1px solid var(--border); border-radius: 10px; overflow: auto; max-height: min(52vh, 420px); background: #fff; }
.pick-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.pick-table th, .pick-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.pick-table th { position: sticky; top: 0; background: #f8fafc; z-index: 1; font-weight: 700; color: #475569; text-align: left; }
.pick-table tr.pick-row { cursor: pointer; }
.pick-table tr.pick-row:hover { background: #f8fafc; }
.pick-table tr.pick-row.is-selected { background: var(--primary-50, #eff6ff); }
.pick-table tr.pick-row.in-cart { opacity: .55; cursor: not-allowed; }
.pick-table .pick-col-check { width: 40px; text-align: center; }
.pick-table .pick-col-name { min-width: 140px; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-table .pick-col-name .pick-profile-link,
.pick-table .pick-col-name .pick-name-plain { white-space: nowrap; }
.pick-table .pick-col-reg { width: 88px; text-align: center; white-space: nowrap; }
.pick-table .pick-col-stat { width: 72px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pick-table .pick-col-price { width: 96px; text-align: right; font-weight: 700; color: #e11d48; white-space: nowrap; }
.pick-profile-link { color: #2563eb; font-weight: 600; word-break: break-all; text-decoration: none; }
.pick-profile-link:hover { text-decoration: underline; }
.pick-profile-link .ext-ico { display: inline-block; width: 12px; height: 12px; margin-left: 3px; vertical-align: -1px; opacity: .75; }
.pick-name-plain { word-break: break-all; font-weight: 600; color: #0f172a; }
.pick-modal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pick-summary { font-size: 13px; font-weight: 700; color: #0f172a; }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; max-height: 360px; overflow-y: auto; }
.pick-item { padding: 10px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; text-align: center; font-size: 13px; }
.pick-item:hover { border-color: var(--primary); }
.pick-item.selected { border-color: var(--primary); background: var(--primary-50); color: var(--primary-700); }
.pick-item .p { color: var(--primary-600); font-weight: 600; margin-top: 2px; }

/* ---------- 交付内容 ---------- */
.delivery-box { position: relative; background: #0f172a; color: #e2e8f0; border-radius: var(--radius); padding: 16px; font-family: ui-monospace, Consolas, Menlo, monospace; font-size: 13px; white-space: pre-wrap; word-break: break-all; max-height: 420px; overflow: auto; }
.result-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; }
.result-icon svg { width: 36px; height: 36px; }
.result-icon.ok { background: var(--green-50); color: var(--green); }
.result-icon.fail { background: #fef2f2; color: var(--red); }
.result-icon.wait { background: #fff7e6; color: #d97706; }

/* ---------- 用户中心 ---------- */
/* WO-23: 用户中心改为全宽布局，侧栏样式仅作兼容保留 */
.uc-layout { display: block; max-width: 1220px; margin: 0 auto; }
.uc-side { display: none !important; }
.uc-user { display: flex; align-items: center; gap: 10px; padding: 8px 8px 14px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.uc-side h4 { font-size: 12px; color: var(--muted); font-weight: 500; margin: 12px 10px 4px; }
.uc-side .uc-group-title {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 4px 7px; padding: 8px 10px;
  color: var(--text); font-size: 13px; font-weight: 800;
  letter-spacing: .04em; background: var(--primary-50);
  border-left: 3px solid var(--primary); border-radius: 7px;
}
.uc-side .uc-group-title:first-of-type { margin-top: 10px; }
.uc-group-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; flex: 0 0 20px;
  color: #fff; font-size: 11px; font-weight: 800;
  background: var(--primary); border-radius: 6px;
}
.uc-side a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text-2); }
.uc-side a:hover, .uc-side a.active { background: var(--primary-50); color: var(--primary-700); }
.uc-side a .svg-ico { width: 17px; height: 17px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 18px; }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 24px; font-weight: 700; margin-top: 4px; }
.stat .value.orange { color: var(--primary-600); }

/* 聊天 */
.chat-box { height: 460px; overflow-y: auto; padding: 16px; background: #fafbfc; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 72%; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--border); align-self: flex-start; }
.msg.me { align-self: flex-end; background: var(--primary-50); border-color: #fcd9bd; }
.msg.admin { border-color: #c7dbfd; background: #eff6ff; }
.msg .meta { font-size: 11px; color: var(--muted); margin-bottom: 2px; }

/* ---------- 页脚 ---------- */
.footer { background: #fff; border-top: 1px solid var(--border); padding: 40px 0 24px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.footer h4 { font-size: 15px; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer li a { color: var(--text-2); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; flex-wrap: wrap; gap: 8px; }
.subscribe-form { display: flex; gap: 8px; }

/* 远航客服中枢 FAB 栈（右下角整齐列队） */
.haacc-fab-stack {
  position: fixed; right: 22px; bottom: 24px; z-index: 1080;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  pointer-events: none;
}
.haacc-fab-stack > * { pointer-events: auto; }
.fab-top {
  position: static; width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: #0f172a; border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15,23,42,.12);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .2s, transform .2s, background .2s, color .2s, border-color .2s;
}
.fab-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.fab-top:hover { background: #fff7ed; color: #ea580c; border-color: #fdba74; }
.fab-top svg { display: block; }
.fab-support { display: none !important; }

.haacc-notify-wrap { position: relative; }
.haacc-notify-bell {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7);
  background: rgba(255,255,255,.92); color: #0f172a; cursor: pointer;
  display: grid; place-items: center; position: relative;
  box-shadow: 0 8px 28px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.haacc-notify-bell .haacc-dot {
  position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444; box-shadow: 0 0 0 2px #fff;
}
.haacc-notify-tip {
  position: absolute; right: 54px; top: 50%; transform: translateY(-50%);
  background: #0f172a; color: #fff; font-size: 12px; line-height: 1.35;
  padding: 8px 10px; border-radius: 10px; width: 196px;
  opacity: 0; pointer-events: none; transition: .18s;
}
.haacc-notify-wrap:hover .haacc-notify-tip { opacity: 1; }
.haacc-notify-pop {
  position: absolute; right: 0; bottom: 54px; width: 300px;
  background: rgba(255,255,255,.96); border: 1px solid rgba(226,232,240,.9);
  border-radius: 16px; box-shadow: 0 18px 48px rgba(15,23,42,.18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 14px; z-index: 2;
}
.haacc-notify-pop-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.haacc-notify-pop-head strong { font-size: 14px; color: #0f172a; }
.haacc-notify-pop-acts { display: flex; gap: 6px; align-items: center; }
.haacc-notify-pop-body p, .haacc-notify-pop-denied p { margin: 8px 0 12px; color: #64748b; font-size: 13px; line-height: 1.5; }
.haacc-notify-pop-denied ol { margin: 0; padding-left: 18px; color: #334155; font-size: 13px; line-height: 1.65; }
.haacc-notify-allow { width: 100%; }
.haacc-linkish { background: none; border: 0; color: #ea580c; cursor: pointer; font-size: 12px; padding: 0; }
.haacc-icon-x {
  width: 28px; height: 28px; border: 0; border-radius: 8px; background: #f1f5f9; color: #64748b;
  cursor: pointer; font-size: 18px; line-height: 1;
}

.haacc-concierge-wrap { position: relative; }
.haacc-concierge-trigger {
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(145deg, #f97316, #ea580c);
  box-shadow: 0 12px 28px rgba(234,88,12,.42);
  display: grid; place-items: center; position: relative;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s;
}
.haacc-concierge-trigger:hover { transform: translateY(-2px) scale(1.04); }
.haacc-concierge-trigger .haacc-trigger-ico { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .2s, transform .28s; }
.haacc-concierge-trigger .haacc-trigger-ico svg { width: 26px; height: 26px; }
.haacc-concierge-trigger .haacc-trigger-ico--close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.haacc-concierge-trigger.is-open .haacc-trigger-ico--headset { opacity: 0; transform: rotate(90deg) scale(.6); }
.haacc-concierge-trigger.is-open .haacc-trigger-ico--close { opacity: 1; transform: rotate(0) scale(1); }
.haacc-trigger-badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; animation: haacc-badge-pop .5s ease infinite alternate;
}
.haacc-trigger-badge[hidden],
.haacc-citem-badge[hidden],
[data-hub-trigger-badge][hidden],
[data-hub-unread][hidden] { display: none !important; }
@keyframes haacc-badge-pop { from { transform: scale(1); } to { transform: scale(1.08); } }

.haacc-concierge-menu {
  position: absolute; right: 0; bottom: 66px; width: 300px;
  border-radius: 18px; overflow: hidden;
  background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 22px 60px rgba(15,23,42,.22);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  animation: haacc-pop .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes haacc-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.haacc-concierge-menu-head {
  padding: 12px 14px; background: linear-gradient(120deg, rgba(249,115,22,.12), rgba(234,88,12,.05));
  border-bottom: 1px solid rgba(226,232,240,.7);
}
.haacc-concierge-menu-head b { display: block; font-size: 13px; color: #0f172a; }
.haacc-online { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: #16a34a; }
.haacc-online i {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.55); animation: haacc-breath 1.6s ease infinite;
}
@keyframes haacc-breath {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.haacc-concierge-items { padding: 8px; display: grid; gap: 6px; }
.haacc-citem {
  display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center;
  width: 100%; text-align: left; border: 0; border-radius: 14px; padding: 10px;
  background: rgba(255,255,255,.72); cursor: pointer; transition: .18s;
}
.haacc-citem:hover { transform: translateY(-1px); background: #fff; box-shadow: 0 8px 20px rgba(15,23,42,.08); }
.haacc-citem-ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px;
}
.haacc-citem--msg .haacc-citem-ico { background: linear-gradient(145deg,#60a5fa,#3b82f6); }
.haacc-citem--ticket .haacc-citem-ico { background: linear-gradient(145deg,#fbbf24,#f59e0b); }
.haacc-citem--contact .haacc-citem-ico { background: linear-gradient(145deg,#a78bfa,#8b5cf6); }
.haacc-citem--pwa .haacc-citem-ico { background: linear-gradient(145deg,#34d399,#10b981); }
.haacc-citem-txt { display: grid; gap: 2px; min-width: 0; }
.haacc-citem-txt b { font-size: 14px; color: #0f172a; }
.haacc-citem-txt small { font-size: 11px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.haacc-citem-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.haacc-citem-arrow { color: #94a3b8; font-size: 18px; transition: .15s; }
.haacc-citem:hover .haacc-citem-arrow { color: #ea580c; transform: translateX(2px); }

.haacc-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: end right; padding: 24px; }
.haacc-modal[hidden] { display: none !important; }
.haacc-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.28); backdrop-filter: blur(2px); }
.haacc-modal-card {
  position: relative; z-index: 1; width: min(420px, calc(100vw - 32px));
  max-height: min(86vh, 720px); overflow: auto;
  background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.7);
  border-radius: 20px; box-shadow: 0 24px 64px rgba(15,23,42,.24);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 18px; animation: haacc-pop .22s cubic-bezier(.2,.8,.2,1);
}
.haacc-modal-card--wide { width: min(520px, calc(100vw - 24px)); }
.haacc-modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.haacc-modal-head h3 { margin: 0; font-size: 18px; color: #0f172a; }
.haacc-modal-head p { margin: 4px 0 0; font-size: 13px; color: #64748b; }
.haacc-modal-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e2e8f0; }
.haacc-modal-foot a { font-size: 13px; color: #ea580c; }

.haacc-contact-list { display: grid; gap: 10px; }
.haacc-contact-card {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
  border-radius: 14px; border: 1px solid #e2e8f0; background: #fff; padding: 6px 8px 6px 6px;
}
.haacc-contact-main { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; color: inherit; text-decoration: none; padding: 6px; border-radius: 12px; }
.haacc-contact-main:hover { background: #f8fafc; }
.haacc-contact-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.haacc-contact-card--telegram .haacc-contact-ico { background: #229ED9; }
.haacc-contact-card--channel .haacc-contact-ico { background: #0ea5e9; }
.haacc-contact-card--email .haacc-contact-ico { background: linear-gradient(145deg,#f97316,#ea580c); }
.haacc-contact-card--whatsapp .haacc-contact-ico { background: #25D366; }
.haacc-contact-ico::before { content: ''; width: 18px; height: 18px; background: #fff; mask-size: contain; -webkit-mask-size: contain; mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat; mask-position: center; -webkit-mask-position: center; }
.haacc-contact-card--telegram .haacc-contact-ico::before,
.haacc-contact-card--channel .haacc-contact-ico::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21.5 3.5L2.8 10.7c-1.3.5-1.3 1.2-.2 1.5l4.7 1.5 1.8 5.6c.2.7.4.9 1 .9.6 0 .8-.3 1.1-.6l2.5-2.4 5.2 3.8c1 .5 1.6.2 1.9-.9L22.9 5c.3-1.3-.5-1.9-1.4-1.5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M21.5 3.5L2.8 10.7c-1.3.5-1.3 1.2-.2 1.5l4.7 1.5 1.8 5.6c.2.7.4.9 1 .9.6 0 .8-.3 1.1-.6l2.5-2.4 5.2 3.8c1 .5 1.6.2 1.9-.9L22.9 5c.3-1.3-.5-1.9-1.4-1.5z'/%3E%3C/svg%3E");
}
.haacc-contact-card--email .haacc-contact-ico::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 6h16v12H4z'/%3E%3Cpath fill='white' d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 6h16v12H4z'/%3E%3Cpath fill='white' d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
}
.haacc-contact-card--whatsapp .haacc-contact-ico::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 00-8.7 14.9L2 22l5.3-1.4A10 10 0 1012 2zm5.1 14.3c-.2.6-1.2 1.1-1.9 1.2-.5.1-1.1.2-3.5-.7-3-1.2-4.9-4.3-5.1-4.5-.2-.2-1.5-2-1.5-3.8s1-2.7 1.3-3.1c.3-.4.7-.5 1-.5h.7c.2 0 .5 0 .7.6.2.7.8 2.4.9 2.6.1.2.1.4 0 .6-.1.2-.2.4-.3.5-.2.2-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.2 1.4 2.5 1.5.3.1.5.1.7-.1.2-.2.7-.8.9-1.1.2-.3.4-.2.7-.1.3.1 1.9.9 2.2 1.1.3.2.5.3.6.4.1.2.1.9-.1 1.5z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 00-8.7 14.9L2 22l5.3-1.4A10 10 0 1012 2zm5.1 14.3c-.2.6-1.2 1.1-1.9 1.2-.5.1-1.1.2-3.5-.7-3-1.2-4.9-4.3-5.1-4.5-.2-.2-1.5-2-1.5-3.8s1-2.7 1.3-3.1c.3-.4.7-.5 1-.5h.7c.2 0 .5 0 .7.6.2.7.8 2.4.9 2.6.1.2.1.4 0 .6-.1.2-.2.4-.3.5-.2.2-.3.3-.1.6.2.3.8 1.3 1.7 2.1 1.2 1 2.2 1.4 2.5 1.5.3.1.5.1.7-.1.2-.2.7-.8.9-1.1.2-.3.4-.2.7-.1.3.1 1.9.9 2.2 1.1.3.2.5.3.6.4.1.2.1.9-.1 1.5z'/%3E%3C/svg%3E");
}
.haacc-contact-main b { display: block; font-size: 14px; color: #0f172a; }
.haacc-contact-main small { display: block; font-size: 12px; color: #64748b; margin-top: 2px; }
.haacc-contact-main em { display: block; font-style: normal; font-size: 12px; color: #ea580c; margin-top: 4px; }
.haacc-copy-pill {
  border: 1px solid #fdba74; background: #fff7ed; color: #c2410c; border-radius: 999px;
  padding: 6px 12px; font-size: 12px; cursor: pointer; white-space: nowrap;
}
.haacc-copy-pill.is-copied { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }

.haacc-pwa-brand { display: flex; gap: 12px; align-items: center; }
.haacc-pwa-brand img { border-radius: 14px; box-shadow: 0 10px 24px rgba(234,88,12,.28); }
.haacc-pwa-benefits { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.haacc-pwa-benefits li { padding: 12px; border-radius: 14px; background: #fff7ed; border: 1px solid #ffedd5; }
.haacc-pwa-benefits b { display: block; color: #9a3412; margin-bottom: 4px; }
.haacc-pwa-benefits span { font-size: 13px; color: #78716c; }
.haacc-pwa-install-btn { width: 100%; }
.haacc-pwa-install-btn.is-standalone { background: #16a34a; border-color: #16a34a; }
.haacc-pwa-guide { margin-top: 12px; padding: 12px; border-radius: 12px; background: #f8fafc; border: 1px dashed #cbd5e1; font-size: 13px; color: #334155; line-height: 1.55; }

.haacc-feed-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 1190;
  width: 380px; height: 540px; max-width: calc(100vw - 24px); max-height: calc(100vh - 120px);
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.96); border: 1px solid rgba(226,232,240,.95);
  border-radius: 18px; box-shadow: 0 24px 64px rgba(15,23,42,.22);
  backdrop-filter: blur(14px); overflow: hidden; animation: haacc-pop .2s ease;
}
.haacc-feed-panel[hidden],
#haaccFeedPanel [hidden],
.haacc-feed-panel [hidden],
.haacc-modal[hidden] {
  display: none !important;
}
.haacc-seller-chat {
  display: flex; flex-direction: column; flex: 1; min-height: 0;
}
.haacc-feed-head, .haacc-feed-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; background: linear-gradient(120deg, rgba(249,115,22,.1), transparent); }
.haacc-feed-tools { display: flex; gap: 4px; align-items: center; flex-shrink: 0; }
.haacc-tool {
  width: 30px; height: 30px; border: 0; border-radius: 8px; background: #fff; cursor: pointer; position: relative;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  text-decoration: none; color: #334155; white-space: nowrap;
}
.haacc-tool--svg { width: 32px; min-width: 32px; padding: 0; }
.haacc-tool--svg svg { display: block; }
.haacc-tool[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; right: 0; top: calc(100% + 6px);
  background: #0f172a; color: #fff; font-size: 11px; line-height: 1.3; padding: 4px 8px; border-radius: 8px;
  white-space: nowrap; z-index: 20; pointer-events: none; box-shadow: 0 6px 16px rgba(15,23,42,.18);
}
.haacc-tr-pop.open { display: block !important; }
.haacc-feed-tabs { display: flex; gap: 4px; padding: 0 10px 8px; flex-wrap: wrap; }
.haacc-feed-tabs button {
  border: 0; background: #f1f5f9; color: #475569; border-radius: 999px; padding: 6px 10px; font-size: 12px; cursor: pointer;
}
.haacc-feed-tabs button.is-active { background: #ea580c; color: #fff; }
.haacc-feed-search { padding: 0 12px 8px; }
.haacc-feed-search input { width: 100%; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.haacc-feed-body, .haacc-feed-detail { flex: 1; overflow: auto; padding: 0 10px 10px; }
.haacc-feed-item {
  width: 100%; display: flex; gap: 10px; align-items: flex-start;
  text-align: left; background: #fff; border-radius: 12px; padding: 10px; margin-bottom: 6px;
  border: 1px solid #f1f5f9; cursor: pointer;
}
.haacc-feed-item:hover { border-color: #fdba74; background: #fff7ed; }
.haacc-feed-av {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; background: #e2e8f0;
  display: grid; place-items: center; overflow: hidden; font-size: 13px; font-weight: 700; color: #334155;
}
.haacc-feed-av img { width: 100%; height: 100%; object-fit: cover; }
.haacc-unread-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #ef4444; flex-shrink: 0; }
.haacc-feed-item-main { display: grid; gap: 2px; min-width: 0; flex: 1; }
.haacc-feed-item-main b {
  font-size: 13px; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  writing-mode: horizontal-tb; word-break: normal;
}
.haacc-feed-item-main small { font-size: 11px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.haacc-feed-item-main span {
  font-size: 12px; color: #64748b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word; white-space: normal; line-height: 1.35;
}
.haacc-feed-item time { font-size: 11px; color: #94a3b8; flex-shrink: 0; white-space: nowrap; margin-top: 2px; }
.haacc-feed-foot a { font-size: 12px; color: #ea580c; }
.haacc-feed-loading, .haacc-empty { padding: 28px 12px; text-align: center; color: #94a3b8; font-size: 13px; }
.haacc-sc-warn {
  background: #fef2f2; color: #dc2626; border-bottom: 1px solid #fee2e2;
  font-size: 12px; font-weight: 700; padding: 8px 12px; text-align: center; flex-shrink: 0;
}
.haacc-sc-body { flex: 1; overflow: auto; padding: 12px; background: linear-gradient(180deg,#f8fafc,#fff); }
.haacc-sc-product {
  margin: 0 10px 8px; padding: 8px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa;
  display: flex; gap: 8px; align-items: center;
}
.haacc-sc-product img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.haacc-sc-product .grow { min-width: 0; flex: 1; }
.haacc-sc-product b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.haacc-sc-product .price { color: #ea580c; font-weight: 800; font-size: 13px; }
.haacc-sc-composer { border-top: 1px solid #eef2f6; padding: 10px; background: #fff; flex-shrink: 0; }
.haacc-sc-row { display: flex; gap: 6px; align-items: center; }
.haacc-sc-row input[type=text] {
  flex: 1; border: 1px solid #e2e8f0; border-radius: 999px; padding: 10px 12px; font-size: 13px; min-width: 0;
}
.haacc-sc-ico {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid #e2e8f0; background: #f8fafc;
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
}
.haacc-sc-send {
  width: 36px; height: 36px; border: 0; border-radius: 999px; background: #ea580c; color: #fff; cursor: pointer; flex-shrink: 0;
}
.haacc-sc-bubble { max-width: 82%; margin-bottom: 10px; padding: 8px 10px; border-radius: 12px; font-size: 13px; line-height: 1.45; }
.haacc-sc-bubble.me { margin-left: auto; background: linear-gradient(135deg,#fb923c,#ea580c); color: #fff; }
.haacc-sc-bubble.them { background: #fff; border: 1px solid #e2e8f0; }
.haacc-sc-bubble.sys { margin: 8px auto; background: transparent; color: #64748b; font-size: 11px; text-align: center; }
.haacc-sc-day { text-align: center; margin: 10px 0; }
.haacc-sc-day span { display: inline-block; background: #eef2f6; color: #64748b; font-size: 11px; padding: 2px 10px; border-radius: 999px; }
.haacc-sc-peer { display: flex; align-items: center; gap: 8px; min-width: 0; }
.haacc-sc-peer img, .haacc-sc-peer .av {
  width: 32px; height: 32px; border-radius: 999px; object-fit: cover; background: #e2e8f0; display: grid; place-items: center; flex-shrink: 0;
}
.haacc-sc-peer b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.haacc-sc-peer small { font-size: 11px; color: #94a3b8; }
.haacc-online-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; }
.haacc-online-pill.on { color: #15803d; }
.haacc-online-pill.off { color: #dc2626; }
.haacc-tr-pop {
  position: absolute; right: 8px; top: 44px; z-index: 8; width: 220px; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px; box-shadow: 0 12px 30px rgba(15,23,42,.16); padding: 10px;
}
.haacc-tr-pop.open { display: block !important; }
.haacc-ticket-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.haacc-ticket-head small { display: block; color: #94a3b8; font-size: 12px; }
.haacc-bubbles { display: grid; gap: 8px; margin-bottom: 10px; }
.haacc-bubble { padding: 10px; border-radius: 12px; background: #f8fafc; }
.haacc-bubble.is-me { background: #fff7ed; }
.haacc-bubble.is-staff { background: #eff6ff; }
.haacc-bubble-meta { font-size: 11px; color: #94a3b8; margin-bottom: 4px; }
.haacc-bubble-body { font-size: 13px; color: #334155; white-space: pre-wrap; }
.haacc-ticket-reply { display: grid; gap: 8px; }
.haacc-ticket-reply textarea { width: 100%; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px; font-size: 13px; }
.haacc-ticket-full { display: inline-block; margin-top: 8px; font-size: 12px; color: #ea580c; }

.haacc-aftersale-empty { text-align: center; padding: 24px 8px; }
.haacc-empty-ico { font-size: 36px; margin-bottom: 8px; }
.haacc-aftersale-empty b { display: block; margin-bottom: 8px; color: #0f172a; }
.haacc-aftersale-empty p { color: #64748b; font-size: 13px; line-height: 1.55; margin: 0 0 16px; }
.haacc-aftersale-fallback { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.haacc-order-pick { display: grid; gap: 8px; max-height: 280px; overflow: auto; }
.haacc-order-row {
  display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; text-align: left;
  border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px; background: #fff; cursor: pointer;
}
.haacc-order-row.is-selected, .haacc-order-row:hover { border-color: #fb923c; background: #fff7ed; }
.haacc-order-row img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #f1f5f9; }
.haacc-order-row b { display: block; font-size: 13px; color: #0f172a; }
.haacc-order-row small { display: block; font-size: 11px; color: #94a3b8; margin-top: 2px; }
.haacc-warranty { display: inline-block; margin-top: 6px; font-style: normal; font-size: 11px; color: #15803d; background: #dcfce7; border-radius: 999px; padding: 2px 8px; }
.haacc-as-form { margin-top: 14px; display: grid; gap: 8px; }
.haacc-as-selected { padding: 10px; border-radius: 12px; background: #f8fafc; }
.haacc-issue-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.haacc-issue-types label { display: flex; gap: 6px; align-items: center; font-size: 13px; padding: 8px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }

@media (max-width: 640px) {
  .haacc-fab-stack { right: 14px; bottom: 14px; }
  .haacc-feed-panel {
    right: 0; left: 0; bottom: 0; width: 100%; height: min(78vh, 640px);
    border-radius: 18px 18px 0 0; max-width: none;
  }
  .haacc-modal { place-items: end center; padding: 0; }
  .haacc-modal-card { width: 100%; border-radius: 18px 18px 0 0; max-height: 88vh; }
  .haacc-concierge-menu { width: min(300px, calc(100vw - 28px)); }
  .haacc-issue-types { grid-template-columns: 1fr; }
}
.brand-ico-box { overflow: hidden; display: inline-flex; align-items: center; justify-content: center; }
.brand-ico-box svg, .brand-ico-box img { width: 100%; height: 100%; display: block; }

.toast-wrap { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 10px 18px; border-radius: 10px; background: #1f2430; color: #fff; box-shadow: var(--shadow-lg); animation: pop .2s; font-size: 14px; }
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }

/* 分页 */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; list-style: none; padding: 0; }
.pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.pagination .active span { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled span { opacity: .45; }

/* 认证页 */
.auth-wrap { max-width: 420px; margin: 24px auto; }
.auth-wrap--unified { max-width: 460px; }
.auth-wrap .card-body { padding: 32px; }
.auth-wrap h1, .auth-title { font-size: 22px; text-align: center; margin: 0 0 4px; }
.auth-sub { text-align: center; margin: 0 0 16px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; background: var(--bg-subtle, #f4f4f5); padding: 4px; border-radius: 12px; }
.auth-tabs--line { background: transparent; padding: 0; border-radius: 0; gap: 0; border-bottom: 1px solid #e2e8f0; margin: 0 28px 14px 0; }
.auth-tabs--line .auth-tab { border-radius: 0; padding: 10px 8px 12px; box-shadow: none; background: transparent; position: relative; color: #94a3b8; }
.auth-tabs--line .auth-tab.is-active { background: transparent; color: #ea580c; box-shadow: none; }
.auth-tabs--line .auth-tab.is-active::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 2px; border-radius: 2px; background: #ea580c; }
.auth-tab { display: block; text-align: center; padding: 10px 12px; border-radius: 9px; font-weight: 600; color: var(--muted); text-decoration: none; transition: .15s; }
.auth-tab:hover { color: var(--primary-700); }
.auth-tab.is-active { background: #fff; color: var(--primary-600); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.auth-social-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.auth-social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 40px; height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 14px; border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer; text-decoration: none; transition: .15s; }
.auth-social-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.auth-social-btn:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.auth-social-btn--google { background: #fff; }
.auth-social-btn--telegram { border: none; color: #fff; background: linear-gradient(135deg, #2aabee, #229ed9); box-shadow: 0 4px 14px rgba(34,158,217,.35); }
.auth-social-btn--telegram:hover { filter: brightness(1.03); color: #fff; }

/* 全站登录/注册弹窗 + Telegram 双模式 */
body.auth-modal-open { overflow: hidden; }
.auth-modal[hidden], .auth-tip[hidden] { display: none !important; }
.auth-modal { position: fixed; inset: 0; z-index: 240; display: grid; place-items: center; padding: 18px; }
.auth-modal__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.48); backdrop-filter: blur(6px); }
.auth-modal__panel {
  position: relative; width: 420px; max-width: calc(100vw - 24px); max-height: min(92vh, 560px);
  overflow-x: hidden; overflow-y: auto;
  background: rgba(255,255,255,.98); border: 1px solid rgba(226,232,240,.95); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15,23,42,.22); padding: 18px 22px 20px;
}
@media (min-height: 680px) {
  .auth-modal__panel { max-height: none; overflow-y: visible; }
}
.auth-modal__close {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 999px;
  background: #f1f5f9; color: #64748b; font-size: 18px; line-height: 1; cursor: pointer; z-index: 2;
}
.auth-modal__form[hidden] { display: none !important; }
.auth-modal .form-group { margin-bottom: 10px; }
.auth-modal .form-control { height: 40px; }
.auth-modal .btn-block { height: 40px; }
.auth-modal .auth-divider { margin: 10px 0; }
.auth-modal .turnstile-wrap { min-height: 0; margin-bottom: 8px; transform: scale(.92); transform-origin: left top; }
.auth-tabs button.auth-tab { border: 0; background: transparent; cursor: pointer; width: 100%; }
.auth-pw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.auth-wrap--compact .card-body { padding: 24px 24px 22px; }
.auth-wrap--compact .form-group { margin-bottom: 10px; }
.auth-wrap--compact .form-control { height: 40px; }
.auth-wrap--compact .btn-block { height: 40px; }
.auth-wrap--compact .auth-divider { margin: 10px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.tg-login-hero { text-align: center; margin: 4px 0 16px; }
.tg-login-hero__ico {
  width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 999px;
  display: grid; place-items: center; background: linear-gradient(145deg, #2aabee, #1d92d1);
  box-shadow: 0 0 0 8px rgba(42,171,238,.12), 0 10px 24px rgba(34,158,217,.35);
}
.tg-login-hero__ico svg { width: 28px; height: 28px; }
.tg-login-hero h3 { margin: 0 0 4px; font-size: 18px; }
.tg-login-hero p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.45; }
.tg-login-option {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 12px; margin-bottom: 8px; border-radius: 14px; border: 1px solid #e2e8f0;
  background: #fff; cursor: pointer; transition: .15s;
}
.tg-login-option:hover { border-color: #93c5fd; background: #f8fbff; }
.tg-login-option__ico { font-size: 20px; width: 36px; text-align: center; }
.tg-login-option__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tg-login-option__body b { font-size: 14px; color: #0f172a; }
.tg-login-option__body small { font-size: 12px; color: #94a3b8; }
.tg-login-option__chev { color: #94a3b8; font-size: 20px; }
.tg-rec {
  display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px;
  background: #2563eb; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; vertical-align: middle;
}
.tg-login-back { border: 0; background: transparent; color: #64748b; font-size: 13px; cursor: pointer; margin-top: 10px; padding: 0; }
.tg-login-back:hover { color: #2563eb; }
.tg-qr-box { position: relative; width: 210px; height: 210px; margin: 8px auto 12px; display: grid; place-items: center; }
.tg-qr-canvas { width: 196px; height: 196px; display: grid; place-items: center; }
.tg-qr-canvas svg { width: 196px; height: 196px; display: block; }
.tg-qr-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 42px; height: 42px; border-radius: 999px; background: #2aabee;
  display: grid; place-items: center; box-shadow: 0 0 0 4px #fff, 0 6px 16px rgba(34,158,217,.4);
}
.tg-qr-badge svg { width: 22px; height: 22px; }
.tg-qr-hint { text-align: center; color: #475569; font-size: 13px; margin: 0 0 8px; }
.tg-qr-meta { display: flex; justify-content: center; gap: 12px; align-items: center; font-size: 13px; color: #64748b; margin-bottom: 10px; }
.tg-qr-status.is-pulse { color: #2563eb; animation: tgPulse 1.6s ease-in-out infinite; }
@keyframes tgPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

.auth-tip { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 18px; }
.auth-tip__backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.4); }
.auth-tip__card {
  position: relative; width: min(380px, 100%); background: #fff; border-radius: 16px; padding: 20px;
  box-shadow: 0 18px 40px rgba(15,23,42,.2); text-align: center;
}
.auth-tip__card p { margin: 0 0 14px; color: #334155; font-size: 14px; line-height: 1.55; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 10px 0; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-pw-wrap { position: relative; }
.auth-pw-wrap .form-control { padding-right: 44px; }
.auth-pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; font-size: 16px; line-height: 1; opacity: .65; padding: 6px; }
.auth-pw-toggle:hover { opacity: 1; }
.auth-strength { margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.auth-strength__bar { flex: 1; height: 4px; border-radius: 99px; background: var(--border); overflow: hidden; }
.auth-strength__bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: #94a3b8; transition: .2s; }
.auth-strength__bar i.weak { width: 33%; background: #ef4444; }
.auth-strength__bar i.mid { width: 66%; background: #f59e0b; }
.auth-strength__bar i.strong { width: 100%; background: #22c55e; }
.auth-strength__label { font-size: 12px; color: var(--muted); min-width: 3em; }
.auth-email-hint { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: #fef9c3; border: 1px solid #fde047; color: #854d0e; font-size: 13px; }
.store-bio-meta { display: flex; gap: 4px; flex-wrap: wrap; }
.auth-agree { align-items: flex-start; line-height: 1.5; }
.auth-agree a { color: var(--primary-600); font-weight: 600; }
.auth-agree a:hover { text-decoration: underline; }
.turnstile-wrap { min-height: 65px; }
.turnstile-wrap .cf-turnstile { transform-origin: left center; }
.code-input { letter-spacing: 8px; text-align: center; font-size: 20px; font-weight: 600; }

/* 卖家店铺 */
.store-banner { height: 160px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(120deg, #fed7aa, #fb923c 60%, #f97316); background-size: cover; background-position: center; }
.store-head { display: flex; align-items: flex-end; gap: 16px; padding: 0 24px 20px; margin-top: -32px; }
.store-head .avatar { border: 4px solid #fff; width: 84px; height: 84px; font-size: 30px; }

/* ---------- 响应式 ---------- */
/* ---------- 顶栏语言 / 货币 / 外观 三栏悬浮切换器 ---------- */
.pref-btn {
  display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-size: 13px; font-weight: 500; transition: .15s;
}
.pref-btn:hover { border-color: var(--primary); color: var(--primary-600); }
.pref-btn .sep { color: var(--muted); }
.pref-pop { min-width: 500px; padding: 14px 10px; right: 0; border-radius: 16px; }
.pref-cols { display: grid; grid-template-columns: 1.15fr .95fr 1fr; }
.pref-col { padding: 0 10px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.pref-col:last-child { border-right: 0; }
.pref-head { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 10px 8px; }
.pref-head svg { width: 15px; height: 15px; color: var(--primary); }
.dropdown-menu .pref-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
  border-radius: 10px; font-size: 13.5px; color: var(--text-2); font-weight: 500;
}
.dropdown-menu .pref-opt:hover { background: var(--primary-50); color: var(--primary-700); }
.dropdown-menu .pref-opt.active { background: var(--primary-50); color: var(--primary-600); font-weight: 600; }
.pref-opt .lbl { flex: 1; text-align: left; }
.pref-opt .chk { opacity: 0; color: var(--primary-600); font-weight: 700; font-size: 13px; }
.pref-opt.active .chk { opacity: 1; }
.flag-svg { width: 21px; height: 14px; border-radius: 2px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.cur-sym { width: 20px; text-align: center; font-weight: 700; color: var(--muted); }
.pref-opt.active .cur-sym { color: var(--primary-600); }
.thm-ico { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted); }
.pref-opt.active .thm-ico { color: var(--primary-600); }

/* ---------- 卖家入驻申请 ---------- */
.seller-apply { min-height: calc(100vh - var(--header-h)); padding-bottom: 48px; }
.seller-apply__hero {
  padding: 36px 0 26px;
  background:
    radial-gradient(circle at 85% 0, rgba(59, 130, 246, .15), transparent 34%),
    linear-gradient(120deg, #fff 0%, #f8fbff 58%, #edf4ff 100%);
  border-bottom: 1px solid var(--border);
}
.seller-apply__hero h1 { margin: 10px 0 8px; font-size: 30px; letter-spacing: -.02em; }
.seller-apply__hero p { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.75; }
.seller-steps { display: flex; align-items: center; gap: 0; margin: 24px 0 0; padding: 0; list-style: none; max-width: 720px; }
.seller-steps li { position: relative; display: flex; align-items: center; gap: 8px; flex: 1; color: var(--muted); font-size: 13px; }
.seller-steps li:not(:last-child)::after { content: ""; height: 2px; flex: 1; margin: 0 12px; background: var(--border); }
.seller-steps b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--border-strong); }
.seller-steps li.active { color: var(--primary-700); font-weight: 600; }
.seller-steps li.active b { color: #fff; background: var(--primary); border-color: var(--primary); }
.seller-steps li.active:not(:last-child)::after { background: #fdba74; }
.seller-apply__main { max-width: 1040px; padding-top: 22px; }
.seller-apply__status { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.seller-apply__card { margin-bottom: 16px; overflow: hidden; }
.seller-apply__card .card-head { display: flex; align-items: center; justify-content: space-between; }
.seller-apply__card .card-head > div { display: flex; align-items: center; gap: 10px; }
.seller-apply__card .card-head h2 { margin: 0; font-size: 17px; }
.seller-apply__card .card-head small { color: var(--muted); }
.seller-section-no { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--primary); font-weight: 700; }
.seller-apply__card .card-body { max-width: 760px; }
.form-hint { margin-top: 5px; color: var(--muted); font-size: 12px; }
.seller-agreement {
  height: 430px;
  overflow-y: auto;
  padding: 8px 24px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fbfcfe;
  line-height: 1.8;
  scroll-behavior: smooth;
}
.seller-agreement section { padding-top: 16px; }
.seller-agreement h3 { margin: 0 0 8px; font-size: 15px; }
.seller-agreement p { margin: 0 0 10px; color: var(--text-2); }
.seller-agreement ol { margin: 0 0 10px; padding-left: 22px; color: var(--text-2); }
.seller-agreement li { margin-bottom: 8px; }
.seller-agreement__confirm { padding: 16px 24px; background: var(--card); }
.seller-agreement__confirm .check { display: flex; align-items: flex-start; gap: 9px; line-height: 1.55; }
.seller-agreement__confirm input { margin-top: 4px; flex: none; }
.seller-apply__submit { display: flex; align-items: center; gap: 14px; padding: 4px 0; }
.seller-apply__submit span { color: var(--muted); font-size: 12px; }

/* ---------- 全部分类导航页 ---------- */
html { scroll-behavior: smooth; }
.category-directory { padding-bottom: 32px; }
.category-directory__head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-bottom: 14px;
}
.category-directory__search {
  width: min(320px, 100%); height: 38px; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; background: var(--card); border: 1px solid var(--border); border-radius: 9px;
}
.category-directory__search span { color: var(--muted); font-size: 18px; }
.category-directory__search input { width: 100%; border: 0; outline: 0; background: transparent; }
.category-jumpbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px; padding: 11px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.category-jumpbar a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px;
  padding: 5px 10px; color: var(--text-2); font-size: 12.5px; font-weight: 600;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
}
.category-jumpbar a:hover { color: var(--primary-600); border-color: #fdba74; background: var(--primary-50); }
.category-jumpbar__icon {
  width: 19px; height: 19px; display: inline-grid; place-items: center;
  flex: 0 0 19px; color: #fff; font-size: 10px; font-weight: 800; border-radius: 5px;
}
.category-jumpbar__icon--img { object-fit: cover; background: #f1f5f9; }
.category-directory__sections { display: grid; gap: 12px; }
.category-section {
  scroll-margin-top: calc(var(--header-h) + 62px);
  padding: 15px; background: #f0f2f3; border: 1px solid #edf0f2; border-radius: 12px;
}
.category-section__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.category-section__head > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.category-section__icon {
  width: 24px; height: 24px; display: inline-grid; place-items: center; flex: 0 0 24px;
  color: #fff; font-size: 12px; font-weight: 800; border-radius: 7px;
}
.category-section__icon--img { object-fit: cover; background: #f1f5f9; }
.category-leaf__main { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; }
.category-leaf__name {
  display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.category-leaf__thumb { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; flex: 0 0 22px; background: #f1f5f9; }
.category-section__head h2 { margin: 0; font-size: 15px; }
.category-section__head small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.category-section__head > a { color: var(--primary-600); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.category-section__head > a span { font-size: 17px; vertical-align: -1px; }
.category-section__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.category-leaf {
  min-width: 0; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; background: var(--card); border: 1px solid transparent; border-radius: 8px;
  color: var(--text-2); font-size: 12.5px;
}
.category-leaf span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-leaf small { color: var(--muted); font-size: 11px; }
.category-leaf:hover { color: var(--primary-700); border-color: #fed7aa; box-shadow: var(--shadow); }

/* ---------- 在线工具箱 ---------- */
.tools-page { margin-top: -24px; padding: 22px 0 38px; background: radial-gradient(circle at 20% 0, #eef4ff 0, transparent 32%), radial-gradient(circle at 85% 10%, #ecfeff 0, transparent 30%); }
.tools-page > .container { max-width: 1800px; }
.tools-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-bottom: 14px; padding: 20px; background: rgba(255,255,255,.86);
  border: 1px solid #dbeafe; border-radius: 16px; box-shadow: var(--shadow);
}
.tools-eyebrow { color: #2563eb; font-size: 12px; font-weight: 700; }
.tools-hero h1 { margin: 5px 0 4px; font-size: 23px; }
.tools-hero p { margin: 0; color: var(--muted); font-size: 12.5px; }
.tools-privacy { max-width: 430px; display: flex; gap: 10px; padding: 12px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; color: var(--text-2); font-size: 12px; }
.tools-privacy > b { width: 28px; height: 28px; display: grid; place-items: center; flex: none; color: #2563eb; background: #dbeafe; border-radius: 50%; }
.tools-tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; padding: 7px; overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: 13px; }
.tools-tabs a { min-height: 36px; display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 7px 11px; border-radius: 9px; color: var(--text-2); font-size: 12px; font-weight: 600; }
.tools-tabs a:hover, .tools-tabs a.active { color: #1d4ed8; background: #eff6ff; }
.tools-tabs i { width: 19px; height: 19px; display: inline-grid; place-items: center; color: #2563eb; font-size: 10px; font-style: normal; font-weight: 800; }
.tools-panel { min-height: 320px; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.tools-panel .btn-primary { background: #2476c9; border-color: #2476c9; color: #fff; }
.tools-panel .btn-primary:hover { background: #1d66ae; border-color: #1d66ae; }
.tools-input { min-height: 145px; }
.tools-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.tools-actions .btn { border-radius: 8px 0 0 8px; }
.tools-actions .btn + .btn { border-radius: 0 8px 8px 0; }
.tools-code { margin-top: 18px; padding: 28px 18px 16px; text-align: center; background: #f8fafc; border-radius: 13px; }
.tools-code > strong { display: block; color: #2563eb; font-size: 34px; letter-spacing: 10px; }
.tools-code small { color: var(--muted); }
.tools-progress { height: 4px; margin: 18px 0 8px; overflow: hidden; background: #dbeafe; border-radius: 999px; }
.tools-progress span { display: block; width: 100%; height: 100%; background: #22c55e; transition: width .3s; }
.tools-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 10px; }
.tools-summary > div { display: grid; place-items: center; padding: 10px; background: #f8fafc; border-radius: 9px; }
.tools-summary b { font-size: 20px; }
.tools-summary span { color: var(--muted); font-size: 11px; }
.tools-summary .ok b { color: #16a34a; }.tools-summary .bad b { color: #dc2626; }.tools-summary .warn b { color: #d97706; }
.tools-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.tools-result-grid.two { grid-template-columns: repeat(2, 1fr); }
.tools-result { padding: 12px; border-radius: 12px; }
.tools-result.ok { color: #16a34a; background: #edf9f0; }.tools-result.bad { color: #ef3340; background: #fff0f0; }.tools-result.warn { color: #94a3b8; background: #f3f4f6; }
.tools-result header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.tools-result header span { display: inline-grid; min-width: 18px; height: 18px; place-items: center; margin-left: 3px; border-radius: 50%; background: currentColor; color: white; font-size: 10px; }
.tools-result textarea { width: 100%; height: 170px; resize: vertical; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text-2); }
.tools-result > button, .tools-result-buttons button { width: 100%; margin-top: 8px; padding: 5px; border: 1px solid currentColor; border-radius: 6px; background: transparent; color: inherit; font-size: 11px; }
.tools-result-buttons { display: flex; gap: 4px; }
.tools-mail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.tools-mail-head h2 { margin: 0 0 4px; font-size: 18px; }
.tools-mail-head p { margin: 0; }
.tools-mail-list { display: grid; gap: 8px; }
.tools-mail-list article { display: grid; grid-template-columns: 1fr auto; gap: 4px 15px; padding: 12px; border: 1px solid var(--border); border-radius: 9px; }
.tools-mail-list article div { display: flex; gap: 8px; min-width: 0; }
.tools-mail-list article b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tools-mail-list article small, .tools-mail-list time { color: var(--muted); font-size: 11px; }
.tools-mail-list article p { grid-column: 1/-1; margin: 0; color: var(--text-2); font-size: 12px; }
.tools-text-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.tools-text-settings { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-bottom: 16px; }
.tools-text-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tools-text-grid textarea { min-height: 260px; background: #f8fafc; }
.tools-text-grid label { display: flex; justify-content: space-between; }
.tools-text-grid label span { color: var(--muted); font-weight: 400; }
.tools-text-result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 8px; }
.tools-text-result-actions .btn { border-radius: 8px 0 0 8px; }
.tools-text-result-actions .btn + .btn { color: #16a34a; border-color: #22c55e; border-radius: 0 8px 8px 0; }
.tools-oauth-box { margin-top: 16px; }
.tools-cookie-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.tools-cookie-head h2 { margin: 0; font-size: 18px; }
.tools-cookie-head > span { color: #16a34a; font-size: 11px; white-space: nowrap; }
.tools-cookie-modes { display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 12px; padding: 0; overflow: hidden; background: #f1f5f9; border-radius: 7px; }
.tools-cookie-modes button { min-height: 38px; padding: 6px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-size: 11.5px; }
.tools-cookie-modes button.active { background: var(--card); color: #1d4ed8; font-weight: 700; box-shadow: var(--shadow); }
.tools-cookie-editor { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.tools-cookie-editor textarea { width: 100%; min-height: 190px; display: block; padding: 14px; resize: vertical; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 12px; }
.tools-cookie-editorbar { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 10px; background: #f8fafc; color: var(--muted); font-size: 11px; }
.tools-cookie-editorbar > div { display: flex; align-items: center; gap: 4px; }
.tools-cookie-editorbar button { padding: 5px 8px; border: 0; background: transparent; color: var(--text-2); font-size: 11px; border-radius: 5px; }
.tools-cookie-editorbar button:hover { color: #1d4ed8; background: #eaf2ff; }
.tools-cookie-options { display: grid; grid-template-columns: 180px 310px 1fr; align-items: end; gap: 18px; margin-top: 16px; }
.tools-cookie-options > label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; color: var(--text-2); font-size: 11px; }
.tools-cookie-options > label b { white-space: nowrap; }
.tools-cookie-options .form-control { min-height: 34px; padding: 6px 9px; font-size: 11px; }
.tools-cookie-options .tools-cookie-check { display: flex; align-items: center; padding-bottom: 8px; color: var(--muted); }
.tools-cookie-check input { accent-color: #2563eb; }
.tools-cookie-options #cookieReplaceFields { grid-column: 1 / -1; }
.tools-cookie-convert { margin-top: 16px; }
.tools-cookie-guide { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.tools-cookie-guide h3 { margin: 0 0 16px; color: #172554; font-size: 15px; }
.tools-cookie-guide ol { counter-reset: cookie-step; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 42px; margin: 0; padding: 0; list-style: none; }
.tools-cookie-guide li { counter-increment: cookie-step; position: relative; min-height: 42px; padding-left: 36px; color: var(--text-2); font-size: 11px; }
.tools-cookie-guide li::before { content: counter(cookie-step); position: absolute; left: 0; top: 0; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #1684ef; color: white; font-weight: 800; }
.tools-cookie-guide li b, .tools-cookie-guide li span { display: block; }
.tools-cookie-guide li b { margin-bottom: 3px; color: var(--text); font-size: 12px; }
.tools-cookie-faq { margin-top: 18px; border-top: 1px solid var(--border); }
.tools-cookie-faq details { border-bottom: 1px solid var(--border); }
.tools-cookie-faq summary { padding: 14px 0; cursor: pointer; color: var(--text); font-size: 12px; font-weight: 600; list-style: none; }
.tools-cookie-faq summary::after { content: "⌄"; float: right; color: var(--muted); }
.tools-cookie-faq details[open] summary::after { content: "⌃"; }
.tools-cookie-faq p { margin: -4px 0 14px; color: var(--muted); font-size: 11px; }

/* ---------- 深色外观 (Dark Theme) ---------- */
html[data-theme="dark"] {
  --bg: #0f1420;
  --card: #182032;
  --border: #28334a;
  --border-strong: #364463;
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --muted: #8b9bb4;
  --primary-50: rgba(249, 115, 22, .16);
  --pill-bg: rgba(249, 115, 22, .20);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, .55);
}
html[data-theme="dark"] .topbar { background: rgba(20, 27, 43, .94); }
html[data-theme="dark"] .catbar,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .cat-mega-card,
html[data-theme="dark"] .cat-flyout,
html[data-theme="dark"] .nav-sub-inner,
html[data-theme="dark"] .drawer,
html[data-theme="dark"] .cart-drawer,
html[data-theme="dark"] .cart-drawer-foot,
html[data-theme="dark"] .btn-cart-sm,
html[data-theme="dark"] .search,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .btn:not(.btn-primary):not(.btn-green),
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .user-chip,
html[data-theme="dark"] .sort-tabs,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .pagination a,
html[data-theme="dark"] .pagination span { background: var(--card); color: var(--text); border-color: var(--border); }
html[data-theme="dark"] .user-panel__head {
  background: linear-gradient(135deg, rgba(249, 115, 22, .18), rgba(234, 88, 12, .10));
}
html[data-theme="dark"] .dropdown-menu.user-panel .user-panel__home:hover { background: #1a2233; }
html[data-theme="dark"] .dropdown-menu.user-panel .user-panel__logout:hover { background: rgba(220, 38, 38, .16); }
html[data-theme="dark"] .search-scope,
html[data-theme="dark"] .table th,
html[data-theme="dark"] .cat-mega-tabs,
html[data-theme="dark"] .qty button,
html[data-theme="dark"] .chat-box { background: #121827; color: var(--text-2); }
html[data-theme="dark"] .pill-balance { color: #fdba74; }
html[data-theme="dark"] .logo-wordmark b { color: var(--text); }
html[data-theme="dark"] .nav-seller-cta { color: #fbbf24; }
html[data-theme="dark"] .nav-seller-cta:hover { background: rgba(245, 158, 11, .14); }
html[data-theme="dark"] .seller-apply__hero { background: linear-gradient(120deg, #111827, #182032); }
html[data-theme="dark"] .seller-agreement { background: #121827; }
html[data-theme="dark"] .category-section { background: #121827; border-color: var(--border); }
html[data-theme="dark"] .tools-page { background: radial-gradient(circle at 20% 0, #172554 0, transparent 32%), var(--bg); }
html[data-theme="dark"] .tools-hero { background: rgba(24,32,50,.9); border-color: var(--border); }
html[data-theme="dark"] .tools-privacy,
html[data-theme="dark"] .tools-code,
html[data-theme="dark"] .tools-summary > div { background: #121827; border-color: var(--border); }
html[data-theme="dark"] .tools-cookie-modes { background: #121827; }

@media (max-width: 1200px) {
  .grid-products { grid-template-columns: repeat(4, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
  .grid-products, .grid-products.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .list-layout, .uc-layout, .cart-layout { grid-template-columns: 1fr; }
  .side-nav, .uc-side, .cart-summary-card { position: static; }
  .topup-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .tools-page { margin-top: -16px; padding-top: 14px; }
  .tools-hero { align-items: flex-start; flex-direction: column; padding: 16px; }
  .tools-panel { padding: 16px; }
  .tools-summary { grid-template-columns: repeat(2, 1fr); }
  .tools-result-grid, .tools-result-grid.two, .tools-text-grid, .tools-text-settings { grid-template-columns: 1fr; }
  .tools-mail-head { flex-direction: column; }
  .tools-cookie-head { flex-direction: column; }
  .tools-cookie-modes { display: flex; overflow-x: auto; }
  .tools-cookie-modes button { min-width: 110px; }
  .tools-cookie-options, .tools-cookie-guide ol { grid-template-columns: 1fr; }
  .category-directory__head { align-items: flex-start; flex-direction: column; }
  .category-directory__search { width: 100%; }
  .category-jumpbar { flex-wrap: nowrap; overflow-x: auto; }
  .category-jumpbar a { flex: 0 0 auto; }
  .category-section { padding: 12px; }
  .category-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hamburger { display: grid; }
  .catbar { display: none; }
  .topbar-inner { gap: 10px; }
  .logo span { display: none; }
  .search { height: 38px; }
  .search-scope { display: none; }
  .search button { padding: 0 10px; }
  .user-chip .name, .top-actions .icon-btn.notify { display: none; }
  .user-chip { padding: 0 4px; }
  .pill-balance { padding-left: 10px; font-size: 13px; }
  .pref-btn { padding: 0 9px; font-size: 12px; }
  .pref-pop { min-width: calc(100vw - 24px); right: -40px; }
  .pref-cols { grid-template-columns: 1fr; gap: 10px; }
  .pref-col { border-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
  .pref-col:last-child { border-bottom: 0; padding-bottom: 0; }
  .grid-products, .grid-products.cols-4 { grid-template-columns: 1fr; }  /* 手机单列 */
  .p-card { flex-direction: row; }
  .p-thumb { width: 120px; aspect-ratio: 1; flex-shrink: 0; }
  .p-title { min-height: 0; }
  .mcard {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    min-height: 0;
  }
  .mcard-icon { width: 46px; height: 46px; border-radius: 11px; }
  .mcard-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: stretch;
  }
  .mcard-cta { flex: 1; min-width: 0; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { height: 240px; }
  .hero-content { padding: 0 22px; }
  .hero-content h2 { font-size: 22px; }
  .hero-thumb { display: none; }
  .hero-dots { left: 22px; }
  .features { grid-template-columns: 1fr 1fr; gap: 8px; }
  .feature { padding: 12px; }
  .topup-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail { padding: 16px; }
  .cart-row { padding: 14px; gap: 10px; }
  .cart-row-top { flex-direction: column; gap: 6px; }
  .cart-row-price-box { text-align: left; }
  .cart-row-thumb { width: 64px; height: 64px; }
  .cart-row-check { padding-top: 20px; }
  .spec-list { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .modal-mask { align-items: flex-end; padding: 0; }
  .modal { border-radius: 16px 16px 0 0; max-height: 90vh; }
  .table th, .table td { padding: 10px; }
  .seller-apply__hero { padding: 24px 0 20px; }
  .seller-apply__hero h1 { font-size: 24px; }
  .seller-steps span { display: none; }
  .seller-steps li:not(:last-child)::after { margin: 0 8px; }
  .seller-agreement { height: 360px; padding-inline: 16px; }
  .seller-agreement__confirm { padding: 14px 16px; }
  .seller-apply__submit { align-items: flex-start; flex-direction: column; }
}

/* ---------- 24/7 全天候自动充值 & 站内原生多链扫码收银台 ---------- */
.dep24-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 284px;
  gap: 18px;
  align-items: start;
}
.dep24-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e6ebf2;
}
.dep24-banner-ok {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 14px;
}
.dep24-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(90deg, #eff5ff 0%, #f8fbff 60%, #eef5ff 100%);
  border-bottom: 1px solid #e6edf8;
  flex-wrap: wrap;
}
.dep24-hero__left { display: flex; align-items: center; gap: 13px; }
.dep24-hero__ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: #dbeafe; color: #1d4ed8;
  display: grid; place-items: center; flex-shrink: 0;
}
.dep24-hero__title { margin: 0; font-size: 19px; font-weight: 800; color: #0f172a; line-height: 1.25; }
.dep24-hero__sub { margin: 3px 0 0; font-size: 12.5px; color: #64748b; }
.dep24-hero__pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid #dbe7fb;
  color: #1d4ed8; font-size: 12px; font-weight: 600;
}
.dep24-body { padding: 20px 22px 22px; }
.dep24-step { margin-bottom: 18px; }
.dep24-step__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.dep24-step__num {
  width: 20px; height: 20px; border-radius: 50%;
  background: #dbeafe; color: #1d4ed8;
  font-size: 11.5px; font-weight: 800;
  display: inline-grid; place-items: center;
}
.dep24-step__label { font-size: 13.5px; font-weight: 700; color: #1e293b; }
.dep24-step__calc { margin-left: auto; font-size: 12px; color: #2563eb; font-weight: 600; }

.dep24-amt-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid #dbe2ec;
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.dep24-amt-wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.dep24-amt-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  height: 48px;
  padding: 0 16px;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}
.dep24-amt-unit {
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 800;
  color: #475569;
  letter-spacing: .04em;
}
.dep24-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.dep24-preset {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}
.dep24-preset:hover { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }

.dep24-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.dep24-mcard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid #e5eaf1;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
  width: 100%;
}
.dep24-mcard:hover { border-color: #93c5fd; background: #f8fbff; }
.dep24-mcard.is-active {
  border-color: #2563eb;
  background: #f3f8ff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, .08);
}
.dep24-mcard__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dep24-mcard__title { font-size: 14px; font-weight: 800; color: #0f172a; }
.dep24-mcard__sub { font-size: 11.5px; color: #64748b; }
.dep24-mcard__check {
  width: 20px; height: 20px; border-radius: 50%;
  background: #2563eb; color: #fff;
  display: grid; place-items: center;
  opacity: 0; transform: scale(.75);
  transition: .15s; flex-shrink: 0;
}
.dep24-mcard.is-active .dep24-mcard__check { opacity: 1; transform: scale(1); }

.chain-ico {
  position: relative;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chain-ico > svg { display: block; width: 38px; height: 38px; }
.chain-ico__sub {
  position: absolute;
  right: -3px; bottom: -3px;
  min-width: 16px; height: 16px;
  padding: 0 3px;
  border-radius: 999px;
  border: 2px solid #fff;
  color: #fff;
  font-size: 8px; font-weight: 800;
  line-height: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  box-sizing: border-box;
  z-index: 1;
}
.chain-ico__sub--tron { background: #EF0027; }
.chain-ico__sub--bsc { background: #F3BA2F; color: #111; }
.chain-ico__sub--eth { background: #627EEA; }
.chain-ico__sub--sol { background: linear-gradient(135deg, #9945FF, #14F195); }

.dep24-manual {
  padding: 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  margin-bottom: 14px;
}
.dep24-selected-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 12.5px;
  margin-bottom: 14px;
}
.dep24-submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .24);
  transition: .15s;
}
.dep24-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.dep24-foot-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 10px; font-size: 12px; color: #64748b;
}

/* 右侧步骤与充值优惠阶梯 */
.dep24-side-card { padding: 16px; border-radius: 15px; border: 1px solid #e6ebf2; }
.dep24-side-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 800; color: #0f172a;
  padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; margin-bottom: 12px;
}
.dep24-steps-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.dep24-sitem { display: flex; align-items: flex-start; gap: 10px; }
.dep24-sitem__n {
  width: 22px; height: 22px; border-radius: 50%;
  background: #eff6ff; color: #2563eb;
  font-size: 12px; font-weight: 800;
  display: grid; place-items: center; flex-shrink: 0; margin-top: 1px;
}
.dep24-sitem b { display: block; font-size: 13px; color: #1e293b; }
.dep24-sitem p { margin: 2px 0 0; font-size: 11.5px; color: #64748b; line-height: 1.45; }
.dep24-warn {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 9px 11px; border-radius: 9px;
  font-size: 11.5px; line-height: 1.45; font-weight: 600;
  margin-top: 8px;
}
.dep24-warn--amber { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
.dep24-warn--red { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }

.dep24-bonus-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dep24-bonus-tbl thead th {
  background: #d1fae5; color: #065f46;
  padding: 8px 10px; text-align: left; font-weight: 700; font-size: 12px;
}
.dep24-bonus-tbl thead th:first-child { border-radius: 8px 0 0 8px; }
.dep24-bonus-tbl thead th:last-child { border-radius: 0 8px 8px 0; text-align: right; }
.dep24-bonus-tbl tbody td {
  padding: 9px 10px; border-bottom: 1px solid #f1f5f9; color: #334155;
}
.dep24-bonus-tbl tbody td:last-child { text-align: right; }
.dep24-bonus-tbl tbody tr:last-child td { border-bottom: 0; }
.dep24-bonus-amt { color: #1d4ed8 !important; font-weight: 800; }
.dep24-bonus-tag {
  display: inline-block; padding: 2px 7px; border-radius: 999px;
  background: #ecfdf5; color: #059669; font-weight: 700; font-size: 11.5px;
}

.dep24-rec-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 10px;
}
.dep24-rec-head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.dep24-filters {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 10px;
  padding: 0 20px 14px;
}

/* 站内扫码收银台 (/pay/crypto/{invoiceNo}) */
.cocheck-body { padding: 20px 22px 22px; }
.cocheck-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #eef2f7; margin-bottom: 18px;
}
.cocheck-chain { display: flex; align-items: center; gap: 12px; }
.cocheck-chain__name { font-size: 16px; font-weight: 800; color: #0f172a; }
.cocheck-chain__sub { font-size: 12px; color: #64748b; margin-top: 1px; }
.cocheck-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
}
.cocheck-status--pending { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.cocheck-status--paid { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.cocheck-status--expired, .cocheck-status--cancelled { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }
.cocheck-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #d97706;
  animation: coPulse 1.4s infinite ease-in-out;
}
@keyframes coPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }

.cocheck-main {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.cocheck-qr-card {
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 16px 14px;
  background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.cocheck-qr-box {
  width: 196px; height: 196px;
  display: grid; place-items: center;
  border-radius: 8px; overflow: hidden;
  transition: filter .2s, opacity .2s;
}
.cocheck-qr-box svg { width: 100%; height: 100%; display: block; }
.cocheck-qr-box.is-expired { filter: blur(4px) grayscale(1); opacity: .35; }
.cocheck-qr-caption { margin-top: 10px; font-size: 12.5px; color: #64748b; font-weight: 600; }

.cocheck-details { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.cocheck-amt-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}
.cocheck-amt-label { font-size: 12px; color: #9f1239; font-weight: 600; }
.cocheck-amt-val { font-size: 24px; font-weight: 900; color: #dc2626; margin-top: 3px; letter-spacing: .01em; }

.cocheck-copy {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 9px;
  font-size: 12.5px; font-weight: 700;
  cursor: pointer; white-space: nowrap; background: #fff; transition: .15s;
}
.cocheck-copy--red { border: 1px solid #fda4af; color: #be123c; }
.cocheck-copy--red:hover { background: #ffe4e6; }
.cocheck-copy--blue { border: 1px solid #bfdbfe; color: #1d4ed8; }
.cocheck-copy--blue:hover { background: #eff6ff; }

.cocheck-field__label { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.cocheck-field__text { font-size: 14px; color: #0f172a; }
.cocheck-field__mono { font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; font-weight: 700; color: #0f172a; word-break: break-all; }
.cocheck-addr-row { display: flex; align-items: center; gap: 8px; }
.cocheck-addr {
  flex: 1; min-width: 0;
  padding: 9px 12px; border-radius: 9px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px; color: #1e293b;
  overflow-x: auto; white-space: nowrap;
}
.cocheck-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 12px;
}
.cocheck-timer { font-size: 18px; font-weight: 900; color: #dc2626; font-variant-numeric: tabular-nums; }

.cocheck-alert {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 18px; padding: 11px 14px;
  border-radius: 10px;
  background: #fffbeb; border: 1px solid #fde68a;
  color: #92400e; font-size: 12.5px; line-height: 1.5;
}
.cocheck-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef2f7;
  flex-wrap: wrap;
}
.cocheck-poll-hint { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: #64748b; }
.cocheck-spin { animation: coSpin 2.4s linear infinite; }
@keyframes coSpin { to { transform: rotate(360deg); } }
.cocheck-back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 14px; border-radius: 9px;
  border: 1px solid #dbe2ec; background: #fff;
  color: #334155; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.cocheck-back-btn:hover { border-color: #94a3b8; background: #f8fafc; }

@media (max-width: 1120px) {
  .dep24-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .dep24-methods { grid-template-columns: 1fr; }
  .dep24-filters { grid-template-columns: 1fr; }
  .cocheck-main { grid-template-columns: 1fr; }
  .cocheck-addr-row { flex-direction: column; align-items: stretch; }
  .cocheck-meta-row { grid-template-columns: 1fr; }
}

/* ===== WO-09 tutorial hub / market tips / warranty / tools ===== */
.tutorial-hub { padding-bottom: 40px; }
.tutorial-hero { display:grid; gap:16px; padding:28px 24px; border-radius:16px; background:linear-gradient(135deg,#fff7ed,#eff6ff 55%,#f8fafc); border:1px solid #e2e8f0; margin-bottom:18px; }
.tutorial-eyebrow { display:inline-block; font-size:12px; font-weight:700; color:#c2410c; letter-spacing:.04em; margin-bottom:6px; }
.tutorial-hero h1 { margin:0 0 8px; font-size:28px; line-height:1.25; }
.tutorial-hero p { margin:0; color:#64748b; max-width:720px; }
.tutorial-search { display:flex; gap:8px; flex-wrap:wrap; }
.tutorial-search input { flex:1; min-width:220px; height:42px; border:1px solid #cbd5e1; border-radius:10px; padding:0 14px; }
.tutorial-cats { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.tutorial-cat { display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:999px; background:#fff; border:1px solid #e2e8f0; color:#334155; text-decoration:none; font-size:13px; }
.tutorial-cat.is-active, .tutorial-cat:hover { border-color:#f97316; color:#c2410c; background:#fff7ed; }
.tutorial-cat em { font-style:normal; background:#f1f5f9; border-radius:999px; padding:1px 7px; font-size:11px; }
.tutorial-cat__ico, .tutorial-cat__ico--brand {
  width:22px; height:22px; flex:0 0 22px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:6px; overflow:hidden; line-height:1; vertical-align:middle;
}
.tutorial-cat__ico svg, .tutorial-cat__ico img { width:100%; height:100%; display:block; }
.tutorial-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }
.tutorial-grid--compact { grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); }
.tutorial-card { display:flex; flex-direction:column; background:#fff; border:1px solid #e2e8f0; border-radius:14px; overflow:hidden; text-decoration:none; color:inherit; transition:box-shadow .15s, transform .15s; }
.tutorial-card:hover { box-shadow:0 10px 28px rgba(15,23,42,.08); transform:translateY(-2px); }
.tutorial-card__cover { position:relative; aspect-ratio:16/10; background:#f8fafc; }
.tutorial-card__cover img { width:100%; height:100%; object-fit:contain; padding:18px; }
.tutorial-card--news .tutorial-card__cover { aspect-ratio:16/9; background:#0f172a; }
.tutorial-card--news .tutorial-card__cover img { object-fit:cover; padding:0; }
.tutorial-article__cover { margin:0 0 18px; border-radius:14px; overflow:hidden; aspect-ratio:16/9; background:#0f172a; }
.tutorial-article__cover img { width:100%; height:100%; object-fit:cover; display:block; }
.tutorial-card__badge { position:absolute; left:10px; top:10px; background:rgba(15,23,42,.78); color:#fff; font-size:11px; padding:3px 8px; border-radius:999px; }
.tutorial-card__body { padding:14px 14px 16px; }
.tutorial-card__meta { font-size:12px; color:#94a3b8; margin-bottom:6px; }
.tutorial-card h2, .tutorial-card h3 { margin:0 0 6px; font-size:16px; line-height:1.35; }
.tutorial-card p { margin:0; font-size:13px; color:#64748b; }
.tutorial-callout { display:grid; gap:12px; grid-template-columns:1.2fr 1fr; margin:18px 0; }
.tutorial-callout__block { background:#fff7ed; border:1px solid #fed7aa; border-radius:12px; padding:14px 16px; }
.tutorial-callout__block:last-child { background:#eff6ff; border-color:#bfdbfe; }
.tutorial-tool-btns { display:flex; flex-wrap:wrap; gap:8px; }
.tutorial-body .tip-ok, .rich .tip-ok { background:#ecfdf5; border:1px solid #6ee7b7; border-radius:10px; padding:12px 14px; margin:14px 0; }
.tutorial-body .tip-warn, .rich .tip-warn { background:#fef2f2; border:1px solid #fca5a5; border-radius:10px; padding:12px 14px; margin:14px 0; }
.tutorial-body .step-block, .rich .step-block { background:#f8fafc; border-left:3px solid #f97316; padding:10px 14px; margin:10px 0; border-radius:0 8px 8px 0; }
.tutorial-body .code-sample, .rich .code-sample { background:#0f172a; color:#e2e8f0; padding:12px 14px; border-radius:10px; overflow:auto; font-size:13px; }
.tutorial-body .err-table, .rich .err-table { width:100%; border-collapse:collapse; margin:14px 0; font-size:13px; }
.tutorial-body .err-table th, .tutorial-body .err-table td, .rich .err-table th, .rich .err-table td { border:1px solid #e2e8f0; padding:8px 10px; text-align:left; }
.tutorial-footer { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; padding-top:16px; border-top:1px solid #e2e8f0; }
.market-tip { display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center; justify-content:space-between; padding:12px 14px; border-radius:12px; margin:12px 0 14px; font-size:13px; }
.market-tip--info { background:#eff6ff; border:1px solid #bfdbfe; color:#1e3a8a; }
.market-tip--amber { background:#fffbeb; border:1px solid #fde68a; color:#92400e; }
.market-tip--warn { background:#fef2f2; border:1px solid #fecaca; color:#991b1b; }
.market-tip__links { display:flex; flex-wrap:wrap; gap:8px; }
.market-tip__links a { color:inherit; font-weight:700; text-decoration:underline; }
.market-quickbar { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; margin-bottom:14px; }
.market-quick-search { display:flex; gap:8px; flex:1; min-width:220px; }
.market-quick-search input { flex:1; height:38px; border:1px solid #cbd5e1; border-radius:10px; padding:0 12px; }
.market-filters { display:flex; flex-wrap:wrap; gap:8px; }
.mfilter { padding:7px 12px; border-radius:999px; border:1px solid #e2e8f0; background:#fff; color:#475569; text-decoration:none; font-size:13px; }
.mfilter.is-active { background:#fff7ed; border-color:#fb923c; color:#c2410c; font-weight:700; }
.listing-assist-card { margin-top:14px; padding:12px 14px; border:1px dashed #fdba74; border-radius:12px; background:#fffbeb; }
.listing-assist-card__title { font-weight:700; margin-bottom:8px; }
.listing-assist-card__tools { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.listing-assist-card__tools a { font-size:12px; padding:4px 10px; border-radius:999px; background:#fff; border:1px solid #fed7aa; color:#9a3412; text-decoration:none; }
.listing-assist-card__links { margin:0; padding-left:18px; }
.listing-assist-card__links a { color:#1d4ed8; }
.warranty-compare { display:grid; gap:14px; }
.warranty-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.warranty-metric { background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:12px; }
.warranty-metric b { display:block; margin-bottom:4px; }
.warranty-cols { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.warranty-ok { background:#ecfdf5; border:1px solid #6ee7b7; border-radius:12px; padding:14px; }
.warranty-bad { background:#fef2f2; border:1px solid #fca5a5; border-radius:12px; padding:14px; }
.warranty-ok h3, .warranty-bad h3 { margin:0 0 8px; font-size:16px; }
.guide-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.guide-card { padding:16px; }
.tools-totp-batch { display:grid; gap:8px; margin-top:14px; }
.tools-totp-row { display:grid; grid-template-columns:1fr auto auto; gap:10px; align-items:center; padding:10px 12px; border:1px solid #e2e8f0; border-radius:10px; background:#fff; }
.tools-parser-bar { display:flex; flex-wrap:wrap; gap:10px; align-items:end; margin:12px 0; }
.tools-parser-dual { display:grid; grid-template-columns:1fr 1fr; gap:12px; align-items:end; margin:12px 0; }
.tools-parser-dual label { display:flex; flex-direction:column; gap:6px; font-size:13px; font-weight:600; color:#334155; }
.tools-parser-actions { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.tools-parser-export-bar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:8px 0 4px; }
.tools-parser-cols { display:flex; flex-wrap:wrap; gap:8px; }
.tools-parser-table-wrap, .order-parser-table-wrap { overflow:auto; max-width:100%; border:1px solid #e2e8f0; border-radius:12px; }
.tools-parser-table { min-width:980px; margin:0; font-size:13px; }
.tools-parser-table th { white-space:nowrap; background:#f8fafc; vertical-align:middle; }
.tools-parser-table td { vertical-align:top; max-width:220px; }
.parser-copy-col { margin-left:4px; border:1px solid #cbd5e1; background:#fff; border-radius:6px; font-size:11px; padding:1px 6px; cursor:pointer; color:#475569; font-weight:600; }
.parser-copy-col:hover { background:#fff7ed; border-color:#fdba74; color:#c2410c; }
.parser-empty { color:#94a3b8; }
.parser-cell-copy { cursor:pointer; word-break:break-all; }
.parser-cell-copy:hover { color:#ea580c; }
.parser-cookie-trunc { display:inline-block; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:middle; }
.parser-cookie-cell, .parser-twofa-cell { display:flex; flex-direction:column; gap:4px; }
.parser-cookie-btns { display:flex; flex-wrap:wrap; gap:4px; }
.parser-totp-badge { border:0; background:#ecfdf5; color:#047857; border-radius:999px; padding:2px 8px; font-size:12px; font-weight:700; cursor:pointer; font-variant-numeric:tabular-nums; }
.btn-xs { display:inline-flex; align-items:center; height:22px; padding:0 7px; font-size:11px; border-radius:6px; border:1px solid #cbd5e1; background:#fff; color:#475569; cursor:pointer; }
.btn-xs:hover { background:#fff7ed; border-color:#fdba74; color:#c2410c; }
.order-account-analyzer { margin:10px 0 12px; }
.order-analyzer-card { border:1px solid #fed7aa; background:linear-gradient(180deg,#fff7ed 0%,#fff 42%); border-radius:14px; padding:14px; }
.order-analyzer-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:10px; }
.order-analyzer-badges { display:flex; flex-wrap:wrap; gap:8px; }
.oa-badge { display:inline-flex; align-items:center; gap:4px; padding:5px 10px; border-radius:999px; background:#fff; border:1px solid #e2e8f0; font-size:12px; font-weight:600; color:#334155; }
.oa-badge.is-ok { background:#ecfdf5; border-color:#6ee7b7; color:#047857; }
.oa-badge-uid { cursor:pointer; }
.order-analyzer-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-top:12px; }
.order-totp-panel { display:inline-flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 12px; border-radius:12px; background:#0f172a; color:#e2e8f0; }
.order-totp-panel strong { font-size:22px; letter-spacing:.08em; font-variant-numeric:tabular-nums; color:#fbbf24; }
.order-totp-bar { width:72px; height:6px; border-radius:999px; background:#334155; overflow:hidden; }
.order-totp-bar i { display:block; height:100%; width:100%; background:#22c55e; }
.order-raw-delivery summary { cursor:pointer; font-weight:600; margin-bottom:8px; color:#475569; }
@media (max-width: 900px) {
  .tutorial-callout, .warranty-cols, .warranty-metrics, .guide-grid { grid-template-columns:1fr; }
  .tools-totp-row { grid-template-columns:1fr; }
  .tools-parser-dual { grid-template-columns:1fr; }
  .cat-flyout {
    min-width: 0;
    width: min(440px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }
  .cat-flyout-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ===== listing pin badge ===== */
.mcard--pinned { border-color: #fbbf24; box-shadow: 0 0 0 1px rgba(251,191,36,.35), 0 8px 20px rgba(245,158,11,.12); background: linear-gradient(90deg,#fffbeb 0%,#fff 48%); }
.mcard-tag--pinned { background: linear-gradient(135deg,#f59e0b,#b45309); color: #fff; font-weight: 700; }
.p-card--pinned { border-color: #fbbf24; box-shadow: 0 0 0 1px rgba(251,191,36,.28); }
.p-tag--pinned { background: linear-gradient(135deg,#f59e0b,#b45309) !important; color: #fff !important; }
.pin-badge { display:inline-block; margin-right:4px; padding:1px 6px; border-radius:999px; background:#fef3c7; color:#92400e; font-size:11px; font-weight:700; vertical-align:middle; }
