/* ============================================================================
   现代化金蓝浅色主题 - 商城 UI 升级 v3.0
   ============================================================================
   设计理念：清新大方、卡片式布局、大图标、现代化渐变
   色系：蓝色系（#C8A24B 为主色）
   手机优化：常用功能双排显示、搜索栏仅显示放大镜图标
   ============================================================================ */

:root {
  /* 颜色变量 */
  --bg: #f6f5f1;
  --card: #ffffff;
  --text: #1a2332;
  --text-secondary: #5a6b7d;
  --text-muted: #8a96a6;
  --line: #ecd9b8;
  --brand: #C8A24B;
  --brand-light: #F7EFDC;
  --brand-dark: #1A364D;
  --brand-gradient: linear-gradient(135deg, #1A364D 0%, #C8A24B 100%);
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(200, 162, 75, 0.10);
  --shadow-lg: 0 8px 24px rgba(200, 162, 75, 0.14);
  --shadow-xl: 0 12px 32px rgba(200, 162, 75, 0.18);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
}

/* ============================================================================
   基础样式
   ============================================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

/* 标准 sticky-footer 根节点：
   - html 锁高+裁横向 = 唯一滚动容器在 viewport
   - body 用 min-height + flex column，footer 自动贴底，body 自身永不成为滚动容器
   - 任何内层都不应出现独立滚动条 */
html {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;       /* 显式归一：滚动只在 viewport */
}
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;      /* 显式声明：body 自身不滚 */
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* .app-container：用 flex:1 让中间内容区自动填满，footer 始终贴底，
   自身禁止任何滚动条（min-height 仅做占位、绝不产生 overflow） */
.app-container {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 14px;
  overflow: visible;
}

/* footer 始终贴底（margin-top:auto 在 flex column 中 = 推到底） */
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  margin-top: 0;
  padding-top: 0;
}

/* ============================================================================
   导航栏 - 顶部应用栏
   ============================================================================ */

.appbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-gradient);
  color: #fff;
  padding: var(--spacing-md) var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.appbar .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  gap: var(--spacing-md);
}

.app-title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50vw;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

/* 图标按钮 */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.badge {
  position: relative;
}

.badge .dot {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: var(--shadow-md);
}

/* 搜索栏 */
.searchbar {
  margin-top: var(--spacing-md);
  display: flex;
  gap: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.searchbar input {
  flex: 1;
  height: 44px;
  border-radius: 0;
  border: none;
  padding: 0 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.97);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 0;
}

.searchbar input::placeholder {
  color: #94a3b8;
}

.searchbar input:focus {
  background: #fff;
}

.searchbar button {
  height: 44px;
  min-width: 80px;
  border-radius: 0;
  border: none;
  background: #fff;
  color: var(--brand);
  padding: 0 20px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.searchbar button:hover {
  background: var(--brand);
  color: #fff;
}

.searchbar button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ============================================================================
   头部搜索面板（桌面端：放大镜展开，移动端：直接显示搜索栏）
   ============================================================================ */
.header-search-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 560px;
  padding: 12px;
  background: #fff;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .20);
  z-index: 99;
}

.header-search-panel.is-open {
  display: block;
}

#header-search-trigger.is-active {
  background: rgba(255, 255, 255, .25);
  transform: translateY(-2px);
}

.searchbar-popup {
  display: flex;
  margin: 0;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  border: 1px solid #e2e8f0;
}

.searchbar-popup input {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 0;
  padding: 0 14px;
  font-size: 14px;
  background: #f8fafc;
  color: var(--text);
  outline: none;
  min-width: 0;
}

.searchbar-popup input::placeholder {
  color: #94a3b8;
}

.searchbar-popup input:focus {
  background: #fff;
}

.header-search-submit,
.header-search-close {
  width: 48px;
  height: 44px;
  border: none;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
  transition: background .15s, color .15s;
}

.header-search-close {
  color: #94a3b8;
  border-left: 1px solid #e2e8f0;
}

.header-search-submit:hover {
  color: var(--brand-dark);
  background: #f8fafc;
}

.header-search-close:hover {
  color: #64748b;
  background: #f8fafc;
}

.header-search-submit svg,
.header-search-close svg {
  width: 20px;
  height: 20px;
}

.header-search-hot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0 4px;
  font-size: 12px;
  color: #64748b;
}

.header-search-hot a {
  color: #475569;
  text-decoration: none;
  padding: 3px 8px;
  background: #f1f5f9;
  border-radius: 4px;
  transition: all .15s;
  font-size: 12px;
}

.header-search-hot a:hover {
  background: #e2e8f0;
  color: var(--brand);
}

