/* =========================================================
   小师科技SaaS管理平台 · 游戏俱乐部接单平台
   手机端优先设计
   ========================================================= */

:root {
    --bg: #080a12;
    --bg-2: #0c1020;
    --panel: #121728;
    --panel-2: #171e33;
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #eef2ff;
    --muted: #8b94ad;
    --primary: #8b6cff;
    --primary-2: #6d4dff;
    --cyan: #22d3ee;
    --gold: #f7c948;
    --green: #34d399;
    --red: #fb7185;
    --radius: 16px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background:
        radial-gradient(900px 500px at 50% -10%, rgba(124, 92, 255, .28), transparent 62%),
        radial-gradient(700px 420px at 100% 100%, rgba(34, 211, 238, .10), transparent 60%),
        var(--bg);
    color: var(--text);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

#app {
    max-width: 560px;
    margin: 0 auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(180deg, rgba(12, 16, 32, .55), rgba(8, 10, 18, .92));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 30px 80px rgba(0, 0, 0, .5);
}

/* ---------- 顶栏 ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 58px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(8, 10, 18, .78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.brand-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    display: grid; place-items: center;
    font-weight: 800; font-size: 16px; color: #fff;
    box-shadow: 0 6px 18px rgba(124, 92, 255, .38);
    flex: 0 0 auto;
}
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .2px; line-height: 1.2; }
.brand-sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; letter-spacing: .5px; }

.top-right { display: flex; align-items: center; gap: 8px; }
.avatar-btn {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--line-2);
    background: linear-gradient(135deg, rgba(124, 92, 255, .35), rgba(34, 211, 238, .25));
    color: #fff; font-weight: 700; font-size: 13px;
    display: grid; place-items: center;
    cursor: pointer;
}
.login-link {
    font-size: 12.5px; color: var(--text);
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .04);
    padding: 7px 14px; border-radius: 99px;
    cursor: pointer;
}

/* ---------- 主视图 ---------- */
.view-root {
    flex: 1;
    padding: 16px 16px calc(92px + var(--safe-bottom));
    animation: fadeUp .25s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- 底部导航 ---------- */
.tabbar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(560px, 100%);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 3px 8px calc(3px + var(--safe-bottom));
    background: rgba(10, 13, 24, .92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
}
.tab-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    padding: 3px 0 2px;
    color: var(--muted);
    font-size: 10px; font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: color .18s;
}
.tab-item svg { width: 17px; height: 17px; }
.tab-item.active { color: #fff; }
.tab-item.active svg { color: var(--primary); filter: drop-shadow(0 0 8px rgba(124, 92, 255, .7)); }

/* ---------- 通用 ---------- */
.sec-title { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 12px; }
.sec-title h2 { margin: 0; font-size: 16px; font-weight: 700; }
.sec-title .more { font-size: 12px; color: var(--muted); cursor: pointer; }

.card {
    background: linear-gradient(180deg, rgba(23, 30, 51, .95), rgba(18, 23, 40, .95));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
}

.btn {
    border: 0;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 700;
    padding: 11px 16px;
    cursor: pointer;
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: transform .15s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 8px 22px rgba(109, 77, 255, .3); }
.btn-cyan { background: linear-gradient(135deg, #22d3ee, #0ea5e9); box-shadow: 0 8px 22px rgba(14, 165, 233, .25); }
.btn-ghost { background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); color: var(--text); }
.btn-danger { background: rgba(251, 113, 133, .12); color: var(--red); border: 1px solid rgba(251, 113, 133, .3); }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; pointer-events: none; }

.pill {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600;
    padding: 4px 9px; border-radius: 99px;
    background: rgba(255, 255, 255, .06);
    color: var(--muted);
    border: 1px solid var(--line);
}
.pill.waiting { color: var(--gold); background: rgba(247, 201, 72, .1); border-color: rgba(247, 201, 72, .25); }
.pill.accepted { color: var(--cyan); background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .25); }
.pill.submitted { color: var(--primary); background: rgba(139, 108, 255, .12); border-color: rgba(139, 108, 255, .3); }
.pill.completed { color: var(--green); background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .25); }
.pill.cancelled { color: var(--muted); }

.price { color: var(--gold); font-weight: 800; }
.price small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 2px; }

