/* 雾界 VAPORA 商城 - 前台样式 */
:root {
  --primary: #f26a0f;
  --primary-dark: #d95a0a;
  --accent: #ff5a2c;
  --text: #1f2733;
  --text-2: #6b7280;
  --bg: #ffffff;
  --card: #ffffff;
  --line: #e6e8ec;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
[v-cloak] { display: none; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
.container { width: min(1280px, 92%); margin: 0 auto; }

/* ---------- 顶部固定区：横幅提醒条 + 导航 ---------- */
.top-sticky { position: sticky; top: 0; z-index: 100; }
.notice-bar {
  background: #fff;
  color: #f26a0f; font-size: 14px; font-weight: 400;
  text-align: center; padding: 5px 16px; letter-spacing: .5px;
}
/* 桌面一行显示；窄屏放不下时第二段整体换行成两行（inline-block 保证断点整齐） */
.notice-line { display: inline-block; line-height: 1.45; }
/* 手机端快捷分类跳转栏：桌面隐藏，≤480px 随导航吸顶 + 横向滚动 */
.quick-cats { display: none; }
@media (max-width: 480px) {
  .quick-cats {
    display: flex; gap: 4px; align-items: center; overflow-x: auto;
    padding: 6px 8px; background: var(--card);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  /* 导航与快捷栏连为一体，隐藏中间横线 */
  .site-header { border-bottom: 0; }
  .quick-cats::-webkit-scrollbar { display: none; }
  .quick-cat {
    flex: 1 1 0; min-width: 0; padding: 5px 2px; border-radius: 999px;
    border: 0; background: transparent;
    color: var(--text-2); font-size: 12px; white-space: nowrap; text-align: center;
  }
  .quick-cat.active { background: var(--primary); color: #fff; font-weight: 600; }
}

/* ---------- 年龄验证弹窗 ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(10, 16, 30, .72); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px;
}
.age-modal {
  background: #fff; border-radius: 20px; width: min(440px, 100%);
  padding: 36px 32px 28px; text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
  animation: age-pop .35s cubic-bezier(.34, 1.4, .64, 1);
}
@keyframes age-pop { from { opacity: 0; transform: scale(.86) translateY(20px); } }
.age-logo { height: 64px; width: auto; max-width: min(384px, 100%); border-radius: 16px; margin: 0 auto 16px; display: block; object-fit: contain; }
.age-modal h2 { font-size: 22px; font-weight: 800; }
.age-modal h2 em { display: block; font-style: normal; font-size: 13px; color: var(--text-2); font-weight: 500; letter-spacing: 2px; margin-top: 2px; }
.age-text { font-size: 15px; color: #374151; margin: 16px 0 22px; line-height: 1.8; }
.age-text b { font-size: 17px; color: var(--text); }
.age-actions { display: flex; gap: 12px; }
.age-actions .btn { flex: 1; padding: 12px 10px; font-size: 14.5px; }
.age-tip { font-size: 11.5px; color: #9ca3af; margin-top: 18px; line-height: 1.8; }
.gate-leave-active { transition: opacity .3s ease; }
.gate-leave-to { opacity: 0; }

/* ---------- 顶部导航 ---------- */
.site-header {
  background: #f26a0f;
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; justify-content: flex-start; gap: 10px; flex-shrink: 0; }
.brand-logo { height: 38px; width: auto; max-width: 228px; border-radius: 10px; object-fit: contain; }
.main-nav { display: flex; gap: 4px; flex: 1; }
/* 桌面端：导航分类树子级与折叠箭头不显示 */
.nav-sub, .nav-arrow { display: none; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 16px;
  font-family: "Assistant", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: #fff; font-weight: 500; transition: all .2s; white-space: nowrap;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.15); }
.main-nav a.active { color: #fff; background: rgba(255,255,255,.25); font-weight: 600; }
.header-search { display: flex; align-items: center; background: rgba(255,255,255,.2); border-radius: 999px; padding: 0 6px 0 16px; height: 40px; width: 230px; min-width: 0; }
.header-search input { border: 0; background: none; outline: none; flex: 1; font-size: 14px; min-width: 0; color: #fff; }
.header-search input::placeholder { color: rgba(255,255,255,.7); }
.header-search button { border: 0; background: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.nav-toggle { display: none; border: 0; background: none; flex-direction: column; align-items: flex-start; gap: 5px; padding: 8px; }
.nav-toggle span { width: 28px; height: 2px; background: #fff; border-radius: 2px; }
.nav-toggle span:nth-child(2) { width: 17px; }
.mobile-search { display: none; }

/* ---------- 轮播 ---------- */
.hero { position: relative; overflow: hidden; background: #0f172a; }
.hero-track { display: flex; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.hero-slide { position: relative; flex: 0 0 100%; }
.hero-slide img,
.hero-slide video { width: 100%; height: clamp(220px, 38vw, 520px); object-fit: cover; display: block; }
.hero-caption {
  position: absolute; left: 8%; bottom: 16%; color: #fff; max-width: 60%;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.hero-caption h2 { font-size: clamp(20px, 3.4vw, 44px); font-weight: 800; letter-spacing: 1px; }
.hero-caption p { font-size: clamp(13px, 1.5vw, 20px); opacity: .92; margin-top: 6px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .22); color: #fff; font-size: 18px;
  backdrop-filter: blur(4px); transition: background .2s; opacity: 0;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: rgba(255, 255, 255, .45); }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.hero-dots button {
  width: 26px; height: 4px; border-radius: 4px; border: 0;
  background: rgba(255, 255, 255, .4); transition: all .3s;
}
.hero-dots button.active { background: #fff; width: 40px; }

/* ---------- 品牌专区按钮（参考官网：桌面 4 列灰底瓦片） ---------- */
.brand-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 10px;
  padding: 20px 0 4px;
}
.brand-btn {
  display: flex; align-items: center; justify-content: center;
  height: 72px; padding: 0; border-radius: 0; background: #e3e3e3;
  border: 0; transition: all .2s; overflow: hidden;
}
.brand-btn:hover { background: #d8d8d8; transform: translateY(-1px); box-shadow: var(--shadow); }
/* 有 Logo 时图片铺满整个瓦片（宽图 cover 裁边、窄图 JS 回退 contain），名称不渲染 */
.brand-btn-logo { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-btn-name {
  font-size: 17px; color: var(--text); font-weight: 800; letter-spacing: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

/* ---------- 首页分类导航 ---------- */
.home-nav {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  padding-top: 18px;
}
.home-nav-btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 10px 12px; border-radius: 10px;
  background: #f3f4f6; color: var(--text); font-size: 15px; font-weight: 600;
  border: 1.5px solid transparent; transition: all .2s; line-height: 1.3;
}
.home-nav-btn:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--shadow); }
.home-nav-btn.t-primary { background: rgba(242, 106, 15, .1); color: var(--primary); }
.home-nav-btn.t-accent { background: rgba(255, 90, 44, .1); color: var(--accent); }
.home-nav-btn.t-dark { background: #1f2733; color: #fff; }
.home-nav-btn.bordered { background: #fff; border-color: currentColor; }
.home-nav-btn.t-default.bordered { border-color: var(--line); }
@media (max-width: 1024px) {
  .home-nav { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .home-nav { grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 14px; }
  .home-nav-btn { min-height: 44px; padding: 8px 6px; font-size: 12.5px; border-radius: 8px; }
}
/* ---------- 广告卡片 ---------- */
.ad-cards { display: flex; flex-direction: column; gap: 18px; padding-top: 20px; }
.ad-cards a.disabled { opacity: .45; pointer-events: none; }
.ad-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.ad-card img { width: 100%; display: block; aspect-ratio: 2 / 3; object-fit: cover; }
/* 嵌入商品图网格：叠加在底图中部，点击跳商品页 */
.ad-products {
  position: absolute; left: 5%; right: 5%; top: 46%; transform: translateY(-50%);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.ad-product { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.ad-card .ad-product img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
/* 6 个嵌入商品图专用布局：整体上移避开底部按钮，图片收窄拉长、大倒角；行距加大区分上下两排 */
.ad-products.is-six { top: 30%; column-gap: 10px; row-gap: 78px; }
.ad-products.is-six .ad-product:nth-child(-n+3) { transform: translateY(20px); }
.ad-products.is-six .ad-product img { width: 84%; aspect-ratio: 3 / 4; border-radius: 14px; }
.ad-product-name {
  max-width: 100%; padding: 3px 8px; border-radius: 6px;
  background: rgba(0, 0, 0, .72); color: #fff; font-size: 11px; line-height: 1.4;
  text-align: center; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
/* 按钮组叠放在图片内部底部，渐变遮罩保证可读性 */
.ad-buttons {

  
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; gap: 8px; padding: 40px 12px 12px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, .55));
}
.ad-buttons.cols-1 { grid-template-columns: 1fr; }
.ad-buttons.cols-2 { grid-template-columns: repeat(2, 1fr); }
.ad-buttons.cols-3 { grid-template-columns: repeat(3, 1fr); }
.ad-btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 36px; padding: 6px 10px; border-radius: 999px;
  background: transparent; color: #fff;
  font-size: 13px; font-weight: 600; transition: all .2s;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
.ad-btn:hover { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(242, 106, 15, .35); }
/* 样式二：正方底图 + 居中按钮 */
.ad-card.layout-center img { aspect-ratio: 1 / 1; }
.ad-center {
  position: absolute; left: 0; right: 0; top: calc(40% + 20px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ad-btn-center {
  min-width: 44%; padding: 10px 28px; border-radius: 999px;
  border: 1px solid var(--primary); color: var(--primary);
  background: transparent;
  font-size: 14px; font-weight: 600; text-align: center;
  transition: all .2s;
}
.ad-btn-center:hover { background: var(--primary); color: #fff; }
/* 样式三：底图 + 底部横排胶囊按钮，白底深字，悬停变实心上浮；宽度随文字自适应 */
.ad-card.layout-pills img { aspect-ratio: 1 / 1; }
.ad-pills {
  position: absolute; left: 5%; right: 5%; bottom: calc(7% + 30px);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.ad-btn-pill {
  padding: 12px 22px; border-radius: 999px; border: 0;
  background: transparent; color: #111827; white-space: nowrap;
  font-size: 14px; font-weight: 600; text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  transition: all .2s;
}
.ad-btn-pill:hover {
  background: var(--primary); color: #fff;
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(242, 106, 15, .3);
}
@media (max-width: 560px) {
  .ad-btn-pill { font-size: 13px; padding: 10px 18px; }
}
/* 样式四：竖图 + 底部居中深色胶囊按钮 */
.ad-card.layout-detail img { aspect-ratio: 3 / 4; }
.ad-detail {
  position: absolute; left: 0; right: 0; bottom: calc(6% + 50px);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ad-btn-detail {
  padding: 14px 60px; border-radius: 999px; border: 0;
  background: transparent; color: #fff; white-space: nowrap;
  font-size: 16px; font-weight: 600; text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
  transition: all .2s;
}
.ad-btn-detail:hover {
  background: var(--primary);
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(242, 106, 15, .35);
}
@media (max-width: 560px) {
  .ad-btn-detail { font-size: 14px; padding: 12px 24px; }
}
@media (max-width: 560px) {
  .ad-btn-center { font-size: 13px; padding: 8px 22px; }
}
@media (max-width: 560px) {
  .ad-cards { gap: 14px; padding-top: 14px; }
  .ad-buttons { gap: 6px; padding: 32px 8px 8px; }
  .ad-btn { font-size: 12px; min-height: 32px; padding: 5px 6px; }
  .ad-products { gap: 6px; }
  .ad-products.is-six { column-gap: 8px; row-gap: 54px; }
  .ad-product-name { font-size: 10px; padding: 2px 5px; }
}
/* ---------- 通用区块 ---------- */
.section { padding: 34px 0 10px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { font-size: 24px; font-weight: 800; }
.section-head h2.hot-title { color: var(--primary); }
/* 首页热销产品标题：不加重、大一号 */
section[aria-label="热销产品"] .section-head h2 { font-size: 26px; font-weight: 400; }
.more-link { color: var(--primary); font-size: 14px; font-weight: 500; }
/* 查看所有按钮（热销产品下方居中，白底橙边圆角） */
.view-all-wrap { display: flex; justify-content: center; margin: 28px 0 6px; }
.view-all-btn {
  padding: 13px 32px; border-radius: 14px; background: #fff;
  border: 1.5px solid var(--primary); color: var(--primary);
  font-size: 15px; font-weight: 500; transition: all .2s;
}
.view-all-btn:hover { background: var(--primary); color: #fff; }
/* 服务保障区块（售前答疑/极速配送/最佳服务/人工客服）：桌面三列并排，FAQ 区块整行 */
.svc-blocks { padding: 46px 0 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 40px; }
.svc-block { margin-top: 0; }
.svc-block-full { grid-column: 1 / -1; }
.svc-title { text-align: center; color: var(--primary); font-size: 20px; font-weight: 600; letter-spacing: 1px; }
.svc-content { text-align: center; color: var(--text); font-size: 15.5px; line-height: 1.7; margin-top: 22px; }
.svc-faq { margin-top: 26px; border-top: 1px solid var(--line); }
.svc-faq-item { border-bottom: 1px solid var(--line); }
.svc-faq-q {
  width: 100%; display: flex; align-items: center; gap: 14px;
  background: none; border: 0; padding: 17px 2px; cursor: pointer;
  font-size: 16px; color: var(--text); text-align: left;
}
.svc-faq-q .ico { width: 24px; height: 24px; flex-shrink: 0; color: var(--text); }
.svc-faq-q .chev { margin-left: auto; width: 16px; height: 16px; flex-shrink: 0; color: var(--text-2); transition: transform .2s; }
.svc-faq-q .chev.open { transform: rotate(180deg); }
.svc-faq-a { padding: 0 2px 16px 40px; color: var(--text-2); font-size: 14px; line-height: 1.75; }
.loading, .empty { text-align: center; padding: 70px 0; color: var(--text-2); font-size: 15px; }
.empty p { font-size: 17px; margin-bottom: 16px; }

/* ---------- 商品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
/* 网页端热销产品：一排 5 个卡片（参考官网排版） */
section[aria-label="热销产品"] .product-grid { grid-template-columns: repeat(5, 1fr); gap: 36px 20px; }
.product-card {
  background: transparent; border-radius: 0; overflow: hidden;
  box-shadow: none; transition: transform .25s; display: block;
}
.product-card:hover { transform: translateY(-4px); }
.card-img { position: relative; aspect-ratio: 1; overflow: hidden; background: transparent; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .card-img img { transform: scale(1.05); }
.card-tag {
  position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600;
}
.card-tag.oos {
  top: auto; bottom: 10px; left: 10px; right: auto;
  background: var(--primary); color: #ffe066;
  font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 8px;
}
.card-tag.oos + .card-off { left: auto; right: 10px; }
/* 折扣徽章：图片左下角蓝底黄字 */
.card-off {
  position: absolute; bottom: 10px; left: 10px;
  background: var(--primary); color: #ffe066; font-size: 13px; font-weight: 400;
  padding: 5px 12px; border-radius: 8px;
}
.card-body { padding: 12px 0 0; }
.card-body h3 {
  font-size: 14px; font-weight: 400; line-height: 1.5;
  font-family: "Assistant", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-price { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.price-group { display: flex; flex-direction: row; align-items: baseline; gap: 4px 8px; min-width: 0; flex-wrap: wrap; }
.card-price b { color: var(--text); font-size: 15px; font-weight: 400; }
.card-price s { color: #9ca3af; font-size: 12.5px; }
/* 价格数字统一 Assistant 字体（与 RELX 一致，卡片 / 详情 / 购物车） */
.card-price b, .card-price s, .price, .price-old, .cd-price, .cd-total b {
  font-family: "Assistant", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

/* ---------- 列表页 ---------- */
.list-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.list-head h1 { font-size: 24px; font-weight: 800; }
.list-count { color: var(--text-2); font-size: 13.5px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.filter-bar.sub { margin-top: -12px; }
.filter-bar.sub .chip { padding: 5px 14px; font-size: 12.5px; }
/* 分类名称 + 描述介绍 */
.list-intro { text-align: left; margin-bottom: 18px; }
.list-cat-title { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.list-cat-desc { color: var(--text-2); font-size: 14px; line-height: 1.8; }
/* 筛选排序 + 产品数量 */
.list-tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tool-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; color: var(--primary); font-size: 14px; font-weight: 600;
  cursor: pointer; padding: 0; font-family: inherit;
}
.tool-toggle:hover { color: var(--primary-dark); }
.tool-toggle svg { flex-shrink: 0; }
.list-count2 { color: var(--text-2); font-size: 13px; }
/* 排序面板 */
.sort-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.sort-chip {
  padding: 5px 16px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font-size: 13px; color: var(--text-2); transition: all .2s;
}
.sort-chip:hover { border-color: var(--primary); color: var(--primary); }
.sort-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.chip {
  padding: 7px 18px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); font-size: 14px; color: var(--text-2); transition: all .2s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: #000; border-color: #000; color: #fff; font-weight: 600; }
.pagination { display: flex; justify-content: center; gap: 8px; margin: 34px 0 10px; flex-wrap: wrap; }
.pagination button {
  min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); font-size: 14px; padding: 0 12px; transition: all .2s;
}
.pagination button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 详情页 ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 46%) 1fr; gap: 36px; align-items: start; }
/* 商品图片留白：上 +20px，左右各 +10px；滚动时左栏主图吸顶不动，右侧信息栏自然滚动（参考 RELX） */
.gallery { margin: 20px 10px 0; position: sticky; top: 100px; }
.gallery-main {
  position: relative; border-radius: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(17, 24, 39, .06); aspect-ratio: 1;
}
.gallery-track { display: flex; height: 100%; }
.gallery-track.anim { transition: transform .3s ease; }
.g-slide { flex: 0 0 100%; height: 100%; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main img.oos { filter: grayscale(1); opacity: .72; }
/* 视频幻灯片：黑底 contain + 控制条，右上角「视频」角标区分图片 */
.g-slide video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.g-video-tag {
  position: absolute; top: 10px; right: 10px; z-index: 2; pointer-events: none;
  display: flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px;
  padding: 3px 10px; border-radius: 999px;
}
.g-video-tag svg { width: 10px; height: 10px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery-thumbs img {
  width: 72px; height: 72px; border-radius: 0; object-fit: cover; cursor: pointer;
  border: 2px solid var(--line); opacity: .8; transition: all .2s; flex-shrink: 0; background: #fff;
}
.gallery-thumbs img.active, .gallery-thumbs img:hover { border-color: var(--text); opacity: 1; }
/* 缩略图视频项：首图做底 + 暗遮罩 + 播放三角 + 「视频」文字 */
.g-thumb-video {
  position: relative; width: 72px; height: 72px; flex-shrink: 0; cursor: pointer;
  border: 2px solid var(--line); opacity: .8; border-radius: 0;
  background: #000 center/cover no-repeat; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; text-shadow: 0 1px 3px rgba(0,0,0,.7); transition: all .2s;
}
.g-thumb-video::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.g-thumb-video svg, .g-thumb-video span { position: relative; }
.g-thumb-video.active, .g-thumb-video:hover { border-color: var(--text); opacity: 1; }
/* 放大镜角标与滑动计数 */
.zoom-badge {
  position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 0; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); cursor: pointer; z-index: 2; transition: transform .2s;
}
.zoom-badge:hover { transform: scale(1.08); }
.zoom-badge svg { width: 18px; height: 18px; }
/* 页码行：主图与缩略图之间，‹ 1/2 › 居中 */
.gallery-pager { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 16px 0 4px; }
.gallery-pager button {
  border: 0; background: none; cursor: pointer; color: #b6bcc6;
  display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px;
}
.gallery-pager button:hover { color: var(--text); }
.gallery-pager span { font-size: 10.08px; line-height: 1; color: var(--text); }
/* 商品图放大查看弹层 */
.zoom-mask { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 300; }
.zoom-wrap {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  overflow: hidden; touch-action: none;
}
.zoom-wrap img { max-width: 92vw; max-height: 84vh; transition: transform .25s; user-select: none; -webkit-user-drag: none; cursor: zoom-in; }
.zoom-wrap.drag img { transition: none; cursor: grabbing; }
.zoom-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 24px; line-height: 1; z-index: 2; cursor: pointer;
}
.zoom-tip { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: 12.5px; }
/* 聊天图片 / 收款码灯箱：全屏遮罩，双指缩放/拖拽，点击任意位置或 ESC 关闭，高于聊天面板(z200) */
.chat-thumb { cursor: zoom-in; }
.chat-lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.92); display: flex; flex-direction: column; cursor: pointer; }
.chat-lightbox .cl-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.26); color: #fff; font-size: 26px; line-height: 1; z-index: 3; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.chat-lightbox .cl-head { padding: calc(14px + env(safe-area-inset-top, 0px)) 56px 10px; text-align: center; color: #fff; z-index: 2; }
.chat-lightbox .cl-head b { display: block; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.chat-lightbox .cl-head span { display: block; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.72); }
.chat-lightbox .cl-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.chat-lightbox .cl-stage img {
  max-width: 92vw; max-height: 78vh; object-fit: contain; user-select: none; -webkit-user-drag: none;
  -webkit-touch-callout: default; /* 保留 iOS 长按菜单以识别图中二维码/保存图片 */
  will-change: transform; transition: transform .18s ease; cursor: zoom-out;
}
.chat-lightbox .cl-stage.drag img { transition: none; cursor: grabbing; }
.chat-lightbox .cl-tip { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; color: rgba(255,255,255,.75); font-size: 12.5px; }
.detail-brand { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.detail-info h1 { font-size: 22px; font-weight: 400; line-height: 1.45; color: var(--primary); }
.detail-subtitle { color: var(--text-2); margin: 0 0 8px; font-size: 14px; }
/* 信任图标（主标题下方，三列均分居中） */
.trust-bar { display: flex; margin: 38px 0 36px; }
.trust-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.trust-ico {
  width: 36px; height: 36px; border: 2.5px solid var(--primary); border-radius: 50%;
  color: var(--primary); font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.trust-ico svg { width: 28px; height: 28px; }
/* 图片版信任图标：资源自带橙色圆环，去掉原描边圆圈 */
img.trust-ico { border: 0; border-radius: 0; object-fit: contain; }
.trust-item b { font-size: 17px; color: var(--text); font-weight: 700; }
.price-box {
  padding: 4px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.price {
  color: var(--text); font-size: 20px; font-weight: 400; animation: price-in .25s ease;
}
@keyframes price-in { from { opacity: .3; } to { opacity: 1; } }
.price-old { color: #9ca3af; text-decoration: line-through; font-size: 14px; }
.price-off {
  background: var(--primary); color: #ffe066; font-size: 14px; font-weight: 400;
  padding: 6px 14px; border-radius: 8px;
}
/* 口味选择器 */
.flavor-box { margin: 16px 0 4px; }
.flavor-label { display: block; font-size: 14px; color: var(--text); font-weight: 700; margin-bottom: 8px; }
.flavor-list { display: flex; flex-wrap: wrap; gap: 8px; }
.flavor-pill {
  min-height: 40px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  font-size: 13.5px; cursor: pointer; transition: all .18s;
}
.flavor-pill:hover { border-color: var(--primary); color: var(--primary); }
.flavor-pill.active {
  background: #000; border-color: #000; color: #fff;
  font-weight: 600; box-shadow: none;
}
/* 备选方案（每个分类列表下方自动生成）：无白底，加粗标签 + 灰色提示 + 灰底选框 */
.backup-box {
  margin-top: 14px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.backup-label { font-size: 14px; font-weight: 700; color: var(--text); }
.backup-select {
  min-width: 120px; min-height: 51px; padding: 6px 10px;
  border: 1px solid #9aa1ab; border-radius: 6px; background: #f1f2f4;
  color: var(--text); font-size: 13px; text-align: left;
}
.backup-select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.backup-hint { margin: 0; font-size: 12.5px; color: var(--text-2); line-height: 1.5; }
@media (max-width: 480px) {
  .backup-select { min-width: 110px; font-size: 12.5px; }
}
/* 选项库存为 0：删除线灰显禁选 */
.flavor-pill.oos,
.flavor-pill.oos:hover {
  color: #9ca3af; border-color: var(--line); background: #fafafa;
  text-decoration: line-through; cursor: not-allowed; box-shadow: none; font-weight: 400;
}
/* 库存为 0 时价格区售罄标签：蓝底黄字圆角 */
.price-soldout {
  padding: 5px 14px; border-radius: 8px; background: var(--primary);
  color: #ffe066; font-size: 13px; font-weight: 700;
}
/* 商品展示视频已并入画廊，独立视频区样式移除 */
.detail-meta { list-style: none; margin: 16px 0; border-top: 1px dashed var(--line); }
.detail-meta li { display: flex; gap: 20px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.detail-meta b { color: var(--text-2); font-weight: 500; width: 44px; flex-shrink: 0; }
.stock-low { color: var(--accent); font-weight: 600; }
.stock-out { color: #9ca3af; }
.detail-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty-label { font-size: 14px; color: var(--text-2); font-weight: 500; }
.detail-actions .qty-stepper button { width: 44px; height: 44px; }
.detail-btns { display: flex; gap: 10px; }
.detail-btns .btn { flex: 1 1 0; width: auto; min-height: 46px; padding: 12px 8px; text-align: center; border-radius: 10px; }
.share-link {
  display: flex; align-items: center; justify-content: flex-start; gap: 6px;
  margin: 12px 0 0; border: 0; background: none; cursor: pointer;
  color: var(--text-2); font-size: 14px; font-weight: 500;
}
.share-link:active { color: var(--primary); }
@media (max-width: 480px) {
  .detail-actions { gap: 10px; }
  .detail-btns { gap: 8px; }
  .detail-btns .btn { font-size: 14px; padding: 12px 4px; }
  .flavor-pill { min-height: 40px; padding: 8px 14px; font-size: 12.5px; }
}
.btn {
  padding: 13px 34px; border-radius: 999px; font-size: 15.5px; font-weight: 600;
  border: 0; transition: all .2s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(242, 106, 15, .3); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-primary:disabled { background: #9ca3af; box-shadow: none; cursor: not-allowed; }
.btn-outline { background: #fff; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: #eaf0fd; }
.detail-desc { margin-top: 44px; }
.desc-text { font-size: 15px; line-height: 2; color: #374151; margin-bottom: 22px; white-space: pre-wrap; }
.desc-img { display: block; margin: 0 auto 18px; max-width: 720px; width: 100%; }
.desc-video { display: block; width: 100%; max-width: 720px; margin: 0 auto 18px; background: #000; }
.detail-specs { margin-top: 44px; }
.specs-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.spec-table { width: 100%; border-collapse: collapse; max-width: 720px; margin: 0 auto; }
/* 详情模块在右侧信息栏内：取消居中限宽，与标题/加购按钮左对齐铺满 */
.detail-info .detail-desc { margin-top: 40px; }
.detail-info .desc-img, .detail-info .desc-video { max-width: 100%; margin: 0 0 18px; }
.detail-info .detail-specs { margin-top: 40px; }
.detail-info .spec-table { max-width: 100%; margin: 0; }
.spec-table th, .spec-table td { padding: 13px 18px; font-size: 14.5px; border: 1px solid var(--line); text-align: left; }
.spec-table th { background: #f8f9fb; color: var(--text-2); font-weight: 500; width: 32%; }
.spec-table tr:nth-child(even) td { background: #fbfcfd; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--primary); color: #ffe3cc; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 30px; padding: 44px 0 30px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-grid a { display: block; font-size: 13.5px; color: rgba(255,255,255,.85); padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: 13.5px; color: rgba(255,255,255,.85); }
.footer-note { line-height: 1.9; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.25); text-align: center; font-size: 12.5px; color: rgba(255,255,255,.75); padding: 16px; }

/* ---------- 客服聊天 ---------- */
.chat-fab {
  position: fixed; right: 22px; bottom: 26px; z-index: 200;
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(180deg, #f9a03f 0%, #f26a0f 100%); color: #fff;
  display: grid; place-items: center; cursor: pointer; font-size: 20px;
  box-shadow: 0 8px 24px rgba(242, 106, 15, .45); transition: transform .2s;
}
.chat-fab:hover { transform: scale(1.08); }
/* 客服欢迎语弹窗（FAB 上方） */
.fab-welcome {
  position: fixed; right: 20px; bottom: 108px; z-index: 199;
  width: min(300px, calc(100vw - 32px));
  background: #fff; border-radius: 12px; box-shadow: 0 8px 28px rgba(17, 24, 39, .18);
  padding: 12px 14px; cursor: pointer; animation: fabPop .25s ease-out;
}
.fab-welcome::after {
  content: ''; position: absolute; right: 24px; bottom: -5px;
  width: 10px; height: 10px; background: #fff; transform: rotate(45deg); border-radius: 2px;
}
.fab-welcome-name { display: block; font-size: 13px; color: var(--primary); margin-bottom: 6px; }
.fab-welcome-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fab-avatar {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  background: #fff; box-shadow: 0 2px 8px rgba(17, 24, 39, .18);
}
.fab-status {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: 999px; font-size: 12px; color: #16a34a; background: rgba(22, 163, 74, .1);
  transform: translateY(-6px);
}
.fab-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fab-status.off { color: #9ca3af; background: rgba(156, 163, 175, .12); }
.fab-welcome-text { font-size: 13px; color: var(--text); line-height: 1.6; white-space: pre-line; }
.fab-welcome-close {
  position: absolute; top: 6px; right: 8px; border: 0; background: none;
  color: var(--text-2); font-size: 14px; cursor: pointer; padding: 4px;
}
@keyframes fabPop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bubble.pre-line { white-space: pre-line; }
@media (max-width: 480px) { .fab-welcome { right: 12px; bottom: 94px; } }
.chat-fab.has-unread { animation: pulse 1.6s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(242, 106, 15, .45); }
  50% { box-shadow: 0 0 0 12px rgba(242, 106, 15, .14); }
}
.chat-badge {
  position: absolute; top: -2px; right: -2px; background: var(--accent); color: #fff;
  font-size: 11px; font-style: normal; min-width: 19px; height: 19px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff;
}
.chat-panel {
  position: fixed; right: 22px; bottom: 96px; z-index: 200;
  width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: 70vh;
  background: #fff; border-radius: 16px; box-shadow: 0 16px 48px rgba(16, 24, 40, .22);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-head {
  background: linear-gradient(120deg, var(--primary), #3b76e8); color: #fff;
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.chat-head img { height: 38px; width: auto; max-width: 228px; border-radius: 10px; object-fit: contain; }
.chat-head b { display: block; font-size: 15px; }
.chat-head i { font-style: normal; font-size: 12px; opacity: .85; }
/* 手机端全屏顶栏：返回 + 退出全屏/关闭 */
.chat-head.head-app { background: transparent; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; }
.chat-panel.is-app .chat-head.head-app { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.head-back { border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; width: 34px; height: 34px; cursor: pointer; }
.head-back.hide { visibility: hidden; }
.head-actions { display: flex; align-items: center; gap: 6px; }
.head-actions button {
  border: 0; background: none; color: #fff; width: 32px; height: 32px;
  display: grid; place-items: center; cursor: pointer; font-size: 18px;
}
.head-actions svg { width: 18px; height: 18px; }
/* 浮动卡片（手机收起全屏后）顶栏的全屏按钮 */
.head-full { display: none; border: 0; background: none; color: #fff; width: 30px; height: 30px; place-items: center; cursor: pointer; margin-left: auto; }
.head-full svg { width: 16px; height: 16px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: #f5f6f8; }
.chat-msg { margin-bottom: 12px; display: flex; align-items: flex-start; gap: 8px; }
.chat-msg.user { justify-content: flex-end; }
.msg-avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  background: #fff; box-shadow: 0 0 0 1px var(--line);
}
.msg-avatar-wrap { position: relative; flex-shrink: 0; }
.msg-dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: #9ca3af; }
.msg-dot.on { background: #22c55e; }
.msg-main { display: flex; flex-direction: column; align-items: flex-start; max-width: calc(100% - 42px); }
.chat-msg.user .msg-main { align-items: flex-end; }
.chat-msg .bubble {
  max-width: 100%; padding: 9px 14px; border-radius: 14px; font-size: 14px;
  background: #fff; box-shadow: var(--shadow); line-height: 1.55; word-break: break-word;
}
.chat-msg.user .bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.admin .bubble { border-bottom-left-radius: 4px; }
/* 聊天消息内自动识别的 URL 链接：主题蓝高亮 + 手型，长链接强制换行；用户橙色气泡内转白 */
.chat-msg .chat-link {
  color: #1a56db; text-decoration: underline; cursor: pointer;
  word-break: break-all; overflow-wrap: anywhere; -webkit-tap-highlight-color: rgba(26,86,219,.18);
}
.chat-msg .chat-link:hover { color: #0f3fb0; }
.chat-msg.user .chat-link { color: #fff; }
.chat-msg time { font-size: 11px; color: #9ca3af; margin-top: 3px; }
.chat-input { padding: 10px 12px; background: #f5f6f8; position: relative; }
/* 胶囊输入条：输入框 + 上传/表情/发送 一体圆角条 */
.chat-bar {
  display: flex; align-items: center; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 4px 4px 16px; min-height: 46px;
}
.chat-bar input {
  flex: 1; border: 0; outline: none; background: transparent;
  font-size: 16px; min-width: 0; padding: 8px 0; color: var(--text);
}
.chat-bar .bar-btn {
  flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: none; color: #98a1b3; display: grid; place-items: center; cursor: pointer;
}
.chat-bar .bar-btn svg { width: 20px; height: 20px; }
.chat-bar .bar-btn.on { color: var(--primary); background: rgba(242, 106, 15, .08); }
.chat-bar .bar-btn:disabled { opacity: .6; cursor: default; }
.bar-spin {
  width: 16px; height: 16px; border: 2px solid #d4dae4; border-top-color: var(--primary);
  border-radius: 50%; animation: bar-rot .8s linear infinite;
}
@keyframes bar-rot { to { transform: rotate(360deg); } }
.chat-bar .send-btn {
  flex-shrink: 0; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  margin-left: 2px; cursor: pointer; transition: background .15s;
}
.chat-bar .send-btn svg { width: 18px; height: 18px; }
.chat-bar .send-btn:disabled { background: #a9c0f2; cursor: default; }
/* 客服待发送购物车清单 */
.pending-cart {
  margin: 10px 12px 0; padding: 10px 12px; background: #f0f5ff;
  border: 1px dashed var(--primary); border-radius: 12px; font-size: 13px;
  max-height: 38%; overflow-y: auto;
}
.pending-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pending-head b { color: var(--primary); font-size: 13px; }
.pending-close { border: 0; background: none; color: #9ca3af; font-size: 14px; width: 24px; height: 24px; border-radius: 50%; }
.pending-close:hover { background: rgba(26,86,219,.1); color: var(--primary); }
.pending-item { display: flex; justify-content: space-between; gap: 10px; color: var(--text-2); padding: 2px 0; }
.pending-item span { flex: 1; min-width: 0; word-break: break-all; }
.pending-item em { font-style: normal; flex-shrink: 0; }
.pending-sum { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); font-weight: 600; }
.pending-sum i { font-style: normal; color: var(--accent); font-weight: 500; font-size: 12px; }
.pending-send {
  width: 100%; margin-top: 8px; border: 0; border-radius: 999px; background: var(--primary);
  color: #fff; font-size: 13.5px; font-weight: 600; padding: 10px 0; min-height: 40px; transition: background .15s;
}
.pending-send:hover { background: var(--primary-dark); }
/* 表情面板 */
.emoji-wrap { display: flex; }
.emoji-panel {
  position: absolute; bottom: calc(100% + 8px); right: 12px; width: 292px;
  max-width: calc(100% - 8px); background: #fff; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 30, 70, .18); z-index: 80; overflow: hidden;
}
.emoji-cats { display: flex; border-bottom: 1px solid var(--line); background: #fafbfc; }
.emoji-cats button { flex: 1; padding: 8px 0; border: 0; background: none; font-size: 16px; opacity: .5; cursor: pointer; }
.emoji-cats button.on { opacity: 1; box-shadow: inset 0 -2px 0 var(--primary); }
.emoji-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  padding: 8px; max-height: 176px; overflow-y: auto;
}
.emoji-grid button {
  border: 0; background: none; font-size: 20px; line-height: 1.4; padding: 4px 0;
  border-radius: 6px; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.emoji-grid button:active { background: #eef1f6; }
/* 表情长按预览大图 */
.emoji-preview { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(10, 20, 50, .35); }
.emoji-preview span { font-size: 92px; line-height: 1; background: #fff; border-radius: 18px; padding: 22px 26px; box-shadow: 0 16px 48px rgba(0, 0, 0, .35); }
/* 图片消息气泡 */
.bubble.image { padding: 6px; }
.bubble img { display: block; max-width: 200px; max-height: 220px; border-radius: 8px; }
/* 视频消息气泡 */
.bubble.video { padding: 6px; }
.bubble video { display: block; max-width: 220px; max-height: 280px; border-radius: 8px; background: #000; }
.slide-up-enter-active, .slide-up-leave-active { transition: all .25s ease; }
.slide-up-enter-from, .slide-up-leave-to { opacity: 0; transform: translateY(16px); }
/* 聊天顶栏关闭按钮：仅手机端满屏时显示 */
.chat-close {
  display: none; margin-left: auto; flex-shrink: 0;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 15px; cursor: pointer; place-items: center;
}
.chat-close:hover { background: rgba(255, 255, 255, .28); }
/* 手机端：客服门户全屏三级页面流（home/chat/faq/channel） */
.chat-panel.is-app {
  top: var(--vv-top, 0px); left: 0; right: 0; bottom: auto;
  width: 100%; height: var(--vv-h, 100%); max-width: none; max-height: none;
  border-radius: 0; box-shadow: none;
  background: linear-gradient(180deg, #f26a0f 0%, #f9a03f 30%, #fcd5a8 58%, #f5f6f8 86%);
}
.chat-panel.is-app .chat-head { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.chat-panel.is-app .chat-input { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 560px) {
  .chat-fab.chat-open { display: none; }
  .chat-close { display: grid; }
  .head-full { display: grid; }
}
/* 客服首页 */
.capp-home { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 16px 20px; display: flex; flex-direction: column; }
.capp-topbar { display: flex; justify-content: space-between; align-items: center; min-height: 34px; }
.capp-x { border: 0; background: none; color: #fff; font-size: 18px; cursor: pointer; padding: 4px 10px; line-height: 1; }
.capp-title { color: #fff; font-size: 20px; font-weight: 700; line-height: 1.5; margin: 6px 0 18px; text-align: center; }
.capp-card { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 12px 32px rgba(13, 42, 110, .25); }
.capp-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.capp-card-head .fab-status { transform: none; }
.capp-start {
  margin-top: 12px; width: 100%; min-height: 46px; border: 0; border-radius: 10px;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 16px; cursor: pointer;
}
.capp-start i {
  font-style: normal; width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 14px;
}
/* FAQ / 渠道页 */
.capp-page { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px 16px 16px; }
.capp-card2 {
  flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(13, 42, 110, .18);
}
.capp-page-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #f1f2f5; border-bottom: 1px solid var(--line); font-size: 16px;
}
.capp-page-ico {
  width: 38px; height: 38px; border-radius: 10px; background: #e3e5ea;
  display: grid; place-items: center; font-size: 17px; color: var(--text);
}
.capp-page-body { flex: 1; overflow-y: auto; }
.faq-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px; background: none; border: 0; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--text); text-align: left; cursor: pointer;
}
.faq-row i { font-style: normal; color: #9ca3af; transition: transform .2s; }
.faq-row i.open { transform: rotate(90deg); }
.faq-answer {
  margin: 0; padding: 4px 16px 14px; font-size: 13.5px; color: var(--text-2);
  line-height: 1.7; border-bottom: 1px solid var(--line); white-space: pre-line;
}
.ch-row { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.ch-ico { width: 40px; height: 40px; border-radius: 50%; background: #e8f7ee; display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.ch-row b { font-size: 15px; font-weight: 600; flex: 1; min-width: 0; }
.ch-row i { font-style: normal; color: var(--text-2); font-size: 12.5px; }
.ch-go { font-style: normal; color: #9ca3af; }
.capp-empty { text-align: center; color: var(--text-2); font-size: 13px; padding: 40px 0; }
/* 底部导航 */
.capp-nav {
  flex-shrink: 0; display: flex; gap: 6px; background: #fff; border-top: 1px solid var(--line);
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
}
.capp-nav button {
  flex: 1; border: 0; background: none; border-radius: 12px; padding: 8px 0 6px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-2); font-size: 12px; cursor: pointer;
}
.capp-nav button svg { width: 22px; height: 22px; }
.capp-nav button.active { color: var(--primary); background: rgba(242, 106, 15, .08); font-weight: 600; }

.toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 400;
  background: rgba(17, 24, 39, .92); color: #fff; font-size: 13.5px;
  padding: 9px 20px; border-radius: 999px; box-shadow: var(--shadow-lg);
  animation: age-pop .25s ease; max-width: 86vw; text-align: center;
}

/* ---------- 响应式：平板 768px ---------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  section[aria-label="热销产品"] .product-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 14px; }
  .header-search { width: 180px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .header-inner { gap: 10px; position: relative; }
  /* 手机端顺序：导航按钮 - Logo - 放大镜 - 购物车 */
  .nav-toggle { display: flex; order: 1; }
  /* Logo 绝对定位居中于整条导航栏，不受两侧按钮宽度影响 */
  .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; }
  .header-search { order: 3; margin-left: auto; width: auto; height: auto; background: none; padding: 0; }
  .header-search input { display: none; }
  .header-search button { width: 40px; height: 40px; border-radius: 50%; background: none; color: #fff; }
  .header-search button:hover { background: rgba(255,255,255,.15); color: #fff; }
  .cart-entry { order: 4; }
  .mobile-search { display: block; padding-bottom: 10px; }
  .mobile-search-inner { display: flex; gap: 8px; }
  .mobile-search input {
    flex: 1; min-width: 0; height: 40px; background: #fff;
    border: 1.5px solid var(--line); border-radius: 999px; padding: 0 16px;
    font-size: 14px; outline: none;
  }
  .mobile-search input:focus { border-color: var(--primary); }
  .mobile-search .btn { width: auto; height: 40px; padding: 0 22px; border-radius: 999px; flex-shrink: 0; }
  .main-nav {
    position: absolute; top: 100%; left: 50%; width: 100vw; transform: translateX(-50%); z-index: 99;
    background: #fff; flex-direction: column; padding: 8px 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: none;
  }
  .main-nav.open { display: flex; }
  /* 移动端下拉：分类橙色文字、整行铺满；选中行浅橙背景 */
  .main-nav a { color: var(--primary); border-radius: 0; padding: 13px 6%; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .main-nav a:hover { color: var(--primary-dark); background: #fdf3ec; }
  .main-nav a.active { color: var(--primary); background: #fef3ec; }
  /* 移动端分类树：下拉框式粗体下箭头（SVG chevron），收起朝右、展开朝下 */
  .nav-arrow { display: inline; width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; transition: transform .15s; transform: rotate(-90deg); }
  .nav-arrow.open { transform: rotate(0deg); }
  .nav-sub { display: block; }
  .nav-sub a { padding-left: 10%; font-size: 14.5px; }
  .nav-sub .nav-sub a { padding-left: 15%; font-size: 13.5px; }
  .brand-bar { grid-template-columns: 1fr 1fr; gap: 14px 6px; }
  .brand-btn { height: 56px; padding: 0; }
    .notice-bar { font-size: 13px; padding: 4px 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  section[aria-label="热销产品"] .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  /* 移动端卡片标题与价格整体左对齐 */
  .card-body, .card-body h3, .card-price, .price-group { text-align: left; }
  .card-price { justify-content: flex-start; }
  .detail-layout { grid-template-columns: 1fr; gap: 24px; }
    /* 移动端单列：主图不吸顶，随页面正常滚动 */
    .gallery { position: static; }
  .section-head h2, .list-head h1 { font-size: 20px; }
  section[aria-label="热销产品"] .section-head h2 { font-size: 22px; }
  .detail-info h1 { font-size: 21px; }
  .price { font-size: 18px; }
  .detail-desc { margin-top: 30px; }
  .detail-specs { margin-top: 30px; }
}
/* ---------- 响应式：手机 375px / 414px ---------- */
@media (max-width: 480px) {
  .container { width: 94%; }
  .brand-logo { height: 32px; max-width: 140px; }
  .header-inner { height: 52px; gap: 10px; }
  .nav-toggle { padding: 6px; }
    .notice-bar { font-size: 12px; padding: 3px 10px; letter-spacing: 0; }
  .hero-slide img, .hero-slide video { height: 190px; }
  .hero-caption { left: 5%; bottom: 18%; max-width: 86%; }
  .hero-caption h2 { font-size: 19px; }
  .hero-caption p { font-size: 12px; }
  .hero-dots { bottom: 8px; }
  .section { padding: 22px 0 6px; }
  .section-head { margin-bottom: 12px; }
  .section-head h2, .list-head h1 { font-size: 18px; }
    section[aria-label="热销产品"] .section-head h2 { font-size: 20px; }
  .svc-blocks { grid-template-columns: 1fr; gap: 0; padding-top: 6px; }
  .svc-block { margin-top: 34px; }
  .svc-title { font-size: 18px; }
  .svc-faq-q { font-size: 15px; padding: 14px 0; }
  .svc-faq-a { padding-left: 36px; }
  .list-head { flex-wrap: wrap; gap: 6px; }
  .age-modal { padding: 28px 20px 22px; }
  .age-actions { flex-direction: column; }
  .card-body { padding: 10px 12px 12px; }
  .card-body h3 { font-size: 13.5px; }
  .card-price b { font-size: 14px; }
  .btn { width: 100%; text-align: center; }
  .chat-fab { right: 14px; bottom: 18px; width: 62px; height: 62px; }
  .chat-panel { right: 12px; bottom: 82px; height: 62vh; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; padding: 30px 0 20px; }
  .site-footer { margin-top: 36px; }
  .trust-bar { margin: 26px 0 24px; }
  .trust-ico { width: 30.6px; height: 30.6px; font-size: 17px; border-width: 2px; }
  .trust-ico svg { width: 24px; height: 24px; }
  .trust-item b { font-size: 15.5px; }
}

/* 多客服：系统通知与接待状态 */
.chat-msg.system { justify-content: center; }
.chat-msg .sys-notice {
  font-size: 12px; color: #6b7280; background: #f3f4f6; padding: 4px 12px;
  border-radius: 999px; max-width: 90%; text-align: center;
}
.chat-head .no-agent { color: #b45309; }

/* ---------- 购物车 ---------- */
.cart-entry {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; background: none; color: #fff; flex-shrink: 0;
  transition: all .2s;
}
.cart-entry .cart-badge {
  position: absolute; bottom: 0; right: -2px; background: #f7941d; color: #fff;
  font-size: 10.5px; font-style: normal; min-width: 17px; height: 17px; border-radius: 999px;
  display: grid; place-items: center; padding: 0 4px; font-weight: 700;
}
.card-add {
  width: 36px; height: 36px; border-radius: 50%; border: 0; flex-shrink: 0;
  background: var(--accent); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 90, 44, .35); transition: all .2s;
}
.card-add:hover { background: #e64a1e; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255, 90, 44, .45); }
.card-add:active { transform: scale(.92); }
.qty-stepper {
  display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px;
  overflow: hidden; background: #fff; flex-shrink: 0;
}
.qty-stepper button {
  width: 34px; height: 34px; border: 0; background: none; font-size: 17px; cursor: pointer;
  color: var(--text); transition: background .15s;
}
.qty-stepper button:hover:not(:disabled) { background: #f5f6f8; }
.qty-stepper button:disabled { color: #c3c9d2; cursor: not-allowed; }
.qty-stepper span { min-width: 36px; text-align: center; font-size: 14.5px; font-weight: 600; }
/* ---------- 购物车抽屉（侧边栏，宽度比例参考 RELX：移动端约 92%） ---------- */
/* will-change/translateZ 强制提升为合成层，避免移动端 <video> 硬件层穿透遮挡（配合 JS 暂停首页视频双保险） */
.cart-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 250; will-change: transform; transform: translateZ(0); }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(92vw, 560px);
  background: #fff; z-index: 260; display: flex; flex-direction: column;
  box-shadow: -10px 0 32px rgba(0,0,0,.14); will-change: transform;
}
.fade-enter-active, .fade-leave-active { transition: opacity .25s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }
.drawer-enter-active, .drawer-leave-active { transition: transform .3s ease; }
.drawer-enter-from, .drawer-leave-to { transform: translateX(102%); }
.cd-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 12px; }
.cd-head h2 { font-size: 22px; font-weight: 700; }
.cd-close { border: 0; background: none; cursor: pointer; color: var(--text); padding: 4px; display: inline-flex; }
.cd-close:hover { color: var(--primary); }
.cd-empty { padding: 70px 28px; text-align: center; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cd-scroll { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.cd-cols {
  display: flex; justify-content: space-between; padding: 10px 24px 12px;
  border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 13.5px;
}
.cd-list { padding: 6px 24px; display: flex; flex-direction: column; }
.cd-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; align-items: start; padding: 16px 0; }
.cd-item img { width: 88px; height: 88px; object-fit: cover; border-radius: 4px; background: var(--bg); }
.cd-item.invalid { opacity: .7; }
.cd-info { min-width: 0; display: flex; flex-direction: column; }
.cd-name { font-size: 15.5px; font-weight: 600; color: var(--text); text-decoration: none; line-height: 1.55; word-break: break-all; }
.cd-name:hover { color: var(--primary); }
.cd-name.plain { color: var(--text-2); pointer-events: none; }
.cd-price { color: var(--text-2); font-size: 14px; margin-top: 8px; }
.cd-flavor { color: var(--text); font-size: 14.5px; margin-top: 8px; line-height: 1.5; }
.cd-invalid { color: #dc2626; font-size: 13px; font-style: normal; margin-top: 8px; }
.cd-qty-row { display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.cd-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--text); border-radius: 10px; background: #fff; }
.cd-stepper button { width: 46px; height: 46px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--text); }
.cd-stepper button:disabled { color: #c3c9d2; cursor: not-allowed; }
.cd-stepper span { min-width: 44px; text-align: center; font-size: 15.5px; font-weight: 600; }
.cd-trash { border: 0; background: none; color: var(--primary); cursor: pointer; padding: 6px; display: inline-flex; }
.cd-trash svg { width: 17px; height: 17px; }
.cd-trash:hover { color: #d95e0d; }
.cd-sub { font-size: 15.5px; font-weight: 600; color: var(--text); }
.cd-note-head {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 16px 24px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: none; font-size: 15.5px; font-weight: 500; color: var(--text); cursor: pointer; text-align: left;
}
.cd-note-head.open { border-bottom: 0; }
.cd-note-head svg { transition: transform .2s; flex-shrink: 0; }
.cd-note-head.open svg { transform: rotate(180deg); }
.cd-note-body { padding: 12px 24px 16px; border-bottom: 1px solid var(--line); }
.cd-note-body textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; resize: vertical; outline-color: var(--primary);
}
.cd-foot { padding: 16px 24px 22px; background: #fff; }
/* 折扣码行：总额上方，浅灰底输入框 + 添加按钮（参考 RELX 结算页） */
.cd-code-row { display: flex; gap: 10px; margin-bottom: 12px; }
.cd-code-row input {
  flex: 1; min-width: 0; border: 1px solid var(--line); background: #f5f6f8;
  border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--text); outline-color: var(--primary);
}
.cd-code-row input:disabled { color: var(--text-2); }
.cd-code-row button {
  border: 0; background: #eef0f3; color: var(--text-2); border-radius: 10px;
  padding: 0 20px; font-size: 14px; cursor: pointer; flex-shrink: 0;
}
.cd-code-row button:hover { color: var(--text); background: #e3e6ea; }
.cd-promo { display: flex; justify-content: space-between; font-size: 13.5px; color: #dc2626; margin-bottom: 8px; }
.cd-total { display: flex; justify-content: space-between; align-items: center; font-size: 17.5px; font-weight: 700; }
.cd-ship-head { border-top: 0; }
.cd-ship-body { display: flex; flex-direction: column; gap: 10px; }
.cd-ship-body input.invalid { border-color: #e5484d; outline-color: #e5484d; }
.field-err { color: #e5484d; font-size: 12px; margin: -4px 2px 0; }
.cd-ship-body input, .cd-ship-body textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; outline-color: var(--primary); background: #fff;
}
.cd-ship-save {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13px; color: var(--text-2); user-select: none;
}
.cd-ship-save input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.cd-ship-save:hover { color: var(--text); }
.cart-card-ship { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 12.5px; opacity: .9; }
.cd-code-hint { font-size: 12px; color: var(--text-2); margin: -4px 0 10px; }
.cd-checkout {
  display: block; width: 100%; margin-top: 16px; border: 0; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 16.5px; font-weight: 600;
  padding: 15px 0; cursor: pointer; text-align: center; text-decoration: none;
}
.cd-checkout:hover { background: #d95e0d; }
/* 购物车抽屉内所有文字取消加粗 */
.cart-drawer, .cart-drawer h2, .cart-drawer b, .cart-drawer button, .cart-drawer span { font-weight: 400; }
@media (max-width: 768px) {
  .cd-head { padding: 18px 18px 10px; }
  .cd-head h2 { font-size: 20px; }
  .cd-cols, .cd-list, .cd-note-head, .cd-note-body, .cd-foot { padding-left: 18px; padding-right: 18px; }
  .cd-item { grid-template-columns: 78px 1fr auto; gap: 10px; }
  .cd-item img { width: 78px; height: 78px; }
  /* 移动端键盘适配：抽屉随视觉视口缩放，键盘弹出时结账按钮仍可见可操作 */
  .cart-drawer { top: var(--vv-top, 0px); bottom: auto; height: var(--vv-h, 100%); }
  /* 输入框 ≥16px：避免 iOS 聚焦自动放大（全屏缩放编辑感） */
  .cd-note-body textarea, .cd-ship-body input, .cd-ship-body textarea, .cd-code-row input { font-size: 16px; }
}
/* 聊天中的购物车卡片（可展开）：字体与购物车页一致（Assistant 字体栈） */
.bubble.cart-card {
  min-width: 240px; max-width: 280px;
  font-family: "Assistant", "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}
.cart-card-head {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 0; background: none; color: inherit; padding: 0; margin: 0;
  font: inherit; text-align: left; cursor: pointer;
}
.cart-card-title { font-size: 13.5px; }
.cart-card-meta { margin-left: auto; font-size: 11.5px; opacity: .85; white-space: nowrap; }
.cart-card-arrow { font-style: normal; font-size: 12px; transition: transform .2s; }
.cart-card.open .cart-card-arrow { transform: rotate(180deg); }
.cart-card-body { margin-top: 8px; }
.cart-card-item {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px;
  font-size: 12.5px; padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, .3);
}
.cart-card-item .item-name { grid-column: 1 / -1; line-height: 1.45; word-break: break-all; }
/* 订单卡片：所选/备选方案标签独立行展示，备选橙色高亮 */
.item-opts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.opt-tag {
  font-style: normal; font-size: 11px; line-height: 1.5; padding: 1px 8px;
  border-radius: 999px; background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb;
}
.opt-tag.backup { background: #fff7ed; color: #ea580c; border-color: #fed7aa; }
.cart-card-item i.opt-tag { opacity: 1; }
.cart-card-item i { font-style: normal; opacity: .8; }
.cart-card-item em { font-style: normal; font-weight: 600; }
.cart-card-sum { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 12.5px; }
.cart-card-sum .promo-off { color: #ffdada; }
.cart-card-sum b { font-size: 14.5px; }

/* ---------- 下单成功确认页（Shopify thank-you 整页双栏） ---------- */
.thank-you {
  position: fixed; inset: 0; z-index: 1200; background: #fff; overflow-y: auto;
}
.ty-cols { display: flex; min-height: 100vh; }
/* 左栏：主内容（白底） */
.ty-main { flex: 1.25; background: #fff; padding: 34px 48px 80px; }
.ty-main > * { max-width: 600px; margin-left: auto; margin-right: auto; }
.ty-brand { font-size: 22px; font-weight: 800; color: #111; letter-spacing: .5px; margin-bottom: 46px; }
/* 关闭按钮 */
.ty-close {
  position: fixed; top: 16px; right: 18px; z-index: 1210;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e5e7eb;
  background: #fff; color: #6b7280; font-size: 19px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.ty-close:hover { color: #111; border-color: #9ca3af; }
/* 确认编号 + 致谢 */
.ty-confirm { display: flex; align-items: center; gap: 18px; margin-bottom: 38px; }
.ty-check { flex-shrink: 0; }
.ty-confirm-no { font-size: 13px; color: #6b7280; margin: 0 0 3px; }
.ty-confirm-title { font-size: 21px; font-weight: 700; color: #111; margin: 0; }
/* 付款提醒卡片（重要提醒 + 收款图） */
.ty-paycard {
  border: 1px solid #e3e4e6; border-radius: 8px; padding: 30px 34px 34px;
  text-align: center; margin-bottom: 18px;
}
/* 收款引导标题：后台客服门户可配置 */
.ty-pay-title { font-size: 16px; font-weight: 700; color: #d92b20; margin: 0 0 14px; }
.ty-pay-btn {
  display: block; width: 100%; margin: 0 auto; padding: 13px 10px;
  border: 1px solid #d8d9db; border-radius: 6px; background: #fff;
  color: #e8871e; font-size: 14px; font-weight: 600; text-decoration: underline;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
.ty-pay-btn:hover { background: #fffaf2; }
/* 重要提醒 */
.ty-warn { text-align: center; }
.ty-warn-title { font-size: 18px; font-weight: 800; color: #d92b20; margin: 0 0 10px; }
.ty-warn-strong { font-size: 15.5px; font-weight: 700; color: #111; margin: 0 0 4px; }
.ty-warn-time { font-size: 13.5px; color: #111; margin: 0 0 20px; }
.ty-qr-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.ty-qr-box img {
  width: 108px; aspect-ratio: 3/4; border-radius: 8px;
  border: 1px solid #ececec; object-fit: cover; display: block;
}
/* 信息卡片 */
.ty-infocard {
  border: 1px solid #e3e4e6; border-radius: 8px; padding: 18px 22px;
  margin-bottom: 16px; text-align: left;
}
.ty-info-title { font-size: 14.5px; font-weight: 700; color: #111; margin: 0 0 5px; }
.ty-info-text { font-size: 13.5px; color: #374151; margin: 0; }
/* 订单详细信息 */
.ty-dl { margin-top: 6px; }
.ty-dl-row { display: flex; padding: 5px 0; font-size: 13.5px; }
.ty-dl-label { color: #6b7280; min-width: 76px; flex-shrink: 0; }
.ty-dl-val { color: #111; word-break: break-all; }
/* 底部操作区：联系我们/继续购物两个同款按钮并排 */
.ty-actions { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }
.ty-continue {
  padding: 13px 36px; border: none; border-radius: 8px;
  background: var(--primary); color: #fff; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: opacity .15s;
}
.ty-continue:hover { opacity: .88; }
.ty-copyright { margin-top: 44px; padding-top: 18px; border-top: 1px solid #ececec; font-size: 12.5px; color: #9ca3af; }
/* 右栏：订单摘要（灰底） */
.ty-side {
  flex: 1; background: #faf9f7; border-left: 1px solid #ececec;
  padding: 100px 40px 60px;
}
.ty-side > * { max-width: 430px; }
.ty-side-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.ty-side-thumb { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.ty-side-thumb img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 8px;
  border: 1px solid #e5e3df; background: #fff;
}
.ty-side-qty {
  position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px;
  border-radius: 999px; background: #6e6e6e; color: #fff; font-size: 12px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.ty-side-info { flex: 1; min-width: 0; }
.ty-side-name { font-size: 13.5px; font-weight: 600; color: #111; margin: 0; line-height: 1.45; }
.ty-side-opts { margin: 3px 0 0; }
.ty-side-opts i { font-style: normal; font-size: 12px; color: #9ca3af; margin-right: 6px; }
.ty-side-price { font-size: 13.5px; font-weight: 600; color: #111; white-space: nowrap; }
.ty-side-sum { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e8e6e2; }
.ty-side-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 0; font-size: 14px; color: #333; }
.ty-side-disc span:last-child { color: #ef4444; }
.ty-side-total { margin-top: 10px; padding-top: 14px; border-top: 1px solid #e8e6e2; font-size: 16px; font-weight: 700; color: #111; }
.ty-side-total em { font-style: normal; font-size: 12px; color: #6b7280; font-weight: 400; margin-right: 5px; }
.ty-side-total span:last-child { font-size: 19px; }
/* 移动端：单栏堆叠 */
@media (max-width: 900px) {
  .ty-cols { flex-direction: column; }
  .ty-main { padding: 24px 18px 40px; flex: none; }
  .ty-brand { margin-bottom: 30px; }
  .ty-side { padding: 28px 18px 46px; border-left: none; border-top: 1px solid #ececec; flex: none; }
  .ty-side > * { max-width: none; }
  .ty-paycard { padding: 22px 16px 26px; }
  .ty-actions { margin-top: 24px; }
  .ty-continue { padding: 12px 28px; }
}