@media (max-width: 860px) {
  #header-search-trigger {
    display: none !important;
  }
  .header-search-panel {
    display: block !important;
    position: static;
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    left: auto;
    margin-top: var(--spacing-md);
  }
  .header-search-panel.is-open {
    display: block !important;
  }
  .header-search-box {
    margin-left: -14px;
    margin-right: -14px;
    padding: 0 14px;
  }
  .searchbar-popup {
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  }
  .searchbar-popup input {
    height: 40px;
    background: #fff;
  }
  .header-search-submit,
  .header-search-close {
    height: 40px;
    width: 44px;
  }
  .header-search-hot {
    display: none;
  }
  .header-search-close {
    display: none;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.card.p {
  padding: var(--spacing-lg);
}

/* ============================================================================
   分区标题
   ============================================================================ */

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 24px 0 14px;
  padding-bottom: 12px;
}
/* 标题三栏布局：左(占位)/中(标题+副标题)/右(更多链接)。默认标题居左、链接靠右；居中模式见下方 .home-block--title-center */
.section-head-left  { flex: 0 1 auto; min-width: 0; }
.section-head-center{ flex: 1 1 auto; min-width: 0; text-align: left; }
.section-head-right { flex: 0 0 auto; text-align: right; padding-bottom: 2px; }
.section-head-center .section-subtitle { text-align: inherit; margin-top: 6px; margin-bottom: 0; }

.section-title h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--brand-gradient);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title .more {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  white-space: nowrap;
}

.section-title .more:hover {
  color: var(--brand-dark);
  gap: 5px;
}

/* 模块标题居中（后台 title_align=center，默认 left 靠左）：
   标题/副标题在中栏居中；「查看全部」链接固定在右栏靠右（绝对定位，不再挤标题） */
.home-block--title-center .section-title { display: block; position: relative; text-align: center; }
.home-block--title-center .section-head-left { display: none; }
.home-block--title-center .section-head-center { text-align: center; }
.home-block--title-center .section-head-right { position: absolute; right: 0; bottom: 0; transform: none; text-align: right; }
/* 标题真正居中：h2 为 flex 布局，需 justify-content 才能居中（覆盖三栏与扁平结构如评价/特色/品牌） */
.home-block--title-center .section-title h2 { justify-content: center; }
.home-block--title-center .section-subtitle { text-align: center; }

/* ============================================================================
   分类宫格 - 卡片式布局
   ============================================================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: var(--spacing-sm); }
}

@media (max-width: 360px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

/* 分类卡片 */
.app-tile {
  padding: 18px 10px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(200, 162, 75, 0.08) 0%, rgba(200, 162, 75, 0.02) 100%);
  border: 1px solid var(--brand-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  min-width: 0;
}

.app-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(200, 162, 75, 0.1) 0%, rgba(200, 162, 75, 0.03) 100%);
}

.app-tile .icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient);
  box-shadow: 0 4px 14px rgba(200, 162, 75, 0.32);
  border: 2px solid #F7EFDC;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.app-tile:hover .icon {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 5px 14px rgba(200, 162, 75, 0.38);
}

.app-tile .icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.app-tile .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.app-tile .name {
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text);
  word-break: break-all;
  width: 100%;
}

