/* ============ 全局样式（类 yupoo：白底、简洁、卡片网格） ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --accent: #3b82f6;
  --accent-dark: #1d4ed8;
  --text: #1a1b1c;
  --muted: #6b7280;
  --bg: #f7f7f8;
  --card: #ffffff;
  --border: #e4e3dd;
  --danger: #dc2626;
  --success: #16a34a;
}
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
.container { max-width: 1380px; margin: 0 auto; padding: 0 18px; }
.btn {
  display: inline-block; padding: 9px 16px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; cursor: pointer; transition: .15s; font-family: inherit; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f3c4c4; }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search], textarea, select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px;
  font-family: inherit; background: #fff; color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 5px; }
.form-group { margin-bottom: 14px; }

/* Flash 消息 */
.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.flash-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.flash-success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.flash-warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

/* 保存成功气泡提示 */
.toast-ok { position:fixed; right:20px; bottom:20px; background:#16a34a; color:#fff; padding:12px 18px; border-radius:10px; font-size:14px; box-shadow:0 6px 20px rgba(0,0,0,.2); z-index:200; opacity:0; transform:translateY(12px); transition:.3s; max-width:80vw; }
.toast-ok.show { opacity:1; transform:translateY(0); }


.pill { display:inline-block; padding:3px 12px; border-radius:20px; font-size:12px; }
.pill-green { background:#dcfce7; color:#15803d; }
.pill-gray { background:#f3f4f6; color:#6b7280; }
.pill-red { background:#fee2e2; color:#b91c1c; }

/* 采集助手 */
.collect-box { max-width:760px; }
.collect-tip { background:#fefce8; border:1px solid #fde68a; color:#713f12; border-radius:10px; padding:12px 16px; font-size:13px; margin-top:16px; }

/* ============ 顶部导航 ============ */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-top { display:flex; align-items:center; gap:16px; height:64px; }
.brand { font-size:18px; font-weight:700; color: var(--text); letter-spacing: .3px; white-space:nowrap; }
.brand b { color: var(--accent); }
.header-nav { display:flex; gap:32px; padding:13px 0; border-top:1px solid var(--border); }
.header-nav a { color: var(--muted); font-size:17px; font-weight:600; padding:4px 0; letter-spacing:.3px; }
.header-nav a:hover, .header-nav a.active { color: var(--accent); font-weight:700; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-actions { display:flex; align-items:center; gap:8px; flex-wrap:nowrap; }
.lang-switch { font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 5px 9px; white-space:nowrap; }
.lang-switch:hover { color: var(--accent); border-color: var(--accent); }
.header-search { display: flex; align-items: center; flex:1; max-width:420px; margin-left:auto; }
.header-search input { width:100%; border-radius: 8px 0 0 8px; border-right: 0; }
.header-search button {
  padding: 0 16px; height: 39px; border: 1px solid var(--border); border-left: 0; border-radius: 0 8px 8px 0;
  background: var(--accent); cursor: pointer; color: #fff; font-weight:600; white-space:nowrap;
}
.header-search button:hover { background: var(--accent-dark); color: #fff; }

/* ============ 首页/分类卡片 ============ */
.page-title { margin: 26px 0 18px; font-size: 22px; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-bottom: 30px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  transition: .15s; display: block; color: var(--text);
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.card-cover { aspect-ratio: 1/1; background: #f0f0f2; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover.placeholder { display: flex; align-items: center; justify-content: center; color: #c3c3c8; font-size: 26px; }
.card-body { padding: 10px 12px; }
.card-title { font-size: 14px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.card-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }


.category-card .card-cover { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#eef2ff,#e0e7ff); color: var(--accent); font-size: 30px; }

/* ============ 产品详情 ============ */
.product-top { display: flex; gap: 24px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.prod-side { flex:0 0 185px; border-right:1px solid var(--border); padding-right:14px; }
.prod-side-title { font-size:15px; font-weight:700; margin-bottom:12px; }
.prod-side-link { display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:9px; color:var(--text); font-size:14px; margin-bottom:2px; }
.prod-side-link:hover { background:rgba(0,0,0,.04); }
.prod-side-link.active { background:rgba(30,159,255,.12); color:var(--accent); font-weight:600; }
.prod-side-ico .cat-svg { width:20px; height:20px; }
.prod-side-ico { display:flex; align-items:center; justify-content:center; width:26px; }
.prod-side-count { margin-left:auto; font-size:12px; color:var(--muted); }
.gallery { flex: 1 1 420px; min-width: 0; }
.gallery-main { aspect-ratio: 1/1; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fafafa; display:flex;align-items:center;justify-content:center; color:#c3c3c8; font-size:34px; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs-wrap { display:flex; align-items:center; gap:8px; margin-top:10px; }
.gallery-thumbs { display:flex; gap:8px; overflow-x:auto; scroll-behavior:smooth; padding:2px 0; scrollbar-width:thin; }
.gallery-thumbs::-webkit-scrollbar { height:4px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background:#d4dde8; border-radius:4px; }
.thumbs-nav { flex-shrink:0; width:30px; height:56px; border-radius:8px; border:1px solid var(--border); background:var(--card); color:var(--text); font-size:18px; cursor:pointer; line-height:1; }
.thumbs-nav:hover { border-color:var(--accent); color:var(--accent); }
.gallery-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition:border-color .2s, transform .2s; flex-shrink:0; }
.gallery-thumbs img:hover { transform: translateY(-2px); }
.gallery-thumbs img.active { border-color: var(--accent); }
.product-info { flex: 1 1 300px; min-width: 0; }
.product-info h1 { font-size: 22px; margin-bottom: 8px; }
.price { font-size: 22px; font-weight: 700; color: var(--accent); margin: 6px 0 14px; }
.meta { font-size: 13px; color: var(--muted); margin: 4px 0; }
.tag { display: inline-block; background: #eef2ff; color: var(--accent-dark); border-radius: 20px; padding: 3px 10px; font-size: 12px; margin: 3px 4px 0 0; }
.desc-box { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.desc-box h3 { font-size: 16px; margin-bottom: 10px; }
.desc-box p { white-space: pre-wrap; color: #333; }
.contact-box { background: #fefce8; border: 1px solid #fde68a; border-radius: 12px; padding: 16px; margin-top: 16px; font-size: 14px; }
.contact-box h4 { font-size: 14px; margin-bottom: 6px; color: #a16207; }

/* 询价表单 */
.inquiry-form { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-top: 20px; }
.inquiry-form h3 { font-size: 16px; margin-bottom: 12px; }

/* ============ 登录/注册表单 ============ */
.auth-wrap { max-width:none; width:100vw; margin:0 calc(50% - 50vw); padding:56px 16px 64px; min-height:78vh; display:flex; align-items:flex-start; justify-content:center; box-sizing:border-box;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(64,180,226,.28), transparent 60%),
              radial-gradient(900px 460px at -10% 110%, rgba(14,116,144,.35), transparent 60%),
              linear-gradient(155deg,#0d1f33 0%,#123a5c 40%,#16506f 75%,#17607a 100%); }
.auth-card { background: rgba(255,255,255,.98); border:1px solid rgba(255,255,255,.35); border-radius: 18px; padding: 34px 36px; box-shadow:0 24px 60px rgba(3,20,35,.45); width:100%; max-width:430px; }
.auth-card h1 { font-size: 20px; margin-bottom: 18px; text-align: center; }
.auth-alt { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.auth-logo { font-size:22px; font-weight:800; text-align:center; color:#0e7fd0; margin-bottom:4px; letter-spacing:.5px; }
.auth-social { display:flex; flex-direction:column; gap:10px; }
.social-btn { display:flex; align-items:center; justify-content:center; gap:10px; height:44px; border-radius:10px; border:1px solid var(--border); background:#fff; color:var(--text); font-weight:600; font-size:14px; transition:.15s; }
.social-btn:hover { border-color:var(--accent); box-shadow:0 3px 10px rgba(0,0,0,.06); }
.social-x { color:#1a1a1a; }
.auth-divider { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:12px; margin:18px 0; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }

.msg-item { padding:16px; border-bottom:1px solid var(--border); }
.msg-item.msg-unread { background:rgba(30,159,255,.05); }
.msg-head { display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.msg-bubble { background:#f2f7fd; border-radius:10px; padding:10px 12px; font-size:14px; display:inline-block; }
.msg-reply { background:#eef7ee; border-radius:10px; padding:10px 12px; font-size:14px; margin-top:8px; }

.chat-item { border-bottom:1px solid var(--border); padding:10px 0; }
.chat-line { border-radius:10px; padding:9px 12px; font-size:14px; margin:4px 0; }
.chat-mine { background:#f2f7fd; }
.chat-them { background:#eef7ee; }

.wanted-layout { display:flex; gap:20px; align-items:flex-start; }
.wanted-form-box { flex:0 0 340px; position:sticky; top:90px; background:var(--card); border:1px solid var(--border); border-radius:16px; padding:20px; }
.wanted-form-box h3 { font-size:16px; margin-bottom:12px; }
.wanted-main { flex:1; min-width:0; }
.wanted-main-head { font-size:18px; font-weight:700; margin-bottom:14px; }
.wanted-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; }
.rfq-filter { display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap; align-items:center; }
.rfq-filter input[type=search] { flex:1; min-width:160px; padding:8px 12px; border:1px solid var(--border); border-radius:9px; font-size:13px; background:var(--card); color:var(--text); }
.rfq-filter select { padding:8px 10px; border:1px solid var(--border); border-radius:9px; font-size:13px; background:var(--card); color:var(--text); }
.wanted-card { background:var(--card); border:1px solid var(--border); border-radius:14px; overflow:hidden; transition:.15s; }
.wanted-card:hover { box-shadow:0 8px 22px rgba(0,0,0,.08); transform:translateY(-2px); }
.wanted-card-img { aspect-ratio:4/3; background:#eef2f6; }
.wanted-card-img img { width:100%; height:100%; object-fit:cover; display:block; }
.wanted-card-body { padding:12px 14px; }
.wanted-need { font-weight:600; font-size:15px; }
.wanted-qty { color:var(--accent); font-weight:600; margin-left:6px; }
.wanted-note { font-size:13px; color:var(--muted); margin-top:6px; }
.wanted-meta { font-size:12px; color:var(--muted); margin-top:8px; }

.service-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; margin:30px 0 8px; }
.service-card { display:flex; gap:12px; align-items:center; background:var(--card); border:1px solid var(--border); border-radius:14px; padding:16px; }
.service-ico { width:46px; height:46px; border-radius:12px; background:rgba(30,159,255,.1); color:var(--accent); display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.service-t { font-size:14px; font-weight:600; }
.service-d { font-size:12px; color:var(--muted); margin-top:3px; }
.cat-subhead { font-size:13px; color:var(--muted); margin:-4px 0 16px; }

.cat-layout { display:flex; gap:20px; align-items:flex-start; }
.cat-side { flex:0 0 240px; position:sticky; top:90px; background:var(--card); border:1px solid var(--border); border-radius:16px; padding:12px; }
.cat-side-title { font-size:13px; font-weight:700; padding:6px 10px 10px; border-bottom:1px solid var(--border); margin-bottom:6px; }
.cat-side-link { display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:9px; font-size:14px; color:var(--text); }
.cat-side-link:hover { background:rgba(30,159,255,.08); }
.cat-side-link.active { background:rgba(30,159,255,.14); color:var(--accent); font-weight:600; }
.cat-side-ico { width:20px; text-align:center; flex-shrink:0; }
.cat-side-name { flex:1; min-width:0; }
.cat-side-count { font-size:12px; color:var(--muted); }
.cat-main { flex:1; min-width:0; }

.cat-tabs { display:flex; gap:10px; overflow-x:auto; padding:4px 2px 12px; margin-bottom:4px; -webkit-overflow-scrolling:touch; }
.cat-tab { flex:0 0 auto; display:inline-flex; align-items:center; gap:7px; padding:9px 16px; border-radius:999px; background:var(--card); border:1px solid var(--border); font-size:14px; color:var(--text); white-space:nowrap; }
.cat-tab:hover { border-color:var(--accent); color:var(--accent); }
.cat-tab.active { background:var(--accent); border-color:var(--accent); color:#fff; font-weight:600; }
.cat-tab-ico { font-size:15px; }
.cat-tab-ico, .mega-ico, .cat-vstrip-ico {
  width:30px; height:30px; border-radius:9px;
  display:inline-flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#eef4ff,#dfeaff);
  color:#2f6bff; flex-shrink:0; line-height:1;
}
.cat-tab-ico .cat-svg, .mega-ico .cat-svg, .cat-vstrip-ico .cat-svg { width:18px; height:18px; }
.cat-vstrip-ico { width:38px; height:38px; border-radius:11px; }
.cat-vstrip-ico .cat-svg { width:24px; height:24px; }
.header-nav a > svg, .foot-link svg { width:18px; height:18px; }
.wa-chip svg, .card-views svg, .new-flag svg, .new-flag-corner svg { width:15px; height:15px; }
.hero-trust-item svg, .stat-cell svg { width:15px; height:15px; }
.cat-tab.active .cat-tab-ico, .cat-vstrip-link.active .cat-vstrip-ico { background:rgba(255,255,255,0.18); color:#fff; }

.header-nav { position:relative; z-index:50; }
.nav-mega { position:relative; display:inline-block; }
.nav-mega-trigger { cursor:pointer; }
.nav-mega-panel { display:none; position:absolute; top:100%; left:0; width:900px; max-width:94vw; background:var(--card); border:1px solid var(--border); border-radius:14px; box-shadow:0 18px 50px rgba(0,0,0,.14); padding:14px; z-index:200; max-height:calc(100vh - 110px); overflow-y:auto; scrollbar-width:thin; scrollbar-color:#cbd8e6 transparent; }
.nav-mega:hover .nav-mega-panel, .nav-mega-panel:hover { display:block; }

.nav-hot-panel { width:300px !important; left:auto !important; right:0 !important; padding:8px !important; }
.nav-hot-list { display:flex; flex-direction:column; gap:2px; }
.nav-hot-item { display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:9px; color:var(--text); text-decoration:none; font-size:13.5px; transition:background .18s; }
.nav-hot-item:hover { background:linear-gradient(135deg, rgba(30,159,255,.10), rgba(30,159,255,.18)); color:var(--accent); }
.nav-hot-all { border-bottom:1px dashed var(--border); border-radius:0; margin-bottom:4px; padding-bottom:10px; font-weight:600; }
.nav-hot-flag { font-size:18px; line-height:1; }
.nav-hot-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.nav-hot-count { font-size:11px; color:var(--muted); background:#f1f5f9; padding:2px 8px; border-radius:12px; white-space:nowrap; }
.nav-mega-cols { display:flex; gap:14px; }
.nav-mega-left { flex:0 0 210px; border-right:1px solid var(--border); padding-right:6px; max-height:520px; overflow:auto; scrollbar-width:thin; scrollbar-color:#cbd8e6 transparent; }
.mega-root { display:flex; align-items:center; gap:9px; padding:9px 10px; border-radius:9px; font-size:14px; color:var(--text); }
.mega-root:hover { background:rgba(30,159,255,.08); }
.mega-root.on { background:rgba(30,159,255,.14); color:var(--accent); font-weight:600; }
.mega-arrow { margin-left:auto; color:var(--muted); }
.nav-mega-right { flex:1; min-width:0; }
.mega-sub { display:none; }
.mega-sub.on { display:block; }
.mega-sub-all { display:inline-block; font-size:15px; font-weight:700; color:var(--accent); margin-bottom:10px; }
.mega-sub-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:6px; }
.mega-sub-link { display:block; padding:7px 9px; border-radius:7px; font-size:13px; color:var(--text); }
.mega-sub-link:hover { background:rgba(30,159,255,.08); color:var(--accent); }
.mega-empty { font-size:13px; color:var(--muted); }

.cat-vstrip { flex:0 0 118px; background:var(--card); border:1px solid var(--border); border-radius:14px; padding:8px 0; align-self:stretch; position:sticky; top:90px; }
.cat-vstrip-link { display:flex; flex-direction:column; align-items:center; gap:5px; padding:10px 4px; font-size:12px; color:var(--text); text-align:center; border-bottom:1px solid var(--border); }
.cat-vstrip-link:last-child { border-bottom:0; }
.cat-vstrip-link:hover { color:var(--accent); background:rgba(30,159,255,.06); }
.cat-vstrip-link.active { color:var(--accent); font-weight:600; background:rgba(30,159,255,.1); }
.cat-vstrip-ico { font-size:18px; }

.brand-chips { display:flex; flex-wrap:wrap; gap:10px; }
.brand-chip { padding:8px 16px; border-radius:999px; background:var(--card); border:1px solid var(--border); font-size:14px; color:var(--text); }
.brand-chip:hover { border-color:var(--accent); color:var(--accent); }
.brand-logo { height:36px; width:auto; display:block; }
.trust-item-link { cursor:pointer; transition:.15s; border-radius:14px; }
.trust-item-link:hover { background:rgba(30,159,255,.07); text-decoration:none; }
.empty-box { text-align:center; padding:50px 20px; color:var(--muted); }
/* 404 ҳ */
.nf-wrap { text-align:center; padding:64px 16px 40px; }
.nf-404 { color:var(--accent); opacity:.85; }
.nf-code { font-size:56px; font-weight:800; letter-spacing:4px; color:var(--text); line-height:1.1; }
.nf-title { font-size:18px; font-weight:600; margin-top:8px; color:var(--text); }
.nf-sub { font-size:13.5px; color:var(--muted); margin-top:8px; line-height:1.6; }
.nf-search { display:flex; gap:8px; max-width:440px; margin:20px auto 14px; }
.nf-search input { flex:1; min-width:0; padding:10px 14px; border:1px solid var(--border); border-radius:9px; font-size:13.5px; background:var(--card); color:var(--text); }
.nf-search .btn { white-space:nowrap; }
.empty-ico { font-size:46px; margin-bottom:12px; }
.empty-box .btn { margin-top:16px; }

.brand-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; margin-bottom:24px; }
.brand-tile { background:var(--card); border:1px solid var(--border); border-radius:14px; overflow:hidden; text-align:center; transition:.15s; display:block; }
.brand-tile:hover { border-color:var(--accent); box-shadow:0 8px 22px rgba(0,0,0,.08); transform:translateY(-2px); text-decoration:none; }
.brand-tile-cover { height:120px; background:#f3f4f6; display:flex; align-items:center; justify-content:center; font-size:30px; }
.brand-tile-cover img { width:100%; height:100%; object-fit:cover; }
.brand-tile-name { font-size:13px; font-weight:600; color:var(--text); padding:10px 8px 2px; }
.brand-tile-count { font-size:12px; color:var(--muted); padding:0 8px 10px; }

.cat-tiles { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:16px; margin-top:16px; }


.hc-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:14px; margin-bottom:8px; }
.hc-card { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:14px; }
.hc-head { display:flex; align-items:center; gap:8px; font-size:14px; margin-bottom:10px; }
.hc-head b { font-weight:700; }
.hc-count { margin-left:auto; font-size:11px; color:var(--muted); background:#f1f5f9; padding:2px 8px; border-radius:12px; white-space:nowrap; }
.hc-link { display:flex; align-items:center; gap:10px; padding:6px 0; border-top:1px dashed #eef2f6; color:var(--text); font-size:12.5px; text-decoration:none; }
.hc-link:hover { color:var(--accent); }
.hc-link img { width:38px; height:38px; object-fit:cover; border-radius:8px; flex-shrink:0; }
.hc-name { overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }


.ht-title-ico { vertical-align:-4px; color:var(--accent); }
.ht-active-flag { display:inline-flex; align-items:center; gap:6px; font-size:15px; font-weight:600; background:linear-gradient(135deg, rgba(30,159,255,.12), rgba(30,159,255,.22)); color:var(--accent); padding:5px 14px; border-radius:20px; margin-left:8px; }
.ht-sub { color:var(--muted); font-size:13.5px; margin:8px 0 18px; }
.ht-country-bar { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px; }
.ht-country-chip { display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:20px; font-size:13px; font-weight:600; text-decoration:none; background:var(--card); border:1px solid var(--border); color:var(--text); transition:all .18s; }
.ht-country-chip:hover { border-color:rgba(30,159,255,.5); color:var(--accent); }
.ht-country-chip.on { background:linear-gradient(135deg, #1e9fff, #0f7adf); color:#fff; border-color:transparent; box-shadow:0 6px 16px rgba(30,159,255,.28); }
.ht-chip-count { font-size:11px; opacity:.75; }
.ht-result-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; flex-wrap:wrap; gap:8px; }
.ht-result-title { margin:0; font-size:17px; display:flex; align-items:center; gap:8px; }
.cat-tile { background:var(--card); border:1px solid var(--border); border-radius:14px; overflow:hidden; display:block; transition:.15s; }
.cat-tile:hover { border-color:var(--accent); box-shadow:0 10px 26px rgba(0,0,0,.09); transform:translateY(-3px); text-decoration:none; }
.cat-tile-cover { height:150px; background:#f3f4f6; display:flex; align-items:center; justify-content:center; }
.cat-tile-cover img { width:100%; height:100%; object-fit:cover; }
.cat-tile-body { padding:12px 14px; }
.cat-tile-name { font-size:15px; font-weight:700; color:var(--text); }
.cat-tile-count { font-size:12px; color:var(--muted); margin-top:4px; }

.desc-content { line-height:1.7; word-break:break-word; }
.desc-content img { max-width:100%; border-radius:8px; margin:6px 0; display:block; }
.desc-content p { margin:6px 0; }
.desc-content ul, .desc-content ol { padding-left:20px; margin:6px 0; }
.desc-content table { border-collapse:collapse; width:100%; }
.desc-content td, .desc-content th { border:1px solid var(--border); padding:6px 8px; }
.new-flag-corner { position:absolute; top:8px; right:8px; background:rgba(245,63,63,.92); color:#fff; font-size:11px; padding:3px 8px; border-radius:999px; }

tr.child td { background:#f7fafc; }
.foot-risk { margin-top:16px; padding-top:14px; border-top:1px solid rgba(255,255,255,.12); font-size:12px; color:#8fa3b8; line-height:1.7; }

/* ============ 后台 ============ */
.admin-wrap { display: flex; min-height: 100vh; }
.admin-side {
  width: 210px; background: #111827; color: #cbd5e1; flex-shrink: 0;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-side .brand { color: #fff; padding: 18px 18px 14px; font-size: 17px; border-bottom: 1px solid #1f2937; }
.admin-side a { color: #cbd5e1; display: block; padding: 11px 18px; font-size: 14px; position: relative; }
.admin-side .side-grp { color:#64748b; font-size:11px; letter-spacing:.08em; padding:14px 18px 4px; text-transform:uppercase; }
.admin-side a:hover, .admin-side a.active { background: #1f2937; color: #fff; }
.side-badge { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: #ef4444; color: #fff; font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; border-radius: 9px; text-align: center; padding: 0 4px; }
.admin-side .side-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.admin-side .side-scroll::-webkit-scrollbar { width: 5px; }
.admin-side .side-scroll::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
.admin-side .side-scroll::-webkit-scrollbar-track { background: transparent; }
.admin-side .logout { margin-top: auto; border-top: 1px solid #1f2937; flex-shrink: 0; }
.admin-main { flex: 1; min-width: 0; padding: 22px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.admin-head h1 { font-size: 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.stat .n { font-size: 26px; font-weight: 700; color: var(--accent); }
.stat .t { font-size: 13px; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.table th, .table td { padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { background: #fafafa; color: var(--muted); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table img.thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.panel h2 { font-size: 16px; margin-bottom: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; min-width: 0; }
.thumb-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.thumb-item { position: relative; width: 96px; }
.thumb-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.thumb-item form { position: absolute; top: 4px; right: 4px; }
.thumb-item .del { background: rgba(220,38,38,.9); color:#fff; border:0; border-radius:6px; width:24px;height:24px;cursor:pointer; font-size:14px; line-height:1; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; }
.badge-on { background: #dcfce7; color: var(--success); }
.badge-off { background: #fee2e2; color: var(--danger); }


.site-footer { border-top: 1px solid var(--border); padding: 22px 0; margin-top: 30px; color: var(--muted); font-size: 13px; text-align: center; }

/* ============ 新版首页 UI ============ */
.hero { background: linear-gradient(135deg,#eef2ff 0%,#e0e7ff 45%,#dbeafe 100%); border-radius: 20px; margin: 18px 0 8px; padding: 46px 28px; text-align:center; position: relative; overflow:hidden; }
.hero::before { content:''; position:absolute; width:320px;height:320px;border-radius:50%; background: radial-gradient(circle, rgba(59,130,246,.16), transparent 62%); top:-90px; right:-60px; }
.hero::after { content:''; position:absolute; width:260px;height:260px;border-radius:50%; background: radial-gradient(circle, rgba(29,78,216,.13), transparent 62%); bottom:-70px; left:-40px; }
.hero-inner { position:relative; z-index:1; }
.hero-badge { display:inline-block; background:#fff; color:var(--accent); border:1px solid #c7d2fe; border-radius:20px; padding:4px 14px; font-size:13px; margin-bottom:14px; }
.hero-title { font-size:34px; font-weight:800; letter-spacing:.5px; }
.hero-sub { color:var(--muted); margin:10px 0 22px; font-size:15px; }
.hero-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.hero-search { display:flex; max-width:460px; margin:18px auto 6px; }
.hero-search input { flex:1; height:46px; border-radius:23px 0 0 23px; border:0; padding:0 18px; font-size:14px; outline:none; }
.hero-search button { height:46px; padding:0 24px; border:0; border-radius:0 23px 23px 0; background:var(--accent); color:#fff; font-weight:600; cursor:pointer; }
.hero-search button:hover { background:var(--accent-dark); }
.stat-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; margin:6px 0 8px; }
.stat-cell { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:14px; text-align:center; }
.stat-cell b { font-size:20px; font-weight:800; color:var(--accent); display:block; }
.stat-cell span { font-size:12px; color:var(--muted); }
.hero-btn { background:#fff; color:var(--accent-dark); border-color:#c7d2fe; }
.home-section { margin-bottom: 12px; }
.section-title { display:flex; align-items:center; justify-content:space-between; margin: 30px 0 16px; }
.section-title span { font-size:20px; font-weight:700; position:relative; padding-left:14px; }
.section-title span::before { content:''; position:absolute; left:0; top:4px; bottom:4px; width:5px; border-radius:3px; background:linear-gradient(180deg,var(--accent),#818cf8); }
.section-more { font-size:13px; color:var(--muted); }
.section-more:hover { color:var(--accent); }

/* 分类磁贴 */
.cat-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap:14px; }
.cat-tile { background:var(--card); border:1px solid var(--border); border-radius:14px; padding:20px 14px; text-align:center; transition:.15s; color:var(--text); }
.cat-tile:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,.07); border-color:var(--accent); }
.cat-tile-ico { width:52px; height:52px; margin:0 auto 10px; border-radius:14px; display:flex; align-items:center; justify-content:center; color:#fff; }
.cat-svg { display:block; }
.cat-row-icon { width:40px; height:40px; border-radius:11px; background:rgba(0,0,0,.04); display:flex; align-items:center; justify-content:center; flex:0 0 40px; }
.cat-row-icon .cat-svg { width:22px; height:22px; }
.cat-icon { font-size:28px; }
.cat-name { font-weight:600; font-size:14px; margin-top:8px; }
.cat-count { font-size:12px; color:var(--muted); margin-top:2px; }

/* 产品卡片增强 */
.card { position:relative; }
.card-cover { overflow:hidden; }
.card-cover img { transition: transform .35s ease; }
.card:hover .card-cover img { transform:scale(1.06); }
.card-badge { position:absolute; top:8px; left:8px; background:rgba(17,24,39,.72); color:#fff; font-size:11px; padding:3px 9px; border-radius:20px; max-width:calc(100% - 24px); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.card:hover .card-badge { background:var(--accent); }
.card-sub { color:var(--accent); font-weight:600; margin-top:2px; }
.category-card .card-sub { color:var(--muted); font-weight:400; }
.price-alt { color:var(--muted); font-weight:400; font-size:12px; margin-left:2px; }

/* ============ 新版后台 UI ============ */
.admin-side .view-site { background:var(--accent); color:#fff; font-weight:600; margin:4px 10px 12px; border-radius:8px; text-align:center; padding:10px 12px; }
.admin-side .view-site:hover { background:var(--accent-dark); color:#fff; }
.admin-sub { font-size:13px; color:var(--muted); margin-top:2px; }
.head-actions { display:flex; gap:10px; flex-wrap:wrap; }
.stat { display:flex; align-items:center; gap:12px; border-top:3px solid transparent; }
.stat-c1 { border-top-color:#3b82f6; } .stat-c2 { border-top-color:#8b5cf6; }
.stat-c3 { border-top-color:#0ea5e9; } .stat-c4 { border-top-color:#10b981; } .stat-c5 { border-top-color:#f59e0b; } .stat-c6 { border-top-color:#ef4444; }
.admin-side .backup-link { color:#93c5fd; }
.s-icon { font-size:26px; background:#f5f6fa; width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.stat .n { font-size:24px; line-height:1.1; }
.stat .t { font-size:12px; margin-top:2px; }
.quick-panel { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:16px 18px; margin-bottom:20px; }
.quick-title { font-size:14px; font-weight:600; margin-bottom:12px; color:var(--muted); }
.quick-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap:10px; }
.quick-item { background:#f7f8fa; border:1px solid var(--border); border-radius:10px; padding:12px; font-size:13px; color:var(--text); text-align:center; transition:.15s; }
.quick-item:hover { background:#eef2ff; border-color:#c7d2fe; color:var(--accent); }
.panel-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.panel-head h2 { margin-bottom:0; }


.announcement { background: linear-gradient(90deg,#1d4ed8,#3b82f6); color:#fff; position:relative; z-index:60; }
.announcement-inner { display:flex; align-items:center; justify-content:space-between; padding:8px 0; font-size:13px; }
.announcement-inner button { background:transparent; border:0; color:#fff; font-size:14px; cursor:pointer; opacity:.85; }
.announcement-inner button:hover { opacity:1; }


.share-bar { border-top:1px solid var(--border); margin-top:20px; background:#fff; }
.share-inner { display:flex; align-items:center; gap:8px; padding:14px 0; flex-wrap:wrap; }
.share-label { font-size:13px; color:var(--muted); }
.share-btn { display:inline-block; padding:5px 12px; font-size:12px; color:var(--muted); border:1px solid var(--border); border-radius:20px; background:#fff; cursor:pointer; }
.share-btn:hover { color:var(--accent); border-color:var(--accent); }
.share-qr { width:58px; height:58px; border:1px solid var(--border); border-radius:8px; margin-left:auto; }

/* ============ 右下角悬浮窗 ============ */
.floating { position:fixed; right:16px; bottom:16px; display:flex; flex-direction:column; gap:10px; z-index:90; }
.float-btn { width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:20px; border:0; cursor:pointer; box-shadow:0 4px 14px rgba(0,0,0,.18); transition:.15s; color:#fff; background:var(--accent); position:relative; }
.float-btn:hover { transform:scale(1.08); background:var(--accent-dark); }
.float-btn svg { display:block; }
.float-btn::after { content:attr(data-tip); position:absolute; right:52px; top:50%; transform:translateY(-50%); background:#16243a; color:#fff; font-size:12px; padding:5px 10px; border-radius:7px; white-space:nowrap; opacity:0; pointer-events:none; transition:.15s; z-index:5; }
.float-btn:hover::after { opacity:1; }


.msg-modal { position:fixed; inset:0; background:rgba(0,0,0,.45); display:none; align-items:center; justify-content:center; z-index:100; padding:16px; }
.msg-card { background:#fff; border-radius:14px; padding:22px; width:100%; max-width:380px; position:relative; max-height:90vh; overflow-y:auto; }
.msg-card h3 { margin-bottom:14px; }
.msg-close { position:absolute; top:10px; right:12px; background:transparent; border:0; font-size:16px; cursor:pointer; color:var(--muted); }

/* 产品编号角标 */
.card-id { position:absolute; bottom:8px; right:8px; background:rgba(17,24,39,.6); color:#fff; font-size:11px; padding:2px 7px; border-radius:12px; }


.wanted-hint { background:#fffbeb; border:1px solid #fde68a; color:#92400e; border-radius:12px; padding:12px 16px; font-size:14px; margin-bottom:16px; }
.wanted-form-box { max-width:720px; }
.wanted-list { display:flex; flex-direction:column; gap:12px; margin-top:18px; }
.wanted-item { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:16px 18px; }
.wanted-item:hover { border-color:var(--accent); }
.wanted-need { font-size:15px; }
.wanted-qty { display:inline-block; background:#eef2ff; color:var(--accent-dark); border-radius:20px; padding:1px 10px; font-size:12px; margin-left:6px; }
.wanted-note { color:#374151; font-size:13px; margin-top:6px; }
.wanted-meta { color:var(--muted); font-size:12px; margin-top:8px; }


/* ============ 分类竖排列表 ============ */
.cat-list { display:flex; flex-direction:column; gap:10px; }
.cat-row { display:flex; align-items:center; gap:14px; background:var(--card); border:1px solid var(--border); border-radius:12px; padding:14px 18px; transition:.15s; color:var(--text); }
.cat-row:hover { border-color:var(--accent); box-shadow:0 4px 14px rgba(0,0,0,.05); transform:translateX(3px); }
.cat-row-icon { font-size:22px; width:34px; text-align:center; }
.cat-row-name { font-size:15px; font-weight:600; flex:1; }
.cat-row-count { font-size:13px; color:var(--muted); }
.cat-row-arrow { font-size:20px; color:var(--muted); }

/* ============ 整体 UI 精修 ============ */
.page-title { display:flex; align-items:center; gap:10px; }
.page-title::before { content:''; width:5px; height:22px; border-radius:3px; background:linear-gradient(180deg,var(--accent),#818cf8); }
.card { box-shadow:0 1px 3px rgba(0,0,0,.04); }
.card:hover { box-shadow:0 10px 26px rgba(0,0,0,.08); transform:translateY(-4px); }
.table tr:hover { background:#fafbff; }
.site-header { box-shadow:0 1px 6px rgba(0,0,0,.03); }
.btn { box-shadow:0 1px 2px rgba(0,0,0,.04); }
.btn-primary { background:linear-gradient(180deg,#3b82f6,#2563eb); }
.btn-primary:hover { background:linear-gradient(180deg,#2563eb,#1d4ed8); }




/* ============ 移动端适配 ============ */
/* ============ Mobile ============ */
/* Hamburger + drawer (hidden on desktop) */
.hamburger { display:none; flex-direction:column; justify-content:center; gap:5px; width:42px; height:42px; padding:9px; background:transparent; border:1px solid var(--border); border-radius:10px; cursor:pointer; flex-shrink:0; }
.hamburger span { display:block; height:2px; width:100%; background:var(--text); border-radius:2px; }
.drawer-mask { display:none; position:fixed; inset:0; background:rgba(10,20,35,.45); z-index:300; opacity:0; pointer-events:none; transition:opacity .25s; }
.drawer-mask.on { opacity:1; pointer-events:auto; }
.drawer { position:fixed; top:0; right:0; bottom:0; width:300px; max-width:86vw; background:var(--card); z-index:301; transform:translateX(100%); transition:transform .28s ease; box-shadow:-12px 0 40px rgba(0,0,0,.18); display:flex; flex-direction:column; }
.drawer.open { transform:translateX(0); }
body.drawer-lock { overflow:hidden; }
.drawer-head { display:flex; align-items:center; justify-content:space-between; padding:16px 18px; border-bottom:1px solid var(--border); }
.drawer-title { font-size:16px; font-weight:700; color:var(--text); }
.drawer-close { width:34px; height:34px; border-radius:9px; border:1px solid var(--border); background:transparent; color:var(--text); font-size:15px; cursor:pointer; }
.drawer-body { flex:1; overflow-y:auto; padding:10px 12px 26px; }
.drawer-item { display:flex; align-items:center; gap:10px; padding:11px 12px; border-radius:10px; color:var(--text); text-decoration:none; font-size:14.5px; font-weight:500; }
.drawer-item:hover { background:linear-gradient(135deg, rgba(30,159,255,.08), rgba(30,159,255,.16)); color:var(--accent); }
.drawer-item .btn-svg { color:var(--accent); }
.drawer-sub { font-size:13px; padding-left:34px; color:var(--text-secondary); font-weight:400; }
.drawer-divider { height:1px; background:var(--border); margin:12px 4px; }

@media (max-width: 720px) {
  .header-top { height:auto; padding:10px 0; gap:8px; flex-wrap:wrap; }
  .header-search { order:3; width:100%; max-width:none; flex-basis:100%; }
  .header-search input { flex: 1; width: auto; }
  .hamburger { display:flex; }
  .header-nav { overflow:visible; white-space:normal; gap:0; min-height:48px; align-items:center; }
  .header-nav > a, .header-nav > .nav-mega { display:none; }
  .drawer-mask { display:block; }
  .drawer { transform:translateX(100%); }
  .header-actions { flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .header-actions .btn { white-space:nowrap; padding:7px 10px; }
  .header-actions .theme-toggle, .header-actions .lang-switch { flex-shrink:0; }
  .prod-side { flex:0 0 100%; border-right:0; border-bottom:1px solid var(--border); padding:0 0 10px; margin-bottom:10px; display:flex; gap:8px; overflow-x:auto; }
  .prod-side-title { display:none; }
  .prod-side-link { flex-shrink:0; white-space:nowrap; padding:7px 12px; }
  .prod-side-count { display:none; }
  .auth-card { padding:22px 18px; }
  .auth-card input { max-width:100%; box-sizing:border-box; width:100%; }
  .wanted-layout { flex-direction:column; }
  .wanted-form-box { flex:1 1 auto; position:static; width:100%; }
  .wanted-grid { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
  .cat-layout { flex-direction:column; }
  .cat-side { flex:1 1 auto; position:static; max-height:none; overflow:visible; }
  body.front .cat-side { overflow:visible; max-height:none; }
  .cat-main { width:100%; }
  .cat-vstrip { display:none; }
  .product-top { padding: 14px; }
  .admin-side { position: static; width: 100%; height: auto; flex-direction: row; overflow-x: auto; }
  .admin-side a { padding: 10px 14px; white-space: nowrap; }
  .admin-side .brand, .admin-side .logout { display: none; }
  .admin-wrap { flex-direction: column; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .gallery-thumbs img { width: 50px; height: 50px; }
  .hero { padding: 30px 18px; }
  .hero-title { font-size: 26px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .floating { right:10px; bottom:10px; }
  .float-btn { width:42px; height:42px; font-size:18px; }
  .share-qr { display:none; }
  .share-inner { gap:6px; }
  .table { display:block; overflow-x:auto; white-space:nowrap; }
  .table th, .table td { min-width:80px; }
}

/* ============ 前台天蓝主题（Superbuy 清爽电商风） ============ */
body.front {
  --accent:#1e9fff;
  --accent-dark:#0a82e4;
  --text:#16243a;
  --muted:#5b7284;
  --bg:#f2f7fd;
  --card:#ffffff;
  --border:#e4eef7;
}
body.front.has-bgimg { background-image:var(--bg-img); background-size:cover; background-attachment:fixed; background-position:center; }
body.front .site-header { background:#fff; border-bottom:1px solid #e8f1fa; box-shadow:0 1px 8px rgba(30,159,255,.06); }
body.front .brand b { color:var(--accent); }
body.front .header-nav a { font-weight:500; }
body.front .header-nav a:hover, body.front .header-nav a.active { color:var(--accent); font-weight:700; }
body.front .lang-switch { border-radius:8px; }
body.front .btn { border-radius:10px; font-weight:600; }
body.front .btn-primary { background:linear-gradient(180deg,#2fa8ff,#0a82e4); box-shadow:0 4px 12px rgba(30,159,255,.28); }
body.front .btn-primary:hover { background:linear-gradient(180deg,#0a82e4,#006fd0); }
body.front .btn-outline { border-radius:10px; }
body.front input, body.front textarea, body.front select { border-radius:10px; border-color:#d9e8f4; }
body.front input:focus, body.front textarea:focus, body.front select:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(30,159,255,.12); }
body.front .header-search input { border-radius:20px 0 0 20px; }
body.front .header-search button { border-radius:0 20px 20px 0; background:var(--accent); color:#fff; border-color:var(--accent); }
body.front .header-search button:hover { background:var(--accent-dark); color:#fff; }
body.front .hero { background:linear-gradient(135deg,#0a82e4 0%,#1e9fff 52%,#4fb7ff 100%); }
body.front .hero::before { background:radial-gradient(circle, rgba(255,255,255,.18), transparent 62%); }
body.front .hero::after { background:radial-gradient(circle, rgba(255,255,255,.12), transparent 62%); }
body.front .hero-title { color:#fff; text-shadow:0 2px 12px rgba(0,0,0,.14); }
body.front .hero-sub { color:rgba(255,255,255,.94); }
body.front .hero-badge { background:rgba(255,255,255,.2); color:#fff; border-color:rgba(255,255,255,.45); }
body.front .hero-btn { background:#fff; color:var(--accent-dark); border-color:#fff; }
body.front .hero-btn:hover { background:#e8f4ff; }
body.front .card { border-radius:14px; border-color:#e8f1fa; }
body.front .category-card .card-cover { background:linear-gradient(135deg,#e0f2fe,#bae6fd); color:var(--accent-dark); }
body.front .cat-tile { border-radius:14px; }
body.front .cat-tile:hover { border-color:var(--accent); box-shadow:0 8px 20px rgba(30,159,255,.14); }
body.front .tag { background:#e0f2fe; color:#0a82e4; }
body.front .price { color:var(--accent); }
body.front .card-sub { color:var(--accent-dark); }
body.front .section-title span::before { background:linear-gradient(180deg,var(--accent),#7dd3fc); }
body.front .page-title::before { background:linear-gradient(180deg,var(--accent),#7dd3fc); }
body.front .announcement { background:linear-gradient(90deg,#0a82e4,#1e9fff); }
body.front .share-bar { background:#f7fbff; border-top-color:#e8f1fa; }
body.front .float-btn { background:var(--accent); }
body.front .float-btn:hover { background:var(--accent-dark); }
body.front .wanted-qty { background:#e0f2fe; color:#0a82e4; }
body.front .card-badge { background:rgba(10,130,228,.9); }
body.front .card:hover .card-badge { background:var(--accent); }
body.front .auth-card, body.front .panel, body.front .product-top, body.front .desc-box, body.front .inquiry-form, body.front .cat-row { border-radius:14px; border-color:#e8f1fa; }
body.front .cat-row:hover { border-color:var(--accent); box-shadow:0 6px 16px rgba(30,159,255,.12); }
body.front .table th { background:#f2f8ff; }
body.front .toast-ok { background:linear-gradient(180deg,#2fa8ff,#0a82e4); }


.topbar { background:linear-gradient(90deg,#0a82e4,#1e9fff); color:#fff; font-size:13px; }
.topbar-inner { padding:7px 0; text-align:center; letter-spacing:.3px; }


.trust-bar { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin:6px 0 6px; }
.trust-item { display:flex; align-items:center; gap:12px; background:var(--card); border:1px solid var(--border); border-radius:14px; padding:14px 16px; }
.trust-item:hover { border-color:var(--accent); box-shadow:0 6px 16px rgba(30,159,255,.1); }
.trust-ico { font-size:24px; width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#e0f2fe,#bae6fd); flex-shrink:0; }
.trust-t { font-size:14px; font-weight:700; }
.trust-d { font-size:12px; color:var(--muted); }

/* 限时上新角标 */
.new-flag { display:inline-block; background:linear-gradient(135deg,#ff7a59,#ff3d71); color:#fff; border-radius:20px; padding:3px 12px; font-size:12px; font-weight:600; }

/* 分类磁贴图标渐变 */
.cat-icon { width:54px; height:54px; border-radius:14px; margin:0 auto 10px; display:flex; align-items:center; justify-content:center; font-size:26px; background:linear-gradient(135deg,#e0f2fe,#bae6fd); }

/* 页脚多栏 */
.site-footer { background:#fff; }
.foot-grid { display:grid; grid-template-columns:2fr 1.1fr 1.1fr 1.3fr; gap:24px; text-align:left; padding:26px 0 18px; }
.foot-brand { font-size:18px; font-weight:700; color:var(--text); }
.foot-brand b { color:var(--accent); }
.foot-slogan { color:var(--muted); font-size:13px; margin:6px 0 10px; }
.foot-contact { color:var(--muted); font-size:13px; line-height:1.8; }
.foot-social { display:flex; align-items:center; gap:8px; margin-top:16px; flex-wrap:wrap; }
.foot-social-label { font-size:12px; color:var(--muted); margin-right:2px; }
.foot-social-btn { display:inline-flex; align-items:center; padding:6px 12px; font-size:12px; color:var(--muted); border:1px solid var(--border); border-radius:18px; background:var(--card); text-decoration:none; transition:color .15s,border-color .15s; }
.foot-social-btn:hover { color:var(--accent); border-color:var(--accent); }
.foot-app { display:flex; gap:14px; align-items:flex-start; }
.app-qr-wrap { text-align:center; flex-shrink:0; }
.app-qr { width:108px; height:108px; border:1px solid var(--border); border-radius:10px; background:#fff; }
.app-qr-tip { font-size:13px; color:#334155; margin-top:8px; font-weight:600; }
.app-soon { display:flex; flex-direction:column; gap:8px; padding-top:4px; }
.app-soon-badge { display:inline-flex; align-items:center; gap:6px; background:linear-gradient(135deg,#2fa8ff,#0b7ad1); color:#fff; font-size:12px; font-weight:700; padding:7px 12px; border-radius:20px; white-space:nowrap; }
.app-soon-d { font-size:12.5px; color:#475569; line-height:1.6; }
.foot-title { font-size:14px; font-weight:700; margin-bottom:10px; }
.foot-link { display:block; color:var(--muted); font-size:13px; padding:3px 0; }
.foot-link:hover { color:var(--accent); }
.foot-copy { border-top:1px solid var(--border); padding:16px 0; text-align:center; font-size:12px; color:var(--muted); }

.foot-newsletter { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:26px; padding:18px 22px; background:linear-gradient(135deg, rgba(30,159,255,.08), rgba(30,159,255,.15)); border:1px solid rgba(30,159,255,.25); border-radius:14px; }
.nl-title { font-size:15px; font-weight:700; color:var(--text); display:flex; align-items:center; gap:8px; }
.nl-sub { font-size:12.5px; color:var(--muted); margin-top:4px; }
.nl-form { display:flex; gap:8px; flex:1; max-width:420px; min-width:240px; }
.nl-form input[type=email] { flex:1; min-width:0; padding:10px 14px; border:1px solid var(--border); border-radius:9px; font-size:13px; background:var(--card); color:var(--text); }
.nl-form .btn { white-space:nowrap; }
@media (max-width:720px) { .foot-grid { grid-template-columns:1fr; gap:16px; } }

body.theme-dark {
  --text:#e5e7eb; --muted:#9ca3af; --bg:#0f172a; --card:#1e293b; --border:#334155;
  --accent:#60a5fa; --accent-dark:#3b82f6;
}
body.theme-dark .topbar { background:#0b1220; color:#cbd5e1; }
body.theme-dark .header, body.theme-dark .footer, body.theme-dark .foot-grid { background:#111a2c; }
body.theme-dark .panel, body.theme-dark .card, body.theme-dark .contact-box,
body.theme-dark .quote-box, body.theme-dark .admin-main .panel { background:var(--card); }
body.theme-dark .gallery-main img { background:#0f172a; }
body.theme-dark input, body.theme-dark select, body.theme-dark textarea { background:#0f172a; color:var(--text); border-color:var(--border); }
body.theme-dark .table th, body.theme-dark .table td { border-color:var(--border); }
body.theme-dark .table tr:nth-child(even) { background:rgba(255,255,255,0.03); }
body.theme-dark .meta { color:var(--muted); }
body.theme-dark .hero, body.theme-dark .banner { background:linear-gradient(120deg,#0e2a47,#123a66); }
body.theme-dark .flash-success { background:#0f3d2e; color:#a7f3d0; }
body.theme-dark .flash-error { background:#3d1a1a; color:#fecaca; }
body.theme-dark .card-title { color:var(--text); }
body.theme-dark .card-sub { color:var(--muted); }
/* 主题切换按钮 */
.theme-toggle { background:none; border:1px solid var(--border); color:var(--text); border-radius:20px; padding:5px 12px; cursor:pointer; font-size:13px; }
.theme-toggle:hover { border-color:var(--accent); }


body.front .header-top { height:72px; gap:20px; }
body.front .brand { font-size:22px; }
body.front .header-search { max-width:480px; height:44px; }
body.front .header-search input { height:44px; padding:0 18px; font-size:14px; border:2px solid #d9e8f4; }
body.front .header-search button { height:44px; padding:0 24px; font-size:14px; }
body.front .header-actions { gap:10px; }
body.front .header-actions .btn { padding:9px 18px; font-size:14px; border-radius:22px; }
body.front .header-actions .btn-primary { padding:9px 22px; font-weight:700; }
body.front .header-actions .btn-outline { background:#f4f9ff; border-color:#d9e8f4; }
body.front .header-actions .btn-outline:hover { background:#e0f2fe; border-color:var(--accent); }
body.front .lang-switch, body.front .theme-toggle { height:38px; border-radius:19px; padding:0 12px; font-size:13px; }
body.front .header-nav { padding:14px 0; gap:36px; }
body.front .header-nav a { font-size:16px; }


.hero-trust { display:flex; gap:24px; justify-content:center; margin-top:20px; flex-wrap:wrap; }
.hero-trust-item { display:flex; align-items:center; gap:6px; color:rgba(255,255,255,.95); font-size:13px; }
.hero-trust-item .dot { width:6px; height:6px; border-radius:50%; background:#fff; opacity:.7; }


body.front .hero-premium {
  background: linear-gradient(135deg, #10151c 0%, #161e2a 45%, #1d2837 100%) !important;
  position: relative;
  overflow: hidden;
}
body.front .hero-premium::before {
  content:''; position:absolute; top:-60%; right:-15%; width:70%; height:220%;
  background: radial-gradient(circle, rgba(251,191,36,.16), transparent 62%);
  pointer-events:none;
}
body.front .hero-premium::after {
  content:''; position:absolute; bottom:-50%; left:-12%; width:55%; height:200%;
  background: radial-gradient(circle, rgba(56,189,248,.10), transparent 62%);
  pointer-events:none;
}

body.front .hero-premium .hero-inner::before {
  content:''; position:absolute; inset:0; z-index:-1;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events:none;
}
body.front .hero-premium .hero-inner { position: relative; z-index:2; }
body.front .hero-premium .hero-title {
  font-size: 44px; line-height:1.15; font-weight:800; letter-spacing:-.5px;
  background: linear-gradient(180deg,#ffffff 20%,#fde68a 130%);
  -webkit-background-clip:text; -webkit-text-fill-color: transparent;
  background-clip:text;
}
body.front .hero-premium .hero-badge {
  background: rgba(251,191,36,.12); color:#fde68a; border:1px solid rgba(251,191,36,.35);
  backdrop-filter: blur(6px);
}
body.front .hero-premium .hero-sub { color:rgba(226,232,240,.92); font-size:16px; }
body.front .hero-premium .hero-search input {
  background: rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.22); color:#fff;
  backdrop-filter: blur(8px);
}
body.front .hero-premium .hero-search input::placeholder { color:rgba(226,232,240,.55); }
body.front .hero-premium .hero-search button {
  background:linear-gradient(135deg,#f59e0b,#fbbf24); color:#1f2937; border:none; font-weight:800;
}
body.front .hero-premium .hero-search button:hover { background:linear-gradient(135deg,#d97706,#f59e0b); }
body.front .hero-premium .hero-btn {
  background: rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px);
}
body.front .hero-premium .hero-btn:hover { background: rgba(255,255,255,.16); border-color:rgba(255,255,255,.5); }
body.front .hero-premium .hero-trust-item { color:rgba(226,232,240,.82); }


body.front .header-nav { position: relative; }
body.front .header-nav a {
  position: relative; padding: 6px 2px; font-size:15px;
}
body.front .header-nav a::after {
  content:''; position:absolute; left:0; bottom:0; width:0; height:2px;
  background:var(--accent); transition: width .2s;
}
body.front .header-nav a:hover::after, body.front .header-nav a.active::after { width:100%; }
body.front .header-nav a.active { color:var(--accent); }


body.front .page-title {
  font-size:28px; font-weight:800; letter-spacing:-.3px;
  display:flex; align-items:center; gap:12px;
}
body.front .page-title::before {
  content:''; width:4px; height:28px; border-radius:2px;
  background:linear-gradient(180deg,var(--accent),#7dd3fc);
}


body.front .card { transition: transform .25s, box-shadow .25s; }
body.front .card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15,40,80,.12); }
body.front .card-cover img { transition: transform .4s; }
body.front .card:hover .card-cover img { transform: scale(1.06); }
body.front .card-cover { overflow: hidden; }
body.front .card-title { font-size:13.5px; line-height:1.4; height:2.8em; overflow:hidden; }


body.front .card .card-sub .price { color:#16a34a; font-weight:600; }


body.front .breadcrumb {
  font-size:13px; color:var(--muted); margin:16px 0 12px;
  display:flex; gap:6px; align-items:center; flex-wrap:wrap;
}
body.front .breadcrumb a { color:var(--muted); }
body.front .breadcrumb a:hover { color:var(--accent); }
body.front .breadcrumb .sep { color:#cbd5e1; }


body.front .cat-hero {
  background:linear-gradient(135deg,#f0f7ff,#e0f2fe);
  border-radius:14px; padding:20px 24px; margin-bottom:18px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
}
body.front .cat-hero h2 { margin:0; font-size:22px; font-weight:700; }
body.front .cat-hero .cnt { color:var(--muted); font-size:13px; }


body.front .hero-premium .hero-actions { margin-top:24px; display:flex; gap:14px; justify-content:center; }
body.front .hero-premium .hero-actions .btn {
  padding:14px 32px; font-size:15px; font-weight:700; border-radius:12px;
  letter-spacing:.3px; transition: all .25s;
}
body.front .hero-premium .hero-actions .btn-primary {
  background:linear-gradient(135deg,#fbbf24,#f59e0b);
  color:#1f2937; border:none;
  box-shadow:0 8px 24px rgba(251,191,36,.32);
}
body.front .hero-premium .hero-actions .btn-primary:hover {
  transform:translateY(-2px); box-shadow:0 12px 32px rgba(251,191,36,.45);
}
body.front .hero-premium .hero-actions .hero-btn {
  background:rgba(255,255,255,.08); color:#fff;
  border:1.5px solid rgba(255,255,255,.35);
  backdrop-filter:blur(8px);
}
body.front .hero-premium .hero-actions .hero-btn:hover {
  background:rgba(255,255,255,.2); border-color:#fff; transform:translateY(-2px);
}


.header-icon-btn {
  position:relative; width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:#f4f9ff; border:1px solid #d9e8f4; color:var(--text);
  transition:all .2s;
}
.header-icon-btn:hover { background:#e0f2fe; border-color:var(--accent); color:var(--accent); }
.cart-badge {
  position:absolute; top:-4px; right:-4px; background:#ef4444; color:#fff;
  font-size:10px; font-weight:700; min-width:18px; height:18px; border-radius:9px;
  display:flex; align-items:center; justify-content:center; padding:0 5px;
}


body.front .btn { transition:all .2s; }
body.front .card { border-radius:14px; }
body.front .section-title { font-size:20px; font-weight:800; }
body.front .grid { gap:18px; }
body.front .cat-tile { border-radius:16px; padding:20px 12px; }
body.front .brand-chip { border-radius:20px; padding:6px 14px; font-size:13px; }


body.front .header-search {
  background:#f4f9ff; border:2px solid #d9e8f4; border-radius:24px; padding:0;
  overflow:hidden; height:44px; transition:all .2s;
}
body.front .header-search:focus-within {
  border-color:var(--accent); background:#fff;
  box-shadow:0 0 0 4px rgba(30,159,255,.1);
}
body.front .header-search input {
  background:transparent; border:none !important; border-radius:24px 0 0 24px;
  padding:0 16px; height:40px; font-size:14px; outline:none;
}
body.front .header-search button {
  background:linear-gradient(135deg,#3b82f6,#2563eb); color:#fff;
  border:none !important; border-radius:0 22px 22px 0;
  padding:0 20px; height:40px; font-weight:600; cursor:pointer;
}
body.front .header-search button:hover { background:linear-gradient(135deg,#2563eb,#1d4ed8); }


body.front .cat-side { border-radius:12px; }
body.front .cat-side-title {
  background:#f8fafc; padding:12px 14px; font-weight:700; font-size:13.5px;
  border-bottom:1px solid var(--border);
}
body.front .cat-side-link {
  padding:10px 12px; border-bottom:1px solid #f1f5f9; font-size:13.5px;
  display:flex; justify-content:space-between; align-items:center; gap:8px;
  transition:background .15s;
}
body.front .cat-side-link .cat-side-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; flex:1; }
body.front .cat-side-link:hover { background:#f0f7ff; }
body.front .cat-side-link.active { background:#e0f2fe; color:var(--accent); font-weight:600; border-left:3px solid var(--accent); }
body.front .cat-side-count { font-size:12px; color:var(--muted); background:#f1f5f9; padding:1px 8px; border-radius:10px; white-space:nowrap; }
body.front .cat-side-link.active .cat-side-count { background:#fff; color:var(--accent); }


body.front .cat-vstrip { border-radius:12px; overflow:hidden; }
body.front .cat-vstrip-link {
  padding:10px 6px; border-bottom:1px solid #f1f5f9; font-size:13px;
  display:flex; align-items:center; gap:8px; transition:background .15s;
  text-align:center; line-height:1.25;
}
body.front .cat-vstrip-link:hover { background:#f0f7ff; }
body.front .cat-vstrip-link.active { background:#e0f2fe; color:var(--accent); font-weight:600; }


.pager{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin:24px 0;}
.pager-btn{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 12px;border:1px solid var(--border);border-radius:8px;font-size:13px;color:var(--text);text-decoration:none;}
.pager-btn:hover{border-color:var(--accent);color:var(--accent);}
.pager-btn.active{background:var(--accent);color:#fff;border-color:var(--accent);}
.pager-dots{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:36px;color:var(--muted);font-size:13px;}


.card{transition:transform .25s ease, box-shadow .25s ease;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--card);display:block;}
.card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(0,0,0,.10);border-color:rgba(30,159,255,.4);}

.card-cover { position:relative; }
.card-cover::after { content:"View Details"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(10,32,58,.45); color:#fff; font-size:13px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; opacity:0; transition:opacity .22s; }
.card:hover .card-cover::after { opacity:1; }
.card-cover img{transition:transform .3s ease;}
.card:hover .card-cover img{transform:scale(1.05);}
.card-title{font-size:14px;font-weight:600;line-height:1.4;}

.gallery-main{position:relative;cursor:zoom-in;}
.gallery-main::after{content:"🔍";position:absolute;right:12px;bottom:12px;background:rgba(0,0,0,.5);color:#fff;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:15px;opacity:0;transition:opacity .2s;}
.gallery-main:hover::after{opacity:1;}


.desc-box{border-radius:14px;background:var(--card);border:1px solid var(--border);padding:20px;}
.desc-content{font-size:14px;line-height:1.9;color:var(--text);}
.desc-content img{max-width:100%;height:auto;display:block;margin:10px 0;border-radius:10px;}
.desc-content .desc-imgs{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-top:10px;}
.desc-content .desc-imgs img{width:100%;height:auto;border-radius:10px;border:1px solid var(--border);}


.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;margin:0;background:radial-gradient(1100px 480px at 82% -8%,rgba(46,150,220,.42),transparent 62%),radial-gradient(900px 500px at -8% 108%,rgba(14,116,144,.40),transparent 60%),linear-gradient(155deg,#0a1e33 0%,#103b5c 42%,#16537a 78%,#17607a 100%);overflow-x:hidden;}
.auth-page .auth-inner{width:100%;padding:32px 16px;display:flex;flex-direction:column;align-items:center;}
.auth-back{color:rgba(255,255,255,.75);font-size:13px;text-decoration:none;margin-bottom:18px;display:inline-flex;align-items:center;gap:6px;transition:color .2s;}
.auth-back:hover{color:#fff;}
.auth-card{position:relative;z-index:1;background:#fff;border:1px solid rgba(255,255,255,.4);border-radius:20px;padding:38px 40px;box-shadow:0 30px 70px rgba(2,18,32,.5),0 2px 10px rgba(0,0,0,.18);width:100%;max-width:432px;}
@media (max-width:480px){.auth-card{padding:26px 20px;}}


.auth-split{display:flex;min-height:100vh;width:100%;background:#fff;}
.auth-split .split-left{flex:0 0 56%;min-width:0;background:radial-gradient(1100px 480px at 85% -10%,rgba(46,150,220,.40),transparent 62%),radial-gradient(900px 500px at -8% 108%,rgba(14,116,144,.35),transparent 60%),linear-gradient(155deg,#0a1e33 0%,#103b5c 42%,#16537a 78%,#17607a 100%);color:#fff;padding:48px 52px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden;}
.auth-split .split-left::before{content:"";position:absolute;top:-120px;right:-90px;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,rgba(46,150,220,.30),transparent 65%);}
.auth-split .split-left::after{content:"";position:absolute;bottom:-140px;left:-100px;width:380px;height:380px;border-radius:50%;background:radial-gradient(circle,rgba(22,120,150,.32),transparent 65%);}
.split-brand{font-size:26px;font-weight:800;letter-spacing:.5px;position:relative;z-index:1;}
.split-slogan{font-size:30px;font-weight:800;line-height:1.35;margin:14px 0 8px;position:relative;z-index:1;}
.split-slogan span{color:#7fd0ff;}
.split-desc{font-size:14px;color:rgba(255,255,255,.78);margin:0 0 26px;line-height:1.7;position:relative;z-index:1;}
.split-products{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;position:relative;z-index:1;margin-bottom:28px;}
.split-products a{display:block;aspect-ratio:1/1;border-radius:12px;overflow:hidden;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);box-shadow:0 8px 24px rgba(0,0,0,.25);transition:transform .2s;}
.split-products a:hover{transform:translateY(-3px);}
.split-products img{width:100%;height:100%;object-fit:cover;display:block;}
.split-points{display:flex;gap:18px;flex-wrap:wrap;position:relative;z-index:1;}
.split-points .pt{display:flex;align-items:center;gap:8px;font-size:13px;color:rgba(255,255,255,.9);}
.split-points .pt svg{flex-shrink:0;}
.auth-split .split-right{flex:1;min-width:0;background:#fff;display:flex;align-items:center;justify-content:center;padding:44px 24px;}
.auth-split .auth-card{max-width:420px;width:100%;border:none;box-shadow:0 18px 50px rgba(15,42,66,.12);}
.auth-split .auth-back{color:#5b6c80;position:absolute;top:18px;left:22px;}
@media (max-width:920px){.auth-split{flex-direction:column;}.auth-split .split-left{flex:0 0 auto;padding:34px 24px;}.split-slogan{font-size:22px;}.split-products{grid-template-columns:repeat(3,1fr);}.auth-split .split-right{padding:30px 16px;}}
@media (max-width:520px){.split-points .pt{font-size:12px;}}


.hero-split .hero-inner{display:flex;flex-wrap:wrap;gap:36px;align-items:center;justify-content:space-between;max-width:1240px;margin:0 auto;text-align:left;}
.hero-split .hero-copy{flex:1 1 52%;min-width:0;}
.hero-split .hero-copy .hero-search{margin:18px 0 8px;}
.hero-split .hero-actions{justify-content:flex-start;margin-top:22px;}
.hero-split .hero-trust{justify-content:flex-start;}
.hero-split .hero-showcase{flex:1 1 44%;min-width:0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.hero-card{position:relative;display:block;aspect-ratio:3/4;border-radius:14px;overflow:hidden;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);box-shadow:0 14px 34px rgba(0,0,0,.35);transition:transform .22s, box-shadow .22s;}
.hero-card:hover{transform:translateY(-5px);box-shadow:0 20px 44px rgba(0,0,0,.45);}
.hero-card img{width:100%;height:100%;object-fit:cover;display:block;}
.hero-card .hero-ph{display:flex;width:100%;height:100%;align-items:center;justify-content:center;font-size:30px;color:rgba(255,255,255,.5);}
.hero-card-id{position:absolute;left:8px;bottom:8px;background:rgba(251,191,36,.16);border:1px solid rgba(251,191,36,.4);color:#fde68a;font-size:11px;padding:3px 8px;border-radius:20px;backdrop-filter:blur(3px);}
body.front .hero-wa-btn{background:linear-gradient(135deg,#25d366,#128c7e);color:#fff;border:none;box-shadow:0 10px 24px rgba(18,140,126,.38);font-weight:700;}
body.front .hero-wa-btn:hover{background:linear-gradient(135deg,#1fb958,#0e7a6d);transform:translateY(-2px);}
@media (max-width:920px){
  .hero-split .hero-inner{flex-direction:column;text-align:center;gap:28px;}
  .hero-split .hero-copy .hero-search{margin:18px auto 8px;}
  .hero-split .hero-actions{justify-content:center;}
  .hero-split .hero-trust{justify-content:center;}
  .hero-split .hero-showcase{width:100%;}
}


body.front .grid{gap:18px;}
body.front .card{border-radius:14px;border:1px solid rgba(0,0,0,.05);box-shadow:0 2px 10px rgba(15,42,66,.05);}
body.front .card:hover{box-shadow:0 14px 32px rgba(15,42,66,.12);transform:translateY(-5px);border-color:rgba(30,159,255,.45);}
.card-sub{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:7px;}
.wa-chip{display:inline-flex;align-items:center;gap:4px;background:rgba(37,211,102,.14);color:#128c7e;font-size:11px;font-weight:700;padding:4px 9px;border-radius:20px;white-space:nowrap;line-height:1;transition:background .2s;}
a.card:hover .wa-chip{background:rgba(37,211,102,.22);}
.card-views{color:var(--muted);font-size:11px;white-space:nowrap;display:inline-flex;align-items:center;gap:2px;}
.card-title{font-size:13.5px;font-weight:600;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em;}
.card-badge{backdrop-filter:blur(3px);}
.pager-btn{min-width:38px;height:38px;border-radius:10px;font-weight:600;}
.pager-btn.active{background:linear-gradient(135deg,#2fa8ff,#0b7ad1);box-shadow:0 6px 14px rgba(14,123,209,.3);}


body.front .header-search button{display:inline-flex;align-items:center;gap:6px;}
body.front .header-nav a{display:inline-flex;align-items:center;gap:6px;}
.nav-mega-trigger{display:inline-flex;align-items:center;gap:6px;}
.mega-caret{font-size:11px;opacity:.7;}
body.front .header-nav{padding:15px 0;gap:40px;}
body.front .header-nav a{font-size:16px;padding:6px 2px;}
body.front .header-actions .btn{padding:10px 20px;font-size:14px;border-radius:22px;box-shadow:0 2px 6px rgba(30,159,255,.08);}
body.front .header-actions .btn-primary{background:linear-gradient(135deg,#2fa8ff,#0b7ad1);box-shadow:0 6px 16px rgba(14,123,209,.3);}
body.front .header-actions .btn-primary:hover{transform:translateY(-1px);}
.header-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--border);border-radius:50%;color:var(--text);position:relative;transition:.2s;}
.header-icon-btn:hover{background:#e0f2fe;border-color:var(--accent);color:var(--accent);}
body.front .lang-switch,body.front .theme-toggle{height:38px;border-radius:19px;padding:0 14px;font-size:13px;border:1px solid #d9e8f4;background:#f8fbff;}


.bulk-card { margin-top:14px; border:1px solid #e2e8f0; border-radius:12px; padding:14px; background:#fff; }
.bulk-card-title { font-size:13px; font-weight:700; display:flex; align-items:center; gap:6px; margin-bottom:10px; color:var(--text); }
.bulk-row { display:flex; gap:10px; font-size:12px; padding:6px 0; border-bottom:1px dashed #eef2f7; }
.bulk-row:last-of-type { border-bottom:0; }
.bulk-k { flex-shrink:0; width:86px; color:var(--muted); font-weight:600; }
.bulk-v { color:var(--text); line-height:1.5; }


.order-steps { display:flex; gap:12px; flex-wrap:wrap; }
.order-step { flex:1 1 200px; min-width:0; text-align:center; padding:20px 12px 16px; border:1px solid var(--border); border-radius:14px; background:#fff; position:relative; box-sizing:border-box; }
.order-step-num { position:absolute; top:10px; left:12px; width:22px; height:22px; border-radius:50%; background:var(--accent); color:#fff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.order-step-ico { color:var(--accent); }
.order-step-t { font-weight:700; font-size:14px; margin-top:8px; }
.order-step-d { font-size:12px; color:var(--muted); margin-top:4px; line-height:1.6; }
@media (max-width:720px){ .order-step { flex:1 1 45%; } }


.foot-verified { margin-top:10px; }
.foot-verified-badge { display:inline-flex; align-items:center; gap:5px; background:#ecfdf5; color:#16a34a; border:1px solid #bbf7d0; padding:4px 10px; border-radius:20px; font-size:12px; font-weight:700; }
.foot-verified-d { display:block; font-size:11px; color:var(--muted); margin-top:4px; }
.foot-company { margin-top:10px; font-size:12px; color:var(--muted); line-height:1.9; }
.foot-company div { display:flex; align-items:center; gap:5px; }


.buyer-grid { display:flex; gap:12px; flex-wrap:wrap; }
.buyer-card { flex:1 1 200px; min-width:0; border:1px solid var(--border); border-radius:14px; padding:16px; background:#fff; box-sizing:border-box; }
.buyer-flag { font-size:26px; }
.buyer-t { font-weight:700; font-size:14px; margin-top:8px; }
.buyer-d { font-size:12px; color:var(--muted); margin-top:4px; line-height:1.6; }


.faq-list { display:flex; flex-direction:column; gap:10px; }
.faq-item { border:1px solid var(--border); border-radius:12px; background:#fff; overflow:hidden; }
.faq-item summary { cursor:pointer; padding:14px 18px; font-size:14px; font-weight:600; list-style:none; position:relative; padding-right:40px; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:'+'; position:absolute; right:16px; top:50%; transform:translateY(-50%); font-size:18px; color:var(--muted); }
.faq-item[open] summary::after { content:'–'; }
.faq-item[open] summary { background:#f8fafc; }
.faq-item div { padding:0 18px 14px; font-size:13px; color:var(--text); line-height:1.8; }


.wall-grid { display:flex; gap:12px; flex-wrap:wrap; }
.wall-card { flex:1 1 200px; min-width:0; border:1px solid var(--border); border-radius:14px; overflow:hidden; background:#fff; box-sizing:border-box; }
.wall-img { height:150px; background:#f1f5f9; }
.wall-img img { width:100%; height:150px; object-fit:cover; display:block; }
.wall-ph { display:flex; align-items:center; justify-content:center; height:150px; color:var(--muted); }
.wall-body { padding:10px 12px 12px; }
.wall-name { font-size:12px; font-weight:700; color:var(--text); }
.wall-comment { font-size:12px; color:var(--muted); margin-top:4px; line-height:1.6; }
.wall-orders { display:inline-flex; align-items:center; gap:4px; color:#16a34a; font-size:13px; font-weight:600; }


.wall-card { position: relative; }
.wall-img { position: relative; }
.wall-badge {
  position: absolute; left: 8px; top: 8px;
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(220,38,38,.92); color: #fff;
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); z-index: 2;
}
.wall-verified { color: #16a34a; font-size: 11.5px; font-weight: 700; }
@media (max-width: 480px) {
  .wall-card { flex: 1 1 46%; }
  .wall-badge { font-size: 10.5px; padding: 2px 8px; }
}


.admin-topbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; padding:10px 14px; background:#fff; border:1px solid var(--border); border-radius:12px; flex-wrap:wrap; }
.admin-crumb { font-size:13px; color:var(--muted); }
.admin-topbar-actions { display:flex; gap:8px; }


.admin-side .brand-row { display:flex; align-items:center; gap:6px; padding:14px 12px 12px; border-bottom:1px solid #1f2937; }
.admin-side .brand-row .brand { color:#fff; font-size:15px; font-weight:700; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:0; border:0; }
.admin-side .brand-row .theme-toggle { background:#1f2937; border:0; color:#e5e7eb; width:32px; height:32px; border-radius:8px; cursor:pointer; font-size:15px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.admin-side .brand-row .theme-toggle:hover { background:#374151; color:#fff; }
.admin-side .brand-row .view-site { background:var(--accent); color:#fff; width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; text-decoration:none; font-size:15px; flex-shrink:0; padding:0; margin:0; }
.admin-side .brand-row .view-site:hover { background:var(--accent-dark); color:#fff; }
.admin-side .side-grp { display:flex; align-items:center; justify-content:space-between; cursor:pointer; user-select:none; }
.admin-side .side-grp .grp-arrow { font-size:10px; color:#64748b; transition:transform .15s; }
.admin-side .side-grp-wrap.collapsed .side-grp .grp-arrow { transform:rotate(-90deg); }
.admin-side .side-grp-wrap.collapsed .side-grp-item { display:none; }
.admin-side .side-grp-item, .admin-side .side-sec-item { display:flex; align-items:center; gap:9px; color:#cbd5e1; padding:10px 18px; font-size:14px; position:relative; text-decoration:none; }
.admin-side .side-grp-item:hover, .admin-side .side-grp-item.active,
.admin-side .side-sec-item:hover, .admin-side .side-sec-item.active { background:#1f2937; color:#fff; }
.admin-side .side-sec { color:#475569; font-size:11px; letter-spacing:.08em; padding:14px 18px 4px; text-transform:uppercase; }
.admin-side .side-grp { display:flex; align-items:center; justify-content:space-between; color:#64748b; font-size:11px; letter-spacing:.08em; padding:16px 18px 4px; text-transform:uppercase; cursor:pointer; }


.foot-pay { display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; margin:14px 0 4px; }
.foot-pay-t { font-size:12px; color:var(--muted); margin-right:4px; }
.pay-badge { display:inline-block; background:#fff; border:1px solid var(--border); border-radius:6px; padding:3px 10px; font-size:11px; font-weight:700; color:#334155; letter-spacing:.4px; }


.wa-bulk-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:#25d366; color:#fff; font-weight:700; font-size:14px; padding:12px 18px; border-radius:10px; text-decoration:none; margin-top:10px; width:100%; box-sizing:border-box; }
.wa-bulk-btn:hover { background:#1fb959; color:#fff; }
.wa-cta { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; background:linear-gradient(90deg,#f0fdf4,#ecfdf5); border:1px solid #bbf7d0; border-radius:14px; padding:16px 20px; margin:18px 0; }


.home-section-tint { background:#f7f8fa; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.section-title { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.section-sub { font-size:12px; color:var(--muted); font-weight:400; }


.bs-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(330px,1fr)); gap:14px; }
.bs-item { position:relative; display:flex; gap:14px; background:#fff; border:1px solid var(--border); border-radius:14px; padding:12px; text-decoration:none; transition:box-shadow .15s,border-color .15s; }
.bs-item:hover { border-color:#f59e0b; box-shadow:0 6px 18px rgba(0,0,0,.07); }
.bs-rank { position:absolute; top:-8px; left:-6px; width:26px; height:26px; border-radius:50%; background:#94a3b8; color:#fff; font-size:13px; font-weight:800; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 6px rgba(0,0,0,.18); }
.bs-rank-hot { background:linear-gradient(135deg,#f97316,#f59e0b); }
.bs-cover { width:100px; height:100px; flex-shrink:0; border-radius:10px; overflow:hidden; background:#f1f5f9; display:flex; align-items:center; justify-content:center; }
.bs-cover img { width:100%; height:100%; object-fit:cover; }
.bs-ph { color:#cbd5e1; }
.bs-info { flex:1; min-width:0; display:flex; flex-direction:column; }
.bs-cat { font-size:10px; text-transform:uppercase; letter-spacing:.6px; color:#f59e0b; font-weight:700; }
.bs-name { font-size:13px; font-weight:600; color:var(--text); margin-top:4px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.bs-meta { font-size:11px; color:var(--muted); margin-top:6px; display:flex; align-items:center; gap:4px; }
.bs-wa { margin-top:auto; align-self:flex-start; display:inline-flex; align-items:center; gap:6px; background:#25d366; color:#fff; font-size:11px; font-weight:700; padding:6px 12px; border-radius:8px; cursor:pointer; margin-top:8px; }
.bs-wa:hover { background:#1fb959; }



.fav-btn { position:absolute; top:8px; right:8px; z-index:4; width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,.94); display:flex; align-items:center; justify-content:center; font-size:16px; color:#cbd5e1; cursor:pointer; box-shadow:0 2px 6px rgba(0,0,0,.12); transition:transform .12s,color .12s; line-height:1; }
.fav-btn:hover { transform:scale(1.12); color:#ef4444; }
.fav-btn.fav-on { color:#ef4444; }
.bs-item .fav-btn { top:10px; right:10px; }

.card, .bs-item { transition:transform .12s ease, box-shadow .15s ease, border-color .15s ease; }
.card:active, .bs-item:active { transform:scale(.975); }

.card-cover img, .bs-cover img { transition:transform .25s ease; }
.card:hover .card-cover img, .bs-item:hover .bs-cover img { transform:scale(1.05); }

.card-cover, .bs-cover { background:linear-gradient(100deg,#f1f5f9 40%,#e6ecf3 50%,#f1f5f9 60%); background-size:200% 100%; animation:shimmer 1.4s infinite; }
@keyframes shimmer { 0%{background-position:120% 0;} 100%{background-position:-120% 0;} }

.toast-min { position:fixed; left:50%; bottom:96px; transform:translateX(-50%) translateY(20px); background:rgba(17,24,39,.92); color:#fff; font-size:13px; padding:10px 18px; border-radius:10px; z-index:99999; opacity:0; pointer-events:none; transition:opacity .2s,transform .2s; }
.toast-min.show { opacity:1; transform:translateX(-50%) translateY(0); }


.b2b-link { display:flex; align-items:center; gap:10px; flex-wrap:wrap; background:#fff; border:1px solid #e2e8f0; border-left:4px solid #f59e0b; border-radius:10px; padding:10px 14px; margin:8px 0; text-decoration:none; }
.b2b-link:hover { border-color:#f59e0b; background:#fffbeb; }
.b2b-link-d { font-size:13px; font-weight:700; color:#92400e; }
.b2b-link-u { font-size:11px; color:var(--muted); word-break:break-all; flex:1; min-width:0; }
.b2b-link-o { font-size:11px; font-weight:700; color:#fff; background:#f59e0b; padding:4px 10px; border-radius:6px; }
.b2b-img { display:inline-block; margin:6px 6px 6px 0; }
.b2b-img img { width:120px; height:120px; object-fit:cover; border-radius:10px; border:1px solid var(--border); }


.acc-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:12px; margin-bottom:22px; }
.acc-stat { background:linear-gradient(160deg,#fff,#f8fbff); border:1px solid #e2eaf3; border-radius:14px; padding:16px 12px; text-align:center; text-decoration:none; transition:border-color .2s,transform .12s; }
.acc-stat:hover { border-color:var(--accent); transform:translateY(-2px); }
.acc-n { font-size:26px; font-weight:800; color:var(--accent); line-height:1.1; position:relative; }
.acc-l { font-size:12px; color:var(--muted); margin-top:4px; }
.acc-badge { position:absolute; top:-6px; right:-10px; background:#ef4444; color:#fff; font-size:10px; font-weight:700; min-width:18px; height:18px; border-radius:9px; display:inline-flex; align-items:center; justify-content:center; padding:0 4px; }


.foot-news { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:16px 0; padding:18px 22px; background:linear-gradient(120deg,#0f172a,#1e3a5f); border-radius:14px; }
.foot-news-l { display:flex; flex-direction:column; gap:4px; color:#e2e8f0; }
.foot-news-l b { font-size:15px; display:inline-flex; align-items:center; gap:8px; color:#fff; }
.foot-news-l span { font-size:12px; color:#94a3b8; }
.foot-news-f { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.foot-news-f input { width:240px; padding:10px 14px; border:1px solid #334155; border-radius:10px; background:#0b1220; color:#f1f5f9; font-size:13px; outline:none; }
.foot-news-f input:focus { border-color:#3b82f6; }
.foot-news-f button { padding:10px 20px; border:0; border-radius:10px; background:#3b82f6; color:#fff; font-size:13px; font-weight:600; cursor:pointer; transition:background .15s; }
.foot-news-f button:hover { background:#2563eb; }


.rfq-hot{background:#dcfce7;color:#15803d;font-size:11px;font-weight:700;padding:2px 9px;border-radius:12px;}


@media (max-width: 768px) {
  .container { padding: 0 12px; }
  .hero { padding: 30px 18px; border-radius: 16px; }
  .product-top { padding: 14px; gap: 14px; }
  .gallery { flex: 1 1 100%; }
  .product-info { flex: 1 1 100%; }
  .desc-box, .inquiry-form { padding: 16px; }
  .foot-app { flex-direction: column; align-items: center; }
  .app-qr-wrap { margin-bottom: 10px; }
  .trust-bar { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
  .section-title { margin: 24px 0 12px; }
  .home-section-tint { padding: 4px 0 8px; }
  .cat-layout { gap: 14px; }
  .empty-box { padding: 26px 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 10px; }
  .topbar { font-size: 11px; padding: 5px 0; }
  .announcement { font-size: 12px; padding: 7px 10px; }
  
  .header-top { padding: 8px 0; gap: 6px; min-height: 54px; }
  .brand b { font-size: 17px; }
  .header-actions { gap: 4px; }
  .header-actions .btn { padding: 6px 9px; font-size: 12px; border-radius: 8px; }
  .hamburger { width: 38px; height: 38px; padding: 8px; }
  .drawer { width: 86vw; }
  
  .page-title { font-size: 19px; margin: 16px 0 10px; }
  .hero { margin: 12px 0 6px; padding: 24px 14px; }
  .hero-title { font-size: 22px; }
  .hero-sub { font-size: 13px; margin-top: 8px; }
  .hero-btn { padding: 9px 18px; font-size: 13px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(42vw, 1fr)); gap: 8px; margin-bottom: 22px; }
  .card { border-radius: 12px; }
  .card-title { font-size: 12.5px; line-height: 1.35; }
  .card-price { font-size: 15px; }
  .card-sub { gap: 6px; }
  .card-id { font-size: 10px; }
  .wa-chip { font-size: 11px; padding: 4px 8px; }
  .cat-tile { padding: 14px 6px; }
  .cat-icon { width: 44px; height: 44px; font-size: 21px; border-radius: 12px; }
  .cat-tile-name { font-size: 13px; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .trust-item { padding: 10px 8px; gap: 8px; }
  .trust-ico { width: 32px; height: 32px; font-size: 17px; border-radius: 9px; }
  .trust-t { font-size: 12px; }
  .trust-d { font-size: 11px; line-height: 1.35; }
  .bs-grid { grid-template-columns: 1fr; gap: 10px; }
  .bs-item { padding: 10px; gap: 10px; }
  .bs-name { font-size: 13px; }
  .bs-meta { font-size: 11px; }
  .bs-wa { font-size: 12px; padding: 6px 10px; }
  .wa-cta { padding: 14px; flex-direction: column; align-items: stretch; text-align: left; }
  .wa-bulk-btn { width: 100%; justify-content: center; }
  .section-title { margin: 20px 0 10px; }
  .section-title > span { font-size: 17px; }
  .section-sub { font-size: 12px; }
  
  .cat-tabs { gap: 8px; }
  .cat-tabs a { padding: 7px 10px; font-size: 12.5px; white-space: nowrap; }
  .cat-side-title { font-size: 13.5px; }
  .cat-side-name { font-size: 13px; }
  .cat-layout { gap: 10px; }
  .cat-main { padding: 0; }
  
  .product-top { padding: 10px; margin-bottom: 14px; }
  .product-info h1 { font-size: 18px; }
  .price { font-size: 20px; }
  .meta { font-size: 12.5px; }
  .gallery-thumbs img { width: 48px; height: 48px; border-radius: 7px; }
  .thumbs-nav { width: 28px; height: 48px; font-size: 16px; }
  .desc-box { padding: 14px; }
  .desc-box h3 { font-size: 15px; }
  .contact-box { padding: 12px; font-size: 13px; }
  .inquiry-form { padding: 14px; margin-top: 14px; }
  
  .form-group input, .form-group textarea, .form-group select,
  input[type=text], input[type=email], input[type=password], input[type=number], input[type=file], textarea, select {
    font-size: 16px;
  }
  .btn { font-size: 13.5px; padding: 10px 14px; }
  .btn-block { width: 100%; }
  
  .table { display: block; overflow-x: auto; white-space: nowrap; font-size: 12px; }
  .table th, .table td { min-width: 90px; }
  
  .foot-grid { padding: 18px 0 10px; }
  .foot-newsletter { padding: 14px; flex-direction: column; align-items: stretch; }
  .nl-form { flex-direction: column; width: 100%; max-width: none; min-width: 0; }
  .nl-form .btn { width: 100%; }
  .foot-social { gap: 6px; }
  .foot-social-btn { padding: 6px 10px; font-size: 11.5px; }
  .app-qr { width: 96px; height: 96px; }
  .app-soon-badge { font-size: 11px; padding: 6px 10px; }
  .foot-copy { font-size: 11px; padding: 12px 0; }
  
  .floating { right: 8px; bottom: 8px; }
  .float-btn { width: 46px; height: 46px; font-size: 20px; border-radius: 14px; }
  .share-bar { overflow-x: auto; }
  .share-inner { flex-wrap: nowrap; overflow-x: auto; padding: 8px 10px; }
  .share-btn { white-space: nowrap; padding: 6px 11px; font-size: 12px; }
  .share-qr { display: none; }
  
  .cart-layout { flex-direction: column; }
  .cart-summary { width: 100%; }
  
  .wanted-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .wanted-card { padding: 12px; }
  
  .auth-card { padding: 18px 14px; }
  .auth-card h2 { font-size: 20px; }
  .empty-box { padding: 24px 12px; }
  .pager a, .pager span { padding: 6px 10px; font-size: 12px; }
  .flash { font-size: 12.5px; padding: 10px 12px; }
  .toast { font-size: 13px; }
  .msg-modal-box { width: 100%; max-width: 100%; }
}


@media (max-width: 480px) {
  .floating {
    left: 0; right: 0; top: auto; bottom: 0;
    flex-direction: row; justify-content: space-around; gap: 0;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 14px rgba(0,0,0,.08);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 90;
  }
  .floating .float-btn {
    width: 46px; height: 44px; border-radius: 12px;
    background: transparent; color: var(--accent);
    box-shadow: none; font-size: 20px;
    border: 1px solid rgba(30,159,255,.22);
  }
  .floating .float-btn:hover, .floating .float-btn:active { background: rgba(30,159,255,.1); }
  .floating .float-btn svg { width: 22px; height: 22px; }
  .site-footer { padding-bottom: 64px; }
  
  .card-sub { flex-wrap: wrap; gap: 4px; }
  .card-price, .card-price * { white-space: nowrap; }
  .wa-chip { white-space: nowrap; }
}


@media (max-width: 768px) {
  body.front .hero-premium .hero-title { font-size: 30px; line-height: 1.2; }
  body.front .hero-premium .hero-sub { font-size: 14.5px; margin: 8px 0 16px; }
  body.front .hero-premium .hero { padding: 28px 16px; }
}

@media (max-width: 480px) {
  body.front .hero-premium .hero { padding: 18px 12px; margin: 10px 0 4px; }
  body.front .hero-premium .hero-title { font-size: 22px; line-height: 1.25; }
  body.front .hero-premium .hero-badge { font-size: 12px; padding: 3px 11px; margin-bottom: 8px; }
  body.front .hero-premium .hero-sub { font-size: 12.5px; margin: 7px 0 12px; line-height: 1.45; }
  body.front .hero-premium .hero-btn { padding: 9px 15px; font-size: 12.5px; }
  body.front .hero-premium .hero-search input { font-size: 15px; padding: 9px 12px; }
  body.front .hero-premium .hero-search button { font-size: 13px; padding: 9px 14px; }
  body.front .hero-premium .hero-trust { gap: 8px; margin-top: 12px; }
  body.front .hero-premium .hero-trust-item { font-size: 11.5px; }
  body.front .hero-premium .hero-trust-item b { font-size: 12.5px; }
}


.prod-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 92;
  display: none; align-items: center; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 14px rgba(0,0,0,.08);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
}
.prod-bar-price {
  font-weight: 800; color: var(--accent); font-size: 15px;
  white-space: nowrap; max-width: 34%;
  overflow: hidden; text-overflow: ellipsis; flex-shrink: 0;
}
.prod-bar-wa, .prod-bar-q {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 10px; border-radius: 12px;
  font-size: 14px; font-weight: 700; color: #fff;
  text-decoration: none; border: 0; cursor: pointer;
}
.prod-bar-wa { background: #25d366; }
.prod-bar-wa:active { background: #1ebd59; }
.prod-bar-q { background: var(--accent); }
.prod-bar-q:active { background: var(--accent-dark); }
.prod-bar-wa span, .prod-bar-q span { white-space: nowrap; }
@media (max-width: 480px) {
  .prod-bar { display: flex; }
}


.gallery-main { cursor: zoom-in; position: relative; }
.gallery-zoom-hint {
  position: absolute; right: 10px; bottom: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  pointer-events: none; z-index: 2;
}
@media (max-width: 480px) {
  .gallery-zoom-hint { width: 30px; height: 30px; right: 8px; bottom: 8px; }
}


@media (max-width: 768px) {
  .admin-main { padding: 14px; }
  .panel { padding: 14px; margin-bottom: 14px; }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
}

@media (max-width: 480px) {
  .admin-main { padding: 10px; }
  
  .admin-side { position: sticky; top: 0; z-index: 60; box-shadow: 0 1px 8px rgba(0,0,0,.2); }
  .admin-side a { padding: 13px 16px; font-size: 14px; }
  .admin-side .side-grp { display: none; }
  .admin-side .side-scroll { overflow-y: hidden; }
  .side-badge { min-width: 20px; height: 20px; line-height: 20px; font-size: 11px; }
  .panel { padding: 12px; border-radius: 10px; }
  .panel-head { flex-wrap: wrap; gap: 8px; }
  .panel-head h2 { font-size: 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat { padding: 12px 10px; }
  .stat .n { font-size: 20px; }
  .stat .t { font-size: 11.5px; }
  .form-group label { font-size: 13px; }
}


.pay-trust {
  margin-top: 14px; padding: 12px 14px;
  border: 1px dashed #c7d2fe; border-radius: 12px;
  background: #f8faff;
}
.pay-trust-t { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pay-trust-b { font-size: 12.5px; color: var(--accent-dark); font-weight: 600; letter-spacing: .2px; line-height: 1.5; }

@media (max-width: 480px) {
  .checkout-wrap .panel { flex: 1 1 100%; }
  .checkout-wrap .btn-primary { width: 100%; justify-content: center; padding: 14px; font-size: 15px; }
  .checkout-wrap #fCountry { font-size: 16px; width: 100%; }
  .checkout-wrap #fResult { font-size: 13.5px; }
  .pay-trust { padding: 10px 12px; }
  .pay-trust-b { font-size: 12px; }
}


@media (max-width: 768px) {
  .cat-tabs {
    position: sticky; top: 52px; z-index: 20;
    background: var(--card); margin: 0 0 10px;
    padding: 8px 0 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
  }
}

@media (max-width: 480px) {
  
  .cat-side { max-height: 216px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .cat-side .cat-side-title {
    position: sticky; top: 0; background: var(--card);
    padding: 8px 8px 6px; z-index: 1; border-bottom: 1px solid var(--border);
  }
  .cat-side .cat-side-link { padding: 9px 10px; }
  .cat-main .page-title { margin-top: 14px; }
}


.sort-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px; font-size: 13px;
}
.sort-label { color: var(--muted); font-weight: 600; }
.sort-link {
  padding: 6px 13px; border: 1px solid var(--border); border-radius: 20px;
  color: var(--text); text-decoration: none; transition: .15s;
  background: var(--card);
}
.sort-link:hover { border-color: var(--accent); color: var(--accent); }
.sort-link.active { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 480px) {
  .sort-bar { gap: 6px; margin-bottom: 12px; }
  .sort-link { padding: 8px 12px; font-size: 12.5px; }
}


@media (max-width: 480px) {
  .cart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cart-actions form { display: contents; }
  .cart-actions > a, .cart-actions .btn { width: 100%; justify-content: center; }
  .cart-actions .btn-primary { grid-column: 1 / -1; padding: 14px; font-size: 15px; }
  .cart-actions .btn[style*="25d366"] { grid-column: 1 / -1; padding: 13px; font-size: 14px; }
}


.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebd59; color: #fff; }
.quote-actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px;
}
.quote-actions form { margin: 0; }
@media (max-width: 480px) {
  .quote-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .quote-actions form { display: contents; }
  .quote-actions .btn, .quote-actions a.btn { width: 100%; justify-content: center; padding: 13px; }
  .my-quote-page .contact-box { padding: 12px; }
}


@media (max-width: 520px) {
  .auth-split .split-left { padding: 20px 16px; }
  .split-brand { font-size: 19px; }
  .split-slogan { font-size: 18px; line-height: 1.3; margin: 8px 0 4px; }
  .split-desc { display: none; }
  .split-products { margin-bottom: 12px; gap: 8px; }
  .split-points { display: none; }
  .auth-split .split-right { padding: 22px 14px 36px; }
  .auth-card { padding: 20px 16px; }
  .auth-submit { font-size: 16px; padding: 15px; }
  .auth-card input[type=text], .auth-card input[type=password], .auth-card input[type=email] {
    font-size: 16px; padding: 14px;
  }
  .social-btn { font-size: 15px; padding: 13px; }
}


@media (max-width: 480px) {
  .acc-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
  .acc-stat { padding: 12px 8px; border-radius: 12px; }
  .acc-n { font-size: 21px; }
  .acc-l { font-size: 11px; margin-top: 3px; }
  .acc-badge { top: -4px; right: -6px; }
  .row { gap: 8px; }
  .row .form-group { flex: 1 1 100%; }
  .chat-item { padding: 9px 0; font-size: 13px; }
  .chat-item .meta { font-size: 11px; }
}


.order-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.order-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-size: 13px; font-weight: 600; text-decoration: none; transition: .15s;
}
.order-tab:hover { border-color: var(--accent); color: var(--accent); }
.order-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.order-tab-n {
  background: rgba(0,0,0,.08); color: inherit; font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 5px;
}
.order-tab.active .order-tab-n { background: rgba(255,255,255,.25); color: #fff; }
.order-pending { border-color: #fbbf24 !important; box-shadow: 0 0 0 1px rgba(251,191,36,.35), 0 8px 24px rgba(251,191,36,.12); }
@media (max-width: 480px) {
  .order-tabs { gap: 6px; }
  .order-tab { padding: 7px 10px; font-size: 12px; }
}


.nf-cats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding-bottom: 8px; }
.nf-cat {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border: 1px solid var(--border); border-radius: 24px; background: var(--card);
  color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; transition: .15s;
}
.nf-cat:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 4px 14px rgba(30,159,255,.12); }
.nf-cat-ico { display: inline-flex; }
@media (max-width: 480px) {
  .nf-cats { gap: 8px; }
  .nf-cat { padding: 9px 14px; font-size: 13px; border-radius: 20px; }
}


.acc-layout { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; margin-top: 16px; }
.acc-nav { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 10px; position: sticky; top: 80px; display: flex; flex-direction: column; gap: 2px; }
.acc-nav-head { font-size: 14px; font-weight: 700; padding: 8px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.acc-nav-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: var(--text); text-decoration: none; }
.acc-nav-item:hover { background: #f0f6ff; color: var(--accent); }
.acc-nav-item .acc-badge { margin-left: auto; }
.acc-main { min-width: 0; }
.acc-welcome { background: linear-gradient(120deg, #f0f8ff, #eef6ff); border: 1px solid #d8e9ff; border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.acc-welcome-t { font-size: 18px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 6px; }
.acc-welcome-s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.acc-welcome-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-tag { background: #fff; border: 1px solid #d8e9ff; color: #0b7ad1; border-radius: 20px; padding: 5px 12px; font-size: 12px; font-weight: 600; }
.acc-tag-warn { background: #fffbeb; border-color: #fcd34d; color: #b45309; }
.badge-warn { background: #f59e0b; color: #fff; }
.badge-done { background: #16a34a; color: #fff; }
@media (max-width: 820px) {
  .acc-layout { grid-template-columns: 1fr; }
  .acc-nav { position: static; flex-direction: row; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 8px; gap: 4px; }
  .acc-nav-head { display: none; }
  .acc-nav-item { white-space: nowrap; flex: 0 0 auto; }
}


@media (max-width: 480px) {
  textarea[id^="pasteAddr"] { font-size: 16px; }
  textarea[id^="pasteAddr"] + div .btn { min-height: 44px; font-size: 15px; }
}


.header-search { position: relative; }
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12); z-index: 999; max-height: 340px; overflow-y: auto; padding: 6px; }
.ss-group { font-size: 11px; font-weight: 700; color: #9ca3af; padding: 6px 10px 3px; letter-spacing: .4px; text-transform: uppercase; }
.ss-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: #1f2937; text-decoration: none; }
.ss-item.ss-hover, .ss-item:hover { background: #f0f6ff; color: #1e5fff; }
.ss-ic { width: 20px; text-align: center; font-size: 12px; }
@media (max-width: 768px) {
  .search-suggest { position: fixed; left: 12px; right: 12px; top: 64px; max-height: 300px; }
}


.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin-bottom: 12px; }
.fb-field { position: relative; flex: 1 1 170px; min-width: 150px; }
.fb-field input { width: 100%; padding: 8px 28px 8px 30px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; box-sizing: border-box; }
.fb-field .fb-sic { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.fb-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1; }
.fb-price { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fb-label { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.fb-chip { padding: 5px 9px; font-size: 12px; border-radius: 14px; background: #f0f4f8; color: var(--text); text-decoration: none; white-space: nowrap; }
.fb-chip.active { background: #1e9fff; color: #fff; }
.fb-custom { display: flex; align-items: center; gap: 4px; }
.fb-custom input { width: 62px; padding: 7px 6px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; box-sizing: border-box; }
.fb-sep { color: var(--muted); }
.fb-reset { color: #ef4444 !important; }
@media (max-width: 768px) {
  .filter-bar { padding: 8px; }
  .fb-field { flex: 1 1 100%; }
  .fb-price { order: 3; }
  .fb-custom { order: 2; flex: 1; }
  .fb-custom input { flex: 1; width: auto; }
}


.card { position: relative; }
.card-check { position: absolute; top: 8px; left: 8px; z-index: 6; width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,.94); border: 1.5px solid #cbd5e1; display: flex; align-items: center; justify-content: center; cursor: pointer; color: transparent; transition: background .15s, border-color .15s, color .15s; }
.card-check:hover { border-color: #1e9fff; }
.card.picked { outline: 2px solid #1e9fff; outline-offset: 2px; border-radius: 10px; }
.card.picked .card-check { background: #1e9fff; border-color: #1e9fff; color: #fff; }
.bulk-bar { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 24px); display: flex; align-items: center; gap: 12px; background: #0f172a; color: #fff; padding: 10px 20px; border-radius: 999px; box-shadow: 0 12px 34px rgba(0,0,0,.28); z-index: 900; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.bulk-bar.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.bulk-count { font-size: 13px; white-space: nowrap; }
.bulk-count b { color: #38bdf8; }
.bulk-clear { background: none; border: none; color: #94a3b8; font-size: 12px; cursor: pointer; }
@media (max-width: 768px) {
  .bulk-bar { bottom: 74px; width: calc(100% - 24px); justify-content: center; padding: 12px 16px; border-radius: 14px; }
}


.card-qv { position: absolute; right: 8px; bottom: 8px; z-index: 6; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.94); border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #334155; opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .18s, background .15s, color .15s; }
.card:hover .card-qv { opacity: 1; transform: translateY(0); }
.card-qv:hover { background: #1e9fff; border-color: #1e9fff; color: #fff; }
.qv-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.qv-modal.show { display: flex; }
.qv-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); }
.qv-box { position: relative; background: #fff; border-radius: 16px; max-width: 720px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,.25); animation: qvIn .22s ease; }
@keyframes qvIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.qv-loading { padding: 48px; text-align: center; color: var(--muted); font-size: 14px; }
.qv-close { position: absolute; top: 10px; right: 10px; z-index: 5; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); border: 1px solid var(--border); font-size: 18px; line-height: 1; cursor: pointer; color: #334155; }
.qv-grid { display: flex; gap: 20px; padding: 22px; }
.qv-img { flex: 0 0 46%; display: flex; align-items: center; justify-content: center; background: #f8fafc; border-radius: 12px; min-height: 240px; }
.qv-img img { max-width: 100%; max-height: 380px; border-radius: 10px; }
.qv-ph { color: var(--muted); font-size: 13px; }
.qv-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.qv-cat { font-size: 11px; font-weight: 700; color: #1e9fff; text-transform: uppercase; letter-spacing: .5px; }
.qv-name { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.4; }
.qv-price { font-size: 18px; font-weight: 800; color: #ef4444; }
.qv-stock { font-size: 12px; }
.qv-sku { font-size: 12px; color: var(--muted); }
.qv-desc { font-size: 13px; color: #475569; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qv-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.qv-actions .btn { flex: 1; }
body.qv-open { overflow: hidden; }
@media (max-width: 768px) {
  .qv-modal { padding: 0; align-items: flex-end; }
  .qv-box { max-width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
  .qv-grid { flex-direction: column; padding: 16px; }
  .qv-img { flex: none; min-height: 0; }
  .qv-img img { max-height: 42vh; }
  .qv-actions { flex-wrap: wrap; }
}


.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.dash-kpi { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(15,23,42,.05); }
.dk-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dk-ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.dk-blue { background: #eff6ff; }
.dk-orange { background: #fff7ed; }
.dk-green { background: #f0fdf4; }
.dk-purple { background: #f5f3ff; }
.dk-trend { font-size: 12px; font-weight: 700; }
.dk-trend.up { color: #16a34a; }
.dk-trend.down { color: #ef4444; }
.dk-num { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1.1; }
.dk-label { font-size: 12px; color: var(--muted); margin-top: 3px; }
@media (max-width: 768px) {
  .dash-kpis { grid-template-columns: 1fr 1fr; }
}


.pb-card { margin-top:16px; background:#fff; border:1px solid #dbeafe; border-radius:14px; overflow:hidden; }
.pb-head { padding:12px 14px; background:#eff6ff; border-bottom:1px solid #dbeafe; font-size:14px; font-weight:700; color:#1e40af; display:flex; align-items:center; gap:8px; }
.pb-table { width:100%; border-collapse:collapse; font-size:13px; }
.pb-table th { text-align:left; padding:9px 14px; background:#f8fafc; color:#64748b; font-size:12px; font-weight:600; border-bottom:1px solid var(--border); }
.pb-table td { padding:9px 14px; border-bottom:1px solid #f1f5f9; }
.pb-row { transition:background .15s; }
.pb-row.pb-active { background:#ecfdf5; }
.pb-row.pb-active td { font-weight:700; color:#047857; }
.pb-p { font-weight:600; color:var(--text); }
.pb-save { color:#16a34a; font-weight:600; }
.pb-qtyrow { display:flex; align-items:center; gap:10px; padding:12px 14px; background:#f0fdf4; border-top:1px solid #dcfce7; flex-wrap:wrap; }
.pb-stepper { display:flex; align-items:center; gap:0; }
.pb-stepper input { width:70px; padding:8px 6px; text-align:center; border:1px solid var(--border); border-radius:0; font-size:15px; font-weight:700; -moz-appearance:textfield; }
.pb-stepper input::-webkit-outer-spin-button, .pb-stepper input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.pb-step { width:34px; height:100%; border:1px solid var(--border); background:#fff; font-size:16px; font-weight:700; cursor:pointer; line-height:1; }
.pb-step:first-child { border-radius:8px 0 0 8px; }
.pb-step:last-child { border-radius:0 8px 8px 0; }
.pb-step:hover { background:#f1f5f9; }
.pb-cur { font-size:15px; font-weight:800; color:#16a34a; }


.seller-card { background:#fff; border:1px solid var(--border); border-radius:14px; padding:14px 16px; margin-bottom:14px; }
.seller-head { display:flex; align-items:center; gap:10px; }
.seller-logo { width:40px; height:40px; border-radius:10px; background:linear-gradient(135deg,#1e5fff,#0ea5e9); color:#fff; display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:800; flex-shrink:0; }
.seller-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-top:12px; padding-top:12px; border-top:1px dashed var(--border); }
.seller-stats div { background:#f8fafc; border-radius:10px; padding:8px 6px; text-align:center; }
.seller-stats b { display:block; font-size:16px; color:var(--text); }
.seller-stats span { font-size:11px; color:var(--muted); }
.policy-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; margin-bottom:14px; }
.pc-item { display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--border); border-radius:12px; padding:12px 14px; text-decoration:none; color:var(--text); transition:box-shadow .15s,transform .15s; }
.pc-item:hover { box-shadow:0 4px 14px rgba(15,23,42,.08); transform:translateY(-1px); }
.pc-ico { width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0; }
.pc-t { flex:1; font-size:12.5px; font-weight:700; line-height:1.35; }
.pc-a { font-size:11px; color:var(--accent); white-space:nowrap; }
.req-card { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; background:linear-gradient(135deg,#eff6ff,#f0f9ff); border:1px solid #bfdbfe; border-radius:14px; padding:14px 16px; margin-bottom:20px; }
@media (max-width:480px){
  .req-card { flex-direction:column; align-items:flex-start; }
  .req-card > div:last-child { justify-content:flex-start; }
}


.ord-steps { display:flex; align-items:center; gap:2px; min-width:210px; }
.ord-steps .os { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; position:relative; }
.ord-steps .os:not(:last-child)::after { content:''; position:absolute; top:7px; left:calc(50% + 8px); right:calc(-50% + 8px); height:3px; background:#e2e8f0; border-radius:2px; }
.ord-steps .os.on:not(:last-child)::after { background:linear-gradient(90deg,#1e5fff,#38bdf8); }
.ord-steps .os-dot { width:16px; height:16px; border-radius:50%; background:#e2e8f0; border:2px solid #fff; box-shadow:0 0 0 1.5px #e2e8f0; z-index:1; transition:all .2s; }
.ord-steps .os.on .os-dot { background:linear-gradient(135deg,#1e5fff,#38bdf8); box-shadow:0 0 0 1.5px #1e5fff, 0 0 8px rgba(30,95,255,.35); }
.ord-steps .os-txt { font-size:10.5px; color:var(--muted); white-space:nowrap; }
.ord-steps .os.on .os-txt { color:#1e5fff; font-weight:700; }
.ord-steps .os:last-child .os-dot { width:18px; height:18px; }
.ord-steps .os:last-child.on .os-dot { background:linear-gradient(135deg,#16a34a,#4ade80); box-shadow:0 0 0 1.5px #16a34a, 0 0 8px rgba(22,163,74,.35); }
.ord-steps .os:last-child.on .os-txt { color:#16a34a; }
.badge-off { background:#f1f5f9; color:#64748b; }
.ord-toggle { cursor:pointer; color:var(--accent); font-size:13px; user-select:none; }
.ord-detail td { background:#f8fafc; }
.mini-table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--border); border-radius:8px; overflow:hidden; font-size:12.5px; }
.mini-table td { border-bottom:1px solid #f1f5f9; }
.mini-table tr:last-child td { border-bottom:none; }
.mini-tag { display:inline-block; background:#eff6ff; color:#1e5fff; border-radius:4px; padding:0 6px; font-size:11px; margin-left:4px; }
.table-wrap { overflow-x:auto; }
@media (max-width:560px){ .ord-steps { min-width:190px; } .ord-steps .os-txt { font-size:9.5px; } }


.collect-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:14px; align-items:start; }
@media (max-width:1100px){ .collect-grid { grid-template-columns:1fr; } }


.drag-handle { cursor:grab; color:#94a3b8; font-size:14px; user-select:none; margin-right:2px; }
.drag-handle:hover { color:#1e5fff; }
.cat-group[draggable="true"] { cursor:grab; }
.cat-brand[draggable="true"] { cursor:grab; }
.cat-group.dragging { opacity:.5; outline:2px dashed #1e5fff; outline-offset:2px; }
.cat-brand.dragging { opacity:.5; outline:2px dashed #1e5fff; outline-offset:2px; }
.cat-brand { transition:box-shadow .15s, transform .15s; }


.sub-tabs { display:flex; gap:6px; flex-wrap:wrap; margin:10px 0 12px; padding-left:2px; }


.card-hot { position:absolute; top:10px; left:10px; background:linear-gradient(135deg,#f97316,#ef4444); color:#fff; font-size:10.5px; font-weight:800; padding:3px 8px; border-radius:20px; box-shadow:0 2px 8px rgba(239,68,68,.35); z-index:2; letter-spacing:.2px; }
.card-cover .card-badge { top:10px; left:10px; }
.card-cover .card-hot { top:10px; left:10px; }
.card-cover .card-hot + .card-id, .card-cover .card-hot { }
@media (max-width:480px){ .card-hot { font-size:9.5px; padding:2px 6px; } }


.card-hot { left:auto; right:10px; top:10px; }


.collect-guide { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.collect-guide-item { flex:1 1 210px; background:#fff; border:1px solid var(--border); border-radius:10px; padding:10px 14px; font-size:13px; color:var(--muted); line-height:1.6; box-sizing:border-box; }
.collect-guide-item b { color:#1a1b1c; }
.collect-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:14px; align-items:start; }
.collect-card { background:#fff; border:1px solid var(--border); border-top:3px solid #94a3b8; border-radius:12px; padding:16px; box-sizing:border-box; }
.collect-card-green { border-top-color:#22c55e; }
.collect-card-blue { border-top-color:#0ea5e9; }
.collect-card-orange { border-top-color:#f97316; }
.collect-card-purple { border-top-color:#a855f7; }
.collect-card-head { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.collect-num { font-size:11px; font-weight:700; color:#fff; background:#94a3b8; border-radius:6px; padding:3px 7px; line-height:1.4; }
.collect-card-green .collect-num { background:#22c55e; }
.collect-card-blue .collect-num { background:#0ea5e9; }
.collect-card-orange .collect-num { background:#f97316; }
.collect-card-purple .collect-num { background:#a855f7; }
.collect-card h2 { margin:0; font-size:15px; }
.collect-tag { font-size:11px; font-weight:600; padding:2px 8px; border-radius:10px; white-space:nowrap; }
.collect-tag-green { background:#dcfce7; color:#15803d; }
.collect-tag-blue { background:#e0f2fe; color:#0369a1; }
.collect-tag-orange { background:#ffedd5; color:#c2410c; }
.collect-tag-purple { background:#f3e8ff; color:#7e22ce; }
.collect-desc { margin:0 0 12px; font-size:12.5px; color:var(--muted); line-height:1.7; }
.collect-card label { font-size:13px; font-weight:600; display:block; margin-bottom:6px; }
.collect-card input[type=text], .collect-card input[type=file], .collect-card input[type=number], .collect-card select, .collect-card textarea { width:100%; box-sizing:border-box; padding:11px 12px; font-size:14px; border:1px solid var(--border); border-radius:8px; background:#fff; color:#1a1b1c; }
.collect-card textarea { resize:vertical; line-height:1.6; }
.collect-card .btn { width:100%; padding:12px 26px; font-size:15px; }
.collect-form { display:flex; flex-direction:column; gap:12px; }
.collect-check { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:400 !important; }
.collect-check input { width:auto !important; }
.collect-fold { margin-top:12px; font-size:12.5px; color:var(--muted); line-height:1.8; }
.collect-fold summary { cursor:pointer; color:var(--accent); font-weight:600; }
.collect-fold ul { margin:8px 0 0; padding-left:18px; }
.collect-notice { margin-top:14px; background:#fefce8; border:1px solid #fde68a; border-radius:10px; padding:10px 14px; font-size:12.5px; color:#713f12; line-height:1.7; }
.collect-tip { background:#fefce8; border:1px solid #fde68a; border-radius:8px; padding:8px 12px; font-size:12.5px; color:#713f12; line-height:1.7; }

/* ===== 采集页新版：步骤条 / 行内配置 / 折叠更多 ===== */
.collect-steps { display:flex; align-items:stretch; gap:8px; margin:2px 0 14px; padding:12px 14px; background:#faf5ff; border:1px dashed #c4b5fd; border-radius:10px; }
.collect-step { flex:1 1 0; min-width:0; text-align:center; }
.collect-step b { display:block; font-size:14px; color:#7e22ce; margin-bottom:4px; }
.collect-step span { font-size:11.5px; color:#6b7280; line-height:1.5; display:block; }
.collect-step-arrow { align-self:center; font-size:18px; color:#c4b5fd; font-weight:700; }
.collect-row { display:flex; flex-wrap:wrap; gap:12px; }
.collect-checks { display:flex; flex-wrap:wrap; gap:14px; }
.collect-more { margin-top:14px; }
.collect-more > summary { cursor:pointer; font-size:13px; font-weight:600; color:var(--accent); padding:10px 14px; background:#fff; border:1px solid var(--border); border-radius:10px; list-style:none; user-select:none; }
.collect-more > summary::-webkit-details-marker { display:none; }
.collect-more[open] > summary { margin-bottom:14px; }
.collect-more .collect-cards { margin-top:0; }
@media (max-width:640px){ .collect-step-arrow { display:none; } .collect-steps { flex-wrap:wrap; } .collect-step { flex:1 1 45%; } }
@media (max-width:1100px){ .collect-cards { grid-template-columns:1fr; } }


/* ===== Hero 升级：产品卡信息层 + 热门分类快捷条 ===== */
.hero-card-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 10px 9px;
  background: linear-gradient(to top, rgba(8,12,20,.88) 0%, rgba(8,12,20,.35) 55%, transparent 100%);
  display: flex; flex-direction: column; gap: 4px;
  pointer-events: none;
}
.hero-card-name {
  font-size: 11.5px; color: #fff; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-card-wa {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; color: #4ade80;
}
.hero-card-wa svg { flex-shrink: 0; }
.hero-cats {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 26px;
}
.hero-split .hero-cats { flex-basis: 100%; justify-content: flex-start; }
.hero-cats-label {
  font-size: 12px; color: rgba(226,232,240,.72); font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px; margin-right: 4px;
}
.hero-cat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 15px; border-radius: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #e2e8f0; font-size: 12.5px; text-decoration: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform .18s, background .18s, border-color .18s, color .18s;
}
.hero-cat-chip:hover {
  background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.4);
  color: #fde68a; transform: translateY(-1px);
}
@media (max-width: 640px) {
  .hero-cats { justify-content: center; margin-top: 20px; }
  .hero-cats-label { display: none; }
  .hero-card-info { padding-top: 22px; }
  .hero-card-name { font-size: 11px; }
}


/* ===== 手机端强制补丁（覆盖旧横排浮动栏，修复右侧留白） ===== */
@media screen and (max-width: 768px) {
  html, body { width:100% !important; max-width:100vw !important; overflow-x:hidden !important; }
  .container { width:100% !important; max-width:100% !important; margin:0 !important; }
  .site-header, .topbar, .ticker-bar, .site-footer { width:100% !important; }
  /* 浮动按钮：右侧垂直圆形蓝底白图标，不再底部横排 */
  .floating {
    left:auto !important; right:12px !important; top:auto !important; bottom:24px !important;
    flex-direction:column !important; justify-content:flex-start !important; gap:10px !important;
    padding:0 !important; background:transparent !important; border:0 !important;
    box-shadow:none !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important;
  }
  .floating .float-btn {
    width:42px !important; height:42px !important; border-radius:50% !important;
    background:#2563eb !important; color:#fff !important; border:0 !important;
    box-shadow:0 3px 10px rgba(0,0,0,.18) !important;
  }
  .floating .float-btn:first-child { background:#25d366 !important; }
  .floating .float-btn svg { width:20px !important; height:20px !important; color:#fff !important; }
  .site-footer { padding-bottom:20px !important; }
}


/* ===== 手机端APP风格补充（闲鱼式双列 + 横滑分类） ===== */
@media screen and (max-width: 768px) {
  /* 分类标签横向滑动 */
  .ce-grid { display:flex !important; flex-wrap:nowrap !important; overflow-x:auto !important; gap:8px !important; padding:4px 2px !important; -webkit-overflow-scrolling:touch !important; }
  .ce-grid::-webkit-scrollbar { display:none !important; }
  .ce-card { flex:0 0 auto !important; min-width:120px !important; min-height:90px !important; }
  /* 商品流双列 */
  .grid, .product-grid, .tc-grid { grid-template-columns:repeat(2,1fr) !important; gap:10px !important; }
  .tc-grid { grid-template-columns:1fr !important; }
  /* 浮动按钮避开底部Tab栏 */
  .floating { bottom:84px !important; }
}
