/* 首页 */
.hero { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 6vw, 56px); background: linear-gradient(135deg, #ff7a45 0%, #ff5a36 55%, #e8451f 100%); color: #fff; box-shadow: var(--shadow-lg); }
.hero::after { content: "🍿🌶️🍜"; position: absolute; right: -10px; bottom: -22px; font-size: clamp(70px, 16vw, 150px); opacity: .22; letter-spacing: -.08em; transform: rotate(-8deg); }
.hero .tag { display: inline-block; background: rgba(255,255,255,.2); padding: 5px 13px; border-radius: 999px; font-weight: 700; font-size: 13px; margin-bottom: 16px; }
.hero p { margin: 14px 0 24px; max-width: 520px; font-size: 16px; opacity: .95; }
.hero .btn { background: #fff; color: var(--brand-deep); box-shadow: none; } .hero .btn.ghost { background: rgba(255,255,255,.18); color: #fff; box-shadow: none; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0 28px; }
.step { padding: 14px 10px; text-align: center; } .step b { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 8px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-deep); }
.step h3 { font-size: 14px; } .step p { font-size: 12px; color: var(--muted); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* 团卡片 */
.deal { overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.deal:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pic { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; font-size: 76px; background: var(--c, #ffe8e0); }
.pic::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.55), transparent 55%); }
.pic span { position: relative; filter: drop-shadow(0 8px 14px rgba(0,0,0,.18)); }
.pic .badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: rgba(255,255,255,.92); }
.pic .save { position: absolute; top: 12px; right: 12px; z-index: 1; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.deal .body { padding: 16px 18px 18px; display: grid; gap: 12px; flex: 1; align-content: start; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price b { font-size: 26px; font-weight: 800; color: var(--brand-deep); letter-spacing: -.03em; }
.price s { color: var(--muted); font-size: 14px; } .price small { color: var(--muted); }
.meter { display: grid; gap: 6px; font-size: 13px; }

/* 详情页 */
.detail { display: grid; gap: 18px; }
@media (min-width: 860px) { .detail { grid-template-columns: 1.1fr 1fr; align-items: start; } .detail .pic { font-size: 120px; aspect-ratio: 1; } .sticky { position: sticky; top: 80px; } }
.banner { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; }
.banner.good { background: var(--good-soft); color: var(--good); } .banner.bad { background: var(--bad-soft); color: var(--bad); }
.leaders { display: grid; gap: 8px; }
.leader-opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.leader-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.leader-opt input { width: 18px; min-height: 18px; height: 18px; accent-color: var(--brand); padding: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; flex: none; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; } .stepper button:hover { background: var(--line); }
.stepper input { width: 60px; border: 0; text-align: center; min-height: 44px; padding: 0; font-weight: 700; box-shadow: none !important; }
.bignum { font-size: 34px; font-weight: 800; color: var(--brand-deep); letter-spacing: -.03em; }
.note { font-size: 12.5px; color: var(--muted); padding: 10px 12px; background: var(--bg); border-radius: 10px; }

/* 认证页 */
.auth { max-width: 460px; margin: 20px auto; padding: 26px; } .auth form { display: grid; gap: 14px; margin-top: 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--line); padding: 4px; border-radius: 999px; }
.seg label { text-align: center; padding: 9px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted); }
.seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg input { position: absolute; opacity: 0; width: 0; }
.terms { max-height: 150px; overflow: auto; padding: 12px 14px 12px 28px; margin: 0; background: var(--bg); border-radius: 10px; font-size: 13px; color: var(--muted); }

/* 表格(后台) */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs a { white-space: nowrap; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tablewrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; } tr:last-child td { border-bottom: 0; }
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.kpi > div { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg); } .kpi b { display: block; font-size: 22px; letter-spacing: -.02em; }
.kpi span { font-size: 12px; color: var(--muted); }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(28,25,23,.5); display: grid; place-items: end center; backdrop-filter: blur(3px); }
@media (min-width: 640px) { .modal { place-items: center; } }
.sheet { width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; background: var(--surface); border-radius: 24px 24px 0 0; padding: 22px; animation: rise .22s ease; }
@media (min-width: 640px) { .sheet { border-radius: 24px; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; } .noti { padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .steps { gap: 6px; } .step p { display: none; } .two { grid-template-columns: 1fr; } .nav a.hide-sm { display: none; } }

/* 商品图 */
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail .pic { aspect-ratio: 4/3; }
.spec { padding: 10px 12px; background: var(--bg); border-radius: 10px; font-size: 14px; }
.bul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* 价格与紧迫感 */
.pricebox { display: grid; gap: 6px; }
.urgency { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius-sm); background: var(--brand-soft); border: 1.5px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.urgency.hot { background: var(--bad-soft); border-color: var(--bad); }
.urgency .progress { height: 12px; }
.timer.big { font-size: 22px; font-weight: 800; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.timer.big.urgent { color: var(--bad); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .timer.big.urgent { animation: none; } }

/* 团长赚差价 */
.earn { display: grid; gap: 4px; padding: 16px; border-radius: var(--radius-sm); background: linear-gradient(135deg, #16a34a, #0f7a37); color: #fff; }
.earn-n { font-size: 20px; font-weight: 800; letter-spacing: -.02em; } .earn-n b { font-size: 28px; }
.earn.cta { background: var(--ink); transition: transform .15s; } .earn.cta:hover { transform: translateY(-2px); }
.lead-band { margin-top: 32px; background: linear-gradient(135deg, #fff6f1, #fff); border: 1.5px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.lead-band p { max-width: 640px; }

/* 分享 */
.btn.share { box-shadow: none; color: #fff; } .btn.share.zalo { background: #0068ff; } .btn.share.fb { background: #1877f2; }

/* 帮助页 */
.info { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.doc { display: grid; gap: 12px; padding: clamp(18px, 4vw, 32px); }
.doc h3 { margin-top: 10px; } .doc p { color: #44403c; }
.infonav { display: flex; flex-wrap: wrap; gap: 6px; }
.infonav a { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.infonav a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 页脚 */
footer#foot { text-align: left; border-top: 0; margin-top: auto; background: #1c1917; color: #d6d3d1; padding: 36px 0 24px; font-size: 14px; }
.fgrid { display: grid; gap: 24px; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.fcol { display: grid; gap: 8px; align-content: start; } .fcol b { color: #fff; font-size: 14px; }
.fcol a:hover { color: #fff; text-decoration: underline; } .flogo { font-size: 22px !important; letter-spacing: -.03em; }
.fcol .small { color: #a8a29e; }
.fcopy { margin-top: 28px; padding-top: 16px; border-top: 1px solid #44403c; font-size: 12.5px; color: #a8a29e; }
@media (max-width: 760px) { .fgrid { grid-template-columns: 1fr 1fr; } .brandcol { grid-column: 1 / -1; } }
.upl-prev { width: 140px; height: 105px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* 团进度条 */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.fstep { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
.fstep b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--muted); font-size: 12px; }
.fstep.past b { background: var(--good); color: #fff; } .fstep.past { color: var(--good); }
.fstep.now { background: var(--brand-soft); color: var(--brand-deep); } .fstep.now b { background: var(--brand); color: #fff; }
/* 开团选品 */
.pick-card { display: flex; flex-direction: column; overflow: hidden; }
.pick-card .body { padding: 14px 16px 16px; display: grid; gap: 10px; flex: 1; align-content: start; }
.pick-card h3 { margin: 0; font-size: 15px; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 13px; }
.pgrid span { color: var(--muted); } .pgrid b { text-align: right; }
.pgrid .hl { color: var(--brand-deep); }
.sheet.wide { max-width: 560px; }
.sheet .pic { aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; }
.calc { padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 13px; display: grid; gap: 4px; }
.calc.bad { background: var(--bad-soft); color: var(--bad); }
.calc b { font-size: 15px; }
.mini { display: flex; align-items: center; gap: 10px; }
.mini .pic { width: 56px; aspect-ratio: 1; font-size: 28px; border-radius: 12px; flex: none; }
.sample { opacity: .85; }
.sample-card { position: relative; border: 2px dashed var(--line); border-radius: 16px; padding: 6px; pointer-events: none; }
.sample-tag { position: absolute; top: -10px; left: 14px; z-index: 2; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13px; cursor: pointer; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
