/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  --bg: #f5f6f7;
  --card: #ffffff;
  --dark: #14181d;
  --dark-2: #1d232b;
  --text: #22262b;
  --muted: #7a828c;
  --accent: #ff6a00;
  --accent-2: #ff8f3c;
  --line: #e8eaed;
  --radius: 12px;
}
body { font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; }
.container { width: min(1200px, 92%); margin: 0 auto; }
.full { width: 100%; }

.btn-primary {
  display: inline-block; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; padding: 10px 26px; border-radius: 8px; font-size: 15px; font-weight: 600;
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 106, 0, .35); }
.btn-ghost {
  border: 1px solid var(--line); background: #fff; color: var(--text);
  padding: 8px 18px; border-radius: 8px; font-size: 14px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============ 顶部栏 ============ */
.topbar { background: var(--dark); color: #b8bfc7; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-left span + span { margin-left: 14px; color: #ffd9bd; }
.topbar-right a { margin-left: 18px; }
.topbar-right a:hover { color: #fff; }

/* ============ 主导航 ============ */
.navbar { background: #fff; box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 50; }
.navbar-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-mark { color: var(--accent); font-size: 24px; flex: none; }
.logo-text { font-size: 22px; font-weight: 800; letter-spacing: 1px; display: flex; flex-direction: column; line-height: 1; }
.logo-text em { font-style: normal; font-size: 10px; color: var(--muted); letter-spacing: 3px; margin-top: 3px; }
.search-box { flex: 1; display: flex; max-width: 460px; border: 2px solid var(--accent); border-radius: 8px; overflow: hidden; }
.search-box input { flex: 1; border: none; outline: none; padding: 9px 14px; font-size: 14px; }
.search-box button { background: var(--accent); color: #fff; padding: 0 24px; font-size: 14px; }
.nav-actions { display: flex; gap: 12px; margin-left: auto; align-items: center; }
.btn-cart { position: relative; background: #fff3ea; color: var(--accent); padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.cart-count {
  position: absolute; top: -7px; right: -7px; background: #ff6a00; color: #fff;
  font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; line-height: 18px; padding: 0 4px;
}
.nav-cats { display: flex; gap: 26px; height: 40px; align-items: center; font-size: 14px; }
.nav-cats a { color: #4a5158; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav-cats a:hover, .nav-cats a.active { color: var(--accent); border-color: var(--accent); }

/* ============ 轮播图 ============ */
.carousel { position: relative; height: 420px; overflow: hidden; background: var(--dark); }
.carousel-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.slide { min-width: 100%; height: 100%; position: relative; overflow: hidden; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10,12,15,.82) 0%, rgba(10,12,15,.45) 45%, transparent 75%);
}
.slide-content { position: absolute; left: 8%; top: 50%; transform: translateY(-50%); color: #fff; max-width: 480px; z-index: 2; }
.slide-content h1, .slide-content h2 { font-size: 40px; letter-spacing: 2px; margin-bottom: 14px; text-shadow: 0 2px 10px rgba(0,0,0,.5); font-weight: 700; }
.slide-content p { font-size: 16px; color: #cfd6dd; margin-bottom: 26px; line-height: 1.7; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1;
  backdrop-filter: blur(4px); transition: background .2s; z-index: 5;
}
.carousel-arrow:hover { background: rgba(255,255,255,.3); }
.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }
.carousel-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.carousel-dots button { width: 26px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.4); transition: background .2s, width .2s; }
.carousel-dots button.active { background: var(--accent); width: 38px; }

/* ============ 服务保障条 ============ */
html, body { overflow-x: hidden; }
.service-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: -36px; position: relative; z-index: 10;
}
.service-item {
  background: #fff; border-radius: var(--radius); padding: 16px 20px;
  display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 24px rgba(20,24,29,.08);
}
.si-icon { display: inline-flex; flex: none; }
.si-icon svg { width: 28px; height: 28px; }
.service-item b { display: block; font-size: 15px; }
.service-item small { color: var(--muted); font-size: 12px; }

/* ============ 通用 section ============ */
.section { padding: 56px 0 10px; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: 26px; letter-spacing: 1px; position: relative; padding-left: 14px; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; border-radius: 3px; background: var(--accent); }
.section-head p { color: var(--muted); font-size: 14px; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: #aab2ba; }

/* ============ 分类 ============ */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(20,24,29,.06);
  transition: transform .2s, box-shadow .2s; display: block;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(20,24,29,.12); }
.cat-card img { width: 100%; height: 160px; object-fit: cover; }
.cat-body { padding: 14px 16px 16px; }
.cat-body b { font-size: 16px; display: block; margin-bottom: 4px; }
.cat-body span { color: var(--muted); font-size: 13px; }

/* ============ 促销活动 ============ */
.promo { background: var(--dark); padding: 56px 0 64px; margin-top: 56px; }
.promo .section-head { margin-bottom: 30px; }
.countdown { margin-left: auto; color: #8a929b; font-size: 12.5px; display: flex; align-items: center; gap: 4px; }
.countdown b {
  background: transparent; color: #ff8a33; border-radius: 0; padding: 0 2px;
  font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; min-width: 0; text-align: center; display: inline-block;
}
.perf-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.factory-item img { background: #e9ecef; }
.promo-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.promo-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--dark-2);
  transition: transform .2s;
}
.promo-card:hover { transform: translateY(-4px); }
.promo-card img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; opacity: .55; }
.promo-card.big img { min-height: 458px; }
.promo-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; }
.promo-text h3 { font-size: 20px; margin-bottom: 6px; }
.promo-text p { font-size: 13px; color: #c3cad2; }
.promo-tag {
  display: inline-block; margin-top: 12px; background: var(--accent); color: #fff;
  padding: 6px 16px; border-radius: 20px; font-size: 13px;
}

/* ============ 商品网格 ============ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 10px rgba(20,24,29,.06); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(20,24,29,.12); }
.product-thumb { position: relative; }
.product-thumb img { width: 100%; height: 200px; object-fit: cover; }
.product-badge {
  position: absolute; top: 10px; left: 10px; background: rgba(255,106,0,.92); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 4px;
}
.product-badge.hot { background: rgba(255,106,0,.92); }
.product-info { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: 15px; font-weight: 600; line-height: 1.45; margin-bottom: 6px; }
.product-spec { color: var(--muted); font-size: 12.5px; margin-bottom: 10px; }
.product-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { color: #262d36; font-weight: 700; font-size: 18px; }
.price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.sales { color: var(--muted); font-size: 12px; margin-top: 2px; }
.btn-add {
  background: #fff3ea; color: var(--accent); border: 1px solid var(--accent);
  padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
}
.btn-add:hover { background: var(--accent); color: #fff; }
.load-more-wrap { text-align: center; margin: 30px 0 20px; }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,18,22,.55); z-index: 100;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px);
}
.modal {
  background: #fff; border-radius: 16px; padding: 28px; width: min(400px, 92vw);
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: pop .2s ease;
  max-height: 82vh; overflow: auto;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 12px; right: 16px; font-size: 22px; color: var(--muted); }
.modal-close:hover { color: var(--text); }
.modal h3 { margin-bottom: 18px; font-size: 18px; }
.auth-tabs { display: flex; gap: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.auth-tab { font-size: 16px; padding: 8px 2px; color: var(--muted); border-bottom: 2px solid transparent; }
.auth-tab.active { color: var(--accent); border-color: var(--accent); font-weight: 700; }
.auth-form label { display: block; font-size: 13px; color: #4a5158; margin-bottom: 14px; }
.auth-form input {
  width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 14px; outline: none; transition: border .15s;
}
.auth-form input:focus { border-color: var(--accent); }
.form-error { color: #e02020; font-size: 12.5px; min-height: 18px; margin: -4px 0 8px; }

/* 登录弹窗（手机验证码 / 微信） */
.auth-title { margin-bottom: 6px; font-size: 20px; }
.auth-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 20px; }
.code-row { display: flex; gap: 10px; margin-top: 6px; }
.code-row input { margin-top: 0; flex: 1; }
.btn-code {
  white-space: nowrap; border: 1px solid var(--accent); color: var(--accent);
  background: #fff3ea; border-radius: 8px; padding: 0 14px; font-size: 13px; font-weight: 600;
}
.btn-code:disabled { opacity: .6; cursor: not-allowed; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0 14px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-wechat {
  background: #fff; border: 1px solid #d6dae0; border-radius: 8px; padding: 10px 0;
  font-size: 15px; color: #1aad19; font-weight: 600;
}
.btn-wechat:hover { border-color: #1aad19; background: #f3fbf3; }

/* 定制图纸上传 */
.cart-attach { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12.5px; color: #4a5158; }
.cart-attach input[type="file"] { margin-top: 8px; font-size: 12px; width: 100%; }
.attach-name { color: var(--accent); font-size: 12px; margin-top: 6px; }

/* 订单条目底部 */
.oi-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.oi-time { color: var(--muted); font-size: 12px; }
.oi-file { color: var(--accent); font-size: 12.5px; text-decoration: underline; }
.oi-foot .oi-total { margin-left: auto; }

/* 商品加载骨架 / 错误 */
.product-card.skeleton { padding: 0 0 16px; }
.sk-thumb { height: 200px; background: linear-gradient(90deg, #eef0f2, #f7f8f9, #eef0f2); }
.sk-line { height: 12px; margin: 12px 16px 0; border-radius: 6px; background: #eef0f2; }
.sk-line.short { width: 50%; }
.load-error { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }

/* ============ 购物车 / 订单 ============ */
.cart-list { min-height: 80px; }
.cart-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-item .ci-info { flex: 1; }
.cart-item .ci-name { font-size: 13.5px; font-weight: 600; }
.cart-item .ci-spec { font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.qty-ctrl { display: inline-flex; align-items: center; gap: 8px; }
.qty-ctrl button { width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 5px; font-size: 14px; line-height: 1; }
.qty-ctrl span { min-width: 20px; text-align: center; font-size: 13px; }
.ci-price { color: #262d36; font-weight: 700; }
.ci-del { color: var(--muted); font-size: 12px; }
.ci-del:hover { color: #e02020; }
.cart-empty, .order-empty { text-align: center; color: var(--muted); padding: 36px 0; font-size: 14px; }
.cart-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.cart-footer b { color: #262d36; font-size: 20px; }
.order-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 12px; }
.order-item .oi-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.order-item .oi-status { color: #12b76a; font-weight: 600; }
.order-item .oi-body { font-size: 14px; line-height: 1.6; }
.order-item .oi-total { text-align: right; margin-top: 6px; color: #262d36; font-weight: 700; }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%);
  background: rgba(20,24,29,.9); color: #fff; padding: 11px 22px; border-radius: 10px;
  font-size: 14px; z-index: 200; animation: pop .2s ease;
}
.toast.ok { background: rgba(18,183,106,.95); }
.toast.err { background: rgba(224,32,32,.95); }

/* ============ 页脚 ============ */
.footer { background: var(--dark); color: #aab2ba; margin-top: 60px; padding: 44px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.footer-col h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.footer-col p, .footer-col a { font-size: 13px; line-height: 1.9; display: block; }
.footer-col a:hover { color: #fff; }
.copyright { border-top: 1px solid #2a323c; text-align: center; padding: 16px 0; font-size: 12px; color: #6b737c; }
.copyright a { color: #9aa3ad; margin: 0 2px; }
.footer-legal { margin-top: 10px; font-size: 12.5px; color: #8a929b; line-height: 1.7; }

/* ============ 工厂实拍 ============ */
.factory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.factory-item { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(20,24,29,.06); }
.factory-item img { width: 100%; height: 200px; object-fit: cover; display: block; }
.factory-item figcaption { font-size: 12.5px; color: #3d4650; padding: 10px 12px; line-height: 1.5; }
.factory-note { margin-top: 16px; text-align: center; font-size: 13.5px; color: #5a626b; }
@media (max-width: 900px) { .factory-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .factory-grid { grid-template-columns: 1fr; } .factory-item img { height: 240px; } }

/* ============ 结算成功面板 ============ */
.checkout-done { background: #f0f7f1; border: 1px solid #cfe6d4; border-radius: var(--radius); padding: 18px 20px; }
.checkout-done .cd-title { font-size: 17px; font-weight: 700; color: #1a5c2e; margin-bottom: 10px; }
.checkout-done p { margin: 6px 0; font-size: 13.5px; color: #2a323c; }
.checkout-done ol { margin: 8px 0 8px 18px; padding: 0; }
.checkout-done li { font-size: 13.5px; color: #2a323c; line-height: 1.7; margin-bottom: 4px; }
.checkout-done .cd-contact { font-size: 12.5px; color: #5a626b; margin-top: 10px; }

/* ============ 性能参数 ============ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.perf-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.perf-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(20,24,29,.06); }
.perf-table th, .perf-table td { text-align: left; padding: 12px 16px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.perf-table thead th { background: var(--dark); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .5px; }
.perf-table tbody tr:last-child td { border-bottom: none; }
.perf-table tbody tr:nth-child(even) { background: #fafbfc; }
.perf-table td:nth-child(2) { color: var(--accent); font-weight: 600; white-space: nowrap; }
.perf-table td:nth-child(2).td-plain { color: var(--text); font-weight: 500; }
.perf-table td:nth-child(3) { color: var(--muted); }
.perf-notes { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 2px 10px rgba(20,24,29,.06); }
.perf-notes h3 { font-size: 17px; margin-bottom: 14px; }
.perf-notes ul { list-style: none; display: grid; gap: 12px; margin-bottom: 16px; }
.perf-notes li { font-size: 13.5px; line-height: 1.7; color: #4a5158; padding-left: 22px; position: relative; }
.perf-notes li::before { content: "◆"; position: absolute; left: 0; color: var(--accent); font-size: 10px; top: 4px; }
.perf-notes li b { color: var(--text); }
.perf-disclaimer { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 18px; border-top: 1px dashed var(--line); padding-top: 14px; }

/* ============ 联系 CTA ============ */
.contact-card {
  background: linear-gradient(120deg, #1d232b, #2a323c); color: #fff; border-radius: 16px;
  padding: 34px 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.contact-card h2 { font-size: 24px; margin-bottom: 10px; }
.contact-card p { color: #c3cad2; font-size: 14px; line-height: 1.8; }
.contact-card .btn-primary { flex-shrink: 0; }

/* ============ 悬浮按钮 ============ */
.float-bar { position: fixed; right: 18px; bottom: 84px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.fb-btn {
  width: 56px; height: 56px; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgba(20,24,29,.16);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: transform .15s, box-shadow .15s;
}
.fb-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20,24,29,.22); }
.fb-inquiry { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.fb-icon { font-size: 18px; line-height: 1; }
.fb-text { font-size: 11px; font-weight: 600; }
.fb-top .fb-text { color: var(--muted); }
.fb-top .fb-icon { color: var(--text); }

/* ============ 商品详情 ============ */
#view-detail { padding: 30px 0 40px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--accent); }
.detail-grid { display: grid; grid-template-columns: 460px 1fr; gap: 40px; align-items: start; }
.detail-media img { width: 100%; border-radius: var(--radius); background: #fff; box-shadow: 0 2px 10px rgba(20,24,29,.06); }
.detail-title { font-size: 26px; line-height: 1.4; margin-bottom: 10px; }
.detail-tags { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.detail-tag { background: #fff3ea; color: var(--accent); font-size: 12px; padding: 4px 10px; border-radius: 6px; }
.detail-price-box { background: #fff; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(20,24,29,.06); }
.detail-price { color: #262d36; font-size: 32px; font-weight: 700; }
.detail-price small { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.detail-price-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.detail-opt { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.detail-opt > span { font-size: 13.5px; color: #4a5158; width: 70px; flex-shrink: 0; }
.qty-input { width: 100px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; text-align: center; }
.detail-total { font-size: 14px; color: var(--muted); margin: 8px 0 20px; }
.detail-total b { color: #262d36; font-size: 20px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-quote-lg { border: 1px solid var(--accent); color: var(--accent); background: #fff; padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.btn-quote-lg:hover { background: #fff3ea; }
.btn-sample { border: 1px solid var(--line); color: #4a5158; background: #fff; padding: 12px 22px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.btn-sample:hover { border-color: #2aa15a; color: #2aa15a; }
.detail-spec { margin-top: 26px; background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 2px 10px rgba(20,24,29,.06); }
.detail-spec h3 { font-size: 16px; margin-bottom: 12px; }
.detail-spec table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.detail-spec td { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.detail-spec td:first-child { color: var(--muted); width: 120px; }
.detail-note { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin-top: 14px; }

/* 商品卡询价按钮 */
.product-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.btn-quote { border: 1px solid var(--line); color: #4a5158; padding: 6px 14px; border-radius: 8px; font-size: 12.5px; background: #fff; }
.btn-quote:hover { border-color: var(--accent); color: var(--accent); }
.product-name-link { cursor: pointer; }
.product-name-link:hover { color: var(--accent); }

/* 表单补充 */
.auth-form textarea { width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-family: inherit; resize: vertical; outline: none; }
.auth-form textarea:focus { border-color: var(--accent); }
.admin-link { color: #6b737c; }
.admin-link:hover { color: #fff; }

/* ============ 企业采购 / B 端入口 ============ */
.tb-contact { color: #ffd9bd; font-weight: 600; }

.b2b-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.b2b-card {
  position: relative; text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 56px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.b2b-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(20,24,29,.08); }
.b2b-ico { font-size: 24px; display: block; margin-bottom: 12px; }
.b2b-card h3 { font-size: 17px; margin-bottom: 8px; }
.b2b-card p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.b2b-go { position: absolute; right: 22px; bottom: 20px; color: var(--accent); font-size: 13px; font-weight: 600; }

.b2b-direct {
  margin-top: 16px; background: linear-gradient(120deg, #1d232b, #2a323c); color: #fff;
  border-radius: var(--radius); padding: 22px 26px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.b2b-direct h3 { font-size: 17px; margin-bottom: 6px; }
.b2b-hours { color: #aab2ba; font-size: 13px; }
.b2b-direct-r { display: flex; gap: 10px; flex-wrap: wrap; }
.b2b-btn {
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.22); color: #fff; background: rgba(255,255,255,.06);
  transition: background .15s, border-color .15s;
}
.b2b-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.b2b-btn-phone { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; letter-spacing: .5px; }
.b2b-btn-phone:hover { background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.b2b-btn-mail { border-color: rgba(255,217,189,.45); color: #ffd9bd; }

.b2b-tier-wrap { margin-top: 16px; }
.b2b-tier {
  width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 2px 10px rgba(20,24,29,.06);
}
.b2b-tier th, .b2b-tier td { text-align: left; padding: 12px 18px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.b2b-tier th { background: #fafbfc; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.b2b-tier tr:last-child td { border-bottom: none; }
.b2b-tier td:first-child { width: 160px; font-weight: 600; color: var(--text); }
.b2b-tier-note { color: var(--muted); font-size: 12px; margin-top: 10px; }

.contact-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.contact-alt { display: flex; flex-direction: column; gap: 4px; }
.contact-quick { color: #ffd9bd; font-size: 13.5px; font-weight: 600; }
.contact-quick:hover { color: #fff; text-decoration: underline; }
.footer-contact { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { color: #b8bfc7; font-size: 13px; }
.footer-contact a:hover { color: var(--accent); }

/* 悬浮：电话 / 微信 */
.fb-phone { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.fb-wechat { background: #2aa15a; color: #fff; }

/* 询价弹窗：意图切换 */
.inq-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.inq-kind {
  border: 1px solid var(--line); background: #fff; color: #4a5158; font-size: 13px;
  padding: 7px 14px; border-radius: 20px; transition: all .15s;
}
.inq-kind:hover { border-color: var(--accent); color: var(--accent); }
.inq-kind.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; font-weight: 600; }
.inq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inq-check { display: flex !important; align-items: center; gap: 8px; }
.inq-check input { width: auto !important; margin: 0 !important; }

/* 微信弹层 */
.wechat-modal { text-align: center; width: min(330px, 92vw); }
.wechat-modal h3 { text-align: left; }
.qr-box {
  width: 190px; height: 190px; margin: 6px auto 12px; border-radius: 10px; background: #f5f6f7;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-box .qr-empty { color: var(--muted); font-size: 12.5px; padding: 0 18px; line-height: 1.7; }
.wechat-id { font-size: 15px; font-weight: 700; margin-bottom: 12px; letter-spacing: .3px; }
.wechat-tip { margin: 12px 0 0 !important; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 360px 1fr; gap: 26px; }
  .perf-layout { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .service-bar { grid-template-columns: repeat(2, 1fr); }
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: 1fr; }
  .promo-card.big img { min-height: 240px; }
  .slide-content h1, .slide-content h2 { font-size: 28px; }
  .footer-inner { grid-template-columns: 1fr; }
  .navbar-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 12px; }
  .search-box { max-width: none; width: 100%; order: 3; border-width: 1px; }
  .carousel { height: 340px; }
  .detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .detail-media img { max-height: 320px; object-fit: cover; }
  .contact-card { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .contact-card h2 { font-size: 20px; }
  .b2b-cards { grid-template-columns: 1fr; }
  .b2b-card { padding: 18px 18px 50px; }
  .b2b-direct { padding: 18px 20px; }
  /* 分类导航：横向滚动，不再挤压折行 */
  .nav-cats {
    overflow-x: auto; flex-wrap: nowrap; gap: 18px; padding-bottom: 4px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .nav-cats::-webkit-scrollbar { display: none; }
  .nav-cats a { white-space: nowrap; flex-shrink: 0; font-size: 13.5px; }
}
@media (max-width: 600px) {
  .container { width: 94%; }
  .topbar-inner { height: auto; padding: 6px 0; flex-wrap: wrap; gap: 4px; }
  .topbar-left { font-size: 11px; }
  .topbar-right { font-size: 11px; display: flex; gap: 12px; }
  .topbar-right a { margin-left: 0; }
  .topbar-right a[href="#perf"] { display: none; }
  .navbar-inner { gap: 8px; }
  .logo-text { font-size: 18px; }
  .btn-ghost, .btn-cart { font-size: 12.5px; padding: 7px 10px; }
  .service-item { padding: 12px 12px; gap: 8px; min-width: 0; }
  .service-item b { font-size: 13px; }
  .service-item small { font-size: 11px; white-space: normal; }
  .si-icon svg { width: 22px; height: 22px; }
  /* 轮播文字：窄屏不再溢出 + 提高对比度 */
  .slide-content { left: 6%; right: 6%; max-width: none; }
  .slide-content h1, .slide-content h2 { font-size: 21px; letter-spacing: .5px; line-height: 1.35; }
  .slide-content p { font-size: 13px; margin-bottom: 16px; }
  .slide::before { background: linear-gradient(90deg, rgba(10,12,15,.88) 0%, rgba(10,12,15,.62) 55%, rgba(10,12,15,.28) 100%); }
  .section { padding: 36px 0 6px; }
  .section-head h2 { font-size: 20px; }
  .product-thumb img { height: 150px; }
  .detail-title { font-size: 20px; }
  .detail-price { font-size: 26px; }
  .float-bar { right: 12px; bottom: 18px; }
  .fb-btn { width: 50px; height: 50px; border-radius: 12px; }
  .promo { margin-top: 36px; padding: 36px 0 44px; }
  .perf-table th, .perf-table td { padding: 10px 10px; font-size: 12.5px; }
  /* B 端区块小屏适配 */
  .b2b-direct-r { width: 100%; }
  .b2b-btn { flex: 1; text-align: center; padding: 10px 12px; font-size: 13px; }
  .b2b-tier th, .b2b-tier td { padding: 10px 12px; font-size: 12.5px; }
  .b2b-tier td:first-child { width: 96px; }
  .inq-row { grid-template-columns: 1fr; }
  .contact-actions { width: 100%; }
}

/* ---------------- 规格直达：卡片 chips / 规格价格表 / 直径选择器 ---------------- */
.product-spec { display: flex; flex-wrap: wrap; gap: 5px; }
.spec-chip {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: #f1f3f5; color: #495057; font-size: 11.5px; font-weight: 600;
  border: 1px solid #e4e7eb; white-space: nowrap;
}
.spec-chip.wide { background: #fff4e5; border-color: #ffd8a8; color: #b26a00; }

.spec-chart-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: 0 2px 10px rgba(20,24,29,.06); background: #fff; }
.spec-chart { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 13.5px; }
.spec-chart thead th {
  background: #1c2126; color: #fff; padding: 11px 10px; font-size: 12.5px;
  letter-spacing: .02em; white-space: nowrap;
}
.spec-chart tbody th { background: #f8f9fa; color: #343a40; padding: 9px 12px; text-align: left; white-space: nowrap; font-weight: 700; border-bottom: 1px solid #eef0f2; }
.spec-chart tbody td { padding: 9px 10px; text-align: center; border-bottom: 1px solid #eef0f2; }
.spec-chart tbody tr:last-child th, .spec-chart tbody tr:last-child td { border-bottom: none; }
.spec-chart tbody tr:hover td { background: #f6f9ff; }
.spec-chart td a { color: #262d36; font-weight: 700; text-decoration: none; padding: 4px 8px; border-radius: 6px; display: inline-block; }
.spec-chart td a:hover { background: var(--accent); color: #fff; }
.spec-chart td.muted { color: #ced4da; }
.chart-note { color: var(--muted); font-size: 12.5px; margin-top: 10px; }

.od-selector { background: #fff; border-radius: var(--radius); padding: 14px 20px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(20,24,29,.06); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.od-label { font-size: 13px; font-weight: 700; color: #343a40; margin-right: 4px; }
.od-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.od-chip {
  display: inline-block; min-width: 40px; text-align: center; padding: 5px 9px;
  border: 1.5px solid #dee2e6; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: #495057; text-decoration: none; transition: all .15s;
}
a.od-chip:hover { border-color: #1c2126; color: #1c2126; background: #f8f9fa; }
.od-chip.active { background: #1c2126; border-color: #1c2126; color: #fff; cursor: default; }
.od-hint { width: 100%; font-size: 11.5px; color: var(--muted); }

@media (max-width: 600px) {
  .spec-chart { min-width: 560px; font-size: 12.5px; }
  .od-chip { min-width: 34px; padding: 4px 7px; font-size: 12px; }
}

/* ---------------- WhatsApp 入口 ---------------- */
.b2b-btn-wa { background: #25d366; border-color: transparent; color: #fff; letter-spacing: .3px; font-weight: 700; }
.b2b-btn-wa:hover { background: #1fb857; }
.fb-wa { background: #25d366; color: #fff; }
