:root {
  --brand: #F9B233;        /* 取自 LOGO 黄 */
  --brand-dark: #E09A18;
  --ink: #17181A;          /* 取自 LOGO 黑 */
  --ink-2: #2B2D31;
  --bg: #F7F7F5;
  --card: #FFFFFF;
  --line: #E8E6E1;
  --muted: #6B6E75;
  --wa: #25D366;           /* WhatsApp 官方绿 */
  --wa-dark: #1DA851;
  --wx: #07C160;           /* 微信官方绿 */
  --radius: 14px;
  --shadow: 0 6px 24px rgba(23, 24, 26, .08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23,24,26,.96); color: #fff;
  backdrop-filter: blur(8px);
}
.nav {
  max-width: 1200px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 44px; height: 44px; border-radius: 10px; background: var(--brand);
  padding: 3px; object-fit: contain;
}
.brand .name { font-weight: 800; font-size: 20px; letter-spacing: 2px; }
.brand .sub { font-size: 11px; color: var(--brand); letter-spacing: 3px; }
.nav .spacer { flex: 1; }
.nav a.navlink { opacity: .85; font-size: 14px; padding: 6px 4px; }
.nav a.navlink:hover { opacity: 1; color: var(--brand); }

/* lang switch */
.lang-switch {
  display: flex; border: 1px solid #3a3c40; border-radius: 8px; overflow: hidden;
}
.lang-switch button {
  background: transparent; color: #cfd1d5; border: 0; padding: 5px 12px; font-size: 13px;
}
.lang-switch button.active { background: var(--brand); color: var(--ink); font-weight: 700; }

