/* =========================================================
   BAOKE — 产品展示站 设计系统 (仿 dhb168 风格)
   配色：科技蓝 + 活力橙；浅灰背景；响应式
   ========================================================= */
:root {
  --primary: #2456e6;
  --primary-dark: #1a3fb8;
  --primary-soft: #eaf0ff;
  --accent: #ff7a1a;
  --accent-dark: #e8650a;
  --ink: #1f2733;
  --muted: #6b7480;
  --line: #e6eaf0;
  --bg: #f5f7fb;
  --bg-2: #eef2f9;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(28, 52, 120, 0.08);
  --shadow-lg: 0 20px 50px rgba(28, 52, 120, 0.14);
  --maxw: 1180px;
  --header-h: 68px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: none; transition: .2s; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--acent-dark); background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--primary); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); }

.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.section-head h2 { font-size: 32px; margin: 10px 0 12px; line-height: 1.25; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); flex-shrink: 0; }
.brand .logo { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--ink); font-weight: 500;
  transition: .15s;
}
.nav a:hover, .nav a.active { color: var(--primary); background: var(--primary-soft); }
.header-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; background: var(--bg-2); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: none; background: transparent; cursor: pointer; font-size: 13px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; color: var(--muted); transition: .15s;
}
.lang-switch button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a3fb8 0%, #2456e6 55%, #3b73ff 100%);
  color: #fff; padding: 86px 0 96px;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,122,26,.35), transparent 65%); border-radius: 50%;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.18; margin-bottom: 18px; }
.hero p.lead { font-size: 18px; color: rgba(255,255,255,.88); margin-bottom: 28px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  border-radius: 18px; padding: 26px; backdrop-filter: blur(6px);
}
.hero-card h3 { font-size: 18px; margin-bottom: 14px; }
.hero-card ul { list-style: none; display: grid; gap: 12px; }
.hero-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.hero-card li .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex: none; }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; font-size: 22px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .more { display: inline-block; margin-top: 14px; color: var(--primary); font-weight: 600; font-size: 14px; }

