/* ==========================================================
   Clone2FA site — 自定义样式（无任何 CDN 依赖）
   配色沿用原站：主蓝 #066df4 / 辅助青 #00c7fc
   ========================================================== */
:root {
  --primary: #066df4;
  --primary-dark: #0557c4;
  --primary-1: #00c7fc;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --line: #e6eaf2;
  --text: #16202e;
  --muted: #6b7a90;
  --success: #12b76a;
  --warn: #f79009;
  --danger: #f04438;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(16, 38, 72, 0.06);
  --shadow-lg: 0 12px 40px rgba(16, 38, 72, 0.14);
  --header-h: 76px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

/* 底色：淡彩渐变，让留白不那么死白 */
html {
  background:
    radial-gradient(860px 480px at 3% -2%, #e7f1ff 0%, rgba(231, 241, 255, 0) 62%),
    radial-gradient(780px 460px at 102% 2%, #ffecf5 0%, rgba(255, 236, 245, 0) 60%),
    radial-gradient(920px 520px at 50% 104%, #e8faf2 0%, rgba(232, 250, 242, 0) 62%),
    var(--bg);
  background-attachment: fixed;
  /* 关掉浏览器的「滚动锚定」自动补偿：
     分类栏吸附收起、换分类重排列表时，页面高度会变，Chrome 默认会为了钉住锚点
     把 scrollY 往回拽同样的距离 —— 用户看到的就是「点了菜单往下滑，页面自己被拉回顶部」。 */
  overflow-anchor: none;
}

body {
  position: relative;
  background: transparent;
  color: var(--text);
  font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; opacity: .88; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
button { cursor: pointer; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.flex { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grow { flex: 1; }

/* ==========================================================
   顶栏 / 头部 / 主导航 —— 参照 tuitehao.cc 的蓝白风格
   ========================================================== */

/* ---------------- 顶部通知条（深色） ---------------- */
.topbar { background: #0f172a; color: #fff; font-size: 12px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 34px; }
.topbar-notice { display: flex; align-items: center; gap: 8px; min-width: 0; }
.notice-tag {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  padding: 2px 8px; border-radius: 999px; background: #fff; color: #0f172a;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
}
.topbar-notice-text {
  color: rgba(255, 255, 255, .86); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.topbar-links { display: flex; align-items: center; gap: 18px; flex: none; color: rgba(255, 255, 255, .86); }
.topbar-links a { color: inherit; }
.topbar-links a:hover { color: #fff; }

/* ---------------- 头部（白底：品牌 + 搜索 + 账号） ---------------- */
/* 挂载点去掉自身盒子，否则里面的 sticky 元素会被等高父级卡住、吸不住顶 */
#site-header { display: contents; }
.header { background: #fff; border-bottom: 1px solid #eaf1fa; position: sticky; top: 0; z-index: 60; }
.header-inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 12px; color: var(--text); flex: none; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, #1772f6, #4aa3ff);
  color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; letter-spacing: -.5px;
  box-shadow: 0 8px 20px rgba(23, 114, 246, .22);
}
.brand-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.18; }
.brand-name { font-size: 23px; font-weight: 800; color: #1772f6; letter-spacing: .01em; white-space: nowrap; }
.brand-sub { font-size: 12.5px; font-style: italic; color: #94a3b8; white-space: nowrap; }

.search {
  flex: 1 1 auto; max-width: 660px; display: flex; align-items: center;
  height: 44px; border: 2px solid #1772f6; border-radius: 6px; overflow: hidden; background: #fff;
}
.search:focus-within { box-shadow: 0 0 0 3px rgba(23, 114, 246, .12); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 15px; }
.search button {
  flex: none; width: 58px; height: 100%; border: 0; background: #1772f6; color: #fff;
  display: grid; place-items: center;
}
.search button:hover { background: #0f5fd8; }
.search button svg { width: 19px; height: 19px; }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.currency {
  border: 1px solid #dce9f8; border-radius: 999px; height: 38px; padding: 0 10px;
  background: #fff; color: var(--text); font-weight: 600;
}
.balance-pill {
  display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border-radius: 999px; background: rgba(23, 114, 246, .09); color: #1772f6; font-weight: 700;
}
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #dce9f8;
  background: #fff; display: grid; place-items: center; font-size: 17px; color: #334155;
}
.icon-btn:hover { border-color: #93c5fd; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .badge {
  position: absolute; top: -5px; right: -5px; background: var(--danger); color: #fff;
  min-width: 18px; height: 18px; border-radius: 999px; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; padding: 0 4px;
}
.user-menu { position: relative; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #1772f6, #4aa3ff);
  color: #fff; display: grid; place-items: center; font-weight: 700; cursor: pointer; user-select: none;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
}
.login-pill { height: 40px; padding: 0 20px; border-radius: 999px; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 12px); width: 236px; background: #fff;
  border: 1px solid #e6ecff; border-radius: 16px; box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
  padding: 8px; display: none; z-index: 80;
}
.dropdown.open { display: block; }
.dropdown a, .dropdown button {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 0;
  background: transparent; border-radius: 10px; color: var(--text); text-align: left; font-size: 13.5px;
}
.dropdown a:hover, .dropdown button:hover { background: #f6faff; color: #1772f6; }
.dropdown .sep { height: 1px; background: #eef2ff; margin: 6px 4px; }
.dropdown .dd-head { padding: 8px 12px; border-bottom: 1px solid #eef2ff; margin-bottom: 6px; }

/* ---------------- 主导航（蓝色通栏） ---------------- */
.nav {
  background: #1772f6; position: sticky; top: var(--header-h); z-index: 55;
  box-shadow: 0 8px 20px rgba(23, 114, 246, .28); border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 56px; position: relative;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; }
.nav-right { flex: none; }
/* 只作用于通栏一级菜单，下拉面板里的链接不受白字影响 */
.nav-inner .nav-left > a, .nav-inner .nav-right > a, .nav .nav-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 40px;
  color: #fff; font-weight: 500; font-size: 14px; letter-spacing: .3px; white-space: nowrap;
  border: 0; background: transparent; transition: all .22s ease;
}
.nav-inner .nav-left > a:hover, .nav-inner .nav-right > a:hover, .nav .nav-btn:hover {
  background: rgba(255, 255, 255, .18); transform: translateY(-1px); color: #fff;
}
.nav-inner .nav-left > a.active {
  background: rgba(0, 0, 0, .15); color: #fff; font-weight: 600; box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}
.nav > .container svg, .nav .nav-btn svg { width: 15px; height: 15px; flex: none; }

/* 产品分类：一级类目 + 右侧飞出的二级类目 */
.nav-cat { position: relative; }
.nav-cat > .nav-btn i {
  font-style: normal; font-size: 9px; margin-left: 3px; transition: transform .2s; opacity: .9;
}
.nav-cat.open > .nav-btn i, .nav-cat:hover > .nav-btn i { transform: rotate(180deg); }
.nav-cat-menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 70;
  width: 300px; padding: 8px; background: #fff;
  border: 1px solid #dbeafe; border-radius: 16px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, .18);
  display: none; max-height: 72vh; overflow: visible;
}
.nav-cat:hover > .nav-cat-menu, .nav-cat.open > .nav-cat-menu { display: block; }
.ncm-scroll { max-height: calc(72vh - 16px); overflow: auto; scrollbar-width: thin; }
.ncm-group { position: relative; }
.ncm-group + .ncm-group { margin-top: 2px; }
.ncm-parent {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  color: #0f172a; font-weight: 700; font-size: 13.5px;
}
.ncm-parent .c-ico { width: 20px; height: 20px; }
.ncm-parent span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ncm-parent em {
  font-style: normal; font-size: 11px; font-weight: 800; color: #1772f6;
  background: #eef4ff; border-radius: 999px; padding: 1px 7px;
}
.ncm-parent i { margin-left: auto; font-style: normal; color: #94a3b8; font-size: 12px; }
.ncm-group:hover > .ncm-parent { background: #eff6ff; color: #2563eb; }
.ncm-group:hover > .ncm-parent i { color: #2563eb; transform: translateX(2px); }
/* 二级类目面板用 fixed 定位（JS 算坐标），否则会被一级列表的滚动容器裁掉 */
.ncm-kids {
  position: fixed; z-index: 90;
  min-width: 250px; padding: 8px; display: none; gap: 2px;
  background: #fff; border: 1px solid #dbeafe; border-radius: 16px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, .16);
  max-height: 62vh; overflow: auto;
}
.ncm-kids.open { display: grid; }
.ncm-kid {
  display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 10px;
  border-radius: 10px; color: #475569; font-size: 12.5px; font-weight: 500;
}
.ncm-kid::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: #93c5fd; flex: 0 0 5px; }
.ncm-kid:hover { background: #f8fbff; color: #2563eb; }
.ncm-kid em { margin-left: auto; font-style: normal; font-size: 10.5px; color: #94a3b8; }

/* ---------------- 服务承诺条 ---------------- */
.trustbar { background: #fff; border-bottom: 1px solid #dce9f8; }
.trustbar-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 13px 0; }
.tb-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tb-ico { font-size: 19px; line-height: 1; flex: none; }
.tb-item b { display: block; font-size: 12.5px; color: #334155; font-weight: 700; }
.tb-item span { display: block; font-size: 11.5px; color: #94a3b8; line-height: 1.4; }
@media (max-width: 820px) {
  .trustbar-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 10px 0; }
  .tb-item b { font-size: 12px; }
  .tb-item span { font-size: 11px; }
}

/* ---------------- 左侧分类菜单（手风琴） ---------------- */
.side-menu {
  background: #fff; border: 1px solid #e8f1fb; border-radius: 16px;
  box-shadow: 0 14px 34px -26px rgba(15, 23, 42, .45); overflow: hidden;
}
.side-menu-head {
  padding: 14px 16px; font-weight: 800; font-size: 15px; color: #1772f6;
  border-bottom: 1px solid #eef4fd; display: flex; align-items: center; gap: 8px;
}
.side-menu-list { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.sm-root {
  border: 1px solid #edf3fb; border-radius: 12px; background: #fff;
  box-shadow: 0 4px 12px -10px rgba(15, 23, 42, .5);
}
.sm-root-head {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 10px 11px;
  border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left;
  color: #0f172a; font-weight: 700; font-size: 13.5px;
}
.sm-root-head .c-ico { width: 21px; height: 21px; }
.sm-root-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-count {
  flex: none; font-size: 11px; font-weight: 800; color: #1772f6;
  background: #eef4ff; border-radius: 999px; padding: 1px 7px;
}
.sm-arrow { flex: none; color: #94a3b8; font-size: 10px; transition: transform .2s; }
.sm-root:hover > .sm-root-head { background: #f7fbff; }
.sm-root.open > .sm-root-head { background: #eff6ff; color: #1772f6; }
.sm-root.open > .sm-root-head .sm-arrow { transform: rotate(90deg); color: #1772f6; }
.sm-root.open > .sm-root-head .sm-count { background: #fff; }
.sm-kids { display: none; padding: 2px 8px 9px; }
.sm-root.open > .sm-kids { display: block; }
.sm-kid {
  display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 8px;
  color: #475569; font-size: 12.5px; font-weight: 500; line-height: 1.35;
}
.sm-kid::before { content: ""; width: 5px; height: 5px; border-radius: 999px; background: #bfdbfe; flex: 0 0 5px; }
.sm-kid span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-kid em { margin-left: auto; font-style: normal; font-size: 10.5px; color: #94a3b8; }
.sm-kid:hover { background: #f5f9ff; color: #1772f6; }
.sm-kid:hover::before { background: #1772f6; }
.sm-kid.active { background: #eff6ff; color: #1772f6; font-weight: 700; }
.sm-kid.all { color: #1772f6; font-weight: 700; }
.sm-tools { display: flex; gap: 8px; padding: 0 10px 12px; }
.sm-tools .btn { flex: 1; height: 34px; font-size: 12px; white-space: nowrap; padding: 0 6px; }

/* ---------------- 商品表格列表（参照 tuitehao 的行情表） ---------------- */
.plist {
  background: #fff; border: 1px solid #e8f1fb; border-radius: 16px; overflow: hidden;
  box-shadow: 0 14px 34px -30px rgba(15, 23, 42, .5);
}
.plist-head, .prow {
  display: grid; grid-template-columns: minmax(0, 1fr) 116px 84px 72px 118px;
  gap: 12px; align-items: center; padding: 12px 16px;
}
.plist-head {
  background: #f8fbff; border-bottom: 1px solid #e8f1fb;
  color: #94a3b8; font-size: 12px; font-weight: 700;
}
.plist-head .th-price, .plist-head .th-stock, .plist-head .th-sold { text-align: center; }
.plist-head .th-buy { text-align: right; }
.prow { border-bottom: 1px solid #f2f7fd; transition: background .15s; }
.prow:last-child { border-bottom: 0; }
.prow:hover { background: #fafcff; }
/* 切分类时旧列表先淡下去，等新数据到位整块替换（不清 DOM，避免滚动被回正） */
.plist.is-swapping { opacity: .45; pointer-events: none; transition: opacity .16s ease; }
.prow-name-col { display: flex; align-items: center; gap: 12px; min-width: 0; }
.prow-ico {
  flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(158deg, var(--tl, #f5f7fb), var(--tb, #eceff7));
}
.prow-ico .p-ico { width: 27px; height: 27px; border-radius: 7px; box-shadow: none; }
.prow-main { min-width: 0; }
.prow-name {
  display: block; font-size: 13.5px; font-weight: 600; color: #0f172a; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prow-name:hover { color: #1772f6; }
.prow-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; flex-wrap: nowrap; overflow: hidden; color: #94a3b8; font-size: 11.5px; white-space: nowrap; }
.prow-meta .pm-cat { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.prow-meta .p-region { height: 17px; font-size: 10.5px; padding: 0 6px 0 3px; }
.prow-meta .p-region .flag { width: 13px; height: 8.67px; }
.prow-meta .tag-hot {
  font-style: normal; font-size: 10px; font-weight: 800; color: #fff;
  background: #f97316; border-radius: 999px; padding: 1px 6px;
}
.pcol-price { text-align: center; color: #f5600a; font-weight: 800; font-size: 15px; white-space: nowrap; }
.pcol-price small { display: block; color: #b0bacb; font-size: 10.5px; font-weight: 600; }
.pcol-stock { text-align: center; font-size: 12.5px; font-weight: 700; color: #111827; white-space: nowrap; }
.pcol-stock.out { color: #ef4444; }
.pcol-sold { text-align: center; font-size: 11.5px; color: #94a3b8; font-family: ui-monospace, Menlo, Consolas, monospace; }
.pcol-buy { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.pcol-buy .btn { height: 32px; padding: 0 15px; border-radius: 8px; font-size: 12.5px; }
.pcol-buy .add-mini {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 6px;
  border: 1px solid #dce9f8; border-radius: 8px; background: #fff; color: #1772f6;
}
.pcol-buy .add-mini:hover { border-color: #93c5fd; background: #f5f9ff; }
@media (max-width: 860px) {
  .plist-head, .prow { grid-template-columns: minmax(0, 1fr) 78px 84px; gap: 8px; padding: 10px 12px; }
  .plist-head .th-stock, .plist-head .th-sold, .pcol-stock, .pcol-sold { display: none; }
  .pcol-buy .add-mini { display: none; }
  .prow-meta .pm-cat { max-width: 130px; }
  .pcol-price { font-size: 14px; }
}
@media (max-width: 560px) {
  .plist-head { display: none; }
  .prow { grid-template-columns: minmax(0, 1fr) 92px; }
  .pcol-buy { grid-column: 1 / -1; text-align: left; margin-top: 2px; }
}

/* ---------------- 布局 ---------------- */
.layout { display: grid; grid-template-columns: 286px minmax(0, 1fr); gap: 20px; padding: 20px 0 40px; align-items: start; }
.layout > main { min-width: 0; }
/* 左侧分类菜单跟随滚动常驻（让开顶部 头部 76 + 导航 56） */
.side-col { position: sticky; top: calc(var(--header-h) + 68px); min-width: 0; max-height: calc(100vh - 150px); overflow-y: auto; overflow-x: hidden; padding: 2px; scrollbar-width: thin; }
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side-col { position: static; }
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 16px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 700;
}

/* ---------------- 侧边分类 ---------------- */
/* 分类全部展开：跟随整页滚动，不折叠、不悬浮截断 */
.sidebar { position: static; }
.sidebar-head {
  background: linear-gradient(135deg, var(--primary), var(--primary-1)); color: #fff;
  padding: 12px 16px; font-weight: 700; border-radius: var(--radius) var(--radius) 0 0;
  display: flex; align-items: center; gap: 8px;
}
.cat-list { max-height: 70vh; overflow: auto; padding: 6px; }
.cat-item > .cat-link {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 9px 10px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: 13px;
}
.cat-item > .cat-link:hover { background: #f2f6fe; color: var(--primary); }
.cat-item .chev { display: none; }
.sub-list { display: block; padding: 2px 0 6px 12px; border-left: 1px dashed var(--line); margin-left: 12px; }
.sub-list a { display: block; padding: 6px 8px; border-radius: 6px; color: var(--muted); font-size: 12.5px; }
.sub-list a:hover, .sub-list a.active { background: #f2f6fe; color: var(--primary); }
/* 类目名前的小旗（竖排侧栏） */
.cat-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.cat-name .flag, .cat-name .cat-flags .flag { width: 15px; height: 10px; }

/* ---------------- 横向分类栏（首页 / 商品页） ----------------
   一行一级类目 + 可横向滚动；下方是该类目的二级类目磁贴 */
.layout.single { grid-template-columns: minmax(0, 1fr); }
/* 网格项默认 min-width:auto，会被吸顶后单行排列的分类胶囊撑宽整页，这里允许收缩 */
.layout.single > main { min-width: 0; }
/* 挂载点负责吸顶（它本身就在很高的 main 里，才能贴住）；分类栏只做外观 */
#site-catbar { position: sticky; top: 104px; z-index: 45; min-width: 0; }
.catbar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  margin-bottom: 16px;
  transition: box-shadow .18s, border-color .18s;
}
/* 吸附态：收起子类目面板，收成一行胶囊，把屏幕留给商品 */
.catbar.is-stuck { box-shadow: 0 10px 30px -14px rgba(16, 38, 72, .45); border-color: #d5e0f0; }
.catbar.is-stuck .catbar-panel { max-height: 0; min-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
.catbar.is-stuck .catbar-top { border-bottom: 0; padding: 8px 12px; }
.catbar.is-stuck .catbar-label { height: 36px; font-size: 13.5px; }
.catbar.is-stuck .croot { height: 36px; padding: 0 12px; font-size: 13.5px; }
.catbar.is-stuck .catbar-roots { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.catbar.is-stuck .catbar-roots::-webkit-scrollbar { display: none; }
.catbar.is-stuck .catbar-all { line-height: 36px; }
.catbar.is-stuck .cutil { width: 34px; height: 34px; font-size: 14px; }
/* 品牌配色：1 Facebook / 2 Instagram / 3 TikTok / 4 邮箱 / 5 AI / 6 其它
   --c 主色  --t 浅底  --b 描边  --g 悬停渐变 */
.r1 { --c: #066df4; --t: #edf4ff; --b: #c6dcff; }
.r2 { --c: #d6249f; --t: #fdeef8; --b: #f7c7e4; }
.r3 { --c: #101828; --t: #eef1f6; --b: #ccd5e3; }
.r4 { --c: #0b9b6a; --t: #e9f9f1; --b: #b8e8d4; }
.r5 { --c: #7c3aed; --t: #f3ecff; --b: #d9c9fd; }
.r6 { --c: #5a6b83; --t: #f2f5fa; --b: #dde4ee; }

.catbar-top { display: flex; align-items: flex-start; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.catbar-label {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 15px;
  border-radius: 11px; background: linear-gradient(135deg, var(--primary), var(--primary-1));
  color: #fff; font-weight: 800; font-size: 14.5px; letter-spacing: .3px; white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(6, 109, 244, .85);
}
.catbar-roots {
  flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0;
  padding: 1px;
}
.croot {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px;
  border-radius: 11px; border: 1px solid var(--b); background: var(--t); color: var(--c);
  font-weight: 700; font-size: 14.5px; white-space: nowrap; transition: .14s;
  box-shadow: 0 1px 2px rgba(16, 38, 72, .04);
}
/* 分类图标（FB / IG / TikTok / 邮箱 / Proxy …）：品牌真实 App 图标 */
.c-ico {
  flex: none; width: 20px; height: 20px; border-radius: 6px; object-fit: contain;
  box-sizing: border-box; display: block;
}
.cpill .c-ico { width: 16px; height: 16px; border-radius: 4px; }
.c-ico-lg { width: 21px; height: 21px; border-radius: 6px; }
/* 选中态底是品牌深色，给图标加一圈白边，避免 FB 蓝底/抖音黑底糊在一起 */
.croot.active .c-ico {
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9);
}
.croot:hover { background: #fff; border-color: var(--c); box-shadow: 0 4px 12px -6px var(--c); }
.croot.active {
  background: var(--c); border-color: var(--c); color: #fff;
  box-shadow: 0 8px 18px -8px var(--c), inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.croot em {
  font-style: normal; font-size: 12px; font-weight: 800; line-height: 21px; height: 21px; min-width: 21px;
  text-align: center; padding: 0 7px; border-radius: 999px; background: #fff; color: var(--c);
  box-shadow: inset 0 0 0 1px var(--b);
}
.croot.active em { background: rgba(255, 255, 255, .24); color: #fff; box-shadow: none; }
.catbar-all { flex: none; font-size: 13px; font-weight: 700; white-space: nowrap; line-height: 42px; }
.catbar-tools { flex: none; display: flex; gap: 6px; padding-left: 10px; border-left: 1px solid var(--line); align-self: center; }
.cutil {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; font-size: 16px; line-height: 1;
}
.cutil:hover { border-color: var(--primary); background: #f4f8ff; }
.catbar-panel {
  padding: 14px 16px 16px; background: #fbfcff; min-height: 118px;
  max-height: var(--ph, 620px); overflow: hidden; transform-origin: top center;
  transition: max-height .18s ease, opacity .14s ease, padding .18s ease;
}
.cpanel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.cpanel-head b { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; letter-spacing: .2px; }
.cpanel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.cpill {
  display: flex; align-items: center; justify-content: flex-start; gap: 7px; padding: 11px 13px;
  border-radius: 10px; background: var(--t, #fff); border: 1px solid var(--b, var(--line)); color: var(--text);
  font-size: 14px; font-weight: 600; line-height: 1.3; transition: .14s;
}
.cpill:hover {
  border-color: var(--c, var(--primary)); color: var(--c, var(--primary)); background: #fff;
  box-shadow: 0 4px 12px -8px var(--c, var(--primary));
}
.cpill.active {
  border-color: var(--c, var(--primary)); background: #fff;
  color: var(--c, var(--primary)); font-weight: 800;
  box-shadow: inset 3px 0 0 var(--c, var(--primary)), 0 3px 10px -6px var(--c, var(--primary));
}
.cpill-name { min-width: 0; word-break: break-word; flex: 1 1 auto; }
.cpill em {
  flex: none; margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; line-height: 20px; height: 20px;
  min-width: 20px; text-align: center; padding: 0 6px; border-radius: 999px;
  background: #fff; color: var(--c, var(--muted));
  box-shadow: inset 0 0 0 1px var(--b, var(--line));
}
.cpill.active em { background: var(--c, var(--primary)); color: #fff; box-shadow: none; }
.croot em.zero, .cpill em.zero { opacity: .38; }

@media (max-width: 720px) {
  .catbar-top { padding: 9px; gap: 8px; }
  .catbar-label { display: none; }
  .catbar-all { display: none; }
  /* 窄屏：一级类目收成一行横滑（折行会把分类栏顶得很高），工具按钮也让位 */
  .catbar-tools { display: none; }
  .catbar-roots {
    flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 2px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .catbar-roots::-webkit-scrollbar { display: none; }
  .croot { height: 36px; padding: 0 11px; font-size: 13.5px; gap: 6px; }
  .c-ico { width: 17px; height: 17px; border-radius: 5px; }
  /* 同一组二级磁贴图标完全一样，窄屏优先把宽度让给「国旗 + 国家名」 */
  .cpill .c-ico { display: none; }
  .catbar-panel { padding: 11px; }
  .cpanel-head b { font-size: 14.5px; }
  .cpanel-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .cpill { padding: 9px 10px; font-size: 13px; gap: 5px; }
  .cpill .flag, .croot .flag { width: 14px; height: 9.33px; }
}

/* ---------------- 商品 ---------------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px;
  font-size: 13px; color: var(--muted); font-weight: 600;
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
/* 切换分类时旧列表先淡下去，等新数据到位整块替换（不清空 DOM，避免滚动位置被回正） */
.grid-products.is-swapping { opacity: .45; pointer-events: none; transition: opacity .16s ease; }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-thumb {
  height: 96px; display: grid; place-items: center; font-size: 30px;
  background: linear-gradient(158deg, var(--tl, #f5f7fb), var(--tb, #eceff7));
  color: var(--primary);
  position: relative;
}
/* 品牌图标（真实 App 图标风格） */
.p-ico { width: 46px; height: 46px; border-radius: 12px; display: block; box-shadow: 0 4px 12px rgba(15, 23, 42, .14); }
.product-thumb .p-ico { width: 54px; height: 54px; border-radius: 14px; }
.product-thumb.thumb-lg .p-ico { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 10px 26px rgba(15, 23, 42, .18); }
.ci-thumb .p-ico { width: 36px; height: 36px; border-radius: 9px; box-shadow: none; }
.product-thumb .tag {
  position: absolute; top: 8px; left: 8px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
}
.product-thumb .tag.hot { background: var(--warn); }
.product-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-name { font-weight: 700; font-size: 13.5px; line-height: 1.4; min-height: 38px; color: var(--text); }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); }
.pm-left { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.pm-cat { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-meta > .stock-ok, .product-meta > .stock-low, .product-meta > .stock-num, .product-meta > .stock-out { flex: none; }
.product-price { color: var(--primary); font-weight: 800; font-size: 15px; }
.product-price .usd { color: var(--muted); font-size: 11.5px; font-weight: 600; margin-left: 4px; }
.stock-ok { color: var(--success); font-weight: 600; }
.stock-low { color: var(--warn); font-weight: 600; }
/* 有货：显示实际库存数字，黑色加粗 */
.stock-num { color: #111827; font-weight: 800; font-size: 12.5px; white-space: nowrap; }
.stock-out { color: var(--danger); font-weight: 600; }
.product-actions { display: flex; gap: 6px; }
.product-actions .btn { flex: 1; padding: 0 8px; white-space: nowrap; }

/* ---------------- 缩略图底色：按品牌淡淡同色系，长列表更有层次 ---------------- */
.tint-facebook, .tint-linkedin { --tl: #eaf2ff; --tb: #d6e5ff; }
.tint-instagram { --tl: #fdeef8; --tb: #f6dbee; }
.tint-tiktok, .tint-threads, .tint-x, .tint-capcut { --tl: #eef1f6; --tb: #dbe1eb; }
.tint-youtube, .tint-netflix { --tl: #fff1ef; --tb: #ffdbd5; }
.tint-telegram { --tl: #e9f6ff; --tb: #d2ebff; }
.tint-whatsapp { --tl: #eafbf1; --tb: #d2f5e2; }
.tint-discord, .tint-steam { --tl: #eef0ff; --tb: #dbe0ff; }
.tint-gmail, .tint-elevenlabs { --tl: #fff2ee; --tb: #ffe0d8; }
.tint-outlook { --tl: #eaf2ff; --tb: #d4e4ff; }
.tint-mail, .tint-protonmail, .tint-protonvpn { --tl: #f2eeff; --tb: #e2d9ff; }
.tint-apple { --tl: #f3f4f6; --tb: #e3e6ec; }
.tint-ai, .tint-openai, .tint-claude, .tint-gemini, .tint-perplexity,
.tint-notion, .tint-figma, .tint-canva { --tl: #f4f0ff; --tb: #e5dcff; }
.tint-proxy, .tint-surfshark, .tint-nordvpn, .tint-expressvpn, .tint-pia { --tl: #ecf5f9; --tb: #d8e9f2; }
.tint-amazon, .tint-shopee { --tl: #fff5e9; --tb: #ffe6cb; }
.tint-reddit { --tl: #fff3ec; --tb: #ffe3d2; }
.tint-snapchat { --tl: #fffceb; --tb: #fff3bf; }

/* ---------------- 地区旗帜 ---------------- */
.flag { display: block; width: 20px; height: 13.33px; flex: none; }
.cat-flags { display: inline-flex; align-items: center; gap: 3px; flex: none; }

/* 缩略图右上角旗帜底板 */
.p-flags {
  position: absolute; top: 7px; right: 7px; z-index: 2;
  display: flex; gap: 3px; padding: 3px 4px; border-radius: 7px;
  background: rgba(255, 255, 255, .92); box-shadow: 0 1px 5px rgba(15, 23, 42, .16);
}
.p-flags .flag { width: 19px; height: 12.67px; }
.p-flags-lg { top: 10px; right: 10px; padding: 5px 6px; border-radius: 9px; }
.p-flags-lg .flag { width: 30px; height: 20px; }

/* 卡片 meta 行里的地区文字标签 */
.p-region {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  height: 19px; padding: 0 7px 0 4px; border-radius: 999px;
  background: #eef4ff; color: #1b4fa8; font-size: 11.5px; font-weight: 700;
}
.p-region .flag { width: 15px; height: 10px; }
.p-region-txt { padding: 0 8px; background: #f1f5f9; color: #475569; }

/* 详情页地区标签 */
.region-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.region-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 5px;
  border-radius: 999px; background: #eef4ff; color: #1b4fa8;
  font-size: 12.5px; font-weight: 700; line-height: 1.4;
}
.region-chip .flag { width: 20px; height: 13.33px; }
.region-chip-txt { padding: 3px 10px; background: #f1f5f9; color: #475569; }

/* 分类菜单（一级 / 二级）里的小旗 */
.croot .flag { width: 17px; height: 11.33px; }
.cpill .flag { width: 16px; height: 10.67px; }
.cpanel-head b { display: inline-flex; align-items: center; gap: 6px; }
.cpanel-head b .flag { width: 18px; height: 12px; }

/* ---------------- 按钮 / 表单 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font-weight: 600; font-size: 13px; transition: .15s;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.input, .select, textarea.input {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px;
  background: #fff; outline: 0; transition: .15s;
}
textarea.input { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(6,109,244,.12); }
.help { font-size: 12px; color: var(--muted); margin-top: 6px; }
.help.help-error { color: var(--danger, #de3b30); font-weight: 600; }
.input.input-error { border-color: var(--danger, #de3b30); box-shadow: 0 0 0 3px rgba(222, 59, 48, 0.12); }

/* 支付信息两栏：窄屏自动堆叠，避免二维码和文字挤出卡片 */
.pay-grid { display: grid; gap: 18px; align-items: start; }
.pay-grid.pg-260 { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
.pay-grid.pg-200 { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); }
.pay-grid img { max-width: 100%; height: auto; }
@media (max-width: 760px) {
  .pay-grid, .pay-grid.pg-260, .pay-grid.pg-200 { grid-template-columns: minmax(0, 1fr); }
}

/* 扫码付款后的「我已完成支付」提醒块：必须让用户一眼看到 */
.pay-step {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eff6ff; color: #1d4ed8; font-weight: 800; font-size: 12px;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
}
.report-box {
  margin-top: 16px; padding: 16px; border-radius: 14px;
  background: #fff8e6; border: 2px dashed #f59e0b;
  position: sticky; bottom: 10px; z-index: 6;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}
.report-box .rt { font-size: 16px; font-weight: 800; color: #b45309; line-height: 1.4; }
.report-box .rs { font-size: 13px; color: #92400e; line-height: 1.55; margin-top: 4px; }
.report-box.done { background: #ecfdf5; border-color: #10b981; box-shadow: none; }
.report-box.done .rt { color: #047857; }
.report-box.done .rs { color: #065f46; }
.report-btn {
  width: 100%; height: 58px; margin-top: 12px;
  font-size: 19px; font-weight: 800; letter-spacing: 1px; border-radius: 14px;
  animation: pulseBtn 1.8s ease-in-out infinite;
}
@keyframes pulseBtn {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.30); }
  50% { transform: scale(1.025); box-shadow: 0 14px 32px rgba(37, 99, 235, 0.50); }
}
@media (max-width: 640px) {
  .report-box { padding: 14px; bottom: 8px; }
  .report-box .rt { font-size: 15px; }
  .report-btn { height: 54px; font-size: 17px; }
}
.err { font-size: 12.5px; color: var(--danger); margin-top: 6px; min-height: 18px; }

.auth-wrap { max-width: 430px; margin: 40px auto; }
.auth-tabs { display: flex; gap: 6px; background: #f1f4f9; padding: 4px; border-radius: 10px; margin-bottom: 18px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; height: 34px; border-radius: 8px; font-weight: 700; color: var(--muted); }
.auth-tabs button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow); }

/* ---------------- 表格 ---------------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: 12.5px; background: #fafbfe; }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

.badge-status {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
}
.st-paid { background: rgba(247,144,9,.12); color: var(--warn); }
.st-delivered { background: rgba(18,183,106,.12); color: var(--success); }
.st-pending { background: rgba(6,109,244,.1); color: var(--primary); }
.st-failed, .st-rejected { background: rgba(240,68,56,.12); color: var(--danger); }
.st-refunded { background: #eef1f7; color: var(--muted); }
.st-confirmed { background: rgba(18,183,106,.12); color: var(--success); }

/* ---------------- 分页 ---------------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.pager button {
  min-width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; font-weight: 600; color: var(--text);
}
.pager button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager button:disabled { opacity: .45; }
/* 无限滚动的底部状态条（替代分页按钮） */
.load-more-tip { text-align: center; color: var(--muted); font-size: 13px; padding: 18px 0 6px; }

/* ---------------- 购物车抽屉 ---------------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(10,20,40,.42); z-index: 90; display: none; }
.drawer-mask.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; width: 400px; max-width: 92vw; height: 100%;
  background: #fff; z-index: 95; transform: translateX(100%); transition: transform .22s;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.drawer-body { flex: 1; overflow: auto; padding: 12px 16px; }
.drawer-foot { padding: 14px 16px; border-top: 1px solid var(--line); }
.cart-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-item .ci-thumb { width: 46px; height: 46px; border-radius: 9px; background: #eaf1ff; display: grid; place-items: center; color: var(--primary); font-size: 20px; }
.cart-item .ci-name { font-weight: 600; font-size: 13px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 26px; height: 26px; border: 0; background: #f7f9fd; }
.qty span { min-width: 30px; text-align: center; font-weight: 700; font-size: 13px; }

/* ---------------- Toast ---------------- */
#toasts { position: fixed; top: 78px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  min-width: 220px; max-width: 360px; background: #fff; border-left: 4px solid var(--primary);
  border-radius: 10px; box-shadow: var(--shadow-lg); padding: 11px 14px; font-size: 13px;
  animation: slideIn .18s ease-out;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ---------------- 弹窗 ---------------- */
.modal-mask { position: fixed; inset: 0; background: rgba(10,20,40,.45); z-index: 110; display: none; place-items: center; padding: 16px; }
.modal-mask.open { display: grid; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 520px; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-head { padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 700; display: flex; justify-content: space-between; }
.modal-body { padding: 18px; max-height: 70vh; overflow: auto; }
.modal-foot { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

/* ---------------- 页脚 ---------------- */
.footer { background: #0d1b2e; color: #b9c6d8; margin-top: 40px; padding: 40px 0 0; }
.footer a { color: #b9c6d8; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 28px; padding: 16px 0; font-size: 12.5px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------------- 工具条 / 免费工具 ---------------- */
.tool-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tool-card { border: 1px dashed var(--line); border-radius: 10px; padding: 12px; text-align: center; background: #fbfcff; }
.tool-card .tc-icon { font-size: 22px; }
.tool-card .tc-name { font-weight: 700; font-size: 13px; margin-top: 4px; }
.tool-card .tc-free { color: var(--success); font-size: 11.5px; font-weight: 700; }

/* 首页 hero：左文案 + 右公告栏（2026-11-20 融合版：不再是一张独立的粉色卡） */
.hero {
  background:
    radial-gradient(120% 130% at 100% -20%, #ffeaf5 0%, rgba(255, 234, 245, 0) 46%),
    radial-gradient(100% 120% at 0% 120%, #e6f8ef 0%, rgba(230, 248, 239, 0) 52%),
    linear-gradient(135deg, #eef4ff 0%, #edf7ff 52%, #fbf2fb 100%);
  border-color: #e4ecfa;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 26px; align-items: stretch; }
.hero-copy { min-width: 0; }
.hero-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; justify-content: center; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* 广告位 / 提示卡（填了才显示）：半透明白，和 hero 同底色，不用虚线框 */
.hero-ad {
  margin-top: 14px; max-width: 620px;
  background: rgba(255, 255, 255, .46);
  border: 1px solid rgba(196, 219, 246, .55); border-radius: 14px;
  padding: 12px 15px;
  --ha-fs: 13.5px; --ha-fg: #41506a;
}
.hero-ad[hidden] { display: none; }
.hero-ad .ha-label {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  color: #2b6fd6; background: rgba(255, 255, 255, .8); border: 1px solid rgba(180, 210, 245, .6);
  border-radius: 999px; padding: 2px 10px; margin-bottom: 8px;
}
.hero-ad .ha-title { font-size: 15px; font-weight: 800; color: #10233d; line-height: 1.45; margin-bottom: 6px; }
.hero-ad .ha-body {
  font-size: var(--ha-fs); color: var(--ha-fg); line-height: 1.85;
  white-space: pre-line; word-break: break-word;
}

/* 公告栏：不做成独立卡片（无边框无阴影），靠极淡的白色渐变与留白跟 hero 融在一起 */
.hero-notice {
  --hn-bg: none;
  --hn-fs: 15px; --hn-fg: #33415c; --hn-title: #b3378f;
  position: relative; overflow: hidden; flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 208px; padding: 20px 22px;
  border: 0; border-radius: 14px; box-shadow: none;
  background:
    linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, .16)),
    var(--hn-bg) right 10% / cover no-repeat;
}
/* 白色渐变蒙层：左边几乎全白保证文字清晰，右边让插画透出来 */
.hero-notice.has-pic::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(96deg, rgba(251, 252, 255, .975) 0%, rgba(250, 251, 255, .955) 40%, rgba(252, 249, 253, .84) 64%, rgba(255, 248, 252, .42) 86%, rgba(255, 255, 255, .16) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, 0) 46%);
}
/* 没选插画时也不留独立卡片感：只铺一层极淡的粉色光 */
.hero-notice:not(.has-pic) {
  background:
    radial-gradient(80% 90% at 92% 10%, rgba(255, 219, 238, .55) 0%, rgba(255, 219, 238, 0) 68%);
}
.hero-notice .hn-label {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
  color: var(--hn-title);
  padding-bottom: 9px; margin-bottom: 11px;
  border-bottom: 1px solid rgba(219, 226, 240, .8);
  width: fit-content; max-width: 66%;
}
.hero-notice .hn-body {
  position: relative; z-index: 1;
  max-width: 68%;
  font-size: var(--hn-fs); line-height: 1.9; color: var(--hn-fg);
  white-space: pre-line; word-break: break-word;
  max-height: 224px; overflow: auto; scrollbar-width: thin;
}
.hero-notice .hn-body::-webkit-scrollbar { width: 4px; }
.hero-notice .hn-body::-webkit-scrollbar-thumb { background: rgba(150, 170, 200, .35); border-radius: 4px; }
.hero-notice .hn-foot {
  position: relative; z-index: 1;
  margin-top: 12px; max-width: 72%;
  font-size: 12px; color: #7a879e; line-height: 1.65; white-space: pre-line;
}
@media (max-width: 620px) {
  .hero-notice { min-height: 176px; padding: 15px 16px; }
  /* 窄屏没有右侧余量，蒙层整块压白，只让插画当淡淡的背景 */
  .hero-notice.has-pic::before {
    background:
      linear-gradient(96deg, rgba(252, 252, 255, .97) 0%, rgba(252, 252, 255, .94) 52%, rgba(253, 250, 254, .86) 82%, rgba(255, 255, 255, .66) 100%);
  }
  .hero-notice .hn-label { max-width: 100%; }
  .hero-notice .hn-body { max-width: 100%; max-height: 210px; }
  .hero-notice .hn-foot { max-width: 100%; }
}

/* ---------------- 公告 / 提示块 ---------------- */
.notice { border-radius: var(--radius); padding: 14px 16px; background: #eef4ff; border: 1px solid #d8e6ff; color: #14365f; font-size: 13px; }
.notice.warn { background: #fff8ec; border-color: #ffe3b3; color: #7a4a00; }
.notice h4 { margin: 0 0 6px; font-size: 14px; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }

.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-all; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); }

.code {
  background: #0f1b2d; color: #d7e3f4; border-radius: 10px; padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px;
  overflow-x: auto; white-space: pre;
}
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }

.empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.empty .big { font-size: 40px; margin-bottom: 10px; }

.skeleton { background: linear-gradient(90deg, #eef1f6 25%, #f7f9fc 37%, #eef1f6 63%); background-size: 400% 100%; animation: sk 1.2s ease infinite; border-radius: 8px; }
@keyframes sk { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .search { order: 3; width: 100%; flex-basis: 100%; }
  .balance-pill { display: none; }
  .drawer { width: 100%; }
}

/* ---------- 后台商品表：改名 / 上游实时价 ---------- */
.nm-wrap { display: flex; align-items: flex-start; gap: 6px; min-width: 250px; }
.nm-wrap .nm-txt { flex: 0 1 auto; min-width: 0; word-break: break-word; }
.nm-lock { flex: 0 0 auto; font-size: 12px; line-height: 1.6; }
.nm-edit-btn { flex: 0 0 auto; height: 24px; padding: 0 6px; opacity: .5; }
.nm-edit-btn:hover { opacity: 1; }
.nm-edit { height: 30px; width: 100%; }
.live-slot { font-size: 11.5px; margin-top: 3px; color: #64748b; min-height: 15px; }
.live-slot b { color: #0f172a; }
.live-up { color: #dc2626; font-weight: 700; }
.live-down { color: #16a34a; font-weight: 700; }

/* ---------- 后台「利润」报表 ---------- */
.pcard { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fafbfe; }
.pbar-row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 104px; align-items: center;
  gap: 10px; padding: 3px 0;
}
.pbar { height: 14px; border-radius: 7px; background: #eef1f7; overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 7px; background: linear-gradient(90deg, #0b9b6a, #22c48b); }
.pbar-row.neg .pbar i { background: linear-gradient(90deg, #de3b30, #f4736a); }
.pbar-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pbar-val { text-align: right; font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .pbar-row { grid-template-columns: 44px minmax(0, 1fr) 84px; gap: 8px; }
}

/* ---------- 注册页：邮箱选填标记 ---------- */
.opt-tag {
  display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px;
  background: #eef4ff; border: 1px solid #d8e6ff; color: #2c5b9e;
  font-size: 11px; font-weight: 700; line-height: 17px; vertical-align: 1px;
}

/* ---------------- 空白处淡彩插画（宽屏两侧留白） ---------------- */
.site-deco {
  /* absolute 而不是 fixed：跟着页面一起滚，不再钉在屏幕上（店主 2026-11-20 要求） */
  position: absolute; bottom: auto; top: 470px; z-index: -1; pointer-events: none;
  background-repeat: no-repeat; background-position: bottom center; background-size: contain;
  opacity: .48; display: none;
  filter: saturate(.9) brightness(1.02);
}
.site-deco { opacity: .26; filter: blur(.6px) saturate(.95); }
.site-deco.left { left: 4px; width: 280px; height: 420px; background-image: url(/assets/img/deco/anime-ocean.webp); }
.site-deco.right { right: 4px; width: 280px; height: 430px; background-image: url(/assets/img/deco/anime-blue.webp); }
@media (min-width: 1500px) { .site-deco { display: block; } }
@media (min-width: 1760px) {
  .site-deco.left { width: 330px; height: 500px; }
  .site-deco.right { width: 330px; height: 510px; }
}

/* ---------------- 浮动分类导航（页面左侧） ---------------- */
.catdock {
  position: fixed; left: 12px; right: auto; top: 50%; z-index: 62;
  width: 172px; max-height: 64vh;
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 44px -22px rgba(16, 38, 72, .55);
  opacity: 0; visibility: hidden;
  transform: translateY(-50%) translateX(-26px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s, width .18s ease;
}
body.catdock-on .catdock { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.catdock-head {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 8px 10px; border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap;
}
.catdock-x {
  flex: none; width: 20px; height: 20px; line-height: 1; padding: 0;
  border: 0; border-radius: 6px; background: #eef2f9; color: var(--muted); font-size: 13px;
}
.catdock-x:hover { background: #e2e9f5; }
.catdock-list { overflow: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; }
.catdock-i {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 8px; border-radius: 9px;
  color: var(--text); font-size: 12.5px; font-weight: 600; line-height: 1.25;
}
.catdock-i .dn { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catdock-i em {
  flex: none; font-style: normal; font-size: 10.5px; color: var(--muted);
  background: #f1f4fa; border-radius: 999px; padding: 1px 6px;
}
.catdock-i:hover { background: #f2f7ff; opacity: 1; }
.catdock-i.active { background: linear-gradient(135deg, #2f7cf6, #4aa3ff); color: #fff; }
.catdock-i.active em { background: rgba(255, 255, 255, .26); color: #fff; }
.catdock-all { justify-content: center; color: var(--primary); font-weight: 800; margin-top: 2px; }
.catdock-rail { width: 54px; }
.catdock-rail .catdock-head span, .catdock-rail .dn, .catdock-rail em, .catdock-rail .catdock-all { display: none; }
.catdock-rail .catdock-i { justify-content: center; padding: 7px 4px; }
.catdock-rail .catdock-head { justify-content: center; padding: 6px; }

.catdock-fab {
  display: none; position: fixed; left: 14px; right: auto; bottom: 22px; z-index: 63;
  width: 52px; height: 52px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .6);
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #fff; font-size: 22px; line-height: 1;
  align-items: center; justify-content: center;
  box-shadow: 0 14px 28px -10px rgba(37, 99, 235, .8);
}
body.catdock-on .catdock-fab { display: flex; }

/* 窄屏：面板改成左下角浮层，点按钮才展开 */
@media (max-width: 1499px) {
  .catdock {
    left: 14px; right: auto; top: auto; bottom: 86px;
    width: min(76vw, 300px); max-height: 56vh;
    transform: translateY(12px);
  }
  body.catdock-on .catdock { opacity: 0; visibility: hidden; transform: translateY(12px); }
  body.catdock-open .catdock { opacity: 1; visibility: visible; transform: none; }
  body.catdock-on .catdock-fab { display: flex; }
  .catdock-rail { width: min(76vw, 300px); }
  .catdock-rail .catdock-head span, .catdock-rail .dn, .catdock-rail em, .catdock-rail .catdock-all { display: revert; }
}

/* 宽屏用侧边面板，不需要悬浮按钮 */
@media (min-width: 1500px) { body.catdock-on .catdock-fab { display: none; } }

/* 1500～1699px：左侧留白不够放整列文字，默认收成图标条，鼠标移上去再展开，避免压住商品卡 */
@media (min-width: 1500px) and (max-width: 1699px) {
  .catdock { width: 54px; }
  .catdock .catdock-head span, .catdock .dn, .catdock em, .catdock .catdock-all { display: none; }
  .catdock .catdock-i { justify-content: center; padding: 7px 4px; }
  .catdock .catdock-head { justify-content: center; padding: 6px; }
  .catdock:hover { width: 172px; }
  .catdock:hover .catdock-head span, .catdock:hover .dn, .catdock:hover em, .catdock:hover .catdock-all { display: revert; }
  .catdock:hover .catdock-i { justify-content: flex-start; padding: 6px 8px; }
  .catdock:hover .catdock-all { justify-content: center; }
}

/* ---------- 窄屏：导航收成一行可横滑，分类大菜单让位给左侧菜单 ---------- */
@media (max-width: 900px) {
  .nav-inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-height: 50px; }
  .nav-inner::-webkit-scrollbar { display: none; }
  .nav-left, .nav-right { flex-wrap: nowrap; flex: none; }
  .nav-inner .nav-left > a, .nav .nav-btn { padding: 8px 12px; font-size: 13.5px; }
  .nav-cat-menu { display: none !important; }
}
@media (max-width: 560px) {
  .currency { display: none; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .brand-name { font-size: 20px; }
  .logo-mark { width: 38px; height: 38px; border-radius: 10px; font-size: 12px; }
  .header-actions { gap: 8px; }
  .login-pill { padding: 0 14px; height: 36px; }
}
@media (max-width: 1000px) {
  /* 窄屏分类菜单限高滚动，别把商品列表推到几屏之后 */
  .side-menu-list { max-height: 224px; overflow-y: auto; scrollbar-width: thin; }
}


/* ---------------- 侧栏客服小助手（Q 版头像） ---------------- */
.sm-helper {
  display: flex; align-items: center; gap: 10px;
  margin: 0 10px 12px; padding: 8px 11px 8px 8px;
  border-radius: 13px; border: 1px solid #f6e4ef;
  background: linear-gradient(120deg, #fff6fb 0%, #f4f8ff 100%);
  transition: transform .18s ease, box-shadow .18s ease;
}
.sm-helper:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -14px rgba(190, 120, 160, .85); }
.sm-helper img {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: #ffeaf3; box-shadow: 0 4px 10px -7px rgba(190, 110, 150, .95);
}
.sm-helper .sh-txt { min-width: 0; }
.sm-helper b { display: block; font-size: 12.5px; color: #b3378f; line-height: 1.4; }
.sm-helper em { display: block; font-style: normal; font-size: 11px; color: #8b94a8; line-height: 1.4; }

/* ---------------- 空状态插画 ---------------- */
.empty-pic {
  display: block; width: 132px; height: auto; margin: 0 auto 10px;
  border-radius: 14px; opacity: .95;
}
@media (max-width: 560px) { .empty-pic { width: 104px; } }

/* ---------------- 登录 / 注册页右侧插画 ---------------- */
.auth-wrap { max-width: 430px; margin: 40px auto; }
.auth-flex { display: flex; gap: 20px; align-items: stretch; justify-content: center; }
.auth-flex .card { flex: 1 1 430px; max-width: 430px; }
.auth-art {
  flex: none; width: 300px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid #f0e6f1; background: #fff7fb;
  box-shadow: 0 20px 44px -34px rgba(120, 90, 140, .7);
}
.auth-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-art .aa-tip {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px;
  font-size: 12.5px; color: #8b6b83; line-height: 1.6;
  background: linear-gradient(0deg, rgba(255, 244, 250, .97) 20%, rgba(255, 244, 250, 0) 100%);
}
.auth-art { position: relative; }
@media (max-width: 900px) { .auth-art { display: none; } }

/* 登录 / 注册页：带插画时用宽容器 */
.auth-wrap.wide { max-width: 790px; }
