/* =========================================================
   H5 Preview - 全局样式
   目标：还原小程序设计：棕色 #8B5A2B 主题、圆角卡片、产品两列网格
   换算：1rpx ≈ 0.5px（以 750rpx 设计稿对应 375px 宽度）
   ========================================================= */
:root {
  --primary: #8B5A2B;
  --primary-soft: #f1e6d8;
  --primary-deep: #6b3f1a;
  --price: #e64340;
  --bg: #f5f5f5;
  --bg2: #faf7f2;
  --text: #333;
  --text-muted: #999;
  --border: #eee;
  --card-bg: #fff;
  --shadow: 0 1px 6px rgba(0,0,0,.05);
  --radius: 8px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; color: var(--text); background: #ececec; font-size: 14px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* 手机外壳布局（桌面：左右分栏；移动端：全屏） */
body { min-height: 100vh; }
#phone-shell {
  position: relative;
  width: 375px;
  min-height: 740px;
  max-height: 96vh;
  margin: 2vh auto;
  background: var(--bg);
  border-radius: 42px;
  box-shadow: 0 16px 50px rgba(0,0,0,.18), 0 0 0 10px #1c1c1e, 0 0 0 12px #444;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#status-bar {
  height: 28px; flex: 0 0 28px; padding: 4px 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; font-size: 12px; font-weight: 600;
  color: #111; border-bottom: 1px solid var(--border);
}
#status-bar .right-icons { font-size: 12px; letter-spacing: 2px; }

#nav-bar {
  flex: 0 0 44px; height: 44px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 28px; z-index: 10;
}
#nav-bar.hidden { display: none; }
.nav-back {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #333;
}
.nav-back:active { background: #f1f1f1; }
.nav-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.nav-right { width: 32px; height: 32px; }

#page-root {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(env(safe-area-inset-bottom) + 6px);
  background: var(--bg);
}
#page-root.has-tabbar { padding-bottom: 60px; }
#page-root.has-detailbar { padding-bottom: 80px; }

/* TabBar */
.tab-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 56px; display: flex; background: #fff;
  border-top: 1px solid var(--border); z-index: 20;
  padding-bottom: env(safe-area-inset-bottom);
}
.tab-bar.hidden { display: none; }
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #999; font-size: 11px; gap: 2px;
}
.tab-item.active { color: var(--primary); }
.tab-item.active .tab-icon { transform: scale(1.05); }
.tab-icon { font-size: 20px; line-height: 1; }
.tab-text { line-height: 1; }

/* 侧边说明（桌面可见） */
#side-info {
  position: fixed; right: 24px; top: 24px; width: 280px;
  background: #fff; border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
#side-info h2 { margin: 0 0 8px; font-size: 16px; color: var(--primary-deep); }
#side-info .muted { color: #8a8178; font-size: 12.5px; line-height: 1.7; }
#side-info ul { padding-left: 18px; margin: 6px 0 12px; font-size: 12.5px; line-height: 1.9; color: #4a4a4a; }
#side-info .source-links { border-top: 1px dashed #eee; padding-top: 10px; }
#side-info .source-links a { color: var(--primary); font-weight: 600; font-size: 13px; }

@media (max-width: 900px) {
  #side-info { display: none; }
  #phone-shell { width: 100%; height: 100vh; max-height: none; min-height: 100vh; margin: 0; border-radius: 0; box-shadow: none; }
}

