/* ============================================================
   白浪 · H5 交互演示
   深色展台 + 手机壳 + 搪瓷白屏内界面
   ============================================================ */

:root {
  --ink: #081420;
  --ink-2: #0e2030;
  --ink-3: #16303f;
  --paper: #f1eee4;
  --paper-2: #faf8f1;
  --cyan: #57e0d0;
  --cyan-deep: #1fa79c;
  --coral: #f4735b;
  --coral-deep: #d9503a;
  --gold: #d9b382;
  --slate: #64747e;
  --display: "Bahnschrift", "DIN Alternate", "Segoe UI Semibold", "Microsoft YaHei", sans-serif;
  --serif: "STZhongsong", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --mono: "Consolas", "Cascadia Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--paper);
  background: var(--ink);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(87, 224, 208, 0.14), transparent 42%),
    radial-gradient(circle at 82% 88%, rgba(244, 115, 91, 0.12), transparent 44%),
    linear-gradient(rgba(241, 238, 228, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 238, 228, 0.05) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  -webkit-font-smoothing: antialiased;
}

.stage { min-height: 100vh; display: flex; flex-direction: column; padding: 22px 34px 18px; max-width: 1320px; margin: 0 auto; }

.stage__head { display: flex; align-items: center; gap: 14px; }
.back { color: rgba(241, 238, 228, 0.62); text-decoration: none; font-size: 12px; letter-spacing: 0.04em; }
.back:hover { color: var(--cyan); }
.tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(87, 224, 208, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.stage__body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 44px; align-items: center; padding: 18px 0 10px; }

/* ---------------- 文案区 ---------------- */

.pitch__en { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.3em; color: rgba(87, 224, 208, 0.8); }
.pitch__title {
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1.12;
  letter-spacing: 0.06em;
  margin: 14px 0 16px;
  font-weight: 400;
}
.pitch__title em { font-style: normal; color: var(--cyan); }
.pitch__lede { max-width: 520px; color: rgba(241, 238, 228, 0.66); font-size: 13px; line-height: 1.85; margin: 0 0 24px; }

.steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 2px; max-width: 560px; }
.steps li {
  display: grid;
  grid-template-columns: 34px 118px 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s;
}
.steps li:hover { background: rgba(87, 224, 208, 0.07); }
.steps li.is-on { border-left-color: var(--cyan); background: rgba(87, 224, 208, 0.09); }
.steps span { font-family: var(--mono); font-size: 10px; color: var(--cyan-deep); letter-spacing: 0.16em; }
.steps b { font-size: 13px; font-weight: 700; }
.steps i { font-style: normal; font-size: 11.5px; color: rgba(241, 238, 228, 0.55); }

.pitch__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.pitch__facts div { border-top: 1px solid rgba(241, 238, 228, 0.16); padding-top: 8px; }
.pitch__facts b { display: block; font-size: 12px; }
.pitch__facts span { font-size: 10.5px; color: rgba(241, 238, 228, 0.45); }

/* ---------------- 手机 ---------------- */

.device { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone {
  position: relative;
  width: 372px;
  height: 762px;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #1d3b4c, #0a1a26 40%, #12252f);
  box-shadow:
    0 60px 120px -50px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(241, 238, 228, 0.14),
    inset 0 0 0 7px rgba(8, 20, 32, 0.9);
}
.phone__notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 22px;
  border-radius: 0 0 14px 14px;
  background: #08131c;
  z-index: 5;
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.phone__caption { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; color: rgba(241, 238, 228, 0.4); }

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: rgba(10, 24, 34, 0.5);
  letter-spacing: 0.08em;
}
.statusbar__brand { letter-spacing: 0.24em; color: rgba(10, 24, 34, 0.42); }

