/* =========================================================
   KCS 卡牌专门店 — 像素风 / 复古游戏卡牌风 (neo-brutalism)
   主色：明黄 #FFCC39 / 深蓝描边 #1F2A5A
   设计原则：硬边直角 + 粗描边 + 硬边偏移阴影，贴近像素 logo 观感
   ========================================================= */

:root {
  --yellow: #FFCC39;
  --yellow-dark: #E6B830;
  --navy: #1F2A5A;
  --navy-deep: #141C40;
  --accent: #3B4CCA;
  --mint: #2ED573;
  --bg: #FFFFFF;
  --soft: #F7F8FB;
  --card: #FFFFFF;
  --ink: #22283B;
  --ink-soft: #6B7280;
  --line: #ECEEF4;
  --edge: #1F2A5A;             /* 像素描边色 */
  --radius: 4px;               /* 硬边小圆角 */
  --pixel: 5px 5px 0 var(--edge);        /* 像素硬边偏移阴影 */
  --pixel-sm: 3px 3px 0 var(--edge);
  --pixel-press: 0px 0px 0 var(--edge);
  --shadow: var(--pixel);
  --shadow-hover: var(--pixel-sm);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }

/* 品类浅色底（商品占位图 / 分类图标底） */
.g-tcg     { background: #FCF9E6; }
.g-collect { background: #FFF8E6; }
.g-sports  { background: #EDF4FF; }
.g-graded  { background: #F1F2F8; }
.g-acc     { background: #EBFAF1; }
.g-celeb   { background: #FFF0F5; }

/* ============ 顶部促销条 ============ */
.promo-strip {
  background: #FCF9E6;
  color: #7A6F20;
  text-align: center;
  font-size: 13px;
  padding: 8px 12px;
  letter-spacing: .5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ 导航 ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 20px;
}
.logo { display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}
.logo-mark {
  font-family: "Bebas Neue", "Noto Sans TC", sans-serif;
  font-weight: 400;
  font-size: 36px;
  color: var(--yellow);
  letter-spacing: 2px;
}
.logo-sub {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--navy);
  font-weight: 700;
  margin-top: 2px;
}
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: .2s;
}
.nav-link:hover { background: #FCF9E6; color: var(--yellow-dark); }
.nav-link.on { background: var(--navy); color: #fff; }
.nav-lang {
  margin-left: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  transition: .2s;
}
.nav-lang:hover { background: var(--navy); color: #fff; }
.btn-wa-nav {
  background: var(--mint);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(46, 213, 115, .35);
  transition: .2s;
  white-space: nowrap;
}
.btn-wa-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(46, 213, 115, .45); }

/* 搜索框 */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-search .search-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  opacity: .6;
  pointer-events: none;
}
.nav-search input {
  font-family: inherit;
  font-size: 14px;
  padding: 9px 14px 9px 34px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  outline: none;
  width: 200px;
  transition: .2s;
}
.nav-search input:focus { background: #fff; border-color: var(--yellow); width: 260px; }

/* 购物车按钮 */
.cart-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 22px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-count {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--navy);
  color: var(--yellow);
  font-size: 10px;
  font-weight: 800;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

/* 汉堡菜单（移动端） */
.nav-burger { display: none; cursor: pointer; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  display: block; width: 22px; height: 2.5px; background: var(--navy);
  border-radius: 2px; position: relative; transition: .2s;
}
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; }
.nav-burger span::before { top: -7px; }
.nav-burger span::after { top: 7px; }
#navCheck { display: none; }

/* ============ Hero（白底 + 轻点缀） ============ */
.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  padding: 96px 20px 76px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: -140px; right: -120px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, #FCF9E6 0%, rgba(252,249,230,0) 70%);
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -160px; left: -140px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, #EDF4FF 0%, rgba(237,244,255,0) 70%);
}
.hero-inner { max-width: 740px; margin: 0 auto; position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: #FCF9E6;
  border: 1.5px solid #EDE5B0;
  color: var(--yellow-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  letter-spacing: 1px;
}
.hero-title {
  font-family: "Rajdhani", "Noto Sans TC", sans-serif;
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--navy);
}
.hero-title em { font-style: normal; color: var(--yellow); }
.hero-sub {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  margin-top: 40px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats span {
  background: #fff;
  border: 1.5px solid var(--line);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
}
.hero-deco {
  position: absolute;
  font-size: 58px;
  opacity: .5;
  filter: saturate(.85);
  z-index: 1;
  animation: float 5s ease-in-out infinite;
}
.d1 { top: 16%; left: 7%; }
.d2 { top: 62%; left: 13%; animation-delay: 1.2s; }
.d3 { top: 20%; right: 8%; animation-delay: .6s; }
.d4 { top: 66%; right: 14%; animation-delay: 1.8s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

/* ============ 按钮 ============ */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 30px;
  border-radius: 999px;
  transition: .2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(212, 196, 48, .28);
}
.btn-primary:hover { background: var(--yellow-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--navy); }
.btn.big { font-size: 17px; padding: 15px 40px; }

/* ============ 通用 Section ============ */
.section { max-width: 1200px; margin: 0 auto; padding: 56px 20px 16px; }
.sec-title {
  font-family: "Rajdhani", "Noto Sans TC", sans-serif;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.sec-sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 26px; }
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.sec-head .sec-sub { margin-bottom: 0; }
.view-all {
  color: var(--yellow);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  padding-bottom: 6px;
}
.view-all:hover { color: var(--yellow-dark); }

/* ============ 五大品类入口（白卡 + 彩色图标） ============ */
.cat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--radius);
  padding: 32px 16px 28px;
  background: var(--card);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  transition: .25s;
}
.cat-tile:hover {
  transform: translateY(-6px);
  border-color: #EDE5B0;
  box-shadow: var(--shadow-hover);
}
.cat-emoji {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.cat-label { font-size: 17px; font-weight: 800; letter-spacing: 1px; color: var(--navy); }

/* ============ 商品网格 ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 22px;
  margin-top: 26px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: .25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--line);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #EDE5B0;
}
.card.dim .card-media { filter: grayscale(.75); opacity: .8; }

.card-media {
  position: relative;
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-emoji { font-size: 62px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); }
.card-emoji.xl { font-size: 110px; }
.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-img { max-width: 85%; max-height: 320px; object-fit: contain; display: block; border-radius: 8px; position: relative; z-index: 1; }

/* 详情弹窗图片画廊缩略图 */
.dt-gallery-thumbs {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.dt-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 2.5px solid transparent;
  background: rgba(255,255,255,0.9);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, transform 0.15s;
}
.dt-thumb:hover { transform: scale(1.1); }
.dt-thumb.active { border-color: var(--yellow); }
.dt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-cat {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, .9);
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 999px;
}
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: .5px;
}
.b-new { background: var(--yellow); color: var(--navy); }
.b-hot { background: #FF3B6B; color: #fff; }
.b-pre { background: #3B82F6; color: #fff; }
.b-out { background: #9AA0B5; color: #fff; }

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  height: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.card-meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 12px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-price {
  font-family: "Rajdhani", sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: var(--yellow-dark);
}
.stock {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.st-instok { background: #E5F9ED; color: #1D9E52; }
.st-preorder { background: #FFF3D6; color: #C78400; }
.st-soldout { background: #EEF0F4; color: #9AA0B5; }

.btn-wa {
  margin-top: auto;
  display: block;
  text-align: center;
  background: #E5F9ED;
  color: #1D9E52;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 0;
  border-radius: 12px;
  transition: .2s;
}
.btn-wa:hover { background: var(--mint); color: #fff; }

/* 商品卡操作按钮 */
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}
.btn-cart {
  display: block;
  text-align: center;
  background: var(--soft);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 0;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  transition: .2s;
}
.btn-cart:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* 搜索横幅 */
.search-banner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px 0;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.clear-search {
  background: var(--soft);
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.clear-search:hover { background: var(--yellow); color: #fff; border-color: var(--yellow); }

/* ============ 购物车弹窗 ============ */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 64, .45);
  backdrop-filter: blur(4px);
  z-index: 220;
  justify-content: flex-end;
}
.cart-overlay.open { display: flex; }
.cart-panel {
  background: var(--bg);
  width: 100%;
  max-width: 420px;
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1.5px solid var(--line);
}
.cart-head h3 { font-size: 18px; color: var(--navy); }
.cart-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--soft);
  border: 1.5px solid var(--line);
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  transition: .2s;
}
.cart-close:hover { background: var(--yellow); color: #fff; border-color: var(--yellow); }
.cart-body { flex: 1; overflow-y: auto; padding: 14px 22px; }
.cart-empty { text-align: center; padding: 50px 0; color: var(--ink-soft); font-size: 15px; }
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 14px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 13px; color: var(--yellow-dark); font-weight: 700; margin-top: 2px; }
.cart-item-del {
  background: none;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
}
.cart-item-del:hover { background: var(--yellow); color: #fff; border-color: var(--yellow); }
.cart-foot {
  padding: 16px 22px 22px;
  border-top: 1.5px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-note { font-size: 13px; color: var(--ink-soft); text-align: center; }

/* ============ 优势区 ============ */
.why { padding-top: 66px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.why-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 22px;
  border: 1.5px solid var(--line);
  text-align: center;
  transition: .25s;
}
.why-card:hover { transform: translateY(-5px); border-color: #EDE5B0; box-shadow: var(--shadow-hover); }
.why-emoji { font-size: 42px; display: block; margin-bottom: 12px; }
.why-emoji.big { font-size: 56px; }
.why-card h3 { color: var(--navy); font-size: 17px; margin-bottom: 8px; }
.why-card p { color: var(--ink-soft); font-size: 13.5px; }

/* ============ CTA 横带（浅色） ============ */
.cta-band {
  margin-top: 66px;
  background: #FCF9E6;
  padding: 54px 20px;
  text-align: center;
}
.cta-inner h2 {
  color: var(--navy);
  font-family: "Rajdhani", "Noto Sans TC", sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 22px;
}

/* ============ 商品列表页 ============ */
.shop { padding-top: 46px; }
.filter-bar {
  background: var(--card);
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  min-width: 48px;
}
.pill {
  background: var(--soft);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  transition: .2s;
}
.pill:hover { background: #FCF9E6; color: var(--yellow-dark); }
.pill.on { background: var(--navy); color: #fff; }
.result-count { color: var(--ink-soft); font-size: 13.5px; margin-top: 18px; }
.no-result { text-align: center; padding: 60px 0; color: var(--ink-soft); font-size: 16px; }

/* ============ 搜索结果页空状态 ============ */
.search-empty { text-align: center; padding: 50px 20px 40px; }
.search-empty-icon { font-size: 56px; margin-bottom: 16px; }
.search-empty-title { font-family: var(--font-display); font-size: 22px; font-weight: 900; color: var(--navy); margin: 0 0 12px; }
.search-empty-sub { color: var(--ink-soft); font-size: 15px; line-height:1.7; max-width:420px; margin:0 auto 24px; }
.search-empty-qr { margin: 0 auto 12px; }
.search-qr-img { width: 150px; height: 150px; object-fit: contain; border: 3px solid var(--navy); display: inline-block; }
.search-empty-qr-hint { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* ============ 关于页 ============ */
.about { max-width: 780px; padding-top: 56px; padding-bottom: 40px; }
.about p { color: #454B5E; margin: 16px 0; font-size: 15.5px; }
.about-feats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.about-feats span {
  background: var(--card);
  border: 1.5px solid var(--line);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

/* ============ 门店画廊（关于我们页） ============ */
.store-gallery { margin-top: 44px; }
.store-gallery .sec-sub { margin-bottom: 24px; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--line);
  background: #f5f5f5;
}
.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-featured {
  grid-column: 1 / -1;
}
.gallery-featured img {
  height: 360px;
}
.gallery-caption {
  display: block;
  text-align: center;
  padding: 8px 12px;
  background: rgba(31, 42, 90, .85);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
}

/* ============ 联络页 ============ */
.contact { max-width: 980px; padding-top: 56px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px; margin-top: 26px; }
.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  padding: 30px 26px;
  text-align: center;
}
.wa-card { background: #F2FCF6; border-color: #C9EDD6; }
.contact-card h3 { color: var(--navy); margin: 6px 0 12px; }
.todo-note { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 18px; }
.qr-box {
  margin-top: 20px;
  padding: 18px 14px;
  border: 2px dashed #BFE3CC;
  border-radius: 12px;
}
.qr-icon { font-size: 40px; display: block; margin-bottom: 6px; }
.qr-img { width: 160px; height: 160px; object-fit: contain; border-radius: 8px; margin-bottom: 8px; }
.qr-title { color: var(--navy); font-weight: 700; font-size: 14px; }
.qr-note { color: var(--ink-soft); font-size: 12.5px; }
.c-form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.c-form input, .c-form textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #FDFDFE;
  outline: none;
  transition: .2s;
  text-align: left;
}
.c-form input:focus, .c-form textarea:focus { border-color: var(--yellow); background: #fff; }
.form-result { color: #1D9E52; font-size: 13px; margin-top: 4px; text-align: center; }

/* ============ Toast 提示 ============ */
#toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; z-index: 99999;
  opacity: 0; transition: .3s; pointer-events: none;
  white-space: nowrap; box-shadow: var(--pixel);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 详情弹窗 ============ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 64, .5);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-box {
  background: var(--bg);
  border-radius: 22px;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  font-size: 16px;
  color: var(--ink);
  transition: .2s;
}
.modal-close:hover { background: var(--yellow); color: #fff; border-color: var(--yellow); }
.modal-body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; }

/* WhatsApp 弹窗 */
.wa-pop { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px; padding: 36px 32px; max-width: 600px; margin: 0 auto; }
.wa-qr { text-align: center; flex: 0 0 auto; }
.wa-qr-img { width: 200px; height: 200px; object-fit: contain; border-radius: 14px; border: 1.5px solid #ECEEF4; box-shadow: 0 4px 18px rgba(31,42,90,.08); }
.wa-num { margin-top: 12px; font-size: 16px; color: #1F2A5A; font-weight: 700; }
.wa-info { flex: 0 0 auto; max-width: 300px; text-align: left; }
.wa-title { color: #1F2A5A; margin-bottom: 12px; font-size: 20px; }
.wa-desc { color: #454B5E; line-height: 1.7; margin-bottom: 20px; font-size: 15px; }
@media (max-width: 560px) {
  .wa-pop { flex-direction: column; text-align: center; }
  .wa-info { max-width: 100%; text-align: center; }
}
.dt-media {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px 0 0 22px;
  overflow: hidden;
  position: relative;
}
.dt-media .card-emoji.xl {
  position: absolute;
  top: 12px;
  left: 12px;
  opacity: 0.15;
  font-size: 64px;
  pointer-events: none;
  z-index: 0;
}
.dt-info { padding: 32px 30px; }
.dt-badges { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.dt-name { font-size: 20px; color: var(--navy); line-height: 1.4; margin-bottom: 12px; }
.dt-price {
  font-family: "Rajdhani", sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--yellow-dark);
  margin-bottom: 18px;
}
.dt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.dt-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dt-row-sub {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dt-row-sub .btn-fav {
  width: 40px; height: 40px;
  font-size: 18px;
  flex-shrink: 0;
}
.dt-row-sub .btn-icon {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--soft);
  border: 1.5px solid var(--line);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: .2s;
  font-family: inherit;
  flex: 1;
  justify-content: center;
}
.dt-row-sub .btn-icon:hover { background: #fff; border-color: var(--yellow); }
.dt-row-sub .btn-icon:disabled { opacity: .5; cursor: not-allowed; }
.dt-row-sub .btn-icon span { font-size: 13px; }
/* 复制按钮已移除 */
.dt-specs { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 14px; }
.dt-specs td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
.dt-specs td:first-child { color: var(--ink-soft); width: 96px; }
.dt-desc-title { margin-top: 22px; color: var(--navy); font-size: 15px; }
.dt-desc { color: #454B5E; font-size: 14.5px; margin-top: 8px; }

/* ============ 页脚 ============ */
.footer {
  margin-top: 0;
  background: var(--navy-deep);
  color: #C9CEE4;
  padding: 0 0 26px;
}
.footer-brands {
  background: #F7F8FB;
  padding: 40px 20px 36px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.footer-brands-title {
  font-family: "Rajdhani", "Noto Sans TC", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.footer-brands-sub {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.footer-brand-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand-item {
  background: var(--brand-bg, #fff);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 72px;
  transition: .25s;
  box-shadow: var(--shadow);
}
.footer-brand-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #EDE5B0;
}
.brand-logo-text {
  font-family: "Rajdhani", "Noto Sans TC", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-color, var(--navy));
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand-logo-text em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: .7;
}
.brand-logo-img {
  max-width: 120px;
  max-height: 44px;
  object-fit: contain;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 34px;
  padding: 54px 20px 0;
}
.footer .logo-mark { color: var(--yellow); }
.footer .logo-sub { color: #8F97BE; }
.footer-col p { font-size: 13.5px; margin-top: 12px; line-height: 1.7; }
.footer-about-name { font-weight: 800; color: #fff; font-size: 14.5px; margin-bottom: 4px; }
.footer-about-desc { color: #C9CEE4; font-size: 13px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: .5px; }
.footer-col a {
  display: block;
  font-size: 13.5px;
  padding: 5px 0;
  color: #C9CEE4;
  transition: .2s;
}
.footer-col a:hover { color: var(--yellow); }
.footer-rights {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px;
  color: #8F97BE;
}

/* ============ 首页实体店地址条 ============ */
.store-banner {
  padding: 0 20px 16px;
}
.store-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 28px;
  box-shadow: var(--shadow);
}
.store-banner-icon { font-size: 24px; }
.store-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.store-banner-text strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
}
.store-banner-text span {
  font-size: 13.5px;
  opacity: .85;
}
.store-banner .btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: #fff;
  font-size: 13px;
  padding: 9px 18px;
  white-space: nowrap;
}
.store-banner .btn-ghost:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy);
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .nav-inner { flex-wrap: wrap; }
  .btn-wa-nav { order: 3; }
  .modal-body { grid-template-columns: 1fr; }
  .dt-media { min-height: 240px; border-radius: 22px 22px 0 0; }
  .dt-thumb { width: 36px; height: 36px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 40px; }
  .hero { padding: 64px 18px 52px; }
  .hero-deco { font-size: 40px; }
}
@media (max-width: 900px) {
  .nav-search input { width: 160px; }
  .nav-search input:focus { width: 200px; }
}
/* ============ 实体店地址卡 ============ */
.store-card {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  background: #F2F7FF;
  border: 1.5px solid #D4E3FF;
  border-radius: var(--radius);
  padding: 28px 30px;
  text-align: left;
}
.store-info h3 { color: var(--navy); margin-bottom: 4px; }
.store-addr { color: #454B5E; font-size: 14.5px; line-height: 1.7; margin-bottom: 10px; }
.store-phone { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.store-phone a { color: var(--navy); text-decoration: none; }
.store-phone a:hover { color: var(--yellow-dark); }
.footer-store-hours {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  margin-top: 6px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .store-card { flex-direction: column; text-align: center; }
  .footer-brand-item { min-width: 120px; padding: 14px 20px; height: 60px; }
  .brand-logo-text { font-size: 16px; }
  .brand-logo-img { max-width: 100px; max-height: 36px; }
}

@media (max-width: 700px) {
  .nav-search { display: none; }
  .cart-btn { order: 2; margin-left: auto; margin-right: 8px; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(31, 42, 90, .18);
    border-bottom: 2px solid var(--navy);
    padding: 8px 12px 12px;
    z-index: 90;
  }
  .nav-link, .nav-lang { text-align: center; padding: 12px; }
  .nav-burger { display: block; order: 2; }
  #navCheck:checked ~ .nav-menu { display: flex; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 14px; }
  .card-media { height: 130px; }
  .card-emoji { font-size: 44px; }
  .card-name { font-size: 13px; height: 56px; }
  .card-price { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ 运送服务页面 ============ */
.shipping-content { max-width: 800px; margin: 0 auto; }
.shipping-block {
  background: #F8FAFF;
  border: 1.5px solid #E2E8F7;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 18px;
}
.shipping-block h3 {
  font-family: "Rajdhani", "Noto Sans TC", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: .3px;
}
.shipping-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.shipping-block li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #454B5E;
  line-height: 1.8;
  margin-bottom: 8px;
}
.shipping-block li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--yellow-dark);
  font-weight: 800;
}
.shipping-disclaimer {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 24px;
  line-height: 1.7;
}

/* ============ 门店营业时间 ============ */
.store-hours {
  font-size: 14.5px !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  margin-bottom: 10px;
  display: block !important;
  visibility: visible !important;
}

/* ============ 币种选择器 ============ */
.nav-cur {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  outline: none;
  cursor: pointer;
  transition: .2s;
}
.nav-cur:hover, .nav-cur:focus { border-color: var(--yellow); background: #fff; }

/* ============ 账户按钮 ============ */
.acc-btn {
  background: none;
  border: none;
  font-size: 22px;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: .2s;
  white-space: nowrap;
}
.acc-btn:hover { background: #FCF9E6; }
.acc-btn.on { font-size: 14px; font-weight: 800; color: var(--navy); background: #FCF9E6; padding: 8px 12px; border-radius: 999px; }

/* ============ 账户弹窗 ============ */
.acc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 64, .45);
  backdrop-filter: blur(4px);
  z-index: 230;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.acc-overlay.open { display: flex; }
.acc-panel {
  background: var(--bg);
  border-radius: 22px;
  width: 100%;
  max-width: 420px;
  position: relative;
  padding: 34px 30px 30px;
  box-shadow: 0 16px 50px rgba(31, 42, 90, .22);
  animation: pop .25s ease;
}
.acc-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  transition: .2s;
}
.acc-close:hover { background: var(--yellow); color: #fff; border-color: var(--yellow); }
.acc-title {
  font-family: "Rajdhani", "Noto Sans TC", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 18px;
}
.acc-tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; }
.acc-tab {
  padding: 8px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  background: var(--soft);
  color: var(--ink-soft);
  transition: .2s;
}
.acc-tab.on { background: var(--navy); color: #fff; }
.acc-form { display: flex; flex-direction: column; gap: 12px; }
.acc-form input {
  font-family: inherit;
  font-size: 14px;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #FDFDFE;
  outline: none;
  transition: .2s;
  text-align: left;
}
.acc-form input:focus { border-color: var(--yellow); background: #fff; }
.btn.block { display: block; width: 100%; text-align: center; }
.acc-link {
  font-size: 13px;
  color: var(--navy);
  text-align: center;
  font-weight: 600;
  cursor: pointer;
}
.acc-link:hover { color: var(--yellow-dark); }
.acc-msg { font-size: 13px; text-align: center; min-height: 18px; margin-top: 2px; }
.acc-msg.ok { color: #1D9E52; }
.acc-msg.err { color: #E0314B; }
.acc-h { color: var(--navy); font-size: 18px; margin-bottom: 6px; }
.acc-sub { font-size: 13.5px; color: var(--ink-soft); text-align: center; margin-bottom: 14px; }
.acc-note { font-size: 12px; color: var(--ink-soft); text-align: center; line-height: 1.6; }
.acc-profile { text-align: center; }
.acc-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #FCF9E6;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px;
  margin: 0 auto 14px;
}
.acc-profile h3 { color: var(--navy); font-size: 18px; margin-bottom: 4px; }
.acc-profile .acc-sub { margin-bottom: 8px; }
.acc-profile .btn { margin-top: 10px; }

/* ============ WhatsApp 弹窗紧凑模式 ============ */
.modal-box.compact { max-width: 480px; }
.modal-box.compact .modal-body { display: block; }

/* ============ 收藏按钮 ============ */
.btn-fav {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--soft);
  border: 1.5px solid var(--line);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
  padding: 0;
  color: #ccc;
  flex-shrink: 0;
}
.btn-fav:hover { background: #fff; border-color: var(--yellow); }
.btn-fav.on { color: #FF3B6B; }
/* 详情弹窗收藏按钮由 .dt-row-sub .btn-fav 覆盖尺寸 */

/* ============ 禁用状态（售罄 / 特殊清况） ============ */
.btn-cart:disabled,
.btn-fav:disabled,
.qty-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  filter: grayscale(1);
  pointer-events: none;
}
.card.dim .card-media { filter: grayscale(.55); opacity: .85; }
.cart-qty { color: var(--yellow-dark); font-weight: 800; }
.cart-line { color: #888; font-size: 12px; margin-left: 4px; }

/* ============ 数量选择器 ============ */
.card-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.qty-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--soft);
}
.qty-btn {
  width: 30px; height: 30px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .15s;
}
.qty-btn:hover { background: var(--yellow); }
.qty-val {
  min-width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.card-actions-row .btn-cart {
  flex: 1;
  font-size: 12px;
  padding: 7px 0;
  border-radius: 999px;
}

/* 详情弹窗数量选择器 */
.dt-actions .qty-wrap { margin-right: 8px; }
.dt-actions .qty-val { min-width: 32px; font-size: 16px; }
.dt-actions .qty-btn { width: 34px; height: 34px; font-size: 18px; }

/* 规格表格 */
.dt-rule { margin-bottom: 12px; }
.dt-rule td { padding: 8px 4px !important; }

/* ============ 收藏列表 ============ */
.fav-list { max-height: 260px; overflow-y: auto; margin: 0 -10px; padding: 0 10px; }
.fav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.fav-item:last-child { border-bottom: none; }
.fav-emoji { font-size: 26px; }
.fav-name { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-price { font-family: "Rajdhani", sans-serif; font-weight: 800; color: var(--yellow-dark); font-size: 15px; }
.fav-list .btn-fav {
  position: relative; top: auto; right: auto;
  width: 28px; height: 28px; font-size: 13px;
  background: none; border: 1.5px solid var(--line);
}

@media (max-width: 700px) {
  .nav-cur { padding: 7px 9px; font-size: 12px; }
  .acc-btn.on { font-size: 12px; padding: 7px 9px; }
}

/* ============ 移动端全面适配 ============ */
@media (max-width: 600px) {
  /* 导航 */
  .nav-inner { padding: 10px 14px; gap: 12px; }
  .logo-mark { font-size: 28px; }
  .logo-sub { font-size: 8px; }
  .logo-img { height: 32px; }
  .btn-wa-nav { display: none; } /* 移藏 WA 导航按钮，保留弹窗入口 */
  .nav-cur { font-size: 11px; padding: 6px 8px; }

  /* Hero */
  .hero { padding: 70px 14px 50px; }
  .hero-title { font-size: clamp(24px, 7vw, 38px); }
  .hero-sub { font-size: 13px; margin-bottom: 22px; }
  .hero-cta .btn { font-size: 13px; padding: 11px 24px; }
  .hero-stats span { font-size: 11px; padding: 6px 12px; }
  .hero-deco { font-size: 32px; }

  /* 品类 */
  .cat-row { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
  .cat-tile { padding: 20px 12px 18px; }
  .cat-emoji { width: 56px; height: 56px; font-size: 28px; }
  .cat-label { font-size: 14px; }

  /* 商品网格 */
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .card { border-radius: 12px; }
  .card-media { height: 120px; }
  .card-emoji { font-size: 36px; }
  .card-cat { font-size: 10px; padding: 2px 8px; bottom: 6px; left: 6px; }
  .card-badges { top: 6px; left: 6px; gap: 4px; }
  .badge { font-size: 9px; padding: 2px 7px; }
  .btn-fav { width: 32px; height: 32px; font-size: 14px; }
  .card-body { padding: 10px 12px 12px; }
  .card-name { font-size: 12.5px; height: 52px; margin-bottom: 4px; }
  .card-meta { font-size: 11px; margin-bottom: 8px; }
  .card-price { font-size: 16px; }
  .stock { font-size: 10px; padding: 2px 8px; }
  /* 数量选择器移动端 */
  .card-actions-row { gap: 6px; padding-top: 8px; }
  .qty-btn { width: 26px; height: 26px; font-size: 14px; }
  .qty-val { min-width: 24px; font-size: 13px; }
  .card-actions-row .btn-cart { font-size: 11px; padding: 6px 0; }

  /* 筛选栏 */
  .filter-bar { padding: 14px 14px; }
  .filter-group { gap: 6px; }
  .f-label { font-size: 12px; min-width: 40px; }
  .pill { font-size: 12px; padding: 6px 12px; }

  /* Section */
  .section { padding: 40px 14px 10px; }
  .sec-title { font-size: clamp(20px, 4.5vw, 26px); }
  .sec-sub { font-size: 13px; margin-bottom: 18px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .view-all { font-size: 13px; }

  /* 关于页 */
  .about { padding-top: 40px; }
  .about p { font-size: 14px; }
  .about-feats { gap: 8px; }
  .about-feats span { font-size: 12px; padding: 7px 14px; }

  /* 门店画廊移动端 */
  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .gallery-featured img { height: 220px; }
  .gallery-item img { height: 200px; }

  /* 联络页 */
  .contact { padding-top: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-card { padding: 22px 18px; }
  .store-card { flex-direction: column; text-align: center; padding: 20px; gap: 12px; }
  .store-addr { font-size: 13px; }
  .store-phone { font-size: 14px; }

  /* 优势区 */
  .why { padding-top: 46px; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .why-card { padding: 20px 16px; }
  .why-emoji { font-size: 32px; }
  .why-card h3 { font-size: 15px; }
  .why-card p { font-size: 12.5px; }

  /* CTA */
  .cta-band { padding: 36px 14px; margin-top: 46px; }
  .cta-inner h2 { font-size: clamp(18px, 4vw, 24px); }

  /* 详情弹窗 */
  .modal { padding: 10px; }
  .modal-box { border-radius: 18px; max-height: 95vh; }
  .modal-close { width: 32px; height: 32px; font-size: 14px; top: 10px; right: 10px; }
  .dt-media { min-height: 200px; border-radius: 18px 18px 0 0; }
  .dt-thumb { width: 32px; height: 32px; }
  .dt-emoji.xl { font-size: 70px; }
  .dt-info { padding: 20px 18px; }
  .dt-name { font-size: 17px; }
  .dt-price { font-size: 26px; }
  .dt-actions { flex-wrap: wrap; gap: 8px; }
  .dt-row-main, .dt-row-sub { width: 100%; }
  .dt-row-main .btn { font-size: 14px; padding: 11px 16px; flex: 1; }
  .dt-row-sub .btn-icon { font-size: 12px; padding: 8px 10px; }
  .dt-row-sub .btn-icon span { font-size: 12px; }
  .dt-specs { font-size: 13px; }
  .dt-specs td { padding: 7px 3px; }
  .dt-desc { font-size: 13px; }

  /* 购物车 */
  .cart-panel { max-width: 100%; }
  .cart-head { padding: 14px 16px; }
  .cart-body { padding: 12px 16px; }
  .cart-foot { padding: 12px 16px 16px; }
  .cart-item-name { font-size: 13px; }
  .cart-item-price { font-size: 12px; }
  .cart-item-del { font-size: 11px; padding: 4px 10px; }

  /* 账户弹窗 */
  .acc-panel { max-width: 100%; margin: 10px; padding: 28px 20px 24px; border-radius: 18px; }
  .acc-avatar { width: 60px; height: 60px; font-size: 30px; }
  .acc-profile h3 { font-size: 16px; }
  .fav-list { max-height: 200px; }
  .fav-item { padding: 8px 10px; }
  .fav-name { font-size: 12.5px; }
  .fav-price { font-size: 14px; }

  /* 页脚 */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 36px 14px 0; }
  .footer-col p { font-size: 12.5px; }
  .footer-col a { font-size: 12.5px; padding: 4px 0; }
  .footer-brand-row { gap: 10px; }
  .footer-brand-item { min-width: 100px; padding: 12px 16px; height: 52px; }
  .brand-logo-text { font-size: 15px; }
  .brand-logo-img { max-width: 80px; max-height: 30px; }
  .footer-rights { margin-top: 24px; padding-top: 16px; font-size: 11.5px; }

  /* 运送/退换货页面 */
  .shipping-block { padding: 18px 16px; margin-bottom: 14px; }
  .shipping-block h3 { font-size: 15px; }
  .shipping-block li { font-size: 13px; }

  /* WhatsApp 弹窗移动端 */
  .wa-pop { padding: 24px 16px; gap: 20px; }
  .wa-qr-img { width: 160px; height: 160px; }
  .wa-num { font-size: 14px; }
  .wa-title { font-size: 17px; }
  .wa-desc { font-size: 13.5px; }

  /* CTA band */
  .cta-band { margin-top: 40px; }
}

/* ============ 底部固定快捷操作栏 ============ */
.bottom-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 190;
  display: flex;
  gap: 0;
  background: var(--navy);
  box-shadow: 0 -4px 20px rgba(31, 42, 90, .25);
  pointer-events: auto;
}
.bottom-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px;
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  transition: .2s;
  border-right: 2px solid rgba(255,255,255,.15);
}
.bottom-bar-btn:last-child { border-right: none; }
.bottom-bar-shop { background: var(--yellow); color: var(--navy); }
.bottom-bar-shop:hover { background: var(--yellow-dark); }
.bottom-bar-wa { background: #25D366; }
.bottom-bar-wa:hover { background: #20BD5A; }

@media (max-width: 600px) {
  .bottom-bar-btn { font-size: 13px; padding: 12px 10px; gap: 4px; }
}

/* 底部固定栏占位：避免页面内容被遮挡 */
body { padding-bottom: 56px; }
@media (max-width: 600px) { body { padding-bottom: 50px; } }

/* 超小屏幕 (<380px) */
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-media { height: 110px; }
  .card-name { font-size: 12px; height: 48px; }
  .why-grid { grid-template-columns: 1fr; }
  .nav-inner { gap: 8px; }
  .cart-btn { padding: 4px; }
  .cart-btn .cart-icon { font-size: 18px; }
  .acc-btn { padding: 4px 6px; font-size: 18px; }
}

/* =========================================================
   像素风统一层 (neo-brutalism) — v12
   硬边直角 + 粗黑描边 + 硬边偏移阴影，贴近像素 logo 观感
   ========================================================= */

/* 全站极淡点阵网格背景，营造像素游戏质感 */
body {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(31, 42, 90, .045) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* 导航 / 促销条加粗描边分隔 */
.nav { border-bottom: 3px solid var(--edge) !important; }
.promo-strip { border-bottom: 3px solid var(--edge) !important; }

/* 硬边直角：统一所有组件的圆角为 4px */
.btn, .btn-primary, .btn-ghost, .btn-wa, .btn-cart, .btn-copy, .btn.block,
.card, .pill, .modal-box, .cart-panel, .cat-tile,
.footer-brand-item, .store-card, .why-card, .cta-band, .wa-pop,
.shipping-block, .dt-media, .qty-wrap, .nav-search input, .nav-lang,
.acc-btn, .dt-specs, .fav-item, .acc-profile, .cart-head, .cart-foot,
.nav-link, .hero-stats span, .contact-card {
  border-radius: 4px !important;
}

/* 粗描边 + 硬边偏移阴影（像素立体感） */
.btn-primary, .btn-wa, .btn-cart, .btn-ghost,
.card, .cat-tile, .footer-brand-item, .store-card, .wa-pop,
.shipping-block, .why-card, .cta-band, .modal-box, .cart-panel,
.nav-search input, .nav-lang, .acc-btn, .dt-media, .qty-wrap,
.dt-specs, .fav-item {
  border: 3px solid var(--edge) !important;
  box-shadow: var(--pixel) !important;
}

/* 主按钮：黄底 + 深蓝字 + 深蓝描边 */
.btn-primary {
  background: var(--yellow) !important;
  color: var(--navy) !important;
  border-color: var(--edge) !important;
  font-weight: 800;
}
.btn-primary:hover { background: var(--yellow-dark) !important; color: var(--navy) !important; }
.btn-ghost { background: #fff !important; color: var(--navy) !important; }

/* 按下 / 悬浮：位移 + 阴影收敛（实体按键感） */
.btn-primary:hover, .btn-wa:hover, .btn-cart:hover, .btn-ghost:hover,
.card:hover, .cat-tile:hover, .footer-brand-item:hover, .why-card:hover,
.cta-band:hover, .dt-media:hover {
  transform: translate(2px, 2px) !important;
  box-shadow: var(--pixel-sm) !important;
}

/* 区块标题：做成像素标题条 */
.sec-title {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  border: 3px solid var(--edge);
  box-shadow: var(--pixel-sm);
  padding: 8px 22px;
  font-family: "Rajdhani", "Noto Sans TC", sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  border-radius: 4px !important;
}

/* 筛选 pill：选中态保持深蓝，未选中加浅描边 */
.pill { border: 2px solid var(--line) !important; box-shadow: none !important; }
.pill.on {
  background: var(--navy) !important;
  color: #fff !important;
  border-color: var(--edge) !important;
  box-shadow: var(--pixel-sm) !important;
}

/* 商品卡价格 / 标签加像素感 */
.card-price { font-weight: 900; color: var(--navy); }

/* Hero 徽章 + 数据标签：硬边方块 + 描边 */
.hero-badge {
  border-radius: 4px !important;
  border: 2px solid var(--edge) !important;
  box-shadow: var(--pixel-sm) !important;
  background: #FCF9E6 !important;
  color: var(--navy) !important;
}
.hero-stats span {
  border: 2px solid var(--edge) !important;
  box-shadow: var(--pixel-sm) !important;
  font-weight: 800;
  color: var(--navy);
}


