/* ============ 斯托科卫浴官网 · 全站样式 ============ */
:root {
  --ink: #16283c;
  --ink-soft: #4a5a6a;
  --muted: #8395a5;
  --accent: #b98a3c;
  --accent-dark: #96702c;
  --line: #e4e9ee;
  --bg-soft: #f5f7f9;
  --white: #ffffff;
  --danger: #c0392b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 40, 60, 0.08);
  font-size: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { line-height: 1.25; }
.brand-name { font-size: 1.15rem; font-weight: 700; letter-spacing: 1px; }
.brand-sub { font-size: 0.72rem; color: var(--muted); letter-spacing: 3px; }
.main-nav { display: flex; gap: 34px; align-items: center; }
.main-nav a {
  font-size: 0.98rem; color: var(--ink-soft); padding: 6px 2px;
  border-bottom: 2px solid transparent; transition: all 0.2s;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.header-auth { display: flex; align-items: center; gap: 14px; }
.nav-user { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; color: var(--ink);
  max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #2e9e5b; flex: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; border: none;
  font-size: 0.98rem; font-weight: 600; transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-link { background: none; border: none; color: var(--accent-dark); font-size: 0.88rem; padding: 4px 8px; }
.btn-link.danger { color: var(--danger); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #16283c 0%, #1f3b57 55%, #2a4a68 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero-inner { padding: 110px 0 130px; position: relative; z-index: 2; }
.hero-tag {
  display: inline-block; font-size: 0.82rem; letter-spacing: 4px;
  border: 1px solid rgba(255,255,255,0.35); border-radius: 999px;
  padding: 6px 18px; margin-bottom: 26px; color: #d8e2ec;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.3; font-weight: 700; letter-spacing: 2px; }
.hero h1 em { font-style: normal; color: #e6c988; }
.hero p { margin-top: 22px; font-size: 1.08rem; color: #c3d0dc; max-width: 620px; }
.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-deco { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); opacity: 0.16; z-index: 1; }

/* ---------- 通用 section ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 54px; }
.section-head .kicker {
  font-size: 0.8rem; letter-spacing: 4px; color: var(--accent); font-weight: 700;
  text-transform: uppercase; display: block; margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: 2px; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } .main-nav { display: none; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 28px; transition: all 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.12rem; margin: 18px 0 10px; }
.card p { color: var(--ink-soft); font-size: 0.94rem; }
.icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, #f4ecdd, #fdf9f0);
  display: flex; align-items: center; justify-content: center;
}
.icon-wrap svg { width: 30px; height: 30px; stroke: var(--accent-dark); }

/* 数字统计 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; text-align: center; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-num { font-size: 2.2rem; font-weight: 700; color: var(--accent-dark); }
.stat-label { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* CTA 横幅 */
.cta-band {
  background: linear-gradient(120deg, #16283c, #2a4a68);
  color: #fff; border-radius: 20px; padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.5rem; letter-spacing: 1px; }
.cta-band p { color: #c3d0dc; margin-top: 8px; }

/* ---------- 产品 ---------- */
.filter-tabs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.filter-tabs button {
  padding: 9px 24px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink-soft); font-size: 0.94rem; transition: all 0.2s;
}
.filter-tabs button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-visual {
  height: 190px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #f7f9fb, #eef2f6);
}
.product-visual svg { width: 96px; height: 96px; stroke: var(--ink); }
.product-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 0.76rem; color: var(--accent-dark); letter-spacing: 2px; font-weight: 700; }
.product-body h3 { font-size: 1.05rem; margin: 8px 0 6px; }
.product-spec { font-size: 0.84rem; color: var(--muted); }
.product-body p.desc { font-size: 0.9rem; color: var(--ink-soft); margin-top: 10px; flex: 1; }

/* ---------- 关于页 ---------- */
.page-hero {
  background: linear-gradient(135deg, #16283c 0%, #2a4a68 100%);
  color: #fff; padding: 72px 0; text-align: center;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: 3px; }
.page-hero p { color: #c3d0dc; margin-top: 12px; }
.prose { max-width: 780px; margin: 0 auto; color: var(--ink-soft); font-size: 1.02rem; }
.prose p + p { margin-top: 16px; }
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 28px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before {
  content: ""; position: absolute; left: -28px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
}
.timeline-year { font-weight: 700; color: var(--accent-dark); }
.timeline-item p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 4px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px dashed var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item .label { font-weight: 700; font-size: 0.95rem; }
.contact-item .value { color: var(--ink-soft); font-size: 0.95rem; margin-top: 2px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; }
.field label span.req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fbfcfd; transition: border 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; }

/* ---------- 会员中心 ---------- */
.account-wrap { max-width: 860px; margin: 0 auto; }
.account-head {
  display: flex; align-items: center; gap: 18px; padding: 30px 34px;
  background: linear-gradient(120deg, #16283c, #2a4a68); color: #fff;
  border-radius: 18px; margin-bottom: 34px;
}
.avatar {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: #e6c988; flex: none;
}
.account-head .who { flex: 1; min-width: 0; }
.account-head .who .name { font-size: 1.2rem; font-weight: 700; word-break: break-all; }
.account-head .who .sub { color: #c3d0dc; font-size: 0.85rem; margin-top: 4px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-bottom: 28px; }
.panel h2 { font-size: 1.15rem; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.record { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.record .record-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.record .record-title { font-weight: 700; font-size: 0.98rem; }
.record .record-time { color: var(--muted); font-size: 0.82rem; }
.record .record-body { color: var(--ink-soft); font-size: 0.9rem; margin-top: 8px; white-space: pre-wrap; }
.record .record-meta { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.file-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.file-thumb { height: 120px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-thumb svg { width: 44px; height: 44px; stroke: var(--muted); }
.file-item .file-name {
  padding: 10px 12px; font-size: 0.78rem; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.file-item .file-actions { display: flex; justify-content: space-between; padding: 0 8px 10px; }
.empty-tip { color: var(--muted); font-size: 0.92rem; text-align: center; padding: 26px 0; }
.upload-zone {
  border: 2px dashed var(--line); border-radius: 12px; padding: 30px;
  text-align: center; color: var(--muted); cursor: pointer; transition: all 0.2s; margin-bottom: 22px;
}
.upload-zone:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- 登录弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 26, 38, 0.55);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px;
}
.modal-mask.open { display: flex; }
.modal {
  background: #fff; border-radius: 18px; width: 400px; max-width: 100%;
  padding: 38px 34px 30px; position: relative; animation: pop 0.25s ease;
}
@keyframes pop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  font-size: 1.4rem; color: var(--muted); line-height: 1;
}
.modal h3 { font-size: 1.3rem; text-align: center; letter-spacing: 2px; }
.modal .modal-sub { text-align: center; color: var(--muted); font-size: 0.88rem; margin: 8px 0 24px; }
.otp-row { display: flex; gap: 10px; }
.otp-row input { flex: 1; }
.otp-row .send-btn {
  flex: none; width: 118px; border-radius: 10px; border: 1.5px solid var(--accent);
  background: #fdf9f0; color: var(--accent-dark); font-size: 0.85rem; font-weight: 600;
}
.otp-row .send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-error { color: var(--danger); font-size: 0.85rem; min-height: 1.4em; margin: 4px 0 10px; text-align: center; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.8rem; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.wechat-btn {
  width: 100%; padding: 12px; border-radius: 999px; border: 1.5px solid #2aae67;
  background: #f2fbf6; color: #1d8a4e; font-weight: 600; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.wechat-btn:hover { background: #e7f7ee; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 34px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 26px; border-radius: 999px;
  font-size: 0.92rem; opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 300;
  max-width: 86vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--danger); }

/* ---------- 页脚 ---------- */
.site-footer { background: #101d2b; color: #9fb0c0; margin-top: 90px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 64px 0 44px; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.98rem; margin-bottom: 18px; letter-spacing: 1px; }
.site-footer a:hover { color: #e6c988; }
.site-footer li { list-style: none; margin-bottom: 10px; font-size: 0.9rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 0.88rem; margin-top: 14px; line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0;
  text-align: center; font-size: 0.8rem; color: #6d7f90;
}

/* ============ 后台管理页 ============ */
.admin-wrap { max-width: 1040px; margin: 0 auto; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 30px; }
@media (max-width: 600px) { .admin-stats { grid-template-columns: 1fr; } }
.admin-stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px;
}
.admin-stat .num { font-size: 1.9rem; font-weight: 700; color: var(--ink); }
.admin-stat .lbl { color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
.admin-stat.warn .num { color: var(--accent-dark); }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.tabs button {
  background: none; border: none; padding: 12px 20px; font-size: 0.98rem;
  color: var(--ink-soft); border-bottom: 2px solid transparent; font-weight: 600;
}
.tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar h2 { font-size: 1.1rem; }

.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table th, .data-table td {
  text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line);
  font-size: 0.9rem; vertical-align: middle;
}
.data-table th { color: var(--muted); font-weight: 600; font-size: 0.82rem; background: #fbfcfd; }
.data-table tr:hover td { background: #fbfcfd; }
.thumb-sm {
  width: 58px; height: 58px; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--line); background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.thumb-sm svg { width: 30px; height: 30px; stroke: var(--muted); }
.row-actions { display: flex; gap: 4px; flex-wrap: wrap; }

.badge { font-size: 0.74rem; padding: 2px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.badge-ok { background: #e8f6ee; color: #1d8a4e; }
.badge-warn { background: #fdf3e2; color: #a97a1c; }
.badge-off { background: #f0f2f4; color: var(--muted); }

.editor {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; margin-bottom: 26px; box-shadow: var(--shadow);
}
.editor h3 { font-size: 1.05rem; margin-bottom: 20px; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .editor-grid { grid-template-columns: 1fr; } }
.image-picker { display: flex; gap: 18px; align-items: flex-start; }
.image-preview {
  width: 150px; height: 150px; border-radius: 12px; border: 1px dashed var(--line);
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex: none; color: var(--muted); font-size: 0.8rem; text-align: center;
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.switch-row { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; }
.switch-row input { width: 18px; height: 18px; }
.editor-actions { display: flex; gap: 12px; margin-top: 24px; }
.admin-deny { text-align: center; padding: 46px 30px; }
.uid-box {
  display: inline-flex; align-items: center; gap: 10px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px;
  font-family: Menlo, Consolas, monospace; font-size: 0.9rem; margin: 14px 0;
  word-break: break-all;
}
.inq-card { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 14px; background: #fff; }
.inq-card.done { background: #fbfcfd; }
.inq-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.inq-name { font-weight: 700; }
.inq-body { color: var(--ink-soft); font-size: 0.92rem; margin-top: 10px; white-space: pre-wrap; }
.inq-meta { color: var(--muted); font-size: 0.84rem; margin-top: 10px; display: flex; gap: 16px; flex-wrap: wrap; }
.inq-actions { margin-top: 12px; display: flex; gap: 8px; }

/* 产品图片（后台统一压缩后存储）：完整缩放显示产品，不裁切 */
.product-visual img { width: 100%; height: 100%; object-fit: contain; padding: 14px; box-sizing: border-box; }
.product-visual { background: linear-gradient(160deg, #f7f9fb, #eef2f6); }

/* ============ 分类管理 ============ */
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.panel-head h3 { font-size: 1.05rem; }
.cat-add { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.cat-add input {
  flex: 1; min-width: 220px; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 0.95rem; background: #fff; color: var(--ink); font-family: inherit;
}
.cat-add input:focus { outline: none; border-color: var(--accent); }
.cat-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fbfcfd;
}
.cat-row .cat-name { font-weight: 600; flex: 1; }
.cat-row .cat-count { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.cat-note { color: var(--muted); font-size: 0.84rem; margin-top: 6px; }

/* ============ 前台：三级分类筛选 ============ */
.filter-tabs { flex-direction: column; align-items: center; gap: 12px; }
.filter-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.filter-row.sub button { padding: 7px 18px; font-size: 0.86rem; }
.filter-row.sub button.active { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* ============ 后台：分类树 ============ */
.cat-add select.cat-parent {
  min-width: 200px; max-width: 320px; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 0.92rem; background: #fff; color: var(--ink); font-family: inherit;
}
.cat-add select.cat-parent:focus { outline: none; border-color: var(--accent); }
.cat-row { flex-wrap: wrap; }
.cat-row.cat-lv-2 { margin-left: 26px; background: #fff; }
.cat-row.cat-lv-3 { margin-left: 52px; background: #fff; }
.cat-lv-tag {
  font-size: 0.72rem; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: #eef2f6; color: var(--muted); white-space: nowrap;
}
.cat-lv-tag.lv-1 { background: var(--ink); color: #fff; }
.cat-lv-tag.lv-2 { background: #e6edf7; color: #33517a; }
.cat-lv-tag.lv-3 { background: #f0f2f4; color: var(--muted); }
.cat-acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) {
  .cat-row.cat-lv-2 { margin-left: 14px; }
  .cat-row.cat-lv-3 { margin-left: 28px; }
}

/* ============ 产品详情页 ============ */
a.product-card { color: inherit; text-decoration: none; display: block; transition: transform .2s ease, box-shadow .2s ease; }
a.product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15, 30, 50, .10); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 44px; align-items: start; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; gap: 26px; } }
.detail-visual {
  border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, #f7f9fb, #eef2f6);
  border: 1px solid var(--line); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
}
.detail-visual img { width: 100%; height: 100%; object-fit: contain; padding: 26px; box-sizing: border-box; }
.detail-visual svg { width: 130px; height: 130px; stroke: var(--muted); }
.detail-info .product-cat { margin-bottom: 8px; display: inline-block; }
.detail-info h1 { font-size: 1.7rem; margin: 6px 0 10px; }
.detail-spec { color: var(--muted); font-size: 0.95rem; }
.detail-desc { color: var(--ink-soft); line-height: 1.9; margin-top: 18px; white-space: pre-wrap; }
.detail-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent-dark); }

/* 带产品图的卡片用纯白底，与照片白底无缝融合 */
.product-visual.has-img, .detail-visual.has-img { background: #fff; }
