:root{
  --bg:#f4f6f8; --card:#ffffff; --ink:#101418; --sub:#6b7683;
  --green:#07c160; --green-dark:#05a34f; --line:#e8ecf0;
  --warn:#ff8f1f; --red:#f5483b; --blue:#3a7afe;
  --radius:16px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
[hidden]{display:none !important}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue","Microsoft YaHei",sans-serif;
  font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
body{padding-bottom:env(safe-area-inset-bottom)}
.phone{max-width:520px;margin:0 auto;min-height:100vh;background:var(--bg);padding-bottom:32px}
button{font:inherit;border:0;background:none;color:inherit;cursor:pointer}
h1,h2,h3,p{margin:0}
.muted{color:var(--sub)}
.small{font-size:12px}

/* 顶栏 */
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:calc(14px + env(safe-area-inset-top)) 16px 22px;background:#0e1116;color:#fff}
.shop{display:flex;align-items:center;gap:10px}
.logo{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#07c160,#0aa7a0);
  display:grid;place-items:center;font-weight:700;font-size:18px;flex:0 0 auto}
.topbar h1{font-size:17px;font-weight:650;letter-spacing:.2px}
.topbar .sub{font-size:11.5px;color:#9aa4b1;margin-top:2px}
.icon-btn{width:36px;height:36px;border-radius:50%;background:#1b2027;color:#c9d2dc;display:grid;place-items:center}
.icon-btn:active{transform:scale(.94)}

/* 状态卡 */
.card{margin:14px 14px 0;background:var(--card);border-radius:var(--radius);padding:14px 16px;
  box-shadow:0 1px 2px rgba(16,20,24,.04),0 8px 24px -16px rgba(16,20,24,.18)}
.status-card{margin-top:-6px;position:relative;z-index:2}
.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.pill{font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;background:#e9f9f0;color:var(--green-dark)}
.pill.off{background:#f1f3f5;color:var(--sub)}
.quota{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.quota-num b{font-size:26px;line-height:1;letter-spacing:-.5px}
.quota-num span{font-size:12px;color:var(--sub);margin-left:2px}
.quota-bar{flex:1;min-width:90px;height:6px;border-radius:999px;background:#eef1f4;overflow:hidden}
.quota-bar i{display:block;height:100%;background:linear-gradient(90deg,#07c160,#37d67a);border-radius:999px;
  transition:width .35s ease}
.status-actions{display:flex;gap:8px;margin-top:12px}

/* 按钮 */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;
  height:42px;padding:0 18px;border-radius:12px;font-weight:600;font-size:15px;
  background:var(--green);color:#fff;transition:transform .12s,opacity .2s}
.btn:active{transform:scale(.97)}
.btn.ghost{background:#f4f6f8;color:var(--ink)}
.btn.small{height:34px;padding:0 14px;font-size:13px;border-radius:10px}
.btn.block{width:100%}
.btn:disabled{opacity:.45;transform:none}
.btn.danger{background:#fff0ef;color:var(--red)}

/* tabs */
.tabs{display:flex;gap:6px;margin:14px 14px 0;background:#e9edf1;border-radius:12px;padding:4px}
.tab{flex:1;height:36px;border-radius:9px;font-size:14px;font-weight:600;color:var(--sub)}
.tab.active{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(16,20,24,.08)}

/* 日期条 */
.view{padding:0 14px}
.date-strip{display:flex;gap:8px;overflow-x:auto;padding:14px 0 4px;scrollbar-width:none}
.date-strip::-webkit-scrollbar{display:none}
.date-chip{flex:0 0 auto;width:58px;height:66px;border-radius:14px;background:#fff;border:1.5px solid transparent;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  box-shadow:0 1px 2px rgba(16,20,24,.05)}
.date-chip .wd{font-size:11.5px;color:var(--sub)}
.date-chip .dd{font-size:17px;font-weight:700;letter-spacing:-.3px}
.date-chip .dot{width:4px;height:4px;border-radius:50%;background:var(--green);opacity:0}
.date-chip.has .dot{opacity:1}
.date-chip.active{background:#0e1116;color:#fff;border-color:#0e1116}
.date-chip.active .wd{color:#9aa4b1}
.date-chip.today .dd::after{content:"今";font-size:9px;margin-left:2px;color:var(--green)}
.date-chip.active.today .dd::after{color:#37d67a}

.day-head{display:flex;align-items:baseline;justify-content:space-between;margin:16px 2px 10px}
.day-head h2{font-size:16px;font-weight:700}

/* 场次卡 */
.session-list{display:flex;flex-direction:column;gap:10px}
.session{background:#fff;border-radius:14px;padding:14px;display:flex;gap:12px;align-items:center;
  box-shadow:0 1px 2px rgba(16,20,24,.05)}
.session .time{width:62px;flex:0 0 auto;text-align:center}
.session .time b{display:block;font-size:16px;letter-spacing:-.2px}
.session .time span{font-size:11px;color:var(--sub)}
.session .info{flex:1;min-width:0}
.session .info .t{font-size:14.5px;font-weight:650;margin-bottom:3px}
.session .info .m{font-size:12px;color:var(--sub);display:flex;gap:8px;flex-wrap:wrap}
.seat{display:inline-flex;align-items:center;gap:4px}
.seat i{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green)}
.seat.low i{background:var(--warn)}
.seat.full i{background:var(--red)}
.session .act{flex:0 0 auto}
.badge{font-size:12px;font-weight:600;padding:5px 10px;border-radius:9px}
.badge.done{background:#f1f3f5;color:var(--sub)}
.badge.wait{background:#fff6e8;color:#b96a00}
.badge.mine{background:#e9f9f0;color:var(--green-dark)}
.session.mine{box-shadow:0 0 0 1.5px rgba(7,193,96,.45),0 1px 2px rgba(16,20,24,.05)}
.session.full .t{opacity:.65}

.sec-title{font-size:14px;font-weight:700;margin:18px 2px 10px;color:#3b444f}

/* 开卡说明卡 */
.notice{background:#fff;border-radius:14px;padding:14px 16px;margin-bottom:10px;
  box-shadow:0 1px 2px rgba(16,20,24,.05)}
.notice b{font-size:14.5px}
.notice p{font-size:12.5px;color:#6b7683;line-height:1.7;margin:6px 0 10px}
.empty{background:#fff;border-radius:14px;padding:26px;text-align:center;color:var(--sub);font-size:13px}
.tip{font-size:11.5px;color:#8b95a1;line-height:1.8;margin:16px 4px 0}

/* 会员卡 */
.plan-list{display:flex;flex-direction:column;gap:10px}
.plan{background:#fff;border-radius:16px;padding:16px;position:relative;overflow:hidden;
  box-shadow:0 1px 2px rgba(16,20,24,.05)}
.plan.hot{box-shadow:0 0 0 1.5px rgba(7,193,96,.5),0 8px 24px -18px rgba(7,193,96,.9)}
.plan .tag{position:absolute;right:0;top:0;background:var(--green);color:#fff;font-size:11px;
  padding:3px 10px;border-bottom-left-radius:10px}
.plan .pn{font-size:15px;font-weight:700}
.plan .pd{font-size:12px;color:var(--sub);margin:4px 0 10px}
.plan .price{font-size:22px;font-weight:800;letter-spacing:-.5px}
.plan .price small{font-size:12px;font-weight:500;color:var(--sub);margin-left:2px}
.plan .row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.plan .per{font-size:11.5px;color:#8b95a1;margin-top:4px}

/* toast */
.toast{position:fixed;left:50%;bottom:88px;transform:translate(-50%,20px);max-width:86%;
  background:rgba(16,20,24,.92);color:#fff;padding:11px 16px;border-radius:12px;font-size:13.5px;
  opacity:0;pointer-events:none;transition:all .26s ease;z-index:60;text-align:center;line-height:1.45}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* sheet */
.sheet-mask{position:fixed;inset:0;background:rgba(9,12,16,.45);display:flex;align-items:flex-end;
  justify-content:center;z-index:70;backdrop-filter:blur(2px)}
.sheet{width:100%;max-width:520px;background:#fff;border-radius:20px 20px 0 0;padding:20px 18px
  calc(20px + env(safe-area-inset-bottom));animation:up .26s ease}
@keyframes up{from{transform:translateY(30px);opacity:.6}to{transform:none;opacity:1}}
.sheet h3{font-size:16px;margin-bottom:6px}
.sheet .desc{font-size:13px;color:var(--sub);line-height:1.6;margin-bottom:16px}
.sheet .foot{display:flex;gap:10px;margin-top:18px}
.sheet .foot .btn{flex:1}
.confirm-line{background:#f7f9fa;border-radius:12px;padding:12px;font-size:13px;line-height:1.7}
.confirm-line b{font-size:15px}