.app-tile .sub {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================================
   Banner 区域 - 现代化设计
   ============================================================================ */

.banner {
  min-height: 160px;
  border-radius: var(--radius-xl);
  background: var(--brand-gradient);
  color: #fff;
  padding: var(--spacing-xl) var(--spacing-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-xl);
}

.banner::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.banner::after {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.banner > * {
  position: relative;
  z-index: 2;
}

.banner .t1 {
  font-weight: 800;
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 var(--spacing-sm) 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.banner .t2 {
  font-size: 14px;
  opacity: 0.92;
  line-height: 1.6;
  margin: 0;
}

.banner .cta {
  margin-top: var(--spacing-lg);
}

.banner .cta a {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: #C8A24B;
  border: 1px solid #C8A24B;
  padding: 10px var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  transition: all 0.3s ease;
}

.banner .cta a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================================================
   快捷入口 - 功能按钮
   ============================================================================ */

.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.quick a {
  padding: 20px 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.quick a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.quick a:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(200, 162, 75, 0.18);
  color: #fff;
}

.quick a:hover::before {
  opacity: 1;
}

.quick a > * {
  position: relative;
  z-index: 1;
}

.quick a svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.quick a:hover svg {
  transform: scale(1.12);
}

/* ============================================================================
   商品卡片列表
   ============================================================================ */

/* 默认：首页 / products 页 — 桌面6列 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: var(--spacing-xl);
}

@media (max-width: 1400px) {
  .product-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}

@media (max-width: 860px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* categories 页专用：桌面4列（右侧区域更窄） */
.product-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: var(--spacing-xl);
}

@media (max-width: 1100px) {
  .product-grid-4 { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

@media (max-width: 860px) {
  .product-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 480px) {
  .product-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.pcard {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 4px 14px rgba(26, 54, 77, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-self: start;
  transition: box-shadow 0.25s ease, transform 0.25 ease, border-color 0.25s ease;
  cursor: pointer;
  padding: 0;
}

.pcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(200, 162, 75, 0.18);
  border-color: var(--brand);
}

.pcard .top { display: none !important; }

/* 金质卡片升级：主推标签 / 悬停查看胶囊 / 首卡主推 */
.pcard-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--brand-dark);
  color: #E6C77A;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  padding: 3px 10px;
  border-radius: 20px;
}
.pcard-view {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) translateY(8px);
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  white-space: nowrap;
}
.pcard:hover .pcard-view { opacity: 1; transform: translateX(-50%) translateY(0); }
/* 「立即询价 / Get a Quote」统一金色样式：此前无 class 定义，依赖各页内联 style，
   导致分类页未写内联色而显示为默认深色，与首页/全部商品页不一致。集中定义后全站统一。 */
.get-quote-btn {
  display: inline-block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}
.get-quote-btn:hover { text-decoration: underline; }
.pcard--featured { grid-column: span 2; grid-row: span 2; align-self: stretch; }
.pcard--featured .pimg { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
.pcard--featured .pname { font-size: 15px; }
@media (max-width: 860px) {
  .pcard--featured { grid-column: auto; grid-row: auto; }
}

.pimg {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f6f5f1 0%, #f6f5f1 100%);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  display: block;
}

.pimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.pcard:hover .pimg img {
  transform: scale(1.06);
}

.pimg-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F7EFDC, #F7EFDC);
  color: #F0E2BD;
  font-weight: 700;
  font-size: 12px;
  gap: 6px;
}

.pimg-placeholder svg {
  width: 36px;
  height: 36px;
  fill: #F0E2BD;
  opacity: 0.75;
}

.pcard-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  position: relative;
  min-height: 110px;
}

.pmeta {
  flex: 1;
  min-width: 0;
}

.pname {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 5px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.psub {
  margin: 0 0 4px 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 商品卡片：单款起订 / 混批提示 */
.pcard-moq {
  margin: 2px 0 4px 0;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.4;
}

.price {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 34px;
}

.price-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  align-items: flex-start;
  overflow: hidden;
}

.price-main {
  font-weight: 800;
  color: #e4393c;
  font-size: 15px;
  line-height: 1;
}

.price-old {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: line-through;
}

.price-line {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.price-none {
  font-size: 12px;
  color: #94a3b8;
}

.login-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f1f5f9;
  border: 1px solid #d0d8e0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 500;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.4;
  cursor: pointer;
}

.login-link:hover {
  background: #e8ecf1;
  border-color: #94a3b8;
}

.price-arrow {
  font-size: 11px;
  color: #94a3b8;
  flex-shrink: 0;
  font-weight: 500;
}

.price .v {
  font-weight: 800;
  color: #e4393c;
  font-size: 15px;
  line-height: 1;
}

.price .u {
  color: #94a3b8;
  font-size: 11px;
}

/* ============================================================================
   按钮组件
   ============================================================================ */

.btn {
  border: 0;
  border-radius: var(--radius-md);
  padding: var(--spacing-md) var(--spacing-lg);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  white-space: nowrap;
}

.btn.primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 4px 12px rgba(200, 162, 75, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 162, 75, 0.4);
}

.btn.ghost {
  background: var(--brand-light);
  color: var(--brand);
  border: 1px solid var(--brand-light);
}

.btn.ghost:hover {
  background: #F7EFDC;
  border-color: var(--brand);
}

.btn.danger {
  background: #fff1f0;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.btn.danger:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.btn.small {
  padding: 6px 12px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: #f9fafb;
  color: var(--text-secondary);
}

.btn.small:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* ============================================================================
   表单组件
   ============================================================================ */

.input {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200, 162, 75, 0.1);
}

.input::placeholder {
  color: #b0b8c4;
}

.textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
}

.textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200, 162, 75, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================================
   步骤徽章
   ============================================================================ */

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(200, 162, 75, 0.3);
}

/* ============================================================================
   状态徽章
   ============================================================================ */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid;
}