/* inquiry cart button */
#inqBtn {
  position: relative; background: var(--brand); color: var(--ink);
  border: 0; border-radius: 10px; padding: 8px 16px; font-weight: 700; font-size: 14px;
}
#inqBtn:hover { background: var(--brand-dark); }
#inqCount {
  position: absolute; top: -7px; right: -7px; min-width: 19px; height: 19px;
  background: #e5484d; color: #fff; border-radius: 10px; font-size: 11px;
  display: none; align-items: center; justify-content: center; padding: 0 5px; font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--ink) 55%, #33353a);
  color: #fff; padding: 72px 20px 84px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border: 40px solid rgba(249,178,51,.14); border-radius: 50%;
}
.hero::before {
  content: ""; position: absolute; right: 60px; bottom: -160px; width: 300px; height: 300px;
  border: 28px solid rgba(249,178,51,.10); transform: rotate(45deg);
}
.hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { font-size: 40px; letter-spacing: 1px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { margin-top: 14px; max-width: 560px; color: #c9cbd0; }
.hero .tags { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero .tags span {
  border: 1px solid rgba(249,178,51,.5); color: var(--brand);
  padding: 5px 14px; border-radius: 999px; font-size: 13px;
}

/* ---------- Layout ---------- */
main { max-width: 1200px; margin: -40px auto 0; padding: 0 20px 80px; position: relative; z-index: 2; }
.catalog { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }

/* sidebar */
.side {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; position: sticky; top: 88px;
}
.side h3 { font-size: 13px; color: var(--muted); letter-spacing: 2px; margin-bottom: 10px; text-transform: uppercase; }
.cat-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: 0; background: transparent; border-radius: 10px;
  font-size: 14px; color: var(--ink); text-align: left;
}
.cat-item:hover { background: #F5EEDC; }
.cat-item.active { background: var(--brand); font-weight: 700; }
.cat-item .cnt { margin-left: auto; font-size: 12px; color: var(--muted); }
.cat-item.active .cnt { color: var(--ink); }

/* toolbar */
.toolbar {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap;
}
#search {
  flex: 1; min-width: 200px; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 14px; font-size: 14px; outline: none; background: var(--bg);
}
#search:focus { border-color: var(--brand); }
#sortSel {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
  font-size: 14px; background: var(--bg); outline: none;
}
#resultInfo { font-size: 13px; color: var(--muted); }

/* grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; cursor: pointer; transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(23,24,26,.14); }
.card .thumb {
  height: 160px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #26282c, #17181A); position: relative; font-size: 52px;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .badge {
  position: absolute; top: 10px; left: 10px; background: var(--brand); color: var(--ink);
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; letter-spacing: 1px;
}
.card .body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.card .sku { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.card h4 { font-size: 15px; margin: 4px 0 2px; }
.card .fit { font-size: 12px; color: var(--muted); }
.card .row { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px; }
.btn-inq {
  margin-left: auto; background: var(--ink); color: var(--brand); border: 0;
  border-radius: 8px; padding: 7px 14px; font-size: 12px; font-weight: 700;
}
.btn-inq:hover { background: #000; }

.empty {
  grid-column: 1 / -1; text-align: center; color: var(--muted);
  padding: 60px 0; background: var(--card); border-radius: var(--radius);
}

/* ---------- Modal ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 90;
  display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto;
}
.modal-mask.open { display: flex; }
.modal {
  background: var(--card); border-radius: 18px; max-width: 860px; width: 100%;
  overflow: hidden; animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.modal .head {
  background: linear-gradient(135deg, var(--ink), #2b2d31); color: #fff;
  padding: 22px 26px; display: flex; align-items: center; gap: 14px;
}
.modal .head .m-img { width: 60px; height: 60px; border-radius: 12px; background: var(--brand); display:flex;align-items:center;justify-content:center; font-size: 30px; overflow: hidden; }
.modal .head h3 { font-size: 20px; }
.modal .head .sku { font-size: 12px; color: var(--brand); letter-spacing: 1px; }
.modal .close {
  margin-left: auto; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 34px; height: 34px; border-radius: 50%; font-size: 18px;
}
.modal .close:hover { background: var(--brand); color: var(--ink); }
.modal .m-body { padding: 24px 26px 28px; }
.modal .fit-chip {
  display: inline-block; background: #F5EEDC; color: #8a6a12;
  padding: 4px 12px; border-radius: 999px; font-size: 12px; margin-bottom: 16px;
}
table.specs { width: 100%; border-collapse: collapse; margin: 14px 0 18px; }
table.specs th, table.specs td { border: 1px solid var(--line); padding: 10px 14px; font-size: 14px; text-align: left; }
table.specs th { background: var(--bg); width: 40%; color: var(--muted); font-weight: 600; }
.m-actions { display: flex; gap: 10px; }
.btn-primary {
  background: var(--brand); color: var(--ink); border: 0; border-radius: 10px;
  padding: 11px 22px; font-weight: 700; font-size: 14px;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost {
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 22px; font-size: 14px;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa {
  background: var(--wa); color: #fff; border: 0; border-radius: 10px;
  padding: 11px 22px; font-weight: 700; font-size: 14px;
}
.btn-wa:hover { background: var(--wa-dark); }

/* 卡片上的 WhatsApp 询问小按钮 */
.btn-wa-sm {
  background: var(--wa); color: #fff; border: 0; border-radius: 8px;
  padding: 7px 12px; font-size: 12px; font-weight: 700; text-decoration: none;
  display: inline-block; white-space: nowrap;
}
.btn-wa-sm:hover { background: var(--wa-dark); }

/* ---------- WhatsApp 询价弹窗（产品卡片 / 详情页 WhatsApp 按钮触发） ---------- */
.wa-inq-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 120;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.wa-inq-mask.open { display: flex; }
.wa-inq {
  position: relative; width: 300px; max-width: 100%; background: var(--card);
  border-radius: 14px; padding: 20px 18px 16px; text-align: center;
  box-shadow: 0 14px 40px rgba(23,24,26,.28); animation: pop .2s ease;
}
.wa-inq-close {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px;
  border: 0; border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 15px;
}
.wa-inq-close:hover { background: var(--line); color: var(--ink); }
.wa-inq-t { font-size: 15px; font-weight: 800; color: var(--wa-dark); margin-bottom: 4px; }
.wa-inq-p { font-size: 12px; color: var(--muted); margin-bottom: 12px; word-break: break-word; }
.wa-inq-qr {
  display: block; width: 168px; margin: 0 auto 10px; padding: 8px;
  background: #F5F5F3; border-radius: 10px; transition: transform .15s;
}
.wa-inq-qr:hover { transform: scale(1.03); }
.wa-inq-qr img { width: 100%; display: block; border-radius: 6px; background: #fff; }
.wa-inq .wx-row { margin-bottom: 8px; }
.wa-inq .wx-row em { color: var(--wa-dark); }
.wa-inq .wa-chat { margin-bottom: 8px; }
/* 微信 / QQ 内置浏览器提示 */
.wa-tip { font-size: 13px; line-height: 1.75; color: var(--ink-2); text-align: left; margin-bottom: 12px; }
.wa-tip b { color: var(--wa-dark); }
.wa-tip-or { font-size: 12px; color: var(--muted); text-align: left; margin-bottom: 4px; }

/* ---------- 右下角悬浮联系按钮（微信 + WhatsApp） ---------- */
.float-contact {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.float-wrap { position: relative; display: flex; align-items: center; }
.float-btn {
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(23,24,26,.22);
  transition: transform .15s, filter .15s;
}
.float-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.float-btn svg { width: 28px; height: 28px; display: block; }
.float-btn.wx { background: var(--wx); }
.float-btn.wa { background: var(--wa); }
.float-lbl {
  position: absolute; right: 64px; white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: 8px; opacity: 0; pointer-events: none;
  transition: opacity .15s;
}
.float-wrap:hover .float-lbl { opacity: 1; }

/* 微信 / WhatsApp 弹出面板 */
.wx-pop {
  display: none; width: 276px; background: var(--card); color: var(--ink);
  border-radius: 12px; padding: 14px; box-shadow: 0 10px 30px rgba(23,24,26,.2);
  border: 1px solid var(--line);
  position: absolute; right: 0; bottom: 132px;
}
.wa-pop { width: 220px; }
.wx-pop.open { display: block; }
.wx-pop-t { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.wx-qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.wx-qr-card {
  background: #F5F5F3; border-radius: 8px; padding: 8px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.wx-qr-card img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  border-radius: 6px; background: #fff; cursor: zoom-in;
  transition: transform .15s;
}
.wx-qr-card img:hover { transform: scale(1.03); }
.wx-qr-card b { font-size: 13px; margin: 6px 0 2px; }
/* WhatsApp 单码面板 */
.wa-qr-card {
  display: flex; flex-direction: column; align-items: center;
  background: #F5F5F3; border-radius: 8px; padding: 8px 8px 4px; margin-bottom: 8px;
}
.wa-qr-card img {
  width: 132px; height: 132px; object-fit: cover; display: block;
  border-radius: 6px; background: #fff; transition: transform .15s;
}
.wa-qr-card img:hover { transform: scale(1.03); }
/* WhatsApp「立即聊天」主行动按钮 */
.wa-chat {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  background: linear-gradient(135deg, #25D366 0%, #12A24A 100%);
  color: #fff; border-radius: 12px; padding: 11px 12px; margin-bottom: 8px;
  box-shadow: 0 6px 18px rgba(18,162,74,.35);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.wa-chat::after {                       /* 掠光，吸引注意力 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 32%, rgba(255,255,255,.3) 50%, transparent 68%);
  transform: translateX(-130%); animation: waShine 3.8s ease-in-out infinite;
}
@keyframes waShine { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.wa-chat:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(18,162,74,.45); filter: brightness(1.05); }
.wa-chat:active { transform: translateY(0); }
.wa-chat-ico { width: 25px; height: 25px; flex: 0 0 25px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.2)); }
.wa-chat-txt { flex: 1; text-align: left; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.wa-chat-txt b { font-size: 14px; font-weight: 800; letter-spacing: .5px; }
.wa-chat-txt em { font-style: normal; font-size: 11px; opacity: .88; }
.wa-chat-arrow { font-size: 20px; line-height: 1; opacity: .9; animation: waNudge 1.6s ease-in-out infinite; }
@keyframes waNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }

/* 即将发送的询价内容预览 */
.wa-send-label { font-size: 11px; color: var(--muted); margin-bottom: 4px; letter-spacing: .5px; }
.wa-msg {
  background: #F5F5F3; border: 1px dashed var(--line); border-radius: 8px;
  padding: 8px 10px; font-size: 11px; line-height: 1.55; color: #4a4d52;
  text-align: left; margin-bottom: 10px; max-height: 66px; overflow: auto; word-break: break-word;
}
.wx-row {
  width: 100%; display: flex; align-items: center; gap: 6px; cursor: pointer;
  background: transparent; border: 0; border-radius: 6px; padding: 3px 2px;
  font-size: 12px; font-family: inherit; text-align: center; justify-content: center;
}
.wx-row:hover { background: #ECEAE6; }
.wx-row span { color: var(--muted); }
.wx-row em { font-style: normal; color: var(--wx); font-weight: 700; font-size: 12px; }
.wx-pop-hint { font-size: 12px; color: var(--muted); line-height: 1.5; }

@media (max-width: 640px) {
  .float-contact { right: 14px; bottom: 14px; gap: 10px; }
  .float-btn { width: 48px; height: 48px; }
  .float-btn svg { width: 25px; height: 25px; }
  .float-lbl { display: none; }
  .wx-pop { bottom: 118px; }
  .wa-pop { width: 200px; }
}

/* ---------- Inquiry drawer ---------- */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 95; display: none;
}
.drawer-mask.open { display: block; }
.drawer {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 94vw; height: 100%;
  background: var(--card); z-index: 100; transition: right .25s ease;
  display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,.2);
}
.drawer.open { right: 0; }
.drawer .d-head {
  background: var(--ink); color: #fff; padding: 18px 20px;
  display: flex; align-items: center; font-weight: 700;
}
.drawer .d-head button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 20px; }
.drawer .d-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.inq-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px;
}
.inq-item .rm { margin-left: auto; border: 0; background: none; color: #e5484d; font-size: 16px; }
.inq-empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }
.drawer form { padding: 16px 20px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer form label { font-size: 13px; color: var(--muted); }
.drawer form input, .drawer form textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; outline: none; width: 100%;
}
.drawer form input:focus, .drawer form textarea:focus { border-color: var(--brand); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #9a9da3; padding: 36px 20px; font-size: 13px; }
.foot-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 30px; flex-wrap: wrap; }
.foot-inner strong { color: var(--brand); font-size: 15px; letter-spacing: 2px; display: block; margin-bottom: 8px; }
footer .copy { text-align: center; margin-top: 24px; color: #5c5f65; }
footer .tel { display: inline-block; margin-bottom: 4px; color: #cfd1d5; transition: color .15s; }
footer .tel:hover { color: var(--brand); }
footer em[data-i18n="wechat_same"] { font-style: normal; font-size: 12px; color: #8d9198; margin-left: 4px; }
footer .wa {
  display: inline-flex; align-items: center; gap: 7px; background: #25D366; color: #0b2a14;
  font-weight: 800; padding: 7px 15px; border-radius: 999px; font-size: 14px; transition: filter .15s;
}
footer .wa:hover { color: #0b2a14; filter: brightness(1.1); }
footer .wa-hint { display: block; font-size: 12px; color: #7e8288; margin-top: 6px; }
footer .addr { display: block; line-height: 1.75; max-width: 290px; }
.wa-qr {
  display: block; width: 116px; margin-top: 12px; padding: 6px;
  background: #fff; border-radius: 12px; transition: transform .15s;
}
.wa-qr:hover { transform: scale(1.04); }
.wa-qr img { width: 100%; border-radius: 7px; display: block; }

/* toast */
#toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: var(--brand); padding: 11px 22px; border-radius: 999px;
  font-size: 14px; z-index: 200; opacity: 0; transition: all .3s; pointer-events: none;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 860px) {
  .catalog { grid-template-columns: 1fr; }
  .side { position: static; }
  .hero h1 { font-size: 28px; }
  .nav .sub, .nav a.navlink { display: none; }
}

/* ---------- 关于我们：真实卖点列表 ---------- */
.about-points { list-style: none; margin: 16px 0 0; padding: 0; }
.about-points li { position: relative; padding-left: 24px; margin-top: 10px; line-height: 1.75; }
.about-points li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: #C8901F; font-weight: 800; }

/* ---------- 无 JavaScript / 搜索引擎兜底内容（正常浏览不显示） ---------- */
.seo-fallback { max-width: 1100px; margin: 36px auto; padding: 0 20px; line-height: 1.9; color: #333; }
.seo-fallback h2 { font-size: 20px; margin-bottom: 10px; }
.seo-fallback h3 { font-size: 15px; margin: 18px 0 6px; color: #A8781A; }
.seo-fallback ul { padding-left: 20px; }