/* ---------- 首页 Hero ---------- */
.hero {
    position: relative;
    border-radius: 20px;
    padding: 22px 18px 18px;
    overflow: hidden;
    background: linear-gradient(140deg, rgba(124, 92, 255, .95), rgba(58, 34, 168, .9) 55%, rgba(14, 116, 144, .85));
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 18px 40px rgba(70, 40, 190, .28);
}
.hero::after {
    content: "";
    position: absolute; right: -40px; top: -60px;
    width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .38), transparent 65%);
}
.hero-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10.5px; font-weight: 700; letter-spacing: 1px;
    padding: 5px 10px; border-radius: 99px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
}
.hero h1 { margin: 12px 0 6px; font-size: 25px; line-height: 1.28; letter-spacing: .3px; }
.hero h1 em { font-style: normal; color: #fff1a8; }
.hero p { margin: 0; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.hero-stats { display: flex; gap: 8px; margin-top: 16px; position: relative; z-index: 2; }
.hero-stat {
    flex: 1; padding: 9px 8px; border-radius: 12px;
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .14);
    text-align: center;
}
.hero-stat strong { display: block; font-size: 17px; letter-spacing: .5px; }
.hero-stat span { font-size: 10px; color: rgba(255, 255, 255, .7); }

/* ---------- 筛选 chips ---------- */
.chips {
    display: flex; gap: 8px; overflow-x: auto;
    padding: 2px 0 6px;
    scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: 0 0 auto;
    padding: 7px 14px; border-radius: 99px;
    font-size: 12px; font-weight: 600;
    color: var(--muted);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    cursor: pointer;
    white-space: nowrap;
}
.chip.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(124, 92, 255, .9), rgba(109, 77, 255, .9));
    border-color: rgba(139, 108, 255, .6);
    box-shadow: 0 6px 16px rgba(109, 77, 255, .26);
}

/* ---------- 俱乐部卡片 ---------- */
.club-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.club-scroll::-webkit-scrollbar { display: none; }
.club-card {
    flex: 0 0 210px;
    border-radius: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    background: var(--panel);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.club-card::before {
    content: "";
    position: absolute; right: -30px; top: -30px;
    width: 110px; height: 110px; border-radius: 50%;
    background: var(--club-color, var(--primary));
    opacity: .24; filter: blur(6px);
}
.club-card-head { display: flex; align-items: center; gap: 9px; position: relative; z-index: 1; }
.club-logo {
    width: 40px; height: 40px; border-radius: 11px;
    display: grid; place-items: center;
    font-weight: 800; font-size: 16px; color: #fff;
    background: var(--club-color, var(--primary));
    flex: 0 0 auto;
}
.club-card h3 { margin: 0; font-size: 14px; }
.club-card .sub { margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.club-card .rating { color: var(--gold); font-size: 12px; margin-top: 10px; position: relative; z-index: 1; }
.club-card .meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--muted); position: relative; z-index: 1; }

/* ---------- 单子列表 ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.service-row {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel);
}
.service-row .thumb {
    width: 44px; height: 44px; border-radius: 11px;
    flex: 0 0 auto;
    display: grid; place-items: center;
    font-size: 13px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, rgba(124, 92, 255, .85), rgba(34, 211, 238, .65));
}
.service-row .info { flex: 1; min-width: 0; }
.service-row .info h4 { margin: 0; font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.service-row .info .sub { margin-top: 3px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.service-row .right { text-align: right; flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.service-row .right .price { font-size: 15px; }

/* ---------- 俱乐部详情 ---------- */
.back-btn {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12.5px; color: var(--muted);
    background: none; border: 0; padding: 4px 0;
    cursor: pointer; margin-bottom: 10px;
}
.club-hero {
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(135deg, var(--club-color, var(--primary)), rgba(10, 13, 24, .55));
    border: 1px solid rgba(255, 255, 255, .14);
    position: relative;
    overflow: hidden;
}
.club-hero::after {
    content: ""; position: absolute; right: -50px; bottom: -70px;
    width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%);
}
.club-hero-head { display: flex; gap: 12px; align-items: center; position: relative; z-index: 1; }
.club-hero .club-logo { width: 54px; height: 54px; font-size: 20px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .18); }
.club-hero h1 { margin: 0; font-size: 20px; }
.club-hero .sub { font-size: 11.5px; color: rgba(255, 255, 255, .75); margin-top: 3px; }
.club-hero p { margin: 14px 0 0; font-size: 12.5px; line-height: 1.65; color: rgba(255, 255, 255, .82); position: relative; z-index: 1; }
.club-meta-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.club-meta-row .pill { background: rgba(0, 0, 0, .2); border-color: rgba(255, 255, 255, .16); color: #fff; }

.booster-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.booster-row::-webkit-scrollbar { display: none; }
.booster-chip {
    flex: 0 0 auto; min-width: 96px;
    padding: 10px 12px; border-radius: 13px;
    border: 1px solid var(--line);
    background: var(--panel);
    text-align: center;
}
.booster-chip .b-avatar {
    width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 7px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(124, 92, 255, .55), rgba(34, 211, 238, .35));
    font-size: 13px; font-weight: 700;
}
.booster-chip strong { display: block; font-size: 12.5px; }
.booster-chip span { font-size: 10.5px; color: var(--muted); }

