/* ═══════════════════════════════════════════ 巨子测肤 · 1'me 在线肌肤测试 — H5 样式 设计稿 1080px 基准 → 375px(÷2.88);布局尺寸随 --u 缩放,字号使用固定 CSS px 主色 #F5F078 · 文字 #282828 · 底 #EFEFEF ═══════════════════════════════════════════ */ :root { --yellow: #F5F078; --ink: #282828; --ink-2: #2C2C2C; --grey: #868686; --grey-2: #757575; --grey-3: #707070; --para: #4A4A4A; --bg: #EFEFEF; --line: #E5E5E5; --bad: #D30C0C; --nav-h: 44px; --u: calc(min(100vw, 480px) / 375); /* 1 设计像素(375 宽基准) */ --font: "Noto Sans SC","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif; } * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; } html, body { height: 100%; } /* 微信「字体大小」设置会放大网页文字(iOS 经 text-size-adjust);锁定 100% 使与 Safari 一致 */ html { -webkit-text-size-adjust: 100% !important; text-size-adjust: 100% !important; } body { font-family: var(--font); color: var(--ink); background: #000; overflow: hidden; -webkit-font-smoothing: antialiased; user-select: none; max-width: 480px; /* 桌面预览时居中显示 */ margin: 0 auto; position: relative; } img { display: block; } button { font-family: inherit; border: 0; background: none; cursor: pointer; color: inherit; } /* ─── 屏幕容器 ─── */ .screen { position: absolute; inset: 0; display: none; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg); } .screen.active { display: block; animation: screenIn .35s ease both; } @keyframes screenIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } } /* ─── 主按钮:长方形 + 小倒角(设计稿 181×37) ─── */ .btn-primary { display: block; width: calc(181 * var(--u)); height: calc(37 * var(--u)); line-height: calc(37 * var(--u)); background: var(--yellow); border-radius: calc(5 * var(--u)); color: var(--ink); font-size: 14.5px; font-weight: 500; letter-spacing: calc(.5 * var(--u)); text-align: center; transition: transform .12s ease; } .btn-primary:active { transform: scale(.96); } /* ─── 折线箭头(返回/下拉) ─── */ .chev { width: 9px; height: 9px; border: solid var(--ink-2); border-width: 0 2px 2px 0; display: inline-block; padding: 2px; } .chev.left { transform: rotate(135deg); } .chev.right { transform: rotate(-45deg); } .chev.down { transform: rotate(45deg); } .nav-back { width: 27px; height: 27px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; } /* ═══════════ 01 启动页 ═══════════ */ #s-splash { background: #101823; } .splash-bg { position: absolute; inset: 0; background: url(../assets/img/bg-splash.jpg) center/cover no-repeat; } .splash-slogan { position: absolute; left: 0; right: 0; top: 10.7%; text-align: center; color: #fff; font-size: 23px; font-weight: 500; line-height: 1.38; letter-spacing: calc(.6 * var(--u)); text-shadow: 0 1px 8px rgba(0,0,0,.15); } .splash-bottom { position: absolute; left: 0; right: 0; bottom: 12.4%; display: flex; flex-direction: column; align-items: center; gap: calc(16 * var(--u)); padding-bottom: env(safe-area-inset-bottom); } .brand-row { display: flex; align-items: center; gap: calc(7 * var(--u)); } .brand-logo { width: calc(46 * var(--u)); height: auto; filter: brightness(0) invert(1); } .brand-text { color: #fff; font-size: 21.5px; font-weight: 500; letter-spacing: calc(1 * var(--u)); } /* ═══════════ 03 档案填写 ═══════════ */ #s-profile { background: #0e0f18; } .profile-bg { position: absolute; inset: 0; /* 启动页照片 + 55% 黑遮罩 */ background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), url(../assets/img/bg-splash.jpg) center/cover no-repeat; } .profile-body { position: relative; z-index: 1; min-height: 100%; padding: calc(34 * var(--u)) calc(64 * var(--u)) calc(40 * var(--u)); } .page-title { color: #fff; font-size: 21.5px; font-weight: 700; letter-spacing: calc(1 * var(--u)); text-align: center; margin-bottom: calc(22 * var(--u)); } .field { margin-bottom: calc(19 * var(--u)); } .field-label { display: block; text-align: center; color: #fff; font-size: 14.5px; font-weight: 400; margin-bottom: calc(9 * var(--u)); letter-spacing: calc(.5 * var(--u)); } .form-row.two { display: flex; gap: calc(23 * var(--u)); } .form-row.two .field { flex: 1; min-width: 0; } /* 选择控件(出生年月/性别/地区同一样式) */ .pick { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; height: calc(37 * var(--u)); padding: 0 calc(13 * var(--u)) 0 calc(12 * var(--u)); background: #fff; border-radius: calc(5 * var(--u)); font-size: 13.5px; color: var(--ink); text-align: left; } .pick-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pick .chev { flex: none; width: calc(8 * var(--u)); height: calc(8 * var(--u)); margin-top: calc(-4 * var(--u)); border-width: 0 1.5px 1.5px 0; } .pick:active { background: #F7F7F7; } /* 肤质卡片(设计稿 246×278) */ .skin-card { background: #fff; border-radius: calc(5 * var(--u)); padding: calc(21 * var(--u)) 0 calc(24 * var(--u)); } .skin-axis { display: flex; justify-content: center; gap: calc(12 * var(--u)); margin-bottom: calc(18 * var(--u)); } .axis-item { display: inline-flex; align-items: center; gap: calc(5 * var(--u)); font-size: 9px; color: var(--ink); } .chip { width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; display: inline-block; } .skin-stage { position: relative; padding: 0 calc(28 * var(--u)); } .skin-arrow { position: absolute; top: calc(42 * var(--u)); z-index: 1; width: calc(26 * var(--u)); height: calc(26 * var(--u)); display: flex; align-items: center; justify-content: center; } .skin-arrow.prev { left: calc(5 * var(--u)); } .skin-arrow.next { right: calc(5 * var(--u)); } .skin-arrow .chev { width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-width: 0 1.5px 1.5px 0; } .skin-arrow[disabled] { opacity: .2; } .skin-carousel { overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; /* 纵向滚动交给浏览器,横向留给拖拽 */ } .skin-track { display: flex; transition: transform .32s cubic-bezier(.22,.61,.36,1); } .skin-track.dragging { transition: none; will-change: transform; } .skin-item { flex: 0 0 100%; display: flex; flex-direction: column; align-items: center; } .skin-item img { width: calc(109 * var(--u)); height: calc(109 * var(--u)); -webkit-user-drag: none; } .skin-name { font-size: 12.5px; font-weight: 700; color: #000; margin-top: calc(16 * var(--u)); } .skin-desc { font-size: 10.3px; color: var(--ink); line-height: 1.55; text-align: center; margin-top: calc(5 * var(--u)); max-width: calc(136 * var(--u)); } .skin-dots { display: flex; justify-content: center; gap: calc(5 * var(--u)); margin-top: calc(22 * var(--u)); } .skin-dots i { width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: #D6D6D6; transition: background .25s; } .skin-dots i.on { background: #000; } .btn-submit { margin: calc(25 * var(--u)) auto 0; } /* ─── 底部滚轮选择器(vendor/mobile-select)外观统一 ─── */ .ms-mobile-select .ms-gray-layer { background: rgba(0,0,0,.55); } .ms-mobile-select .ms-content { bottom: -400px; border-radius: 12px 12px 0 0; overflow: hidden; padding-bottom: env(safe-area-inset-bottom); font-family: var(--font); } .ms-mobile-select .ms-btn-bar { height: 50px; line-height: 50px; font-size: 15px; border-bottom-color: #F0F0F0; } .ms-mobile-select .ms-cancel, .ms-mobile-select .ms-ensure { height: 50px; width: 64px; } .ms-mobile-select .ms-cancel { color: var(--grey-2) !important; } .ms-mobile-select .ms-ensure { color: var(--ink) !important; font-weight: 600; } .ms-mobile-select .ms-title { font-size: 15px; font-weight: 600; color: var(--ink) !important; } .ms-mobile-select .ms-wheels, .ms-mobile-select .ms-wheel, .ms-mobile-select .ms-shadow-mask { height: 220px; } .ms-mobile-select .ms-select-container li { font-size: 16px; color: var(--ink); height: 44px; line-height: 44px; } .ms-mobile-select .ms-select-line { height: 44px; top: 88px; border-color: #EFEFEF; background: rgba(245,240,120,.18); } /* ═══════════ 05-07 拍照页 ═══════════ */ #s-cam { background: #000; } /* 相机未就绪/降级时的静态态:白底经蒙版 85% 压暗 → 框外深灰、轮廓内白 */ .cam-bg { position: absolute; inset: 0; background: #fff; } /* 实时画面铺满视口,避免缩小预览产生矩形取景边界。送检仍抓原始视频帧。 */ #cam-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: none; border: 0; outline: none; box-shadow: none; display: none; z-index: 0; } #cam-video.mirror { transform: scaleX(-1); } /* 前置镜头镜像预览 */ #s-cam.cam-live #cam-video { display: block; } #s-cam.cam-live .cam-bg { display: none; } #cam-frozen { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:none; z-index:0; pointer-events:none; } #cam-frozen.mirror { transform:scaleX(-1); } #s-cam.cam-switching #cam-frozen { display:block; } #s-cam.cam-switching .cam-bg { display:none; } .cam-flip:disabled { opacity:.5; } /* 纵向定位按 WebView 口径:Figma 帧 812 高扣掉顶部 86px 微信导航栏 = 726 高视口 */ .cam-step { position: absolute; left: 0; right: 0; top: 7.1%; text-align: center; color: #fff; font-size: 21.5px; font-weight: 500; line-height: 1.5; letter-spacing: calc(1 * var(--u)); text-shadow: 0 1px 10px rgba(0,0,0,.4); z-index: 2; } .cam-guide { position: absolute; left: 0; right: 0; bottom: 22.4%; display: flex; justify-content: center; align-items: center; gap: calc(26 * var(--u)); z-index: 2; } .cam-guide span { color: #fff; font-size: 14.5px; font-weight: 400; } .cam-guide i { width: 0; height: calc(15 * var(--u)); border-left: 1px solid rgba(255,255,255,.7); } .cam-controls { position: absolute; left: 0; right: 0; bottom: 5.2%; height: calc(62 * var(--u)); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(56 * var(--u)); margin-bottom: env(safe-area-inset-bottom); z-index: 2; } .cam-side img { width: calc(30 * var(--u)); height: calc(30 * var(--u)); } .cam-shutter { visibility: hidden; } .cam-shutter img { width: calc(62 * var(--u)); height: calc(62 * var(--u)); } .cam-shutter:active { transform: scale(.92); } #s-cam.cam-manual .cam-shutter { visibility: visible; } /* 白屏补光:瞬间点亮(.on 无过渡),移除后淡出 */ .cam-fill { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 30; transition: opacity .25s ease; } .cam-fill.on { opacity: 1; transition: none; } /* 取景蒙版:SVG 镂空,无外轮廓描边;按 data-step 切换轮廓,框外 85% 黑 */ .cam-mask { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; } .cam-mask [data-shape] { display: none; } .cam-mask[data-step="0"] [data-shape="0"], .cam-mask[data-step="1"] [data-shape="1"], .cam-mask[data-step="2"] [data-shape="2"] { display: block; } .cam-mask.flip { transform: scaleX(-1); } /* 后置镜头预览不镜像:侧脸轮廓随之翻转 */ .cam-dim-rect { fill: #000; fill-opacity: .85; } .cam-line { display: none; } .cam-line path { fill: none; stroke: none; } /* 动态捕捉扫描带:自上而下扫过轮廓内 */ .cam-scan { display: none; } .cam-mask.scanning .cam-scan { display: block; } .cam-scan-band { animation: camScan 2.2s cubic-bezier(.45,.05,.55,.95) infinite; } @keyframes camScan { from { transform: translateY(0); } to { transform: translateY(440px); } } /* 检测引擎加载状态(小字胶囊) */ .cam-status { position: absolute; top: 17px; left: 50%; transform: translateX(-50%); font-size: 11px; color: rgba(255,255,255,.85); background: rgba(0,0,0,.35); padding: 4px 12px; border-radius: 11px; z-index: 2; opacity: 0; transition: opacity .25s; white-space: nowrap; } .cam-status.show { opacity: 1; } /* 动态提示:取景框下方、引导短句上方,一次一条 */ .cam-hint { position: absolute; left: 50%; bottom: 27%; transform: translateX(-50%) translateY(6px); font-size: 17px; font-weight: 500; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.65); z-index: 2; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; white-space: nowrap; } .cam-hint.show { opacity: 1; transform: translateX(-50%); } .cam-hint.ok { color: #34C759; } /* 长时间无进展轻提示(不阻塞流程) */ .cam-nudge { position: absolute; left: 50%; bottom: 16.5%; transform: translateX(-50%) translateY(6px); font-size: 11.5px; color: #fff; background: rgba(0,0,0,.55); padding: 6px 14px; border-radius: 14px; z-index: 2; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; white-space: nowrap; } .cam-nudge.show { opacity: 1; transform: translateX(-50%); } /* 两张之间的停顿卡:本张完成 + 下一张预告,停顿期间不检测 */ .cam-next { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.94); width: calc(230 * var(--u)); padding: calc(22 * var(--u)) calc(16 * var(--u)) calc(20 * var(--u)); display: flex; flex-direction: column; align-items: center; background: rgba(0,0,0,.72); border-radius: calc(12 * var(--u)); color: #fff; text-align: center; z-index: 3; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; } .cam-next.show { opacity: 1; transform: translate(-50%, -50%); } .cam-next-ok { width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: 50%; background: #34C759; position: relative; margin-bottom: calc(12 * var(--u)); } .cam-next-ok::after { content: ""; position: absolute; left: 50%; top: 45%; width: calc(16 * var(--u)); height: calc(8 * var(--u)); border: solid #fff; border-width: 0 0 calc(3 * var(--u)) calc(3 * var(--u)); transform: translate(-50%, -50%) rotate(-45deg); } .cam-next b { font-size: 17px; font-weight: 500; } .cam-next span { margin-top: calc(8 * var(--u)); font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.5; } /* ═══════════ 08 报告页 ═══════════ */ #s-report { background: var(--bg); } .report-body { padding: 0 calc(18 * var(--u)) calc(28 * var(--u)); } .report-title { font-size: 23px; font-weight: 700; color: var(--ink); text-align: center; letter-spacing: calc(.5 * var(--u)); padding: calc(32 * var(--u)) 0 calc(20 * var(--u)); } .card { background: #fff; border-radius: calc(8 * var(--u)); margin-bottom: calc(12 * var(--u)); } .stat-label { font-size: 12px; color: var(--ink); } .stat-value { color: var(--ink); line-height: 1; white-space: nowrap; } .stat-value b { font-weight: 500; letter-spacing: calc(.5 * var(--u)); } .stat-value i { font-style: normal; font-weight: 500; } /* 总分卡:环形综合评分 | 肌肤年龄 */ .card-summary { display: flex; align-items: center; padding: calc(16 * var(--u)) 0; } .sum-score { position: relative; flex: 0 0 52%; display: flex; justify-content: center; border-right: 1px solid #EFEFEF; } .ring { width: calc(108 * var(--u)); height: calc(108 * var(--u)); transform: rotate(-90deg); } .ring circle { fill: none; stroke-width: 9; } .ring-bg { stroke: #EFEFEF; } .ring-fg { stroke: var(--yellow); stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset .9s ease; } .ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; } .ring-center .stat-value b { font-size: 40px; } .ring-center .stat-value i { font-size: 14px; } .ring-center .stat-label { margin-top: calc(3 * var(--u)); font-size: 11.5px; color: var(--para); } .sum-age { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding-left: calc(26 * var(--u)); } .stat-age { margin-top: calc(6 * var(--u)); } .stat-age b { font-size: 58px; } .stat-age i { font-size: 19px; margin-left: 2px; } .age-pill { margin-top: calc(7 * var(--u)); font-size: 9.5px; color: var(--grey-2); background: #F2F2F2; border-radius: calc(9 * var(--u)); padding: calc(2 * var(--u)) calc(10 * var(--u)); white-space: nowrap; } .age-pill[hidden] { display: none; } /* 三维度卡:分数 + 进度条;最低分标红并挂「优先关注」 */ .card-dims { padding: calc(18 * var(--u)) calc(7 * var(--u)) calc(7 * var(--u)); } .dims-row { display: flex; } .dim { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 0 0 calc(4 * var(--u)) calc(14 * var(--u)); } .dim + .dim { border-left: 1px solid #EFEFEF; } .dim-name { font-size: 12px; color: var(--ink); } .dim-score { margin-top: calc(4 * var(--u)); font-size: 30px; font-weight: 500; color: var(--ink); line-height: 1.1; } .dim-score b { font-size: 42px; font-weight: 500; } .dim-score.dim-bad { color: var(--bad); } .dim-bar { display: block; margin-top: calc(6 * var(--u)); width: calc(69 * var(--u)); height: calc(6 * var(--u)); border-radius: calc(3 * var(--u)); background: #EFEFEF; overflow: hidden; } .dim-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--yellow); transition: width .8s ease; } .dim.best .dim-bar i { background: #D7EE6A; } .dim.worst .dim-bar i { background: #F4B04F; } .dim-flag { visibility: hidden; margin-top: calc(6 * var(--u)); font-style: normal; font-size: 9px; color: var(--ink); background: #F8F4A6; border-radius: calc(8 * var(--u)); padding: calc(1 * var(--u)) calc(8 * var(--u)); } .dim.worst .dim-flag { visibility: visible; } .dims-note { position: relative; margin-top: calc(12 * var(--u)); background: #F2F2F2; border-radius: calc(6 * var(--u)); padding: calc(11 * var(--u)) calc(14 * var(--u)) calc(11 * var(--u)) calc(26 * var(--u)); } .dims-note::before { content: ""; position: absolute; left: calc(14 * var(--u)); top: calc(12 * var(--u)); bottom: calc(12 * var(--u)); width: calc(3 * var(--u)); border-radius: 2px; background: var(--yellow); } .dims-note-l1 { font-size: 13px; color: var(--para); } .dims-note-l1 b { font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; } .dims-note-l2 { margin-top: calc(4 * var(--u)); font-size: 12px; color: var(--grey); } /* 维度详情卡(原布局):紧塑力/活力感/稳定力三个 Tab,每个 Tab 两条「竖排标题 + 左图右文」;检测图点击放大 */ .card-detail { padding: 0 calc(19 * var(--u)) calc(19 * var(--u)); } .detail-tabs { display: flex; border-bottom: 1px solid #F0F0F0; } .dtab { flex: 1; padding: calc(13 * var(--u)) 0 0; font-weight: 500; color: var(--ink); } .dtab-tx { position: relative; display: inline-block; font-size: 10.1px; padding: 0 calc(5 * var(--u)) calc(7 * var(--u)); } .dtab.active { font-weight: 700; } .dtab.active .dtab-tx::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -1px; width: calc(78 * var(--u)); height: calc(7 * var(--u)); border-radius: calc(3.5 * var(--u)); background: var(--yellow); } .dpanel { display: none; } .dpanel.active { display: block; animation: fade .25s ease; padding-top: calc(19 * var(--u)); } @keyframes fade { from { opacity: 0; } to { opacity: 1; } } .ditem { display: flex; gap: calc(9 * var(--u)); align-items: center; } .ditem + .ditem { margin-top: calc(18 * var(--u)); padding-top: calc(18 * var(--u)); border-top: 1px solid #F0F0F0; } .ditem-img { width: calc(92 * var(--u)); height: calc(96 * var(--u)); object-fit: cover; border-radius: calc(6 * var(--u)); flex-shrink: 0; background: #F5F5F5; cursor: zoom-in; } .ditem-img[hidden] { display: none; } .ditem-text { flex: 1; min-width: 0; } .ditem-title { writing-mode: vertical-rl; letter-spacing: calc(4 * var(--u)); font-size: 11.5px; font-weight: 500; color: var(--ink); margin-right: calc(3.5 * var(--u)); flex-shrink: 0; } .ditem-para { font-size: 10.1px; font-weight: 400; color: var(--para); line-height: 1.41; overflow-wrap: anywhere; } .vm-notes { font-size: 10px; color: var(--grey-3); line-height: 1.7; margin: calc(14 * var(--u)) calc(6 * var(--u)) 0; } .report-disclaimer { font-size: 10px; color: var(--para); line-height: 1.7; margin: calc(18 * var(--u)) calc(6 * var(--u)) calc(14 * var(--u)); } /* 护理建议 / 精华推荐 */ .card-care, .card-essence { padding: calc(20 * var(--u)) calc(22 * var(--u)) calc(18 * var(--u)); } .card-heading { font-size: 17px; font-weight: 700; color: #000; margin-bottom: calc(10 * var(--u)); } .care-item { font-size: 13.5px; color: var(--para); line-height: 1.7; margin-bottom: calc(10 * var(--u)); overflow-wrap: anywhere; } .care-summary { font-size: 13.5px; font-weight: 500; color: #000; margin-top: calc(4 * var(--u)); } .essence-name { font-size: 16px; font-weight: 700; color: var(--ink); } .essence-triggers { font-size: 11px; color: var(--grey-3); margin-top: calc(6 * var(--u)); line-height: 1.5; } /* 产品推荐:大标题落在灰底;白卡左文案右图(各占一半) */ .prod-title { font-size: 23px; font-weight: 700; color: var(--ink); line-height: 1.45; text-align: center; letter-spacing: calc(1 * var(--u)); margin: calc(30 * var(--u)) 0 calc(18 * var(--u)); } .card-product { overflow: hidden; } .prod-card { display: flex; align-items: stretch; min-height: calc(176 * var(--u)); } .prod-info { flex: 1; min-width: 0; padding: calc(40 * var(--u)) calc(10 * var(--u)) calc(16 * var(--u)) calc(18 * var(--u)); display: flex; flex-direction: column; align-items: flex-start; } .prod-badge { width: calc(44 * var(--u)); height: auto; } .prod-name { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.45; margin-top: calc(10 * var(--u)); } .prod-sub { font-size: 9.5px; color: var(--grey-3); margin-top: auto; padding-top: calc(10 * var(--u)); } .prod-scroll { flex: 0 0 51%; display: flex; overflow: hidden; } .prod-scroll img { width: 100%; height: 100%; object-fit: cover; } .btn-more { margin: calc(26 * var(--u)) auto 0; } /* 档位配色(引擎档位 → 文字色) */ .lv-good { color: #2FA84F; } .lv-warn { color: #E8A13D; } .lv-bad { color: var(--bad); } /* ═══════════ 弹窗 ═══════════ */ .overlay { position: absolute; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.5); } .overlay.show { display: flex; } .overlay .popup { animation: popIn .3s cubic-bezier(.34,1.4,.64,1) both; } @keyframes popIn { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } } /* 弹窗 308×312(设计稿 02/04) */ .popup { position: relative; width: calc(308 * var(--u)); min-height: calc(312 * var(--u)); background: #fff; border-radius: calc(10 * var(--u)); padding: calc(40 * var(--u)) calc(32 * var(--u)) calc(35 * var(--u)); text-align: left; display: flex; flex-direction: column; } .popup-close { position: absolute; top: calc(10 * var(--u)); right: calc(10 * var(--u)); width: calc(32 * var(--u)); height: calc(32 * var(--u)); display: flex; align-items: center; justify-content: center; } .popup-close img { width: calc(19 * var(--u)); height: calc(19 * var(--u)); } .popup-title { font-size: 23px; font-weight: 500; color: var(--ink); line-height: 1.38; letter-spacing: calc(.5 * var(--u)); margin-bottom: calc(14 * var(--u)); } .popup-body { font-size: 11.6px; color: var(--ink); line-height: 1.6; margin-bottom: calc(26 * var(--u)); } .privacy-row { display: flex; align-items: center; gap: calc(9 * var(--u)); cursor: pointer; } .checkbox { width: calc(12 * var(--u)); height: calc(12 * var(--u)); border-radius: 50%; border: 1px solid var(--ink); background: #fff; flex-shrink: 0; position: relative; } .checkbox.checked::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--ink-2); } .privacy-text { font-size: 10.3px; color: var(--grey-2); } .privacy-link { color: var(--ink); font-weight: 500; text-decoration: underline; cursor: pointer; } .privacy-link:active { opacity: .7; } .popup-btn { margin: auto auto 0; } #p-privacy .popup-btn { margin-top: calc(40 * var(--u)); } /* 拍照引导:背景只留启动页底图 + Slogan,标题居中 */ .overlay-guide { background: #101823; } .guide-bg { position: absolute; inset: 0; background: url(../assets/img/bg-splash.jpg) center/cover no-repeat; } .guide-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); } #p-photoguide .popup { padding: 0 calc(24 * var(--u)) calc(55 * var(--u)); } .popup-title-center { text-align: center; margin: calc(88 * var(--u)) 0 calc(40 * var(--u)); } /* 报告检测图放大 */ .overlay-zoom { background: rgba(0,0,0,.92); z-index: 80; cursor: zoom-out; } .overlay-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; animation: zoomIn .22s ease both; } @keyframes zoomIn { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } } /* 分析中 */ .overlay-dark { background: rgba(16,16,16,.82); } .analyzing { color: #fff; text-align: center; font-size: 14px; letter-spacing: 1px; display: flex; flex-direction: column; align-items: center; gap: 16px; } .analyzing-tip { font-size: 11px; color: rgba(255,255,255,.45); letter-spacing: 0; } .spinner { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--yellow); border-radius: 50%; animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* Toast */ .toast { position: absolute; left: 50%; bottom: 15%; transform: translateX(-50%) translateY(8px); max-width: 86%; background: rgba(20,20,20,.85); color: #fff; font-size: 13px; line-height: 1.5; text-align: center; padding: 9px 18px; border-radius: 18px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 99; } .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); } /* ═══════════ 隐私政策与服务协议(全文页) ═══════════ */ .overlay-policy { background: #F5F5F5; } .policy-page { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; background: #fff; } .policy-float-back { position: absolute; top: 12px; left: 12px; z-index: 2; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.12); } .policy-header { position: relative; flex: none; height: var(--nav-h); display: flex; align-items: center; justify-content: center; background: #fff; border-bottom: 1px solid var(--line); } .policy-header .nav-back { position: absolute; left: 4px; top: 0; width: 40px; height: 100%; border: 0; } .policy-header-title { font-size: 14px; font-weight: 500; color: #000; } .policy-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 22px 20px 48px; } #p-policy .policy-body { padding-top: 52px; } .policy-title { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 16px; } .policy-h2 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 26px 0 10px; padding-left: 9px; border-left: 4px solid var(--yellow); line-height: 1.3; } .policy-h3 { font-size: 13.5px; font-weight: 600; color: var(--ink); margin: 16px 0 6px; } .policy-body p { font-size: 12.5px; color: var(--para); line-height: 1.9; margin-bottom: 10px; text-align: justify; } .policy-body strong { color: var(--ink); } .policy-body ul, .policy-body ol { padding-left: 1.5em; margin: 0 0 10px; } .policy-body li { font-size: 12.5px; color: var(--para); line-height: 1.9; margin-bottom: 5px; text-align: justify; } .policy-body li::marker { color: var(--grey); } .policy-toc { color: var(--grey-2); } .policy-end { text-align: center; color: var(--grey); margin-top: 28px; } /* ═══════════ 历史报告 ═══════════ */ .policy-header .history-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--grey-2); padding: 4px 8px; } .history-empty { text-align: center; color: var(--grey); font-size: 12.5px; padding: 60px 0; } .his-item { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px; margin-bottom: 10px; cursor: pointer; } .his-thumb { width: 44px; height: 56px; border-radius: 6px; object-fit: cover; flex: none; background: var(--bg); } .his-main { flex: 1; min-width: 0; } .his-main b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 3px; } .his-main span { display: block; font-size: 11px; color: var(--grey); } .his-score { flex: none; text-align: right; } .his-score b { font-size: 22px; font-weight: 500; color: var(--ink); } .his-score span { font-size: 11px; color: var(--grey); margin-left: 2px; } .his-del { flex: none; font-size: 11px; color: var(--grey-2); padding: 6px 4px; }