/* ============================================================
   DryVault Mall 2.0 — Storefront stylesheet
   Cold Luxury: cool off-white + near-ink + single electric-blue accent
   Type: Manrope (self-hosted). Radius: cards 14 / buttons pill / inputs 10
   ============================================================ */

/* ---------- 1. Tokens & reset ---------- */
:root {
  --bg: #f7f8fa;
  --bg-alt: #eef1f6;
  --surface: #ffffff;
  --ink: #0d1220;
  --ink-2: #3d4657;
  --muted: #68728a;
  --line: #e4e8ef;
  --line-strong: #d4dae5;
  --accent: #2b5bee;
  --accent-deep: #1d41bd;
  --accent-soft: #eaf0ff;
  --success: #0e9f6e;
  --warn: #b45309;
  --danger: #d64545;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 18, 32, .05);
  --shadow-md: 0 10px 30px -12px rgba(13, 18, 32, .18);
  --shadow-lg: 0 24px 60px -20px rgba(13, 18, 32, .28);
  --container: var(--container-pc, 1200px);
  --container-pc: 1200px;
  --container-pad: 24px;
  --container-wap: 100%;
  --container-wap-pad: 16px;
  --header-h: 80px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; font-weight: 750; }

::selection { background: var(--accent); color: #fff; }

/* ---------- 2. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
 
}
.section { padding: 72px 0; }
.main { min-height: 60vh; }

.page-head {
  background:
    radial-gradient(120% 180% at 12% 0%, #1b2440 0%, #0d1220 58%);
  color: #fff;
  padding: 52px 0 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.page-head .container { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.page-head p { color: #b7c1d8; max-width: 640px; font-size: 15.5px; }

.page-title { font-size: 30px; margin-bottom: 26px; letter-spacing: -.03em; }
.container.page { padding-top: 44px; padding-bottom: 72px; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px -8px rgba(43, 91, 238, .55);
}
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 10px 26px -8px rgba(43, 91, 238, .6); transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-wechat { background: #07c160; color: #fff; box-shadow: 0 8px 22px -8px rgba(7, 193, 96, .5); }
.btn-wechat:hover { filter: brightness(.96); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: #f2c9c9; }
.btn-danger-ghost:hover { background: #fdf1f1; border-color: var(--danger); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  transition: gap .2s var(--ease);
}
.link-more:hover { gap: 11px; }

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 10px 30px -12px rgba(13, 18, 32, .16); }
.header-main {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--container);
  margin: 0 auto;
 
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #4f7bff);
  box-shadow: 0 6px 16px -6px rgba(43, 91, 238, .5);
}
.logo-img { height: 60px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.footer-brand .logo-text small { color: rgba(255,255,255,.55); }
.logo-text small { font-size: 10.5px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-btn { white-space: nowrap; }
.icon-btn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: 0;
  color: var(--ink-2);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.icon-btn:hover { background: var(--bg-alt); color: var(--ink); }
.icon-label { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.badge.hidden { display: none; }

.hamburger { display: none; }
.nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-top: 0;
}
.nav-link {
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 650;
  color: var(--ink-2);
  border-radius: 8px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--ink); background: var(--bg-alt); }
.nav-link.active { color: var(--accent); }

/* ---- Nav with submenu (dropdown on hover) ---- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item .nav-link { display: inline-flex; align-items: center; gap: 3px; }
.nav-item .nav-caret { opacity: .55; transition: transform .2s var(--ease); }
.nav-item:hover .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: #fff;
  border: 1px solid #e8ebf0;
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(13, 18, 32, .14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 60;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-drop-link {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1f36;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-drop-link:hover { color: var(--accent); background: #f2f5fa; }
.mm-list .mm-sub { font-size: 16px; font-weight: 600; padding-left: 44px; color: #c4cde2; }

/* ---------- 5. Mobile full-screen menu ---------- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background:
    radial-gradient(140% 120% at 20% 0%, #1b2440 0%, #0d1220 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 6px;
  padding: 64px 24px calc(40px + env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity .32s var(--ease), visibility .32s;
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }
.mm-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: background .15s;
}
.mm-close:hover { background: rgba(255, 255, 255, .16); }
.mm-brand { margin-bottom: 18px; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .04em; }
.mm-brand-logo { height: 42px; width: auto; object-fit: contain; }
.mm-list { display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left; }
.mm-group { position: relative; }
.mm-parent { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.mm-sub-wrap { display: none; }
.mm-group.open .mm-sub-wrap { display: block; }
.mm-link {
  display: block;
  padding: 12px 24px;
  font-size: 20px;
  font-weight: 750;
  color: #eef2fb;
  letter-spacing: -.01em;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: color .15s, transform .15s var(--ease);
}
.mm-link:last-child { border-bottom: 0; }
.mm-link:hover { color: #8fb1ff; transform: translateY(-1px); }
.mm-link.active { color: #8fb1ff; }
.mm-list .mm-link { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .4s var(--ease), color .15s; }
.mobile-menu-overlay.open .mm-link { opacity: 1; transform: translateY(0); }
.mobile-menu-overlay.open .mm-link:nth-child(1) { transition-delay: .06s; }
.mobile-menu-overlay.open .mm-link:nth-child(2) { transition-delay: .1s; }
.mobile-menu-overlay.open .mm-link:nth-child(3) { transition-delay: .14s; }
.mobile-menu-overlay.open .mm-link:nth-child(4) { transition-delay: .18s; }
.mobile-menu-overlay.open .mm-link:nth-child(5) { transition-delay: .22s; }
.mobile-menu-overlay.open .mm-link:nth-child(6) { transition-delay: .26s; }
.mobile-menu-overlay.open .mm-link:nth-child(7) { transition-delay: .3s; }
.mobile-menu-overlay.open .mm-link:nth-child(8) { transition-delay: .34s; }
.mm-actions { margin-top: 30px; display: flex; gap: 12px; }
.mm-actions .btn { min-width: 150px; }
.mm-foot { margin-top: 28px; color: #7f8ba8; font-size: 12.5px; }
body.menu-locked { overflow: hidden; }

/* ---------- 6. Banner ---------- */
.banner-wrap {
  position: relative;
  overflow: hidden;
  background: #e8ecf3;
}
.banner-track { position: relative; display: flex; transition: transform .72s var(--ease); }
.banner-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 2.4 / 1;
}
.banner-media { position: absolute; inset: 0; overflow: hidden; }
.banner-slide img,
.banner-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
}
.banner-slide video { object-fit: cover; }
.banner-slide.active .banner-media img { animation: kenburns 8s var(--ease) forwards; }
@keyframes kenburns {
  0% { transform: scale(1.02) translateX(0); }
  100% { transform: scale(1.13) translateX(-1.5%); }
}
.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 6% 8%;
  background: linear-gradient(90deg, rgba(10, 14, 26, .62) 0%, rgba(10, 14, 26, .18) 55%, transparent 78%);
  color: #fff;
  pointer-events: none;
}
.banner-overlay .banner-title {
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.08;
  max-width: 680px;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.banner-overlay .banner-subtitle { margin-top: 16px; font-size: clamp(15px, 2vw, 21px); color: #d8deec; max-width: 560px; line-height: 1.5; font-weight: 400; }
.banner-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.banner-dots button {
  width: 26px;
  height: 5px;
  border-radius: 99px;
  border: 0;
  background: rgba(255, 255, 255, .42);
  transition: background .2s, width .2s var(--ease);
}
.banner-dots button.active { background: #fff; width: 38px; }

/* ---------- 7. Trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  padding: 22px 28px;
}
.trust-item svg { color: var(--accent); flex: 0 0 auto; }
.trust-item img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.trust-item b { display: block; font-size: 14.5px; font-weight: 750; letter-spacing: -.01em; }
.trust-item span { font-size: 12.5px; color: var(--muted); }

/* ---------- 8. Section heads & product grid ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.section-sub { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 560px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 24px;
}
.pcard {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(13, 18, 32, .06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pcard-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f4f8;
}
.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.pcard-body { padding:18px 25px 50px 25px;; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.pcard-name { font-size: 15.5px; font-weight: 750; letter-spacing: -.01em; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-name a:hover { color: var(--accent); }
.pcard-desc {
  font-size: 13px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.pcard-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 18px; font-weight: 800; color: var(--ink); }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.pcard-actions { display: flex; gap: 8px; }
.pcard-actions .btn { padding: 9px 14px; font-size: 12.5px; }

/* ---------- 9. Why choose us ---------- */
.value-section { background: var(--surface); border-block: 1px solid var(--line); }
.value-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.value-head { text-align: left; margin-bottom: 40px; }
.value-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.03em; }
.value-head p { margin-top: 16px; color: var(--muted); font-size: 16px; max-width: 560px; }
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 2px 12px rgba(13, 18, 32, .06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card .v-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.value-card .v-text { min-width: 0; }
.value-card h3 { font-size: 20px; font-weight: 750; letter-spacing: -.01em;    margin-top: 8px; }
.value-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- 10. Video module ---------- */
.video-section { background: var(--bg); }
.video-full { padding: 0 !important; background: #0d1220; }
.video-full .video-frame { border-radius: 0; box-shadow: none; max-width: 100%; }
.video-frame { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-md); background: #0d1220; }
.video-frame video { width: 100%; display: block; }
.video-16x9 { aspect-ratio: 16 / 9; }
.video-9x16 { aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; }
.video-4x3 { aspect-ratio: 4 / 3; }
.video-1x1 { aspect-ratio: 1 / 1; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-title { font-size: 15px; color: var(--muted); margin-top: 14px; }

/* ---------- 11. Ad banners ---------- */
.ad-banner { position: relative; display: block; overflow: hidden; border-radius: 0; box-shadow: none; }
.ad-banner img { width: 100%; aspect-ratio: auto; height: auto; display: block; object-fit: cover; transition: transform .6s var(--ease); }
.ad-banner:hover img { transform: scale(1.03); }
.ad-banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 26px 22px;
  background: linear-gradient(0deg, rgba(10, 14, 26, .68), transparent);
  color: #fff;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 750;
  letter-spacing: -.01em;
}

/* ---------- 12. CTA ---------- */
.cta-section { padding: 0; }
.cta-box {
  background:
    radial-gradient(120% 200% at 85% -20%, #22306a 0%, #0d1220 60%);
  color: #fff;
  text-align: center;
  padding: 84px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cta-box h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.03em; max-width: 680px; }
.cta-box p { color: #b7c1d8; font-size: 16px; max-width: 520px; }

/* ---------- 13. Footer ---------- */
.site-footer { background: #0d1220; color: #aab3c6; }
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  padding: 60px 24px 40px 0px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col .footer-title {
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a, .footer-col ul span { font-size: 14px; color: #aab3c6; transition: color .15s; }
.footer-col ul a:hover { color: #8fb1ff; }
.footer-tagline { font-size: 14px; color: #8c96ad; margin-top: 16px; max-width: 300px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.mini-badge {
  font-size: 11px;
  font-weight: 700;
  color: #c3ccdd;
  border: 1px solid rgba(255, 255, 255, .16);
  padding: 5px 11px;
  border-radius: 999px;
}
.logo--footer .logo-mark { background: linear-gradient(135deg, var(--accent), #4f7bff); }
.footer-chat {
  background: none;
  border: 0;
  color: #8fb1ff;
  font-weight: 700;
  font-size: 14px;
  padding: 0;
}
.footer-chat:hover { color: #b9ccff; }

/* Social row */
.footer-social { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  color: #c3ccdd;
  transition: all .2s var(--ease);
}
.social-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }

.footer-pay {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 0px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.pay-chip {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  color: #dbe1ec;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 6px 12px;
  border-radius: 7px;
}
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #6d7894;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-trust a { color: #8c96ad; }
.footer-trust a:hover { color: #8fb1ff; }

/* ---------- 14. Mobile bottom nav ---------- */
.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.mnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px 8px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  position: relative;
  transition: color .15s;
}
.mnav-item.active { color: var(--accent); }
.mnav-badge { position: absolute; top: 4px; left: 50%; margin-left: 6px; }

/* ---------- 15. Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  align-items: center;
}
.cart-item-img { width: 96px; height: 96px; border-radius: var(--radius-sm); overflow: hidden; background: #f2f4f8; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 700; font-size: 15px; display: block; }
.cart-item-name:hover { color: var(--accent); }
.cart-item-price { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.cart-item-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.cart-item-total { font-size: 17px; font-weight: 800; }
.link-remove { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; }
.link-remove:hover { color: var(--danger); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.step-btn {
  width: 34px;
  height: 34px;
  background: none;
  border: 0;
  font-size: 18px;
  color: var(--ink-2);
  transition: background .15s;
}
.step-btn:hover { background: var(--bg-alt); }
.stepper input { width: 44px; text-align: center; border: 0; background: none; font-weight: 700; font-size: 14px; }
.cart-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
.cart-summary h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.summary-total { font-weight: 800; color: var(--ink); font-size: 16px; border-bottom: 0; }
.free-ship-note {
  background: var(--success);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 14px 0;
  text-align: center;
}
.free-ship-progress { margin: 16px 0; }
.free-ship-progress span { font-size: 13px; color: var(--ink-2); }
.progress { height: 6px; background: var(--bg-alt); border-radius: 999px; margin-top: 9px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s var(--ease); }

.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state svg { margin: 0 auto 18px; color: #c8cfdc; }
.empty-state h2 { color: var(--ink); font-size: 22px; margin-bottom: 8px; }
.empty-state .btn { margin-top: 22px; }

/* ---------- 16. Product detail ---------- */
.product-page { padding: 0px 0 72px; }
@media (min-width: 901px) {
  .product-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
}
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: #c4cad6; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f2f4f8;
  cursor: zoom-in;
  position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.gallery-main.zooming img { transform: scale(2); cursor: zoom-out; }
.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(13, 18, 32, .55);
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.gallery-main:hover .zoom-hint { opacity: 1; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb {
  width: 74px;
  height: 74px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: #f2f4f8;
  padding: 0;
  transition: border-color .15s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--accent); }
/* Mobile: product gallery thumbs — always 4 per row */
@media (max-width: 768px) {
  .gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex-wrap: nowrap; }
  .gallery-thumbs .thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; }
}

.product-info h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.product-rating { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.stars { color: #f5a623; letter-spacing: 2px; }
.product-price-row { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.product-price-row .price { font-size: 30px; }
.product-stock { font-size: 13px; font-weight: 700; }
.product-stock.in-stock { color: var(--success); }
.product-stock.out { color: var(--danger); }
.product-desc { color: var(--ink-2); margin: 8px 0 22px; line-height: 1.7; }
.buy-box { background: var(--surface); border-radius: var(--radius); padding: 22px; }
.buy-box--soldout { opacity: .75; }
.soldout-msg { color: var(--danger); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qty-row .stepper { height: 44px; }
.qty-row .stepper .step-btn { height: 44px; width: 44px; }
.qty-row .stepper input { width: 54px; font-size: 15px; }
.buy-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-perks { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; color: var(--muted); font-size: 13px; }
.product-perks span { display: inline-flex; align-items: center; gap: 7px; }
.product-detail-section { padding-top: 20px; }
.detail-block { margin-bottom: 48px; }
.detail-heading { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 28px; text-align: center; }
.product-tabs { margin-top: 56px; }
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tab-btn {
  background: none;
  border: 0;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-btn.active { color: var(--accent); border-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.prose { color: var(--ink-2); line-height: 1.75; }
.prose p { margin-bottom: 5px; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin-top: 24px; margin-bottom: 20px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose ol { list-style: decimal; padding-left: 22px; margin-bottom: 16px; }
.prose img { border-radius: var(--radius-sm); }
.prose a { color: var(--accent); text-decoration: underline; }
.spec-rich table.spec-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
.spec-rich .spec-table td { border: 1px solid var(--line); padding: 12px 16px; font-size: 14px; }
.spec-rich .spec-table td:first-child { font-weight: 700; color: var(--ink); background: var(--bg); width: 40%; }

/* ---------- 17. Category filter & chips ---------- */
.cat-filter { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 26px; }
.cat-chip {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink-2);
  transition: all .15s var(--ease);
}
.cat-chip:hover { border-color: var(--accent); color: var(--accent); }
.cat-chip.active { background: var(--accent,#2b5bee); color: #fff; border-color: var(--accent,#2b5bee); }

/* ---------- 18. Forms & auth ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 91, 238, .14);
}
.field .hint { font-size: 12px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.req { color: var(--danger); }

.auth-wrap { display: grid; place-items: center; padding: 16px 0 80px; }
.auth-card {
  width: 80%;
  max-width: 800px;
  background: var(--surface);
  border-radius: 18px;
  padding: 45px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 720px) {

  .auth-wrap { padding: 12px var(--container-wap-pad, 16px) 64px; }
  .auth-card { width: 100%; padding: 28px 24px; margin: 0 auto; }
}
.auth-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.auth-alt { margin-top: 20px; text-align: left; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--accent); font-weight: 700; }
.auth-note { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.alert { border-radius: var(--radius-sm); padding: 13px 16px; font-size: 14px; margin-bottom: 18px; }
.alert-error { background: #fdf1f1; color: var(--danger); border: 1px solid #f4caca; }
.alert-ok { background: #eafaf3; color: var(--success); border: 1px solid #bfe8d6; }
.alert-warn { background: #fdf6ec; color: var(--warn); border: 1px solid #f2ddbc; }

/* ---------- 19. FAQ / track / about / page ---------- */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 56px); align-items: start; }
.cms-page { color: var(--ink-2); line-height: 1.8; }
.cms-page-img { border-radius: var(--radius); margin-bottom: 24px; max-height: 460px; object-fit: cover; width: 100%; }
.cms-page .prose { max-width: none; }
.page-rail { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 18px; }
.rail-card { background: var(--surface); border: 0; border-radius: var(--radius); padding: 22px; box-shadow: 0 2px 12px rgba(13, 18, 32, .06); }
.rail-card .rail-title { font-size: 14px; font-weight: 800; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line, #e8ebf0); }
.rail-card p { font-size: 13.5px; color: var(--muted); }
.rail-card .btn { margin-top: 14px; }
.rail-links li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.rail-links li:last-child { border-bottom: 0; }
.rail-links a { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.rail-links a:hover { color: var(--accent); }

.faq-group { margin-bottom: 34px; }
.faq-group-title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.faq-item { background: var(--surface); border: 0; border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(13, 18, 32, .06); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 750;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q .fa-chev { transition: transform .2s var(--ease); color: var(--muted); }
.faq-item.open .faq-q .fa-chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s var(--ease); }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a .inner { padding: 0 20px 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }

.track-form { max-width: 560px; margin-bottom: 36px; }
.track-form .field-row { grid-template-columns: 1fr auto; align-items: end; }
.track-result { max-width: 720px; }
.order-card { background: var(--surface); border: 0; border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(13, 18, 32, .06); }
.order-card-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.order-no { font-weight: 800; }
.order-card-body { display: flex; flex-direction: column; gap: 14px; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-step { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.tl-step::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.tl-step:last-child::before { display: none; }
.tl-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--line); border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--line); flex: 0 0 auto; margin-top: 2px; z-index: 1; }
.tl-step.done .tl-dot { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.tl-step.active .tl-dot { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.tl-step b { font-size: 14.5px; }
.tl-step p { font-size: 13px; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-card h3 { font-size: 18px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line, #e8ebf0); }
.contact-card p { color: var(--muted); margin-bottom: 8px; }
.contact-card a { color: var(--accent); font-weight: 650; }

/* ---------- 20. Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; align-items: start; }
.checkout-main .a-card, .checkout-main .card-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.checkout-main h2 { font-size: 18px; font-weight: 800; margin-bottom: 18px; }
.checkout-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: calc(var(--header-h) + 20px); }
.checkout-summary h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.summary-items { margin-bottom: 14px; }
.summary-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.summary-item-name { font-size: 13.5px; font-weight: 650; flex: 1; }
.summary-item-name small { display: block; color: var(--muted); font-weight: 500; }
.pay-methods { display: flex; flex-direction: column; gap: 12px; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pay-option:hover { border-color: var(--accent); }
.pay-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay-radio { accent-color: var(--accent); width: 18px; height: 18px; }
.pay-icon { width: 40px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; }
.pay-icon.pp { background: #003087; }
.pay-icon.card { background: #1a1f36; }
.pay-icon.bank { background: #7c8aa0; }
.pay-icon.cod { background: #0e9f6e; }
.pay-option-body b { font-size: 14.5px; }
.pay-option-body small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pay-note { font-size: 13px; color: var(--muted); background: var(--bg-alt); border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 14px; }
.bank-info { background: var(--bg); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 16px; margin-top: 14px; font-size: 13.5px; }
.bank-note { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.secure-note { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ---------- 21. Account / orders / addresses ---------- */
.order-list { display: flex; flex-direction: column; gap: 14px; }
.order-card-head .status { margin-left: auto; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.detail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.detail-head h2 { font-size: 18px; }
.detail-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.addr-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.addr-list + .sub-title { margin-top: 0; }
.addr-card { background: var(--surface); border: 0; border-radius: var(--radius); padding: 20px; position: relative; box-shadow: 0 2px 12px rgba(13, 18, 32, .06); }
.addr-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.addr-card-head b { font-size: 15px; }
.addr-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.addr-actions { display: flex; gap: 12px; margin-top: 14px; }
.addr-card.is-default { box-shadow: 0 0 0 1.5px var(--accent), 0 2px 12px rgba(13, 18, 32, .06); }
.save-badge { font-size: 11px; font-weight: 800; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; }

.order-summary-mini { font-size: 13.5px; color: var(--muted); }
.kv { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv b { font-weight: 700; }

/* ---------- 22. Success page ---------- */
.success-card { margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 48px 36px; }
.success-check { width: 72px; height: 72px; border-radius: 50%; background: #eafaf3; color: var(--success); display: grid; place-items: center; margin: 0 auto 20px; }
.success-card h1 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.success-sub { color: var(--muted); margin-bottom: 26px; }
.success-note { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 16px; font-size: 14px; margin-bottom: 20px; }
.success-status { display: flex; flex-direction: column; gap: 10px; text-align: left; margin: 22px 0; }
.success-status .kv { border-bottom: 1px solid var(--line); }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 23. Toast & modal ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translate(-50%, 20px);
  background: #0d1220;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all .3s var(--ease);
  z-index: 200;
  max-width: 88vw;
  text-align: center;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(10, 14, 26, .55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  text-align: center;
  transform: translateY(12px);
  transition: transform .28s var(--ease);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-alt);
  color: var(--ink-2);
  font-size: 18px;
}
.wechat-icon { width: 56px; height: 56px; border-radius: 16px; background: #07c160; color: #fff; display: grid; place-items: center; margin: 0 auto 16px; }
.wechat-body .wechat-title { font-size: 20px; margin-bottom: 8px; }
.wechat-note { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.wechat-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.wechat-qr { border-radius: var(--radius-sm); margin: 0 auto 16px; width: 180px; height: 180px; object-fit: cover; }

/* ---------- 24. Error page ---------- */
.error-page { text-align: center; padding: 90px 20px; }
.error-code { font-size: 96px; font-weight: 800; letter-spacing: -.04em; color: var(--accent); line-height: 1; }
.error-box h1 { font-size: 28px; margin: 16px 0 10px; }
.error-box p { color: var(--muted); margin-bottom: 26px; }

/* ---------- 25. Scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .banner-slide.active .banner-media img { animation: none; }
}

/* ---------- 26. Responsive ---------- */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(var(--cols, 3), 1fr) !important; }
  .pcard-bottom { flex-direction: column; align-items: stretch; gap: 8px; }
  .pcard-actions { width: 100%; }
  .pcard-actions .btn { flex: 1; justify-content: center; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .checkout-summary { position: static; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .page-layout { grid-template-columns: 1fr; }
  .page-rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .page-rail .rail-card { flex: 1; min-width: 220px; }
}

@media (max-width: 1280px) {
  .nav-row { display: none !important; }
  .hamburger { display: inline-flex; }
}

@media (max-width: 900px) {
  :root { --container: var(--container-wap, 100%); --container-pad: var(--container-wap-pad, 16px); --header-h: 64px; }
  .container { padding: 0 var(--container-wap-pad, 16px); }
  .nav-row { display: none; }
  .logo-img { height: 34px; }
  .hamburger { display: inline-flex; }
  .product-layout { grid-template-columns: 1fr; }
  .detail-grid, .addr-list, .contact-grid, .field-row { grid-template-columns: 1fr; }
  .banner-slide { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .container { padding: 0 var(--container-wap-pad, 16px); }
  .btn-sm { padding: 9px 12px; font-size: 11px; }
  .btn.btn-primary { width: 100%; justify-content: center; }
  .product-layout .product-gallery { margin-bottom: 28px; }
  .product-layout .buy-box { margin-bottom: 28px; }
  .product-stats-section .stat-desc { font-size: 12px !important; }
  .section { padding: 52px 0; }
  .product-grid { grid-template-columns: repeat(var(--cols-mob, 1), 1fr) !important; gap: 16px; }
  .pcard { flex-direction: column; }
  .pcard-media { width: 100%; flex: none; aspect-ratio: 4 / 3; }
  .pcard-body { padding: 16px; }
  .pcard-desc { -webkit-line-clamp: 2; min-height: 0; }
  .pcard-bottom { flex-direction: column; align-items: stretch; gap: 10px; }
  .pcard-actions { width: 100%; }
  .pcard-actions .btn { flex: 1; justify-content: center; padding: 11px 14px; font-size: 13px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 26px; padding: 44px var(--container-wap-pad, 16px) 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; padding-left: var(--container-wap-pad, 16px); padding-right: var(--container-wap-pad, 16px); }
  .footer-pay { padding-left: var(--container-wap-pad, 16px); padding-right: var(--container-wap-pad, 16px); }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-item { padding: 16px 18px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cart-item { grid-template-columns: 76px 1fr; }
  .cart-item-img { width: 76px; height: 76px; }
  .cart-item-total { grid-column: 2; }
  .buy-btns { grid-template-columns: 1fr; }
  .mobile-nav { display: flex; }
  .site-footer { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .page-head { padding: 40px 0 36px; }
  .cta-box { padding: 60px 20px; }
  .value-row { grid-template-columns: 40px 1fr; gap: 14px; padding: 20px 0; }
  .value-row .v-icon { width: 40px; height: 40px; }
  .mm-link { font-size: 18px; }
  .mobile-menu-overlay { padding: 56px 20px calc(32px + env(safe-area-inset-bottom)); }
}

@media (min-width: 641px) and (max-width: 1080px) {
  .pcard { flex-direction: column; }
  .pcard-media { width: auto; flex: none; aspect-ratio: 1 / 1; }
  .pcard-desc { min-height: 0; }
}

/* ============ V2 OPTIMIZATIONS ============ */

/* Header logo - dark text (footer logo is white) */
.site-header .logo-text b { color: var(--ink); }
.site-header .logo-text small { color: var(--muted); }

/* Footer social - right side in contact column */
.footer-social-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-bottom: 10px; }
.footer-social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social { margin-top: 18px; }

/* Ad overlay text (like banner) */
.ad-banner { position: relative; }
.ad-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 6% 8%; background: linear-gradient(90deg, rgba(10,14,26,.65) 0%, rgba(10,14,26,.2) 60%, transparent 80%);
  color: #fff; pointer-events: none;
}
.ad-overlay-title { font-size: clamp(24px, 3.5vw, 44px); font-weight: 850; letter-spacing: -.03em; line-height: 1.1; max-width: 560px; text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.ad-overlay-sub { margin-top: 12px; font-size: clamp(14px, 1.6vw, 18px); color: #d8deec; max-width: 480px; line-height: 1.5; }

/* Video - no radius always */
.video-frame { border-radius: 0 !important; }

/* FAQ - premium spacing */
.faq-group { margin-bottom: 48px; }
.faq-group-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; letter-spacing: -.02em; }
.faq-item { margin-bottom: 14px; border-radius: var(--radius); }
.faq-item summary { padding: 22px 26px; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > div { padding: 0 26px 24px; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.faq-list { max-width: 860px; }

/* Track form - cohesive */
.track-form { display: flex; gap: 0; max-width: 560px; margin-bottom: 36px; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.track-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.track-form input { flex: 1; border: 0; padding: 14px 22px; font-size: 15px; background: transparent; outline: none; }
.track-form button { border-radius: 0 999px 999px 0; padding: 14px 28px; font-size: 15px; font-weight: 700; border: 0; }

/* Cart buttons - spacing */
.cart-summary .btn + .btn { margin-top: 12px; }

/* Checkout - payment text color fix */
.pay-option { color: var(--ink); background: var(--surface); }
.pay-option-body b { color: var(--ink); }
.pay-option-body small { color: var(--muted); }
.pay-option:has(input:checked) { background: var(--accent-soft); }
.pay-option:has(input:checked) .pay-option-body b { color: var(--accent-deep); }

/* Product detail section - reduce bottom margin */
.product-detail-section { padding-bottom: 20px !important; margin-bottom: 0 !important; }
.product-detail-section + .section { padding-top: 70px !important; }

/* Mobile detail - consistent horizontal padding */
@media (max-width: 640px) {
  .product-detail-section { padding-left: var(--container-wap-pad, 16px); padding-right: var(--container-wap-pad, 16px); }
  .value-grid { grid-template-columns: 1fr; }
  .track-form { flex-direction: column; border-radius: var(--radius); }
  .track-form input { padding: 14px 18px; }
  .track-form button { border-radius: 0 0 var(--radius) var(--radius); }
  .faq-item summary { padding: 18px 20px; font-size: 15px; }
  .faq-item > div { padding: 0 20px 20px; }
}

/* Account dashboard - premium redesign */
.dash-hero { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; border-radius: var(--radius); padding: 32px 28px; margin-bottom: 28px; }
.dash-hero h1 { font-size: 24px; font-weight: 800; }
.dash-hero p { opacity: .85; margin-top: 6px; font-size: 14px; }
.dash-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.dash-card { background: var(--surface); border: 0; border-radius: var(--radius); padding: 22px 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 2px 12px rgba(13, 18, 32, .06); transition: transform .2s, box-shadow .2s; }
.dash-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dash-icon { width: 60px; height: 60px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.dash-card b { font-size: 20px; font-weight: 800; display: block; }
.dash-card small { color: var(--muted); font-size: 12.5px; }
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card { background: var(--surface); border: 0; border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 2px 12px rgba(13, 18, 32, .06); transition: box-shadow .2s, transform .2s; }
.order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.order-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.order-no { font-weight: 700; font-size: 15px; }
.order-card-body { display: flex; gap: 20px; color: var(--muted); font-size: 13.5px; }
@media (max-width: 900px) { .dash-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .dash-cards { grid-template-columns: 1fr; } .dash-hero { padding: 24px 20px; } }

/* ============ V3 OPTIMIZATIONS ============ */

/* Track page - 25px gap between text and form */
.track-form { margin-top: 25px; }

/* Trust strip - aligned with container, grid layout */
.trust-strip { display: block; padding: 20px 0; background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 8px 4px; }
.trust-item svg { color: var(--accent); flex-shrink: 0; }
.trust-item img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.trust-item b { display: block; font-size: 14.5px; font-weight: 750; }
.trust-item span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 768px) { .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 480px) { .trust-grid { grid-template-columns: 1fr; gap: 12px; } }

/* Video full - truly full width, no side margins */
.video-full { width: 100%; max-width: 100%; padding: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
.video-full .video-frame { width: 100%; max-width: 100%; border-radius: 0 !important; margin: 0; }
.video-full video { width: 100%; display: block; }

/* Value card as link - no underline, inherit colors */
a.value-card { text-decoration: none; color: inherit; display: flex; align-items: flex-start; gap: 16px; }
a.value-card:hover { text-decoration: none; }

/* Mobile product image - preserve aspect ratio, no cropping */
@media (max-width: 640px) {
  .pcard-media { aspect-ratio: 1 / 1; }
  .pcard-media img { object-fit: contain; width: 100%; height: 100%; background: #f2f4f8; }
}

/* Footer social - 1 row, 4 items, below badges */
.footer-brand .footer-social { margin-top: 18px; }
.footer-social-links { display: flex; gap: 10px; flex-wrap: nowrap; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
  transition: background .2s, transform .2s; flex-shrink: 0;
}
.social-link:hover { background: var(--accent); transform: translateY(-2px); }
@media (max-width: 480px) {
  .footer-social-links { flex-wrap: nowrap; }
  .social-link { width: 32px; height: 32px; }
  .social-link svg { width: 15px; height: 15px; }
}


/* ============ V4 OPTIMIZATIONS ============ */

/* Secondary color applications */
.price, .product-price, .product-price-row .price, .pcard-price {
  color: var(--secondary) !important;
  font-weight: 800;
}
.pcard-tag {
  background: var(--secondary) !important;
  color: #fff !important;
}
.compare-price { color: var(--muted); text-decoration: line-through; font-weight: 500; }

/* Alignment classes for banner/ad/cta overlays */
.banner-overlay.align-left,
.ad-overlay.align-left {
  align-items: flex-start;
  text-align: left;
  padding-left: max(6%, calc((100vw - 1200px) / 2 + 24px));
}
.banner-overlay.align-center,
.ad-overlay.align-center {
  align-items: center;
  text-align: center;
}
.cta-box.align-left {
  text-align: left;
  align-items: flex-start;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
  padding-left: max(6%, calc((100vw - 1200px) / 2 + 24px));
}
.cta-box.align-center {
  text-align: center;
  align-items: center;
}

/* FAQ full width */
.faq-list { max-width: 100% !important; width: 100%; }

/* Product detail - chat button margin */
.product-info .btn-wechat { margin-top: 25px; }

/* Checkout payment options */
.pay-icon { color: var(--secondary) !important; }
.pay-option-body { margin-left: 16px; padding-left: 8px; }

/* Header nav-row - full width border top + vertical center */
.nav-row {
  
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0;
}
.nav-row .nav-link {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
}

/* Discount tag on product cards */
.pcard-discount {
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}


/* ============ V5 OPTIMIZATIONS ============ */

/* Chat/WeChat modal - QR smaller, spacing, line-height */
.wechat-qr { max-width: 160px; max-height: 160px; width: 100%; height: auto; }
.wechat-qr.placeholder { width: 160px; height: 160px; }
#wechatOpenApp { margin-top: 16px; margin-bottom: 10px; }
.wechat-body > p { line-height: 1.5; margin-bottom: 16px; }
.wechat-note { line-height: 1.5; font-size: 12.5px; }

/* Category chip active - secondary color */
.cat-chip.active {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
  color: #fff !important;
}

/* Mobile: hide top nav row */
@media (max-width: 768px) {
  .nav-row { display: none !important; }
}

/* Mobile: unified page margins for all pages */
@media (max-width: 768px) {
  .container.page,
  .page .container,
  .section.container {
    padding-left: var(--container-wap-pad, 16px);
    padding-right: var(--container-wap-pad, 16px);
  }
  .page-head .container {
    padding-left: var(--container-wap-pad, 16px);
    padding-right: var(--container-wap-pad, 16px);
  }
  /* Product list page - same margins as homepage */
  .products-page .product-grid {
    padding-left: 0;
    padding-right: 0;
  }
  /* Related products - horizontal margins */
  .related-products .product-grid {
    padding-left: 0;
    padding-right: 0;
  }
  .related-products {
    padding-left: var(--container-wap-pad, 16px);
    padding-right: var(--container-wap-pad, 16px);
  }
  /* Track, About, FAQ, Contact pages */
  .track-form { max-width: 100%; }
  .prose { padding-left: 0; padding-right: 0; }
  .page-layout { padding-left: 0; padding-right: 0; }
}

/* Product detail related section */
.related-products { padding-top: 24px; padding-bottom: 48px; }
.related-products .section-head { margin-bottom: 20px; }

/* Banner/ad button */
.banner-btn, .ad-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.banner-btn:hover, .ad-btn:hover {
  background: var(--secondary-deep);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}
.banner-overlay.align-left .banner-btn,
.ad-overlay.align-left .ad-btn {
  align-self: flex-start;
}
.banner-overlay.align-center .banner-btn,
.ad-overlay.align-center .ad-btn {
  align-self: center;
}


/* ============ BLOG PAGES ============ */
.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px;  }
.blog-main { min-width: 0; }
.blog-sidebar { position: sticky; top: 24px; align-self: start; }
.blog-card { background: #fff; border-radius: 16px; overflow: hidden; margin-bottom: 28px; box-shadow: 0 2px 16px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.blog-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: #f0f2f5; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 24px 28px; }
.blog-card-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; color: #8a93a6; margin-bottom: 12px; }
.blog-cat { background: var(--accent-soft, #eef2ff); color: var(--accent); padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 12px; text-decoration: none; }
.blog-cat:hover { text-decoration: none; color: var(--accent); }
.blog-card-title { font-size: 22px; font-weight: 700; margin: 0 0 10px; line-height: 1.35; }
.blog-card-title a { color: var(--text, #1a1f36); text-decoration: none; }
.blog-card-title a:hover { color: var(--accent); }
.blog-card-desc { color: #5a6478; font-size: 15px; line-height: 1.7; margin: 0 0 14px; }
.blog-card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-tag { display: inline-block; font-size: 12.5px; color: #6b7590; background: #f4f6fa; padding: 4px 12px; border-radius: 999px; text-decoration: none; transition: all .2s; }
.blog-tag:hover, .blog-tag.active { background: var(--secondary); color: #fff; text-decoration: none; }
.blog-side-box { background: #fff; border-radius: 14px; padding: 22px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.blog-side-box h3 { font-size: 16px; font-weight: 700; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.blog-side-list { list-style: none; padding: 0; margin: 0; }
.blog-side-list li { margin-bottom: 8px; }
.blog-side-list a { color: #5a6478; text-decoration: none; font-size: 14.5px; display: block; padding: 6px 0; transition: color .2s; }
.blog-side-list a:hover, .blog-side-list a.active { color: var(--accent); font-weight: 600; }
.blog-side-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-empty { text-align: center; padding: 60px 0; color: #8a93a6; }

/* Blog article */
.blog-article-head { background: #ffffff; padding: 56px 0 40px; }
.blog-article-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13.5px; color: #8a93a6; margin-bottom: 16px; }
.blog-article-title { font-size: 36px; font-weight: 800; line-height: 1.25; margin: 0 0 14px; color: var(--text, #1a1f36); }
.blog-article-desc { font-size: 17px; color: #5a6478; line-height: 1.7; max-width: 720px; margin: 0; }
.blog-article-cover { padding: 32px 0; }
.blog-article-cover img { width: 100%; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.blog-article-body { max-width: 760px; margin: 0 auto; padding: 16px 0 40px; }
.blog-content { font-size: 16.5px; line-height: 1.85; color: #2d3548; }
.blog-content h2 { font-size: 26px; font-weight: 700; margin: 36px 0 16px; }
.blog-content h3 { font-size: 21px; font-weight: 700; margin: 28px 0 12px; }
.blog-content p { margin-bottom: 18px; }
.blog-content img { max-width: 100%; border-radius: 10px; margin: 16px 0; }
.blog-content a { color: var(--accent); }
.blog-article-tags { margin-top: 36px; padding-top: 24px; border-top: 1px solid #e8ecf4; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.blog-tags-label { font-weight: 600; color: #5a6478; font-size: 14px; }
.blog-related { padding: 40px 0 60px; border-top: 1px solid #e8ecf4; }
.section-head-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.blog-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-related-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); text-decoration: none; transition: transform .25s; display: block; }
.blog-related-card:hover { transform: translateY(-3px); text-decoration: none; }
.blog-related-img { aspect-ratio: 16/9; overflow: hidden; background: #f0f2f5; }
.blog-related-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-related-body { padding: 16px 25px 30px 25px; }
.blog-related-body h3 { font-size: 16px; font-weight: 600;  color: var(--text, #1a1f36); line-height: 1.4; }

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-article-title { font-size: 28px; }
  .blog-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .blog-card-body { padding: 18px 20px; }
  .blog-card-title { font-size: 19px; }
  .blog-article-head { padding: 36px 0 28px; }
  .blog-article-title { font-size: 24px; }
  .blog-article-desc { font-size: 15px; }
  .blog-content { font-size: 15.5px; }
}


/* ============ V6: Video overlay, CTA bg, Blog home ============ */
.video-frame { position: relative; overflow: hidden; border-radius: 0; }
.video-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 60px;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
}
.video-overlay.align-center { align-items: center; text-align: center; background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.2) 100%); }
.video-overlay.align-left { align-items: flex-start; text-align: left; }
.video-overlay-title { font-size: 38px; font-weight: 800; color: #fff; margin: 0 0 12px; line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.video-overlay-sub { font-size: 18px; color: rgba(255,255,255,.9); margin: 0 0 20px; max-width: 560px; line-height: 1.6; }
.video-overlay.align-center .video-overlay-sub { margin-left: auto; margin-right: auto; }
.video-btn {
  display: inline-block; padding: 13px 32px; background: var(--secondary);
  color: #fff; font-weight: 700; font-size: 15px; border-radius: 999px;
  text-decoration: none; transition: all .25s;
}
.video-btn:hover { background: #e63900; transform: translateY(-2px); color: #fff; text-decoration: none; }

/* CTA with background image */
.cta-section { position: relative; overflow: hidden; }
.cta-box { position: relative; z-index: 1; }

/* Blog home section */
.blog-home-section { padding: 64px 0; background: #f7f8fa; }
.home-viewall { text-align: center; margin-top: 40px; }
.gallery-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 24px; }
@media (max-width: 1080px) { .gallery-grid { grid-template-columns: repeat(var(--cols, 3), 1fr) !important; } }
@media (max-width: 768px)  { .gallery-grid { grid-template-columns: repeat(var(--cols-mob, 2), 1fr) !important; } }
@media (max-width: 540px)  { .gallery-grid { grid-template-columns: repeat(var(--cols-mob, 1), 1fr) !important; } }
.blog-home-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.blog-home-head h2 { font-size: 30px; font-weight: 800; margin: 0; }
.blog-home-head a { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 15px; }
.blog-home-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 28px; }
.blog-home-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.blog-home-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.1); }
.blog-home-card-img { aspect-ratio: 16/9; overflow: hidden; background: #eef0f5; }
.blog-home-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-home-card:hover .blog-home-card-img img { transform: scale(1.05); }
.blog-home-card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.blog-home-card-meta { font-size: 12.5px; color: #8a93a6; margin-bottom: 10px; display: flex; gap: 12px; }
.blog-home-card-title { font-size: 18px; font-weight: 700; margin: 0 0 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-home-card-title a { color: var(--text); text-decoration: none; }
.blog-home-card-title a:hover { color: var(--accent); }
.blog-home-card-desc { font-size: 14px; color: #5a6478; line-height: 1.65; margin: 0 0 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-home-card-more { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }

@media (max-width: 900px) {
  .blog-home-grid { grid-template-columns: repeat(var(--cols-mob, 1), 1fr) !important; }
  .video-overlay { padding: 24px 28px; }
  .video-overlay-title { font-size: 24px; }
  .video-overlay-sub { font-size: 15px; }
}


/* ============ V7: Blog redesign, admin polish, mobile fixes ============ */

/* Blog list - 1 per row, image left / content right */
.blog-layout { grid-template-columns: 1fr 260px; gap: 25px; }
.blog-main { display: grid; grid-template-columns: 1fr; gap: 24px; align-content: start; }
.blog-card { margin-bottom: 0; display: flex; flex-direction: row; align-items: stretch; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.blog-card-img { display: block; width: 42%; min-width: 300px; aspect-ratio: auto; overflow: hidden; background: #f0f2f5; flex-shrink: 0; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.blog-card-title { font-size: 20px; }
.blog-card-desc { font-size: 14px; line-height: 1.7; }
.blog-card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--accent, #2b5bee); text-decoration: none; }
.blog-card-more:hover { color: var(--accent-2, #ff4000); }

/* Blog detail - left aligned, editorial */
.blog-article-head { text-align: left; padding: 48px 0 36px; }
.blog-article-head .container { text-align: left; }
.blog-article-title { text-align: left; }
.blog-article-desc { text-align: left; }
.blog-article-meta { justify-content: flex-start; }
.blog-content { text-align: left; }
.blog-content p { text-align: left; }
.blog-article-body { max-width: 780px; margin: 0 auto; padding: 8px 0 48px; }
.blog-article-cover { padding: 0 0 16px; }
.blog-article-cover .container { max-width: 900px; }
.blog-article-cover img { border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.08); }

/* Mobile product page - category/banner margin */
@media (max-width: 768px) {
  .products-page .cat-bar,
  .products-page .category-header {
    margin-left: var(--container-wap-pad, 16px);
    margin-right: var(--container-wap-pad, 16px);
  }
  .products-page .product-grid {
    padding-left: var(--container-wap-pad, 16px);
    padding-right: var(--container-wap-pad, 16px);
  }
  .blog-main { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-card { flex-direction: column; }
  .blog-card-img { width: 100%; min-width: 0; aspect-ratio: 16/9; }
  .blog-card-body { padding: 20px 22px; }
  .blog-article-title { font-size: 24px; }
  .blog-article-head { padding: 32px 0 24px; }
}

/* Admin: sort column first, consistent */
.a-table th:first-child, .a-table td:first-child { text-align: center; }
.a-sort-input, .sort-input {
  width: 60px; padding: 5px 8px; border: 1px solid #d0d5dd;
  border-radius: 6px; text-align: center; font-size: 13px;
  transition: border-color .2s;
}
.a-sort-input:focus, .sort-input:focus { outline: none; border-color: var(--accent); }

/* Admin: status toggle button */
.a-status-toggle {
  padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: none; cursor: pointer; transition: all .2s; min-width: 60px;
}
.a-status-toggle.active { background: #dcfce7; color: #166534; }
.a-status-toggle.inactive { background: #f1f5f9; color: #64748b; }
.a-status-toggle:hover { opacity: .85; }

/* Admin: ban button */
.a-btn-ban { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.a-btn-ban:hover { background: #fee2e2; }
.a-btn-banned { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; opacity: .7; }

/* Admin: ad image upload - replace button top-right */
.ad-image-wrap { position: relative; display: inline-block; }
.ad-image-replace {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,0,0,.7); color: #fff; border: none;
  padding: 5px 12px; border-radius: 6px; font-size: 12px;
  cursor: pointer; font-weight: 600; backdrop-filter: blur(4px);
  transition: background .2s;
}
.ad-image-replace:hover { background: rgba(0,0,0,.85); }

/* Delete confirm modal - premium style */
.modal-confirm-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; backdrop-filter: blur(4px); animation: fadeIn .2s ease;
}
.modal-confirm-box {
  background: #fff; border-radius: 16px; padding: 32px;
  max-width: 400px; width: 90%; box-shadow: 0 24px 64px rgba(0,0,0,.2);
  animation: slideUp .25s ease; text-align: center;
}
.modal-confirm-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fef2f2; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 16px;
}
.modal-confirm-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: #0f172a; }
.modal-confirm-text { font-size: 14px; color: #64748b; margin: 0 0 24px; line-height: 1.6; }
.modal-confirm-actions { display: flex; gap: 12px; justify-content: center; }
.modal-confirm-actions button {
  padding: 10px 24px; border-radius: 8px; font-size: 14px;
  font-weight: 600; cursor: pointer; border: none; transition: all .2s;
}
.modal-confirm-cancel { background: #f1f5f9; color: #475569; }
.modal-confirm-cancel:hover { background: #e2e8f0; }
.modal-confirm-delete { background: #ef4444; color: #fff; }
.modal-confirm-delete:hover { background: #dc2626; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }


/* ===== V8 Additions ===== */

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(15, 23, 42, 0.97); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-text {
  flex: 1; min-width: 280px; color: rgba(255,255,255,0.85);
  font-size: 13.5px; line-height: 1.65;
}
.cookie-text p { margin: 0; }
.cookie-text a { color: #60a5fa; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 10px 24px; border-radius: 6px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s;
}
.cookie-btn-reject {
  background: transparent; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25);
}
.cookie-btn-reject:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
.cookie-btn-accept {
  background: var(--primary, #2b5bee); color: #fff;
}
.cookie-btn-accept:hover { opacity: 0.9; transform: translateY(-1px); }

/* Policy Page */
.policy-content {
  max-width: 820px; margin: 0 auto; padding: 40px 20px 60px;
  color: #374151; line-height: 1.8; font-size: 15px;
}
.policy-content h1 { font-size: 28px; font-weight: 800; margin: 0 0 20px; color: #111827; }
.policy-content h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; color: #111827; }
.policy-content h3 { font-size: 17px; font-weight: 600; margin: 24px 0 10px; color: #1f2937; }
.policy-content p { margin: 0 0 14px; }
.policy-content ul, .policy-content ol { margin: 0 0 14px; padding-left: 24px; }
.policy-content li { margin-bottom: 6px; }
.policy-content a { color: var(--primary, #2b5bee); }

/* Media Library Grid */
.media-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.media-item {
  border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden;
  background: #fff; transition: box-shadow 0.2s;
}
.media-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.media-preview {
  position: relative; width: 100%; aspect-ratio: 4/3;
  background: #f3f4f6; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.media-preview img { width: 100%; height: 100%; object-fit: cover; }
.media-preview video { width: 100%; height: 100%; object-fit: cover; }
.media-type-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,0.7); color: #fff; font-size: 11px;
  padding: 3px 8px; border-radius: 4px; font-weight: 600;
}
.media-info { padding: 10px 12px; }
.media-name {
  font-size: 12.5px; font-weight: 600; color: #1f2937;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.media-meta { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.media-actions { display: flex; gap: 6px; margin-top: 8px; }

/* Admin input small */
.a-input-sm {
  padding: 6px 8px; font-size: 13px; border: 1px solid #d0d5dd;
  border-radius: 6px; width: 100%; background: #fff;
}
.a-input-sm:focus { outline: none; border-color: var(--primary, #2b5bee); box-shadow: 0 0 0 3px rgba(43,91,238,0.1); }

/* Admin blog list unified */
.admin-page-head { margin-bottom: 20px; }
.admin-page-head h1 { font-size: 22px; font-weight: 800; color: #111827; margin: 0; }
.admin-page-head .a-sub { color: #6b7280; font-size: 13.5px; margin-top: 4px; }

/* Rich Text Editor - font size fix */
/* 已迁移至 admin.css 的 .rte-select（后台唯一样式源）；此处旧规则与 admin.css 冲突（无 max-width 会撑宽下拉），已移除 */

/* Blog detail - tighter image to content */
.blog-article-cover { padding: 0 0 12px !important; }
.blog-article-body { padding: 4px 0 48px !important; }

/* Responsive cookie banner */
@media (max-width: 640px) {
  .cookie-banner-inner { padding: 14px 16px; gap: 14px; }
  .cookie-text { font-size: 12.5px; min-width: 100%; }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; padding: 12px; }
}


/* ===== V9: Product hover swap, video overlay unify, admin polish ===== */

/* Product card hover image swap */
.pcard-media { position: relative; overflow: hidden; }
.pcard-img-hover {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .35s ease;
}
.pcard.has-hover:hover .pcard-img-hover { opacity: 1; }
.pcard.has-hover:hover .pcard-img-main { opacity: 0; }
.pcard-img-main { transition: opacity .35s ease; }
/* Single-image card: hover just zooms the main image slightly */
.pcard:not(.has-hover):hover .pcard-img-main { transform: scale(1.05); }

/* Video overlay - unified with ad overlay style */
.video-overlay {
  padding: 6% 8% !important;
  background: linear-gradient(90deg, rgba(10,14,26,.65) 0%, rgba(10,14,26,.2) 60%, transparent 80%) !important;
}
.video-overlay.align-center {
  background: linear-gradient(180deg, rgba(10,14,26,.5) 0%, rgba(10,14,26,.25) 100%) !important;
  align-items: center !important; text-align: center !important;
}
.video-overlay.align-left {
  align-items: flex-start !important; text-align: left !important;
}
.video-overlay-title {
  font-size: clamp(24px, 3.5vw, 44px) !important;
  font-weight: 850 !important;
  letter-spacing: -.03em !important;
  line-height: 1.1 !important;
  max-width: 560px !important;
}
.video-overlay-sub {
  font-size: clamp(14px, 1.6vw, 18px) !important;
  color: #d8deec !important;
  max-width: 480px !important;
  margin-top: 12px !important;
}
.video-overlay.align-center .video-overlay-sub { margin-left: auto; margin-right: auto; }

/* Media library - 1:1 grid */
.media-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 16px !important; }
.media-preview { aspect-ratio: 1 / 1 !important; }

/* Admin unified button styles */
.a-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: all .15s; line-height: 1.4; white-space: nowrap;
}
.a-btn-primary { background: var(--primary, #2b5bee); color: #fff; }
.a-btn-primary:hover { opacity: .9; color: #fff; }
.a-btn-ghost { background: #fff; color: #374151; border-color: #d0d5dd; }
.a-btn-ghost:hover { border-color: #9ca3af; background: #f9fafb; }
.a-btn-danger-soft { background: #fef2f2; color: #dc2626; }
.a-btn-danger-soft:hover { background: #fee2e2; }
.a-btn-success { background: #10b981; color: #fff; }
.a-btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 6px; }
.a-toolbar { display: flex; gap: 10px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0f0f0; }

/* Admin page head - unified */
.admin-page-head { margin-bottom: 20px; }
.admin-page-head h1 { font-size: 22px; font-weight: 800; color: #111827; margin: 0; }
.admin-page-head .a-sub { color: #6b7280; font-size: 13.5px; margin-top: 4px; }

/* Admin table - unified */
.a-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.a-table th { text-align: left; padding: 12px 14px; background: #f9fafb; font-weight: 700; color: #374151; border-bottom: 2px solid #e5e7eb; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.a-table td { padding: 14px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.a-table tr:hover { background: #fafbfc; }
.cell-main { font-weight: 600; color: #1f2937; }
.cell-sub { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.a-code { background: #f3f4f6; padding: 2px 8px; border-radius: 4px; font-size: 12px; color: #4b5563; font-family: monospace; }
.a-empty { text-align: center; padding: 40px; color: #9ca3af; font-size: 14px; }

/* Admin badges */
.a-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.a-badge-green { background: #d1fae5; color: #065f46; }
.a-badge-gray { background: #f3f4f6; color: #6b7280; }
.a-badge-red { background: #fee2e2; color: #991b1b; }

/* Admin sort input */
.a-sort-input {
  width: 60px; padding: 5px 8px; font-size: 13px;
  border: 1px solid #d0d5dd; border-radius: 6px; text-align: center;
}
.a-sort-input:focus { outline: none; border-color: var(--primary, #2b5bee); box-shadow: 0 0 0 3px rgba(43,91,238,.1); }

/* Admin status toggle button */
.a-status-toggle {
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: none; cursor: pointer; transition: all .15s;
}
.a-status-toggle.active { background: #d1fae5; color: #065f46; }
.a-status-toggle.inactive { background: #f3f4f6; color: #6b7280; }


/* ===== V10: Admin style unify, frontend fixes ===== */

/* Frontend: page-head title left align without left padding */
.page-head h1, .page-head p { padding-left: 0 !important; margin-left: 0 !important; }

/* Frontend: breadcrumb equal margins */
.breadcrumb { margin-top: 20px !important; margin-bottom: 20px !important; padding-top: 0 !important; padding-bottom: 0 !important; }

/* Policy pages: full width, left aligned */
.policy-content { padding: 40px 0 60px !important; text-align: left !important; }
.policy-content h1, .policy-content h2, .policy-content h3 { text-align: left !important; margin-bottom: 16px; }

/* Admin: unified sort input (match menus.ejs style) */
.a-sort-input {
  width: 60px !important;
  padding: 4px 8px !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 6px !important;
  text-align: center !important;
  font-size: 13px !important;
}
.a-sort-input:focus { outline: none; border-color: #2b5bee !important; box-shadow: 0 0 0 3px rgba(43,91,238,.1) !important; }

/* Admin: unified status badge (match menus.ejs) */
.a-badge.green { background: #d1fae5 !important; color: #065f46 !important; }
.a-badge.gray { background: #f3f4f6 !important; color: #6b7280 !important; }

/* Admin: status clickable badge */
.a-badge-clickable { cursor: pointer; transition: opacity .15s; user-select: none; }
.a-badge-clickable:hover { opacity: .8; }

/* Admin: socials table inputs unified */
.a-input-sm {
  padding: 5px 8px !important;
  font-size: 13px !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 6px !important;
  background: #fff !important;
  width: 100% !important;
}
.a-input-sm:focus { outline: none; border-color: #2b5bee !important; box-shadow: 0 0 0 3px rgba(43,91,238,.1) !important; }

/* Admin: blog category form - margins */
.blog-cat-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; padding: 16px; background: #f9fafb; border-radius: 10px; }
.blog-cat-form .a-field { margin-bottom: 0 !important; }

/* Admin: media grid - force 4 per row */
.media-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 16px !important; }
@media (max-width: 1024px) { .media-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 640px) { .media-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* Admin: member ban button - badge style */
.member-ban-btn {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; border: none; cursor: pointer;
  background: #d1fae5; color: #065f46; transition: all .15s;
}
.member-ban-btn:hover { background: #a7f3d0; }
.member-ban-btn.banned { background: #fee2e2; color: #991b1b; }
.member-ban-btn.banned:hover { background: #fecaca; }

.policy-body { line-height: 1.8; color: #374151; max-width: 820px; }

/* ===== Media library - consolidated 4-col grid ===== */
.media-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 16px !important; }
.media-item { display: flex !important; flex-direction: column !important; width: 100% !important; }
.media-preview { aspect-ratio: 1 / 1 !important; width: 100% !important; }
@media (max-width: 1024px) { .media-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 640px) { .media-grid { grid-template-columns: repeat(2, 1fr) !important; } }


/* ===== V17: Responsive grid + breadcrumbs ===== */

/* Breadcrumb in page-head */
.page-head .breadcrumb {
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.page-head .breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .2s; }
.page-head .breadcrumb a:hover { color: #fff; }
.page-head .breadcrumb .sep { margin: 0 8px; color: rgba(255,255,255,.35); }
.page-head .breadcrumb span:last-child { color: rgba(255,255,255,.9); }

/* < 1480px: ensure non-home pages container margins */
@media (max-width: 1480px) {
.header-main{ padding: 0 var(--container-pad, 20px); }
  .container { padding: 0 var(--container-pad, 20px); }
  .section.container { padding: 40px var(--container-pad, 24px) 60px; }
}

/* < 1080px: products follow PC per-row count, blog 1 col */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(var(--cols, 3), 1fr) !important; gap: 20px !important; }
  .blog-main { grid-template-columns: 1fr !important; }
  .blog-layout { grid-template-columns: 1fr !important; }
}

/* < 720px: products follow mobile per-row count */
@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(var(--cols-mob, 1), 1fr) !important; gap: 16px !important; }
  .container { padding: 0 var(--container-wap-pad, 16px); }
  .section.container { padding: 32px var(--container-wap-pad, 16px) 48px; }
  .page-head .container { padding: 0 var(--container-wap-pad, 16px); }
}

/* Breadcrumb on white-background pages */
.container.page .breadcrumb {
  margin-bottom: 16px !important;
  font-size: 13px;
  color: var(--muted);
}
.container.page .breadcrumb a { color: var(--muted); text-decoration: none; }
.container.page .breadcrumb a:hover { color: var(--accent); }
.container.page .breadcrumb .sep { margin: 0 8px; color: #c4cad6; }
.auth-wrap + .container .breadcrumb,
.container + .auth-wrap { /* noop */ }




/* ===== V19: page-head banner layers, sort input, policy margins, blog breadcrumb ===== */
.page-head { position: relative; overflow: hidden; }
.page-head .ph-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-size: cover; background-position: center; z-index: 1; }
.page-head .ph-bg-mobile { display: none; }
.page-head .container { position: relative; z-index: 2; }
@media (max-width: 720px) {
  .page-head .ph-bg { display: none; }
  .page-head .ph-bg-mobile { display: block; }
}

/* Admin sort input */
.a-sort-input {
  width: 70px; height: 30px; border: 1px solid #d0d5dd; border-radius: 6px;
  padding: 0 6px; font-size: 13px; color: #1d2939; background: #fff; text-align: center;
  transition: border-color .2s;
}
.a-sort-input:focus { outline: none; border-color: #2b5bee; box-shadow: 0 0 0 3px rgba(43,91,238,.12); }

/* Policy pages: left/right margin below 1480px to align with banner container */
@media (max-width: 1480px) {
  .policy-body { padding-left: var(--container-pad, 24px); padding-right: var(--container-pad, 24px); }
}

/* Blog post breadcrumb spacing (matches other pages) */
.blog-article-head .container { padding-top: 34px; }
.blog-article-head .breadcrumb { margin: 0 0 18px !important; padding: 0 !important; font-size: 13px; color: #8a93a6; }
.blog-article-head .breadcrumb a { color: #8a93a6; text-decoration: none; }
.blog-article-head .breadcrumb a:hover { color: var(--accent, #2b5bee); }
.blog-article-head .breadcrumb .sep { margin: 0 8px; color: #c4cad6; }


/* ===== Mobile: smaller buttons for banner/video/ads ===== */
@media (max-width: 768px) {
  .banner-slide .btn,
  .banner-caption .a-btn,
  .video-overlay .a-btn,
  .ad-overlay .a-btn,
  .cta-section .a-btn {
    padding: 8px 16px !important;
    font-size: 13px !important;
    min-height: 36px !important;
  }
  .banner-caption h1, .video-overlay h2, .ad-overlay h2 {
    font-size: 20px !important;
  }
  .banner-caption p, .video-overlay p, .ad-overlay p {
    font-size: 13px !important;
  }
}
@media (max-width: 480px) {
  .banner-slide .btn,
  .banner-caption .a-btn,
  .video-overlay .a-btn,
  .ad-overlay .a-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    min-height: 32px !important;
  }
  .banner-caption h1, .video-overlay h2, .ad-overlay h2 {
    font-size: 17px !important;
  }
}


/* Case category badge */
.case-card-img { position: relative; display: block; overflow: hidden; }
.case-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(43,91,238,0.92);
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  letter-spacing: 0.3px;
}


/* ===== Tag cloud & tag pages ===== */
.tag-cloud-item {
  display:inline-flex;
  align-items:center;
  padding:10px 18px;
  background:#f5f7fa;
  border:1px solid #e2e8f0;
  border-radius:8px;
  color:#1a1a1a;
  font-weight:600;
  font-size:14px;
  text-decoration:none;
  transition:all .2s;
  justify-content:center;
}
.tag-cloud-item:hover {
  background:#1a1a1a;
  color:#fff;
  border-color:#1a1a1a;
}
.blog-article-tags {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-top:12px;
}
.blog-tags-label {
  font-weight:600;
  color:#334155;
  margin-right:4px;
}
.blog-tag {
  display:inline-block;
  padding:4px 12px;
  background:#f0f4ff;
  color:#2b5bee;
  border-radius:20px;
  font-size:13px;
  text-decoration:none;
  transition:all .2s;
}
.blog-tag:hover {
  background:#2b5bee;
  color:#fff;
}
.cat-chip {
  display:inline-block;
  padding:8px 18px;
  background:#f5f7fa;
  border:1px solid #e2e8f0;
  border-radius:20px;
  color:#475569;
  font-size:14px;
  text-decoration:none;
  transition:all .2s;
}
.cat-chip:hover {
  border-color:#2b5bee;
  color:#2b5bee;
}
.cat-chip.active {
  background:#ff4000;
  color:#fff;
  border-color:#ff4000;
}

/* ---------- Home FAQ & Stats modules ---------- */
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:30px; }
@media (max-width: 1080px) { .stats-grid { grid-template-columns:repeat(2,1fr); gap:24px; } }
@media (max-width: 640px) { .stats-grid { grid-template-columns:repeat(2,1fr); gap:18px; } .stat-number { font-size:34px !important; } }
/* Mobile: home stats description 12px */
@media (max-width: 640px) { .stats-section .stat-desc { font-size: 12px !important; letter-spacing: .3px; } }
/* Mobile: home About Us image on top, text below */
@media (max-width: 640px) { .about-home-section .about-intro-grid { grid-template-columns: 1fr !important; gap: 24px !important; } }
.faq-item { transition: box-shadow .2s; }
.faq-item:hover { box-shadow:0 4px 12px rgba(0,0,0,.06); }

@media (max-width: 980px) { .products-section .section-head a { display:none !important; } }

/* Testimonials */
.testimonials-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width: 980px) { .testimonials-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 640px) { .testimonials-grid { grid-template-columns:1fr; } }
.testimonial-card:hover { transform:translateY(-4px); box-shadow:0 8px 32px rgba(0,0,0,.1); transition:all .3s; }

/* Partners - 16:9 image cards */
.partners-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:24px; }
@media (max-width: 980px) { .partners-grid { grid-template-columns:repeat(4,1fr); } }
@media (max-width: 640px) { .partners-grid { grid-template-columns:repeat(3,1fr); gap:16px; } }
.partner-card { background:#fff; border:0; border-radius:14px; padding:12px; box-shadow:0 2px 12px rgba(15,23,42,.06); transition:transform .3s, box-shadow .3s; }
.partner-card:hover { transform:translateY(-4px); box-shadow:0 12px 32px rgba(15,23,42,.08); }
.partner-card-link { display:block; text-decoration:none; }
.partner-card-img { position:relative; aspect-ratio:16/9; border-radius:10px; overflow:hidden; background:#f8fafc; display:flex; align-items:center; justify-content:center; }
.partner-card-img img { width:100%; height:100%; object-fit:cover; object-position:center; transition:transform .5s; }
.partner-card:hover .partner-card-img img { transform:scale(1.04); }
.partner-card-fallback { font-weight:700; color:#94a3b8; font-size:15px; }
.partner-card-title { margin-top:10px; text-align:center; font-size:13px; font-weight:600; color:#334155; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.modal-overlay.open { display:flex !important; align-items:center !important; justify-content:center !important; opacity:1 !important; pointer-events:auto !important; }

/* Product detail new modules */
.product-stats-section .stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:30px; text-align:left; }
.product-stats-section .stats-grid .stat-number { font-size:48px; font-weight:800; color:var(--accent,#2b5bee); margin-bottom:10px; font-family:'Arial Black',sans-serif; line-height:1; }
.product-stats-section .stats-grid .stat-desc { font-size:15px; color:#6b7280; font-weight:500; }

.product-testimonials-section .testimonials-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.product-app-section .app-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.product-app-section .app-card { display:block; border-radius:12px; overflow:hidden; background:#fff; box-shadow:0 2px 12px rgba(0,0,0,.06); text-decoration:none; transition:transform .3s; }
.product-app-section .app-card:hover { transform:translateY(-4px); }
.product-app-section .app-card img { width:100%; height:100%; object-fit:cover; }
.product-faq-section .faq-group-grid { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.product-faq-section details summary { cursor:pointer; font-weight:600; font-size:14.5px; color:#374151; padding:12px 14px; background:#f8fafc; border-radius:8px; list-style:none; }
.product-company-section .company-intro { display:grid; grid-template-columns:1fr 1.2fr; gap:48px; align-items:center; }
.product-company-section .company-intro img { width:100%; height:auto; object-fit:cover; border-radius:16px; }

@media (max-width: 980px) {
  .product-stats-section .stats-grid { grid-template-columns:repeat(2,1fr); }
  .product-testimonials-section .testimonials-grid { grid-template-columns:repeat(2,1fr); }
  .product-app-section .app-grid { grid-template-columns:repeat(2,1fr); }
  .product-faq-section .faq-group-grid { grid-template-columns:1fr; }
  .product-company-section .company-intro { grid-template-columns:1fr; gap:24px; }
}
@media (max-width: 640px) {
  .product-stats-section .stats-grid { grid-template-columns:1fr; }
  .product-testimonials-section .testimonials-grid { grid-template-columns:1fr; }
  .product-app-section .app-grid { grid-template-columns:1fr; }
  .product-company-section .company-intro { grid-template-columns:1fr; }
}

/* ===== Product detail module responsive ===== */
@media (max-width: 980px) {
  .product-stats-section .stats-grid,
  .product-testimonials-section .testimonials-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .product-app-section .app-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .product-faq-section .faq-group-grid { grid-template-columns: 1fr !important; }
  .product-company-section .company-intro { grid-template-columns: 1fr !important; gap: 28px !important; padding: 28px !important; }
  .product-related-section .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
  .product-stats-section .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .product-testimonials-section .testimonials-grid,
  .product-app-section .app-grid { grid-template-columns: 1fr !important; }
  .product-related-section .product-grid { grid-template-columns: 1fr !important; }
  .product-detail-section .prose,
  .product-spec-section .prose { font-size: 14px; }
  .product-company-section .company-intro { padding: 20px !important; }
  .product-inquiry-section .inquiry-form-wrap { padding: 22px !important; }
}
/* Product detail section spacing */
.product-detail-section .section-head,
.product-spec-section .section-head,
.product-stats-section .section-head,
.product-testimonials-section .section-head,
.product-app-section .section-head,
.product-company-section .section-head,
.product-faq-section .section-head,
.product-related-section .section-head,
.product-inquiry-section .section-head,
.product-tags-section .section-head { text-align: center; margin-bottom: 44px; }
.product-detail-section .section-head h2,
.product-spec-section .section-head h2,
.product-stats-section .section-head h2,
.product-testimonials-section .section-head h2,
.product-app-section .section-head h2,
.product-company-section .section-head h2,
.product-faq-section .section-head h2,
.product-related-section .section-head h2,
.product-inquiry-section .section-head h2,
.product-tags-section .section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.product-spec-section .spec-table td,
.product-detail-section .spec-table td { padding: 14px 16px; font-size: 14px; }
.product-spec-section .spec-table tr:nth-child(even) td,
.product-detail-section .spec-table tr:nth-child(even) td { background: #f8fafc; }
.product-spec-section .spec-table tr td:first-child,
.product-detail-section .spec-table tr td:first-child { color: #374151; font-weight: 600; width: 40%; }
.product-spec-section .spec-table tr td:last-child,
.product-detail-section .spec-table tr td:last-child { color: #6b7280; }
.product-spec-section .spec-rich table,
.product-detail-section .spec-rich table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.product-spec-section .spec-rich td,
.product-detail-section .spec-rich td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid #eef1f6; }
.product-spec-section .spec-rich td:first-child,
.product-detail-section .spec-rich td:first-child { color: #374151; font-weight: 600; width: 40%; background: #f8fafc; }

/* Blog/Case detail sidebar layout */
.page-layout .blog-article-body { max-width: none; margin: 0; width: 100%; min-width: 0; padding: 8px 0 48px; }
.rail-products { display: flex; flex-direction: column; gap: 12px; }
.rail-product { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 8px; border-radius: 10px; transition: background .2s; }
.rail-product:hover { background: #f4f6fa; }
.rail-product img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #f4f6fa; }
.rail-product div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rail-product-name { font-size: 13px; font-weight: 600; color: #1f2937; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rail-product-price { font-size: 13px; font-weight: 700; color: var(--secondary, #ff4000); }
@media (max-width: 980px) {
  .page-layout .blog-article-body { padding: 0 0 40px; }
}

/* ===== Downloads page ===== */
.dl-cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.dl-cat-chip { display: inline-block; padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #4b5563; background: #fff; text-decoration: none; transition: all .2s; border: 1px solid #e2e8f0; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.dl-cat-chip:hover { border-color: var(--accent, #2b5bee); color: var(--accent, #2b5bee); background: rgba(43,91,238,.05); }
.dl-cat-chip.active { background: var(--accent, #2b5bee); color: #fff; border-color: var(--accent, #2b5bee); }

/* Mobile: category chips stack full-width, one per row */
@media (max-width: 720px) {
  .dl-cats { flex-direction: column; gap: 10px; }
  .dl-cat-chip { display: block; width: 100%; text-align: center; padding: 11px 18px; font-size: 14px; border-radius: 10px; }
}
.dl-list { display: flex; flex-direction: column; gap: 16px; }
.dl-item { display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid #eef1f6; border-radius: 14px; padding: 22px 24px; box-shadow: 0 2px 12px rgba(0,0,0,.04); transition: box-shadow .25s, transform .25s; }
.dl-item:hover { box-shadow: 0 8px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.dl-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .5px; flex-shrink: 0; text-transform: uppercase; }
.dl-icon.pdf { background: linear-gradient(135deg, #ef4444, #dc2626); }
.dl-icon.word { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.dl-icon.excel { background: linear-gradient(135deg, #22c55e, #16a34a); }
.dl-icon.zip, .dl-icon.rar { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.dl-icon.mp4, .dl-icon.video { background: linear-gradient(135deg, #f59e0b, #d97706); }
.dl-icon.other { background: linear-gradient(135deg, #64748b, #475569); }
.dl-info { flex: 1; min-width: 0; }
.dl-title { font-size: 16px; font-weight: 700; color: #1f2937; margin: 0 0 6px; line-height: 1.4; }
.dl-desc { font-size: 13.5px; color: #6b7280; margin: 0 0 10px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 12.5px; color: #9ca3af; }
.dl-meta .dl-cat { color: var(--accent, #2b5bee); font-weight: 600; }
.dl-btn { flex-shrink: 0; padding: 11px 24px; font-size: 14px; border-radius: 999px; }
@media (max-width: 640px) {
  .dl-item { flex-wrap: wrap; padding: 18px; gap: 14px; }
  .dl-btn { width: 100%; text-align: center; }
}


/* Blog/case detail: head + cover live inside the left column */

.blog-article .blog-article-body .blog-article-head { background: transparent !important; padding: 0 0 0px !important; text-align: left !important; }
.blog-article .blog-article-body .blog-article-head .container { padding: 0 !important; }
.blog-article .blog-article-body .blog-article-head .blog-article-desc { margin-bottom: 0; }
.blog-article .blog-article-body .blog-article-cover { padding: 0 0 16px !important; }
.blog-article .blog-article-body .blog-article-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; box-shadow: 0 10px 36px rgba(15,23,42,.1); }
.blog-article .blog-article-body .blog-content { margin-top: 0; }
/* Tags block spacing */
.blog-article .blog-article-body .blog-article-tags { margin-top: 24px; margin-bottom: 20px; padding-top: 18px; }
.blog-article-tags .blog-tags-label { margin-right: 10px; font-weight: 700; color: #334155; }
/* Related section spacing */
.blog-article .blog-article-body .blog-related { padding: 28px 0 48px; }
.blog-article .blog-article-body .blog-related .section-head-title { margin-bottom: 20px; }
/* Unify content inner spacing */
.blog-article .blog-article-body .blog-content p { margin-bottom: 14px; }
.blog-article .blog-article-body .blog-content h2 { margin: 26px 0 14px; }
.blog-article .blog-article-body .blog-content h3 { margin: 20px 0 12px; }
.blog-article .blog-article-body .blog-content img { margin: 12px 0; }
.blog-article .blog-article-body .blog-content > :first-child { margin-top: 0; }
@media (max-width: 720px) {
  .blog-article .blog-article-body .blog-article-head { padding: 0 0 12px !important; }
  .blog-article .blog-article-body .blog-article-cover { padding: 0 0 12px !important; }
  .blog-article .blog-article-body .blog-article-cover img { aspect-ratio: 16 / 9; }
}
/* Certifications & Factory modules */
@media (max-width: 720px) {
  .certs-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .factory-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .factory-item img { height: 140px !important; }
}
@media (min-width: 721px) and (max-width: 1080px) {
  .certs-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .factory-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
.cert-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.factory-item:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.14); }
/* Lightbox */
.img-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 99999; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.img-lightbox img { max-width: 92%; max-height: 90%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }

/* ===== Blog/Case detail — force unified compact spacing (override all legacy rules) ===== */
.blog-article .blog-article-body { padding: 0 0 40px !important; }
.blog-article .blog-article-body .blog-article-head { padding: 0 0 14px !important; margin: 0 !important; }
.blog-article .blog-article-body .blog-article-head .container { padding: 0 !important; margin: 0 !important; }
.blog-article .blog-article-body .blog-article-cover { padding: 0 0 14px !important; margin: 0 !important; }
.blog-article .blog-article-body .blog-content { margin: 0 !important; padding: 0 !important; }
.blog-article .blog-article-body .blog-content > :first-child { margin-top: 0 !important; }
.blog-article .blog-article-body .blog-article-tags { margin: 28px 0 34px !important; padding: 24px 0 0 !important; }
.blog-article .blog-article-body .blog-related { padding: 28px 0 40px !important; margin: 0 !important; }
@media (max-width: 720px) {
  .blog-article .blog-article-body { padding: 0 0 32px !important; }
  .blog-article .blog-article-body .blog-article-head { padding: 0 0 12px !important; }
  .blog-article .blog-article-body .blog-article-cover { padding: 0 0 12px !important; }
  .blog-article .blog-article-body .blog-article-tags { margin: 22px 0 28px !important; padding: 20px 0 0 !important; }
  .blog-article .blog-article-body .blog-related { padding: 20px 0 32px !important; }
}
