/* 移动端优先样式，尽量贴近小程序视觉 */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Helvetica Neue', Arial, 'Noto Sans', 'Microsoft YaHei', sans-serif; background: #f7f8fa; color: #222; }

.container { max-width: 720px; margin: 0 auto; padding-bottom: 64px; }
.page-title { font-size: 20px; font-weight: 600; padding: 16px; text-align: center; background: #fff; border-bottom: 1px solid #eee; }
.section-title { font-size: 18px; font-weight: 600; padding: 12px 16px; margin: 8px 0; }
.intro-block { background: #fff; padding-bottom: 8px; }
.intro-text { font-size: 14px; color: #555; padding: 0 16px 12px; line-height: 1.6; }

/* 海报轮播 */
.hero-box { position: relative; overflow: hidden; margin: 0 16px 12px; border-radius: 10px; background: #fafafa; border: 1px solid #eee; }
.hero-swiper { display: flex; width: 100%; transition: transform 400ms ease; }
.hero-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; display: block; }
.hero-indicators { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.indicator-dot { width: 6px; height: 6px; border-radius: 50%; background: #c8ccd4; opacity: 0.8; }
.indicator-dot.active { background: #4c6fff; opacity: 1; }

/* 分类 tabs */
.tab-list { background: #fff; margin: 0 16px; border-radius: 10px; border: 1px solid #eee; overflow: hidden; }
.tab-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #f0f0f0; }
.tab-row:last-child { border-bottom: none; }
.tab-row.active { background: #f2f6ff; }
.tab-icon { width: 28px; height: 28px; object-fit: cover; border-radius: 6px; }
.tab-label { font-size: 14px; color: #333; }

/* 视图切换 */
.view-toggle { display: flex; gap: 8px; padding: 12px 16px; }
.toggle-btn { flex: 1; padding: 8px 12px; font-size: 14px; border-radius: 8px; border: 1px solid #ddd; background: #fff; }
.toggle-btn.active { border-color: #4c6fff; color: #4c6fff; }

/* 产品列表 */
.products-section { padding: 0 16px 12px; }
.product-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.product-card { width: 100%; }
.product-card { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 12px; }
.product-name { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.product-images { width: 100%; overflow: hidden; border-radius: 8px; }
.product-img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.feature-list, .spec-list { margin: 10px 0 0; padding: 0 0 0 18px; color: #555; }
.feature-list li, .spec-list li { margin: 6px 0; }

/* 缩略图 */
.thumb-list { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
.thumb-list::-webkit-scrollbar { height: 6px; }
.thumb-list::-webkit-scrollbar-track { background: #eef2ff; border-radius: 6px; }
.thumb-list::-webkit-scrollbar-thumb { background: #c6d0ff; border-radius: 6px; }
.thumb-list:hover::-webkit-scrollbar-thumb { background: #8da2ff; }
.thumb-list { scrollbar-width: thin; }
.thumb { width: 64px; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; border: 2px solid transparent; }
.thumb.active { border-color: #4c6fff; }

.product-card.gallery .feature-list, .product-card.gallery .spec-list { display: none; }

/* 联系方式与二维码 */
.contact-section { background: #fff; margin: 0 16px 12px; border-radius: 10px; border: 1px solid #eee; padding-bottom: 12px; }
.contact-text { font-size: 14px; color: #555; padding: 0 16px; line-height: 1.6; }
.qr-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px; }
.qr-card { background: #fafafa; border: 1px solid #eee; border-radius: 10px; padding: 8px; text-align: center; }
.qr-img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.qr-label { font-size: 12px; color: #333; margin-top: 6px; }

/* 浮动底部导航 */
.floating-nav { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.98); border-top: 1px solid #eee; display: flex; justify-content: space-around; padding: 8px 6px; backdrop-filter: saturate(180%) blur(6px); }
.nav-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: #444; }
.nav-icon { width: 28px; height: 28px; border-radius: 50%; background: #eef2ff; color: #4c6fff; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.nav-label { font-size: 12px; }

@media (min-width: 560px) {
  .product-list { grid-template-columns: 1fr 1fr; }
}