.status-badge.pending  { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.status-badge.confirmed { background: #F7EFDC; border-color: #ecd9b8; color: #1A364D; }
.status-badge.shipped  { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
.status-badge.completed { background: #e5e7eb; border-color: #d1d5db; color: #374151; }
.status-badge.cancelled { background: #fee2e2; border-color: #fecaca; color: #991b1b; }

/* ============================================================================
   信息提示框
   ============================================================================ */

.tip-box {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid;
}

.tip-box.info    { background: #F7EFDC; border-color: #ecd9b8; color: #1A364D; }
.tip-box.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.tip-box.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.tip-box.danger  { background: #fff5f5; border-color: #fecaca; color: #991b1b; }

/* ============================================================================
   表格
   ============================================================================ */

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: left;
}

.table th {
  color: var(--text-secondary);
  font-weight: 700;
  background: var(--brand-light);
}

/* ============================================================================
   数量步进器
   ============================================================================ */

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
}

.stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  background: #f8fafc;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  transition: all 0.2s;
  font-size: 16px;
  flex-shrink: 0;
}

.stepper button:hover {
  background: var(--brand-light);
  color: var(--brand);
}

.stepper input {
  width: 64px;
  height: 36px;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  outline: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  background: var(--card);
}

/* ============================================================================
   底部固定操作栏
   ============================================================================ */

.bottom-bar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  margin-top: var(--spacing-xl);
  background: rgba(240, 244, 249, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-md);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

/* ============================================================================
   响应式设计
   ============================================================================ */

@media (max-width: 768px) {
  .appbar .row {
    flex-wrap: wrap;
  }

  .app-title {
    max-width: 100%;
  }

  .searchbar {
    max-width: 100%;
    order: 3;
    flex-basis: 100%;
  }

  .section-title h2 {
    font-size: 16px;
  }

  .banner {
    min-height: 130px;
    padding: var(--spacing-lg);
  }

  .banner .t1 {
    font-size: 22px;
  }

  .banner .t2 {
    font-size: 13px;
  }

  .quick {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  .quick a {
    padding: var(--spacing-md);
    font-size: 13px;
    gap: var(--spacing-sm);
  }

  .quick a svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: var(--spacing-md);
  }

  .banner {
    min-height: 110px;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
  }

  .banner .t1 {
    font-size: 18px;
  }

  .banner .t2 {
    font-size: 12px;
  }

  .app-tile {
    padding: 10px 6px;
    gap: 6px;
  }

  .app-tile .icon {
    width: 42px;
    height: 42px;
  }

  .app-tile .icon svg {
    width: 20px;
    height: 20px;
  }

  .app-tile .name {
    font-size: 11px;
  }

  .searchbar input {
    height: 40px;
    font-size: 14px;
    padding: 0 12px;
  }

  .searchbar button {
    height: 40px;
    min-width: 64px;
    padding: 0 14px;
    font-size: 13px;
    letter-spacing: 0;
  }

  .quick {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  .quick a {
    padding: var(--spacing-md) var(--spacing-sm);
    font-size: 12px;
    gap: var(--spacing-sm);
  }

  .quick a svg {
    width: 24px;
    height: 24px;
  }

  .section-title {
    margin: 16px 0 12px;
  }

  .section-title h2 {
    font-size: 15px;
  }
}

/* ============================================================================
   等级徽章 / 表单行 / 其他补充组件
   ============================================================================ */

/* 会员等级标签 */
.level-badge {
  display: inline-block;
  background: #F7EFDC;
  color: #1A364D;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  vertical-align: middle;
}

/* 表单双列行 */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

/* textarea 通用 */
.textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text);
  background: #f9fafb;
  outline: none;
  resize: vertical;
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-family: inherit;
  box-sizing: border-box;
  line-height: 1.6;
}

.textarea:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200, 162, 75,0.1);
}

.textarea::placeholder { color: #b0b8c4; }

/* 快捷入口 - 新版 quick-item */
.quick .quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--spacing-md) var(--spacing-sm);
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.25s ease;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.quick .quick-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: #F7EFDC;
}

/* 商品价格区域 */
.price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.price-left { min-width: 0; }

.price-main {
  font-weight: 800;
  color: var(--brand);
  font-size: 16px;
  line-height: 1.2;
}

.price-old {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-top: 1px;
}

.price-none {
  font-size: 12px;
  color: var(--text-muted);
}

.price-arrow {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.login-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  cursor: pointer;
}

/* 商品卡片 */
.pcard {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.pcard:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: #F7EFDC;
}

.pimg {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8fafc;
  flex-shrink: 0;
}

.pimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.pcard:hover .pimg img { transform: scale(1.04); }

.pimg-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #F7EFDC, #F7EFDC);
}

.pimg-placeholder svg {
  width: 40px;
  height: 40px;
  fill: #F0E2BD;
}

.pimg-placeholder span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  padding: 0 8px;
  line-height: 1.3;
}

.pcard-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}