.app { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* ---------------- 屏内通用 ---------------- */

.screen-head { padding: 2px 18px 10px; }
.screen-head__store { display: flex; align-items: center; gap: 8px; }
.screen-head__name { font-size: 17px; font-weight: 700; letter-spacing: 0.01em; }
.screen-head__sub { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: var(--slate); text-transform: uppercase; margin-top: 3px; }
.screen-head__switch { margin-left: auto; font-size: 10.5px; color: var(--cyan-deep); border: 1px solid rgba(31, 167, 156, 0.35); border-radius: 999px; padding: 3px 9px; background: transparent; }

.scroll { flex: 1; overflow-y: auto; padding: 0 14px 96px; scrollbar-width: thin; }
.scroll::-webkit-scrollbar { width: 4px; }
.scroll::-webkit-scrollbar-thumb { background: rgba(10, 24, 34, 0.18); border-radius: 4px; }

.machine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.mcard {
  position: relative;
  border: 1px solid rgba(10, 24, 34, 0.14);
  border-radius: 14px;
  background: var(--paper-2);
  padding: 11px 11px 10px;
  text-align: left;
  transition: transform 0.14s, border-color 0.14s, box-shadow 0.14s;
  box-shadow: 0 16px 30px -28px rgba(10, 24, 34, 0.6);
}
.mcard:active { transform: scale(0.985); }
.mcard.is-free { border-color: rgba(31, 167, 156, 0.4); }
.mcard.is-busy { opacity: 0.86; }
.mcard.is-off { opacity: 0.5; }
.mcard__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mcard__name { font-size: 12px; font-weight: 700; }
.mcard__code { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; color: var(--slate); }
.mcard__kind { margin-top: 8px; font-size: 9.5px; color: var(--slate); }

.ring {
  --p: 0;
  position: relative;
  width: 62px;
  height: 62px;
  margin: 9px auto 8px;
  border-radius: 50%;
  background:
    conic-gradient(var(--cyan-deep) calc(var(--p) * 1%), rgba(10, 24, 34, 0.1) 0),
    radial-gradient(circle at 50% 45%, var(--paper-2) 55%, #e7e2d4 56%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 4px var(--paper-2), inset 0 0 0 5px rgba(10, 24, 34, 0.12);
}
.ring__in {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cyan);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 13px;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ring__in small { display: block; font-family: var(--mono); font-size: 6px; letter-spacing: 0.16em; color: rgba(87, 224, 208, 0.7); margin-top: 2px; }
.mcard.is-done .ring { box-shadow: inset 0 0 0 4px var(--coral), inset 0 0 0 5px rgba(10, 24, 34, 0.12); }
.mcard.is-done .ring__in { background: var(--coral-deep); color: #fff; }
.mcard.is-off .ring__in { background: #5b6a72; color: #fff; }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; padding: 1px 7px; border-radius: 999px; border: 1px solid rgba(10, 24, 34, 0.14); white-space: nowrap; }
.pill i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.pill--ok { color: #1d7a52; background: rgba(63, 178, 127, 0.12); border-color: rgba(63, 178, 127, 0.3); }
.pill--cyan { color: #0b3f45; background: rgba(87, 224, 208, 0.22); border-color: rgba(31, 167, 156, 0.35); }
.pill--warn { color: #8c5c11; background: rgba(232, 163, 61, 0.14); border-color: rgba(232, 163, 61, 0.3); }
.pill--muted { color: var(--slate); }

.sheet-mask { position: absolute; inset: 0; background: rgba(8, 20, 32, 0.4); display: flex; align-items: flex-end; z-index: 20; }
.sheet {
  width: 100%;
  background: var(--paper);
  border-radius: 18px 18px 0 0;
  padding: 14px 16px 16px;
  animation: up 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 84%;
  display: flex;
  flex-direction: column;
}
@keyframes up { from { transform: translateY(24px); opacity: 0.4; } to { transform: translateY(0); opacity: 1; } }
.sheet__grab { width: 34px; height: 3px; border-radius: 2px; background: rgba(10, 24, 34, 0.18); margin: 0 auto 12px; }
.sheet__title { font-size: 14px; font-weight: 700; }
.sheet__sub { font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; color: var(--slate); margin: 3px 0 12px; }

.prog {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(10, 24, 34, 0.12);
  border-radius: 11px;
  background: var(--paper-2);
  margin-bottom: 7px;
  text-align: left;
}
.prog.is-on { border-color: var(--cyan-deep); box-shadow: inset 0 0 0 1px var(--cyan-deep); }
.prog__main { flex: 1; min-width: 0; }
.prog__name { font-size: 12.5px; font-weight: 700; }
.prog__meta { font-family: var(--mono); font-size: 9px; color: var(--slate); margin-top: 3px; letter-spacing: 0.06em; }
.prog__price { font-family: var(--display); font-size: 15px; font-variant-numeric: tabular-nums; }
.prog__price small { display: block; font-family: var(--mono); font-size: 8px; color: var(--slate); text-align: right; }

.summary { border-top: 1px dashed rgba(10, 24, 34, 0.16); margin-top: 10px; padding-top: 10px; }
.summary__row { display: flex; align-items: baseline; justify-content: space-between; font-size: 11.5px; padding: 3px 0; color: var(--slate); }
.summary__row b { color: var(--ink); font-family: var(--display); font-variant-numeric: tabular-nums; }
.summary__row--total { border-top: 1px solid rgba(10, 24, 34, 0.14); margin-top: 6px; padding-top: 8px; font-size: 13px; color: var(--ink); }
.summary__row--total b { font-size: 20px; }
.tip { font-size: 10px; color: var(--slate); line-height: 1.7; margin-top: 8px; }

.btn-primary {
  width: 100%;
  padding: 13px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper-2);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-top: 12px;
}
.btn-primary:active { transform: scale(0.99); }
.btn-primary--cyan { background: var(--cyan-deep); color: #04222a; font-weight: 700; }
.btn-ghost { width: 100%; padding: 11px; border: 1px solid rgba(10, 24, 34, 0.16); border-radius: 12px; background: transparent; font-size: 12px; margin-top: 8px; }

/* 支付 */
.pay { text-align: center; padding: 8px 4px 4px; }
.pay__ring {
  width: 92px;
  height: 92px;
  margin: 6px auto 14px;
  border-radius: 50%;
  border: 2px dashed rgba(31, 167, 156, 0.5);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 26px;
  color: var(--cyan-deep);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pay__title { font-size: 15px; font-weight: 700; }
.pay__sub { font-size: 11px; color: var(--slate); margin-top: 5px; }

/* 运行中 */
.running { padding: 6px 18px 0; text-align: center; }
.bigring {
  --p: 0;
  position: relative;
  width: 208px;
  height: 208px;
  margin: 14px auto 16px;
  border-radius: 50%;
  background:
    conic-gradient(var(--cyan-deep) calc(var(--p) * 1%), rgba(10, 24, 34, 0.09) 0),
    radial-gradient(circle at 50% 45%, var(--paper-2) 52%, #e7e2d4 53%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 10px var(--paper-2), inset 0 0 0 11px rgba(10, 24, 34, 0.1), 0 30px 50px -40px rgba(10, 24, 34, 0.7);
}
.bigring__in { width: 150px; height: 150px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.bigring__time { font-family: var(--display); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.bigring__label { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.26em; color: rgba(87, 224, 208, 0.75); margin-top: 7px; }
.running__prog { font-size: 13px; font-weight: 700; }
.running__meta { font-family: var(--mono); font-size: 9.5px; color: var(--slate); margin-top: 4px; letter-spacing: 0.08em; }
.running__hint { font-size: 10.5px; color: var(--slate); line-height: 1.8; margin: 14px 0; }

.done { padding: 12px 18px 0; text-align: center; }
.done__stamp {
  display: inline-block;
  margin: 18px 0 12px;
  padding: 8px 18px;
  border: 2px solid var(--coral);
  border-radius: 8px;
  color: var(--coral-deep);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  transform: rotate(-3deg);
}
.done__title { font-size: 20px; font-weight: 700; }
.done__sub { font-size: 11.5px; color: var(--slate); margin: 6px 0 14px; }
.countdown { font-family: var(--display); font-size: 34px; color: var(--ink); font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; font-family: var(--sans); color: var(--slate); margin-left: 4px; }

/* 订单 */
.order-item { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px dashed rgba(10, 24, 34, 0.12); }
.order-item:last-child { border-bottom: 0; }
.order-item__main { flex: 1; min-width: 0; }
.order-item__name { font-size: 12px; font-weight: 700; }
.order-item__meta { font-family: var(--mono); font-size: 8.5px; color: var(--slate); margin-top: 3px; letter-spacing: 0.06em; }
.order-item__amt { font-family: var(--display); font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }

/* 底栏 */
.tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(250, 248, 241, 0.96);
  border-top: 1px solid rgba(10, 24, 34, 0.1);
  padding: 8px 0 14px;
  backdrop-filter: blur(6px);
}
.tabbar button { border: 0; background: transparent; font-size: 10px; color: var(--slate); display: grid; gap: 3px; justify-items: center; }
.tabbar button.is-on { color: var(--ink); font-weight: 700; }
.tabbar em { font-size: 15px; font-style: normal; line-height: 1; }

.stage__foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(241, 238, 228, 0.3);
  border-top: 1px solid rgba(241, 238, 228, 0.1);
  padding-top: 12px;
}

.mini-note { font-size: 10px; color: var(--slate); text-align: center; margin-top: 10px; }

@media (max-width: 1080px) {
  .stage__body { grid-template-columns: 1fr; gap: 26px; justify-items: center; }
  .pitch { max-width: 640px; }
  .pitch__title { font-size: 40px; }
  .pitch__facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .stage { padding: 16px 14px; }
  .phone { width: 100%; height: auto; aspect-ratio: 372 / 762; }
  .steps li { grid-template-columns: 28px 100px 1fr; }
}