/* ---------- 统计卡片 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-box {
    border-radius: 14px; padding: 13px;
    border: 1px solid var(--line);
    background: var(--panel);
}
.stat-box .k { font-size: 11px; color: var(--muted); }
.stat-box .v { font-size: 21px; font-weight: 800; margin-top: 4px; letter-spacing: .3px; }
.stat-box .v small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.stat-box.highlight { background: linear-gradient(140deg, rgba(124, 92, 255, .28), rgba(34, 211, 238, .12)); border-color: rgba(139, 108, 255, .35); }

/* ---------- 工单/订单卡片 ---------- */
.order-card {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel);
    padding: 13px 14px;
}
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.order-head h4 { margin: 0; font-size: 13.5px; line-height: 1.35; }
.order-head .sub { margin-top: 3px; font-size: 11px; color: var(--muted); }
.order-mid { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.order-mid .amount { font-size: 17px; font-weight: 800; color: var(--gold); }
.order-mid .amount small { font-size: 11px; color: var(--muted); font-weight: 500; }
.order-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.order-actions .btn { flex: 1; min-width: 88px; }

/* ---------- 表单 ---------- */
.f-field { display: block; margin-bottom: 13px; }
.f-field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.f-field input, .f-field textarea, .f-field select {
    width: 100%;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line-2);
    border-radius: 12px;
    padding: 11px 13px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.f-field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b94ad' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}
.f-field textarea { min-height: 74px; resize: vertical; }
.f-field input:focus, .f-field textarea:focus, .f-field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139, 108, 255, .14); }
.f-row { display: flex; gap: 10px; }
.f-row .f-field { flex: 1; }
.form-tip { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
.form-error { color: var(--red); font-size: 12px; min-height: 16px; margin-bottom: 6px; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 2px; }
.toggle-row span { font-size: 12.5px; color: var(--muted); }
.switch { width: 46px; height: 26px; border-radius: 99px; background: rgba(255, 255, 255, .12); position: relative; cursor: pointer; transition: background .2s; flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.switch.on::after { transform: translateX(20px); }

/* ---------- 分段选项卡 ---------- */
.seg-tabs {
    display: flex; gap: 4px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}
.seg-tabs::-webkit-scrollbar { display: none; }
.seg-tab {
    flex: 1 0 auto;
    border: 0; background: none;
    color: var(--muted);
    font-family: var(--font);
    font-size: 12px; font-weight: 700;
    padding: 8px 12px;
    border-radius: 9px;
    cursor: pointer;
    white-space: nowrap;
}
.seg-tab.active { background: linear-gradient(135deg, rgba(124, 92, 255, .9), rgba(109, 77, 255, .9)); color: #fff; }

/* ---------- 工作台头部 ---------- */
.work-head {
    border-radius: 18px; padding: 16px;
    background: linear-gradient(135deg, rgba(124, 92, 255, .26), rgba(34, 211, 238, .08));
    border: 1px solid rgba(139, 108, 255, .28);
    margin-bottom: 14px;
}
.work-head .label { font-size: 10.5px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.work-head h1 { margin: 5px 0 3px; font-size: 20px; }
.work-head p { margin: 0; font-size: 12px; color: var(--muted); }
.work-head .money { margin-top: 12px; display: flex; align-items: baseline; gap: 6px; }
.work-head .money strong { font-size: 27px; font-weight: 800; color: var(--gold); }
.work-head .money span { font-size: 11.5px; color: var(--muted); }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .icon {
    width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px;
    background: rgba(255, 255, 255, .05); border: 1px dashed var(--line-2);
    display: grid; place-items: center; font-size: 22px;
}
.empty h3 { margin: 0 0 6px; color: var(--text); font-size: 14px; }
.empty p { margin: 0; font-size: 12px; line-height: 1.6; }

/* ---------- 登录页 ---------- */
.login-wrap { padding-top: 12px; }
.login-logo { text-align: center; margin-bottom: 22px; }
.login-logo .mark {
    width: 66px; height: 66px; border-radius: 20px; margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    display: grid; place-items: center;
    font-size: 28px; font-weight: 800;
    box-shadow: 0 16px 40px rgba(109, 77, 255, .45);
}
.login-logo h1 { margin: 0; font-size: 20px; }
.login-logo p { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.login-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.login-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.login-tab { flex: 1; border: 0; background: rgba(255, 255, 255, .05); color: var(--muted); font-family: var(--font); font-size: 13px; font-weight: 700; padding: 9px; border-radius: 10px; cursor: pointer; }
.login-tab.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }

/* ---------- 我的 ---------- */
.me-card {
    border-radius: 18px; padding: 18px;
    background: linear-gradient(135deg, rgba(124, 92, 255, .32), rgba(34, 211, 238, .12));
    border: 1px solid rgba(139, 108, 255, .3);
    display: flex; align-items: center; gap: 14px;
}
.me-avatar {
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    display: grid; place-items: center; font-size: 20px; font-weight: 800;
    flex: 0 0 auto;
}
.me-card h2 { margin: 0; font-size: 17px; }
.me-card .sub { margin-top: 4px; font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.me-rows { margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.me-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 15px; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.me-row:last-child { border-bottom: 0; }
.me-row .v { color: var(--muted); font-size: 12.5px; }
.me-row.danger { color: var(--red); justify-content: center; font-weight: 700; }

/* ---------- 底部弹层 ---------- */
.sheet-mask {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(3px);
    display: flex; align-items: flex-end; justify-content: center;
    animation: fadeIn .2s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
    width: min(560px, 100%);
    max-height: 88dvh;
    overflow-y: auto;
    background: #101524;
    border-radius: 22px 22px 0 0;
    border-top: 1px solid var(--line-2);
    padding: 18px 18px calc(20px + var(--safe-bottom));
    animation: slideUp .26s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes slideUp { from { transform: translateY(40px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.sheet-handle { width: 38px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .18); margin: 0 auto 14px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head h3 { margin: 0; font-size: 17px; }
.sheet-head p { margin: 4px 0 0; font-size: 11.5px; color: var(--muted); }
.sheet-close { border: 0; background: rgba(255, 255, 255, .06); color: var(--muted); width: 30px; height: 30px; border-radius: 50%; font-size: 16px; cursor: pointer; flex: 0 0 auto; }
.sheet-actions { display: flex; gap: 10px; margin-top: 6px; }

.order-summary {
    padding: 13px; border-radius: 13px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    margin-bottom: 15px;
}
.order-summary .row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; margin-bottom: 7px; }
.order-summary .row:last-child { margin-bottom: 0; }
.order-summary .row span:first-child { color: var(--muted); }
.order-summary .total { font-size: 19px; font-weight: 800; color: var(--gold); }

/* ---------- Toast ---------- */
.toast-root { position: fixed; left: 0; right: 0; bottom: 90px; z-index: 120; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
    max-width: min(460px, 86vw);
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(20, 26, 44, .96);
    border: 1px solid var(--line-2);
    color: var(--text);
    font-size: 12.5px;
    line-height: 1.5;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
    animation: toastIn .22s ease both;
}
.toast.error { border-color: rgba(251, 113, 133, .4); color: #ffd7dd; }
.toast.success { border-color: rgba(52, 211, 153, .4); color: #d6ffee; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 搜索 ---------- */
.search-bar {
    display: flex; gap: 8px; margin-bottom: 12px;
}
.search-bar input {
    flex: 1; font-family: var(--font); font-size: 13px; color: var(--text);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line-2);
    border-radius: 12px; padding: 11px 13px; outline: none;
}
.search-bar input:focus { border-color: var(--primary); }

.info-line { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.info-line:last-child { border-bottom: 0; }
.info-line span:first-child { color: var(--muted); flex: 0 0 auto; }
.info-line span:last-child { text-align: right; word-break: break-all; }

.section-gap { height: 6px; }

.loading { padding: 60px 0; text-align: center; color: var(--muted); font-size: 13px; }
.spinner {
    width: 26px; height: 26px; margin: 0 auto 12px;
    border: 2px solid rgba(255, 255, 255, .12);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 561px) {
    body { padding: 18px 0; }
    #app { min-height: calc(100dvh - 36px); border-radius: 24px; overflow: hidden; }
    .tabbar { bottom: 18px; border-radius: 0 0 24px 24px; }
    .sheet-mask { align-items: center; }
    .sheet { border-radius: 22px; margin-bottom: 18px; max-width: 500px; }
}

/* ---------- 单子封面上传 ---------- */
.cover-upload {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, .05);
    border: 1px dashed rgba(255, 255, 255, .18);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.cover-upload img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.cover-upload-tip { text-align: center; color: var(--muted); }
.cover-upload-tip b { display: block; font-size: 12px; color: #cfc9e2; margin-bottom: 3px; }
.cover-upload-tip small { font-size: 10px; }
.hide { display: none !important; }

/* ---------- 收银台 ---------- */
.pay-list { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.pay-item {
    display: flex; align-items: center; gap: 11px;
    padding: 12px 13px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}
.pay-item:active { background: rgba(255, 255, 255, .08); }
.pay-logo {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px; font-weight: 800;
    flex: none;
}
.pay-name { flex: 1; font-size: 13px; font-weight: 700; display: flex; flex-direction: column; gap: 2px; }
.pay-name small { font-size: 10px; font-weight: 400; color: var(--muted); }
.pay-arrow { color: var(--muted); font-size: 18px; }