.pname {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.psub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* price-main 手机端字号 */
@media (max-width: 480px) {
  .price-main { font-size: 14px; }
}

/* 分类宫格图标颜色 */
.app-tile .icon {
  background: var(--brand-gradient);
}

/* 快捷入口图标 */
.quick-icon svg { stroke: none; }

/* ============================================================
   Banner 轮播幻灯片
   ============================================================ */
.banner-carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  background: #1A364D;
}
/* 全宽模式：突破内容区宽度，铺满整屏视口（由后台「是否全宽」开关控制） */
.banner-carousel--full {
  border-radius: 0;
  box-shadow: none;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
/* 圆角开关关闭：无论是否全宽，均强制直角并去掉卡片阴影（后台「圆角显示」取消勾选时生效） */
.banner-carousel--no-radius {
  border-radius: 0;
  box-shadow: none;
}
/* 全宽模块：由外层 .home-block--fullwidth 包裹驱动，纯 CSS 强制直角（与任何 PHP 部署无关，
   即使 home_block.php / banner_carousel.php 未同步也能保证全宽幻灯片为直角） */
.home-block--fullwidth .banner-carousel {
  border-radius: 0;
  box-shadow: none;
}
.home-block--fullwidth .hb-banner { border-radius: 0; }
.home-block--fullwidth .hb-newsletter { border-radius: 0; }

/* 首页模块间距策略：取消模块内部的「默认下间隙」，间距完全交给每个模块自身的
   「上间隙 / 下间隙」(home_blocks.margin_top / margin_bottom，已由 home.php 作为
   .home-block 容器内联 margin-top / margin-bottom 生效，默认均为 0 → 模块默认紧贴)。
   这样后台「上下间隙」字段才真正起作用，不会出现"默认缝 + 自定义缝"叠加的冗余空白。
   仅作用于首页模块（.home-block 内的 .hb-*），不影响 /products、/categories 等
   内页的商品网格（.product-grid 等保留各自默认间距）。 */
.home-block > .hb-newsletter,
.home-block > .hb-banner,
.home-block > .hb-features,
.home-block > .hb-testimonials,
.home-block > .hb-product-showcase,
.home-block > .hb-factory,
.home-block > .hb-brands,
.home-block > .hb-image-text,
.home-block > .hb-video-hero,
.home-block > .hb-faq,
.home-block > .hb-ps,
.home-block > .banner-carousel {
  margin-bottom: 0 !important;
}

/* 商品区网格(home.php 内联写死 margin-bottom:32px)在首页场景下同样归零：
   ① 模块化首页：网格位于 .home-block 内；
   ② 旧版兜底首页：网格是同级兄弟中的最后一块。
   这段 32px 是「默认缝」，颜色是 body 米白底(#f6f5f1)，正是用户看到的
   「最后模块下方那段白/米色间隙」（与页脚浅灰 #f8fafc 不是同一层）。
   归零后，商品模块间距也统一交给后台「下间隙」(home_blocks.margin_bottom) 控制。 */
.home-block > div[id^="pg_sec_"],
.home-page div[id^="pg_sec_"]:last-of-type {
  margin-bottom: 0 !important;
}

/* 首页场景下取消页脚顶部间距，消除最后模块与页脚间的米白底间隙。
   关键点：此前用 :has() 选择器（.app-container:has(.home-block) .site-footer），
   但部分浏览器/环境不支持 :has()，导致该规则完全失效、页脚 margin-top:24px
   直接透出 body 米白底(#f6f5f1) —— 这正是"一直消不掉的间隙（非浅灰、是米白）"。
   改为依赖 home.php 已给首页 body 加的 .home-page 类（全浏览器支持、可靠）。
   ① margin-top: 24px（与最后模块的相邻兄弟外边距，米白底透出 → 用户看到的间隙）；
   ② padding-top: 32px（页脚自身顶部内边距，浅灰底，顺带归零使页脚更紧凑）。
   左右/底部内边距保留(仅覆盖 top)。
   其它内页（商品详情、文章等）body 无 .home-page 类，保留 24px+32px 缓冲。 */
.home-page .site-footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.banner-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.banner-slide {
  position: relative;
  flex: 0 0 100%;
  /* 高度由后台「轮播显示设置」通过 CSS 变量 --banner-h 控制；移动端按比例缩放 */
  min-height: var(--banner-h, 240px);
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.banner-slide .banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 54, 77, 0.80) 0%, rgba(26, 54, 77, 0.42) 45%, rgba(200, 162, 75, 0.20) 100%);
}
.banner-slide .banner-content {
  position: relative;
  z-index: 2;
  padding: 36px 48px;
  max-width: 72%;
}
.banner-slide .t1 {
  font-weight: 800;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.banner-slide .t2 {
  font-size: 15px;
  opacity: 0.92;
  margin-top: 10px;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}
/* 幻灯片 CTA 按钮（在标题下方显示，与整张幻灯片链接互不嵌套） */
.banner-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 11px 26px;
  background: #C8A24B;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.banner-slide-btn:hover {
  transform: translateY(-2px);
  background: #A8842F;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.32);
}
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s, transform 0.2s;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.banner-arrow:hover { background: rgba(255, 255, 255, 0.35); }
.banner-prev { left: 14px; }
.banner-next { right: 14px; }
.banner-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.banner-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}
.banner-dot.active {
  width: 24px;
  background: #fff;
}

