

:root {
    --primary: #22c55e;
    --primary-dark: #15803d;
    --gold: #f59e0b;
    --danger: #c81e1e;
    --blue: #3b82f6;
    --ink: #111827;
    --ink2: #4b5563;
    --ink3: #5b6572;
    --ink4: #5b6572;
    --line: #eef0f4;
    --bg: #f4f6f8;
    --radius: 12px;
}

.badge.on { background: #e8f7ee; color: #14663a; }
.badge.off { background: #f3f4f6; color: #5b6572; }

.stat-num small { font-size: 13px; color: var(--ink3); font-weight: 400; }
code { background: #f3f4f6; border-radius: 5px; padding: 1px 5px; font-size: 12.5px; }

* { box-sizing: border-box; }
body.h5 {
    margin: 0;
    font: 14px/1.65 -apple-system, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    padding-bottom: 72px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.h5 .scroll-x { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.h5 .scroll-x > * { flex: 0 0 auto; }
.h5 a { color: inherit; text-decoration: none; }
.h5 .wrap { max-width: 560px; margin: 0 auto; padding: 0 12px 20px; }
.h5 .card { background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: 0 2px 10px rgba(17,24,39,.05); margin-bottom: 10px; }

.h5 .nav {
    position: sticky; top: 0; z-index: 20;
    background: linear-gradient(180deg, #1eb85a, #22c55e);
    color: #fff; display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; font-size: 16px; font-weight: 600;
}
.h5 .nav.white { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.h5 .nav .back { width: 22px; font-size: 20px; font-weight: 400; }
.h5 .nav .grow { flex: 1; }

.h5 .banner {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(120deg, #0f9d52, #22c55e 45%, #86efac);
    padding: 18px 16px 22px;
}
.h5 .banner h1 { font-size: 20px; margin: 8px 0 6px; }
.h5 .banner p { margin: 0; font-size: 12.5px; opacity: .93; }
.h5 .banner .cta {
    display: inline-block; margin-top: 12px; background: #fff; color: var(--primary-dark);
    font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 7px 16px;
}

.h5 .kuni { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 4px; text-align: center; }
.h5 .kuni .it { font-size:12px; color: var(--ink2); }
.h5 .kuni .it em {
    display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 5px;
    border-radius: 15px; font-size: 21px; font-style: normal;
    background: linear-gradient(140deg, #f0fdf4, #dcfce7);
}

.h5 .row { display: flex; align-items: center; gap: 8px; }
.h5 .between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.h5 .col { display: flex; flex-direction: column; }
.h5 .grow { flex: 1; min-width: 0; }
.h5 .wrapw { flex-wrap: wrap; }
.h5 .center { display: flex; align-items: center; justify-content: center; }
.h5 .mt8 { margin-top: 8px; } .h5 .mt10 { margin-top: 10px; } .h5 .mt12 { margin-top: 12px; }
.h5 .muted { color: var(--ink3); } .h5 .muted2 { color: var(--ink4); }
.h5 .small { font-size: 12px; } .h5 .bold { font-weight: 600; }
.h5 .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h5 .hr { height: 1px; background: var(--line); margin: 10px 0; }
.h5 .glabel { font-size: 13px; font-weight: 600; padding: 4px 0 8px; display: flex; align-items: center; gap: 6px; }
.h5 .glabel:before { content: ""; width: 3px; height: 13px; border-radius: 2px; background: var(--primary); }

.h5 .avatar {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; font-weight: 600; background: linear-gradient(135deg, #34d399, #059669); flex: 0 0 auto;
}
.h5 .badge {
    display: inline-block; padding: 2px 8px; border-radius: 999px; font-size:12px;
    background: #f0fdf4; color: var(--primary-dark); border: 1px solid #dcfce7;
}
.h5 .badge.gold { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.h5 .badge.red { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.h5 .badge.blue { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.h5 .badge.gray { background: #f3f4f6; color: var(--ink2); border-color: #e5e7eb; }
.h5 .chip {
    display: inline-block; font-size: 12px; padding: 5px 12px; border-radius: 999px;
    background: #fff; color: var(--ink2); border: 1px solid #e5e7eb;
}
.h5 .chip.on { background: #f0fdf4; color: var(--primary-dark); border-color: var(--primary); font-weight: 600; }
.h5 .price { color: var(--danger); font-weight: 700; }
.h5 .price em { font-style: normal; font-size:12px; }

.h5 .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: linear-gradient(135deg, #22c55e, #15803d); color: #fff;
    border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600;
    padding: 9px 18px; cursor: pointer;
}
.h5 .btn.sm { font-size: 12px; padding: 6px 14px; }
.h5 .btn.lg { width: 100%; padding: 13px; font-size: 15px; border-radius: 12px; }
.h5 .btn.ghost { background: #fff; color: var(--primary-dark); border: 1px solid var(--primary); }
.h5 .btn.gray { background: #fff; color: var(--ink2); border: 1px solid #e5e7eb; }
.h5 .btn.gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.h5 .btn.block { display: flex; width: 100%; }

.h5 .svc { display: flex; gap: 10px; padding: 11px; background: #fff; border-radius: var(--radius); margin-bottom: 10px; box-shadow: 0 2px 10px rgba(17,24,39,.05); }
.h5 .svc .ph {
    width: 92px; height: 72px; border-radius: 10px; flex: 0 0 auto; display: grid; place-items: center;
    font-size: 28px; background: linear-gradient(135deg, #a7f3d0, #4ade80);
}
.h5 .svc .nm { font-size: 13.5px; font-weight: 600; }
.h5 .svc .tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.h5 .svc .tags span { font-size:12px; color: var(--primary-dark); background: #f0fdf4; border-radius: 4px; padding: 1px 5px; }

.h5 .tcard { width: 118px; flex: 0 0 auto; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(17,24,39,.05); }
.h5 .tcard .cover { height: 92px; display: grid; place-items: center; font-size: 32px; background: linear-gradient(135deg, #bbf7d0, #34d399); }
.h5 .tcard .info { padding: 8px; }

.h5 .cell { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.h5 .cell:last-child { border-bottom: 0; }
.h5 .cell .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #f0fdf4; font-size: 17px; }
.h5 .cell .ttl { font-size: 13.5px; }
.h5 .cell .sub { font-size:12px; color: var(--ink4); display: block; }

.h5 .kv { display: flex; gap: 10px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.h5 .kv:last-child { border-bottom: 0; }
.h5 .kv .k { color: var(--ink3); flex: 0 0 92px; }
.h5 .kv .v { flex: 1; text-align: right; }

.h5 .tabs { display: flex; gap: 14px; background: #fff; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.h5 .tabs a { font-size: 13.5px; color: var(--ink2); padding: 10px 0 8px; position: relative; white-space: nowrap; }
.h5 .tabs a.on { color: var(--primary-dark); font-weight: 700; }
.h5 .tabs a.on:after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 20px; height: 3px; border-radius: 3px; background: var(--primary); }

.h5 .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.h5 .grid4 .it { padding: 10px 2px; font-size:12px; color: var(--ink2); }
.h5 .grid4 .it em { display: block; font-size: 20px; font-style: normal; margin-bottom: 4px; }

.h5 .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto;
    background: #fff; border-top: 1px solid var(--line); display: flex; z-index: 50;
    padding-bottom: env(safe-area-inset-bottom);
}
.h5 .tabbar a { flex: 1; text-align: center; padding: 8px 0 10px; font-size:12px; color: var(--ink4); }
.h5 .tabbar a em { display: block; font-size: 19px; font-style: normal; margin-bottom: 2px; }
.h5 .tabbar a.on { color: var(--primary-dark); font-weight: 600; }

.h5 .bottombar {
    position: fixed; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto;
    background: #fff; border-top: 1px solid var(--line); padding: 10px 12px; z-index: 51;
}
.h5 .bottombar.with-tab { bottom: 58px; }

.h5 .countdown { display: flex; gap: 6px; justify-content: center; align-items: center; }
.h5 .countdown b {
    width: 34px; height: 38px; border-radius: 9px; background: #111827; color: #fff;
    display: grid; place-items: center; font-size: 18px;
}
.h5 .flash { padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 10px; }
.h5 .flash-success { background: #e8f7ee; color: #14663a; }
.h5 .flash-error { background: #fdecec; color: #a11d1d; }
.h5 .flash-warning { background: #fffbeb; color: #92400e; }
.h5 .flash-info { background: #eff6ff; color: #1d4ed8; }

.h5 .map {
    position: relative; height: 380px; border-radius: var(--radius); overflow: hidden;
    background: linear-gradient(0deg, rgba(255,255,255,.9), rgba(255,255,255,.9)),
                repeating-linear-gradient(90deg, #e8eef3 0 2px, transparent 2px 46px),
                repeating-linear-gradient(0deg, #e8eef3 0 2px, transparent 2px 46px),
                linear-gradient(160deg, #f2f7f4, #eef4ff);
}
.h5 .map .pin {
    position: absolute; transform: translate(-50%, -100%); background: var(--primary-dark); color: #fff;
    border-radius: 999px; padding: 3px 9px; font-size:12px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.h5 .map .pin.busy { background: #94a3b8; }
.h5 .map .me { position: absolute; transform: translate(-50%, -50%); background: #3b82f6; color: #fff; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; font-size: 13px; }

.h5 .poster {
    border-radius: 14px; padding: 16px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(150deg, #c81e1e, #f97316 60%, #fbbf24);
}
.h5 .poster h2 { font-size: 22px; margin: 8px 0 6px; letter-spacing: 1px; }
.h5 .qr { width: 96px; height: 96px; background: repeating-conic-gradient(#111827 0 25%, #fff 0 50%) 0 0/12px 12px; border: 4px solid #fff; border-radius: 8px; }

.h5 .form label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--ink2); }
.h5 .form input, .h5 .form textarea, .h5 .form select {
    width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit;
    border: 1px solid #dfe3e8; border-radius: 8px; background: #fff;
}
.h5 .empty { text-align: center; padding: 40px 12px; color: var(--ink4); }
.h5 .empty em { display: block; font-size: 40px; font-style: normal; margin-bottom: 10px; }