/* ===== 通用工具类（对应 app.wxss） ===== */
.container { padding: 12px; box-sizing: border-box; }
.card { background: var(--card-bg); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); margin-bottom: 12px; }
.mt-5 { margin-top: 5px; } .mt-10 { margin-top: 10px; } .mt-15 { margin-top: 15px; }
.mb-5 { margin-bottom: 5px; } .mb-10 { margin-bottom: 10px; } .mb-15 { margin-bottom: 15px; }
.p-10 { padding: 10px; } .p-15 { padding: 15px; }
.text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-ellipsis-2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-price { color: var(--price); font-weight: 700; }
.primary-color { color: var(--primary); }
.primary-bg { background: var(--primary); color: #fff; }
.flex { display: flex; }
.flex-row { display: flex; flex-direction: row; }
.flex-col { display: flex; flex-direction: column; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-1 { flex: 1; min-width: 0; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.divider { height: 1px; background: var(--border); margin: 10px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 36px; font-size: 14px; padding: 0 20px; height: 36px; line-height: 36px; box-sizing: border-box; border: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:active { background: var(--primary-deep); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: #fff; }
.btn-block { display: flex; width: 100%; }
.empty-state { padding: 60px 20px; text-align: center; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 60px; margin-bottom: 10px; }
.empty-state .empty-text { font-size: 14px; }

/* 通用章节标题 */
.section { margin: 14px 12px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 10px; }
.section-title { display: flex; align-items: center; font-size: 16px; font-weight: 700; color: #222; }
.section-title .title-bar { width: 3px; height: 14px; background: var(--primary); border-radius: 2px; margin-right: 8px; }
.section-more { font-size: 12px; color: var(--text-muted); }

/* ===== 首页 ===== */
.index-page .search-bar { padding: 10px 12px; background: #fff; }
.index-page .search-input-wrap {
  display: flex; align-items: center;
  height: 36px; background: #f2f0ec; border-radius: 18px; padding: 0 14px;
}
.search-icon { font-size: 14px; margin-right: 6px; color: #999; }
.search-input {
  flex: 1; border: 0; outline: 0; background: transparent; font-size: 13px;
  height: 34px;
}
.banner-wrap { background: #fff; padding: 0 12px 10px; }
.banner-swiper, .gallery-swiper {
  position: relative; width: 100%; aspect-ratio: 2/1;
  border-radius: 12px; overflow: hidden;
}
.swiper-track { display: flex; height: 100%; transition: transform .5s ease; }
.swiper-slide { flex: 0 0 100%; height: 100%; }
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swiper-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 5px;
}
.swiper-dots .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.5); }
.swiper-dots .dot.active { background: #fff; width: 12px; border-radius: 3px; }
.gallery-indicator {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(0,0,0,.5); color: #fff; font-size: 12px;
  padding: 2px 8px; border-radius: 10px;
}

.quick-entry { display: flex; gap: 10px; padding: 0 12px 4px; }
.entry-card {
  flex: 1; background: #fff; border-radius: 12px; padding: 12px; display: flex; align-items: center;
  box-shadow: var(--shadow);
}
.entry-card.company-card { background: linear-gradient(135deg, #fff5e6, #ffe9cc); }
.entry-card.factory-card { background: linear-gradient(135deg, #e9f4ff, #d1e9ff); }
.entry-icon { font-size: 28px; margin-right: 8px; }
.entry-content { flex: 1; min-width: 0; }
.entry-title { font-size: 14px; font-weight: 700; color: #222; }
.entry-desc { font-size: 11.5px; color: #777; margin-top: 2px; }
.entry-arrow { font-size: 22px; color: #bbb; }

.feature-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.feature-image { width: 100%; aspect-ratio: 16/9; overflow: hidden; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-body { padding: 12px; }
.feature-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.feature-desc { color: #666; font-size: 12.5px; line-height: 1.6; margin-bottom: 8px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-tags .tag {
  background: var(--primary-soft); color: var(--primary);
  padding: 2px 8px; border-radius: 4px; font-size: 11px;
}
.factory-stats { display: flex; margin-top: 6px; padding: 10px 4px; border-radius: 8px; background: #fafafa; }
.stat-item { flex: 1; text-align: center; }
.stat-value { font-size: 16px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 11px; color: #777; margin-top: 2px; }
.stat-divider { width: 1px; background: #eee; margin: 2px 0; }

/* 产品网格（两列） */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px 12px; }
.product-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.product-image { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; background: #f5f5f5; }
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-badge {
  position: absolute; top: 6px; left: 6px;
  background: var(--price); color: #fff; font-size: 10.5px;
  padding: 2px 7px; border-radius: 10px;
}
.product-info { padding: 8px 10px 10px; }
.product-name { font-size: 13px; line-height: 1.4; height: 36px; color: #222; }
.product-category { font-size: 11.5px; color: #aaa; margin-top: 2px; }
.product-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 6px; }
.product-price { display: flex; align-items: baseline; gap: 1px; }
.product-price .currency { color: var(--price); font-size: 12px; font-weight: 700; }
.product-price .price-num { color: var(--price); font-size: 17px; font-weight: 800; }
.original-price { color: #bbb; font-size: 11.5px; text-decoration: line-through; margin-left: 4px; }
.product-sales { font-size: 11px; color: #999; }

.bottom-space { height: 30px; }

/* ===== 首页企业 / 工厂入口卡片 ===== */
.index-page .company-card,
.index-page .factory-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); display: flex; align-items: stretch;
}
.index-page .company-image,
.index-page .factory-image { flex: 0 0 130px; width: 130px; overflow: hidden; background: #f5f5f5; }
.index-page .company-image img,
.index-page .factory-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.index-page .company-body,
.index-page .factory-body { flex: 1; padding: 14px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.index-page .company-name,
.index-page .factory-name { font-size: 16px; font-weight: 700; color: #222; }
.index-page .company-desc { font-size: 12.5px; color: #888; margin-top: 6px; line-height: 1.5; }
.index-page .factory-stats { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #888; margin-top: 8px; background: transparent; padding: 0; }
.index-page .factory-stats .divider { color: #ddd; }

/* ===== 分类页 ===== */
.category-page .search-bar { padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--border); }
.search-box { height: 34px; background: #f2f0ec; border-radius: 17px; display: flex; align-items: center; padding: 0 14px; color: #999; font-size: 12.5px; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; height: 32px; font-size: 13px; }
.clear-btn { color: #bbb; font-size: 18px; width: 22px; text-align: center; }
.category-page .main-content { display: flex; height: calc(100vh - 330px); min-height: 520px; }
.category-left {
  width: 92px; flex: 0 0 92px; background: #f7f3ed; overflow-y: auto;
  padding: 6px 0;
}
.cate-item {
  position: relative; padding: 14px 6px 14px 4px; text-align: center;
  color: #555; font-size: 12.5px;
}
.cate-item.active { background: #fff; color: var(--primary); font-weight: 600; }
.cate-indicator {
  position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; background: var(--primary); border-radius: 0 2px 2px 0;
}
.cate-icon { font-size: 20px; margin-bottom: 3px; }
.cate-name { line-height: 1.3; }
.category-right {
  flex: 1; overflow-y: auto; background: #fff; padding: 10px 12px 16px;
}
.right-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.header-title { font-size: 15px; font-weight: 700; }
.header-action { font-size: 12px; color: var(--primary); }
.section-label {
  font-size: 13px; font-weight: 600;
  margin: 12px 0 8px; padding-left: 4px;
  border-left: 3px solid var(--primary);
}
.sub-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sub-cate-item { text-align: center; }
.sub-cate-box {
  width: 48px; height: 48px; margin: 0 auto 4px;
  background: var(--primary-soft); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.sub-cate-name { font-size: 11.5px; color: #333; }
.hot-products-section .product-grid { padding: 6px 0 0; }
.empty-products { padding: 40px 0; text-align: center; color: #999; }

/* ===== 个人中心 ===== */
.profile-page .user-card { position: relative; background: #fff; padding-bottom: 14px; overflow: hidden; }
.profile-page .user-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary), #c79a69);
  height: 120px;
}
.profile-page .user-content {
  position: relative; padding: 20px 16px 0;
  display: flex; align-items: center; color: #fff;
}
.avatar-wrap { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #fff3; display: flex; align-items: center; justify-content: center; }
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar-emoji { font-size: 30px; background: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #555; }
.profile-page .user-info { flex: 1; margin-left: 12px; min-width: 0; }
.user-nickname { font-size: 16px; font-weight: 600; }
.login-tip, .user-meta { font-size: 12px; opacity: .9; margin-top: 2px; }
.logout-btn {
  border: 1px solid rgba(255,255,255,.6); color: #fff;
  padding: 3px 10px; border-radius: 14px; font-size: 11.5px;
}
.profile-page .user-stats {
  position: relative; margin: 18px 16px 0;
  background: #fff; border-radius: 12px; padding: 14px 0;
  display: flex; box-shadow: var(--shadow);
}
.profile-page .stat-item { flex: 1; text-align: center; cursor: pointer; }
.profile-page .stat-value { font-size: 17px; font-weight: 700; color: var(--primary); }
.profile-page .stat-label { font-size: 11.5px; color: #777; margin-top: 2px; }
.profile-page .stat-divider { width: 1px; background: #eee; margin: 6px 0; }
.profile-page .content-wrap { padding: 12px; }
.group-title { font-size: 13px; color: var(--text-muted); margin: 4px 0 10px; padding-left: 4px; }
.menu-list { display: flex; flex-direction: column; }
.menu-item {
  display: flex; align-items: center; padding: 12px 4px;
  border-bottom: 1px solid #f3f0ea;
  position: relative;
}
.menu-item:last-child { border-bottom: 0; }
.menu-icon { font-size: 18px; width: 24px; text-align: center; margin-right: 8px; }
.menu-label { flex: 1; font-size: 14px; color: #222; }
.menu-badge {
  background: var(--price); color: #fff;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  font-size: 10.5px; display: inline-flex; align-items: center; justify-content: center;
}
.menu-arrow { color: #ccc; font-size: 20px; }
.profile-page .footer-info { margin-top: 20px; text-align: center; color: #aaa; font-size: 12px; line-height: 1.8; }
.profile-page .footer-logo { color: var(--primary); font-weight: 700; font-size: 14px; }

/* ===== 产品列表 ===== */
.product-list-page .search-header {
  display: flex; align-items: center;
  padding: 8px 10px; background: #fff; border-bottom: 1px solid var(--border);
  gap: 6px;
}
.back-btn { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #333; }
.product-list-page .search-box { flex: 1; }
.sort-bar {
  display: flex; background: #fff; border-bottom: 1px solid var(--border);
  height: 40px;
}
.sort-item { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #555; position: relative; }
.sort-item.active { color: var(--primary); font-weight: 600; }
.sort-item.active::after {
  content: ''; position: absolute; left: 30%; right: 30%; bottom: 0;
  height: 2px; background: var(--primary); border-radius: 1px;
}
.filter-tags { padding: 10px 12px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-tag {
  background: var(--primary-soft); color: var(--primary);
  padding: 3px 10px; border-radius: 12px; font-size: 12px;
  display: inline-flex; align-items: center; gap: 4px;
}
.tag-close { font-size: 14px; color: var(--primary-deep); font-weight: 700; }
.result-count { margin-left: auto; color: #888; font-size: 12px; }
.product-list-page .product-grid { padding: 12px; }

/* ===== 产品详情 ===== */
.detail-page .gallery-wrap { position: relative; background: #fff; }
.gallery-swiper { aspect-ratio: 1/1; border-radius: 0; }
.price-card { background: #fff; padding: 12px 14px 14px; margin-top: -10px; border-top-left-radius: 14px; border-top-right-radius: 14px; position: relative; }
.price-row { display: flex; align-items: flex-end; }
.price-main { display: flex; align-items: baseline; gap: 3px; }
.price-main .currency { color: var(--price); font-size: 14px; font-weight: 700; }
.price-main .price-value { color: var(--price); font-size: 24px; font-weight: 800; }
.discount-badge {
  background: linear-gradient(90deg, #ffddcc, #ffc7a5); color: #c94c00;
  font-size: 10.5px; font-weight: 700;
  padding: 1px 7px; border-radius: 3px; margin-left: 8px;
}
.detail-page .product-title { margin-top: 6px; font-size: 15px; font-weight: 600; color: #222; line-height: 1.4; max-height: 42px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.product-tags .tag-item {
  background: var(--primary-soft); color: var(--primary);
  padding: 2px 8px; border-radius: 4px; font-size: 11px;
}
.product-meta { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; color: #777; }
.section-card { background: #fff; padding: 12px 14px; margin: 10px 0; }
.section-card .section-title { display: flex; align-items: center; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.section-card .section-title .title-bar { width: 3px; height: 14px; background: var(--primary); border-radius: 2px; margin-right: 8px; }
.product-desc { font-size: 13px; color: #444; line-height: 1.7; }
.params-table { font-size: 12.5px; }
.param-row { display: flex; padding: 8px 0; border-bottom: 1px dashed #eee; }
.param-row:last-child { border-bottom: 0; }
.param-label { width: 84px; color: #888; }
.param-value { flex: 1; color: #333; }
.detail-images { display: flex; flex-direction: column; gap: 6px; }
.detail-image-item img { width: 100%; display: block; }
.detail-footer { margin-top: 18px; display: flex; align-items: center; gap: 10px; color: #aaa; font-size: 12px; justify-content: center; }
.detail-footer .footer-line { flex: 0 0 50px; height: 1px; background: #ddd; }

.bottom-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 56px; background: #fff; border-top: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 10px 0 6px; z-index: 20;
  padding-bottom: env(safe-area-inset-bottom);
}
.bar-left { display: flex; flex: 0 0 auto; gap: 4px; }
.bar-btn { width: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: #666; }
.bar-icon { font-size: 20px; line-height: 1; }
.bar-text { margin-top: 2px; }
.bar-right { flex: 1; display: flex; height: 40px; border-radius: 20px; overflow: hidden; margin-left: 4px; }
.btn-contact, .btn-buy { flex: 1; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 600; }
.btn-contact { background: #f3b583; }
.btn-buy { background: var(--primary); }

/* 联系弹层 */
.contact-mask, .modal-mask, .preview-mask {
  position: absolute; inset: 0; z-index: 50;
  background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; justify-content: center;
}
.preview-mask { align-items: center; }
.contact-popup {
  width: 100%; background: #fff; border-top-left-radius: 16px; border-top-right-radius: 16px;
  padding: 14px 16px 20px; max-height: 70%;
  animation: slideUp .22s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.popup-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.popup-title { font-size: 16px; font-weight: 700; }
.popup-close { font-size: 24px; color: #999; width: 28px; text-align: center; }
.contact-row {
  display: flex; align-items: center; padding: 14px 0;
  border-bottom: 1px solid #f4f0e8;
}
.contact-row:last-child { border-bottom: 0; }
.contact-icon { font-size: 22px; width: 32px; text-align: center; margin-right: 10px; }
.contact-info { flex: 1; }
.contact-label { font-size: 12px; color: #888; }
.contact-value { font-size: 14px; font-weight: 600; color: #333; margin-top: 2px; }
.contact-tag { color: var(--primary); font-weight: 600; font-size: 13px; }

/* ===== 企业 / 工厂 ===== */
.company-page .cover-wrap, .factory-page .cover-wrap { position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; }
.cover-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%); }
.cover-content { position: absolute; left: 16px; right: 16px; bottom: 18px; color: #fff; }
.company-logo { font-size: 30px; width: 54px; height: 54px; background: rgba(255,255,255,.95); color: var(--primary); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.company-name { font-size: 20px; font-weight: 800; }
.company-slogan { font-size: 13px; opacity: .95; margin-top: 4px; }
.factory-badge {
  display: inline-block; background: rgba(0,0,0,.45); color: #fff;
  padding: 4px 10px; border-radius: 12px; font-size: 11.5px; margin-bottom: 8px;
}
.info-card { margin: 12px; }
.info-row { display: flex; }
.info-item { flex: 1; padding: 10px 6px; }
.info-label { font-size: 11.5px; color: #888; }
.info-value { font-size: 14px; font-weight: 600; margin-top: 3px; color: #222; }
.company-intro { font-size: 13px; color: #444; line-height: 1.8; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gallery-item { aspect-ratio: 1/1; overflow: hidden; border-radius: 8px; background: #f2f2f2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.advantage-list, .workshop-list, .process-list, .adv-item { display: flex; flex-direction: column; gap: 12px; }
.advantage-item, .workshop-item, .adv-item { display: flex; gap: 10px; align-items: flex-start; }
.advantage-icon, .adv-icon { width: 38px; height: 38px; flex: 0 0 38px; background: var(--primary-soft); color: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.advantage-title, .workshop-name, .adv-title { font-size: 14px; font-weight: 700; color: #222; }
.advantage-desc, .workshop-desc, .adv-desc { font-size: 12.5px; color: #666; line-height: 1.6; margin-top: 3px; }
.philosophy, .philosophy-text { font-size: 13px; color: #444; line-height: 1.8; }
.philosophy-text + .philosophy-text { margin-top: 10px; }

/* ============ 文字块通用样式（纯文字展示） ============ */
.text-block { font-size: 13.5px; color: #444; line-height: 1.85; }
.text-line { margin-top: 10px; word-break: break-all; white-space: pre-wrap; }
.text-line:first-child { margin-top: 0; }

.timeline { position: relative; padding-left: 18px; }
.timeline-item { position: relative; padding-bottom: 18px; }
.timeline-year { font-size: 13px; color: var(--primary); font-weight: 700; }
.timeline-dot { position: absolute; left: -18px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.timeline-line { position: absolute; left: -14px; top: 14px; bottom: 0; width: 2px; background: #f1e2cf; }
.timeline-event { font-size: 13px; color: #444; margin-top: 3px; }
.timeline-item:last-child .timeline-line { display: none; }

.workshop-image-wrap { width: 100px; flex: 0 0 100px; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; }
.workshop-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.equipment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.equipment-item { background: #faf7f2; border-radius: 8px; padding: 10px 12px; }
.equipment-name { font-size: 12.5px; color: #333; font-weight: 600; }
.equipment-count { color: var(--primary); font-weight: 700; font-size: 12.5px; margin-top: 4px; }
.cert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cert-item { background: #faf7f2; border-radius: 8px; padding: 10px; text-align: center; }
.cert-icon { font-size: 22px; }
.cert-title { font-size: 13px; font-weight: 700; color: var(--primary); margin-top: 2px; }
.cert-desc { font-size: 11px; color: #888; margin-top: 2px; }
.process-left { width: 62px; flex: 0 0 62px; position: relative; padding-bottom: 4px; }
.process-step {
  background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 600;
  padding: 3px 8px; border-radius: 10px; display: inline-block;
}
.process-line {
  position: absolute; left: 14px; top: 26px; bottom: -14px; width: 2px; background: #f1e2cf;
}
.process-item:last-child .process-line { display: none; }
.process-title { font-size: 13.5px; font-weight: 700; color: #222; }
.process-desc { font-size: 12.5px; color: #666; margin-top: 3px; line-height: 1.6; }
.factory-page .stats-wrap { padding: 0; }
.factory-page .stats-card {
  margin: 12px; display: flex; padding: 12px 0;
}
.factory-page .stats-item { flex: 1; text-align: center; }
.factory-page .stats-value { font-size: 17px; font-weight: 800; color: var(--primary); }
.factory-page .stats-label { font-size: 11px; color: #888; margin-top: 2px; }
.factory-page .stats-divider { width: 1px; background: #eee; margin: 4px 0; }

/* 联系页通用列表 */
.contact-list, .contact-info { display: flex; flex-direction: column; }
.contact-item, .contact-row {
  display: flex; align-items: center; padding: 12px 0;
  border-bottom: 1px dashed #f0ebe2;
}
.contact-item:last-child, .contact-row:last-child { border-bottom: 0; }
.contact-item .contact-icon, .contact-row .contact-label { width: 64px; font-size: 20px; text-align: center; margin-right: 8px; }
.contact-row { padding: 10px 0; }
.contact-row .contact-label { text-align: left; font-size: 12.5px; width: 76px; color: #888; }
.contact-row .contact-value { font-size: 13px; color: #222; font-weight: 500; }
.contact-action { font-size: 12.5px; font-weight: 600; }

/* ===== 客服中心 ===== */
.service-page .header-card {
  padding: 20px 16px 22px; text-align: center;
  background: linear-gradient(135deg, var(--primary), #c79a69); color: #fff;
}
.service-page .header-icon { font-size: 30px; }
.service-page .header-title { font-size: 17px; font-weight: 700; margin-top: 6px; }
.service-page .service-time { margin-top: 4px; opacity: .9; font-size: 12px; }
.service-page .content-wrap { padding: 12px; margin-top: -14px; }
.service-page .section-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contact-card {
  border-radius: 10px; padding: 14px 10px; text-align: center;
  background: #faf7f2;
}
.contact-card.phone-card { background: linear-gradient(135deg, #fff5e6, #ffe0bf); }
.contact-card.wechat-card { background: linear-gradient(135deg, #e9f6ee, #c6ecd4); }
.cc-icon { font-size: 24px; }
.cc-title { font-size: 12.5px; color: #555; margin-top: 2px; }
.cc-value { font-size: 13.5px; font-weight: 700; margin-top: 2px; }
.cc-tag { margin-top: 8px; display: inline-block; background: #fff; color: var(--primary); font-size: 11.5px; border-radius: 12px; padding: 2px 10px; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-item { text-align: center; padding: 8px 0; background: #faf7f2; border-radius: 10px; }
.quick-icon { font-size: 22px; }
.quick-label { font-size: 11.5px; color: #444; margin-top: 2px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border-radius: 10px; background: #faf7f2; padding: 10px 12px; }
.faq-item.open { background: var(--primary-soft); }
.faq-q { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.q-text { display: flex; gap: 6px; align-items: center; flex: 1; min-width: 0; }
.q-label { background: var(--primary); color: #fff; border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: 0 0 18px; }
.q-arrow { color: var(--primary); font-weight: 700; width: 20px; text-align: center; }
.faq-a { margin-top: 8px; font-size: 12.5px; color: #444; line-height: 1.7; padding: 8px 10px; background: #fff; border-radius: 8px; display: flex; gap: 6px; }
.a-label { background: var(--price); color: #fff; border-radius: 50%; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: 0 0 18px; }
.service-page .bottom-tip { margin-top: 14px; text-align: center; color: #999; font-size: 12px; line-height: 1.7; }

/* ===== 意见反馈 ===== */
.feedback-page .content-wrap { padding: 12px; }
.card-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: baseline; gap: 6px; }
.title-tip { font-size: 11.5px; }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.type-item {
  border: 1px solid #eee; border-radius: 8px; padding: 8px 0;
  text-align: center; font-size: 12.5px; color: #555; background: #fff;
}
.type-item.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.content-input {
  width: 100%; min-height: 120px; border: 1px solid #eee; border-radius: 8px;
  padding: 10px; font-size: 13px; outline: 0; resize: vertical; line-height: 1.7;
  font-family: inherit;
}
.content-input:focus { border-color: var(--primary); }
.count-row { text-align: right; margin-top: 4px; font-size: 11.5px; }
.image-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.image-item, .upload-btn { position: relative; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: #f5f1ea; }
.image-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.remove-btn {
  position: absolute; top: 2px; right: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.upload-btn {
  border: 1px dashed #d1bfa7;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #aa8c69;
}
.upload-icon { font-size: 22px; font-weight: 300; line-height: 1; }
.upload-text { font-size: 11px; margin-top: 4px; }
.contact-input {
  width: 100%; height: 40px; border: 1px solid #eee; border-radius: 8px;
  padding: 0 12px; font-size: 13px; outline: 0; font-family: inherit;
}
.contact-input:focus { border-color: var(--primary); }
.tips-card {
  background: #fff8ed; border: 1px solid #ffe1ba; border-radius: 10px;
  padding: 12px; display: flex; gap: 10px; margin-bottom: 12px;
}
.tips-icon { font-size: 22px; }
.tips-title { font-size: 13px; font-weight: 700; color: #7a5216; }
.tips-desc { font-size: 12px; color: #7a5216; line-height: 1.8; margin-top: 2px; white-space: pre-line; }
.submit-wrap { padding: 4px 0 8px; }
.submit-btn {
  width: 100%; height: 44px; border-radius: 22px; border: 0; background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 700;
}
.submit-btn:active { background: var(--primary-deep); }
.submit-btn.disabled, .submit-btn:disabled { background: #c7a98a; }

/* ===== 平台简介 about ===== */
.about-page .hero-section {
  background: linear-gradient(135deg, var(--primary), #c79a69); color: #fff;
  padding: 28px 20px 34px; text-align: center;
}
.about-page .hero-icon { font-size: 40px; }
.about-page .hero-title { font-size: 22px; font-weight: 800; margin-top: 6px; }
.about-page .hero-slogan { font-size: 13px; opacity: .95; margin-top: 4px; letter-spacing: 2px; }
.about-page .content { padding: 0 12px 12px; margin-top: -14px; }
.intro-text { font-size: 13.5px; color: #444; line-height: 1.9; }
.intro-text .first-letter {
  float: left; font-size: 30px; font-weight: 800; color: var(--primary);
  line-height: 1; margin: 2px 6px 0 0;
}
.advantage-list { padding: 4px 0; }

/* ===== 足迹页 ===== */
.footprint-page .top-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.count-text { color: #666; }
.bar-right .bar-btn { color: var(--primary); font-weight: 600; }
.footprint-page .list-content { padding: 0; background: var(--bg); }
.foot-item {
  display: flex; gap: 10px; padding: 10px 12px;
  background: #fff; margin-bottom: 6px; position: relative;
}
.foot-item.edit-mode { padding-left: 8px; }
.check-box { width: 26px; display: flex; align-items: center; justify-content: center; }
.check-inner {
  width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #d8d2c6;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px;
}
.check-inner.checked { background: var(--primary); border-color: var(--primary); }
.item-image { width: 100px; flex: 0 0 100px; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: #f2f2f2; }
.item-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 2px 0; }
.item-name { font-size: 13px; line-height: 1.4; color: #222; height: 36px; }
.item-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.item-price { display: flex; align-items: baseline; }
.item-price .currency { color: var(--price); font-size: 12px; font-weight: 700; }
.item-price .price-num { color: var(--price); font-size: 16px; font-weight: 800; }
.item-time { font-size: 11px; color: #aaa; }
.empty-state .empty-title { font-size: 15px; color: #444; margin-bottom: 6px; font-weight: 600; }
.empty-state .empty-desc { font-size: 12.5px; color: #888; margin-bottom: 18px; }
.empty-btn { display: inline-block; background: var(--primary); color: #fff; padding: 8px 22px; border-radius: 20px; font-size: 13px; }
.edit-bottom-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  height: 54px; background: #fff; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
}
.select-all-wrap { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #444; }
.bottom-btns { display: flex; gap: 8px; }
.btn-secondary { padding: 7px 16px; border-radius: 18px; background: #f2f0ec; color: #444; font-size: 13px; }
.edit-bottom-bar .btn-primary { padding: 7px 16px; border-radius: 18px; background: var(--primary); color: #fff; font-size: 13px; }

/* ===== 收藏页 ===== */
.favorites-page .top-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--border);
}
.favorites-page .list-content { padding: 10px 12px; background: var(--bg); }
.fav-item {
  display: flex; gap: 10px; align-items: center; padding: 10px 12px;
  background: #fff; border-radius: 10px; margin-bottom: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  position: relative;
}
.fav-item.edit-mode { padding-left: 8px; }
.favorites-page .item-name { height: auto; min-height: 36px; }
.fav-heart { font-size: 22px; padding: 4px 6px; align-self: flex-start; }

/* ===== 订单页 ===== */
.orders-page { background: var(--bg); min-height: 100%; }
.orders-page .tabs {
  display: flex; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}
.orders-page .tabs .tab {
  flex: 1; text-align: center; padding: 12px 0;
  font-size: 13px; color: #666; position: relative;
}
.orders-page .tabs .tab.active { color: var(--primary); font-weight: 600; }
.orders-page .tabs .tab.active::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 24px; height: 2px; background: var(--primary);
  transform: translateX(-50%); border-radius: 2px;
}
.orders-page .tab-label { display: inline-block; }
.orders-page .tab-badge {
  display: inline-block; vertical-align: middle; margin-left: 4px;
  min-width: 16px; height: 16px; padding: 0 4px; line-height: 16px;
  background: var(--price); color: #fff; border-radius: 8px;
  font-size: 10px; text-align: center;
}
.orders-page .list-content { padding: 12px; background: var(--bg); }
.order-card {
  background: #fff; border-radius: 10px; padding: 12px;
  margin-bottom: 12px; box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.order-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 8px; margin-bottom: 8px;
  border-bottom: 1px dashed #eee;
}
.order-no { font-size: 11px; color: #888; }
.order-status { font-size: 13px; font-weight: 600; }
.status-pending_pay { color: var(--price); }
.status-pending_ship { color: #ff9500; }
.status-pending_receive { color: #2489ff; }
.status-completed { color: #4caf50; }
.status-cancelled { color: #999; }
.product-row {
  display: flex; gap: 10px; padding: 6px 0;
}
.product-row .p-image {
  width: 72px; flex: 0 0 72px; aspect-ratio: 1/1; border-radius: 6px;
  overflow: hidden; background: #f2f2f2;
}
.product-row .p-image img { width: 100%; height: 100%; object-fit: cover; }
.product-row .p-info {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  justify-content: space-between; padding: 2px 0;
}
.product-row .p-name { font-size: 13px; line-height: 1.4; color: #222; }
.product-row .p-spec { font-size: 11px; color: #999; }
.product-row .p-right {
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: flex-end; padding: 2px 0;
}
.product-row .p-price { font-size: 13px; font-weight: 600; }
.product-row .p-qty { font-size: 11px; color: #999; }
.order-foot {
  margin-top: 8px; padding-top: 10px; border-top: 1px dashed #eee;
}
.order-total { text-align: right; font-size: 12px; color: #666; margin-bottom: 10px; }
.order-total .currency { color: var(--price); font-size: 11px; font-weight: 700; }
.order-total .total-amount { color: var(--price); font-size: 16px; font-weight: 800; }
.order-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.act {
  padding: 6px 14px; border-radius: 14px; border: 1px solid #ddd;
  background: #fff; font-size: 12px; color: #555;
}
.act.primary {
  background: var(--primary); color: #fff; border-color: transparent;
}

/* ===== 优惠券页 ===== */
.coupons-page { background: var(--bg); min-height: 100%; }
.coupons-page .tabs {
  display: flex; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}
.coupons-page .tabs .tab {
  flex: 1; text-align: center; padding: 12px 0;
  font-size: 13px; color: #666; position: relative;
}
.coupons-page .tabs .tab.active { color: var(--primary); font-weight: 600; }
.coupons-page .tabs .tab.active::after {
  content: ''; position: absolute; left: 50%; bottom: 0;
  width: 24px; height: 2px; background: var(--primary);
  transform: translateX(-50%); border-radius: 2px;
}
.coupons-page .list-content { padding: 12px; }
.coupon-card {
  display: flex; min-height: 92px; background: #fff;
  border-radius: 10px; overflow: hidden; margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.coupon-card.used { filter: grayscale(100%); opacity: 0.78; }
.coupon-left {
  width: 110px; flex-shrink: 0; color: #fff;
  background: linear-gradient(135deg, var(--primary), #A0522D);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
}
.coupon-card.used .coupon-left { background: linear-gradient(135deg,#999,#bbb); }
.coupon-left::after {
  content: ''; position: absolute; right: -5px; top: 0; bottom: 0; width: 10px;
  background:
    radial-gradient(circle at 5px 10px, transparent 5px, #fff 5px) 0 0/10px 20px repeat-y;
}
.coupon-left .amount-row { display: flex; align-items: baseline; line-height: 1; }
.coupon-left .currency { font-size: 14px; font-weight: 700; }
.coupon-left .amount { font-size: 34px; font-weight: 800; margin-left: 2px; }
.coupon-left .threshold { font-size: 11px; opacity: .9; margin-top: 5px; }
.coupon-right {
  flex: 1; min-width: 0; padding: 10px 12px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.coupon-name { font-size: 14px; font-weight: 600; color: #222; }
.coupon-scope { font-size: 11px; color: #888; }
.coupon-expire { font-size: 11px; color: #aaa; }
.use-btn {
  align-self: flex-end; padding: 5px 14px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #A0522D);
  color: #fff; font-size: 12px;
}
.tag-used, .tag-expired {
  align-self: flex-end; font-size: 11px; color: #999;
  border: 1px solid #ddd; padding: 4px 12px; border-radius: 14px;
}
.tag-expired { color: var(--price); border-color: #ffbfbf; }
.tip-bar { text-align: center; font-size: 11px; color: #bbb; padding: 10px; }

/* ===== Toast / Loading / Modal ===== */
.toast {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 80; background: rgba(0,0,0,.75); color: #fff;
  padding: 10px 16px; border-radius: 8px; font-size: 13px; max-width: 78%;
  text-align: center; line-height: 1.5;
  animation: toastIn .18s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -45%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.toast.hidden { display: none; }

.loading-mask { position: absolute; inset: 0; z-index: 90; background: rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; }
.loading-mask.hidden { display: none; }
.loading-box {
  background: rgba(0,0,0,.7); color: #fff; padding: 18px 22px; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 110px;
}
.spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 13px; }

.modal-mask.hidden { display: none; }
.modal-mask { align-items: center; }
.modal-box {
  width: 80%; background: #fff; border-radius: 12px; overflow: hidden;
  animation: modalIn .18s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.modal-title { padding: 16px 16px 6px; font-size: 15px; font-weight: 700; text-align: center; }
.modal-content { padding: 6px 16px 18px; color: #444; font-size: 13.5px; line-height: 1.7; text-align: center; white-space: pre-line; }
.modal-btns { display: flex; border-top: 1px solid var(--border); height: 46px; }
.modal-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 14.5px; color: #555; border-left: 1px solid var(--border);
}
.modal-btn:first-child { border-left: 0; }
.modal-btn.confirm { color: var(--primary); font-weight: 700; }

.action-sheet {
  width: 100%; background: #f6f2ea;
  border-top-left-radius: 16px; border-top-right-radius: 16px;
  padding: 6px 0 10px; animation: slideUp .22s ease;
}
.action-list { background: #fff; margin: 6px 10px; border-radius: 12px; overflow: hidden; }
.action-item { padding: 14px 10px; text-align: center; font-size: 15px; color: #333; border-bottom: 1px solid #f2eee6; }
.action-item:last-child { border-bottom: 0; }
.action-cancel { margin: 0 10px; background: #fff; border-radius: 12px; text-align: center; padding: 14px; color: var(--primary); font-weight: 600; }

.preview-mask { background: #000; z-index: 95; flex-direction: column; }
.preview-mask.hidden { display: none; }
.preview-close { position: absolute; right: 16px; top: 40px; color: #fff; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; }
.preview-mask img { max-width: 100%; max-height: 80vh; object-fit: contain; }
.preview-index { color: #fff; margin-top: 14px; font-size: 13px; }