@media (max-width: 860px) {
  .banner-slide { min-height: calc(var(--banner-h, 240px) * 0.75); }
  .banner-slide .banner-content { padding: 22px 22px; max-width: 88%; }
  .banner-slide .t1 { font-size: 22px; }
  .banner-slide .t2 { font-size: 13px; }
  .banner-arrow { width: 34px; height: 34px; font-size: 22px; }
}
@media (max-width: 560px) {
  .banner-slide { min-height: calc(var(--banner-h, 240px) * 0.6); }
  .banner-slide .t1 { font-size: 18px; }
  .banner-slide .t2 { font-size: 12px; }
  .banner-arrow { display: none; }
}

/* ============================================================
   首页可视化模块样式（home_blocks）
   ============================================================ */

/* 单张促销 Banner */
.hb-banner {
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff; text-decoration: none;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border-radius: var(--radius-lg); margin: 0 0 28px; padding: 40px 24px;
  position: relative; overflow: hidden;
}
.hb-banner::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.32));
}
.hb-banner-inner { position: relative; z-index: 1; max-width: 760px; }
.hb-banner-title { font-size: 30px; font-weight: 800; line-height: 1.25; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.hb-banner-sub { font-size: 15px; margin-top: 10px; opacity: .92; }
.hb-banner-btn {
  display: inline-block; margin-top: 18px; padding: 11px 28px;
  background: #C8A24B; color: #fff; font-weight: 700; border-radius: 999px;
  font-size: 14px; transition: transform .18s, box-shadow .18s;
}
.hb-banner:hover .hb-banner-btn { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
@media (max-width: 560px) {
  .hb-banner { padding: 28px 16px; border-radius: 12px; }
  .hb-banner-title { font-size: 22px; }
  .hb-banner-sub { font-size: 13px; }
}

/* 服务承诺图标栏 */
.hb-features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 0 0 30px; padding: 24px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.hb-feature { text-align: center; padding: 8px; }
.hb-feature-icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: var(--brand-light); color: #C8A24B; border: 2px solid #C8A24B;
}
.hb-feature-title { font-weight: 700; font-size: 15px; color: var(--text); }
.hb-feature-desc { font-size: 13px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
@media (max-width: 860px) { .hb-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .hb-features { grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; } }

/* 视频首屏 */
.hb-video-hero {
  position: relative;
  min-height: var(--vh-h, 560px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #1A364D; text-align: center; color: #fff;
}
.hb-video-hero__media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background-size: cover; background-position: center;
}
.hb-video-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26, 54, 77, 0.82) 0%, rgba(26, 54, 77, 0.45) 50%, rgba(200, 162, 75, 0.25) 100%);
}
.hb-video-hero__content { position: relative; z-index: 2; padding: 40px 24px; max-width: 760px; }
.hb-video-hero__title { font-size: 38px; font-weight: 800; line-height: 1.25; letter-spacing: .5px; text-shadow: 0 2px 16px rgba(0, 0, 0, .3); margin: 0; }
.hb-video-hero__sub { font-size: 16px; opacity: .92; margin: 14px 0 0; line-height: 1.6; text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
.hb-video-hero__btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  padding: 13px 34px; background: #C8A24B; color: #1A364D; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); transition: transform .2s, box-shadow .2s;
}
.hb-video-hero__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
@media (max-width: 860px) { .hb-video-hero { min-height: calc(var(--vh-h, 560px) * 0.75); } .hb-video-hero__title { font-size: 26px; } }
@media (max-width: 560px) { .hb-video-hero { min-height: calc(var(--vh-h, 560px) * 0.6); } .hb-video-hero__title { font-size: 22px; } .hb-video-hero__sub { font-size: 14px; } }

/* ===== Instagram 视频网格 ===== */
.hb-video-slides { width: 100%; }
.hb-vs-grid {
  display: grid;
  grid-template-columns: repeat(var(--vs-cols, 4), 1fr);
  gap: 14px;
  align-items: start;
}
.hb-vs-card { display: flex; flex-direction: column; }
.hb-vs-title { font-size: 14px; font-weight: 600; color: #1A364D; margin-bottom: 8px; }
.hb-vs-ig { width: 100%; }
.hb-vs-ig .instagram-media {
  margin: 0 !important; max-width: 100% !important; width: 100% !important;
  border-radius: 12px; overflow: hidden;
}
.hb-vs-ig--fallback {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 9 / 16; background: #0e1726; border-radius: 12px;
}
.hb-vs-link { color: #C8A24B; font-weight: 600; text-decoration: none; }
.hb-vs-link:hover { text-decoration: underline; }
@media (max-width: 860px) { .hb-vs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .hb-vs-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* 客户评价 */
.hb-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 30px; }
.hb-testi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.hb-testi__media { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--brand-light); }
.hb-testi__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-testi__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.hb-testi__stars { color: #C8A24B; font-size: 16px; letter-spacing: 2px; }
.hb-testi__content { font-size: 14px; line-height: 1.7; color: var(--text); margin: 0; flex: 1; }
.hb-testi__user { display: flex; align-items: center; gap: 12px; }
.hb-testi__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-light); }
.hb-testi__name { font-weight: 700; font-size: 14px; color: var(--text); }
.hb-testi__country { font-size: 12px; color: var(--text-muted); }
@media (max-width: 860px) { .hb-testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hb-testimonials { grid-template-columns: 1fr; } }

