/* ===================== 德辉储存 · 手机端官网 ===================== */

:root {
  --blue-950: #071736;
  --blue-900: #0a2a6b;
  --blue-800: #0c3a8c;
  --blue-700: #0a4bd6;
  --blue-600: #1a6bff;
  --blue-500: #3d8bff;
  --blue-400: #69a8ff;
  --cyan: #00c6ff;
  --cyan-300: #4dd7ff;
  --bg: #f3f6fc;
  --card: #ffffff;
  --text: #1a2b4a;
  --text-2: #5b6b8c;
  --text-3: #93a0bd;
  --line: #e6ecf7;
  --grad: linear-gradient(135deg, #0a4bd6 0%, #0c3a8c 45%, #00a8e0 100%);
  --grad-2: linear-gradient(135deg, #00c6ff 0%, #1a6bff 100%);
  --shadow: 0 8px 24px rgba(10, 42, 107, 0.10);
  --shadow-lg: 0 16px 40px rgba(10, 42, 107, 0.16);
  --radius: 16px;
  --radius-lg: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: #dbe3f2;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
svg { width: 1em; height: 1em; }

/* 手机容器 */
.app {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  box-shadow: 0 0 60px rgba(10, 42, 107, 0.18);
  overflow: hidden;
}

/* ============ 顶部导航 ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 42, 107, 0.96);
  backdrop-filter: saturate(160%) blur(12px);
  color: #fff;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-size: 20px;
  background: var(--grad-2);
  
  
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 198, 255, 0.45);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 16px; letter-spacing: 1px; }
.brand-text i { font-style: normal; font-size: 9px; letter-spacing: 3px; color: var(--cyan-300); }
.menu-btn { width: 38px; height: 38px; display: grid; place-items: center; font-size: 22px; color: #fff; border-radius: 10px; }
.menu-btn:active { background: rgba(255, 255, 255, 0.12); }

.menu-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.menu-panel.open { max-height: 260px; }
.menu-panel a {
  display: block;
  padding: 13px 20px;
  color: #e8f0ff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 15px;
}
.menu-panel a:active { background: rgba(255, 255, 255, 0.08); }

/* ============ 页面 ============ */
.content { padding-bottom: calc(72px + var(--safe-b)); }
.page { display: none; animation: fade .35s ease; }
.page.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============ 首页 Hero ============ */
.hero {
  position: relative;
  padding: 34px 22px 26px;
  color: #fff;
  background: var(--grad);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 300px; height: 300px;
  right: -90px; top: -90px;
  background: radial-gradient(circle, rgba(0, 198, 255, 0.55), transparent 65%);
  filter: blur(4px);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.10);
}
.hero-title { font-size: 34px; line-height: 1.25; font-weight: 800; letter-spacing: 1px; }
.hero-sub { margin-top: 12px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.hero-actions { display: flex; gap: 12px; margin-top: 22px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px;
  font-size: 15px; font-weight: 600;
  border-radius: 12px;
  transition: transform .12s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(0.96); }
.btn-light { background: #fff; color: var(--blue-700); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); }
.btn-white { background: #fff; color: var(--blue-700); }
.btn-blue { background: var(--grad-2); color: #fff; box-shadow: 0 6px 16px rgba(26, 107, 255, 0.35); }

.hero-stats {
  display: flex;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.stat { flex: 1; text-align: center; }
.stat b { display: block; font-size: 24px; font-weight: 800; }
.stat b span { font-size: 13px; font-weight: 500; margin-left: 2px; }
.stat i { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, 0.75); }

/* ============ 通用区块 ============ */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 24px 18px 12px;
}
.section-head h2 { font-size: 19px; font-weight: 800; }
.section-head .more { font-size: 13px; color: var(--text-3); }
.section-head .more span { font-size: 16px; }

.block-title { font-size: 18px; font-weight: 800; padding: 24px 18px 12px; }

/* ============ 产品卡片 ============ */
.feature-grid, .product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 16px;
}
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .16s ease;
}
.product-card:active { transform: scale(0.97); }
.product-img {
  position: relative;
  height: 118px;
  display: grid; place-items: center;
  overflow: hidden;
}
.product-img .bg { position: absolute; inset: 0; }
.product-img svg { position: relative; width: 72px; height: 72px; color: #fff; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25)); }
.product-img .tag {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.9); color: var(--blue-700);
}
.product-body { padding: 12px 12px 14px; }
.product-body h3 { font-size: 15px; font-weight: 700; line-height: 1.35; margin-bottom: 3px; }
.product-body .spec { font-size: 11px; color: var(--text-2); margin-bottom: 10px; }
.product-body .price { color: var(--blue-700); font-weight: 800; font-size: 18px; }
.product-body .price i { font-style: normal; font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 6px; text-decoration: line-through; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.product-foot .tag2 { font-size: 10px; color: #0aa06e; background: #e6f8f0; padding: 3px 8px; border-radius: 6px; }
.buy-btn {
  font-size: 12px; font-weight: 700; color: #fff;
  background: var(--grad-2);
  padding: 6px 12px; border-radius: 100px;
  box-shadow: 0 4px 10px rgba(26, 107, 255, 0.35);
}

/* ============ 促销横幅条 ============ */
.promo-strip {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 16px 0;
  padding: 14px 16px;
  background: linear-gradient(90deg, #0a2a6b, #0c3a8c);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.promo-strip-tag {
  flex: none;
  font-size: 12px; font-weight: 800;
  background: linear-gradient(135deg, #ff7a18, #ff4d4d);
  padding: 6px 10px; border-radius: 8px;
  transform: rotate(-3deg);
}
.promo-strip-text { flex: 1; min-width: 0; }
.promo-strip-text b { display: block; font-size: 14px; }
.promo-strip-text i { font-style: normal; font-size: 11px; color: var(--cyan-300); }
.promo-strip-arrow { font-size: 24px; color: rgba(255, 255, 255, 0.7); }

/* ============ 新闻列表 ============ */
.news-list { padding: 0 16px; }
.news-item {
  display: flex; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.news-item:last-child { border-bottom: none; }
.news-thumb {
  flex: none;
  width: 88px; height: 64px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: #fff; font-size: 22px;
  font-weight: 800;
}
.news-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news-body h3 { font-size: 14px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-body .news-meta { font-size: 11px; color: var(--text-3); margin-top: auto; }

/* ============ 页头 ============ */
.page-hero {
  padding: 26px 20px 18px;
  background: var(--grad);
  color: #fff;
}
.page-hero h1 { font-size: 26px; font-weight: 800; }
.page-hero p { font-size: 13px; color: rgba(255, 255, 255, 0.8); margin-top: 4px; }

/* 分类标签 */
.cat-tabs {
  display: flex; gap: 10px;
  padding: 16px 16px 4px;
  position: sticky; top: 56px; z-index: 30;
  background: var(--bg);
}
.cat-tab {
  flex: 1;
  padding: 10px 0;
  font-size: 14px; font-weight: 600;
  color: var(--text-2);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all .18s ease;
}
.cat-tab.active {
  background: var(--grad-2);
  color: #fff;
  box-shadow: 0 6px 16px rgba(26, 107, 255, 0.4);
}
.product-grid { padding-top: 14px; }

/* ============ 促销页 ============ */
.promo-banner {
  position: relative;
  margin: 16px 16px 0;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ff5f3d 0%, #ff8a00 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(255, 95, 61, 0.35);
}
.promo-banner-top { display: flex; justify-content: space-between; align-items: center; }
.promo-kicker { font-size: 13px; font-weight: 800; letter-spacing: 1px; }
.promo-countdown {
  font-size: 12px; font-weight: 700;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 10px; border-radius: 100px;
  font-variant-numeric: tabular-nums;
}
.promo-banner h2 { font-size: 22px; font-weight: 800; margin: 14px 0 4px; }
.promo-banner p { font-size: 13px; opacity: 0.92; margin-bottom: 16px; }
.promo-banner-deco {
  position: absolute;
  width: 180px; height: 180px;
  right: -50px; bottom: -60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.coupon-list { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.coupon {
  display: flex; align-items: stretch;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.coupon-left {
  flex: none;
  width: 104px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff;
  background: var(--grad-2);
  position: relative;
}
.coupon-left b { font-size: 26px; font-weight: 800; }
.coupon-left b span { font-size: 13px; }
.coupon-left i { font-style: normal; font-size: 11px; opacity: 0.9; }
.coupon-left::after {
  content: "";
  position: absolute; right: -8px; top: 50%;
  width: 16px; height: 16px; transform: translateY(-50%);
  background: var(--bg); border-radius: 50%;
}
.coupon-right { flex: 1; padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; }
.coupon-right b { font-size: 14px; }
.coupon-right i { font-style: normal; font-size: 12px; color: var(--text-2); }
.coupon-right .get {
  align-self: flex-start; margin-top: 6px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff7a18, #ff4d4d);
  padding: 4px 12px; border-radius: 100px;
}

.flash-list { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.flash-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow);
}
.flash-img {
  flex: none; width: 72px; height: 72px;
  border-radius: 12px; display: grid; place-items: center; color: #fff;
}
.flash-img svg { width: 40px; height: 40px; }
.flash-body { flex: 1; min-width: 0; }
.flash-body h3 { font-size: 14px; font-weight: 700; }
.flash-body .flash-price { color: #ff4d4d; font-weight: 800; font-size: 17px; }
.flash-body .flash-price i { font-style: normal; font-size: 11px; color: var(--text-3); text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.flash-progress { height: 5px; background: var(--line); border-radius: 100px; margin-top: 6px; overflow: hidden; }
.flash-progress span { display: block; height: 100%; background: linear-gradient(90deg, #ff7a18, #ff4d4d); border-radius: 100px; }
.flash-percent { font-size: 11px; color: var(--text-3); }

/* ============ 新闻页 ============ */
.news-feature {
  margin: 16px 16px 0;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--grad);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.news-feature-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 10px; border-radius: 6px; margin-bottom: 12px;
}
.news-feature h2 { font-size: 19px; font-weight: 800; line-height: 1.4; }
.news-feature p { font-size: 13px; opacity: 0.9; margin: 10px 0; }
.news-feature .news-meta { font-size: 11px; opacity: 0.75; }
.news-list.full { padding-top: 4px; }

/* ============ 品牌页 ============ */
.about-hero {
  position: relative;
  padding: 40px 22px;
  text-align: center;
  background: var(--grad);
  color: #fff;
  overflow: hidden;
}
.about-hero-glow {
  position: absolute;
  width: 340px; height: 340px;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 198, 255, 0.4), transparent 60%);
  pointer-events: none;
}
.about-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: 4px; position: relative; }
.about-hero p { font-size: 12px; letter-spacing: 4px; color: var(--cyan-300); position: relative; margin-top: 4px; }
.about-hero span { display: inline-block; font-size: 13px; margin-top: 16px; padding: 6px 14px; border-radius: 100px; background: rgba(255, 255, 255, 0.14); position: relative; }

.about-card {
  margin: 16px 16px 0;
  padding: 20px 18px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-card h2 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.about-card p { font-size: 14px; color: var(--text-2); line-height: 1.8; }
.about-card p + p { margin-top: 10px; }

.value-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding: 0 16px; margin-top: 16px; }
.value {
  background: #fff; border-radius: var(--radius);
  padding: 18px 10px; text-align: center; box-shadow: var(--shadow);
}
.value svg { width: 30px; height: 30px; color: var(--blue-600); margin-bottom: 8px; }
.value b { display: block; font-size: 14px; margin-bottom: 3px; }
.value i { font-style: normal; font-size: 11px; color: var(--text-3); }

.timeline { position: relative; padding-left: 6px; }
.timeline li { display: flex; gap: 14px; padding: 8px 0; }
.timeline li span {
  flex: none; font-size: 13px; font-weight: 800; color: var(--blue-700);
  min-width: 42px;
}
.timeline li p { font-size: 14px; color: var(--text-2); line-height: 1.6; }

.contact { display: flex; flex-direction: column; gap: 4px; }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-ico { font-size: 20px; }
.contact-row b { display: block; font-size: 14px; }
.contact-row i { font-style: normal; font-size: 12px; color: var(--text-2); }

.footer { text-align: center; padding: 26px 20px 20px; color: var(--text-3); }
.footer p { font-size: 12px; line-height: 1.9; }
.footer p:first-child { color: var(--text-2); font-weight: 600; }

/* ============ 底部导航 ============ */
.tabbar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + var(--safe-b));
  z-index: 50;
}
.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px 0;
  color: var(--text-3);
  font-size: 11px;
  transition: color .18s ease;
}
.tab svg { width: 22px; height: 22px; }
.tab.active { color: var(--blue-600); }
.tab.active svg { filter: drop-shadow(0 2px 6px rgba(26, 107, 255, 0.4)); }

/* ============ Toast / 遮罩 ============ */
.toast {
  position: fixed;
  left: 50%; bottom: 100px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10, 32, 64, 0.92);
  color: #fff;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 99;
  max-width: 80vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.overlay {
  position: fixed; inset: 0;
  background: rgba(7, 20, 45, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 45;
}
.overlay.show { opacity: 1; pointer-events: auto; }

/* ============ 产品详情页 ============ */
.detail-top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.detail-top .back-btn, .detail-top .top-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  font-size: 20px; color: var(--text); border-radius: 10px;
}
.detail-top .back-btn:active, .detail-top .top-btn:active { background: #eef3fb; }
.detail-top-title { font-size: 15px; font-weight: 700; }

.gallery { position: relative; }
.gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: none; width: 100%; height: 300px;
  scroll-snap-align: start;
  position: relative; display: grid; place-items: center;
}
.gallery-slide .g-icon {
  color: #fff; font-size: 118px; line-height: 1;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28));
}
.gallery-brand {
  position: absolute; top: 14px; left: 14px;
  font-size: 11px; color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.18); padding: 4px 10px; border-radius: 100px;
}
.gallery-index {
  position: absolute; bottom: 14px; right: 14px;
  font-size: 11px; color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.25); padding: 3px 10px; border-radius: 100px;
  font-variant-numeric: tabular-nums;
}
.gallery-dots {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.gallery-dots i { width: 6px; height: 6px; border-radius: 100px; background: rgba(255, 255, 255, 0.45); transition: all .25s ease; }
.gallery-dots i.on { width: 16px; background: #fff; }

.detail-info {
  margin: -22px 16px 0; position: relative; z-index: 2;
  background: #fff; border-radius: var(--radius-lg); padding: 18px;
  box-shadow: var(--shadow-lg);
}
.detail-price { display: flex; align-items: baseline; gap: 8px; }
.detail-price b { font-size: 28px; font-weight: 800; color: #ff4d4d; }
.detail-price b.free { color: var(--blue-700); }
.detail-price i { font-style: normal; font-size: 13px; color: var(--text-3); text-decoration: line-through; }
.detail-price .d-tag { font-size: 11px; font-weight: 700; color: #ff7a18; background: #fff1e6; padding: 2px 8px; border-radius: 6px; }
.detail-info h1 { font-size: 20px; font-weight: 800; line-height: 1.4; margin: 8px 0 6px; }
.detail-info .d-desc { font-size: 13px; color: var(--text-2); }
.detail-stats { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.detail-stats span { flex: 1; text-align: center; font-size: 11px; color: var(--text-2); }
.detail-stats span b { display: block; font-size: 13px; color: var(--text); }

.detail-sec { margin: 16px 16px 0; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.detail-sec h2 { font-size: 17px; font-weight: 800; margin-bottom: 12px; padding-left: 10px; position: relative; }
.detail-sec h2::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 16px; border-radius: 2px; background: var(--grad-2); }
.detail-sec p { font-size: 14px; color: var(--text-2); line-height: 1.9; }
.detail-sec p + p { margin-top: 8px; }

.spec-table { display: flex; flex-direction: column; }
.spec-row { display: flex; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: none; }
.spec-row span { flex: none; width: 88px; font-size: 13px; color: var(--text-3); }
.spec-row b { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); text-align: right; }

.detail-cta {
  margin: 16px 16px 0; width: calc(100% - 32px);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; font-size: 16px; font-weight: 700; color: #fff;
  background: var(--grad-2); border-radius: 14px;
  box-shadow: 0 8px 20px rgba(26, 107, 255, 0.35);
}
.detail-cta svg { width: 20px; height: 20px; }
.detail-cta:active { transform: scale(0.97); }

/* 详情页底部导航切换 */
.detail-bar { display: none; }
.detail-bar.show { display: flex; }
.tabbar.hidden { display: none; }

/* ============ 客服弹层 ============ */
.sheet-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(7, 20, 45, 0.5);
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.sheet-mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  width: 100%; max-width: 480px; margin: 0 auto;
  background: #fff; border-radius: 22px 22px 0 0;
  padding: 14px 16px calc(20px + var(--safe-b));
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.sheet-mask.show .sheet { transform: translateY(0); }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { text-align: center; font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.sheet-item {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; font-size: 15px; font-weight: 600;
  color: var(--text); background: #f5f8ff; border-radius: 12px; margin-bottom: 10px;
}
.sheet-item:active { background: #e8effc; }
.sheet-cancel { width: 100%; padding: 14px; font-size: 15px; color: var(--text-2); background: #fff; border-radius: 12px; }

/* ============ 新闻详情页 ============ */
.news-feature { cursor: pointer; }
.news-feature .read-more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; }
.product-card, .flash-item, .news-item { cursor: pointer; }

.news-detail-head { padding: 22px 18px 16px; background: #fff; }
.news-detail-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--blue-700); background: #eaf1ff;
  padding: 3px 10px; border-radius: 6px; margin-bottom: 12px;
}
.news-detail-head h1 { font-size: 21px; font-weight: 800; line-height: 1.45; }
.news-detail-meta { margin-top: 12px; font-size: 12px; color: var(--text-3); }

.news-detail-body {
  margin: 12px 16px 0;
  background: #fff; border-radius: var(--radius);
  padding: 20px 18px; box-shadow: var(--shadow);
}
.news-detail-body p { font-size: 15px; color: var(--text); line-height: 1.95; }
.news-detail-body p + p { margin-top: 14px; }
.news-detail-body img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 12px 0; }
.news-detail-body h2 { font-size: 19px; font-weight: 800; margin: 18px 0 10px; }
.news-detail-body h3 { font-size: 17px; font-weight: 700; margin: 14px 0 8px; }
.news-detail-body ul, .news-detail-body ol { padding-left: 22px; margin: 8px 0; }
.news-detail-body ul li, .news-detail-body ol li { font-size: 15px; line-height: 1.9; }
.news-detail-body blockquote { border-left: 3px solid var(--blue-500); padding-left: 12px; color: var(--text-2); margin: 10px 0; }

/* ============ 图片占位 / 替换 ============ */
/* 有真实图片时给 <img class="ph"> 填满容器；无图时显示渐变占位 */
.product-img, .news-thumb, .flash-img { position: relative; overflow: hidden; }
.product-img img.ph, .gallery-slide img.ph, .news-thumb img.ph, .flash-img img.ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

/* ============ 桌面端（预览） ============ */
@media (min-width: 560px) {
  body { padding: 24px 0; }
  .app { border-radius: 28px; min-height: calc(100vh - 48px); }
  .tabbar { border-radius: 0 0 28px 28px; }
}
