/* ==========================================================================
   Default 1.0.0 theme.css
   100% 复制自 StorefrontDefault.astro 兜底模板的 CSS
   :root 变量由 layouts/theme.liquid 注入（此处不再重复）
   ========================================================================== */

/* ===== StorefrontDefault.astro 全局 CSS（L277-960，跳过 :root L255-275）===== */

/* ===== G-1 skip-link：键盘用户跳到主内容（WCAG 2.4.1） ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--color-text);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}

/* ===== 全局重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* 2026-08-15 修复:防止未知元素横向溢出产生横向滚动条(clip 不创建滚动容器,不影响布局) */
  overflow-x: clip;
}
html {
  overflow-x: clip;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
a:hover {
  color: var(--color-accent);
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
ul {
  list-style: none;
}
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Main 通用（跨页面共享：面包屑 / 页面标题 / 空状态） ===== */
.main {
  min-height: 60vh;
}
.breadcrumb {
  padding: 16px 0;
  font-size: 14.4px;
  color: var(--color-text);
}
.breadcrumb a:hover {
  color: var(--color-accent);
}
.breadcrumb span {
  margin: 0 8px;
}
.page-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.page-description {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 720px;
}
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--color-text-light);
}
.empty-state p {
  margin-bottom: 16px;
  font-size: 16px;
}
.empty-state a {
  color: var(--color-accent);
  font-weight: 500;
}

/* ===== 按钮（跨页面共享） ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-primary {
  background: var(--color-text);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-text);
}
.btn-outline:hover {
  background: var(--color-text);
  color: #fff;
}
.btn-large {
  padding: 18px 48px;
  font-size: 16px;
}

/* ===== Section 通用（跨页面共享） ===== */
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
}
.section-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
}
.section-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ===== 分类卡片 §2.3 / §3（跨页面共享：HomePage + CollectionListPage） ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.category-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg-alt);
  display: block;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-card:hover img {
  transform: scale(1.05);
}
.category-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
}
.category-card-overlay h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

/* ===== S40 P3: 主题预览横幅 ===== */
.theme-preview-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f59e0b;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
.theme-preview-banner svg {
  flex-shrink: 0;
}

/* ===== S39 P3: Back to top 按钮 ===== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 9999px;
  background: var(--color-bg, #fff);
  color: var(--color-text, #111827);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}
.back-to-top:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-bg-alt, #f9fafb);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--color-brand, #4f46e5);
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}

/* ===== 商品网格 §2.3 / §4.6（跨页面共享：HomePage + CollectionPage + SearchPage + RelatedProducts） ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  display: block;
  position: relative;
}
.product-card-link,
.product-card-info {
  display: block;
  color: inherit;
}
.product-card-link:hover,
.product-card-info:hover {
  color: inherit;
}
.product-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--color-bg-alt);
  overflow: hidden;
  margin-bottom: 12px;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}
.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 14px;
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 8px;
}
/* §4.6 商品卡片 hover 显示的快速加购按钮 */
.quick-add-btn {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translate(-50%, 8px);
  padding: 10px 20px;
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.product-card:hover .quick-add-btn,
.product-card:focus-within .quick-add-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.quick-add-btn:hover {
  background: var(--color-accent);
  color: #fff;
}
/* PP-19：缺货 disabled 状态 — 灰色背景 + not-allowed 鼠标 + 始终可见（显示 Out of Stock 文案） */
.quick-add-btn:disabled,
.quick-add-btn[aria-disabled="true"] {
  background: var(--color-border, #e5e7eb);
  color: var(--color-text-muted, #888);
  cursor: not-allowed;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.quick-add-btn:disabled:hover,
.quick-add-btn[aria-disabled="true"]:hover {
  background: var(--color-border, #e5e7eb);
  color: var(--color-text-muted, #888);
}
/* 触屏设备无 hover：隐藏 quick-add 按钮，避免遮挡商品图片（2026-08-16 修复；
   用户点图进入详情页加购） */
@media (hover: none) {
  .quick-add-btn {
    display: none;
  }
}

/* S7：商品卡片 hover 切换第二张图 */
.product-image-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.product-card:hover .product-image-hover {
  opacity: 1;
}

/* S7：Wishlist 心形按钮（商品卡片右上角）——作用域限定 .product-card，
   避免污染商品详情页 product-wishlist-action 内的同名单选按钮（详情页走 .ms-btn 样式） */
.product-card .product-wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.2s ease;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.product-card:hover .product-wishlist-btn,
.product-card:focus-within .product-wishlist-btn {
  opacity: 1;
  transform: translateY(0);
}
.product-card .product-wishlist-btn:hover {
  background: #fff;
  color: var(--color-danger, #e11d48);
}
/* 已收藏状态：填充红色心形 */
.product-card .product-wishlist-btn.active {
  color: var(--color-danger, #e11d48);
  opacity: 1;
  transform: translateY(0);
}
.product-card .product-wishlist-btn.active svg {
  fill: currentColor;
}
/* 触屏设备：始终显示 Wishlist 按钮（限定商品卡片作用域，避免污染详情页同名单选按钮） */
@media (hover: none) {
  .product-card .product-wishlist-btn {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}
.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-current {
  font-size: 15px;
  font-weight: 600;
}
.price-compare {
  font-size: 13px;
  color: var(--color-text-light);
  text-decoration: line-through;
}
/* S8：折扣百分比徽章（红色背景，取代旧的 "Sale" 文案徽章） */
.product-badge-discount {
  background: var(--color-danger, #e53935);
  color: #fff;
}
/* S8：商品卡片评分星级 */
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.product-card-rating .stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.product-card-rating .star {
  width: 14px;
  height: 14px;
}
.product-card-rating .star-full {
  color: #f5a623;
}
.product-card-rating .star-half {
  color: #f5a623;
}
.product-card-rating .star-empty {
  color: var(--color-border, #ddd);
}
.product-card-rating .rating-count {
  font-size: 12px;
  color: var(--color-text-muted, #888);
}

/* ===== S28 P2 骨架屏（跨组件共享：CartDrawer 推荐 / CartPage 表格 / 异步加载占位） ===== */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg-alt, #f5f5f5) 25%, var(--color-border, #e5e5e5) 37%, var(--color-bg-alt, #f5f5f5) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
  border-radius: 4px;
  display: inline-block;
}
@keyframes skeleton-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}
/* 推荐卡片骨架（CartDrawer / OrderConfirmation 用，2x2 网格占位） */
.skeleton-recommendation-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.skeleton-recommendation-card .skeleton-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
}
.skeleton-recommendation-card .skeleton-line {
  height: 10px;
  border-radius: 3px;
}
.skeleton-recommendation-card .skeleton-line-short {
  width: 60%;
}
.skeleton-recommendation-card .skeleton-button {
  height: 22px;
  border-radius: 4px;
  margin-top: 4px;
}
/* 购物车表格行骨架（CartPage 用，3 列占位） */
.skeleton-cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border, #e5e5e5);
}
.skeleton-cart-row .skeleton-thumb {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  flex-shrink: 0;
}
.skeleton-cart-row .skeleton-cart-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skeleton-cart-row .skeleton-cart-info .skeleton-line {
  height: 12px;
}

/* ===== S29 P2 全页推荐区（跨页面共享：CartPage 交叉销售 + OrderConfirmation 猜你喜欢） ===== */
.storefront-recommendations {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border, #e5e5e5);
}
.storefront-recommendations-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--color-text, #1a1a1a);
}
.storefront-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
/* 全页推荐卡片尺寸略大于抽屉（抽屉 12px，全页 13px） */
.storefront-recommendations-grid .cart-recommendation-card .cart-recommendation-title {
  font-size: 13px;
}
.storefront-recommendations-grid .cart-recommendation-card .cart-recommendation-price {
  font-size: 14px;
}
.storefront-recommendations-grid .cart-recommendation-card .cart-recommendation-add {
  padding: 8px 12px;
  font-size: 12px;
}
/* OrderConfirmationPage 使用 <a> 标签 + .disabled 类（:disabled 伪类仅适用 <button>） */
.storefront-recommendations-grid .cart-recommendation-add.disabled {
  color: var(--color-text-light, #999);
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}
/* 骨架屏占位（复用 .skeleton 基类） */
.storefront-recommendations-grid .skeleton-recommendation-card .skeleton-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
}
.storefront-recommendations-grid .skeleton-recommendation-card .skeleton-line {
  height: 12px;
  border-radius: 3px;
}
@media (max-width: 768px) {
  .storefront-recommendations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .storefront-recommendations-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }
  .storefront-recommendations-title {
    font-size: 18px;
  }
}

/* ===== 博客卡片 §2.6（跨页面共享：HomePage + BlogListPage） ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  display: block;
}
.blog-image {
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
  overflow: hidden;
  margin-bottom: 16px;
}
.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 14px;
}
.blog-meta {
  font-size: 12px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.blog-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.blog-excerpt {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== 响应式（仅跨页面共享的断点） ===== */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* C-5：平板端 4 列降级为 3 列，2/3 列保持用户选择 */
  .product-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-grid[data-columns="4"] {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }
  .section-title {
    font-size: 26px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  /* C-5：移动端强制 2 列（不管用户选什么，移动端一律 2 列） */
  .product-grid[data-columns="2"],
  .product-grid[data-columns="3"],
  .product-grid[data-columns="4"] {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== Header.astro Header CSS（L286-666）===== */

/* ===== Header 公告栏 §1.1.1 ===== */
.announcement-bar {
  background: var(--color-bg-dark);
  color: #fff;
  height: 36px;
  overflow: hidden;
  position: relative;
}
.announcement-track {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.announcement-track span {
  padding: 0 40px;
  font-size: 13px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ===== Header 导航栏 §1.1.2 ===== */
.header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
/* N-2：sticky_header 设置生效，仅当 .header--sticky 时启用 sticky 定位 */
.header--sticky {
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 32px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}
.search-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.search-toggle:hover {
  background: var(--color-bg-alt);
}
.search-toggle svg {
  width: 20px;
  height: 20px;
}
.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: flex;
  align-items: center;
}
.logo:hover {
  color: var(--color-accent);
}
.logo-img {
  max-height: 40px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.logo-text {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-currency {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.lang-currency select {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  height: 40px;
  padding: 6px 8px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.cart-link {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.cart-link:hover {
  background: var(--color-bg-alt);
}
.cart-link svg {
  width: 20px;
  height: 20px;
}

/* ===== §1.1.2 账户入口（登录态切换：Sign In 链接 / 用户名下拉菜单）===== */
.user-link {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px 0 8px;
  border-radius: 20px;
  color: var(--color-text);
}
.user-link:hover {
  background: var(--color-bg-alt);
}
.user-link svg {
  width: 20px;
  height: 20px;
}
.user-link-text {
  font-size: 13px;
  font-weight: 500;
}
.user-menu {
  position: relative;
}
.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px 0 8px;
  border-radius: 20px;
  cursor: pointer;
  color: var(--color-text);
  list-style: none;
}
.user-menu-trigger::-webkit-details-marker {
  display: none;
}
.user-menu-trigger:hover {
  background: var(--color-bg-alt);
}
.user-menu-trigger svg {
  width: 20px;
  height: 20px;
}
.user-menu-name {
  font-size: 13px;
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 180px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  z-index: 200;
}
.user-menu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--color-text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.user-menu-item:hover {
  background: var(--color-bg-alt);
}
.user-menu-logout {
  color: var(--color-danger);
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
  border-radius: 0;
}
.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--color-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.nav-menu {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
}
.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text);
  position: relative;
  padding: 8px 0;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
}
.nav-menu a:hover::after {
  width: 100%;
}

/* ===== 搜索面板 §1.1.2 ===== */
.search-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
}
.search-panel.active {
  display: flex;
}
.search-panel-inner {
  width: 100%;
  max-width: 720px;
  padding: 0 24px;
}
.search-panel-form {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--color-text);
  padding-bottom: 12px;
}
.search-panel-form input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 24px;
  font-family: inherit;
  background: transparent;
}
.search-panel-form button {
  padding: 8px;
  color: var(--color-text);
}
.search-panel-form button svg {
  width: 24px;
  height: 24px;
}
.search-panel-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 14px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.search-panel-tags {
  margin-top: 32px;
  color: var(--color-text-light);
  font-size: 13px;
}
.search-panel-tags strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-text-muted);
}
.search-panel-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-panel-tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.15s ease;
}
.search-panel-tag:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-bg-alt);
}

/* ===== Footer.astro Footer CSS（L282-499）===== */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-col a:hover {
  color: var(--color-accent);
}
.footer-service li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.footer-service .icon-check {
  color: var(--color-accent);
  flex-shrink: 0;
}
.footer-subscribe p {
  font-size: 14px;
  margin-bottom: 16px;
}
.footer-subscribe-form {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
}
.footer-subscribe-form input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  outline: none;
  font-size: 13px;
  font-family: inherit;
}
.footer-subscribe-form button {
  padding: 12px 20px;
  background: var(--color-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
/* P3-3：Newsletter 提交反馈消息（成功/失败） */
.footer-subscribe-msg {
  font-size: 13px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-subscribe-msg[hidden] {
  display: none;
}
.footer-subscribe-msg.success {
  color: #4ade80;
}
.footer-subscribe-msg.error {
  color: #f87171;
}
/* a11y: 视觉隐藏但仍可被屏幕阅读器读取（用于 form label 关联） */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 13px;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-left {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* S14 P1-22 支付方式图标 */
.footer-payments {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-payments-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-payments-list {
  display: flex;
  gap: 4px;
  align-items: center;
}
.footer-payment-icon {
  display: inline-block;
  width: 36px;
  height: 24px;
  border-radius: 3px;
  overflow: hidden;
}
.footer-payment-icon svg {
  width: 100%;
  height: 100%;
}

/* S14 P1-23 社交媒体图标 */
.footer-social {
  margin-top: 20px;
}
.footer-social-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.footer-social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.footer-social-link:hover {
  background: var(--color-accent);
  color: #fff;
}
.footer-social-link svg {
  width: 16px;
  height: 16px;
}
.footer-bottom select {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 6px 8px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.footer-bottom select option {
  background: var(--color-bg-dark);
}

/* Footer 响应式 */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
  }
  .footer-payments {
    flex-direction: column;
    gap: 8px;
  }
  .footer-payment-icon {
    width: 32px;
    height: 21px;
  }
}


/* ===== CartDrawer.astro CartDrawer CSS（L569-900）===== */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}
.cart-drawer.open {
  pointer-events: auto;
}

/* 遮罩层 */
.cart-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}
.cart-drawer.open .cart-drawer-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* 抽屉面板 */
.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open .cart-drawer-panel {
  transform: translateX(0);
}

/* 头部 */
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart-drawer-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.cart-drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text);
}
.cart-drawer-close:hover {
  background: var(--color-bg-alt);
}

/* 商品列表区（可滚动） */
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  /* 滚动条默认隐藏、hover 时显示：不占用视觉空间，鼠标悬停时提示可滚动 */
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
.cart-drawer-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.cart-drawer-body::-webkit-scrollbar-track {
  background: transparent;
}
.cart-drawer-body::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}
.cart-drawer-body:hover {
  /* Firefox：hover 时显示滚动条 */
  scrollbar-color: var(--color-border, #d1d5db) transparent;
}
.cart-drawer-body:hover::-webkit-scrollbar-thumb {
  background: var(--color-border, #d1d5db);
}
.cart-drawer-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--color-text-light);
  font-size: 14px;
}
.cart-drawer-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer-item:last-child {
  border-bottom: none;
}
.cart-drawer-item-image {
  display: block;
  width: 64px;
  height: 64px;
  background: var(--color-bg-alt);
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}
.cart-drawer-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-drawer-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
/* 商品行紧凑布局（国际流）：标题+删除同一行，规格独立一行，价格+数量一行 */
.cart-drawer-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.cart-drawer-item-header h4 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-drawer-item-title-link {
  color: inherit;
  text-decoration: none;
}
.cart-drawer-item-title-link:hover {
  color: var(--color-accent);
}
.cart-drawer-item-variant {
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 2px 0 6px;
}
.cart-drawer-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.cart-drawer-item-price {
  font-size: 14px;
  font-weight: 600;
}
.cart-drawer-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}
.cart-drawer-qty button {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-drawer-qty button:hover:not(:disabled) {
  background: var(--color-border);
}
.cart-drawer-qty button:disabled {
  color: var(--color-text-light);
  cursor: not-allowed;
}
.cart-drawer-qty-value {
  min-width: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}
.cart-drawer-remove {
  border: none;
  background: none;
  color: var(--color-text-light);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  border-radius: 4px;
  flex-shrink: 0;
}
.cart-drawer-remove:hover {
  color: var(--color-danger);
  background: var(--color-bg-alt);
}

/* 底部操作区 */
.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* 免邮进度条（Shopify 标配） */
.cart-drawer-free-shipping {
  padding: 8px 0 12px;
}
.free-shipping-message {
  font-size: 13px;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 8px;
  font-weight: 500;
}
.free-shipping-message.unlocked {
  color: #16a34a;
}
.free-shipping-progress-track {
  width: 100%;
  height: 6px;
  background: var(--color-bg-alt);
  border-radius: 3px;
  overflow: hidden;
}
.free-shipping-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), #16a34a);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.cart-drawer-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.cart-drawer-view-cart,
.cart-drawer-checkout {
  width: 100%;
  text-align: center;
  padding: 14px;
}

