/* R37 样品间/新品展示 H5 v2 · 10模块 · 13色板 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); transition: background .35s, color .35s; }
body.showcase-back-active { padding-top: calc(44px + env(safe-area-inset-top, 0)); }
body.has-sticky-nav { padding-top: calc(48px + env(safe-area-inset-top, 0)); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

body[data-theme='neo'] { --primary:#6366F1; --primary-light:#EEF2FF; --accent:#22D3EE; --bg:#0F172A; --bg-card:#1E293B; --text:#F8FAFC; --text-light:#94A3B8; --border:#334155; --hero-overlay:rgba(0,0,0,.72); }
body[data-theme='sepia'] { --primary:#78716C; --primary-light:#FAFAF9; --accent:#059669; --bg:#FAFAF9; --bg-card:#FFF; --text:#1C1917; --text-light:#78716C; --border:#E7E5E4; --hero-overlay:rgba(28,25,23,.5); }
body[data-theme='slate'] { --primary:#475569; --primary-light:#F1F5F9; --accent:#64748B; --bg:#F8FAFC; --bg-card:#FFF; --text:#0F172A; --text-light:#64748B; --border:#E2E8F0; --hero-overlay:rgba(15,23,42,.65); }
body[data-theme='navy'] { --primary:#1E3A5F; --primary-light:#E2E8F0; --accent:#D4A843; --bg:#F1F5F9; --bg-card:#FFF; --text:#1E293B; --text-light:#64748B; --border:#CBD5E1; --hero-overlay:rgba(15,23,42,.62); }
body[data-theme='coral'] { --primary:#F43F5E; --primary-light:#FFE4E6; --accent:#FB7185; --bg:#FFF1F2; --bg-card:#FFF; --text:#881337; --text-light:#BE123C; --border:#FECDD3; --hero-overlay:rgba(136,19,55,.5); }
body[data-theme='sunset'] { --primary:#EA580C; --primary-light:#FFEDD5; --accent:#F59E0B; --bg:#FFF7ED; --bg-card:#FFF; --text:#431407; --text-light:#9A3412; --border:#FED7AA; --hero-overlay:rgba(67,20,7,.55); }
body[data-theme='forest'] { --primary:#059669; --primary-light:#D1FAE5; --accent:#84CC16; --bg:#ECFDF5; --bg-card:#FFF; --text:#064E3B; --text-light:#047857; --border:#A7F3D0; --hero-overlay:rgba(6,78,59,.55); }
body[data-theme='amber'] { --primary:#D97706; --primary-light:#FEF3C7; --accent:#FBBF24; --bg:#FFFBEB; --bg-card:#FFF; --text:#78350F; --text-light:#B45309; --border:#FDE68A; --hero-overlay:rgba(120,53,15,.55); }
body[data-theme='ocean'] { --primary:#0EA5E9; --primary-light:#E0F2FE; --accent:#6366F1; --bg:#F8FAFC; --bg-card:#FFF; --text:#1E293B; --text-light:#64748B; --border:#E2E8F0; --hero-overlay:rgba(15,23,42,.55); }
body[data-theme='rose'] { --primary:#E11D48; --primary-light:#FFE4E6; --accent:#FB7185; --bg:#FFF1F2; --bg-card:#FFF; --text:#881337; --text-light:#BE123C; --border:#FECDD3; --hero-overlay:rgba(136,19,55,.45); }
body[data-theme='mint'] { --primary:#10B981; --primary-light:#D1FAE5; --accent:#06B6D4; --bg:#F0FDF4; --bg-card:#FFF; --text:#064E3B; --text-light:#6B7280; --border:#D1FAE5; --hero-overlay:rgba(6,78,59,.5); }
body[data-theme='sky'] { --primary:#EAB308; --primary-light:#FEF9C3; --accent:#F59E0B; --bg:#FEFCE8; --bg-card:#FFF; --text:#713F12; --text-light:#A16207; --border:#FDE047; --hero-overlay:rgba(113,63,18,.55); }
body[data-theme='lavender'] { --primary:#38BDF8; --primary-light:#E0F2FE; --accent:#818CF8; --bg:#F0F9FF; --bg-card:#FFF; --text:#0C4A6E; --text-light:#64748B; --border:#BAE6FD; --hero-overlay:rgba(12,74,110,.5); }

.glass-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 1rem; box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.section { max-width: 960px; margin: 0 auto; padding: 2.5rem 1.25rem; scroll-margin-top: calc(52px + env(safe-area-inset-top, 0)); }
.section__title { font-size: 1.35rem; text-align: center; margin-bottom: .35rem; color: var(--primary); font-weight: 800; }
.section__sub { text-align: center; font-size: .82rem; color: var(--text-light); margin-bottom: 1.25rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: .88rem; border: none; cursor: pointer; background: var(--primary); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid #fff; color: #fff; }
.btn-outline--dark { border-color: var(--primary); color: var(--primary); background: transparent; }

.sticky-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: rgba(var(--nav-bg, 255,255,255), .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transform: translateY(-100%); transition: transform .3s; padding-top: env(safe-area-inset-top, 0); }
body[data-theme='neo'] .sticky-nav { --nav-bg: 15,23,42; background: rgba(15,23,42,.92); }
.sticky-nav.visible { transform: translateY(0); }
.sticky-nav__inner { display: flex; align-items: center; gap: .5rem; max-width: 960px; margin: 0 auto; padding: .45rem 1rem; }
.sticky-nav__brand { font-weight: 800; font-size: .82rem; white-space: nowrap; color: var(--primary); flex-shrink: 0; }
.sticky-nav__links { display: flex; gap: .15rem; overflow-x: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.sticky-nav__links::-webkit-scrollbar { display: none; }
.sticky-nav__link { flex-shrink: 0; padding: .35rem .55rem; font-size: .72rem; border-radius: 999px; color: var(--text-light); white-space: nowrap; }
.sticky-nav__link.active { background: var(--primary); color: #fff; }
.sticky-nav__cta { flex-shrink: 0; padding: .35rem .75rem; font-size: .72rem; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; }

.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; scroll-margin-top: 0; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__overlay { position: absolute; inset: 0; background: var(--hero-overlay); }
.hero__content { position: relative; z-index: 1; padding: 2rem 1.25rem 2.5rem; max-width: 960px; margin: 0 auto; width: 100%; }
.hero__badge { display: inline-block; padding: .25rem .6rem; background: var(--accent, #F59E0B); color: #fff; font-size: .68rem; font-weight: 800; border-radius: .25rem; margin-bottom: .5rem; }
.hero__big { font-size: clamp(2.5rem, 10vw, 4rem); font-weight: 900; line-height: 1; }
.hero__big-label { font-size: .95rem; opacity: .9; margin-bottom: .5rem; }
.hero__product { font-size: 1.2rem; font-weight: 700; margin-bottom: .25rem; }
.hero__slogan { font-size: .85rem; opacity: .88; margin-bottom: 1rem; }
.hero__btns { display: flex; gap: .5rem; flex-wrap: wrap; }

.viewer360 { position: relative; max-width: 360px; margin: 0 auto; aspect-ratio: 1; background: var(--bg); border-radius: 1rem; overflow: hidden; cursor: grab; user-select: none; touch-action: none; border: 1px solid var(--border); }
.viewer360.dragging { cursor: grabbing; }
.viewer360__img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.viewer360__hint { position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%); font-size: .68rem; padding: .25rem .55rem; background: rgba(0,0,0,.55); color: #fff; border-radius: 999px; pointer-events: none; }
.viewer360__dots { display: flex; justify-content: center; gap: .35rem; margin-top: .75rem; }
.viewer360__dot { width: .45rem; height: .45rem; border-radius: 50%; border: none; background: var(--border); cursor: pointer; padding: 0; }
.viewer360__dot.active { background: var(--primary); transform: scale(1.2); }

.highlight-block { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .highlight-block { grid-template-columns: 1fr 1fr; align-items: center; } .highlight-block:nth-child(even) .highlight-block__img { order: 2; } }
.highlight-block__img { border-radius: 1rem; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.highlight-block__icon { font-size: 1.75rem; margin-bottom: .35rem; }
.highlight-block__title { font-size: 1.15rem; font-weight: 900; color: var(--primary); margin-bottom: .35rem; }
.highlight-block__desc { font-size: .85rem; color: var(--text-light); line-height: 1.65; }

.spec-bar { margin-bottom: .85rem; }
.spec-bar__head { display: flex; justify-content: space-between; font-size: .78rem; margin-bottom: .35rem; }
.spec-bar__track { height: .5rem; background: var(--border); border-radius: 999px; overflow: hidden; }
.spec-bar__fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width 1s ease; }
.multiple-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin: 1.25rem 0; }
.multiple-card { padding: 1rem; text-align: center; }
.multiple-card__ratio { font-size: 1.5rem; font-weight: 900; color: var(--primary); }
.multiple-card__label { font-size: .72rem; color: var(--text-light); margin: .25rem 0; }
.multiple-card__val { font-size: .68rem; font-weight: 600; }
.cert-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1rem; }
.cert-row span { padding: .4rem .75rem; border: 1px solid var(--primary); color: var(--primary); border-radius: .5rem; font-size: .72rem; font-weight: 700; }

.scene-scroll { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.scene-scroll::-webkit-scrollbar { display: none; }
.scene-card { flex: 0 0 85%; max-width: 300px; scroll-snap-align: start; overflow: hidden; position: relative; min-height: 260px; color: #fff; border-radius: 1rem; }
.scene-card__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.scene-card__overlay { position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.78)); }
.scene-card__body { position: relative; z-index: 1; padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; }
.scene-card__name { font-size: 1.1rem; font-weight: 800; }
.scene-card__desc { font-size: .78rem; opacity: .9; margin: .25rem 0; }

.ba-tabs { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1rem; flex-wrap: wrap; }
.ba-tab { padding: .4rem .85rem; border-radius: 999px; font-size: .78rem; border: 1px solid var(--border); background: var(--bg-card); cursor: pointer; color: var(--text-light); }
.ba-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.ba-slider { position: relative; width: 100%; max-width: 640px; margin: 0 auto 1rem; aspect-ratio: 16/10; border-radius: 1rem; overflow: hidden; user-select: none; touch-action: none; box-shadow: 0 8px 32px rgba(0,0,0,.12); }
.ba-slider__after { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ba-slider__before-wrap { position: absolute; inset: 0; width: 50%; overflow: hidden; z-index: 2; border-right: 2px solid #fff; }
.ba-slider__before { width: 640px; max-width: 100vw; height: 100%; background-size: cover; background-position: center; filter: grayscale(.6) brightness(.8); }
.ba-slider__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: #fff; z-index: 3; transform: translateX(-50%); cursor: ew-resize; }
.ba-slider__handle::after { content: '◀ ▶'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #fff; color: #333; font-size: .6rem; padding: .3rem .45rem; border-radius: 999px; white-space: nowrap; }
.ba-label { position: absolute; top: .75rem; z-index: 4; font-size: .72rem; padding: .25rem .55rem; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; }
.ba-label--before { left: .75rem; }
.ba-label--after { right: .75rem; }
.ba-caption { text-align: center; font-size: .85rem; color: var(--text-light); }

.sku-grid { display: grid; gap: .75rem; }
@media (min-width: 640px) { .sku-grid { grid-template-columns: repeat(3, 1fr); } }
.sku-card { padding: 1.25rem 1rem; text-align: center; position: relative; border-top: 4px solid var(--sku-color, var(--primary)); }
.sku-card--featured { transform: scale(1.02); box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.sku-card__badge { position: absolute; top: .65rem; right: .65rem; font-size: .62rem; padding: .15rem .45rem; background: var(--primary); color: #fff; border-radius: .25rem; font-weight: 700; }
.sku-card__name { font-weight: 800; font-size: .95rem; margin: .5rem 0 .25rem; }
.sku-card__price { font-size: 1.1rem; font-weight: 900; color: var(--primary); }
.sku-card__moq { font-size: .72rem; color: var(--text-light); margin-bottom: .75rem; }
.sku-table { width: 100%; border-collapse: collapse; font-size: .75rem; margin-top: 1rem; }
.sku-table th, .sku-table td { padding: .55rem .5rem; border: 1px solid var(--border); text-align: center; }
.sku-table th { background: var(--primary-light, var(--bg)); color: var(--primary); font-weight: 700; }

.social-header { text-align: center; margin-bottom: 1.25rem; }
.social-stars { font-size: 1.25rem; color: #F59E0B; letter-spacing: .1rem; }
.social-rating { font-size: 2rem; font-weight: 900; color: var(--primary); }
.social-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-bottom: 1.25rem; }
.social-stat { padding: 1rem; text-align: center; }
.social-stat__val { font-size: 1.15rem; font-weight: 900; color: var(--primary); }
.social-stat__lbl { font-size: .68rem; color: var(--text-light); }
.logo-scroll { display: flex; gap: .5rem; overflow-x: auto; padding: .5rem 0; margin-bottom: 1rem; }
.logo-scroll span { flex-shrink: 0; padding: .4rem .75rem; border: 1px solid var(--border); border-radius: .5rem; font-size: .75rem; font-weight: 600; }
.review-card { display: flex; gap: .75rem; padding: 1rem; margin-bottom: .65rem; }
.review-card__avatar { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-card__stars { color: #F59E0B; font-size: .72rem; }
.review-card__quote { font-size: .82rem; color: var(--text-light); font-style: italic; margin: .25rem 0; }
.review-card__name { font-size: .75rem; font-weight: 700; }

.inquiry-form { display: grid; gap: .65rem; max-width: 480px; margin: 0 auto; padding: 1.25rem; }
.inquiry-form label { font-size: .78rem; font-weight: 600; }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { width: 100%; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: .5rem; background: var(--bg); color: var(--text); }
.inquiry-form textarea { min-height: 4rem; resize: vertical; }
.wechat-row { display: flex; gap: 1rem; align-items: center; justify-content: center; margin-top: 1.25rem; flex-wrap: wrap; }
.wechat-row img { width: 6rem; border-radius: .5rem; }

.inquiry-float { position: fixed; bottom: calc(4.5rem + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 48; padding: .65rem 1.5rem; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 700; font-size: .88rem; border: none; cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.site-footer { text-align: center; padding: 2rem 1.25rem; font-size: .75rem; color: var(--text-light); }

.scene-panel, .theme-panel { position: fixed; z-index: 50; }
.scene-panel { bottom: calc(5rem + env(safe-area-inset-bottom)); left: 1rem; }
.theme-panel { bottom: calc(5rem + env(safe-area-inset-bottom)); right: 1rem; }
.scene-panel__toggle, .theme-panel__toggle { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); box-shadow: 0 4px 16px rgba(0,0,0,.12); font-size: 1.25rem; cursor: pointer; }
.scene-panel__list, .theme-panel__list { position: absolute; bottom: calc(100% + .5rem); background: var(--bg-card); border: 1px solid var(--border); border-radius: .75rem; padding: .5rem; min-width: 9rem; max-height: 50vh; overflow-y: auto; box-shadow: 0 8px 32px rgba(0,0,0,.15); }
.theme-panel__list { right: 0; left: auto; }
.scene-panel__list button, .theme-panel__list button { display: block; width: 100%; text-align: left; padding: .4rem .6rem; border-radius: .35rem; font-size: .8rem; color: var(--text); background: none; border: none; cursor: pointer; }
.scene-panel__list button.active, .theme-panel__list button.active, .scene-panel__list button:hover, .theme-panel__list button:hover { background: var(--primary); color: #fff; }

.back-top { position: fixed; bottom: calc(1rem + env(safe-area-inset-bottom)); right: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--primary); color: #fff; z-index: 40; border: none; cursor: pointer; }
.back-top[hidden] { display: none; }
.contact-footer { position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(0,0,0,.82); color: #fff; text-align: center; }
.contact-footer__btns { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: .25rem; }
.contact-footer__cta { padding: .4rem .9rem; border-radius: 999px; background: var(--primary, #1E3A5F); color: #fff; font-size: .78rem; font-weight: 600; }
.contact-footer__btn { padding: .4rem .75rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; background: transparent; font-size: .78rem; cursor: pointer; }
.contact-footer__brand { font-size: .65rem; opacity: .65; }
html.has-contact-footer body { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
body.share-page { padding-bottom: 2rem; }
.share-card { max-width: 360px; margin: 1.5rem auto; padding: 1.25rem; text-align: center; }