/* product card */
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: .2s; display: flex; flex-direction: column;
}
.product .thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--primary-soft), #dfe8ff); display: grid; place-items: center; }
.product .thumb svg { width: 64px; height: 64px; opacity: .8; }
.product .body { padding: 18px 18px 22px; flex: 1; display: flex; flex-direction: column; }
.product .tag { align-self: flex-start; background: var(--bg-2); color: var(--primary); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.product h3 { font-size: 17px; margin-bottom: 6px; }
.product p { color: var(--muted); font-size: 14px; flex: 1; }
.product .price { margin-top: 12px; font-weight: 700; color: var(--accent); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 40px; font-weight: 800; color: var(--primary); }
.stat .num span { color: var(--accent); }
.stat .label { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- Alternating feature blocks (solutions) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-media {
  border-radius: 18px; min-height: 280px; padding: 30px;
  background: linear-gradient(135deg, #1a3fb8, #2456e6); color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.feature-media .kpi { font-size: 30px; font-weight: 800; }
.feature-media .kpi span { color: var(--accent); }
.feature h3 { font-size: 26px; margin-bottom: 12px; }
.feature p { color: var(--muted); margin-bottom: 16px; }
.feature ul { list-style: none; display: grid; gap: 10px; }
.feature ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.feature ul li .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }

/* ---------- Cases ---------- */
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: .2s;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.case .meta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.case .badge { background: var(--primary-soft); color: var(--primary); padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.case h3 { font-size: 17px; line-height: 1.4; }
.case p { color: var(--muted); font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent), #ff9a3d);
  color: #fff; border-radius: 20px; padding: 48px; text-align: center;
}
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { font-size: 16px; opacity: .95; margin-bottom: 24px; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { display: grid; gap: 18px; }
.contact-info .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 20px; flex: none; }
.contact-info .item h4 { font-size: 16px; }
.contact-info .item p { color: var(--muted); font-size: 14.5px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px; background: var(--bg); color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--primary); background: #fff; }
.form textarea { min-height: 110px; resize: vertical; }
.form .btn { width: 100%; justify-content: center; margin-top: 18px; }

/* ---------- Footer ---------- */
.footer { background: #0f1b3d; color: #c8d2e8; padding: 56px 0 28px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand .logo { height: 30px; filter: brightness(0) invert(1); }
.footer p.desc { font-size: 14px; color: #9fb0d0; max-width: 280px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { color: #c8d2e8; font-size: 14px; transition: .15s; }
.footer ul a:hover { color: #fff; }
.footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: 13px; color: #8295b8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Breadcrumb / sub-hero ---------- */
.subhero { background: linear-gradient(135deg, #1a3fb8, #2456e6); color: #fff; padding: 64px 0; }
.subhero h1 { font-size: 38px; margin-bottom: 12px; }
.subhero p { color: rgba(255,255,255,.85); font-size: 17px; max-width: 640px; }

/* ---------- Tabs (products filter) ---------- */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--muted); padding: 9px 18px;
  border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; transition: .15s;
}
.tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 12px 20px; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .header-right .btn { display: none; }
  .hero h1 { font-size: 32px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .cta-band { padding: 34px 22px; }
}

/* ---------- Home: honors / category / split / timeline ---------- */
.honors { list-style: none; display: grid; gap: 12px; }
.honors li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.honors .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex: none; }

.cat-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.cat-card .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); display: grid; place-items: center; font-size: 26px; margin-bottom: 16px; }
.cat-card h3 { font-size: 19px; margin-bottom: 8px; }
.cat-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.cat-card .more { margin-top: 14px; color: var(--primary); font-weight: 600; font-size: 14px; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.split-title { font-size: 30px; line-height: 1.25; margin: 10px 0 16px; }
.split .muted { color: var(--muted); font-size: 16px; margin-bottom: 22px; }
.about-card { background: linear-gradient(135deg, #1a3fb8, #2456e6); border-radius: 20px; padding: 30px; color: #fff; display: grid; gap: 18px; }
.about-card .hl { border-left: 3px solid var(--accent); padding-left: 16px; }
.about-card .hl h4 { font-size: 16px; margin-bottom: 4px; }
.about-card .hl p { font-size: 14px; color: rgba(255,255,255,.85); }

.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 26px 40px; }
.tl-item .dot { position: absolute; left: 2px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); border: 4px solid var(--primary-soft); }
.tl-year { font-weight: 800; color: var(--primary); font-size: 15px; }
.tl-title { color: var(--ink); font-size: 15px; }

/* =========================================================
   产品目录 / 详情 / 在线订货单（购物车 + WhatsApp）
   ========================================================= */
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---- 产品卡（订货宝风格） ---- */
.product .thumb { position: relative; aspect-ratio: 1 / 1; background: var(--bg-2); display: block; overflow: hidden; }
.product .thumb svg { width: 100%; height: 100%; display: block; }
.product .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product .thumb .tag { position: absolute; top: 12px; left: 12px; margin: 0; background: rgba(255,255,255,.92); color: var(--primary); font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.product .body { padding: 16px 16px 18px; }
.product h3 { font-size: 16px; margin-bottom: 6px; line-height: 1.35; }
.product h3 a { color: var(--ink); }
.product h3 a:hover { color: var(--primary); }
.product .pd { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; min-height: 38px; }
.product .price { font-size: 17px; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.product .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.product .meta .stock { color: #1f9d57; font-weight: 600; }
.product .actions { display: flex; gap: 8px; margin-top: auto; }
.product .actions .btn { flex: 1; justify-content: center; }

/* ---- 目录布局：侧栏 + 网格 ---- */
.catalog { display: grid; grid-template-columns: 232px 1fr; gap: 28px; align-items: start; }
.cat-sidebar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 16px); }
.cat-link { display: flex; justify-content: space-between; align-items: center; width: 100%; border: none; background: transparent; cursor: pointer; padding: 11px 14px; border-radius: 10px; font-size: 14.5px; color: var(--ink); font-weight: 500; transition: .15s; }
.cat-link:hover { background: var(--bg-2); }
.cat-link.active { background: var(--primary); color: #fff; }
.cat-link .cat-count { font-size: 12px; opacity: .85; background: rgba(0,0,0,.06); padding: 1px 8px; border-radius: 999px; }
.cat-link.active .cat-count { background: rgba(255,255,255,.28); }
.catalog-main { min-width: 0; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.search-input { flex: 1; min-width: 200px; max-width: 360px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; background: #fff; }
.search-input:focus { outline: none; border-color: var(--primary); }
.result-count { font-size: 13.5px; color: var(--muted); }
.result-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---- 详情页 ---- */
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--primary); }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.gallery .g-main { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery .g-main svg { width: 100%; height: 100%; }
.gallery .g-main img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--bg-2); }
.gallery .g-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.gallery .g-thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: none; }
.gallery .g-thumb svg { width: 100%; height: 100%; }
.gallery .g-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .g-thumb.active { border-color: var(--primary); }
.pinfo .tag { display: inline-block; background: var(--bg-2); color: var(--primary); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.pinfo h1 { font-size: 28px; line-height: 1.25; margin-bottom: 14px; }
.pinfo .price { font-size: 24px; font-weight: 800; color: var(--accent); margin-bottom: 18px; }
.p-meta { list-style: none; display: flex; gap: 28px; margin-bottom: 22px; flex-wrap: wrap; }
.p-meta li { display: flex; flex-direction: column; }
.p-meta span { font-size: 12.5px; color: var(--muted); }
.p-meta b { font-size: 16px; }
.p-meta b.stock { color: #1f9d57; }
/* 详情：扩展属性 + 颜色选择 + 图文详情 */
.p-meta-ext { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-bottom: 18px; }
.p-meta-ext li { display: flex; flex-direction: column; padding: 8px 12px; background: var(--bg-2); border-radius: 10px; }
.p-meta-ext span { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.p-meta-ext b { font-size: 15px; font-weight: 700; }
.p-meta-ext b.stock { color: #1f9d57; }
.variants { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.v-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.v-chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px; font-size: 14px; cursor: pointer; color: var(--ink); transition: .15s; }
.v-chip:hover { border-color: var(--primary); }
.v-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.detail-desc { margin-bottom: 18px; }
.feature-list { list-style: none; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 24px; color: var(--ink); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #1f9d57; font-weight: 800; }
.ci-variant { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 600; color: #fff; background: var(--primary); border-radius: 999px; padding: 1px 8px; vertical-align: middle; }
.p-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty .step { width: 38px; height: 40px; border: none; background: var(--bg-2); cursor: pointer; font-size: 18px; color: var(--ink); }
.qty input { width: 56px; border: none; text-align: center; font-size: 15px; font-weight: 600; background: #fff; }
.qty input:focus { outline: none; }
.back-link { font-size: 14px; color: var(--primary); font-weight: 600; }
.back-link:hover { text-decoration: underline; }
.detail-tabs { margin-top: 48px; }
.tab-btns { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab-btns button { border: none; background: transparent; cursor: pointer; padding: 12px 18px; font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-btns button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { font-size: 15px; color: var(--ink); line-height: 1.8; }
.spec-table { width: 100%; border-collapse: collapse; max-width: 560px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.spec-table th { width: 160px; color: var(--muted); font-weight: 600; }

/* ---- 垂直图文详情长图 ---- */
.detail-long { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.detail-long-title { font-size: 17px; font-weight: 700; margin: 0 0 16px; color: var(--ink); position: relative; padding-left: 12px; }
.detail-long-title::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 3px; background: var(--primary); }
.detail-long-img { display: block; width: 100%; max-width: 800px; margin: 0 auto 10px; height: auto; border-radius: 10px; background: var(--bg-2); }

/* ---- 购物车 / 订货单 UI ---- */
.cart-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--primary); cursor: pointer; display: grid; place-items: center; flex: none; }
.cart-btn:hover { border-color: var(--primary); }
.cart-btn svg { width: 20px; height: 20px; }
.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center; }
.order-bar { position: fixed; left: 50%; transform: translateX(-50%) translateY(160%); bottom: 22px; z-index: 90; background: #0f1b3d; color: #fff; border-radius: 999px; padding: 10px 12px 10px 22px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow-lg); transition: transform .3s; }
.order-bar.show { transform: translateX(-50%) translateY(0); }
.order-bar .ob-text { font-size: 14px; font-weight: 600; }
.order-bar .ob-btn { padding: 9px 18px; font-size: 14px; }
.modal-mask { position: fixed; inset: 0; background: rgba(15,27,61,.5); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; }
.modal-close { border: none; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: space-between; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--line); }
.cart-empty { text-align: center; color: var(--muted); padding: 30px 0; }
.cart-list { list-style: none; display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ci-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; }
.ci-thumb svg { width: 100%; height: 100%; }
.ci-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-name { font-size: 14.5px; font-weight: 600; }
.ci-price { font-size: 13px; color: var(--muted); }
.ci-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.ci-qty .step { width: 30px; height: 32px; border: none; background: var(--bg-2); cursor: pointer; font-size: 16px; }
.ci-qty input { width: 46px; border: none; text-align: center; font-size: 14px; font-weight: 600; }
.ci-qty input:focus { outline: none; }
.ci-remove { border: none; background: none; color: var(--muted); font-size: 12.5px; cursor: pointer; text-decoration: underline; }
.cart-contact { margin-top: 18px; background: var(--bg); border-radius: 12px; padding: 16px; }
.cc-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.cc-grid { display: grid; gap: 10px; }
.cc-grid input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; }
.cc-grid input:focus { outline: none; border-color: var(--primary); }
.cc-hint { font-size: 12.5px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

/* 订货成功面板：渠道选择（WhatsApp / 微信群） */
.order-preview { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.order-preview pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 13px; line-height: 1.7; color: var(--text); }
.ch-hint { font-size: 13.5px; color: var(--muted); margin: 4px 0 12px; }
.ch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ch-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); }
.ch-card .ch-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .5px; }
.ch-wa { background: #25D366; }
.ch-wx { background: #1aad19; }
.ch-text b { font-size: 14.5px; display: block; margin-bottom: 3px; }
.ch-text p { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin: 0; }
.ch-card .btn { margin-top: auto; justify-content: center; }
.ch-warn { font-size: 12.5px; color: #c0392b; margin: 0; }
.wx-box { display: flex; flex-direction: column; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.wx-box img { width: 150px; height: 180px; object-fit: contain; border-radius: 6px; }
.wx-box span { font-size: 11.5px; color: var(--muted); text-align: center; }

@media (max-width: 720px) {
  .ch-grid { grid-template-columns: 1fr; }
}
.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(20px); background: #0f1b3d; color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .3s; z-index: 300; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 980px) {
  .catalog { grid-template-columns: 1fr; }
  .cat-sidebar { position: static; display: flex; gap: 8px; overflow-x: auto; padding: 10px; }
  .cat-link { white-space: nowrap; width: auto; }
  .detail { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .p-actions .btn { flex: 1; }
  .cart-item { grid-template-columns: 48px 1fr auto; row-gap: 8px; }
  .ci-qty { grid-column: 2; }
  .modal-foot { flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; justify-content: center; }
}