/* S10：购物车推荐区（"You may also like"，Shopify 标配） */
.cart-drawer-recommendations {
  margin: 16px -24px -16px;
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.cart-drawer-recommendations-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cart-drawer-recommendations-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.cart-recommendation-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.cart-recommendation-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-bg);
  overflow: hidden;
  border-radius: 4px;
}
.cart-recommendation-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-recommendation-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-recommendation-title {
  font-size: 12px;
  color: var(--color-text);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}
.cart-recommendation-title:hover {
  color: var(--color-accent);
}
.cart-recommendation-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
}
.cart-recommendation-add {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  /* 多规格商品用 <a> 渲染（跳转 PDP 选规格），需与按钮视觉一致 */
  display: block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.cart-recommendation-add:hover:not(:disabled) {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-bg);
}
.cart-recommendation-add:disabled {
  color: var(--color-text-light);
  cursor: not-allowed;
  opacity: 0.6;
}

/* 响应式：小屏全宽 */
@media (max-width: 480px) {
  .cart-drawer-panel {
    max-width: 100%;
  }
  .cart-drawer-recommendations-list {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }
}


/* ===== CartNotification.astro CSS（L151-271）===== */
.cart-notification {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 320;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  pointer-events: none;
}
.cart-notification.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 通知主体（横向布局：缩略图 + 文案 + 关闭按钮） */
.cart-notification-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
}

/* 商品缩略图 */
.cart-notification-image {
  width: 56px;
  height: 56px;
  background: var(--color-bg-alt);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-notification-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-notification-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--color-text-light);
}

/* 文案区 */
.cart-notification-body {
  flex: 1;
  min-width: 0;
}
.cart-notification-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-success);
  margin-bottom: 4px;
}
.cart-notification-product {
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-notification-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: underline;
}
.cart-notification-link:hover {
  color: var(--color-accent-dark);
}

/* 关闭按钮 */
.cart-notification-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.cart-notification-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

/* 底部进度条（3 秒倒计时视觉提示） */
.cart-notification-progress {
  height: 3px;
  background: var(--color-accent);
  transform-origin: left center;
  transform: scaleX(0);
}

/* 响应式：小屏贴底全宽 */
@media (max-width: 480px) {
  .cart-notification {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }
}


/* ===== QuickAddModal.astro CSS（L331-533）===== */
.quick-add-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  pointer-events: none;
}
.quick-add-modal.open {
  pointer-events: auto;
}

/* 遮罩层 */
.quick-add-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}
.quick-add-modal.open .quick-add-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* 面板（居中弹出） */
.quick-add-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  width: 92%;
  max-width: 460px;
  background: var(--color-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.quick-add-modal.open .quick-add-panel {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* 关闭按钮 */
.quick-add-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text);
}
.quick-add-close:hover {
  background: var(--color-bg-alt);
}

/* 商品信息区 */
.quick-add-body {
  display: flex;
  gap: 16px;
}
.quick-add-image {
  width: 96px;
  height: 96px;
  background: var(--color-bg-alt);
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}
.quick-add-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quick-add-image .product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--color-text-light);
}
.quick-add-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quick-add-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.quick-add-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}
.quick-add-details-link {
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: underline;
  margin-top: 4px;
}
.quick-add-details-link:hover {
  color: var(--color-accent);
}

/* 变体规格选择器（多规格商品快速加购，对齐 PDP 变体选择器样式） */
.quick-add-variants {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quick-add-variants[hidden] {
  display: none;
}
.quick-add-variant-option {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quick-add-variant-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}
.quick-add-variant-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick-add-variant-value {
  min-width: 44px;
  padding: 8px 12px;
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 4px;
  background: var(--color-bg, #fff);
  color: var(--color-text, #1a1a1a);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.quick-add-variant-value:hover {
  border-color: var(--color-text, #1a1a1a);
}
.quick-add-variant-value.selected {
  border-color: var(--color-accent, #1a1a1a);
  background: var(--color-accent, #1a1a1a);
  color: var(--color-bg, #fff);
}

/* 数量选择器 */
.quick-add-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.quick-add-quantity-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}
.quick-add-quantity .quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}
.quick-add-quantity .quantity-selector button {
  width: 36px;
  height: 36px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  border: none;
  cursor: pointer;
}
.quick-add-quantity .quantity-selector button:disabled {
  color: var(--color-text-light);
  cursor: not-allowed;
}
.quick-add-quantity .quantity-selector input {
  width: 48px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center;
  font-size: 14px;
  font-family: inherit;
  -moz-appearance: textfield;
}
.quick-add-quantity .quantity-selector input::-webkit-outer-spin-button,
.quick-add-quantity .quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 加购按钮 */
.quick-add-submit {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 500;
}
.quick-add-submit:disabled {
  background: var(--color-bg-alt);
  color: var(--color-text-light);
  cursor: not-allowed;
}

/* 响应式：小屏底部弹出 */
@media (max-width: 480px) {
  .quick-add-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    width: 100%;
    max-width: 100%;
    border-radius: 8px 8px 0 0;
  }
  .quick-add-modal.open .quick-add-panel {
    transform: translateY(0);
  }
}


/* ===== CookieConsent.astro CSS（L88-178）===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.cookie-consent.show {
  transform: translateY(0);
  opacity: 1;
}

/* 内部容器：限宽居中，padding 间距 */
.cookie-consent-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 消息文案 */
.cookie-consent-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  flex: 1;
}

/* 操作区 */
.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* 了解更多链接 */
.cookie-consent-learn-more {
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: underline;
}
.cookie-consent-learn-more:hover {
  color: var(--color-accent);
}

/* 拒绝按钮 */
.cookie-consent-reject {
  font-size: 14px;
  color: var(--color-text-muted);
  padding: 8px 16px;
}
.cookie-consent-reject:hover {
  color: var(--color-text);
}

/* 接受按钮 */
.cookie-consent-accept {
  font-size: 14px;
  padding: 8px 24px;
  white-space: nowrap;
}

/* 响应式：小屏堆叠布局 */
@media (max-width: 768px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  .cookie-consent-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}


/* ===== PredictiveSearch.astro CSS（L432-683）===== */
.predictive-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.predictive-search-input {
  flex: 1;
  height: 56px;
  padding: 0 20px;
  border: 2px solid var(--color-text);
  border-radius: 4px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 18px;
  font-family: inherit;
  outline: none;
}
.predictive-search-input:focus {
  border-color: var(--color-accent);
}

.predictive-search-submit {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 4px;
  transition: var(--transition);
}
.predictive-search-submit:hover {
  background: var(--color-accent);
}
.predictive-search-submit svg {
  width: 22px;
  height: 22px;
}

/* 下拉面板（绝对定位，覆盖在表单下方） */
.predictive-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-height: 480px;
  overflow-y: auto;
}

/* 加载态 */
.predictive-search-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  color: var(--color-text-muted);
  font-size: 14px;
}
/* hidden 属性覆盖 display:flex，否则 loading 永远不消失 */
.predictive-search-loading[hidden] {
  display: none;
}
.predictive-search-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: predictive-spin 0.8s linear infinite;
}
@keyframes predictive-spin {
  to {
    transform: rotate(360deg);
  }
}

