* { box-sizing: border-box; }
:root { color-scheme: light; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; color: #183733; background: #edf5f3; --teal: #087873; --deep: #0b514c; --muted: #526c67; --line: #e2eeeb; --surface: #f4f8f7; }
body { margin: 0; min-width: 300px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid #087873; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.65; }
.studio { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 430px); justify-content: center; align-items: center; gap: clamp(28px, 7vw, 105px); min-height: 100dvh; padding: 20px; background: radial-gradient(ellipse at 72% 15%, #d7f2e9, transparent 55%); }
.review h1 { font-size: clamp(25px, 3vw, 34px); margin: 24px 0 10px; }
.review > p { color: var(--muted); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 750; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: white; background: var(--teal); }
.inspector { margin-top: 24px; padding: 14px; border: 1px solid #d2e7e1; border-radius: 15px; background: #ffffffa8; }
summary { cursor: pointer; font-size: 14px; font-weight: 700; }
#review-page { margin: 12px 0 7px; color: var(--muted); font-size: 13px; }
#review-links:not(:empty) { margin-top: 8px; }
.phone { position: relative; isolation: isolate; height: min(850px, calc(100dvh - 40px)); min-height: 520px; display: flex; flex-direction: column; overflow: hidden; border: 8px solid #203a37; border-radius: 38px; background: var(--surface); box-shadow: 0 20px 55px #103d3530; }
.status-bar { position: relative; display: flex; justify-content: space-between; padding: 10px 21px 3px; background: white; color: #122824; font-size: 13px; font-weight: 750; }
.camera { position: absolute; width: 64px; height: 15px; background: #203a37; border-radius: 14px; left: calc(50% - 32px); top: 6px; }
.navigation { display: grid; grid-template-columns: 45px minmax(0, 1fr) 68px; align-items: center; gap: 5px; min-height: 49px; flex: none; padding: 0 10px; border-bottom: 1px solid var(--line); background: white; }
.navigation h2 { font-size: 17px; text-align: center; }
.navigation button, .float button { border: 0; background: white; min-height: 37px; border-radius: 22px; }
.navigation .capsule { border: 1px solid var(--line); letter-spacing: 3px; }
#screen { position: relative; overflow: auto; flex: 1; scrollbar-width: thin; scrollbar-color: #bfd9d3 transparent; }
.content { padding: 13px 13px 16px; display: grid; gap: 12px; }
#tabbar { display: flex; background: white; border-top: 1px solid var(--line); }
#tabbar:empty { display: none; }
.tab { display: grid; gap: 3px; place-items: center; flex: 1; min-height: 55px; padding: 5px 1px; border: 0; background: white; font-size: 12px; color: var(--muted); }
.tab span { font-size: 20px; line-height: 1; }
.tab[aria-current="page"] { color: var(--teal); background: #eef9f6; font-weight: 750; }
.home-indicator { flex: none; height: 13px; background: white; display: grid; place-items: center; }
.home-indicator::after { content: ""; width: 92px; height: 4px; border-radius: 8px; background: #203a37; }
.card, .hero, .empty { padding: 13px; border-radius: 16px; }
.card, .empty { border: 1px solid var(--line); background: white; }
.section h3 { font-size: 16px; margin-bottom: 9px; }
.section > * + * { margin-top: 8px; }
.hero { position: relative; overflow: hidden; min-height: 136px; display: grid; align-content: center; justify-items: start; gap: 7px; color: white; background: linear-gradient(125deg, #075851, #087873 75%, #168678); padding: 17px; }
.hero::after { content: "✚"; position: absolute; right: 21px; top: -9px; font: 136px system-ui; color: #ffffff18; pointer-events: none; }
.hero h3 { font-size: 24px; line-height: 1.2; max-width: 75%; }
.hero .muted { color: #d5f7ef; }
.hero .button { position: relative; z-index: 1; background: white; color: var(--deep); }
.stats { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.metric { flex: 1; min-width: 70px; }
.metric strong { display: block; font-size: 19px; }
.muted, small { color: var(--muted); font-size: 13px; line-height: 1.55; }
.eyebrow { color: #bcece0; font-size: 13px; font-weight: 700; }
.choices, .actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr)); gap: 7px; }
.button, .chip, .tile { border: 1px solid transparent; min-height: 38px; border-radius: 10px; padding: 6px 10px; font-size: 14px; line-height: 1.3; }
.button { background: #eaf6f2; color: var(--deep); font-weight: 650; }
.button.primary { background: var(--teal); color: white; }
.button:hover, .tile:hover, .chip:hover, .link:hover, .capsule:hover { filter: brightness(.96); }
.chip { background: #f4f8f7; border-color: var(--line); color: var(--muted); }
.chip[aria-pressed="true"] { color: var(--deep); border-color: #86c7b8; background: #dff3ed; font-weight: 750; }
.tile { display: grid; gap: 5px; justify-items: center; background: #f2f9f7; padding: 8px 2px; }
.tile b, .row-icon { display: grid; place-items: center; width: 30px; height: 30px; color: var(--teal); background: #dbf1eb; border-radius: 9px; font-size: 17px; }
.link { width: 100%; display: flex; align-items: center; text-align: left; gap: 9px; padding: 8px 0; min-height: 40px; border: 0; border-bottom: 1px solid var(--line); background: white; }
.link:last-child { border-bottom: 0; }
.link .chevron { margin-left: auto; color: var(--muted); }
.item { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 11px; align-items: center; }
.item > .actions { grid-column: 1 / -1; }
.item strong, .item small { display: block; }
.art { display: grid; place-items: center; min-height: 65px; border-radius: 13px; background: radial-gradient(circle at 68% 32%, #fbfffd 5%, #d1eee5 45%, #9ad0c4); }
.art.large { min-height: 165px; }
.art.device::before { content: ""; width: 45%; max-width: 116px; aspect-ratio: 1.25; border: 3px solid #4baca0; border-radius: 24%; box-shadow: 4px 7px 16px #2f786c50, inset 0 0 0 4px #f5fffb; background: radial-gradient(circle, #1b7e75 12%, #90d5c7 13% 23%, #e8fffa 24%); transform: rotate(-12deg); }
.art:not(.device) { color: var(--deep); font-size: 25px; }
.price { color: #a34c27; font-weight: 750; }
.split { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 9px; }
.split .choices { display: grid; align-content: start; }
.field { display: grid; gap: 5px; font-size: 14px; }
.field input, .field textarea { border: 1px solid #c9e1da; border-radius: 9px; padding: 9px; width: 100%; background: #f7faf9; color: inherit; }
.empty { text-align: center; padding: 25px 12px; }
.empty b { display: block; font-size: 29px; color: var(--teal); }
.empty p { margin: 5px 0 10px; }
.float { position: sticky; z-index: 1; bottom: 8px; display: flex; gap: 5px; justify-content: end; margin: 0 12px 8px; pointer-events: none; }
.float button { pointer-events: auto; padding-inline: 10px; box-shadow: 0 2px 10px #18373330; }
.quantity { display: inline-flex; gap: 8px; align-items: center; }
progress { width: 100%; accent-color: var(--teal); }
dialog { position: absolute; inset: auto 0 0; width: 100%; max-width: none; max-height: 84%; margin: 0; overflow: auto; background: white; color: inherit; border: 0; border-radius: 22px 22px 0 0; padding: 16px 16px 23px; box-shadow: 0 0 0 100vmax #0b27258c; }
dialog::backdrop { background: transparent; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.dialog-head h2 { font-size: 19px; }
.dialog-body { display: grid; gap: 10px; }
#toast { pointer-events: none; position: absolute; z-index: 5; bottom: 81px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 90%; border-radius: 12px; text-align: center; color: white; background: #173733; padding: 9px 13px; font-size: 14px; }
#toast:empty { display: none; }
@media (max-width: 670px) {
  /* 真机模式：隐藏走查区、去掉手机外壳，全屏铺满；桌面端仍保留外壳与走查工具 */
  .studio { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  .review { display: none; }
  .phone { height: 100dvh; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
}
@media (max-height: 620px) and (min-width: 671px) {
  .studio { align-items: start; }
}
dialog { position: fixed; inset: auto auto var(--sheet-bottom, 0) var(--sheet-left, 0); width: var(--sheet-width, 100%); max-height: var(--sheet-height, 84%); }
.dialog-toast:empty { display: none; }
.dialog-toast { border-radius: 10px; padding: 8px 11px; background: #173733; color: white; font-size: 14px; }
.banner-tabs { margin: 7px 0 0; }
.banner-tabs .choices { justify-content: center; }
.banner-tabs .chip { min-height: 32px; }
.ticker { display: flex; overflow: hidden; color: var(--deep); font-size: 14px; }
.ticker > div { flex: 0 0 100%; text-align: center; animation: ticker 8s ease-in-out infinite; }
@keyframes ticker { 0%, 60% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.skeleton { height: 76px; border-radius: 12px; background: linear-gradient(100deg, #e5efec, #f8fcfb, #e5efec); }
.invite-code { min-height: 95px; font-size: 55px; }
@media (prefers-reduced-motion: reduce) { .ticker > div { animation: none; } }
