/* Kohler Connected Wellness — 网页重建的可交互原型（2026-10-19）
   设计系统照团队 process book：深色底 #000507、主按钮青绿 #0D8389、次按钮 #506F82、
   次级文字 #BDD6D2；展示字 Outfit（超细，大数字），正文 Red Hat Text。
   宽度自适应 320–430，嵌在作品集页面的手机外壳里，也能单独打开。 */
@font-face { font-family: 'Outfit'; src: url('fonts/outfit-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Red Hat Text'; src: url('fonts/red-hat-text-var.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #000507; --card: rgba(255, 255, 255, .055); --card2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .1); --text: #ffffff; --text2: #BDD6D2; --muted: #7d8b8e;
  --teal: #0D8389; --teal-hi: #16a6ad; --slate: #506F82; --off: #24292C;
  --display: 'Outfit', system-ui, sans-serif; --ui: 'Red Hat Text', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--text); font-family: var(--ui); font-size: 15px; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

.app { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(130% 55% at 50% -12%, #12575b 0%, #08292c 38%, #000507 72%); }
.status { flex: none; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 6px 26px 0; font-weight: 600; font-size: 15px; }
.status span:last-child { display: flex; align-items: center; gap: 5px; }
.status svg { height: 11px; width: auto; fill: #fff; }
.screen { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 18px 28px; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }
.home-ind { position: absolute; left: 50%; bottom: 7px; width: 34%; height: 5px; border-radius: 3px; background: #fff; transform: translateX(-50%); z-index: 30; pointer-events: none; }

/* 导航条 */
.nav { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; height: 44px; margin: 0 -6px 6px; }
.nav h1 { font-weight: 400; font-size: 17px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav .ib { width: 40px; height: 40px; display: grid; place-items: center; }
.nav .ib svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.6; }
.nav .txt { font-size: 14px; color: var(--text2); }
.ttl { font-family: var(--display); font-weight: 300; font-size: 28px; line-height: 1.15; margin: 8px 0 4px; }
.sub { color: var(--text2); font-size: 13.5px; line-height: 1.45; }
.center { text-align: center; }

/* 区块标题 */
.sec { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 10px; }
.sec h2 { font-weight: 400; font-size: 16.5px; }
.sec button, .sec span { font-size: 13.5px; color: var(--text2); }

/* 卡片 */
.card { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.card + .card { margin-top: 10px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-h h3 { font-weight: 400; font-size: 15.5px; }
.chev { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 1.6; flex: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 11.5px; padding: 3px 10px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.desc { font-size: 13px; line-height: 1.45; color: var(--text2); margin-top: 10px; }
.thumbs { display: flex; gap: 10px; justify-content: center; margin: 12px 0 4px; }
.thumbs img { width: 64px; height: 82px; object-fit: cover; border-radius: 10px; }
.row-btns { display: flex; gap: 10px; margin-top: 12px; align-items: center; }

/* 按钮 */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; border-radius: 99px; background: var(--teal); color: #fff; font-size: 15px; transition: background .2s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn.sec2 { background: var(--slate); }
.btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .35); }
.btn[disabled] { background: var(--off); color: #707a7c; cursor: default; }
.btn svg { width: 14px; height: 14px; fill: #fff; }
.btn.sm { height: 34px; font-size: 13.5px; width: auto; padding: 0 16px; }
.round { width: 44px; height: 44px; border-radius: 50%; background: var(--slate); display: grid; place-items: center; flex: none; }
.round svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.7; }
.round.on svg { fill: #fff; }
.stack-btns { display: grid; gap: 10px; margin-top: 18px; }

/* Today */
.hi { font-family: var(--display); font-weight: 300; font-size: 30px; margin: 6px 0 14px; }
.quick { display: flex; gap: 18px; margin-top: 2px; }
.qs { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text2); }
.qs i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.qs svg { width: 21px; height: 21px; stroke: #fff; fill: none; stroke-width: 1.5; }
.orb { position: relative; height: 200px; display: grid; place-items: center; margin: 6px -18px 0; }
.orb::before, .orb::after { content: ""; position: absolute; width: 190px; height: 120px; border-radius: 50%; filter: blur(26px); opacity: .55;
  background: radial-gradient(closest-side, rgba(170, 225, 230, .55), rgba(40, 110, 120, .15) 70%, transparent); animation: drift 9s ease-in-out infinite; }
.orb::after { width: 130px; height: 90px; opacity: .45; animation-duration: 13s; animation-direction: reverse; }
@keyframes drift { 0%, 100% { transform: translate(-24px, 6px) scale(1); } 50% { transform: translate(26px, -10px) scale(1.15); } }
.orb p { position: relative; z-index: 1; max-width: 240px; text-align: center; font-size: 15.5px; line-height: 1.45; }
.household { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, #1b6b70, #0b2c30); font-family: var(--display); font-size: 16px; flex: none; border: 1px solid var(--line); }
.avatar.lg { width: 72px; height: 72px; font-size: 28px; }
.hh-t { flex: 1; font-size: 13px; color: var(--text2); line-height: 1.4; }
.hh-t b { display: block; color: #fff; font-weight: 500; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; }
.chip.on { background: rgba(13, 131, 137, .3); border-color: var(--teal-hi); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 74px; padding: 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; text-align: center; }
.opt svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.4; }
.opt.on { background: rgba(13, 131, 137, .32); border-color: var(--teal-hi); }

/* 图片卡 */
.pcard { position: relative; height: 128px; border-radius: 16px; overflow: hidden; display: block; width: 100%; text-align: left; }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 5, 7, .6), rgba(0, 5, 7, .05) 55%, rgba(0, 5, 7, .35)); }
.pcard span { position: absolute; z-index: 1; left: 14px; top: 12px; font-size: 15px; }
.pcard em { position: absolute; z-index: 1; right: 12px; bottom: 12px; font-style: normal; font-size: 12.5px; padding: 6px 12px; border-radius: 99px; background: var(--slate); }
.pcard.dim img { filter: grayscale(.6) brightness(.55); }
.pcard + .pcard { margin-top: 10px; }
.hero-img { width: calc(100% + 36px); max-width: none; margin: 0 -18px; height: 190px; object-fit: cover; }
.room { width: 78%; margin: 6px auto 0; }
.pager { display: flex; justify-content: space-between; align-items: center; margin: 4px 0; }
.pager h2 { font-weight: 400; font-size: 18px; }
.pager .ib svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 1.6; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 6px 0 4px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.dots i.on { background: #fff; }

/* 分段控件 / 筛选 */
.seg { display: flex; gap: 22px; justify-content: center; border-bottom: 1px solid var(--line); margin: 0 -18px 14px; }
.seg button { padding: 8px 2px 10px; font-size: 14px; color: var(--text2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.seg button.on { color: #fff; border-color: #fff; }
.filters { display: flex; gap: 6px; margin: 4px 0 14px; }
.filters button { flex: 1; height: 32px; border-radius: 99px; font-size: 13px; color: var(--text2); }
.filters button.on { background: rgba(255, 255, 255, .12); color: #fff; }

/* 能力 */
.capgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.capt { position: relative; height: 104px; border-radius: 14px; overflow: hidden; text-align: left; }
.capt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.capt span { position: absolute; left: 10px; bottom: 9px; right: 10px; font-size: 13.5px; line-height: 1.25; z-index: 1; }
.captile { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: left; font-size: 13.5px; }
.captile svg { width: 20px; height: 20px; stroke: var(--text2); fill: none; stroke-width: 1.4; }
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 0 18px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.asp { position: relative; height: 190px; border-radius: 16px; overflow: hidden; scroll-snap-align: start; text-align: center; }
.asp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.48); }
.asp div { position: relative; z-index: 1; padding: 22px 16px; }
.asp h3 { font-weight: 400; font-size: 16px; margin-bottom: 8px; }
.asp p { font-size: 12.5px; line-height: 1.45; color: #e8f2f0; }
.asp u { display: inline-block; margin-top: 10px; font-size: 12.5px; text-decoration: none; color: var(--text2); }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .07); margin: 4px 0 14px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 14px; }
.search input::placeholder { color: var(--muted); }
.search svg { width: 17px; height: 17px; stroke: var(--text2); fill: none; stroke-width: 1.6; flex: none; }

/* 列表行 */
.rows { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.rowi { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; text-align: left; font-size: 14.5px; border-top: 1px solid var(--line); }
.rowi:first-child { border-top: 0; }
.rowi > span { flex: 1; }
.rowi small { color: var(--text2); font-size: 12.5px; }
.rowi svg.ic { width: 19px; height: 19px; stroke: #fff; fill: none; stroke-width: 1.4; flex: none; }
.switch { width: 46px; height: 28px; border-radius: 99px; background: var(--off); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--teal); }
.switch.on::after { transform: translateX(18px); }
.benefit { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.benefit + .benefit { margin-top: 8px; }
.benefit svg { width: 18px; height: 18px; stroke: var(--text2); fill: none; stroke-width: 1.4; }
.why { font-size: 13.5px; line-height: 1.55; color: var(--text2); }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(227, 166, 74, .12); border: 1px solid rgba(227, 166, 74, .4); font-size: 12.5px; line-height: 1.4; color: #f3d9ae; margin-bottom: 12px; }
.banner.teal { background: rgba(13, 131, 137, .14); border-color: rgba(22, 166, 173, .45); color: #cdeeec; }
.banner button { margin-left: auto; text-decoration: underline; font-size: 12.5px; flex: none; }

/* 编排：选产品 */
.pick { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 36px 0 22px; }
.pick button { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; }
.pick i { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); transition: all .2s; }
.pick svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.3; }
.pick button.on i { background: radial-gradient(circle at 50% 35%, #2b8f95, #0a3c40); border-color: #8fd6d2; box-shadow: 0 0 0 4px rgba(22, 166, 173, .18); }

/* 时间线 */
.tl { position: relative; padding-left: 24px; margin-top: 8px; }
.tl::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; border-left: 1px dashed rgba(255, 255, 255, .4); }
.step { position: relative; }
.step + .step { margin-top: 10px; }
.step::before { content: ""; position: absolute; left: -23px; top: 16px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #fff; background: var(--bg); }
.step .card { padding: 12px; }
.step img { width: 100%; height: 68px; object-fit: cover; border-radius: 10px; margin: 10px 0 8px; }
.kv { display: flex; justify-content: space-between; font-size: 13px; color: var(--text2); margin-top: 4px; }
.kv b { color: #fff; font-weight: 400; }
.rm { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.rm svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 2; fill: none; }
.total { font-size: 14px; margin: 4px 0 2px; }
.cta { position: sticky; bottom: -28px; margin: 18px -18px -28px; padding: 14px 18px 30px; background: linear-gradient(180deg, transparent, var(--bg) 30%); display: grid; gap: 10px; }

/* 执行中 */
.run { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 4px 22px 30px; text-align: center; overflow: hidden; }
.ring { position: relative; width: 236px; height: 236px; margin: 22px 0 22px; flex: none; }
.ring svg.r { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .bgc { stroke: rgba(255, 255, 255, .12); }
.ring .fg { stroke: rgba(255, 255, 255, .85); stroke-linecap: round; }
.ring .ph { position: absolute; inset: 10px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle, #0f3c40, #041416); }
.ring .ph img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.42); }
.ring .lab { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .lab small { font-size: 12.5px; color: #dfeceb; }
.ring .lab strong { font-family: var(--display); font-weight: 200; font-size: 50px; letter-spacing: .02em; line-height: 1.1; }
.run h2 { font-weight: 400; font-size: 18px; }
.run .nx { color: var(--text2); font-size: 13.5px; margin-top: 6px; }
.run .stack-btns { width: 100%; margin-top: auto; }
.skip { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-decoration: underline; }
.count { font-family: var(--display); font-weight: 200; font-size: 64px; margin: 110px 0 10px; }
.done-orb { position: relative; width: 220px; height: 220px; margin: 36px 0 24px; display: grid; place-items: center; flex: none; }
.done-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); }
.done-orb i:nth-child(2) { inset: 26px; } .done-orb i:nth-child(3) { inset: 52px; }
.done-orb p { position: relative; font-size: 15px; line-height: 1.45; max-width: 170px; }

/* Smart Generate / 问卷 */
.prog { display: flex; gap: 6px; margin: 2px 0 18px; }
.prog i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .15); }
.prog i.on { background: var(--teal-hi); }
.q { font-size: 18px; font-weight: 400; margin: 6px 0 16px; text-align: center; }
.timebig { font-family: var(--display); font-weight: 200; font-size: 54px; text-align: center; margin: 40px 0 18px; letter-spacing: .03em; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); outline: 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; }
.qbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
.listopt { display: grid; gap: 8px; }
.listopt button { height: 44px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-align: left; padding: 0 16px; font-size: 14px; }
.listopt button.on { background: rgba(13, 131, 137, .32); border-color: var(--teal-hi); }

/* 产品控制 */
.dial { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 22px 0 6px; }
.dial strong { font-family: var(--display); font-weight: 200; font-size: 58px; min-width: 140px; text-align: center; }
.dial button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); font-size: 22px; line-height: 1; }
.lbl { font-size: 13px; color: var(--text2); margin: 18px 0 8px; display: flex; justify-content: space-between; }
.status-ok { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #79d9a4; margin: 12px 0 4px; }
.status-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ccf7f; }

/* 开屏 */
.splash { flex: 1; display: flex; flex-direction: column; padding: 0 24px 34px; text-align: center; }
.wordmark { font-weight: 700; font-size: 34px; letter-spacing: .08em; margin-top: 26%; }
.splash .tag2 { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--text2); margin-top: 8px; }
.splash .lead { font-family: var(--display); font-weight: 300; font-size: 21px; line-height: 1.35; margin: 34px 0 0; }
.splash .stack-btns { margin-top: auto; }
.splash small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 12px; }

/* tab bar */
.tabbar { flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 8px 6px 24px; background: rgba(0, 5, 7, .88); border-top: 1px solid var(--line); }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; color: #7a8587; }
.tabbar svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.tabbar button.on { color: #fff; }

/* 通知 / 底部弹层 */
.toast { position: absolute; left: 12px; right: 12px; top: 50px; z-index: 40; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; background: rgba(36, 41, 44, .97); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); font-size: 13px; line-height: 1.4; animation: tin .35s ease; text-align: left; }
.toast b { display: block; font-size: 13.5px; }
.toast .ap { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(140deg, #134f54, #062628); display: grid; place-items: center; font-size: 7px; font-weight: 700; letter-spacing: .06em; flex: none; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.sheet-bg { position: absolute; inset: 0; z-index: 35; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-end; }
.sheet { width: 100%; padding: 18px 18px 34px; border-radius: 22px 22px 0 0; background: #0d1517; border-top: 1px solid var(--line); display: grid; gap: 10px; animation: sin .25s ease; }
@keyframes sin { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet h3 { font-weight: 400; font-size: 16px; text-align: center; margin-bottom: 4px; }
.fade { animation: fin .25s ease; }
@keyframes fin { from { opacity: 0; } to { opacity: 1; } }
/* 单独打开时（比手机宽）：居中成一台手机的大小 */
@media (min-width: 520px) {
  body { display: grid; place-items: center; background: #020809; }
  .app { width: 390px; height: min(844px, 100vh); border-radius: 44px; box-shadow: 0 0 0 10px #1c1e20, 0 30px 90px rgba(0, 0, 0, .7); }
}
@media (prefers-reduced-motion: reduce) { .orb::before, .orb::after { animation: none; } * { animation-duration: .01ms !important; } }

/* 作品集页的引导：下一步该点的地方套一圈呼吸光（app.js 的 showHint） */
.is-hint { position: relative; outline: 2px solid #8fd6d2; outline-offset: 3px; animation: hint 1.6s ease-in-out infinite; }
@keyframes hint { 0%, 100% { outline-color: rgba(143, 214, 210, 1); box-shadow: 0 0 0 0 rgba(143, 214, 210, .45); } 50% { outline-color: rgba(143, 214, 210, .55); box-shadow: 0 0 0 8px rgba(143, 214, 210, 0); } }
@media (prefers-reduced-motion: reduce) { .is-hint { animation: none; } }