/* 建议列表 */
.predictive-search-list {
  padding: 8px 0;
}
.predictive-search-item {
  list-style: none;
}
.predictive-search-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  transition: var(--transition);
}
.predictive-search-link:hover {
  background: var(--color-bg-alt);
}
/* S11：键盘导航高亮态 */
.predictive-search-link.predictive-search-active,
.predictive-search-recent-btn.predictive-search-active {
  background: var(--color-bg-alt);
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

.predictive-search-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--color-bg-alt);
  border-radius: 4px;
  overflow: hidden;
}
.predictive-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.predictive-search-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 11px;
}

.predictive-search-info {
  flex: 1;
  min-width: 0;
}
.predictive-search-title {
  font-size: 14px;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.predictive-search-price {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* 无结果 */
.predictive-search-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* 查看全部结果 */
.predictive-search-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.predictive-search-view-all {
  width: 100%;
  padding: 10px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.predictive-search-view-all:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* 响应式：小屏面板占满宽度 */
@media (max-width: 768px) {
  .predictive-search-panel {
    max-height: 60vh;
  }
}

/* S10：最近搜索 */
.predictive-search-recent {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}
.predictive-search-recent[hidden] {
  display: none;
}
.predictive-search-recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}
.predictive-search-recent-clear {
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 2px 4px;
}
.predictive-search-recent-clear:hover {
  color: var(--color-text);
}
.predictive-search-recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.predictive-search-recent-item {
  list-style: none;
}
.predictive-search-recent-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 20px;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}
.predictive-search-recent-btn:hover {
  background: var(--color-bg-alt);
}
.predictive-search-recent-btn svg {
  color: var(--color-text-light);
  flex-shrink: 0;
}
.predictive-search-recent-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ===== MobileDrawer.astro CSS（L148-327）===== */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border-radius: 4px;
}
.mobile-menu-toggle:hover {
  background: var(--color-bg-alt);
}

/* 抽屉容器（fixed 全屏，面板从左侧滑入） */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 310;
  pointer-events: none;
}
.mobile-drawer.open {
  pointer-events: auto;
}

/* 遮罩层 */
.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}
.mobile-drawer.open .mobile-drawer-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* 抽屉面板（从左侧滑入） */
.mobile-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

/* 头部 */
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.mobile-drawer-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.mobile-drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text);
}
.mobile-drawer-close:hover {
  background: var(--color-bg-alt);
}

/* 导航区 */
.mobile-drawer-nav {
  flex: 1;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-drawer-link {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.mobile-drawer-link:hover {
  color: var(--color-accent);
}

/* 分区（分类 / 账户） */
.mobile-drawer-section {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-drawer-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0;
  margin-bottom: 4px;
}

/* S31 P2：分类折叠按钮 */
.mobile-drawer-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  font-family: inherit;
}
.mobile-drawer-section-toggle:hover {
  color: var(--color-text);
}
.mobile-drawer-toggle-icon {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.mobile-drawer-section-toggle[aria-expanded="false"] .mobile-drawer-toggle-icon {
  transform: rotate(-90deg);
}
/* 分类内容折叠动画 */
.mobile-drawer-section-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 1000px;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.2s ease;
  opacity: 1;
}
.mobile-drawer-section-content.collapsed {
  max-height: 0;
  opacity: 0;
}
.mobile-drawer-sublink {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  color: var(--color-text);
}
.mobile-drawer-sublink:hover {
  color: var(--color-accent);
}

/* 响应式：移动端显示汉堡按钮 */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
}


/* ===== MegaMenu.astro CSS（L121-228）===== */
.mega-menu {
  position: relative;
  display: inline-block;
}

/* 触发器（导航项 + 下拉箭头） */
.mega-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--color-text);
  padding: 8px 0;
}
.mega-menu-trigger:hover {
  color: var(--color-accent);
}
.mega-menu-caret {
  transition: transform 0.2s ease;
}
.mega-menu-trigger[aria-expanded="true"] .mega-menu-caret {
  transform: rotate(180deg);
}

/* 下拉面板（绝对定位，hover 时展开） */
.mega-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 480px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  padding: 20px;
  z-index: 200;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}
.mega-menu-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 面板内部分列容器 */
.mega-menu-panel-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* N-1：Featured 分类图片区 */
.mega-menu-featured {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 140px;
}
.mega-menu-featured-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  padding: 8px 12px;
}
.mega-menu-featured-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mega-menu-featured-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--color-text);
  transition: var(--transition);
}
.mega-menu-featured-card:hover {
  background: var(--color-bg-alt);
}
.mega-menu-featured-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}
.mega-menu-featured-card span {
  font-size: 13px;
  padding: 0 4px;
}

/* N-1：促销卡片 */
.mega-menu-promo {
  position: relative;
  display: block;
  width: 140px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  flex-shrink: 0;
}
.mega-menu-promo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.mega-menu-promo:hover img {
  transform: scale(1.05);
}
.mega-menu-promo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
}
.mega-menu-promo-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.mega-menu-promo-cta {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  text-decoration: underline;
}

/* 单列 */
.mega-menu-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}

/* "All Products" 链接（首列顶部） */
.mega-menu-all {
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 8px;
  color: var(--color-text);
}
.mega-menu-all:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

/* 分类项 */
.mega-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--color-text);
}
.mega-menu-item:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}
.mega-menu-count {
  font-size: 12px;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  padding: 2px 8px;
  border-radius: 10px;
}
.mega-menu-item:hover .mega-menu-count {
  background: var(--color-bg);
}

/* 响应式：移动端隐藏（MobileDrawer 处理） */
@media (max-width: 768px) {
  .mega-menu {
    display: none;
  }
}


