/* ============ FRG Auto Parts — 客户站点样式 ============ */
:root {
  --primary: #c8102e;
  --primary-dark: #9e0c24;
  --ink: #1c1c1e;
  --ink-2: #333438;
  --muted: #5b5b62;
  --line: #e5e5e5;
  --bg-soft: #f5f6f8;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 2px 14px rgba(0,0,0,.07);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
}
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg, #fff);
  background-image: var(--bg-image, none);
  background-size: cover;
  background-attachment: fixed;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: min(1200px, 92%); margin: 0 auto; }
.hidden { display: none !important; }

/* ============ 导航工具条（模式/币种/语言，并入导航行） ============ */
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.16); flex-shrink: 0; }

/* 工具按钮统一：玻璃胶囊 */
.mode-switch { display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 0 4px; height: 30px; box-sizing: border-box; }
.mode-btn { cursor: pointer; padding: 0 10px; border-radius: 999px; color: rgba(255,255,255,.82); font-weight: 600; font-size: 12.5px; line-height: 1.2; transition: background .25s ease, color .25s ease; white-space: nowrap; flex-shrink: 0; }
.mode-btn:hover { color: #fff; }
.mode-btn.active { background: var(--primary-grad, var(--primary)); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.22); }
.mode-divider { display: none; }

.lang-switch { position: relative; }
.cur-switch { position: relative; }
.lang-btn, .cur-btn { display: flex; align-items: center; gap: 6px; background: var(--hdr-chip-bg, rgba(255,255,255,.10)); color: var(--hdr-fg, #fff); border: 1px solid var(--hdr-chip-bd, rgba(255,255,255,.22)); border-radius: 999px; padding: 0 13px; height: 30px; box-sizing: border-box; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: background .25s ease, border-color .25s ease; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; flex-shrink: 0; }
.lang-btn:hover, .cur-btn:hover, .lang-btn[aria-expanded="true"], .cur-btn[aria-expanded="true"] { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.36); }
.lang-caret { font-size: 10px; opacity: .8; margin-top: 1px; transition: transform .25s ease; }
.lang-btn[aria-expanded="true"] .lang-caret, .cur-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

/* 下拉菜单：精致玻璃卡片（选中项渐变+打勾，其余深色清晰） */
.lang-menu, .cur-menu { position: absolute; top: calc(100% + 8px); right: 0; background: rgba(255,255,255,.985); color: #222; border-radius: 14px; box-shadow: 0 18px 50px rgba(8,20,48,.20), 0 4px 14px rgba(8,20,48,.08), inset 0 1px 0 rgba(255,255,255,.65); min-width: 224px; padding: 8px; display: none; z-index: 130; border: 1px solid rgba(255,255,255,.5); }
.lang-menu.open, .cur-menu.open { display: block; animation: dropIn .18s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.header-tools .lang-option, .header-tools .cur-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px !important; border-radius: 9px; font-size: 13.5px; color: #2a2f3a !important; font-weight: 500 !important; transition: background .18s ease, color .18s ease; }
.header-tools .lang-option:hover, .header-tools .cur-option:hover { background: rgba(237,7,46,.07); color: #c8102e !important; }
.header-tools .lang-option.active, .header-tools .cur-option.active { background-color: var(--primary, #c8102e); background-image: var(--primary-grad); color: #fff !important; font-weight: 700 !important; box-shadow: 0 3px 10px rgba(200,16,46,.28); }
.header-tools .lang-option.active::after, .header-tools .cur-option.active::after { content: "✓"; font-size: 12px; font-weight: 800; }
[dir="rtl"] .lang-menu, [dir="rtl"] .cur-menu { right: auto; left: 0; }

/* ============ 主头部 ============ */
.header-main { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 48px; width: auto; max-width: 210px; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 26px; letter-spacing: 2px; color: var(--primary); }
.brand-text em { font-style: normal; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 10px 13px; font-weight: 600; color: var(--ink-2); border-radius: 6px; position: relative; }
.main-nav a:hover { color: var(--primary); }
.main-nav a.active { color: var(--primary); }
.main-nav a.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 3px; background: var(--primary-grad, var(--primary)); border-radius: 2px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-link { position: relative; color: var(--ink); }
.cart-count { position: absolute; top: -6px; right: -6px; background: var(--primary-grad, var(--primary)); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1; min-width: 17px; height: 17px; border-radius: 999px; display: none; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.28); }
.cart-count.bump { animation: cartBump .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes cartBump { 0% { transform: scale(.4); } 60% { transform: scale(1.22); } 100% { transform: scale(1); } }
.nav-toggle span { display: block; height: 3px; background: var(--hdr-fg, var(--ink)); border-radius: 2px; }

/* ============ 站点搜索 ============ */
.site-search { display: flex; align-items: center; background: var(--bg-soft, #f2f3f5); border: 1px solid var(--line); border-radius: 24px; padding: 0 4px 0 14px; height: 40px; width: 200px; transition: width .3s ease, border-color .2s; }
.site-search:focus-within { width: 260px; border-color: var(--primary); background: #fff; }
.site-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 13.5px; color: var(--ink); }
.site-search button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--primary-grad, var(--primary)); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.site-search button:hover { filter: brightness(1.08); }
.search-toggle { display: none; background: none; border: 0; color: var(--hdr-fg, var(--ink)); cursor: pointer; padding: 4px; }
.header-actions .site-search { margin-right: 2px; }

/* ============ Hero（首页顶部背景轮播·扑克牌堆叠） ============ */
.hero { position: relative; min-height: 100svh; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; display: flex; align-items: center; will-change: transform, opacity; transition: transform .5s cubic-bezier(.4,0,.2,1), opacity .4s ease; box-shadow: 0 18px 40px rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.14); }
/* 激活牌：全宽大图（主视觉） */
.hero-slide.active { inset: 0; width: 100%; transform: none; opacity: 1; z-index: 5; }
/* 非激活牌：右侧扇形扑克牌堆叠（露出牌边，可悬停） */
.hero-slide:not(.active) { width: 32%; right: 2%; top: 14%; bottom: 12%; left: auto; transform: translateX(calc(var(--dist, 1) * -9%)) rotate(calc(var(--dist, 1) * -4.6deg)) scale(calc(1 - var(--dist, 1) * .05)); transform-origin: 88% 100%; opacity: .97; z-index: calc(14 - var(--dist, 1)); }
.hero-slide:not(.active) .hero-content { opacity: 0 !important; pointer-events: none; }
/* 悬停某张非激活牌 → 放大为全屏大图，移走自然恢复（仅桌面鼠标设备；触摸设备禁用 sticky 展开） */
@media (hover: hover) {
  .hero-slide:not(.active):hover { inset: 0; top: 0; bottom: 0; height: 100%; width: 100%; left: 0; right: auto; transform: none; opacity: 1; z-index: 30; cursor: pointer; transition: none; }
  .hero-slide:not(.active):hover .hero-content { opacity: 1 !important; pointer-events: auto; }
}
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,10,14,.5), transparent 55%); transition: opacity .5s ease; }
.hero-slide.active::after { background: linear-gradient(0deg, rgba(8,10,14,.55), transparent 60%); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,10,14,.74) 0%, rgba(8,10,14,.46) 46%, rgba(8,10,14,.2) 74%, rgba(8,10,14,.34) 100%); z-index: 1; transition: opacity .5s ease; pointer-events: none; }
.hero-slide:not(.active) .hero-overlay { opacity: .3; }
.hero-content { position: relative; z-index: 2; padding: 70px 0; max-width: 680px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .45s ease .08s, transform .45s ease .08s; }
.hero-slide.active .hero-content { opacity: 1; transform: translateY(0); pointer-events: auto; animation: heroFadeUp .8s ease both; }
@media (hover: hover) {
  .hero-slide:not(.active):hover .hero-content { opacity: 1; transform: translateY(0); pointer-events: auto; animation: heroFadeUp .8s ease both; }
}

@keyframes heroFadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.hero-content h1 { color: #fff; font-size: clamp(32px, 5.2vw, 52px); line-height: 1.15; margin-bottom: 16px; font-weight: 800; letter-spacing: .5px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-sub { color: #f2f2f2; font-size: clamp(15px, 2.2vw, 21px); margin-bottom: 30px; max-width: 560px; line-height: 1.6; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn { padding: 14px 30px; font-size: 15px; border-radius: 8px; }
.hero-cta .btn-outline { border-color: rgba(255,255,255,.85); color: #fff; background: rgba(0,0,0,.18); }
.hero-cta .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 40; }
/* 轮播指示点已收容为单个进度胶囊（点击 → 下一张） */
.hero-dot-single { display: inline-flex; align-items: center; gap: 5px; padding: 5px 16px; border-radius: 999px; background: linear-gradient(135deg, var(--primary,#c8102e), rgba(201,162,39,.92)); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .5px; box-shadow: 0 4px 14px rgba(0,0,0,.35), 0 0 18px rgba(200,16,46,.35); cursor: pointer; user-select: none; -webkit-user-select: none; transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease; }
.hero-dot-single:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.4), 0 0 24px rgba(200,16,46,.45); }
.hero-dot-single:active { transform: scale(.96); }
.hero-dot-cur { min-width: 18px; text-align: center; }
.hero-dot-sep { opacity: .72; font-weight: 400; }
.hero-dot-total { opacity: .88; }

/* ============ 按钮 ============ */
.btn { display: inline-block; padding: 12px 26px; border-radius: 6px; font-weight: 700; cursor: pointer; border: 2px solid transparent; transition: all .2s; font-size: 15px; text-align: center; }
.btn-primary { background: var(--primary-grad, var(--primary)); color: #fff; }
.btn-primary:hover { background: var(--primary-grad, var(--primary-dark)); filter: brightness(1.06); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-grad, var(--primary)); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eee; }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-lg { padding: 14px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ============ 区块 ============ */
.section { padding: 64px 0; }
.section:nth-child(even) { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 10px; position: relative; }
.section-head h2::after { content: ""; display: block; width: 54px; height: 4px; background: var(--primary-grad, var(--primary)); margin: 14px auto 0; border-radius: 2px; }
.section-head p { color: var(--muted); max-width: 640px; margin: 8px auto 0; }
.section-more { text-align: center; margin-top: 30px; }
/* ===== 内页返回导航条：返回上一页 + 返回首页（三端适配） ===== */
.back-nav { background: rgba(255,255,255,.86); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.back-nav .container { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.back-nav-prev, .back-nav-home {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: #333;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s;
}
.back-nav-prev:hover, .back-nav-home:hover { border-color: var(--primary); color: var(--primary); }
.back-nav-prev:active, .back-nav-home:active { transform: scale(.97); }
.back-nav-home { color: var(--primary); }
@media (max-width: 768px) {
  .back-nav .container { gap: 8px; padding-top: 6px; padding-bottom: 6px; }
  .back-nav-prev, .back-nav-home { padding: 8px 13px; font-size: 12.5px; }
}

/* ============ 分类卡片 ============ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.cat-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cat-card-img { aspect-ratio: 4/3; overflow: hidden; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover .cat-card-img img { transform: scale(1.06); }
.cat-card-body { background: #ffffff; padding: 18px 20px; }
.cat-card-body h3 { font-size: 18px; margin-bottom: 6px; }
.cat-card-link { color: var(--primary); font-weight: 600; font-size: 14px; }

/* ============ 产品卡片 ============ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: all .25s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.product-card-img { aspect-ratio: 1/1; background: #f0f1f3; position: relative; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--primary-grad, var(--primary)); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 4px; font-weight: 700; }
.product-card-body { background: #ffffff; padding: 14px 16px; }
.product-card-body h3 { font-size: 15px; min-height: 42px; line-height: 1.4; }
.sku { font-size: 12px; color: var(--muted); }
.product-card-price { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; }
.price { color: var(--primary); font-weight: 800; font-size: 17px; }
.moq { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }

/* ============ 优势条 ============ */
.section-adv { background: var(--primary-grad, var(--primary)); color: #fff; }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.adv-num { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.adv-label { opacity: .9; font-size: 14px; margin-top: 4px; }

/* ============ 关于/工厂 ============ */
.about-wrap, .factory-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.about-img img, .factory-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.about-badge { margin-bottom: 14px; }
.about-badge img { height: 64px; width: auto; max-width: 220px; object-fit: contain; filter: drop-shadow(0 4px 16px rgba(0,0,0,.18)); }
@media (max-width: 767px) { .about-badge img { height: 48px; } }
.about-body h2, .factory-body h2 { font-size: clamp(25px, 3vw, 33px); font-weight: 800; margin-bottom: 18px; }
.about-body p, .factory-body p { color: var(--ink); margin-bottom: 18px; font-size: 16px; line-height: 1.85; }
.factory-points li { padding: 9px 0 9px 30px; position: relative; color: var(--ink); font-size: 15.5px; line-height: 1.7; }
.factory-points li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.section-factory { background: var(--bg-soft); }

/* ============ 新闻 ============ */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all .25s; border: 1px solid var(--line); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(200,16,46,.25); }
.news-card-img { aspect-ratio: 16/9; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { background: #ffffff; padding: 18px 20px 20px; }
.news-card-body time { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .4px; }
.news-card-body h3 { font-size: 17.5px; margin-top: 7px; line-height: 1.45; font-weight: 700; }
.news-card-body p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }

/* ============ CTA ============ */
.section-cta { background: linear-gradient(135deg, #1c1c1e, #333); color: #fff; text-align: center; }
.cta-wrap h2 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: 12px; }
.cta-wrap p { color: #ccc; margin-bottom: 26px; }

/* ============ 页内标题 ============ */
.page-head { background: linear-gradient(180deg, #f4f5f7, #edeef1); padding: 42px 0; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: .4px; color: var(--ink); }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--ink); font-weight: 600; }

/* ============ 侧栏布局 ============ */
.layout-products { display: grid; grid-template-columns: 260px 1fr; gap: 30px; padding: 40px 0; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 22px; }
.panel-title { font-size: 17px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.side-cats li a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink-2); font-weight: 500; }
.side-cats li a:hover { background: var(--bg-soft); color: var(--primary); }
.side-cats li a.active { background: var(--primary-grad, var(--primary)); color: #fff; }
.panel-contact { background: var(--primary-grad, var(--primary)); color: #fff; border: 0; }
.panel-contact .panel-title { border-color: rgba(255,255,255,.3); }
.panel-big { font-size: 20px; font-weight: 700; margin: 6px 0; }
.panel-contact p a { color: #fff; text-decoration: underline; }
.search-bar { display: flex; gap: 8px; margin-bottom: 14px; }
.search-bar input { flex: 1; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; }
.search-bar button { padding: 12px 22px; background: var(--primary-grad, var(--primary)); color: #fff; border: 0; border-radius: 6px; font-weight: 700; cursor: pointer; }
.result-count { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 28px; }
.pagination a { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; }
.pagination a.active { background: var(--primary-grad, var(--primary)); color: #fff; border-color: var(--primary); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.empty-hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: -24px; padding-bottom: 28px; }

/* ============ 顾客评价 ============ */
.section-reviews { padding: 40px 0 20px; }
.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.reviews-head h2 { margin: 0; }
.review-avg { display: flex; align-items: center; gap: 10px; }
.review-avg-num { font-size: 30px; font-weight: 800; color: var(--primary); }
.review-avg-count { color: var(--muted); font-size: 13px; }
.rv-stars { color: #f5a623; font-size: 13px; letter-spacing: 2px; }
.rv-stars .star-off { color: #d8d8dc; }
.review-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.review-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.review-item-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.review-item-top strong { font-size: 14px; }
.review-date { margin-left: auto; color: var(--muted); font-size: 12px; }
.review-item p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.review-empty { color: var(--muted); padding: 20px 0; }
.review-form { margin-top: 28px; background: var(--bg-soft, #f6f7f9); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.review-form h3 { margin: 0 0 14px; }
.review-form .form-grid { grid-template-columns: 1fr 1fr; }
.review-form .form-field.full { grid-column: 1 / -1; }
.review-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13.5px; }
.review-form input[type=text], .review-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #fff; }
.review-form input:focus, .review-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,16,46,.1); }
.star-input { display: flex; gap: 4px; padding: 8px 0; }
.star-input .star-pick { font-size: 24px; color: #d8d8dc; cursor: pointer; transition: color .15s, transform .15s; }
.star-input .star-pick.active { color: #f5a623; }
.star-input .star-pick:hover { transform: scale(1.15); color: #f5a623; }
@media (max-width: 576px) {
  .review-list { grid-template-columns: 1fr; }
  .review-form .form-grid { grid-template-columns: 1fr; }
}

/* ============ 顾客登录 / 注册弹窗 ============ */
.auth-login-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-grad, var(--primary, #c8102e)); border: 1px solid rgba(200,16,46,.25); border-radius: 8px; padding: 7px 14px; font-size: 13px; font-weight: 700; color: #fff; cursor: pointer; transition: all .2s; box-shadow: 0 3px 10px rgba(200,16,46,.28); }
.auth-login-btn:hover { filter: brightness(1.08); box-shadow: 0 5px 14px rgba(200,16,46,.38); transform: translateY(-1px); }
.auth-login-btn:active { transform: scale(.97); }
.customer-menu { position: relative; }
.customer-btn { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px 4px 4px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: all .2s; }
.customer-btn:hover { border-color: var(--primary); color: var(--primary); }
.customer-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary-grad, var(--primary, #c8102e));
  color: #fff; font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; box-shadow: inset 0 1px 1px rgba(255,255,255,.35), 0 1px 3px rgba(200,16,46,.3);
}
.customer-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 120; }
.customer-dropdown.open { display: block; }
.customer-dropdown a { display: block; padding: 9px 12px; font-size: 13.5px; color: var(--ink); border-radius: 6px; }
.customer-dropdown a:hover { background: var(--bg-soft, #f6f7f9); color: var(--primary); }
.auth-modal { display: none; position: fixed; inset: 0; z-index: 1000; }
.auth-modal.open { display: block; }
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(10,10,14,.55); backdrop-filter: blur(3px); }
.auth-modal-box { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(440px, 92vw); max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 16px; padding: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.auth-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.auth-close:hover { color: var(--ink); }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; background: var(--bg-soft, #f3f4f6); border-radius: 10px; padding: 4px; }
.auth-tab { flex: 1; text-align: center; padding: 10px 0; border: 0; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.auth-tab.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.auth-form h3 { margin: 0 0 16px; font-size: 17px; }
.auth-form .form-field { margin-bottom: 14px; }
.auth-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13.5px; }
.auth-form input, .auth-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; background: #fff; }
.auth-form input:focus, .auth-form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,16,46,.1); }
.auth-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-form .form-grid .full { grid-column: 1 / -1; }
.btn-block { width: 100%; justify-content: center; }
.account-page { padding: 34px 0 60px; }
.account-login-prompt { text-align: center; padding: 50px 24px; }
.account-login-prompt h1 { margin: 0 0 10px; }
.account-login-prompt p { color: var(--muted); margin-bottom: 22px; }
.account-login-prompt .btn { margin: 0 6px 10px; }
.account-head h1 { margin: 0 0 6px; }
.account-orders { margin-top: 20px; }
@media (max-width: 576px) {
  .auth-login-btn, .customer-btn { padding: 5px 8px; font-size: 12px; }
  .auth-login-btn svg { width: 13px; height: 13px; }
  .customer-name { max-width: 64px; }
}

/* ============ 订单查询 ============ */
.layout-track { max-width: 640px; padding: 40px 0 70px; }
.track-form-panel { padding: 28px; }
.track-desc { color: var(--muted); margin-bottom: 22px; }
.track-form .form-field { margin-bottom: 16px; }
.track-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.track-form input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; background: #fff; }
.track-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.track-form .btn { width: 100%; margin-top: 8px; }
.track-error { margin-top: 18px; padding: 12px 16px; background: rgba(200,16,46,.07); border: 1px solid rgba(200,16,46,.25); color: var(--primary); border-radius: 8px; font-size: 14px; }

/* ============ 产品详情 ============ */
.layout-product { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 40px 0; }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs .thumb { width: 74px; height: 74px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.gallery-thumbs .thumb.active { border-color: var(--primary); }
.product-info { background: linear-gradient(165deg, #7c0d1f 0%, #b5122d 55%, #8f0e24 100%); border-radius: var(--radius); padding: 28px 30px; color: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.14); }
.product-info h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: .3px; margin-bottom: 16px; line-height: 1.25; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.meta-line { font-size: 15px; color: #ffeef1; font-weight: 600; margin-bottom: 10px; line-height: 1.65; }
.meta-line strong { color: #fff; font-weight: 800; }
.meta-line .ml-label { color: #ffd0d8; font-weight: 700; margin-right: 5px; }
.in-stock { color: #6ef79b; font-weight: 800; }
.out-stock { color: #ffd0d8; font-weight: 800; }
.price-block { background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.24); border-left: 3px solid #ffd0d8; border-radius: var(--radius); padding: 18px 22px; margin: 18px 0; }
.price-label { font-size: 13px; color: #ffd0d8; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.price-main { font-size: 38px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.price-block .sold-count { display: inline-block; margin: 8px 0 0; font-size: 12.5px; font-weight: 800; color: #7c0d1f; background: #ffd0d8; border-radius: 999px; padding: 3px 12px; }
.product-summary { color: #fff; margin: 14px 0; font-size: 15.5px; font-weight: 600; line-height: 1.78; background: rgba(255,255,255,.12); border-left: 3px solid #ffd0d8; padding: 13px 17px; border-radius: 0 var(--radius) var(--radius) 0; }
.tier-table table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.tier-table th, .tier-table td { border: 1px solid rgba(255,255,255,.28); padding: 9px 14px; text-align: left; font-size: 14px; color: #fff; }
.tier-table th { background: rgba(255,255,255,.14); }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.qty-box { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; overflow: hidden; background: rgba(255,255,255,.1); }
.qty-box button { width: 40px; height: 46px; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: #fff; }
.qty-box input { width: 56px; text-align: center; border: 0; font-size: 16px; height: 46px; background: transparent; color: #fff; }
.product-info .buy-row .btn-primary { background: #fff; color: var(--primary); }
.product-info .buy-row .btn-primary:hover { background: #ffeef1; }
.product-info .buy-row .btn-outline { border-color: rgba(255,255,255,.85); color: #fff; background: rgba(0,0,0,.12); }
.product-info .buy-row .btn-outline:hover { background: #fff; color: #7c0d1f; border-color: #fff; }
.product-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.product-tags span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.5); color: #ffd0d8; padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 34px 0 22px; }
.tab-btn { padding: 13px 24px; background: none; border: 0; font-size: 16px; font-weight: 700; color: var(--muted); cursor: pointer; transition: color .2s ease; }
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--primary); border-bottom: 3px solid var(--primary); margin-bottom: -2px; }
.tab-content { display: none; }
.tab-content.active { display: block; padding: 12px 0 30px; color: var(--ink); font-size: 16px; line-height: 1.85; max-width: 860px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { border: 1px solid var(--line); padding: 12px 16px; font-size: 15px; }
.spec-table td:first-child { background: var(--bg-soft); width: 200px; font-weight: 700; color: var(--ink); }
.section-related { background: repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 6px), linear-gradient(165deg, #14161a 0%, #1e2126 48%, #0f1114 100%); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 30px 30px 28px; margin: 0 0 32px; box-shadow: var(--shadow-lg); }
.section-related h2 { color: #fff; font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); position: relative; padding-bottom: 14px; margin-bottom: 22px; }
.section-related h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 4px; background: var(--primary, #c8102e); border-radius: 2px; box-shadow: 0 2px 12px rgba(200,16,46,.45); }
.section-related .product-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.section-related .product-card:hover { border-color: rgba(255,92,116,.5); }
.section-related .product-card-body { background: transparent; }
.section-related .product-card-body h3 { color: #fff; font-weight: 700; }
.section-related .product-card .sku { color: rgba(255,255,255,.72); font-size: 13px; font-weight: 600; }
.section-related .product-card-price .price { color: #ff5b74; font-size: 18px; }

/* ============ 联系页 ============ */
.layout-contact { display: grid; grid-template-columns: 380px 1fr; gap: 40px; padding: 40px 0; }
.contact-list li { display: flex; flex-direction: column; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-list strong { font-size: 13px; color: var(--muted); }
.contact-list span { font-size: 15px; }
.contact-tip { background: var(--bg-soft); border-radius: var(--radius); padding: 14px 16px; color: var(--ink-2); font-size: 14px; margin-top: 18px; }
.contact-form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.form-success { background: #e8f7ee; color: #188a42; padding: 14px 18px; border-radius: 8px; margin-bottom: 18px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; font-family: inherit; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.form-field.full { grid-column: 1 / -1; }
.contact-form > .btn { margin-top: 18px; }

/* ============ 购物车 ============ */
.cart-wrap { padding: 40px 0; }
.cart-items { border-top: 2px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 90px 1fr 110px 130px 120px 34px; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-item-img { width: 90px; height: 90px; border-radius: 8px; overflow: hidden; background: #f0f1f3; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h4 { font-size: 15px; }
.mode-tag { display: inline-block; background: var(--bg-soft); font-size: 12px; padding: 2px 8px; border-radius: 10px; margin-top: 4px; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.cart-item-qty button { width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; font-size: 15px; }
.cart-item-sub { font-weight: 700; }
.cart-item-remove { border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; }
.cart-footer { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.cart-total { font-size: 20px; font-weight: 800; }

/* ============ 结算页 ============ */
.layout-checkout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; padding: 40px 0; align-items: start; }
.checkout-form-wrap h2 { font-size: 20px; margin: 18px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.pay-options { display: flex; flex-direction: column; gap: 10px; }
.pay-option { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 8px; padding: 14px 16px; cursor: pointer; transition: border-color .2s; }
.pay-option:has(input:checked) { border-color: var(--primary); background: #fdf3f4; }
.pay-option input { margin-top: 4px; }
.pay-option strong { display: block; }
.pay-option span { font-size: 13px; color: var(--muted); }
.checkout-summary { background: var(--bg-soft); border-radius: var(--radius); padding: 22px; position: sticky; top: 96px; }
.summary-item { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.summary-item span:first-child { flex: 1; min-width: 0; word-break: break-word; }
.summary-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; margin-top: 14px; }

/* ============ 订单页 ============ */
.order-page { padding: 40px 0; }
.order-success { background: #e8f7ee; border-radius: var(--radius); padding: 26px; margin-bottom: 22px; }
.order-success h1 { color: #188a42; margin-bottom: 8px; }
.order-detail, .payment-instructions { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; }
.order-table td { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.order-table td:first-child { color: var(--muted); width: 160px; }
.order-items { width: 100%; border-collapse: collapse; margin-top: 10px; }
.order-items th, .order-items td { border: 1px solid var(--line); padding: 10px 12px; font-size: 14px; text-align: left; }
.order-items th { background: var(--bg-soft); }
.status-pill { display: inline-block; padding: 3px 12px; border-radius: 14px; font-size: 13px; font-weight: 600; }
.status-pending { background: #fff3d6; color: #9a6b00; }
.status-paid { background: #e8f7ee; color: #188a42; }
.status-shipped { background: #e3f0fb; color: #1a5f9e; }
.status-completed { background: #e8e8f0; color: #4a4a7a; }
.status-cancelled { background: #fdeaea; color: #b00020; }
.payment-instructions h2 { margin-bottom: 12px; }
.pay-note { margin-top: 12px; background: var(--bg-soft); padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.pay-contact { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ============ 新闻列表/文章 ============ */
.news-list { padding: 34px 0 50px; }
.news-list-item { display: grid; grid-template-columns: 260px 1fr; gap: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; transition: box-shadow .25s; }
.news-list-item:hover { box-shadow: var(--shadow-lg); }
.news-item-img { border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; }
.news-item-img img { width: 100%; height: 100%; object-fit: cover; }
.news-item-body time { color: var(--muted); font-size: 13px; }
.news-item-body h2 { font-size: 20px; margin: 6px 0; }
.news-item-body p { color: var(--ink-2); font-size: 14px; }
.article { padding: 44px 0 64px; max-width: 900px; }
.article h1 { font-size: clamp(25px, 3.2vw, 34px); font-weight: 800; margin-bottom: 12px; line-height: 1.3; }
.article time { color: var(--muted); font-weight: 600; }
.article-img { margin: 22px 0; border-radius: var(--radius); overflow: hidden; }
.article-content { margin-top: 20px; color: var(--ink); line-height: 1.9; font-size: 16px; }
.error-page { text-align: center; padding: 90px 0; }
.error-page h1 { font-size: 72px; color: var(--primary); }

/* ============ 页脚 ============ */
.site-footer { background: #141416; color: #b5b5b5; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; padding: 50px 0 36px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col ul li { padding: 5px 0; }
.footer-col ul a:hover { color: #fff; }
.social-links { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.social-links a { border: 1px solid #333; padding: 6px 14px; border-radius: 20px; font-size: 13px; }
.social-links a:hover { border-color: var(--primary); color: #fff; }
.footer-contact li { padding: 4px 0; }
.newsletter-form { display: flex; gap: 8px; margin-top: 14px; }
.newsletter-form input { flex: 1; padding: 10px 12px; border-radius: 6px; border: 1px solid #333; background: #222; color: #fff; font-size: 14px; }
.newsletter-form button { background: var(--primary-grad, var(--primary)); color: #fff; border: 0; padding: 10px 18px; border-radius: 6px; font-weight: 700; cursor: pointer; }
.footer-bottom { border-top: 1px solid #26262a; }
.footer-bottom p { padding: 18px 0; font-size: 13px; color: #7d7d80; }

/* ============ 吐司 ============ */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 30px); background: #222; color: #fff; padding: 12px 26px; border-radius: 8px; opacity: 0; transition: all .3s; z-index: 999; pointer-events: none; font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .layout-products { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .about-wrap, .factory-wrap, .layout-product, .layout-contact { grid-template-columns: 1fr; }
  .layout-checkout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cart-item { grid-template-columns: 70px 1fr 90px 100px 90px 30px; gap: 10px; }
  /* 平板扑克牌堆叠：右侧堆叠卡尺寸 */
  .hero-slide:not(.active) { width: 30%; right: 2%; top: 19%; bottom: 24%; transform: translateX(calc(var(--dist, 1) * -7%)) rotate(calc(var(--dist, 1) * -3.8deg)) scale(calc(1 - var(--dist, 1) * .045)); transform-origin: 88% 100%; }
  .hero-content { max-width: 48%; margin-left: 0; margin-right: auto; }
  @media (hover: hover) {
    .hero-slide:not(.active):hover { inset: 0; top: 0; bottom: 0; height: 100%; width: 100%; left: 0; right: auto; transform: none; opacity: 1; transition: none; }
  }
}
@media (max-width: 768px) {
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); flex-direction: column; padding: 12px 14px; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow-lg); z-index: 99; }
  .main-nav.open { display: flex; }
  .topbar-contacts { display: none; }
  .hero { min-height: 470px; }
  /* 移动端扑克牌堆叠：右侧堆叠卡尺寸收窄 */
  .hero-slide:not(.active) { width: 30%; right: 1.5%; top: 21%; bottom: 26%; transform: translateX(calc(var(--dist, 1) * -5.5%)) rotate(calc(var(--dist, 1) * -3deg)) scale(calc(1 - var(--dist, 1) * .04)); transform-origin: 86% 100%; }
  .hero-content { max-width: 58%; margin-left: 0; margin-right: auto; }
  @media (hover: hover) {
    .hero-slide:not(.active):hover { inset: 0; top: 0; bottom: 0; height: 100%; width: 100%; left: 0; right: auto; transform: none; opacity: 1; transition: none; }
  }
  .cat-grid, .product-grid, .news-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .product-card-body h3 { font-size: 13px; min-height: 36px; }
  .section { padding: 44px 0; }
  .news-list-item { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cart-item { grid-template-columns: 64px 1fr; gap: 10px 12px; position: relative; align-items: start; }
  .cart-item-img { grid-row: 1 / 4; width: 64px; height: 64px; }
  .cart-item-info { min-width: 0; padding-right: 26px; }
  .cart-item-info h4 { font-size: 14px; line-height: 1.4; }
  .cart-item-price { grid-column: 2; }
  .cart-item-qty { grid-column: 2; }
  .cart-item-sub { grid-column: 2; }
  .cart-item-remove { position: absolute; right: 2px; top: 12px; z-index: 2; }
  .cart-item-qty button { width: 28px; height: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  /* 移动端搜索：内联框隐藏，图标切换展开 */
  .site-search { display: none; }
  .search-toggle { display: flex; }
  .header-actions { gap: 10px; }
  /* 手机端：登录按钮右移（紧邻购物车右侧），头像菜单下拉贴右 */
  .header-actions .auth-login-btn, .header-actions .customer-menu { order: 3; }
  .header-actions .site-search { order: 1; }
  .header-actions .cart-link { order: 2; }
  .header-actions .search-toggle { order: 4; }
  .header-actions .nav-toggle { order: 5; }
  /* 图标组整体右移贴近屏幕右边缘 + 排版美化（图标与登录按钮高度对齐、胶囊化） */
  .header-actions { margin-right: -12px; padding-right: 2px; }
  .header-actions .auth-login-btn { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; }
  .header-actions .customer-btn { padding: 3px 10px 3px 3px; }
  .header-actions .cart-link, .header-actions .search-toggle, .header-actions .nav-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 5px; }
  .header-actions .cart-link svg, .header-actions .search-toggle svg { width: 19px; height: 19px; }
  .header-actions .nav-toggle { width: 30px; height: 30px; }
  .customer-dropdown { right: 0; left: auto; }
  .customer-name { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-search-open .site-search { display: flex; position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); width: auto; z-index: 98; background: #fff; box-shadow: var(--shadow-lg); }
  .mobile-search-open .site-search:focus-within { width: auto; }
  .mobile-search-open .site-search input { padding: 8px 0; }
}
@media (max-width: 576px) {
  .topbar-tools { width: 100%; justify-content: space-between; }
  .brand-text strong { font-size: 21px; }
  .hero-content h1 { font-size: 27px; }
  .hero-sub { font-size: 15px; margin-bottom: 22px; }
  .hero-dots { bottom: 18px; }
  .hero-cta .btn { padding: 12px 20px; }
  .layout-product, .layout-contact, .cart-wrap, .order-page { padding: 24px 0; }
  .order-items th, .order-items td { padding: 8px; font-size: 13px; }
  .checkout-summary { padding: 16px; }
  /* 顶栏三控件紧凑化（375px 窄屏不挤压） */
  .topbar-tools { gap: 8px; }
  .lang-btn, .cur-btn { padding: 0 8px; font-size: 11px; }
  .mode-switch .mode-btn { font-size: 11.5px; }
  .cur-menu, .lang-menu { min-width: 180px; right: 0; }
}

/* ============ RTL ============ */
[dir="rtl"] .hero-overlay { background: linear-gradient(270deg, rgba(0,0,0,.72), rgba(0,0,0,.35) 55%, rgba(0,0,0,.15)); }
[dir="rtl"] .tier-table th, [dir="rtl"] .tier-table td, [dir="rtl"] .spec-table td, [dir="rtl"] .order-items th, [dir="rtl"] .order-items td { text-align: right; }
[dir="rtl"] .cart-item-remove { margin-right: auto; }

/* ===== 产品图悬停缩放（后台「扁平化按钮开关」控制，约 2 秒平滑过渡） ===== */
body[data-zoom="1"] .product-card-img,
body[data-zoom="1"] .cat-card-img,
body[data-zoom="1"] .gallery-main { overflow: hidden; }
body[data-zoom="1"] .product-card-img img,
body[data-zoom="1"] .cat-card-img img,
body[data-zoom="1"] .gallery-main img {
  transition: transform 2s ease-in-out;
  transform-origin: center;
}
body[data-zoom="1"] .product-card:hover .product-card-img img,
body[data-zoom="1"] .cat-card:hover .cat-card-img img,
body[data-zoom="1"] .product-card-img:hover img { transform: scale(1.1); }

/* ===== 悬浮客服组件（WhatsApp + 在线留言） ===== */
.cs-widget { position: fixed; right: 20px; bottom: 24px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cs-buttons { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cs-btn { position: relative; width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.22); transition: transform .2s ease, box-shadow .2s ease; text-decoration: none; }
.cs-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.cs-wa { background: var(--primary-grad, var(--primary, #c8102e)); }
.cs-chat { background: var(--primary-grad, var(--primary, #c8102e)); }
.cs-wa-num { position: absolute; right: 64px; background: var(--primary-grad, var(--primary, #c8102e)); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 12px; white-space: nowrap; opacity: 1; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.cs-wa-num::after { content: ''; position: absolute; top: 50%; right: -5px; width: 10px; height: 10px; background: var(--primary-grad, var(--primary, #c8102e)); transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
.cs-float-anim { animation: csFloat 1s ease; }
@keyframes csFloat { 0% { transform: translateY(0); } 25% { transform: translateY(-16px) scale(1.06); } 50% { transform: translateY(4px); } 75% { transform: translateY(-7px); } 100% { transform: translateY(0); } }
.cs-popup { position: absolute; bottom: 76px; right: 0; width: 320px; max-width: calc(100vw - 40px); background: #fff; border-radius: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.18); overflow: hidden; }
.cs-popup[hidden] { display: none; }
.cs-popup-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--primary-grad, var(--primary, #c8102e)); color: #fff; font-weight: 700; }
.cs-close { background: transparent; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px; }
.cs-popup-body { background: #ffffff; padding: 14px 16px; }
.cs-form { display: flex; flex-direction: column; gap: 10px; }
.cs-form input, .cs-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #dde1e8; border-radius: 8px; padding: 9px 12px; font-size: 14px; font-family: inherit; }
.cs-form input:focus, .cs-form textarea:focus { outline: none; border-color: var(--primary, #c8102e); }
.cs-send { width: 100%; padding: 10px 0; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; }
.cs-tip { margin: 10px 0 0; font-size: 12px; color: #888; }
@media (max-width: 480px) {
  .cs-widget { right: 12px; bottom: 14px; }
  .cs-btn { width: 50px; height: 50px; }
  .cs-wa-num { right: 58px; font-size: 11px; padding: 4px 10px; }
}
[dir="rtl"] .cs-widget { right: auto; left: 20px; align-items: flex-start; }
[dir="rtl"] .cs-popup { right: auto; left: 0; }
[dir="rtl"] .cs-wa-num { right: auto; left: 62px; }


/* ===== 实时客服聊天 ===== */
.cs-wa-pill { width: auto; height: 48px; border-radius: 999px; padding: 0 16px; gap: 8px; background: var(--primary-grad, var(--primary, #c8102e)); border: 2px solid rgba(255,255,255,.22); }
.cs-wa-pill:hover { background: var(--primary-grad, var(--primary, #c8102e)); filter: brightness(1.08); }
.cs-wa-text { color: #fff; font-weight: 700; font-size: 14px; }
.cs-wa-pill .cs-wa-num { position: static; background: transparent; padding: 0; box-shadow: none; font-size: 12px; font-weight: 600; opacity: 1; }
.cs-wa-pill .cs-wa-num::after { display: none; }
.cs-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: #ff3b30; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; padding: 0 5px; box-sizing: border-box; }
.cs-popup-body { background: #ffffff; max-height: 420px; display: flex; flex-direction: column; }
.cs-welcome { margin: 0 0 10px; font-size: 13px; color: #555; line-height: 1.5; }
.cs-msgs { min-height: 140px; max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 8px; }
.cs-msg { display: flex; flex-direction: column; max-width: 82%; }
.cs-msg.msg-me { align-self: flex-end; align-items: flex-end; }
.cs-msg.msg-them { align-self: flex-start; align-items: flex-start; }
.cs-bubble { padding: 8px 12px; border-radius: 12px; font-size: 13px; line-height: 1.45; word-break: break-word; white-space: pre-wrap; }
.msg-me .cs-bubble { background: var(--primary-grad, var(--primary, #c8102e)); color: #fff; border-bottom-right-radius: 3px; }
.msg-them .cs-bubble { background: #f0f2f5; color: #222; border-bottom-left-radius: 3px; }
.cs-time { font-size: 10px; color: #aaa; margin-top: 2px; }
.cs-tr-btn { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; background: rgba(200,16,46,.08); color: #c8102e; border: 1px solid rgba(200,16,46,.28); border-radius: 999px; padding: 3px 11px; font-size: 11px; font-weight: 600; cursor: pointer; transition: background .2s, transform .15s; line-height: 1.4; }
.cs-tr-btn:hover { background: rgba(200,16,46,.16); }
.cs-tr-btn:active { transform: scale(.96); }
.cs-tr-btn:disabled { opacity: .55; cursor: default; }
.cs-tr-btn.on { color: #666; background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.16); }
.cs-tr-btn.on:hover { background: rgba(0,0,0,.09); }
.cs-composer { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.cs-composer input { flex: 1; min-width: 0; border: 1px solid #dde1e8; border-radius: 8px; padding: 9px 12px; font-size: 14px; font-family: inherit; }
.cs-composer input:focus { outline: none; border-color: var(--primary, #c8102e); }
.cs-att-btn { flex: 0 0 auto; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #dde1e8; background: #fff; color: #555; border-radius: 8px; cursor: pointer; padding: 0; transition: background .15s, border-color .15s, color .15s; }
.cs-att-btn:hover { border-color: var(--primary, #c8102e); color: var(--primary, #c8102e); background: rgba(200, 16, 46, .04); }
.cs-sendbtn { padding: 9px 16px; border: none; border-radius: 8px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.cs-att-wrap { display: block; margin-top: 6px; }
.cs-att-img { display: block; max-width: 210px; max-height: 210px; width: auto; height: auto; border-radius: 10px; object-fit: cover; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.cs-att-vid { display: block; max-width: 230px; max-height: 200px; border-radius: 10px; margin-top: 6px; background: #111; }
@media (max-width: 480px) {
  .cs-wa-pill { height: 44px; padding: 0 12px; }
  .cs-wa-text { font-size: 12px; }
  .cs-popup-body { background: #ffffff; max-height: 380px; }
  .cs-msgs { max-height: 220px; }
  .cs-att-img { max-width: 180px; max-height: 180px; }
  .cs-att-vid { max-width: 200px; max-height: 180px; }
  .cs-att-btn { width: 40px; height: 40px; }
}
[dir="rtl"] .cs-msg.msg-me { align-self: flex-start; align-items: flex-start; }
[dir="rtl"] .cs-msg.msg-them { align-self: flex-end; align-items: flex-end; }
[dir="rtl"] .msg-me .cs-bubble { border-radius: 12px; border-bottom-left-radius: 3px; border-bottom-right-radius: 0; }
[dir="rtl"] .msg-them .cs-bubble { border-radius: 12px; border-bottom-right-radius: 3px; border-bottom-left-radius: 0; }

@media (max-width: 576px) {
  .lang-btn { font-size: 11px; padding: 0 9px; }
  .lang-menu { min-width: 170px; }
}
/* ===== 首页板块底图（侧向装修）：深度透明遮罩，底图完整透出 ===== */
.section-bg { background-size: cover; background-position: center; position: relative; background-repeat: no-repeat; }
.section-bg::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.06); }
.section-bg-dark::before { background: rgba(17,17,19,.26); }
/* 产品系列板块复用统计区底图：遮罩更浅，底盘/地图细节透出，与统计区视觉一致 */
.section-categories.section-bg-dark::before { background: rgba(17,17,19,.16); }
/* 深色底图上的分类卡片：白高光描边 + 深投影，更精致突出 */
.section-categories .cat-card { border: 1px solid rgba(255,255,255,.16); box-shadow: 0 10px 32px rgba(0,0,0,.38); }
.section-categories .cat-card:hover { border-color: rgba(200,16,46,.55); box-shadow: 0 16px 44px rgba(0,0,0,.5); }
.section-categories .cat-card-body { background: linear-gradient(180deg, #ffffff, #f7f8fa); }
.section-bg > .container { position: relative; z-index: 1; }
.site-footer.section-bg .footer-grid, .site-footer.section-bg .footer-bottom { position: relative; z-index: 1; }
@media (min-width: 992px) { .section-bg { background-attachment: fixed; } }

/* ===== 客服升级：商品识别 + 三端适配 ===== */
.cs-prod { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.18); color: inherit; text-decoration: underline; font-weight: 700; }
.msg-them .cs-prod { background: #e8eef5; color: #0b5cab; }
.cs-msg.msg-me .cs-prod { color: #fff; }
@media (max-width: 480px) {
  .cs-popup { width: calc(100vw - 26px); max-width: none; bottom: 70px; }
  .cs-popup-body { background: #ffffff; max-height: min(420px, 62vh); }
  .cs-msgs { min-height: 120px; max-height: min(300px, 46vh); }
  .cs-composer input { font-size: 16px; }
}
@media (min-width: 481px) and (max-width: 900px) {
  .cs-popup { width: 360px; }
  .cs-popup-body { background: #ffffff; max-height: min(440px, 60vh); }
  .cs-msgs { max-height: min(320px, 44vh); }
}
@media (min-width: 901px) {
  .cs-popup { width: 340px; }
}

/* 已售数量（零售模式） */
.sold-count { display:inline-block; margin-left:8px; font-size:12px; color:#888; background:#f5f5f5; border-radius:10px; padding:1px 8px; vertical-align:middle; }
.product-card .sold-count { margin-left:6px; }
.price-block .sold-count { margin:6px 0 0; }

/* hero 图片：任意比例一律铺满全屏大图（横图/竖图 cover 裁切居中，保证大屏视觉） */
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: 0; color: transparent; font-size: 0; transition: transform .5s ease; }
.hero-slide.contain { background-color: #0f1419; }

/* 扑克牌堆叠：悬停某张牌 → 该牌放大为大图展示，移走自然恢复 */
.hero-slide .hero-content { transition: opacity .45s ease .08s, transform .45s ease .08s; }
.hero-slide.active .hero-overlay { opacity: 1; }
@media (hover: hover) {
  .hero-slide:not(.active):hover .hero-overlay { opacity: .35; }
}
/* 触摸反馈：按下时非激活牌微微上浮 */
.hero.is-touch .hero-slide:not(.active) { opacity: 1; filter: brightness(1.06); }



/* 主题渐变丝滑：按钮背景 135° 渐变 + hover 位移动画 */
.btn-primary, .search-bar button, .newsletter-form button, .cs-wa, .cs-chat, .cs-popup-head, .cs-wa-pill, .msg-me .cs-bubble {
  background-size: 180% 180%;
  background-position: 0% 50%;
}
.btn-primary, .search-bar button, .newsletter-form button { transition: background-position .4s ease, filter .2s ease; }
.btn-primary:hover, .search-bar button:hover, .newsletter-form button:hover,
.cs-wa:hover, .cs-chat:hover, .cs-wa-pill:hover { background-position: 100% 50%; }

/* ---- 下单页：区号行 / 实时同步 / 已支付 ---- */
.dial-row { display: flex; gap: 8px; }
.dial-row select { flex: 0 0 96px; width: 96px; }
.live-sync { font-size: 13px; color: var(--muted, #888); margin: 4px 0 14px; }
.live-sync.on { color: var(--primary, #c8a24b); }
.live-sync.synced { color: #2e9e44; }
.form-field select:focus { outline: 2px solid var(--primary); border-color: transparent; }
.pay-link-note { display: block; font-size: 12px; color: var(--muted, #888); margin-top: 2px; font-style: normal; }
.mark-paid-box { margin: 12px 0; padding: 12px 14px; background: #fffdf3; border: 1px dashed #d9b45a; border-radius: 8px; }
.mark-paid-box p { margin: 0 0 8px; font-size: 14px; }
@media (max-width: 640px) {
  .dial-row select { flex: 0 0 84px; width: 84px; }
  .form-grid { grid-template-columns: 1fr !important; }
}

/* ---- WhatsApp / 客服图标独立配色（后台上传色，留空跟随主色） ---- */
.cs-wa { background: var(--wa-color, var(--primary-grad, var(--primary, #c8102e))); background-size: 180%; }
.cs-wa:hover { filter: brightness(1.08); }
.cs-wa-pill { background: var(--wa-color, var(--primary-grad, var(--primary, #c8102e))); border-color: rgba(255,255,255,.22); }
.cs-wa-pill:hover { background: var(--wa-color, var(--primary-grad, var(--primary, #c8102e))); filter: brightness(1.08); }
.cs-wa-num, .cs-wa-num::after { background: var(--wa-color, var(--primary-grad, var(--primary, #c8102e))); }
.cs-chat { background: var(--cs-color, var(--primary-grad, var(--primary, #c8102e))); background-size: 180%; }
.cs-chat:hover { filter: brightness(1.08); }
.cs-popup-head { background: var(--cs-color, var(--primary-grad, var(--primary, #c8102e))); }

.pay-jump-hint { margin: 10px 0 0; font-size: 13px; color: #667; line-height: 1.5; }


#manualOrderBtn { width: 100%; margin-top: 14px; }
#payJumpHintSummary { margin-top: 8px; }

/* 下单并支付：红色文字醒目按钮 */
#placeOrderBtn, #manualOrderBtn { background: #fff; color: #d3232a; border-color: #d3232a; }
#placeOrderBtn:hover, #manualOrderBtn:hover { background: #d3232a; color: #fff; }
#placeOrderBtn:disabled, #manualOrderBtn:disabled { background: #f3f3f3; color: #aaa; border-color: #ddd; cursor: not-allowed; }



/* ============ 装修美化插件适配（vendor: AOS/Swiper/FA） ============ */
.cat-swiper { overflow: hidden; padding: 6px 2px 12px; }
.cat-swiper .swiper-slide { height: auto; }
.cat-swiper .cat-card { width: 100%; height: 100%; margin: 0; display: flex; flex-direction: column; }
.cat-swiper .cat-card-img { aspect-ratio: 4/3; }
.cat-swiper .cat-card-body { flex: 1; }
.social-links a i, .footer-contact li i { margin-right: 7px; font-size: 15px; color: var(--primary, #c8102e); }
.social-links a i { font-size: 14px; vertical-align: -1px; }
/* ============ 装修美化：Hero 动画 + 优势图标 + 热销 Swiper ============ */
.hero-content h1.animate__animated, .hero-sub.animate__animated { animation-fill-mode: both; }
.adv-ico { display: block; font-size: 34px; line-height: 1; margin-bottom: 10px; color: var(--primary, #c8102e); opacity: .92; }
.prod-swiper { overflow: hidden; padding: 6px 2px 12px; }
.prod-swiper .swiper-slide { height: auto; }
.prod-swiper .product-card { width: 100%; height: 100%; margin: 0; display: flex; flex-direction: column; }
.prod-swiper .product-card-img { aspect-ratio: 1/1; }
.prod-swiper .product-card-body { flex: 1; }
/* ============ 文字颜色适配（醒目·大气·和谐） ============ */
/* 深色背景图板块：标题纯白 + 正文亮白 + 深色描影，底图深度透明透出后依然醒目 */
.section-bg .section-head h2,
.section-bg h2,
.section-bg-dark .section-head h2,
.section-bg-dark h2 { color: #ffffff; text-shadow: 0 2px 14px rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.4); }
.section-bg .section-head p,
.section-bg p,
.section-bg-dark .section-head p,
.section-bg-dark p { color: rgba(255,255,255,.96); text-shadow: 0 1px 10px rgba(0,0,0,.5); }
/* 浅色/无背景板块：标题深墨色，大气稳重 */
.section:not(.section-bg):not(.section-bg-dark) .section-head h2 { color: #14161a; }
/* 标题装饰条统一主题色（含渐变/黑金）发光点缀 */
.section-head h2::after { background: var(--primary-grad, var(--primary, #c8102e)); box-shadow: 0 2px 12px rgba(200,16,46,.35); }
.section-head h2 { letter-spacing: .5px; }
/* 优势统计区（深色底）数字与标签 */
.section-bg-dark .adv-num { color: #ffffff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.section-bg-dark .adv-ico { color: var(--primary-grad, var(--primary, #c8102e)); }
.section-bg-dark .adv-label { color: rgba(255,255,255,.92); }
/* 关于/工厂/CTA 正文（深色底） */
.about-body h2, .factory-body h2, .cta-wrap h2 { color: #ffffff; }
.about-body p, .factory-body p, .cta-wrap p, .factory-points li { color: rgba(255,255,255,.94); }
.factory-points li i, .factory-points li::before { color: var(--primary, #c8102e); }
/* 页脚（深色底）层级化：标题纯白、正文次白、版权弱化 */
.site-footer h4 { color: #ffffff; }
.site-footer p, .site-footer li, .site-footer .footer-contact a { color: rgba(255,255,255,.86); }
.site-footer .footer-bottom { color: rgba(255,255,255,.68); }
.site-footer .social-links a { color: rgba(255,255,255,.9); }
/* ============ 产品分类按钮 + 下拉（悬停1秒自动选择/移出1秒自动收起） ============ */
.cat-picker { position: relative; }
.cat-picker-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 16px; background: var(--primary-grad, var(--primary, #c8102e)); color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; letter-spacing: .3px; box-shadow: 0 4px 14px rgba(200,16,46,.22); transition: box-shadow .25s; }
.cat-picker-btn:hover { box-shadow: 0 6px 18px rgba(200,16,46,.32); }
.cat-picker-btn .cat-picker-arrow { transition: transform .25s; font-size: 13px; }
.cat-picker.open .cat-picker-btn .cat-picker-arrow { transform: rotate(180deg); }
.cat-picker-menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 12px; box-shadow: 0 14px 36px rgba(0,0,0,.2); max-height: 360px; overflow-y: auto; z-index: 60; padding: 7px; display: none; }
.cat-picker.open .cat-picker-menu { display: block; animation: catMenuIn .22s ease; }
@keyframes catMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cat-picker-menu a { display: block; padding: 9px 13px; border-radius: 7px; color: #26282c; font-size: 13.5px; text-decoration: none; line-height: 1.5; transition: background .15s, color .15s; }
.cat-picker-menu a:hover, .cat-picker-menu a.hovering { background: rgba(200,16,46,.09); color: var(--primary, #c8102e); }
.cat-picker-menu a.active { background: var(--primary-grad, var(--primary, #c8102e)); color: #fff; font-weight: 600; }
.cat-picker-menu a.cat-main { font-weight: 600; color: #1c1e21; margin-top: 2px; }
.cat-picker-menu .cat-sub-list { padding: 0 0 4px 14px; border-left: 1px solid rgba(200,16,46,.18); margin-left: 13px; }
.cat-picker-menu a.cat-sub { padding: 6px 11px; font-size: 12.5px; color: #5a5e66; }
.cat-picker-menu a.cat-sub:hover { color: var(--primary, #c8102e); }
.cat-picker-menu a.cat-sub.active { background: rgba(200,16,46,.12); color: var(--primary, #c8102e); font-weight: 600; }
.cat-picker-menu::-webkit-scrollbar { width: 6px; }
.cat-picker-menu::-webkit-scrollbar-thumb { background: rgba(200,16,46,.35); border-radius: 3px; }

/* ============ 置顶导航：磨砂透明 → 滚动渐变白 ============ */
:root {
  --hdr-h: 76px;
  --topbar-h: 0px;
  --hdr-fg: #ffffff;
  --hdr-fg-2: rgba(255,255,255,.88);
  --hdr-accent: #ffffff;
  --hdr-chip-bg: rgba(255,255,255,.16);
  --hdr-chip-bd: rgba(255,255,255,.32);
}
body.scrolled {
  --hdr-fg: #1b1d21;
  --hdr-fg-2: rgba(27,29,33,.78);
  --hdr-accent: var(--primary, #c8102e);
  --hdr-chip-bg: #f4f5f7;
  --hdr-chip-bd: var(--line);
}
.topbar { background: linear-gradient(135deg, rgba(24,56,110,.95) 0%, rgba(72,94,122,.90) 45%, rgba(148,160,176,.85) 70%, rgba(200,16,46,.93) 100%); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); transition: background .45s ease; color: var(--hdr-fg-2); }
body.scrolled .topbar { background: rgba(255,255,255,.95); }
.header-main { background: linear-gradient(135deg, rgba(24,56,110,.95) 0%, rgba(72,94,122,.90) 45%, rgba(148,160,176,.85) 70%, rgba(200,16,46,.93) 100%); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); border-bottom: 1px solid rgba(255,255,255,.18); box-shadow: none; transition: background .45s ease, border-color .45s ease, box-shadow .45s ease; }
body.scrolled .header-main { background: rgba(255,255,255,.97); border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.09); }
.topbar-contacts a { color: var(--hdr-fg-2); }
.topbar-contacts a:hover { color: var(--hdr-fg); }
.mode-btn { color: var(--hdr-fg-2); }
.mode-btn.active { background: var(--primary-grad, var(--primary)); color: #fff; }
.main-nav a { color: var(--hdr-fg); }
.main-nav a:hover { color: var(--hdr-accent); }
.main-nav a.active { color: var(--hdr-accent); }
.main-nav a.active::after { background: var(--primary-grad, var(--primary)); }
.cart-link { color: var(--hdr-fg); }
/* hero 上移被磨砂置顶区（topbar + header-main）覆盖 → 透视下方轮播大图 */
.hero { margin-top: calc(-1 * (var(--hdr-h) + var(--topbar-h))); }
@media (max-width: 767px) { :root { --hdr-h: 62px; } .product-info { padding: 22px 20px; } }

/* scrolled 背景强制白（修正覆盖顺序） */
body.scrolled .header-main { background: rgba(255,255,255,.97) !important; border-bottom-color: var(--line) !important; box-shadow: 0 4px 20px rgba(0,0,0,.09) !important; }
body.scrolled .topbar { background: rgba(255,255,255,.95) !important; }

/* 非首页：导航改为透明玻璃磨砂渐变（蓝→金属灰→红，白字可读，透出 body 背景图） */
body:not(.page-home) .header-main { background: linear-gradient(135deg, rgba(30,62,118,.93) 0%, rgba(86,108,136,.88) 45%, rgba(150,162,178,.82) 70%, rgba(200,16,46,.92) 100%); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); border-bottom: 1px solid rgba(255,255,255,.18); box-shadow: 0 3px 18px rgba(8,20,48,.18) !important; }
body:not(.page-home) .topbar { background: linear-gradient(135deg, rgba(30,62,118,.93) 0%, rgba(86,108,136,.88) 45%, rgba(150,162,178,.82) 70%, rgba(200,16,46,.92) 100%); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); }
body:not(.page-home) .topbar-contacts a { color: #e6e8ec !important; }
body:not(.page-home) .topbar-contacts a:hover { color: #ffffff !important; }
body:not(.page-home) .mode-btn { color: #dde2e8 !important; }
body:not(.page-home) .lang-btn { background: rgba(255,255,255,.16) !important; color: #ffffff !important; border-color: rgba(255,255,255,.30) !important; }
body:not(.page-home) .main-nav a { color: #ffffff !important; }
body:not(.page-home) .main-nav a:hover, body:not(.page-home) .main-nav a.active { color: #ff5161 !important; }
body:not(.page-home) .main-nav a.active::after { background: var(--primary-grad, var(--primary)) !important; }
body:not(.page-home) .cart-link { color: #ffffff !important; }
body:not(.page-home) .search-toggle { color: #ffffff !important; }
body:not(.page-home) .nav-toggle span { background: #ffffff !important; }
/* 非首页滚动后：白底磨砂玻璃 + 深字（可读） */
body:not(.page-home).scrolled .header-main { background: rgba(255,255,255,.96) !important; border-bottom-color: var(--line) !important; backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); }
body:not(.page-home).scrolled .topbar { background: rgba(255,255,255,.94) !important; }
body:not(.page-home).scrolled .main-nav a { color: var(--ink-2) !important; }
body:not(.page-home).scrolled .main-nav a:hover, body:not(.page-home).scrolled .main-nav a.active { color: var(--primary) !important; }
body:not(.page-home).scrolled .topbar-contacts a { color: var(--hdr-fg-2) !important; }
body:not(.page-home).scrolled .mode-btn { color: var(--hdr-fg-2) !important; }
body:not(.page-home).scrolled .lang-btn { background: #f4f5f7 !important; color: var(--ink) !important; border-color: var(--line) !important; }
body:not(.page-home).scrolled .cart-link, body:not(.page-home).scrolled .search-toggle { color: var(--ink) !important; }
body:not(.page-home).scrolled .nav-toggle span { background: var(--ink) !important; }
/* 首页顶部态白字（磨砂透 hero 大图），滚动后由 .scrolled 变深色 */
.page-home:not(.scrolled) .main-nav a { color: #ffffff; }

/* 移动端汉堡线颜色跟随 header 状态（顶部白/滚动深） */
.nav-toggle span { background: var(--hdr-fg); }

/* 手机端：悬浮客服按钮紧凑化 + 向下滚动自动滑出隐藏（不遮挡标题/正文），向上滚动滑回 */
@media (max-width: 768px) {
  .cs-widget { transition: transform .4s ease, opacity .4s ease; }
  .cs-widget.cs-hide { transform: translateX(125%); opacity: 0; pointer-events: none; }
  .cs-wa-pill { padding: 6px 10px; gap: 5px; border-radius: 20px; height: 40px; }
  .cs-wa-pill svg { width: 16px; height: 16px; }
  .cs-wa-text { font-size: 11px; }
  .cs-wa-num { font-size: 10px; }
  .cs-btn.cs-chat { width: 42px; height: 42px; }
  .cs-btn.cs-chat svg { width: 19px; height: 19px; }
  /* 主内容底部留白，保证最后表单字段可滚动到悬浮按钮上方 */
  main { padding-bottom: 150px; }
}

/* 手机端展开的导航下拉：白色背景 → 深色链接（覆盖首页磨砂白字） */
@media (max-width: 768px) {
  .main-nav a { color: var(--ink-2) !important; }
  .main-nav a:hover, .main-nav a.active { color: var(--primary) !important; }
  .main-nav a.active::after { background: var(--primary-grad, var(--primary)) !important; }
}

/* 非首页：header-main 白色，汉堡线必须深色（覆盖 --hdr-fg 白色） */
body:not(.page-home) .nav-toggle span { background: var(--ink) !important; }

/* 功能页可读性：购物车/结账表单加白色卡片，避免深色全站背景透出 */
.cart-wrap { background: #fff; border-radius: 14px; padding: 28px; margin-top: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.10); }
.checkout-form-wrap { background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 8px 28px rgba(0,0,0,.10); }
.checkout-summary { box-shadow: 0 8px 28px rgba(0,0,0,.10); }
@media (max-width: 768px) {
  .cart-wrap { padding: 18px 14px; border-radius: 10px; }
  .checkout-form-wrap { padding: 18px 14px; border-radius: 10px; }
}

/* 联系页左侧信息：白色卡片（与右侧表单一致），避免深色背景上深字 */
.contact-info { background: #fff; border-radius: 14px; padding: 26px; box-shadow: 0 8px 28px rgba(0,0,0,.10); align-self: start; }
@media (max-width: 768px) { .contact-info { padding: 18px 14px; border-radius: 10px; } }

/* ============ 弥散渐变氛围层（vibe-designer 技法·品牌红×黑金·克制版） ============ */
/* 全站：低透明径向弥散光晕浮于背景之上、内容之下；缓慢漂移，不抢主体 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(at 16% 8%, rgba(200,16,46,.09) 0px, transparent 42%),
    radial-gradient(at 84% 16%, rgba(201,162,39,.07) 0px, transparent 46%),
    radial-gradient(at 28% 90%, rgba(200,16,46,.06) 0px, transparent 48%),
    radial-gradient(at 94% 76%, rgba(26,26,30,.05) 0px, transparent 50%);
  animation: frg-aurora 28s ease-in-out infinite alternate;
}
@keyframes frg-aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-.8%, 1.2%, 0) scale(1.015); }
}
/* hero：主视觉叠加品牌红×黑金弥散光晕（叠入现有深色遮罩，保留对比） */
.hero-overlay {
  background:
    radial-gradient(at 78% 20%, rgba(201,162,39,.14) 0px, transparent 44%),
    radial-gradient(at 16% 78%, rgba(200,16,46,.18) 0px, transparent 46%),
    radial-gradient(at 46% 10%, rgba(200,16,46,.10) 0px, transparent 40%),
    linear-gradient(100deg, rgba(8,10,14,.76) 0%, rgba(8,10,14,.48) 46%, rgba(8,10,14,.22) 74%, rgba(8,10,14,.36) 100%);
}
/* 轮播卡无背景图时深色兜底底，杜绝浅底白字 */
.hero-slide { background-color: #0d1016; }
/* 板板块标题区：标题装饰条保留主题色发光（已有），副标题加氛围 */
.section-head p { text-shadow: 0 0 24px rgba(200,16,46,.08); }

/* ============ 细致巧妙点缀（high-end-visual-design 技法·轻量版） ============ */
/* 卡片 hover：1px 品牌渐变描边（红→黑金→红）+ 柔和辉光 */
.cat-card, .product-card, .news-card { position: relative; }
.cat-card::before, .product-card::before, .news-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.cat-card:hover::before, .product-card:hover::before, .news-card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, var(--primary, #c8102e), #c9a227, var(--primary, #c8102e));
}
.cat-card:hover, .product-card:hover, .news-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.10), 0 0 0 1px rgba(200,16,46,.12), 0 0 26px rgba(200,16,46,.10);
}
/* 按钮：弹性微上浮 + 品牌辉光 + 按下回弹（磁吸手感） */
.btn-primary, .btn-outline { transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease, background .2s ease; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(200,16,46,.35), 0 0 28px rgba(200,16,46,.16); }
.btn-primary:active { transform: scale(.97); }
/* 吸顶导航：底部 1px 品牌渐变亮线（玻璃质感点缀） */
.header-main { position: relative; }
.header-main::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,16,46,.38), rgba(201,162,39,.30), transparent);
  pointer-events: none;
}

/* ============ 专业色调与性能守卫 ============ */
/* 移动端关闭弥散漂移动画（省电/流畅）；prefers-reduced-motion 一律静止 */
@media (max-width: 768px) { body::after { animation: none; } }
@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }
/* 深色全站背景主题下，弥散层同样适用（透明度随背景色自适应） */
body[data-bg="dark"]::after { opacity: .9; }

/* ============ 全球供应网络地图（真实大洲轮廓 + 弥散光晕 + 广州辐射弧线） ============ */
.section-adv { position: relative; }
.stats-map { position: relative; margin: 34px auto 0; width: min(920px, 96%); }
.stats-map svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 40px rgba(200,16,46,.12)); }
/* 陆地轮廓：颜色自适应主题主色（var(--primary)），低透明不抢数字 */
.map-land { fill: var(--primary, #c8102e); opacity: .14; stroke: var(--primary, #c8102e); stroke-opacity: .42; stroke-width: .8; }
/* 辐射弧线：品牌红→黑金渐变，流动虚线 */
.map-arcs { fill: none; stroke: url(#frgArcGrad); stroke-width: 1.1; stroke-linecap: round; stroke-dasharray: 5 7; animation: frg-arc-flow 14s linear infinite; }
@keyframes frg-arc-flow { to { stroke-dashoffset: -240; } }
/* 目的港光点：金色脉冲 */
.map-dot { fill: #c9a227; transform-box: fill-box; transform-origin: center; animation: frg-dot-pulse 2.6s ease-in-out infinite; }
.map-dot:nth-child(2n) { animation-delay: .6s; }
.map-dot:nth-child(3n) { animation-delay: 1.2s; }
@keyframes frg-dot-pulse { 0%, 100% { opacity: .9; r: 3.2; } 50% { opacity: .45; r: 2.1; } }
/* 广州总部：主光点 + 扩散涟漪 */
.map-dot-hq { fill: var(--primary, #c8102e); transform-box: fill-box; transform-origin: center; animation: frg-hq-pulse 2.2s ease-in-out infinite; }
@keyframes frg-hq-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
.map-ring { fill: none; stroke: var(--primary, #c8102e); stroke-opacity: .65; stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: frg-ring 2.4s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes frg-ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
/* 自定义上传图模式 */
.stats-map-img img { width: 100%; height: auto; border-radius: 16px; display: block; box-shadow: 0 10px 40px rgba(0,0,0,.14); }
/* 三端自适应：移动端收窄、关闭动画省电 */
@media (max-width: 768px) {
  .stats-map { margin-top: 22px; width: 100%; }
  .map-arcs, .map-dot, .map-dot-hq, .map-ring { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .map-arcs, .map-dot, .map-dot-hq, .map-ring { animation: none; }
}

/* ============ 产品详情深色面板（描述/规格/询价 + 顾客评价）碳纤维渐变 ============ */
.product-detail-panel { background: repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 6px), linear-gradient(165deg, #14161a 0%, #1e2126 48%, #0f1114 100%); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 24px 30px 16px; margin: 8px 0 26px; box-shadow: var(--shadow-lg); }
.product-detail-panel .tabs { border-bottom-color: rgba(255,255,255,.14); margin: 4px 0 20px; }
.product-detail-panel .tab-btn { color: rgba(255,255,255,.6); }
.product-detail-panel .tab-btn:hover { color: #fff; }
.product-detail-panel .tab-btn.active { color: #ff5b74; border-bottom-color: #ff5b74; }
.product-detail-panel .tab-content.active { color: rgba(255,255,255,.94); font-size: 16px; line-height: 1.85; }
.product-detail-panel .tab-content a.btn-primary { background: #fff; color: var(--primary); }
.product-detail-panel .spec-table td { border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.92); }
.product-detail-panel .spec-table td:first-child { background: rgba(255,255,255,.08); color: #fff; }
.product-reviews-panel { background: repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 6px), linear-gradient(165deg, #14161a 0%, #1e2126 48%, #0f1114 100%); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 30px 30px 12px; margin-bottom: 30px; box-shadow: var(--shadow-lg); }
.product-reviews-panel .reviews-head h2 { color: #fff; }
.product-reviews-panel .review-avg-num { color: #ff5b74; }
.product-reviews-panel .review-avg-count { color: rgba(255,255,255,.66); }
.product-reviews-panel .rv-stars .star-off { color: rgba(255,255,255,.28); }
.product-reviews-panel .review-item { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); border-radius: var(--radius); }
.product-reviews-panel .review-item-top strong { color: #fff; }
.product-reviews-panel .review-date { color: rgba(255,255,255,.55); }
.product-reviews-panel .review-item p { color: rgba(255,255,255,.88); }
.product-reviews-panel .review-empty { color: rgba(255,255,255,.7); font-size: 15px; padding: 12px 0 18px; }
.product-reviews-panel .review-form { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.product-reviews-panel .review-form h3 { color: #fff; }
.product-reviews-panel .review-form label { color: rgba(255,255,255,.9); }
.product-reviews-panel .review-form input[type=text], .product-reviews-panel .review-form textarea { background: rgba(255,255,255,.92); border-color: transparent; color: #14161a; }
.product-reviews-panel .review-form .star-input .star-pick { color: rgba(255,255,255,.28); }
.product-reviews-panel .review-form .star-input .star-pick.active, .product-reviews-panel .review-form .star-input .star-pick:hover { color: #f5a623; }

/* ============ 板块背景图统一深色罩（任意深浅底图文字都醒目） ============ */
.section-bg, .section-bg-dark { position: relative; }
.section-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,16,.50), rgba(10,12,16,.58)); z-index: 0; pointer-events: none; }
.section-bg-dark::before { background: linear-gradient(180deg, rgba(8,9,12,.62), rgba(8,9,12,.70)); }
.section-bg > *, .section-bg-dark > * { position: relative; z-index: 1; }
.site-footer.section-bg { background-color: #141416; }

/* ============ 全站统一深色体系：内容面板/卡片/表格/表单（对齐产品详情页风格·三端适配） ============ */
.layout-products, .layout-contact, .cart-wrap, .layout-checkout, .order-page, .layout-track, .account-page, .search-results, .error-page {
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 6px), linear-gradient(165deg, #14161a 0%, #1e2126 48%, #0f1114 100%);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  padding: 34px 36px;
  margin: 10px 0 34px;
  box-shadow: var(--shadow-lg);
  color: rgba(255,255,255,.92);
}
/* —— 产品中心 / 搜索页 —— */
.layout-products .panel, .search-results .panel, .account-page .panel { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.layout-products .panel-title, .search-results .panel-title, .account-page .panel-title { color: #fff; border-bottom-color: rgba(255,255,255,.16); font-weight: 800; }
.layout-products .side-cats a, .search-results .side-cats a { color: rgba(255,255,255,.82); }
.layout-products .side-cats a:hover, .search-results .side-cats a:hover { background: rgba(255,255,255,.1); color: #fff; }
.layout-products .search-bar input, .search-results .search-bar input { background: rgba(255,255,255,.92); color: #14161a; }
.result-count { color: rgba(255,255,255,.78); font-size: 13.5px; font-weight: 600; }
.layout-products .product-card, .search-results .product-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.layout-products .product-card:hover, .search-results .product-card:hover { border-color: rgba(255,92,116,.5); }
.layout-products .product-card-body, .search-results .product-card-body { background: transparent; }
.layout-products .product-card-body h3, .search-results .product-card-body h3 { color: #fff; font-weight: 700; }
.layout-products .sku, .search-results .sku { color: rgba(255,255,255,.72); font-weight: 600; font-size: 13px; }
.layout-products .price, .search-results .price { color: #ff5b74; }
.pagination a { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: rgba(255,255,255,.85); font-weight: 600; }
.pagination a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
/* —— 购物车 —— */
.cart-item { border-bottom-color: rgba(255,255,255,.12); }
.cart-item-info h4 { color: #fff; font-weight: 700; }
.cart-item .mode-tag { color: rgba(255,255,255,.7); }
.cart-item-price, .cart-item-subtotal { color: #ff5b74; font-weight: 800; }
.cart-item-qty button, .cart-item-qty input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.cart-total { color: #fff; font-weight: 700; }
.cart-total .total-amount { color: #ff5b74; font-size: 22px; font-weight: 800; }
.cart-empty { color: rgba(255,255,255,.8); }
/* —— 结算 —— */
.checkout-form .form-field label, .checkout-summary label { color: rgba(255,255,255,.9); }
.checkout-form input, .checkout-form select, .checkout-form textarea { background: rgba(255,255,255,.92); color: #14161a; }
.checkout-summary { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.checkout-summary h3, .checkout-summary .summary-title { color: #fff; }
.checkout-summary .summary-line, .checkout-summary .summary-total { color: rgba(255,255,255,.92); }
.checkout-summary .summary-total { color: #ff5b74; font-weight: 800; }
.checkout-summary .pay-option { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: #fff; }
.checkout-summary .pay-option strong { color: #fff; }
.checkout-summary .pay-option small { color: rgba(255,255,255,.7); }
.checkout-summary .pay-option.active { border-color: var(--primary); background: rgba(200,16,46,.14); }
/* —— 订单 / 我的订单 / 订单查询 —— */
.order-items th { color: #fff; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.07); }
.order-items td { border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.9); }
.order-items td:first-child, .order-items td strong { color: #fff; font-weight: 700; }
.order-status, .status-paid { color: #6ef79b; font-weight: 700; }
.status-pending { color: #ffd0d8; font-weight: 700; }
.order-track-form input { background: rgba(255,255,255,.92); color: #14161a; }
.order-page h1, .order-page h2, .order-page h3 { color: #fff; }
.layout-track h1, .layout-track h2 { color: #fff; }
.layout-track label { color: rgba(255,255,255,.9); }
/* —— 联系 —— */
.contact-list strong { color: rgba(255,255,255,.65); }
.contact-list span { color: #fff; }
.contact-tip { background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); }
.contact-form-wrap { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.contact-form-wrap .form-field label { color: rgba(255,255,255,.9); }
.contact-form-wrap input, .contact-form-wrap textarea, .contact-form-wrap select { background: rgba(255,255,255,.92); color: #14161a; }
/* —— 账号 —— */
.account-head h1 { color: #fff; }
.account-head .muted { color: rgba(255,255,255,.65); }
.account-login-prompt h1 { color: #fff; }
.account-login-prompt p { color: rgba(255,255,255,.8); }
/* —— 新闻列表 + 文章正文（全局，首页板块同步统一） —— */
.news-grid .news-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.news-grid .news-card:hover { border-color: rgba(255,92,116,.5); }
.news-grid .news-card-body { background: transparent; }
.news-grid .news-card-body h3 { color: #fff; font-weight: 700; }
.news-grid .news-card-body p { color: rgba(255,255,255,.82); }
.news-grid .news-card-body time { color: rgba(255,255,255,.6); }
.article { background: repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 6px), linear-gradient(165deg, #14161a 0%, #1e2126 48%, #0f1114 100%); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); padding: 40px 44px 52px; margin: 10px 0 34px; box-shadow: var(--shadow-lg); }
.article h1 { color: #fff; }
.article time { color: rgba(255,255,255,.6); }
.article-content { color: rgba(255,255,255,.92); }
/* —— 深色容器内辅助文字与按钮 —— */
.layout-products .muted, .cart-wrap .muted, .layout-checkout .muted, .order-page .muted, .layout-track .muted, .account-page .muted, .layout-contact .muted { color: rgba(255,255,255,.6); }
.cart-wrap .btn-outline, .layout-checkout .btn-outline, .order-page .btn-outline, .layout-products .btn-outline, .layout-contact .btn-outline, .account-page .btn-outline, .layout-track .btn-outline { border-color: rgba(255,255,255,.8); color: #fff; }
.cart-wrap .btn-outline:hover, .layout-checkout .btn-outline:hover, .order-page .btn-outline:hover, .layout-products .btn-outline:hover, .layout-contact .btn-outline:hover, .account-page .btn-outline:hover { background: #fff; color: #14161a; border-color: #fff; }
/* —— 手机端收窄 —— */
@media (max-width: 767px) {
  .layout-products, .layout-contact, .cart-wrap, .layout-checkout, .order-page, .layout-track, .account-page, .search-results, .error-page, .article { padding: 22px 20px; }
}


/* —— 首页深色背景板块内产品卡统一深色 —— */
.section-bg .product-card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.section-bg .product-card:hover { border-color: rgba(255,92,116,.5); }
.section-bg .product-card-body { background: transparent; }
.section-bg .product-card-body h3 { color: #fff; font-weight: 700; }
.section-bg .sku { color: rgba(255,255,255,.72); font-weight: 600; }
.section-bg .price { color: #ff5b74; }

/* ============ 三端头部功能图标排版统一优化 ============ */
@media (max-width: 1024px) {
  .header-actions { gap: 8px; }
  .header-actions .cart-link, .header-actions .search-toggle, .header-actions .nav-toggle {
    width: 36px; height: 36px; border-radius: 12px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.24);
    transition: background .2s ease, border-color .2s ease, transform .15s ease;
    flex: none;
  }
  .header-actions .cart-link:active, .header-actions .search-toggle:active, .header-actions .nav-toggle:active { transform: scale(.94); }
  .header-actions .cart-link:hover, .header-actions .search-toggle:hover, .header-actions .nav-toggle:hover { background: rgba(255,255,255,.24); }
  .header-actions .cart-link svg, .header-actions .search-toggle svg { width: 18px; height: 18px; }
  .header-actions .nav-toggle { width: 36px; height: 36px; padding: 9px; box-sizing: border-box; }
  .header-actions .nav-toggle span { height: 2.5px; }
  .cart-count { top: -5px; right: -5px; min-width: 18px; height: 18px; font-size: 11px; border-width: 2px; }
  .header-actions .auth-login-btn { height: 36px; padding: 0 14px; border-radius: 12px; }
  .header-actions .customer-btn { height: 36px; }
  /* 滚动后头部变白：图标圆底切为浅灰描边，保持层次 */
  body.scrolled .header-actions .cart-link, body.scrolled .header-actions .search-toggle, body.scrolled .header-actions .nav-toggle { background: rgba(20,22,26,.06); border-color: rgba(20,22,26,.12); }
  body.scrolled .header-actions .cart-link:hover, body.scrolled .header-actions .search-toggle:hover, body.scrolled .header-actions .nav-toggle:hover { background: rgba(20,22,26,.1); }
}

/* ============ 导航汉堡化断点下移至 900px：平板(901–1024)恢复横向导航 ============ */
@media (max-width: 900px) {
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); flex-direction: column; padding: 12px 14px; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow-lg); z-index: 99; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; border-radius: 8px; }
  .main-nav a:hover { background: rgba(0,0,0,.04); }
  .site-search { display: none; }
  .search-toggle { display: flex; }
  .header-actions { gap: 10px; }
  .header-actions .auth-login-btn, .header-actions .customer-menu { order: 3; }
  .header-actions .site-search { order: 1; }
  .header-actions .cart-link { order: 2; }
  .header-actions .search-toggle { order: 4; }
  .header-actions .nav-toggle { order: 5; }
  .header-actions { margin-right: -12px; padding-right: 2px; }
  .header-actions .auth-login-btn { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; }
  .header-actions .customer-btn { padding: 3px 10px 3px 3px; }
  .header-actions .cart-link, .header-actions .search-toggle, .header-actions .nav-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 5px; }
  .header-actions .cart-link svg, .header-actions .search-toggle svg { width: 19px; height: 19px; }
  .header-actions .nav-toggle { width: 30px; height: 30px; }
  .main-nav .header-tools { margin-left: 0; padding-left: 0; border-left: none; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; flex-wrap: wrap; gap: 10px; }
  .main-nav .header-tools .mode-switch { background: rgba(237,7,46,.06); border-color: rgba(200,16,46,.18); }
  .main-nav .header-tools .mode-btn { color: #555; }
  .main-nav .header-tools .mode-btn.active { color: #fff; }
  .main-nav .header-tools .lang-btn, .main-nav .header-tools .cur-btn { background: #1c1c1c; color: #fff; border-color: #2a2f3a; }
  .customer-dropdown { right: 0; left: auto; }
  .customer-name { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-search-open .site-search { display: flex; position: absolute; left: 12px; right: 12px; top: calc(100% + 8px); width: auto; z-index: 98; background: #fff; box-shadow: var(--shadow-lg); }
  .mobile-search-open .site-search:focus-within { width: auto; }
  .mobile-search-open .site-search input { padding: 8px 0; }
}
/* 平板/小屏桌面横向导航压缩（901–1180）：保证 1024 平板横向放下全部导航 */
@media (min-width: 901px) and (max-width: 1180px) {
  .header-inner { gap: 10px; min-height: 66px; }
  .brand-logo { max-width: 148px; height: 38px; }
  .main-nav { gap: 2px; }
  .main-nav a { padding: 8px 8px; font-size: 13.5px; }
  .header-tools { gap: 4px; padding-left: 8px; }
  .mode-btn { padding: 0 7px; font-size: 12px; }
  .lang-btn, .cur-btn { font-size: 12.5px; padding: 5px 9px; }
  .header-actions { gap: 12px; }
  .site-search { width: 150px; }
  .site-search:focus-within { width: 190px; }
}

/* ============ “得到”汉堡按钮：文字 + 右上角角标（三端适配） ============ */
.nav-toggle .nav-lines span { display: block; height: 3px; background: var(--hdr-fg, var(--ink)); border-radius: 2px; }
.nav-toggle-label { font-size: 13px; font-weight: 700; color: var(--hdr-fg, var(--ink)); white-space: nowrap; line-height: 1; }
.nav-badge.hidden { display: none; }
.header-actions .nav-toggle { width: auto; height: 36px; padding: 0 10px; box-sizing: border-box; }
.header-actions .nav-toggle .nav-lines span { background: var(--hdr-fg, var(--ink)); }

/* ============ “你好”收纳按钮：图标样式优化 ============ */
.nav-toggle .nav-lines span { height: 2.5px; border-radius: 999px; transition: transform .2s ease, background .2s ease; }
.nav-toggle-label { font-size: 13.5px; letter-spacing: .5px; }
.nav-toggle:hover .nav-lines span:first-child { transform: translateY(-1px); }
.nav-toggle:hover .nav-lines span:last-child { transform: translateY(1px); }
.header-actions .nav-toggle { border-radius: 999px; }

/* ============ “你好”按钮：玻璃拟态胶囊美化（覆盖旧样式） ============ */
.header-actions .nav-toggle {
  background: linear-gradient(135deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.08) 100%);
  border: 1px solid rgba(255,255,255,.34);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 2px 10px rgba(8,10,14,.16);
  border-radius: 999px;
  height: 36px;
  padding: 0 13px;
  gap: 8px;
  transition: background .25s ease, transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.header-actions .nav-toggle:hover { background: linear-gradient(135deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,.14) 100%); border-color: rgba(255,255,255,.5); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 14px rgba(8,10,14,.22); }
.header-actions .nav-toggle:active { transform: scale(.95); }
.header-actions .nav-toggle .nav-lines { width: 17px; height: 13px; }
.header-actions .nav-toggle .nav-lines span { height: 2px; background: #fff; }
.header-actions .nav-toggle-label { color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .5px; text-shadow: 0 1px 3px rgba(8,10,14,.25); }
/* 滚动后头部白底：切换为浅灰描边深色文字 */
body.scrolled .header-actions .nav-toggle { background: rgba(20,22,26,.06); border-color: rgba(20,22,26,.14); box-shadow: none; }
body.scrolled .header-actions .nav-toggle:hover { background: rgba(20,22,26,.1); }
body.scrolled .header-actions .nav-toggle .nav-lines span { background: var(--ink, #1a1c20); }
body.scrolled .header-actions .nav-toggle-label { color: var(--ink, #1a1c20); text-shadow: none; }

/* ============ “你好”按钮最终版：纯文字胶囊 + 右上角角标 ============ */
.header-actions .nav-toggle { width: auto; height: 36px; padding: 0 16px; gap: 0; }
.header-actions .nav-toggle-label { font-size: 14px; font-weight: 800; letter-spacing: 1px; }

/* ============ “你好”按钮：参照登录按钮红渐变实底胶囊 ============ */
.header-actions .nav-toggle {
  background: var(--primary-grad, linear-gradient(135deg, #e2313f 0%, #c8102e 58%, #a50d22 100%));
  border: 1px solid rgba(255,255,255,.30);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 3px 10px rgba(200,16,46,.30), inset 0 1px 0 rgba(255,255,255,.18);
  border-radius: 999px;
  height: 36px;
  padding: 0 16px;
}
.header-actions .nav-toggle:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 5px 14px rgba(200,16,46,.42), inset 0 1px 0 rgba(255,255,255,.22); }
.header-actions .nav-toggle:active { transform: scale(.97); }
.header-actions .nav-toggle-label { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.18); }
/* 角标：白底红字（图二右上角白色小矩形） */
/* 滚动后白底头部：保持红渐变实底 */
body.scrolled .header-actions .nav-toggle { background: var(--primary-grad, linear-gradient(135deg, #e2313f 0%, #c8102e 58%, #a50d22 100%)); border-color: rgba(200,16,46,.25); box-shadow: 0 3px 10px rgba(200,16,46,.28); }
body.scrolled .header-actions .nav-toggle-label { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.18); }

/* ============ 去掉“你好”文字投影（消除字底划线观感） ============ */
.header-actions .nav-toggle-label, body.scrolled .header-actions .nav-toggle-label { text-shadow: none; }
.nav-toggle-label { text-decoration: none; }

/* ============ 去掉“你好”按钮顶部内侧高光线 ============ */
.header-actions .nav-toggle, body.scrolled .header-actions .nav-toggle { box-shadow: 0 3px 10px rgba(200,16,46,.30); }
.header-actions .nav-toggle:hover { box-shadow: 0 5px 14px rgba(200,16,46,.42); }
.header-actions .nav-toggle:active { box-shadow: 0 2px 6px rgba(200,16,46,.28); }

/* ============ “你好”按钮：彻底去掉外圈线与 focus 轮廓 ============ */
.header-actions .nav-toggle { border: none; outline: none; }
.header-actions .nav-toggle:focus, .header-actions .nav-toggle:focus-visible { outline: none; box-shadow: 0 3px 10px rgba(200,16,46,.30); }

/* ============ 去掉导航底部渐变亮线（“划线”观感来源） ============ */
.header-main::after { display: none !important; }

/* ============ “你好”按钮：参照登录按钮样式重建（红圆角+左箭头+白字） ============ */
.header-actions .nav-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-grad, var(--primary, #c8102e));
  border: 1px solid rgba(200,16,46,.25);
  border-radius: 8px;
  padding: 7px 14px;
  height: auto;
  box-shadow: 0 3px 10px rgba(200,16,46,.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: all .2s;
}
.header-actions .nav-toggle svg { width: 15px; height: 15px; flex: none; }
.header-actions .nav-toggle-label { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0; }
.header-actions .nav-toggle:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 5px 14px rgba(200,16,46,.38); }
.header-actions .nav-toggle:active { transform: scale(.97); }
.header-actions .nav-toggle:focus, .header-actions .nav-toggle:focus-visible { outline: none; box-shadow: 0 3px 10px rgba(200,16,46,.28); }
body.scrolled .header-actions .nav-toggle { background: var(--primary-grad, var(--primary, #c8102e)); border-color: rgba(200,16,46,.25); box-shadow: 0 3px 10px rgba(200,16,46,.28); }
body.scrolled .header-actions .nav-toggle-label { color: #fff; text-shadow: none; }

/* ============ 导航收纳按钮：删除“你好”样式，恢复简洁三条线图标 ============ */
.nav-toggle-icon { display: flex; flex-direction: column; justify-content: space-between; width: 20px; height: 15px; }
.nav-toggle-icon i { display: block; height: 2.5px; border-radius: 999px; background: var(--hdr-fg, var(--ink)); transition: transform .2s ease, background .2s ease; }
.nav-toggle:hover .nav-toggle-icon i:first-child { transform: translateY(-1px); }
.nav-toggle:hover .nav-toggle-icon i:last-child { transform: translateY(1px); }
.header-actions .nav-toggle { display: inline-flex; }
.header-actions .nav-toggle-icon i { background: var(--hdr-fg, var(--ink)); }
/* 删除角标（已随“你好”按钮移除） */
.nav-toggle-label { display: none; }

/* 汉堡按钮尺寸兜底：36x36 圆角图标（覆盖旧断点规则） */
.header-actions .nav-toggle { width: 36px !important; height: 36px !important; padding: 0 !important; box-sizing: border-box; }

/* 汉堡按钮：彻底清除旧红渐变背景/边框/阴影残留 */
.header-actions .nav-toggle { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* ============ “你好”红色收容按钮（语言自适应） ============ */
.nav-toggle-icon { display: none !important; }
.nav-toggle-label { display: block; color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .5px; }
.header-actions .nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-grad, linear-gradient(135deg, #e2313f 0%, #c8102e 58%, #a50d22 100%));
  border: none;
  border-radius: 8px;
  width: auto; height: 36px; padding: 0 14px;
  box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: filter .2s ease, transform .2s ease;
}
.header-actions .nav-toggle:hover { filter: brightness(1.08); }
.header-actions .nav-toggle:active { transform: scale(.95); }
.header-actions .nav-toggle:focus, .header-actions .nav-toggle:focus-visible { outline: none; }
body.scrolled .header-actions .nav-toggle { background: var(--primary-grad, linear-gradient(135deg, #e2313f 0%, #c8102e 58%, #a50d22 100%)); }
body.scrolled .header-actions .nav-toggle-label { color: #fff; }

/* 你好按钮：取消旧36x36挤压，改自适应宽度 */
.header-actions .nav-toggle { width: auto !important; padding: 0 14px !important; }

/* 你好按钮仅移动端显示（>900px 隐藏，桌面/平板走横向导航） */
@media (min-width: 901px) { .header-actions .nav-toggle { display: none !important; } }

/* ============ 回滚 10:00：恢复三条线汉堡按钮 + 折叠导航 ============ */
.nav-toggle-icon { display: flex !important; flex-direction: column; justify-content: space-between; width: 20px; height: 15px; }
.nav-toggle-icon i { display: block; height: 2.5px; border-radius: 999px; background: var(--hdr-fg, var(--ink)); transition: transform .2s ease, background .2s ease; }
.nav-toggle-label { display: none !important; }
.header-actions .nav-toggle { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; width: 36px !important; height: 36px !important; padding: 0 !important; }

/* ============ 三条线改为红色按钮装（红底白线汉堡） ============ */
.header-actions .nav-toggle {
  background: var(--primary-grad, linear-gradient(135deg, #e2313f 0%, #c8102e 58%, #a50d22 100%)) !important;
  border-radius: 8px !important;
  width: 36px !important; height: 36px !important; padding: 0 !important;
  box-shadow: none !important;
  transition: filter .2s ease, transform .2s ease;
}
.header-actions .nav-toggle:hover { filter: brightness(1.08); }
.header-actions .nav-toggle:active { transform: scale(.95); }
.header-actions .nav-toggle-icon i { background: #fff !important; }
body.scrolled .header-actions .nav-toggle { background: var(--primary-grad, linear-gradient(135deg, #e2313f 0%, #c8102e 58%, #a50d22 100%)) !important; }

/* ============ 红色按钮：白线改为文字「更多」（语言自适应） ============ */
.nav-toggle-icon { display: none !important; }
.nav-toggle-label { display: block !important; color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .5px; }
.header-actions .nav-toggle {
  background: var(--primary-grad, linear-gradient(135deg, #e2313f 0%, #c8102e 58%, #a50d22 100%)) !important;
  border-radius: 8px !important;
  width: auto !important; height: 36px !important; padding: 0 14px !important;
  box-shadow: none !important;
  transition: filter .2s ease, transform .2s ease;
}
.header-actions .nav-toggle:hover { filter: brightness(1.08); }
.header-actions .nav-toggle:active { transform: scale(.95); }
body.scrolled .header-actions .nav-toggle { background: var(--primary-grad, linear-gradient(135deg, #e2313f 0%, #c8102e 58%, #a50d22 100%)) !important; }
body.scrolled .header-actions .nav-toggle-label { color: #fff; }

/* ============ 购物车：文字对比度 + 排版优化（深色体系·三端） ============ */
.cart-item-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cart-wrap .sku { color: rgba(255,255,255,.82); font-weight: 600; font-size: 12.5px; letter-spacing: .2px; }
.cart-item-info h4 { font-size: 15.5px; line-height: 1.4; }
.cart-item .mode-tag { color: #ffd9de; background: rgba(255,91,116,.16); border: 1px solid rgba(255,91,116,.45); padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 11.5px; width: fit-content; letter-spacing: .3px; }
.cart-item-price { color: #ff6b82 !important; font-size: 17px; font-weight: 800; }
.cart-item-sub { color: #ff6b82 !important; font-size: 17px; font-weight: 800; }
.cart-item-qty { justify-content: center; }
.cart-item-qty button { background: rgba(255,255,255,.13) !important; border-color: rgba(255,255,255,.4) !important; color: #fff !important; font-weight: 700; }
.cart-item-qty span { color: #fff; font-weight: 700; font-size: 15px; min-width: 18px; text-align: center; }
.cart-item-remove { color: rgba(255,255,255,.88) !important; opacity: .95; }
.cart-item-remove:hover { color: #ff5b74 !important; opacity: 1; }
.cart-total span { color: #ff6b82 !important; font-size: 22px; font-weight: 800; }
@media (max-width: 900px) {
  .cart-item { padding: 16px 0; }
  .cart-item-info h4 { font-size: 14.5px; }
  .cart-item-price, .cart-item-sub { font-size: 16px; }
}

/* ============ 更多按钮：底层万能清除（按钮内除文字外任何元素一律不显示） ============ */
.nav-toggle *:not(.nav-toggle-label) { display: none !important; }

/* ============ 更多按钮已删除（DOM 移除）：移动端导航默认展开 ============ */
@media (max-width: 768px) {
  .main-nav { display: flex !important; position: static !important; background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; border-bottom: none !important; padding: 6px 0 10px !important; }
  .main-nav > a { padding: 7px 10px !important; font-size: 13px !important; }
}

/* ============ 三端导航排版优化 ============ */
/* 桌面：间距均衡、右区对齐 */
@media (min-width: 1181px) {
  .header-inner { gap: 18px; }
  .main-nav { gap: 6px; }
  .main-nav a { padding: 10px 14px; white-space: nowrap; }
  .header-actions { gap: 14px; }
  .site-search { width: 190px; }
}
/* 平板 901-1180：横向压缩均匀 */
@media (min-width: 901px) and (max-width: 1180px) {
  .header-inner { gap: 10px; }
  .main-nav { gap: 2px; }
  .main-nav a { padding: 9px 9px; font-size: 13.5px; white-space: nowrap; }
  .header-actions { gap: 10px; }
  .site-search { width: 150px; }
  .site-search input { font-size: 12px; }
}
/* 移动端：菜单横排换行（省竖向空间），工具单行紧凑 */
@media (max-width: 768px) {
  .main-nav { flex-direction: row !important; flex-wrap: wrap !important; gap: 2px 6px !important; }
  .main-nav > a { padding: 6px 9px !important; font-size: 12.5px !important; }
  .header-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; width: 100%; }
  .mode-switch, .cur-switch, .lang-switch { flex: 0 0 auto; }
  .header-actions { gap: 10px; }
  .header-actions .auth-login-btn { padding: 5px 10px; font-size: 12px; }
}

/* ============ 手机端导航精简（≤600px）：logo+首页+产品中心+语言+登录+购物车 ============ */
@media (max-width: 600px) {
  .main-nav > a:nth-child(n+3) { display: none !important; }
  .header-tools .mode-switch, .header-tools .cur-switch { display: none !important; }
  .header-actions .site-search { display: none !important; }
  .header-inner { gap: 8px; }
  .main-nav { flex-wrap: nowrap !important; gap: 2px 4px !important; }
  .main-nav > a { padding: 5px 8px !important; font-size: 12px !important; }
  .header-tools { gap: 6px !important; width: auto !important; margin-left: 4px; }
  .lang-switch .lang-btn { padding: 4px 8px; font-size: 11.5px; }
  .header-actions { gap: 8px !important; }
  .header-actions .auth-login-btn { padding: 4px 9px !important; font-size: 11.5px !important; }
  .header-actions .cart-link svg { width: 18px; height: 18px; }
}

/* ============ 手机端导航精简（≤600px）：logo+产品中心+语言+登录+购物车（首页隐藏，logo可回首页） ============ */
@media (max-width: 600px) {
  .main-nav > a:nth-child(1), .main-nav > a:nth-child(n+3) { display: none !important; }
  .header-tools .mode-switch, .header-tools .cur-switch { display: none !important; }
  .header-actions .site-search { display: none !important; }
  .header-inner { gap: 8px; }
  .main-nav { flex-wrap: nowrap !important; gap: 2px 4px !important; }
  .main-nav > a { padding: 5px 8px !important; font-size: 12px !important; }
  .header-tools { gap: 6px !important; width: auto !important; margin-left: 4px; }
  .lang-switch .lang-btn { padding: 4px 8px; font-size: 11.5px; }
  .header-actions { gap: 8px !important; }
  .header-actions .auth-login-btn { padding: 4px 9px !important; font-size: 11.5px !important; }
  .header-actions .cart-link svg { width: 18px; height: 18px; }
}

/* ============ 手机端导航：产品中心放大+高对比 ============ */
@media (max-width: 600px) {
  .main-nav > a:nth-child(2) { padding: 7px 12px !important; font-size: 16px !important; font-weight: 800 !important; color: #ffffff !important; letter-spacing: .5px; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
  .main-nav > a:nth-child(2):hover, .main-nav > a:nth-child(2).active { color: #ff5161 !important; }
}

/* ============ 手机端导航：产品中心放大+高对比（防换行修正） ============ */
@media (max-width: 600px) {
  .main-nav > a:nth-child(2) { padding: 6px 8px !important; font-size: 15.5px !important; font-weight: 800 !important; color: #ffffff !important; letter-spacing: .5px; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
  .main-nav > a:nth-child(2):hover, .main-nav > a:nth-child(2).active { color: #ff5161 !important; }
}

/* ============ 语言/币种下拉菜单：文字对比度修复（防 main-nav 白字覆盖） ============ */
body:not(.page-home) .header-tools .lang-option,
body:not(.page-home) .header-tools .cur-option { color: #23272f !important; }
body:not(.page-home) .header-tools .lang-option:hover,
body:not(.page-home) .header-tools .cur-option:hover { color: #c8102e !important; background: rgba(237,7,46,.08); }
body:not(.page-home) .header-tools .lang-option.active,
body:not(.page-home) .header-tools .cur-option.active { color: #ffffff !important; }

/* ============ 联系我们页面装修（深色高对比卡片体系） ============ */
.layout-contact { display: grid; grid-template-columns: 380px 1fr; gap: 26px; padding: 34px 0 64px; }
.contact-info, .contact-form-wrap { position: relative; border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 22px 60px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08); padding: 28px; overflow: hidden; }
.contact-info::before, .contact-form-wrap::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(237,7,46,.22), transparent 70%); pointer-events: none; }
.contact-info h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 22px; }
.ci-accent { display: inline-block; width: 26px; height: 5px; border-radius: 3px; background: var(--primary-grad, linear-gradient(90deg,#ed072e,#ff5161)); box-shadow: 0 0 12px rgba(237,7,46,.5); }
.contact-list { list-style: none; margin: 0 0 18px; display: flex; flex-direction: column; gap: 16px; }
.ci-item { display: flex; align-items: flex-start; gap: 14px; }
.ci-ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: rgba(237,7,46,.14); border: 1px solid rgba(237,7,46,.35); color: #ff5161; }
.ci-ico svg { width: 20px; height: 20px; }
.ci-ico-wa { background: rgba(37,211,102,.13); border-color: rgba(37,211,102,.4); color: #25d366; }
.ci-item div { display: flex; flex-direction: column; gap: 3px; }
.ci-item strong { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.55); letter-spacing: 1px; }
.ci-item div > span { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.45; word-break: break-word; }
.ci-item div > span a { color: #ff5161; text-decoration: none; }
.ci-item div > span a:hover { text-decoration: underline; }
.ci-wa-btn { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; padding: 12px 16px; border-radius: 12px; background: linear-gradient(90deg, #128c4b, #25d366); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 8px 22px rgba(37,211,102,.3); }
.ci-wa-btn svg { width: 20px; height: 20px; }
.ci-wa-btn em { font-style: normal; font-weight: 500; opacity: .92; margin-left: 2px; }
.ci-wa-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(37,211,102,.4); }
.contact-tip { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.2); color: rgba(255,255,255,.85); font-size: 13px; line-height: 1.6; }
.contact-form { position: relative; }
.contact-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .form-field { display: flex; flex-direction: column; gap: 8px; }
.contact-form .form-field.full { grid-column: 1 / -1; }
.contact-form label { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.85); letter-spacing: .3px; }
.contact-form input, .contact-form textarea { background: rgba(10,16,30,.55); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 12px 14px; color: #fff; font-size: 14.5px; outline: none; transition: border-color .2s, box-shadow .2s; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.35); }
.contact-form input:focus, .contact-form textarea:focus { border-color: #ff5161; box-shadow: 0 0 0 3px rgba(237,7,46,.18); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form .btn-lg { margin-top: 22px; width: 100%; padding: 15px; font-size: 16px; font-weight: 800; border-radius: 12px; }
.form-success { background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.4); color: #7ef0ae; border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600; }
@media (max-width: 900px) {
  .layout-contact { grid-template-columns: 1fr; }
  .contact-info, .contact-form-wrap { padding: 22px; }
  .contact-form .form-grid { grid-template-columns: 1fr; }
}

/* ============ 工厂与品质板块装修（深色高对比卡片体系） ============ */
.factory-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: center; }
.factory-body { position: relative; padding: 30px 32px; border-radius: 18px; background: linear-gradient(150deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.13); box-shadow: 0 20px 50px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.08); overflow: hidden; }
.factory-body::before { content: ''; position: absolute; left: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(237,7,46,.20), transparent 70%); pointer-events: none; }
.factory-body h2 { position: relative; display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 800; color: #ffffff; margin-bottom: 16px; }
.factory-body h2::before { content: ''; display: inline-block; width: 28px; height: 6px; border-radius: 3px; background: var(--primary-grad, linear-gradient(90deg,#ed072e,#ff5161)); box-shadow: 0 0 14px rgba(237,7,46,.55); }
.factory-body > p { position: relative; font-size: 15px; line-height: 1.85; color: rgba(255,255,255,.92); margin-bottom: 22px; }
.factory-points { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.factory-points li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; color: #ffffff; }
.fp-ico { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ed072e, #ff5161); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 4px 12px rgba(237,7,46,.35); }
.factory-img { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 60px rgba(0,0,0,.42); }
.factory-img img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .5s cubic-bezier(.22,.68,.35,1); }
.factory-img:hover img { transform: scale(1.03); }
.factory-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45)); pointer-events: none; }
@media (max-width: 900px) {
  .factory-wrap { grid-template-columns: 1fr; }
  .factory-body { padding: 24px 20px; }
}

/* ============ 全站细节交互与无障碍焦点强化（最终微调） ============ */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid #ff5161; outline-offset: 2px; }
.footer a { color: rgba(255,255,255,.82); transition: color .2s; }
.footer a:hover { color: #ffffff; text-decoration: underline; }
.product-card, .news-card, .p-item { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.product-card:hover, .news-card:hover, .p-item:hover { border-color: rgba(255,255,255,.35); box-shadow: 0 10px 30px rgba(0,0,0,.35); transform: translateY(-2px); }
.btn:active, button:active { transform: translateY(0) scale(.98); }

/* ============ 产品系列板块装修 v2（图标胶囊+导航箭头+三端） ============ */
.section-categories .cat-card { display: flex; flex-direction: column; background: linear-gradient(170deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; overflow: hidden; box-shadow: 0 14px 38px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.10); transition: transform .28s cubic-bezier(.22,.68,.35,1), border-color .28s, box-shadow .28s; }
.section-categories .cat-card:hover { transform: translateY(-6px); border-color: rgba(237,7,46,.65); box-shadow: 0 22px 52px rgba(0,0,0,.5), 0 0 0 1px rgba(237,7,46,.28), 0 0 34px rgba(237,7,46,.16); }
.cat-card-ico { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; background: radial-gradient(circle at 30% 22%, rgba(237,7,46,.32), rgba(12,16,28,.9) 70%); position: relative; }
.cat-card-ico span { font-size: 64px; font-weight: 800; color: #ffffff; text-shadow: 0 6px 22px rgba(237,7,46,.55); line-height: 1; }
.cat-card-ico::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(0,0,0,.4)); pointer-events: none; }
.section-categories .cat-card-body { flex: 1; background: rgba(10,14,26,.5); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(255,255,255,.12); }
.section-categories .cat-card-body h3 { font-size: 18px; font-weight: 700; color: #ffffff; margin: 0; }
.cat-card-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px; border-radius: 999px; background: linear-gradient(90deg, #ed072e, #ff5161); color: #ffffff; font-weight: 700; font-size: 13px; box-shadow: 0 4px 14px rgba(237,7,46,.35); transition: transform .2s, box-shadow .2s; }
.cat-card:hover .cat-card-link { transform: translateX(3px); box-shadow: 0 6px 18px rgba(237,7,46,.5); }
.cat-nav { display: flex; justify-content: center; gap: 14px; margin-top: 22px; }
.cat-nav-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); color: #ffffff; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .22s; }
.cat-nav-btn:hover { background: linear-gradient(135deg, #ed072e, #ff5161); border-color: transparent; box-shadow: 0 8px 22px rgba(237,7,46,.4); transform: scale(1.06); }
.cat-nav-btn.swiper-button-disabled { opacity: .32; pointer-events: none; }
@media (max-width: 640px) {
  .cat-card-ico span { font-size: 46px; }
  .section-categories .cat-card-body { padding: 14px 16px; }
  .section-categories .cat-card-body h3 { font-size: 16px; }
}

/* ============ 结算页装修（深色高对比卡片体系） ============ */
.layout-checkout { display: grid; grid-template-columns: 1fr 380px; gap: 26px; padding: 30px 0 64px; align-items: start; }
.checkout-form-wrap, .checkout-summary { position: relative; border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 22px 60px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08); padding: 30px; overflow: hidden; }
.checkout-form-wrap::before, .checkout-summary::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(237,7,46,.20), transparent 70%); pointer-events: none; }
.checkout-form-wrap h2 { position: relative; font-size: 21px; font-weight: 800; color: #ffffff; display: flex; align-items: center; gap: 12px; margin: 26px 0 20px; }
.checkout-form-wrap h2:first-child { margin-top: 0; }
.checkout-form-wrap h2::before { content: ''; width: 24px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #ed072e, #ff5161); box-shadow: 0 0 12px rgba(237,7,46,.5); }
.checkout-form-wrap .form-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkout-form-wrap .form-field { display: flex; flex-direction: column; gap: 8px; }
.checkout-form-wrap .form-field.full { grid-column: 1 / -1; }
.checkout-form-wrap label { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.88); letter-spacing: .3px; }
.checkout-form-wrap label small { font-weight: 500; color: rgba(255,255,255,.5); margin-left: 2px; }
.checkout-form-wrap input, .checkout-form-wrap select, .checkout-form-wrap textarea { background: rgba(10,16,30,.55); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 12px 14px; color: #ffffff; font-size: 14.5px; outline: none; transition: border-color .2s, box-shadow .2s; }
.checkout-form-wrap select { appearance: auto; }
.checkout-form-wrap select option { background: #10182c; color: #ffffff; }
.checkout-form-wrap input::placeholder, .checkout-form-wrap textarea::placeholder { color: rgba(255,255,255,.38); }
.checkout-form-wrap input:focus, .checkout-form-wrap select:focus, .checkout-form-wrap textarea:focus { border-color: #ff5161; box-shadow: 0 0 0 3px rgba(237,7,46,.18); }
.checkout-form-wrap textarea { resize: vertical; min-height: 84px; }
.dial-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.live-sync { position: relative; margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.4); color: #7ef0ae; font-size: 13px; font-weight: 700; }
.live-sync::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #25d366; box-shadow: 0 0 8px rgba(37,211,102,.8); animation: ls-pulse 1.6s infinite; }
@keyframes ls-pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.pay-options { position: relative; display: flex; flex-direction: column; gap: 14px; }
.pay-option { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.14); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.pay-option:hover { border-color: rgba(255,255,255,.3); }
.pay-option input { position: absolute; opacity: 0; }
.pay-option input:checked + div { border: 0; }
.pay-option:has(input:checked) { border-color: #ff5161; background: rgba(237,7,46,.10); box-shadow: 0 0 0 1px rgba(237,7,46,.3), 0 8px 26px rgba(237,7,46,.12); }
.pay-option:has(input:checked)::after { content: '✓'; position: absolute; top: 14px; right: 16px; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #ed072e, #ff5161); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(237,7,46,.4); }
.pay-option > div { display: flex; flex-direction: column; gap: 5px; }
.pay-option strong { font-size: 16px; font-weight: 800; color: #ffffff; }
.pay-option span { font-size: 13px; color: rgba(255,255,255,.72); line-height: 1.5; }
.pay-link-note { font-style: normal; display: inline-flex; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: rgba(237,7,46,.16); border: 1px solid rgba(237,7,46,.4); color: #ff8a94; font-size: 12px; font-weight: 600; }
.checkout-form-wrap .btn-lg { position: relative; margin-top: 24px; width: 100%; padding: 15px; font-size: 16px; font-weight: 800; border-radius: 12px; }
.pay-jump-hint { position: relative; margin-top: 12px; font-size: 12.5px; color: rgba(255,255,255,.55); text-align: center; line-height: 1.6; }
.checkout-summary h3 { position: relative; font-size: 19px; font-weight: 800; color: #ffffff; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.checkout-summary h3::before { content: ''; width: 24px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #ed072e, #ff5161); box-shadow: 0 0 12px rgba(237,7,46,.5); }
#summaryItems { position: relative; display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.summary-item { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: rgba(255,255,255,.88); padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.summary-item:last-child { border-bottom: 0; }
.summary-item span:first-child { flex: 1; }
.summary-item span:last-child { font-weight: 700; color: #ffffff; white-space: nowrap; }
.summary-total { position: relative; display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-weight: 800; color: #ffffff; padding: 16px 18px; border-radius: 12px; background: rgba(237,7,46,.12); border: 1px solid rgba(237,7,46,.35); margin-bottom: 18px; }
.summary-total span { color: #ff5161; font-size: 21px; }
.checkout-summary .btn-block { width: 100%; }
@media (max-width: 900px) {
  .layout-checkout { grid-template-columns: 1fr; }
  .checkout-form-wrap, .checkout-summary { padding: 22px; }
  .checkout-form-wrap .form-grid { grid-template-columns: 1fr; }
}

/* ============ 订单成功页装修（深色高对比卡片体系） ============ */
.order-page { max-width: 900px; margin: 0 auto; padding: 30px 0 64px; display: flex; flex-direction: column; gap: 24px; }
.order-success { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 38px 24px; border-radius: 18px; background: linear-gradient(160deg, rgba(37,211,102,.10), rgba(37,211,102,.03)); border: 1px solid rgba(37,211,102,.38); box-shadow: 0 18px 50px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08); overflow: hidden; }
.order-success::before { content: ''; position: absolute; inset: -60% -30% auto auto; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(37,211,102,.22), transparent 70%); pointer-events: none; }
.os-ico { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #128c4b, #25d366); color: #fff; font-size: 30px; font-weight: 800; box-shadow: 0 10px 28px rgba(37,211,102,.45); }
.order-success h1 { position: relative; font-size: 25px; font-weight: 800; color: #ffffff; text-align: center; margin: 0; }
.order-success p { position: relative; font-size: 15px; color: rgba(255,255,255,.78); text-align: center; margin: 0; }
.os-no { display: inline-flex; padding: 4px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #ffffff; font-weight: 800; letter-spacing: 1px; margin-left: 4px; }
.auto-paid { display: none; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; background: linear-gradient(160deg, rgba(37,211,102,.14), rgba(37,211,102,.04)); border: 1px solid rgba(37,211,102,.45); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.ap-ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #128c4b, #25d366); color: #fff; font-size: 17px; font-weight: 800; }
.auto-paid div { display: flex; flex-direction: column; gap: 3px; }
.auto-paid strong { font-size: 15px; font-weight: 800; color: #ffffff; }
.auto-paid em { font-style: normal; font-size: 13px; color: rgba(255,255,255,.72); }
.order-detail.panel, .payment-instructions.panel { position: relative; border-radius: 18px; background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 22px 60px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08); padding: 28px; overflow: hidden; }
.order-detail.panel::before, .payment-instructions.panel::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(237,7,46,.18), transparent 70%); pointer-events: none; }
.order-detail.panel h2, .payment-instructions.panel h2 { position: relative; display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 800; color: #ffffff; margin: 22px 0 16px; }
.order-detail.panel h2:first-child, .payment-instructions.panel h2:first-child { margin-top: 0; }
.od-accent { display: inline-block; width: 24px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #ed072e, #ff5161); box-shadow: 0 0 12px rgba(237,7,46,.5); }
.order-table { position: relative; width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.order-table tr { border-bottom: 1px dashed rgba(255,255,255,.12); }
.order-table tr:last-child { border-bottom: 0; }
.order-table td { padding: 11px 4px; font-size: 14.5px; }
.order-table td:first-child { width: 42%; color: rgba(255,255,255,.58); font-weight: 600; }
.order-table td:last-child { color: #ffffff; font-weight: 600; text-align: right; }
.order-table .od-total { color: #ff5161; font-size: 18px; }
.order-items { position: relative; width: 100%; border-collapse: collapse; }
.order-items th { text-align: left; font-size: 13px; color: rgba(255,255,255,.58); font-weight: 700; padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,.18); }
.order-items td { padding: 12px 6px; font-size: 14.5px; color: rgba(255,255,255,.9); border-bottom: 1px dashed rgba(255,255,255,.1); }
.order-items td:first-child a { color: #ffffff; text-decoration: none; }
.order-items td:first-child a:hover { color: #ff5161; }
.order-items td:first-child small { color: rgba(255,255,255,.5); }
.order-items td:nth-child(2), .order-items td:nth-child(3) { color: rgba(255,255,255,.7); }
.order-items td:last-child { font-weight: 700; color: #ffffff; }
.pay-hint { position: relative; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.88); }
.payment-instructions .btn-lg { position: relative; margin: 10px 0 6px; width: 100%; padding: 15px; font-size: 16px; font-weight: 800; border-radius: 12px; }
.pay-note { position: relative; font-size: 13.5px; color: rgba(255,255,255,.72); }
.pay-note strong { color: #ffffff; }
.pay-contact { position: relative; font-size: 13.5px; color: rgba(255,255,255,.72); }
.mark-paid-box { position: relative; margin: 14px 0; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.2); display: flex; flex-direction: column; gap: 10px; }
.mark-paid-box p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.75); }
.payment-instructions > .btn-outline { position: relative; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.status-pill.status-paid { background: rgba(37,211,102,.15); border: 1px solid rgba(37,211,102,.5); color: #7ef0ae; }
.status-pill.status-pending { background: rgba(255,193,7,.13); border: 1px solid rgba(255,193,7,.45); color: #ffd95e; }
.status-pill.status-cancelled { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.75); }
@media (max-width: 640px) {
  .order-page { padding: 20px 0 48px; }
  .order-detail.panel, .payment-instructions.panel { padding: 20px; }
  .order-success { padding: 28px 18px; }
  .order-table td { font-size: 13.5px; }
}

/* ============ 底部悬浮按钮防遮挡（结算/订单等表格页） ============ */
.order-page, .layout-checkout, .cart-page { padding-bottom: 170px !important; }
@media (min-width: 900px) {
  .order-page, .layout-checkout, .cart-page { padding-bottom: 130px !important; }
}

/* ============ 三端防横向溢出修复（部署回归项） ============ */
@media (max-width: 768px) {
  .layout-products, .layout-contact, .cart-wrap, .layout-checkout, .order-page, .layout-track, .account-page, .search-results, .error-page {
    box-sizing: border-box;
    max-width: 100%;
    padding: 22px 16px;
    margin: 8px 0 26px;
  }
  .layout-products .product-grid, .search-results .product-grid, .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .btn-block, .product-grid .btn, .load-more, .pagination { box-sizing: border-box; max-width: 100%; }
  .header-actions { margin-right: -8px; padding-right: 0; }
  .breadcrumb, .crumbs, nav[aria-label=breadcrumb] { flex-wrap: wrap; }
  .container { overflow: hidden; }
}
@media (max-width: 380px) {
  .layout-products .product-grid, .search-results .product-grid, .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .product-detail-panel, .section-reviews, .section-related, .product-detail-panel.container, .section-reviews.container, .section-related.container {
    box-sizing: border-box !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