/* 商品场景展示（满宽网格 + 两角卖点卡，2026-07-28 替代旧版左文右图布局） */
.hb-product-showcase { margin: 0 0 30px; }
.hb-psc__header { margin-bottom: 18px; }
.hb-psc__title { font-size: 22px; font-weight: 800; color: #1A364D; margin: 0; line-height: 1.3; }
.hb-psc__subtitle { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 8px 0 0; }

.hb-psc__grid { display: grid; gap: 12px; align-items: stretch; }
.hb-psc__cell { position: relative; min-height: 0; }
.hb-psc__cell--empty { min-height: 80px; }

/* 角卡（卖点卡）—— 左上角深蓝品牌色 / 右下角金色强调色 */
.hb-psc__feature-card {
    width: 100%; height: 100%; padding: 22px 18px; border-radius: 12px;
    display: flex; flex-direction: column; justify-content: center; gap: 8px;
    text-align: left; color: #fff;
    box-sizing: border-box;
}
.hb-psc__feature-card--brand  { background: linear-gradient(135deg, #1A364D 0%, #274b6b 100%); }
.hb-psc__feature-card--accent { background: linear-gradient(135deg, #C8A24B 0%, #d4af5e 100%); color: #1A364D; }
.hb-psc__feature-icon  { font-size: 32px; line-height: 1; }
.hb-psc__feature-title { font-size: 18px; font-weight: 800; margin: 4px 0 0; line-height: 1.3; }
.hb-psc__feature-text  { font-size: 13px; line-height: 1.55; opacity: .92; margin: 0; }

/* 商品卡片（与旧版相同：3:4 图 + 评分 + 价格） */
.hb-psc__card {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    background: #fff; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--line);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none; color: inherit;
}
.hb-psc__card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(26,54,77,.08); }
.hb-psc__img { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #f6f5f1; }
.hb-psc__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.hb-psc__card:hover .hb-psc__img img { transform: scale(1.04); }
.hb-psc__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f6f5f1, #edeae4); }
.hb-psc__info { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.hb-psc__rating { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.hb-psc__stars { display: inline-block; position: relative; font-size: 13px; color: #e2e2e2; letter-spacing: 1px; }
.hb-psc__stars::before { content: "★★★★★"; }
.hb-psc__stars::after  { content: "★★★★★"; position: absolute; left: 0; top: 0; color: #C8A24B; overflow: hidden; width: var(--gold, 100%); white-space: nowrap; }
.hb-psc__reviews { color: var(--text-muted); }
.hb-psc__price   { font-size: 15px; font-weight: 700; color: #1A364D; }

/* 「查看全部商品」浮按钮 —— 叠在 (1,N) 商品格右上角 */
.hb-psc__viewall {
    position: absolute; top: 8px; right: 8px; z-index: 5;
    display: inline-flex; align-items: center;
    background: rgba(26,54,77,.92); color: #fff;
    padding: 6px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 600;
    text-decoration: none; white-space: nowrap;
    transition: background .2s;
}
.hb-psc__viewall:hover { background: rgba(26,54,77,1); color: #fff; text-decoration: none; }

/* 响应式：网格在窄屏降列 */
@media (max-width: 1100px) {
    .hb-psc__grid { gap: 10px; }
    .hb-psc__feature-card { padding: 18px 14px; }
}
@media (max-width: 860px) {
    .hb-psc__title { font-size: 19px; }
    .hb-psc__feature-icon  { font-size: 26px; }
    .hb-psc__feature-title { font-size: 15px; }
}
@media (max-width: 560px) {
    .hb-psc__grid { grid-template-columns: repeat(2, 1fr) !important; }
    .hb-psc__feature-card { padding: 14px 12px; }
    .hb-psc__feature-text  { font-size: 12px; }
    .hb-psc__viewall { font-size: 11px; padding: 5px 10px; top: 6px; right: 6px; }
}

/* emoji 插入按钮 + 浮层 */
.emoji-wrap { position: relative; display: flex; gap: 6px; align-items: center; }
.emoji-wrap .emoji-input { flex: 1 1 auto; min-width: 0; }
.emoji-btn { flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid var(--line, #ddd); border-radius: 8px; background: #f6f5f1; cursor: pointer; font-size: 16px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.emoji-btn:hover { background: #ece9e2; }
.emoji-pop { display: none; position: fixed; z-index: 9999; background: #fff; border: 1px solid var(--line, #ddd); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: 8px; max-width: 260px; flex-wrap: wrap; gap: 4px; }
.emoji-pop .emoji-opt { width: 34px; height: 34px; border: none; background: #fff; border-radius: 6px; font-size: 18px; cursor: pointer; }
.emoji-pop .emoji-opt:hover { background: #f0f0f0; }
.emoji-pop .emoji-close { width: 34px; height: 34px; border: none; background: #f3f3f3; border-radius: 6px; font-size: 18px; cursor: pointer; color: #888; }
.bs-field textarea { width: 100%; min-height: 66px; padding: 8px 10px; border: 1px solid var(--line, #ddd); border-radius: 8px; font-size: 14px; font-family: inherit; line-height: 1.5; resize: vertical; box-sizing: border-box; }

/* 工厂实力带 */
.hb-factory { position: relative; color: #fff; padding: 56px 24px; margin: 0 0 8px; background-size: cover; background-position: center; }
.hb-factory__inner { max-width: 1140px; margin: 0 auto; text-align: center; }
.hb-factory__title { font-size: 30px; font-weight: 800; color: #fff; margin: 0 0 10px; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hb-factory__sub { font-size: 15px; color: rgba(255,255,255,.85); margin: 0 auto 28px; max-width: 720px; line-height: 1.6; }
.hb-factory__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 34px; }
.hb-factory__stat { flex: 1 1 160px; max-width: 220px; background: rgba(255,255,255,.08); border: 1px solid rgba(200,162,75,.4); border-radius: 14px; padding: 18px 14px; }
.hb-factory__stat-v { font-size: 30px; font-weight: 800; color: #E6C77A; line-height: 1.1; }
.hb-factory__stat-l { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 6px; }
.hb-factory__items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hb-factory__item { background: rgba(255,255,255,.06); border: 1px solid rgba(200,162,75,.28); border-radius: 14px; padding: 22px 16px; }
.hb-factory__icon { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(200,162,75,.15); border: 2px solid #C8A24B; font-size: 26px; overflow: hidden; }
.hb-factory__icon img { width: 100%; height: 100%; object-fit: cover; }
.hb-factory__ititle { font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 6px; }
.hb-factory__idesc { font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.55; }
@media (max-width: 860px) { .hb-factory__items { grid-template-columns: repeat(2, 1fr); } .hb-factory__title { font-size: 24px; } }
@media (max-width: 560px) { .hb-factory__items { grid-template-columns: 1fr; } .hb-factory__stats { gap: 10px; } .hb-factory__stat { flex-basis: 45%; max-width: 45%; } }

/* 品牌 Logo 跑马灯 */
.hb-brands {
  overflow: hidden; margin: 0 0 30px; padding: 22px 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hb-brands-track {
  display: flex; align-items: center; gap: 56px; width: max-content;
  animation: hb-marquee 26s linear infinite;
}
.hb-brands:hover .hb-brands-track { animation-play-state: paused; }
.hb-brand {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  min-width: 130px; height: 64px; padding: 0 12px; text-decoration: none;
  opacity: .7; transition: opacity .2s; filter: grayscale(1);
}
.hb-brand:hover { opacity: 1; filter: grayscale(0); }
.hb-brand img { max-height: 56px; max-width: 130px; object-fit: contain; }
.hb-brand-text { font-size: 18px; font-weight: 800; color: #334155; white-space: nowrap; }
@keyframes hb-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 560px) { .hb-brands-track { gap: 36px; } .hb-brand { min-width: 100px; } }

/* 邮件订阅栏 */
.hb-newsletter { border-radius: var(--radius-lg); margin: 0 0 30px; padding: 40px 24px; color: #fff; }
.hb-newsletter-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.hb-news-title { font-size: 24px; font-weight: 800; }
.hb-news-sub { font-size: 14px; opacity: .9; margin-top: 8px; }
.hb-news-form { display: flex; gap: 10px; margin: 20px auto 0; max-width: 460px; }
.hb-news-input {
  flex: 1; height: 46px; padding: 0 16px; border: none; border-radius: 10px;
  font-size: 14px; outline: none; min-width: 0;
}
.hb-news-btn {
  height: 46px; padding: 0 26px; border: none; border-radius: 10px; cursor: pointer;
  background: #C8A24B; color: #1A364D; font-weight: 800; font-size: 14px; white-space: nowrap;
  transition: transform .15s, background .15s;
}
.hb-news-btn:hover { background: #A8842F; transform: translateY(-1px); }
.hb-news-msg { min-height: 20px; margin-top: 12px; font-size: 13px; }
@media (max-width: 560px) {
  .hb-news-form { flex-direction: column; }
  .hb-news-btn { width: 100%; }
  .hb-news-title { font-size: 20px; }
}