/* ===== 首页 Slideshow 双 slide 轮播(对齐 BeikeShop demo)===== */
.slideshow {
  position: relative;
  height: 760px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  overflow: hidden;
}
.slideshow-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.slideshow-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}
.slideshow-slide[hidden] {
  display: flex;
  opacity: 0;
}
.slideshow-slide-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.slideshow-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.4) 0%, rgba(45, 45, 45, 0.3) 100%);
  z-index: 1;
}
.slideshow-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.slideshow-image-mobile {
  display: none;
}
@media (max-width: 768px) {
  .slideshow-image-desktop {
    display: none;
  }
  .slideshow-image-mobile.slideshow-image {
    display: block;
  }
  .slideshow:not(:has(.slideshow-image-mobile)) .slideshow-image-desktop {
    display: block;
  }
}
.slideshow-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  padding: 0 24px;
  margin: 0 auto;
  text-align: center;
}
.slideshow-label {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  font-weight: 600;
}
.slideshow-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
}
.slideshow-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}
.slideshow-cta {
  display: inline-block;
  padding: 12px 32px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--border-radius-pill);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease;
}
.slideshow-cta:hover {
  background: var(--color-accent-hover);
  color: #fff;
}
.slideshow-pagination {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slideshow-pagination-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}
.slideshow-pagination-bullet:hover {
  background: rgba(255, 255, 255, 0.7);
}
.slideshow-pagination-bullet-active {
  background: #fff;
  transform: scale(1.2);
}
.slideshow-notification {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
@media (max-width: 768px) {
  .slideshow {
    height: 480px;
  }
  .slideshow-title {
    font-size: 36px;
  }
  .slideshow-desc {
    font-size: 16px;
  }
}

/* ===== 首页精选分类 §2.2 (对齐 BeikeShop Top Collections 圆形分类卡) ===== */
.home-collections-section {
  padding: 64px 0;
  background: var(--color-bg, #ffffff);
}
.home-collections-title {
  text-align: center;
  margin-bottom: 8px;
}
.home-collections-heading {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-bottom: 32px;
}
.home-collections-wave {
  display: block;
  width: 54px;
  height: 18px;
  margin: 8px auto 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 18' fill='none'><path d='M2 9 Q 9 1, 16 9 T 30 9 T 44 9 T 52 9' stroke='%231a1a1a' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.home-collections-subtitle {
  text-align: center;
  font-size: 14.4px;
  color: var(--color-text-muted, #564a4a);
  margin-bottom: 22.4px;
}
.home-collections-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.home-collection-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.home-collection-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-alt, #f4f4f4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.home-collection-item:hover .home-collection-image {
  transform: scale(1.05);
}
.home-collection-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-collection-placeholder {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-muted, #767676);
}
.home-collection-name {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text, #212529);
  margin-top: 8px;
  margin-bottom: 0;
}
@media (max-width: 992px) {
  .home-collections-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .home-collections-section {
    padding: 40px 0;
  }
  .home-collections-heading {
    font-size: 20px;
  }
}

/* ===== 首页精选商品 Tab §2.3 (对齐 BeikeShop Fashion items) ===== */
.featured-tabs-section {
  padding: 64px 0;
  background: var(--color-bg-alt, #fafafa);
}
.featured-tabs-title {
  text-align: center;
  margin-bottom: 24px;
}
.featured-tabs-heading {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-bottom: 16px;
}
.featured-tabs-wave {
  display: block;
  width: 54px;
  height: 18px;
  margin: 8px auto 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 18' fill='none'><path d='M2 9 Q 9 1, 16 9 T 30 9 T 44 9 T 52 9' stroke='%231a1a1a' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.featured-tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--color-border, #e5e5e5);
}
.featured-tab-link {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-muted, #767676);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  letter-spacing: 0.02em;
  margin-bottom: -1px;
}
.featured-tab-link:hover {
  color: var(--color-text, #111);
}
.featured-tab-link-active,
.featured-tab-link-active:hover {
  color: var(--color-text, #111);
  border-bottom-color: var(--color-text, #111);
  font-weight: 700;
}
.featured-tabs-content {
  position: relative;
}
.featured-tab-pane[hidden] {
  display: none;
}
.featured-tabs-section .product-grid {
  margin-top: 0;
}
@media (max-width: 768px) {
  .featured-tabs-section {
    padding: 40px 0;
  }
  .featured-tabs-heading {
    font-size: 20px;
  }
  .featured-tab-link {
    padding: 6px 10px;
    font-size: 14px;
  }
  .featured-tabs-nav {
    gap: 4px;
    margin-bottom: 20px;
  }
}

/* ===== 首页双 Banner §2.4 (对齐 BeikeShop 双 Banner 垂直图文) ===== */
.image-banner-section {
  padding: 48px 0;
  background: var(--color-bg, #ffffff);
}
.image-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.image-banner-card {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 4px;
}
.image-banner-image {
  overflow: hidden;
  aspect-ratio: 8 / 5;
  background: var(--color-bg-alt, #f4f4f4);
}
.image-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.image-banner-card:hover .image-banner-image img {
  transform: scale(1.05);
}
.image-banner-text {
  text-align: center;
  padding: 20px 16px 8px;
}
.image-banner-subtitle {
  font-size: 14px;
  color: var(--color-text-muted, #767676);
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}
.image-banner-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text, #212529);
  margin: 0 0 12px;
}
.image-banner-btn {
  display: inline-block;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text, #111);
  background: transparent;
  border: 1px solid var(--color-text, #111);
  border-radius: 2px;
  transition: background 0.2s ease, color 0.2s ease;
}
.image-banner-card:hover .image-banner-btn {
  background: var(--color-text, #111);
  color: #fff;
}
@media (max-width: 768px) {
  .image-banner-section { padding: 32px 0; }
  .image-banner-grid { gap: 12px; }
  .image-banner-title { font-size: 16px; }
  .image-banner-text { padding: 12px 8px 4px; }
}

/* ===== 首页 Holiday Specials §2.5 (对齐 BeikeShop 商品网格) ===== */
.holiday-section {
  padding: 64px 0;
  background: var(--color-bg, #ffffff);
}
.holiday-title {
  text-align: center;
  margin-bottom: 32px;
}
.holiday-heading {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-bottom: 32px;
}
.holiday-wave {
  display: block;
  width: 54px;
  height: 18px;
  margin: 8px auto 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 18' fill='none'><path d='M2 9 Q 9 1, 16 9 T 30 9 T 44 9 T 52 9' stroke='%231a1a1a' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
@media (max-width: 768px) {
  .holiday-section { padding: 40px 0; }
  .holiday-heading { font-size: 20px; }
}

/* ===== 首页 Flash Sale §2.6 (对齐 BeikeShop 图文并排) ===== */
.flash-sale-section {
  padding: 0;
  background: var(--color-bg, #ffffff);
}
.flash-sale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.flash-sale-image {
  overflow: hidden;
  position: relative;
  min-height: 400px;
}
.flash-sale-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flash-sale-text {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 50px;
  background: #ffffff;
}
.flash-sale-text-inner {
  max-width: 520px;
  margin-top: auto;
  margin-bottom: auto;
}
.flash-sale-title {
  font-size: 28.8px;
  font-weight: 700;
  color: #171717;
  line-height: 1.3;
  margin: 0 0 20px;
}
.flash-sale-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #444;
  line-height: 1.4;
  margin: 0 0 20px;
}
.flash-sale-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-muted, #666);
  margin: 0 0 24px;
}
.flash-sale-btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  background: #101010;
  border: none;
  border-radius: 160px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.flash-sale-btn:hover {
  background: #333;
}
@media (max-width: 992px) {
  .flash-sale-grid { grid-template-columns: 1fr; }
  .flash-sale-image img { min-height: 280px; }
  .flash-sale-text { padding: 32px 24px; }
  .flash-sale-title { font-size: 22px; }
  .flash-sale-subtitle { font-size: 17px; }
}

/* ===== 首页品牌墙 §2.7 (对齐 BeikeShop Recommended Brand) ===== */
.brands-wall-section {
  padding: 64px 0;
  background: var(--color-bg-alt, #fafafa);
}
.brands-wall-title {
  text-align: center;
  margin-bottom: 32px;
}
.brands-wall-heading {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-bottom: 32px;
}
.brands-wall-wave {
  display: block;
  width: 54px;
  height: 18px;
  margin: 8px auto 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 18' fill='none'><path d='M2 9 Q 9 1, 16 9 T 30 9 T 44 9 T 52 9' stroke='%231a1a1a' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.brands-wall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.brands-wall-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brands-wall-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--color-border, #e5e5e5);
  transition: transform 0.3s ease;
}
.brands-wall-item:hover .brands-wall-image {
  transform: scale(1.03);
}
.brands-wall-image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}
.brands-wall-placeholder {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-muted, #767676);
}
.brands-wall-name {
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text, #212529);
  margin-top: 12px;
  margin-bottom: 0;
}
@media (max-width: 992px) {
  .brands-wall-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .brands-wall-section { padding: 40px 0; }
  .brands-wall-heading { font-size: 20px; }
  .brands-wall-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ===== 首页博客 §2.8 (对齐 BeikeShop News Blog) ===== */
.blog-feed-section {
  padding: 64px 0;
  background: var(--color-bg, #ffffff);
}
.blog-feed-title {
  text-align: center;
  margin-bottom: 32px;
}
.blog-feed-heading {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.02em;
  display: inline-block;
  margin-bottom: 32px;
}
.blog-feed-wave {
  display: block;
  width: 54px;
  height: 18px;
  margin: 8px auto 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 18' fill='none'><path d='M2 9 Q 9 1, 16 9 T 30 9 T 44 9 T 52 9' stroke='%231a1a1a' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.blog-feed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.blog-feed-card {
  display: flex;
  flex-direction: column;
}
.blog-feed-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt, #f4f4f4);
}
.blog-feed-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-feed-image:hover img {
  transform: scale(1.05);
}
.blog-feed-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--color-text-muted, #767676);
  font-size: 14px;
}
.blog-feed-info {
  padding: 16px 0 0;
}
.blog-feed-card-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
}
.blog-feed-card-title a {
  color: var(--color-text, #212529);
  text-decoration: none;
}
.blog-feed-card-title a:hover {
  color: var(--color-accent, #1a1a1a);
}
.blog-feed-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted, #666);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-feed-view {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text, #212529);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.blog-feed-view:hover {
  color: var(--color-accent, #1a1a1a);
}
.blog-feed-arrow {
  font-size: 16px;
}
@media (max-width: 992px) {
  .blog-feed-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .blog-feed-section { padding: 40px 0; }
  .blog-feed-heading { font-size: 20px; }
  .blog-feed-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .blog-feed-title { margin-bottom: 20px; }
}

/* ===== BeikeShop 博客列表页(main-blog.liquid)===== */
  /* 博客列表页主容器 */
  .blog-list-page {
    padding: 24px 0 48px;
  }
  .blog-list-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
  }
  .blog-list-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text, #111827);
    margin: 0 0 4px;
  }
  .blog-list-count {
    font-size: 14px;
    color: var(--color-text-muted, #6b7280);
    margin: 0;
  }

  /* tag 筛选器(chip 样式) */
  .blog-tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
  }
  .blog-tag-chip {
    padding: 6px 14px;
    border: 1px solid var(--color-border, #e5e7eb);
    background: var(--color-bg, #fff);
    color: var(--color-text-muted, #6b7280);
    font-size: 13px;
    font-family: inherit;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition, all 0.2s);
  }
  .blog-tag-chip:hover {
    color: var(--color-text, #111827);
    border-color: var(--color-text, #111827);
  }
  .blog-tag-chip.is-active {
    background: var(--color-text, #111827);
    color: var(--color-bg, #fff);
    border-color: var(--color-text, #111827);
  }

  /* 博客列表卡片(对齐 BeikeShop .card.mb-4.shadow-sm.h-min-600) */
  .blog-list-card {
    background: var(--color-bg, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
  }
  .blog-list-card-body {
    padding: 24px;
  }

  /* 单篇文章卡片(对齐 BeikeShop .post-item) */
  .post-item {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    align-items: flex-start;
  }
  .post-item-image {
    flex-shrink: 0;
    width: 240px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg-alt, #f9fafb);
    display: block;
  }
  .post-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .post-item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted, #6b7280);
    font-size: 13px;
  }
  .post-info {
    flex: 1;
    min-width: 0;
  }
  .post-item-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
  }
  .post-item-title a {
    color: var(--color-text, #111827);
    text-decoration: none;
  }
  .post-item-title a:hover {
    color: var(--color-accent, #fd560f);
  }
  .post-item-date {
    font-size: 13px;
    color: var(--color-text-muted, #6b7280);
    margin: 0 0 12px;
  }
  .post-item-summary {
    font-size: 14px;
    color: var(--color-text-muted, #6b7280);
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .post-item-link a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-accent, #fd560f);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
  }
  .post-item-link a:hover {
    text-decoration: underline;
  }
  .post-item-divider {
    border: none;
    border-top: 1px solid var(--color-border, #e5e7eb);
    margin: 16px 0;
  }

  /* 博客列表响应式 */
  @media (max-width: 768px) {
    .post-item {
      flex-direction: column;
      gap: 12px;
    }
    .post-item-image {
      width: 100%;
      height: 200px;
    }
    .blog-list-card-body {
      padding: 16px;
    }
  }

/* ===== BeikeShop 博客详情页(main-article.liquid)===== */
  .article-detail-page {
    padding: 24px 0 48px;
  }
  .article-detail-card {
    background: var(--color-bg, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.06));
  }
  .article-detail-body {
    padding: 32px;
  }
  .article-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text, #111827);
    margin: 0 0 16px;
    line-height: 1.3;
  }
  .article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    color: var(--color-text-muted, #6b7280);
    font-size: 13px;
    opacity: 0.85;
  }
  .article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .article-detail-image {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
  }
  .article-detail-image img {
    width: 100%;
    height: auto;
    display: block;
  }
  .article-detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text, #111827);
  }
  .article-detail-content p {
    margin: 0 0 16px;
  }
  .article-detail-content h2,
  .article-detail-content h3 {
    margin: 24px 0 12px;
    font-weight: 700;
  }
  .article-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
  }
  .article-detail-content blockquote {
    border-left: 4px solid var(--color-accent, #fd560f);
    padding: 12px 16px;
    margin: 16px 0;
    background: var(--color-bg-alt, #f9fafb);
    color: var(--color-text-muted, #6b7280);
    border-radius: 0 8px 8px 0;
  }
  .article-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border, #e5e7eb);
  }
  .article-tag {
    padding: 4px 12px;
    background: var(--color-bg-alt, #f9fafb);
    color: var(--color-text-muted, #6b7280);
    font-size: 13px;
    border-radius: 100px;
  }

  /* 博客详情响应式 */
  @media (max-width: 768px) {
    .article-detail-body {
      padding: 20px;
    }
    .article-detail-title {
      font-size: 22px;
    }
    .article-detail-meta {
      gap: 12px;
      font-size: 12px;
    }
  }

/* ============================================
   G-5：prefers-reduced-motion 适配（WCAG 2.3.3）
   前庭敏感用户禁用动画/过渡
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* HP-13：滚动动画在前庭敏感用户下完全禁用 */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================
   HP-13：首页 section 滚动进入视口淡入动画
   仅在首页 .section / .subscribe-section / .hero 上生效
   配合 theme.js 的 IntersectionObserver 触发 .reveal-in
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   阶段4-2B：交互完善批次
   - P1-1 移动端底部 Tab Bar
   - P1-21 智能 sticky header
   - P1-8 移动端购物车响应式卡片优化
   - P1-16 评分分布柱状图
   - P1-17 紧迫感元素
   - P1-18 猜你喜欢横向滚动
   ============================================ */

/* ===== P1-1：移动端底部 Tab Bar ===== */
.mobile-tab-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  align-items: stretch;
  justify-content: space-around;
  height: 56px;
  padding: 0 env(safe-area-inset-left, 0) env(safe-area-inset-bottom, 0);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}
.mobile-tab-bar-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  transition: color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.mobile-tab-bar-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.mobile-tab-bar-link.is-active {
  color: var(--color-text);
}
.mobile-tab-bar-link.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 0 0 2px 2px;
}
.mobile-tab-bar-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}
.mobile-tab-bar-badge {
  position: absolute;
  top: 4px;
  right: 50%;
  margin-right: -22px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--color-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  pointer-events: none;
}
.mobile-tab-bar-search-trigger {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-tab-bar-search-trigger svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  body.has-mobile-tab-bar {
    padding-bottom: 56px;
  }
  .mobile-tab-bar {
    display: flex;
  }
  /* P1-2: 粘性加购栏与 Tab Bar 协同：底部上移避开 Tab Bar */
  .sticky-add-to-cart {
    bottom: 56px;
  }
  /* 通知 Toast 也上移避开 Tab Bar */
  .cart-notification {
    bottom: 64px;
  }
  /* back-to-top 按钮上移避开 Tab Bar */
  .back-to-top {
    bottom: 68px;
  }
}

/* ===== P1-21：智能 sticky header（向下滚隐藏，向上滚显示） ===== */
.header--sticky.header--auto-hide {
  transition: transform 0.25s ease;
}
.header--sticky.header--auto-hide.header--hidden {
  transform: translateY(-100%);
}

/* ===== P1-18：猜你喜欢 / 推荐商品横向滚动 ===== */
.product-carousel {
  position: relative;
}
.product-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-carousel-viewport::-webkit-scrollbar {
  display: none;
}
.product-carousel-track {
  display: flex;
  gap: 16px;
  padding: 4px 0 8px;
  min-width: min-content;
}
.product-carousel-track .card-product {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
}
@media (max-width: 768px) {
  .product-carousel-track .card-product {
    width: 160px;
  }
}
.product-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease, color 0.15s ease;
}
.product-carousel-btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}
.product-carousel-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.product-carousel-btn--prev {
  left: -12px;
}
.product-carousel-btn--next {
  right: -12px;
}
@media (min-width: 769px) and (pointer: fine) {
  .product-carousel:hover .product-carousel-btn {
    display: flex;
  }
}
@media (max-width: 768px) {
  /* 移动端：横向滚动靠手势 + scroll-snap，不显示按钮 */
  .product-carousel-btn {
    display: none !important;
  }
}

/* ============================================
   阶段4-3A：全局打磨批次
   - GP-1 全局 :focus-visible 焦点环（WCAG 2.4.7）
   - GP-10 back-to-top 颜色变量修正
   - GP-11 nav-menu 键盘焦点下划线
   - HP-1 Hero 暗背景按钮可见性
   - HP-7 hero-actions 移动端 flex-wrap
   - HP-11 press-logo 对比度提升
   - HP-26 星星间距
   - PP-15 number input 隐藏原生 spinner
   - PP-16 缩略图滚动条隐藏
   ============================================ */

/* GP-1：全局焦点环 — 键盘用户可见焦点指示器 */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--color-accent, #c9a961);
  outline-offset: 2px;
  border-radius: 2px;
}
/* 已有自定义焦点处理的元素不重复加轮廓 */
.skip-link:focus-visible,
.back-to-top:focus-visible {
  outline-offset: -3px;
}

/* GP-10：back-to-top 颜色变量修正（--color-brand 未定义，改用 --color-accent） */
.back-to-top:focus-visible {
  outline: 2px solid var(--color-accent, #c9a961);
}

/* GP-11：nav-menu 键盘焦点触发下划线动画 */
.nav-menu a:focus-visible::after {
  width: 100%;
}

/* HP-1：Hero 暗背景按钮可见性 — outline 按钮改白色 */
.hero .btn-outline {
  color: #fff;
  border-color: #fff;
}
.hero .btn-outline:hover,
.hero .btn-outline:focus-visible {
  background: #fff;
  color: var(--color-text, #1a1a1a);
}

/* HP-7：hero-actions 移动端不溢出 */
.hero-actions {
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .hero-actions .btn {
    flex: 1 1 200px;
  }
}

/* HP-11：press-logo 对比度提升（opacity 0.6 → 0.85） */
.press-logo {
  opacity: 0.85;
}

/* HP-26：商品卡片评分星星间距 */
.product-card-rating .stars {
  gap: 2px;
}

/* PP-15：数量选择器隐藏原生 spinner */
.quantity-selector input[type="number"]::-webkit-outer-spin-button,
.quantity-selector input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quantity-selector input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* PP-16：缩略图横向滚动条隐藏 */
.product-gallery-thumbs {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-gallery-thumbs::-webkit-scrollbar {
  display: none;
}

/* PP-9：尺码表小屏横向滚动 */
.size-guide-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* HP-4：订阅 input 焦点样式 */
.subscribe-form input:focus,
.subscribe-form input:focus-visible {
  outline: 2px solid var(--color-accent, #c9a961);
  outline-offset: 2px;
}

/* GP-14：CartDrawer 税费说明 */
.cart-drawer-taxes-note {
  margin: 4px 0 8px;
  font-size: 12px;
  color: var(--color-text-muted, #666);
  text-align: center;
}

/* GP-13：CartDrawer 空态继续购物按钮 */
.cart-drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 20px;
  text-align: center;
}
.cart-drawer-empty p {
  margin: 0;
  color: var(--color-text-muted, #666);
}
.cart-drawer-continue-shopping {
  padding: 10px 24px;
  font-size: 14px;
}


/* ==========================================================================
   富文本内容样式（.rich-text-content）— 与 admin RichTextEditor 输出对齐
   覆盖：商品描述 / 博客正文 / 静态页面 / 分类描述 等所有 set:html / Liquid 渲染位置
   主流富文本元素：h1-h3 / p / ul / ol / li / blockquote / a / img / pre / code / table / iframe
   ========================================================================== */
.rich-text-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text, #27272a);
  word-wrap: break-word;
}
.rich-text-content > :first-child { margin-top: 0; }
.rich-text-content > :last-child { margin-bottom: 0; }
.rich-text-content h1 {
  font-size: 1.75rem; font-weight: 700; margin: 1.25rem 0 0.5rem; line-height: 1.3;
  color: var(--color-text, #18181b);
}
.rich-text-content h2 {
  font-size: 1.5rem; font-weight: 700; margin: 1.125rem 0 0.5rem; line-height: 1.3;
  color: var(--color-text, #27272a);
}
.rich-text-content h3 {
  font-size: 1.25rem; font-weight: 600; margin: 1rem 0 0.5rem; line-height: 1.35;
  color: var(--color-text, #27272a);
}
.rich-text-content h4 {
  font-size: 1.125rem; font-weight: 600; margin: 0.875rem 0 0.5rem;
  color: var(--color-text, #27272a);
}
.rich-text-content p { margin: 0.5rem 0; }
.rich-text-content ul,
.rich-text-content ol { padding-left: 1.5rem; margin: 0.5rem 0; }
.rich-text-content ul { list-style-type: disc; }
.rich-text-content ol { list-style-type: decimal; }
.rich-text-content li { margin: 0.25rem 0; }
.rich-text-content li > p { margin: 0; }
/* 任务列表（Tiptap TaskList 扩展） */
.rich-text-content ul[data-type="taskList"] { list-style: none; padding-left: 0; }
.rich-text-content ul[data-type="taskList"] li { display: flex; align-items: flex-start; gap: 0.5rem; }
.rich-text-content ul[data-type="taskList"] li > label { flex-shrink: 0; margin-top: 0.25rem; user-select: none; }
.rich-text-content ul[data-type="taskList"] li > div { flex: 1; }
/* 引用 */
.rich-text-content blockquote {
  border-left: 3px solid var(--color-accent, #5e6ad2);
  padding-left: 1rem; margin: 0.75rem 0;
  color: var(--color-text-muted, #71717a); font-style: italic;
}
/* 链接 */
.rich-text-content a { color: var(--color-accent, #5e6ad2); text-decoration: underline; cursor: pointer; }
.rich-text-content a:hover { opacity: 0.8; }
/* 图片 */
.rich-text-content img {
  max-width: 100%; height: auto; border-radius: 0.375rem; margin: 0.75rem 0;
  display: inline-block;
}
/* 代码块 */
.rich-text-content pre {
  background: #18181b; color: #f4f4f5; padding: 0.875rem 1rem;
  border-radius: 0.375rem; margin: 0.75rem 0; font-size: 0.8125rem; overflow-x: auto;
}
.rich-text-content code {
  background: var(--color-bg-alt, #f4f4f5); padding: 0.125rem 0.25rem;
  border-radius: 0.25rem; font-size: 0.875em; font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.rich-text-content pre code { background: transparent; padding: 0; }
/* 表格（Tiptap Table 扩展 + columnResizing plugin） */
.rich-text-content .tableWrapper { overflow-x: auto; margin: 0.75rem 0; }
.rich-text-content table {
  border-collapse: collapse; table-layout: fixed; width: 100%;
  margin: 0.75rem 0; background: var(--color-bg, #fff);
  overflow: hidden;
}
.rich-text-content table td,
.rich-text-content table th {
  border: 1px solid var(--color-border, #d4d4d8);
  padding: 8px 12px; vertical-align: top;
}
.rich-text-content table th {
  background: var(--color-bg-alt, #f4f4f5); font-weight: 600; text-align: left;
}
/* ProseMirror 表格选中单元格高亮 */
.rich-text-content table .selectedCell::after {
  content: ""; position: absolute; inset: 0;
  background: var(--color-brand-100, rgba(94, 106, 210, 0.1));
  pointer-events: none;
}
/* ProseMirror 表格列宽调整手柄（hover 单元格右边框时动态生成） */
.rich-text-content table .column-resize-handle {
  position: absolute; right: -2px; top: 0; bottom: -2px; width: 4px;
  background: var(--color-accent, #5e6ad2); pointer-events: none; z-index: 10;
}
.rich-text-content.table-focused table .column-resize-handle { pointer-events: auto; cursor: col-resize; }
/* YouTube / iframe 视频 */
.rich-text-content iframe {
  max-width: 100%; border-radius: 0.375rem; margin: 0.75rem 0;
}
.rich-text-content .rich-text-youtube,
.rich-text-content div[data-youtube-video] {
  position: relative; width: 100%; padding-bottom: 56.25%;
  margin: 0.75rem 0; border-radius: 0.375rem; overflow: hidden;
}
.rich-text-content .rich-text-youtube iframe,
.rich-text-content div[data-youtube-video] iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; margin: 0;
}
/* 文字对齐（TextAlign 扩展） */
.rich-text-content [style*="text-align: center"] { text-align: center; }
.rich-text-content [style*="text-align: right"] { text-align: right; }
.rich-text-content [style*="text-align: justify"] { text-align: justify; }
/* 高亮标记（Highlight 扩展） */
.rich-text-content mark {
  background: #fef08a; padding: 0.125rem 0.25rem; border-radius: 0.25rem;
}
/* 文字颜色（Color 扩展，Tiptap 用 data-color/style 内联） */
.rich-text-content [data-color],
.rich-text-content [style*="color:"] { color: attr(data-color color, inherit); }
/* 响应式：移动端字号略小 */
@media (max-width: 640px) {
  .rich-text-content { font-size: 15px; }
  .rich-text-content h1 { font-size: 1.5rem; }
  .rich-text-content h2 { font-size: 1.3rem; }
  .rich-text-content h3 { font-size: 1.15rem; }
}

/* ==========================================================================
   Modern 1.0.0 主题专属覆盖(参考 beikeshop 实测,2026-07-21 chrome-mcp 抓取)
   - 此处仅覆盖 default 不符合 beikeshop 设计语言的选择器
   - 颜色/字体/圆角等通过 :root CSS 变量(在 theme.liquid 注入)控制,无需在此重复
   - beikeshop 关键参数:
     * 强调色 #fd560f(.btn-primary 背景)
     * 字体 Jost 14.4px base / 48px H1-H2
     * 12px 图片容器圆角
     * 100px 按钮圆角(完全圆角)
     * 商品图 1:1 比例
     * hover 切换 image-before/image-after
   ========================================================================== */

/* ===== 全局基础(beikeshop 风格) ===== */
body {
  font-family: var(--font-body, "Jost", "Helvetica", "Arial", sans-serif);
  font-size: var(--font-size-base, 14.4px);
  line-height: 1.5;
  color: var(--color-text, #212529);
  background: var(--color-background, #ffffff);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading, "Jost", "Helvetica", "Arial", sans-serif);
  color: var(--color-text, #212529);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--font-size-h1, 48px); line-height: 1.15; }
h2 { font-size: var(--font-size-h2, 48px); line-height: 1.2; }
h3 { font-size: 24px; line-height: 1.3; }
h4 { font-size: 20px; line-height: 1.4; }
a { color: var(--color-text, #212529); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--color-accent, #fd560f); }

/* ===== 按钮(beikeshop 风格:100px 完全圆角 + 强调色主按钮) ===== */
.btn {
  border-radius: var(--border-radius-pill, 100px);
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: all 0.25s ease;
  font-family: var(--font-body, inherit);
}
.btn-primary {
  background: var(--color-accent, #fd560f);
  color: #fff;
  border: 1px solid var(--color-accent, #fd560f);
}
.btn-primary:hover {
  background: var(--color-accent-hover, #d13d1f);
  border-color: var(--color-accent-hover, #d13d1f);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(253, 86, 15, 0.25);
}
.btn-outline {
  background: transparent;
  color: var(--color-text, #212529);
  border: 1px solid var(--color-border, #e5e7eb);
}
.btn-outline:hover {
  background: var(--color-text, #212529);
  color: #fff;
  border-color: var(--color-text, #212529);
}
.btn-large {
  padding: 16px 40px;
  font-size: 15px;
}

/* ===== Section 通用(beikeshop 模块间距较大) ===== */
.section {
  padding: var(--section-spacing, 80px) 0;
}
.section-header {
  margin-bottom: 40px;
}
.section-title {
  font-size: var(--font-size-h2, 48px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--color-text-muted, #767676);
}

/* ===== 商品卡片(beikeshop 风格:12px 圆角 + hover 上浮) ===== */
.product-grid {
  gap: 24px;
}
.product-card {
  background: var(--color-background, #fff);
  border-radius: var(--border-radius, 12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
}
.product-image {
  aspect-ratio: 1 / 1;
  background: var(--color-background-alt, #f4f4f4);
  border-radius: var(--border-radius, 12px);
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.03);
}
/* hover 切换第二张图(beikeshop image-before/image-after 风格) */
.product-image-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.product-card:hover .product-image-hover {
  opacity: 1;
}
.product-card:hover .product-image > a > img:first-child {
  opacity: 0;
}

/* 折扣徽章(beikeshop 风格) */
.product-badge {
  background: var(--color-sale, #fd560f);
  color: #fff;
  border-radius: var(--border-radius-sm, 4px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 4px 10px;
  top: 12px;
  left: 12px;
  z-index: 2;
}

/* Wishlist 按钮(beikeshop 风格:白色圆形)——仅限商品卡片，详情页同名单选不受影响 */
.product-card .product-wishlist-btn {
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  top: 12px;
  right: 12px;
  z-index: 2;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.25s ease;
  color: var(--color-text, #212529);
}
.product-card:hover .product-wishlist-btn {
  opacity: 1;
  transform: translateY(0);
}
.product-card .product-wishlist-btn:hover {
  background: var(--color-accent, #fd560f);
  border-color: var(--color-accent, #fd560f);
  color: #fff;
}

/* Quick Add 按钮(beikeshop 风格:深色背景 + 100px 圆角) */
.quick-add-btn {
  background: var(--color-text, #212529);
  color: #fff;
  border: none;
  border-radius: var(--border-radius-pill, 100px);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  transition: all 0.25s ease;
  white-space: nowrap;
  z-index: 2;
}
.product-card:hover .quick-add-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.quick-add-btn:hover:not(:disabled) {
  background: var(--color-accent, #fd560f);
}
.quick-add-btn:disabled {
  background: var(--color-text-muted, #767676);
  cursor: not-allowed;
  opacity: 0.7;
}

/* 商品标题与价格(beikeshop 风格) */
.product-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text, #212529);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-info:hover .product-title {
  color: var(--color-accent, #fd560f);
}
.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--font-size-base, 14.4px);
}
.price-current {
  color: var(--color-text, #212529);
  font-weight: 600;
}
.price-compare {
  color: var(--color-text-muted, #767676);
  text-decoration: line-through;
  font-weight: 400;
  font-size: 13px;
}

/* 评分星级(beikeshop 风格:小尺寸 + 灰色) */
.product-card-rating {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.product-card-rating .stars {
  color: #f59e0b;
  display: inline-flex;
  gap: 1px;
}
.product-card-rating .rating-count {
  color: var(--color-text-muted, #767676);
  font-size: 12px;
}

/* ===== Header(beikeshop 风格:白色背景 + sticky 由 default 控制) =====
   default 已有 .header / .header--sticky / .header--auto-hide 样式,
   此处仅覆盖 beikeshop 风格的阴影/边框微调 */
.header {
  background: var(--color-background, #fff);
  border-bottom-color: var(--color-border, #e5e7eb);
}
.header--sticky {
  box-shadow: var(--shadow-sm);
}

/* ===== Footer(beikeshop 风格:#f4f4f4 浅灰背景 + 深色文字) =====
   default 的 .footer 使用 var(--color-bg-dark) 深色背景,beikeshop 改为浅灰 */
.footer {
  background: var(--color-background-alt, #f4f4f4);
  color: var(--color-text, #212529);
  padding: 64px 0 24px;
  margin-top: var(--section-spacing, 80px);
}
.footer-grid {
  border-bottom-color: var(--color-border, #e5e7eb);
}
.footer-col h3 {
  color: var(--color-text, #212529);
}
.footer-col a,
.footer a {
  color: var(--color-text, #212529);
}
.footer-col a:hover,
.footer a:hover {
  color: var(--color-accent, #fd560f);
}
.footer-service .icon-check {
  color: var(--color-accent, #fd560f);
}
.footer-bottom {
  border-top-color: var(--color-border, #e5e7eb);
}

/* ===== Hero / Slideshow(beikeshop 风格:60vh 高 + 40% overlay + 居中文案) =====
   default 已有 .hero / .hero-overlay / .hero-content / .hero-title 等样式,
   此处覆盖 beikeshop 实测参数:60vh 高度(非 560px 固定)、48px 标题、居中布局 */
.hero {
  height: var(--slideshow-height, 60vh);
  min-height: 480px;
  justify-content: center;
  text-align: center;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
}
.hero-subtitle {
  color: #fff;
  opacity: 0.9;
  letter-spacing: 2px;
}
.hero-title {
  font-size: var(--font-size-h1, 48px);
  letter-spacing: -0.01em;
}
.hero-actions {
  justify-content: center;
}

/* ===== 分类卡片(beikeshop 风格:12px 圆角) ===== */
.category-card {
  border-radius: var(--border-radius, 12px);
  aspect-ratio: 4 / 3;
}
.category-card img {
  border-radius: var(--border-radius, 12px);
}

/* ===== 表单输入(beikeshop 风格:4px 小圆角) ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select {
  border-radius: var(--border-radius-sm, 4px);
  border: 1px solid var(--color-border, #e5e7eb);
  padding: 12px 16px;
  font-size: var(--font-size-base, 14.4px);
  font-family: var(--font-body, inherit);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-accent, #fd560f);
  box-shadow: 0 0 0 3px rgba(253, 86, 15, 0.12);
}

/* ===== 面包屑(beikeshop 风格:小字号 + 浅色) =====
   default 已有 .breadcrumb / .breadcrumb a:hover / .breadcrumb span 样式,
   完全对齐 beikeshop 设计,无需额外覆盖 */

/* ===== 分页(beikeshop 风格:圆角按钮 + 当前页强调色背景) =====
   default 已有 .collection-pagination / .pagination-number / .active 样式,
   此处覆盖 beikeshop 风格的圆角与强调色 */
.collection-pagination {
  gap: 8px;
  border-top-color: var(--color-border, #e5e7eb);
}
.pagination-number,
.pagination-prev,
.pagination-next {
  border-radius: var(--border-radius-sm, 4px);
  border-color: var(--color-border, #e5e7eb);
  color: var(--color-text, #212529);
  transition: all 0.2s ease;
}
.pagination-number:hover,
.pagination-prev:hover,
.pagination-next:hover {
  border-color: var(--color-accent, #fd560f);
  color: var(--color-accent, #fd560f);
}
.pagination-number.active {
  background: var(--color-accent, #fd560f);
  color: #fff;
  border-color: var(--color-accent, #fd560f);
}

/* ===== Newsletter 订阅(beikeshop 风格:浅灰背景 + 深色文字 + pill 圆角) =====
   default 已有 .subscribe-section(深色背景 var(--color-bg-dark)) / .subscribe-form 样式,
   此处覆盖 beikeshop 风格:浅灰背景 + 深色文字 + pill 圆角输入框/按钮 */
.subscribe-section {
  background: var(--color-background-alt, #f4f4f4);
  color: var(--color-text, #212529);
  padding: var(--section-spacing, 80px) 0;
  text-align: center;
}
.subscribe-section h2 {
  font-size: var(--font-size-h2, 48px);
  color: var(--color-text, #212529);
}
.subscribe-section p {
  color: var(--color-text-muted, #767676);
}
.subscribe-form {
  gap: 8px;
}
.subscribe-form input {
  border-radius: var(--border-radius-pill, 100px);
  padding: 14px 24px;
  border: 1px solid var(--color-border, #e5e7eb);
  background: var(--color-background, #fff);
  color: var(--color-text, #212529);
}
.subscribe-form button {
  border-radius: var(--border-radius-pill, 100px);
  padding: 14px 30px;
  white-space: nowrap;
  background: var(--color-accent, #fd560f);
  color: #fff;
  text-transform: none;
  letter-spacing: 0.02em;
}
.subscribe-form button:hover {
  background: var(--color-accent-hover, #d13d1f);
}

/* ===== 公告栏(beikeshop 风格:深色背景) =====
   default 已有 .announcement-bar(深色背景 var(--color-bg-dark) + #fff 文字 + 居中),
   完全对齐 beikeshop 设计,无需额外覆盖 */

/* ===== 容器宽度(beikeshop container-fluid 风格,但保留 page_width 上限) ===== */
.container,
.page-width {
  max-width: var(--page-width, 1280px);
  margin: 0 auto;
  padding: 0 var(--container-padding, 24px);
}

/* ===== 移动端响应式补丁(beikeshop 风格) ===== */
@media (max-width: 768px) {
  .section {
    padding: calc(var(--section-spacing, 80px) * 0.6) 0;
  }
  .section-title {
    font-size: 32px;
  }
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  .hero-content h1,
  .hero-content h2 {
    font-size: 32px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .product-title {
    font-size: 13px;
  }
  .subscribe-form {
    flex-direction: column;
    gap: 12px;
  }
  .subscribe-form input,
  .subscribe-form button {
    width: 100%;
  }
}

/* ===== 商品详情页(beikeshop 风格:主图无圆角/无背景 + H1 字重 600 + 缩略图选中强调色) =====
   default 已有 .product-detail / .product-gallery-main / .product-info h1 / .gallery-thumb 等样式,
   此处覆盖 beikeshop 实测参数:
   - 主图容器无圆角(default 4px)、无背景色(default #f4f4f4)
   - 主图 img 无圆角(default inherit)
   - 缩略图选中边框用强调色 #fd560f(default 用 --color-text 深色)
   - H1 字重 600(default 700)、字距 normal(default -0.32px) */
.product-gallery-main {
  border-radius: 0;
  background: transparent;
}
.product-gallery-main img {
  border-radius: 0;
}
.gallery-thumb {
  border-radius: 0;
  border: 2px solid transparent;
}
.gallery-thumb.active {
  border-color: var(--color-accent, #fd560f);
}
.product-info h1 {
  font-weight: 600;
  letter-spacing: normal;
}
/* 选项按钮选中态:beikeshop 用强调色边框(default 用 --color-text 深色背景反白)
   注意:用 :not(.product-option-swatch) 排除色块,色块保留 --swatch-color 背景 */
.product-option-value[aria-pressed="true"]:not(.product-option-swatch) {
  border-color: var(--color-accent, #fd560f);
  background: var(--color-bg, #fff);
  color: var(--color-accent, #fd560f);
}
/* 色块选中态:仅强调色边框 + 环,保留 swatch-color 背景 */
.product-option-swatch[aria-pressed="true"] {
  border-color: var(--color-accent, #fd560f);
  box-shadow: 0 0 0 2px var(--color-accent, #fd560f);
}
/* 数量选择器边框用深色(beikeshop 风格) */
.quantity-selector {
  border-color: var(--color-text, #212529);
}

/* ===== Modern 主题专属覆盖结束 ===== */

/* ===== BeikeShop Demo 覆盖样式(2026-07-22)===== */

/* ---------- 1. 全局覆盖 ---------- */
/* body 字体和字号对齐 beikeshop */
body { font-family: var(--font-body); font-size: var(--font-size-base); color: var(--color-text); line-height: 1.5; }
/* .container / .container-fluid 已由 .ms-container 替代,不再保留 Bootstrap 命名 */
/* Bootstrap 按钮(.btn-primary/.btn-outline-dark/.btn-light.rounded-pill)已由 .ms-btn 系列 BEM class 替代 */

/* ---------- 3. 商品卡覆盖(beikeshop hover 换图 + 价格对比) ---------- */
/* 商品卡容器 */
.product-item { position: relative; }
/* 商品图片区:1:1 比例,overflow hidden */
.product-image { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; border-radius: var(--border-radius); }
/* image-before 默认显示 */
.product-image .image-before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; transition: opacity 0.3s ease; }
/* image-after 默认隐藏 */
.product-image .image-after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s ease; }
/* hover 时切换 */
.product-item:hover .image-before { opacity: 0; }
.product-item:hover .image-after { opacity: 1; }
/* 商品标题:2 行截断 */
.product-info .product-title { font-size: var(--font-size-base); font-weight: 400; color: var(--color-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0 4px; line-height: 1.4; }
/* 价格:flex,baseline 对齐 */
.product-price { display: flex; align-items: baseline; gap: 4px; }
/* 新价:橙色 16px 700 */
.product-price .price-new { color: var(--color-accent); font-size: 16px; font-weight: 700; }
/* 旧价:灰色 14.4px 划线 */
.product-price .price-old { color: #aaa; font-size: var(--font-size-base); font-weight: 400; text-decoration: line-through; }
/* beikeshop 商品卡无 wishlist/quick-add 按钮,hover 隐藏(仅限商品卡片,详情页不受影响) */
.product-card .product-wishlist-btn, .product-card .quick-add-btn { display: none; }
/* 折扣徽章隐藏(beikeshop 无此元素) */
.product-badge { display: none; }
/* 评分隐藏(beikeshop 商品卡无评分) */
.product-card-rating { display: none; }

/* ---------- 4. Section 标题样式 ---------- */
/* beikeshop section 标题:居中,700 */
.section-title { font-size: 24px; font-weight: 700; color: var(--color-text); text-align: center; margin-bottom: 8px; }
.section-subtitle { font-size: var(--font-size-base); color: var(--color-text-muted); text-align: center; margin-bottom: 32px; }

/* Bootstrap 兼容层已删除:所有 .container/.row/.col-*/.d-*/.flex-*/.justify-content-*/.align-items-*/.mx-*/.my-*/.me-*/.mb-*/.px-*/.fw-*/.text-*/.lh-*/.list-unstyled/.img-fluid/.visually-hidden/.navbar-*/.nav-*/.dropdown-*/.card/.card-body/.btn/.nav/.rounded-*/.fs-* 等 utility class 全部不再支持 */
/* 所有 Bootstrap 命名样式改由 ms- 前缀 BEM class 实现,详见文件末尾 "Modern 主题自定义 class 样式" 段 */
/* Header/Footer Bootstrap 命名覆盖已删除:.top-wrap/.header-content/.header-icons/.footer/.services-wrap/.footer-content/.footer-bottom 等样式已由 ms- BEM class 实现,详见文件末尾 "Modern 主题自定义 class 样式" 段 */

/* ---------- 7. 首页 Section 覆盖 ---------- */
/* 滚动公告 */
.module-swiper-img-scroll-text-2 { background: #fff; color: #333; font-size: 14px; padding: 20px 0; overflow: hidden; }
.module-swiper-img-scroll-text-2 .scroll-info { display: flex; white-space: nowrap; animation: scrollText 20s linear infinite; }
.module-swiper-img-scroll-text-2 .scroll-text { padding-right: 40px; }
@keyframes scrollText { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Slideshow 全宽 */
.slideshow, .hero-swiper { width: 100%; position: relative; }
.slideshow .swiper-slide { position: relative; }
.slideshow .slide-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; z-index: 2; }
.slideshow .slide-content h2 { color: #fff; font-size: 14.4px; font-weight: 700; }

/* Top Collections 圆形分类卡 */
.top-collections, .home-categories { padding: var(--section-spacing) 0; }
.top-collections .row, .home-categories .category-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.top-collections .collection-card, .home-categories .category-card { text-align: center; }
.top-collections .collection-image, .home-categories .category-image { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 8px; }
.top-collections .collection-name, .home-categories .category-name { font-size: 14px; font-weight: 600; }

/* Fashion Items Tab 商品网格 */
.fashion-items, .featured-collection { padding: var(--section-spacing) 0; }
.fashion-items .nav-tabs, .featured-collection .tabs { display: flex; justify-content: center; gap: 24px; border: none; margin-bottom: 32px; }
.fashion-items .nav-link, .featured-collection .tab { padding: 8px 16px; font-weight: 600; color: var(--color-text-muted); border: none; background: none; cursor: pointer; }
.fashion-items .nav-link.active, .featured-collection .tab.active { color: var(--color-accent); border-bottom: 2px solid var(--color-accent); }

/* 商品网格 */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 768px) {
  .product-grid,
  .product-grid[data-columns="2"],
  .product-grid[data-columns="3"],
  .product-grid[data-columns="4"] { grid-template-columns: repeat(2, 1fr); }
}

/* 双 Banner */
.banner-grid, .image-banner { padding: var(--section-spacing) 0; }
.banner-grid .row { display: flex; gap: 20px; }
.banner-card { position: relative; display: block; border-radius: var(--border-radius); overflow: hidden; }
.banner-card img { width: 100%; height: auto; }
.banner-card .banner-content { position: absolute; top: 50%; left: 24px; transform: translateY(-50%); }

/* Holiday Specials */
.holiday-specials, .brand-story { padding: var(--section-spacing) 0; }

/* Flash Sale 文案区 */
.flash-sale-banner, .rich-text { padding: var(--section-spacing) 0; text-align: center; }
.flash-sale-banner h2, .rich-text h2 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }

/* 品牌墙 */
.brands-wall { padding: var(--section-spacing) 0; }
.brands-wall .row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.brands-wall .brand-card { text-align: center; }
.brands-wall .brand-card img { width: 100px; height: 100px; object-fit: contain; margin: 0 auto 8px; }
.brands-wall .brand-name { font-size: 14px; font-weight: 600; }

/* 博客文章 */
.blog-feed { padding: var(--section-spacing) 0; }
.blog-feed .row { display: flex; flex-wrap: wrap; gap: 24px; }
.blog-feed .blog-card { text-align: left; }
.blog-feed .blog-image { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--border-radius); margin-bottom: 12px; }
.blog-feed .blog-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-feed .blog-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.blog-feed .blog-summary { font-size: 13px; color: var(--color-text-muted); }

/* ---------- 8. 价格组件覆盖(全局) ---------- */
/* 兼容旧 price-current/price-compare 到新 price-new/price-old */
.price-current { color: var(--color-accent); font-size: 16px; font-weight: 700; }
.price-compare { color: #aaa; font-size: var(--font-size-base); font-weight: 400; text-decoration: line-through; }

/* ==========================================================================
   Modern 主题自定义 class 样式(ms- 前缀 BEM 风格)
   100% 自写,不使用任何 Bootstrap utility class,对齐 BeikeShop demo 设计规范
   强调色 #fd560f / Jost 字体 / 14.4px base / 按钮 160px border-radius
   ========================================================================== */

/* ---------- ms-container:通用居中限宽容器(替代 .container/.container-fluid) ---------- */
.ms-container {
  width: 100%;
  max-width: var(--container-width, 1280px);
  padding: 0 var(--container-padding, 24px);
  margin: 0 auto;
}

/* 2026-08-15 修复:移动端容器左右 padding 过大(店铺配置 container_padding=50px 桌面合理, 375px 屏内容被压缩到 275px)。
   cart 页 .container 固定 16px 正常, 此处统一 .ms-container/.container/.page-width 为 16px 与 cart 对齐。
   注:必须定义在 .ms-container 基础规则之后(CSS 覆盖顺序), 否则基础规则 50px 会覆盖此处 16px */
@media (max-width: 768px) {
  .ms-container,
  .container,
  .page-width {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ---------- ms-visually-hidden:视觉隐藏,屏幕阅读器可读 ---------- */
.ms-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  clip-path: inset(50%) !important;
}

/* ---------- ms-icon:通用 SVG 图标基类 ---------- */
.ms-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   §3 Header(对齐 BeikeShop: top-wrap 36px + header-content + mobile-header)
   position: static(初始不固定,滚动后通过 JS 给 .ms-header__main 添加 .is-fixed)
   ========================================================================== */
.ms-header {
  position: static;
  background: #fff;
  display: block;
}

/* 滚动后 .ms-header__main 变为 fixed(对齐 BeikeShop header-content.fixed 行为) */
.ms-header__main {
  background: #fff;
  transition: box-shadow 0.25s ease;
}
.ms-header__main.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ---------- §3.1 Topbar:浅灰背景 #f7f8fa,36px 高,无边框 ---------- */
.ms-topbar {
  background: #f7f8fa;
  display: none;
}
@media (min-width: 992px) {
  .ms-topbar { display: block; }
}
.ms-topbar__inner {
  max-width: var(--container-width, 1280px);
  padding: 0 var(--container-padding, 24px);
  margin: 0 auto;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.6px;
  color: var(--color-text);
}
.ms-topbar__left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ms-topbar__right {
  display: flex;
  align-items: center;
}
.ms-topbar__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ms-topbar__phone-icon {
  color: var(--color-text-muted);
}
.ms-topbar__select {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13.6px;
  font-weight: 400;
  color: var(--color-text);
  cursor: pointer;
  padding: 7.36px 12px 7.36px 0;
  border-radius: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23212529' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 20px;
}
.ms-topbar__select:hover {
  color: var(--color-accent);
}
.ms-topbar__select:focus {
  color: var(--color-accent);
}

/* ---------- §3.2 主导航(桌面端可见,移动端隐藏) ---------- */
.ms-header__main {
  padding: 16px 0;
  display: none;
}
@media (min-width: 992px) {
  .ms-header__main { display: block; }
}
.ms-header__inner {
  max-width: var(--container-width, 1280px);
  padding: 0 var(--container-padding, 24px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ms-header__logo {
  flex-shrink: 0;
}
.ms-header__logo a {
  display: inline-block;
}
.ms-header__logo-img {
  max-height: 50px;
  width: auto;
  height: auto;
  display: block;
}
.ms-header__logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-body);
}
.ms-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.ms-nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.ms-nav__item {
  position: relative;
}
.ms-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  padding: 16px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.ms-nav__link:hover,
.ms-nav__link:focus {
  color: var(--color-accent);
}
/* 1155~1400px 视口导航+logo+操作区超宽时收窄链接内边距，保持单行且无横向溢出 */
@media (max-width: 1400px) {
  .ms-nav__link {
    padding: 16px 8px;
  }
}
/* 992~1240px 视口即使收窄内边距仍超宽时，允许头部换行（操作区落到第二行），
   彻底消除横向滚动条 */
@media (max-width: 1240px) {
  .ms-header__inner {
    flex-wrap: wrap;
  }
}
.ms-nav__link--simple {
  white-space: nowrap;
}
.ms-nav__link-icon {
  transition: transform 0.2s ease;
}
.ms-nav__item:hover .ms-nav__link-icon {
  transform: rotate(180deg);
}

/* Nav badge (对齐 BeikeShop .badge: 12px/400, padding 2px 4px, border-radius 8px) */
.ms-nav__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 8px;
  color: #fff;
  margin-left: 4px;
}
.ms-nav__badge--new { background: #7628A2; }
.ms-nav__badge--hot { background: #FF4D00; }
.ms-nav__badge--sales { background: #00C5C5; }

/* Mega menu (对齐 BeikeShop: min-width 720px, padding 8px 0, border-radius 8px) */
.ms-nav__mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 720px;
  background: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  z-index: 1000;
}
.ms-nav__item:hover .ms-nav__mega,
.ms-nav__item:focus-within .ms-nav__mega {
  display: block;
}
.ms-nav__mega-card {
  background: #fff;
  border: none;
  border-radius: 11.2px;
}
.ms-nav__mega-card-body {
  padding: 16px;
}
.ms-nav__mega-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.ms-nav__mega-col {
  flex: 1 1 33.333%;
  min-width: 200px;
  padding: 0 12px;
}
.ms-nav__mega-col--image {
  flex: 1 1 33.333%;
}
.ms-nav__mega-group-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
}
.ms-nav__mega-sublist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ms-nav__mega-subitem {
  margin: 0;
}
.ms-nav__mega-sublink {
  display: block;
  font-size: 14.4px;
  font-weight: 400;
  color: #7a7a7a;
  padding: 8px 0;
  text-decoration: none;
  transition: color 0.2s ease;
}
.ms-nav__mega-sublink:hover {
  color: var(--color-accent);
}
.ms-nav__mega-image-link {
  display: block;
  text-decoration: none;
}
.ms-nav__mega-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

/* Header actions */
.ms-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  /* 换行场景下将操作区推到行尾，保持右侧对齐 */
  margin-left: auto;
}
.ms-header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-text);
  padding: 8px;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  transition: color 0.2s ease;
}
.ms-header__action:hover,
.ms-header__action:focus {
  color: var(--color-accent);
}

/* User menu dropdown */
.user-menu {
  position: relative;
}
.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14.4px;
  list-style: none;
}
.user-menu-trigger::-webkit-details-marker {
  display: none;
}
.user-menu-trigger summary {
  list-style: none;
}
.user-menu-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: var(--border-radius, 8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  z-index: 1000;
}
.user-menu-item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  font-size: 14.4px;
  color: var(--color-text);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}
.user-menu-item:hover {
  background: #f7f8fa;
  color: var(--color-accent);
}

/* Cart badge */
.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
.cart-badge[hidden] {
  display: none;
}

/* ---------- §3.3 Mobile Header(移动端可见,桌面端隐藏) ---------- */
.ms-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
}
@media (min-width: 992px) {
  .ms-mobile-header { display: none; }
}
@media (max-width: 991px) {
  .ms-header__nav { display: none; }
}
.ms-mobile-header__toggle {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ms-mobile-header__logo {
  flex: 1;
  text-align: center;
}
.ms-mobile-header__logo-img {
  max-height: 40px;
  width: auto;
  margin: 0 auto;
}
.ms-mobile-header__logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-body);
}
.ms-mobile-header__cart {
  position: relative;
  padding: 8px;
  color: var(--color-text);
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.mobile-drawer[hidden] {
  display: none;
}
.mobile-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.mobile-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background: #fff;
  padding: 16px;
  overflow-y: auto;
  animation: msDrawerIn 0.25s ease;
}
@keyframes msDrawerIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border, #e5e5e5);
  margin-bottom: 16px;
}
.mobile-drawer-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-body);
}
.mobile-drawer-close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--color-text);
}
.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-drawer-link {
  display: block;
  padding: 8px 0;
  font-size: 15px;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}
.mobile-drawer-section {
  padding: 8px 0;
}
.mobile-drawer-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 0;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}
.mobile-drawer-section-title {
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
}
.mobile-drawer-section-content {
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-drawer-sublink {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
}
.mobile-drawer-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}
.mobile-drawer-switcher-item {
  display: inline-block;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--border-radius-sm, 4px);
  background: #fff;
  transition: all 0.15s ease;
}
.mobile-drawer-switcher-item:hover {
  border-color: var(--color-accent, #fd560f);
  color: var(--color-accent, #fd560f);
}
.mobile-drawer-switcher-item--active {
  background: var(--color-accent, #fd560f);
  color: #fff;
  border-color: var(--color-accent, #fd560f);
}

/* Search panel */
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  padding: 40px 24px;
  overflow-y: auto;
}
.search-panel[hidden] {
  display: none;
}
.search-panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-text);
  font-size: 14px;
}
.search-panel-inner {
  max-width: 800px;
  margin: 0 auto;
}
.predictive-search {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid var(--color-accent);
  border-radius: 160px;
  overflow: hidden;
  background: #fff;
}
.predictive-search-input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  font-size: 16px;
  font-family: var(--font-body);
  background: transparent;
  outline: none;
  min-width: 0;
}
.predictive-search-submit {
  padding: 12px 20px;
  background: var(--color-accent);
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.predictive-search-submit:hover {
  background: var(--color-accent-hover);
}
.predictive-search-panel {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: 8px;
  padding: 16px;
}
.predictive-search-panel[hidden] {
  display: none;
}
.predictive-search-recent[hidden],
.predictive-search-loading[hidden],
.predictive-search-empty[hidden],
.predictive-search-footer[hidden] {
  display: none;
}
.predictive-search-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.predictive-search-recent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.predictive-search-recent-clear {
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  font-size: 12px;
}
.predictive-search-recent-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.predictive-search-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 16px;
  color: var(--color-text-muted);
  font-size: 13px;
}
.predictive-search-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e5e5e5;
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: msSpin 0.6s linear infinite;
}
@keyframes msSpin {
  to { transform: rotate(360deg); }
}
.predictive-search-empty {
  text-align: center;
  padding: 16px;
  color: var(--color-text-muted);
  font-size: 13px;
}
.predictive-search-footer {
  margin-top: 12px;
  text-align: center;
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
}
.predictive-search-view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  font-size: 14px;
}
.search-panel-tags {
  margin-top: 32px;
  text-align: center;
}
.search-panel-tags strong {
  font-size: 14px;
  color: var(--color-text);
}
.search-panel-tags-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.search-panel-tag {
  display: inline-block;
  padding: 6px 16px;
  background: #f7f8fa;
  border: 1px solid #e5e5e5;
  border-radius: 160px;
  font-size: 13px;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.2s ease;
}
.search-panel-tag:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ==========================================================================
   §4 Footer(对齐 BeikeShop: services-wrap + footer-content + footer-bottom)
   ========================================================================== */
.ms-footer {
  background: #f4f4f4;
}

/* ---------- §4.1 服务图标区(4 列) ---------- */
.ms-footer__services {
  padding: 32px 0;
  border-bottom: 1px solid #e5e5e5;
  background: #f4f4f4;
}
.ms-footer__services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ms-footer__service-col {
  min-width: 0;
}
.ms-footer__service {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}
.ms-footer__service-icon {
  flex-shrink: 0;
  color: var(--color-accent);
}
.ms-footer__service-text {
  flex: 1;
}
.ms-footer__service-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 4px;
  font-family: var(--font-body);
  white-space: nowrap;
}
.ms-footer__service-sub {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 1024px) {
  .ms-footer__services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .ms-footer__services-grid {
    grid-template-columns: 1fr;
  }
  /* 移动端页脚列自适应：intro 列固定 280px 在窄屏(≤320px)会溢出内容区，
     改为占满整行换行；其余列 flex-basis 收缩到内容区宽度内 */
  .ms-footer__col {
    flex: 1 1 100%;
    min-width: 0;
  }
  .ms-footer__col--intro,
  .ms-footer__col--contact {
    flex: 1 1 100%;
  }
  .ms-footer__main-grid {
    gap: 24px 16px;
  }
}

/* ---------- §4.2 页脚内容(5 列布局) ---------- */
.ms-footer__main {
  padding: 48px 0;
}
.ms-footer__main-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.ms-footer__col {
  flex: 1 1 200px;
  min-width: 180px;
}
.ms-footer__col--intro {
  flex: 0 0 280px;
}
.ms-footer__col--contact {
  flex: 0 0 220px;
}
.ms-footer__col-title {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0 0 16px;
  padding-bottom: 8px;
  font-family: var(--font-body);
}
.ms-footer__col-title--intro {
  border-bottom: 1px solid #e5e5e5;
}
.ms-footer__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ms-footer__logo {
  margin-bottom: 4px;
}
.ms-footer__logo-img {
  max-height: 50px;
  width: auto;
  display: block;
}
.ms-footer__logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-body);
}
.ms-footer__intro-text {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.ms-footer__subscribe {
  display: flex;
  gap: 0;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}
.ms-footer__subscribe-input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  font-size: 13px;
  font-family: var(--font-body);
  background: transparent;
  outline: none;
  min-width: 0;
}
.ms-footer__subscribe-btn {
  padding: 8px 16px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.ms-footer__subscribe-btn:hover {
  background: var(--color-accent-hover);
}
.ms-footer__subscribe-msg {
  font-size: 12px;
  margin-top: 4px;
}
.ms-footer__subscribe-msg[hidden] {
  display: none;
}
.ms-footer__social {
  display: flex;
  gap: 8px;
}
.ms-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 50%;
  color: var(--color-text);
  transition: all 0.2s ease;
}
.ms-footer__social-link:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.ms-footer__linklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ms-footer__linklist-item {
  margin: 0;
  line-height: 2;
}
.ms-footer__linklist-item a {
  font-size: 13.6px;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.ms-footer__linklist-item a:hover {
  color: var(--color-accent);
}

/* ---------- §4.3 页脚底部(Powered By + 支付图标) ---------- */
.ms-footer__bottom {
  padding: 16px 0;
  border-top: 1px solid #e6e3dc;
  background: transparent;
}
.ms-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.ms-footer__copyright {
  font-size: 13px;
  color: var(--color-text-muted);
}
.ms-footer__copyright a {
  color: var(--color-accent);
  text-decoration: none;
}
.ms-footer__copyright a:hover {
  text-decoration: underline;
}
.ms-footer__payments {
  display: flex;
}
.ms-footer__payments-list {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ms-footer__payment-icon {
  height: 24px;
  width: auto;
  display: inline-block;
}

/* ==========================================================================
   §5.1 首页 Section 间距覆盖(对齐 BeikeShop module-item 32px padding)
   BeikeShop 各 module 上下 padding 为 32px,非默认主题的 64px
   ========================================================================== */
.home-collections-section,
.featured-tabs-section,
.holiday-section,
.brands-wall-section,
.blog-feed-section { padding: 32px 0; }
.image-banner-section { padding: 32px 0; }
.flash-sale-section { padding: 32px 0; }

/* ==========================================================================
   §6 ms-product-card:商品卡片(对齐 BeikeShop product-wrap 结构)
   无圆角图片 / 白色背景 / hover 切换第二张图 / 标题粗体
   ========================================================================== */
.ms-product-card {
  position: relative;
  background: #fff;
}
.ms-product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0;
}
.ms-product-card__media a {
  display: block;
  width: 100%;
  height: 100%;
}
.ms-product-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.ms-product-card__image--hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ms-product-card:hover .ms-product-card__image { opacity: 0; }
.ms-product-card:hover .ms-product-card__image--hover { opacity: 1; }

.ms-product-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  color: var(--color-text-muted);
  font-size: 14px;
}

.ms-product-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 4px;
}
.ms-product-card__badge--discount {
  background: var(--color-accent);
}

.ms-product-card__wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.25s ease;
}
.ms-product-card:hover .ms-product-card__wishlist { display: flex; }
.ms-product-card__wishlist:hover {
  background: #fff;
  color: var(--color-accent);
}
.ms-product-card__wishlist.active {
  color: var(--color-accent);
}
.ms-product-card__wishlist.active svg {
  fill: var(--color-accent);
}

.ms-product-card__quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: none;
  padding: 8px 12px;
  border: none;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13.6px;
  font-weight: 400;
  cursor: pointer;
  text-align: center;
  transition: background 0.25s ease;
}
.ms-product-card:hover .ms-product-card__quick-add { display: block; }
.ms-product-card__quick-add:hover:not(:disabled) {
  background: var(--color-accent-hover);
}
.ms-product-card__quick-add:disabled,
.ms-product-card__quick-add[aria-disabled="true"] {
  background: #ccc;
  cursor: not-allowed;
}
.ms-product-card__quick-add:disabled:hover,
.ms-product-card__quick-add[aria-disabled="true"]:hover {
  background: #ccc;
}

.ms-product-card__body {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-top: 0;
}
.ms-product-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 4px;
  line-height: 1.5;
  text-decoration: none;
}
.ms-product-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.ms-product-card__stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #f5a623;
}
.ms-product-card__rating-count {
  font-size: 12px;
  color: var(--color-text-muted);
}
.ms-product-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.ms-product-card__price-current {
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 700;
}
.ms-product-card__price-original {
  color: #aaa;
  font-size: var(--font-size-base);
  font-weight: 400;
  text-decoration: line-through;
}

/* ==========================================================================
   §5 ms-btn:通用按钮(对齐 BeikeShop 胶囊形按钮)
   160px border-radius / 7.36px 12px padding / 13.6px font-size
   ========================================================================== */
.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13.6px;
  font-weight: 400;
  line-height: 1.5;
  padding: 7.36px 12px;
  border: 1px solid transparent;
  border-radius: 160px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  transition: all 0.25s ease;
}
.ms-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.ms-btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.ms-btn--primary:hover,
.ms-btn--primary:focus {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}
.ms-btn--outline {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}
.ms-btn--outline:hover,
.ms-btn--outline:focus {
  background: var(--color-text);
  color: #fff;
}
.ms-btn--secondary {
  background: #f7f8fa;
  border-color: #e5e5e5;
  color: var(--color-text);
}
.ms-btn--secondary:hover,
.ms-btn--secondary:focus {
  background: #e9ecef;
  border-color: #d0d5da;
}
.ms-btn--text {
  background: transparent;
  border-color: transparent;
  color: var(--color-accent);
  padding: 4px 8px;
}
.ms-btn--text:hover,
.ms-btn--text:focus {
  color: var(--color-accent-hover);
  text-decoration: underline;
}
.ms-btn--social {
  background: #fff;
  border-color: #e5e5e5;
  color: var(--color-text);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}
.ms-btn--social:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.ms-btn--sm {
  font-size: 12px;
  padding: 4px 10px;
}
.ms-btn--large {
  font-size: 16px;
  padding: 10px 20px;
}

/* ==========================================================================
   §6 Product 详情页自定义 class(替代 Bootstrap text-muted/nav-tabs 等)
   ========================================================================== */
.product-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border, #e5e5e5);
  margin-bottom: 24px;
  gap: 0;
  flex-wrap: wrap;
}
.product-tabs__tab {
  padding: 12px 24px;
  font-size: 14.4px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: -1px;
  font-family: var(--font-body);
}
.product-tabs__tab:hover {
  color: var(--color-accent);
}
.product-tabs__tab.is-active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.stock-status {
  font-size: 13.6px;
  font-weight: 600;
}
.stock-status--in {
  color: #28a745;
}
.stock-status--out {
  color: #dc3545;
}

/* ==========================================================================
   §7 Blog / Article 页面自定义 class
   ========================================================================== */
.post-item-image-img {
  width: 100%;
  height: auto;
  display: block;
}
.article-detail-image-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   §8 兼容:默认主题遗留 .container(保留兜底,不删除)
   注:modern 主题 .liquid 已全部改用 .ms-container,此处保留仅用于默认主题兜底
   ========================================================================== */


