/* 贝芽水育抢购活动 - 前台样式 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #eef7fa; color: #2b3a44; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

.page { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #f4fbfd; position: relative; padding-bottom: 90px; }

.test-banner { background: #fff7e0; color: #b7791f; font-size: 12px; text-align: center; padding: 6px 10px; }

/* ---------- 顶部品牌栏 ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(255,255,255,.92); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(6px); box-shadow: 0 1px 8px rgba(33,182,201,.08); }
.topbar .brand { display: flex; align-items: center; gap: 8px; }
.topbar .brand img { height: 30px; width: auto; border-radius: 6px; }
.topbar .brand b { font-size: 17px; color: #148fa3; letter-spacing: 1px; }
.topbar .badge { background: linear-gradient(135deg, #ff9a5a, #ff5e62); color: #fff; font-size: 12px; padding: 5px 12px; border-radius: 999px; font-weight: bold; box-shadow: 0 2px 8px rgba(255,94,98,.35); }

/* ---------- 首屏 ---------- */
.hero { position: relative; padding: 34px 20px 46px; background: linear-gradient(160deg, #29c2d4 0%, #1a9db5 55%, #1487a5 100%); overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.10); }
.hero::before { width: 220px; height: 220px; right: -70px; top: -70px; }
.hero::after { width: 150px; height: 150px; left: -50px; bottom: -50px; }
.hero .pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; position: relative; z-index: 2; }
.hero .pills span { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45); color: #fff; font-size: 12px; padding: 5px 12px; border-radius: 999px; }
.hero h1 { color: #fff; font-size: 27px; line-height: 1.45; text-shadow: 0 2px 10px rgba(0,60,80,.25); position: relative; z-index: 2; }
.hero .sub { color: rgba(255,255,255,.92); margin-top: 12px; font-size: 14px; position: relative; z-index: 2; }
.hero .wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; }
.hero .wave svg { display: block; width: 100%; height: 26px; }

/* 弹幕 */
.danmu-layer { position: absolute; left: 0; right: 0; top: 8px; height: 120px; z-index: 5; pointer-events: none; overflow: hidden; }
.danmu-item { position: absolute; left: 100%; white-space: nowrap; background: rgba(0,50,64,.42); color: #fff; font-size: 12px; padding: 5px 14px; border-radius: 999px; animation: danmu-move linear forwards; }
.danmu-item .dot { color: #ffd166; margin-right: 4px; }
@keyframes danmu-move { from { transform: translateX(0); } to { transform: translateX(calc(-100vw - 260px)); } }

/* ---------- 区块 ---------- */
.section { margin: 16px 12px; }
.section-head { text-align: center; margin: 26px 0 16px; }
.section-head h2 { font-size: 22px; color: #d63b3f; letter-spacing: 1px; }
.section-head h2 .em { color: #ff5e62; font-size: 30px; }
.section-head p { color: #8aa4ae; font-size: 13px; margin-top: 6px; }
.benefit-tag { display: inline-block; background: linear-gradient(135deg, #ffd166, #ffb54d); color: #7a4c00; font-size: 12px; font-weight: bold; padding: 4px 12px; border-radius: 999px 999px 999px 4px; margin-bottom: 10px; }

.card { background: #fff; border-radius: 16px; box-shadow: 0 4px 16px rgba(33,150,170,.08); overflow: hidden; }

/* 套餐 */
.pkg-card { margin-bottom: 14px; }
.pkg-card .pic { position: relative; }
.pkg-card .pic img { width: 100%; height: 190px; object-fit: cover; }
.pkg-card .pic .corner { position: absolute; top: 10px; left: 10px; background: rgba(214,59,63,.92); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.pkg-card .info { padding: 14px 16px 16px; }
.pkg-card .info h3 { font-size: 17px; }
.pkg-card .info .st { color: #8aa4ae; font-size: 12px; margin-top: 4px; }
.pkg-card .buy-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 12px; }
.price .cur { color: #e5484d; font-weight: bold; font-size: 14px; }
.price .num { color: #e5484d; font-weight: 800; font-size: 32px; line-height: 1; }
.price .orig { color: #b0c4cc; font-size: 13px; text-decoration: line-through; margin-left: 6px; }
.price .left { display: block; font-size: 11px; color: #ff8f3c; margin-top: 5px; }
.btn-buy { background: linear-gradient(135deg, #ff9966, #ff5e62); color: #fff; border: none; font-size: 16px; font-weight: bold; padding: 11px 26px; border-radius: 999px; box-shadow: 0 4px 12px rgba(255,94,98,.4); }
.btn-buy:active { transform: scale(.96); }
.btn-buy.disabled { background: #c8d8de; box-shadow: none; }

/* 福利卡 */
.benefit-card { padding: 16px; display: flex; gap: 14px; align-items: center; }
.benefit-card .thumb { width: 86px; height: 86px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: #f0f8fa; }
.benefit-card .bd { flex: 1; }
.benefit-card .bd h3 { font-size: 16px; line-height: 1.4; }
.benefit-card .bd .val { color: #e5484d; font-size: 13px; font-weight: bold; margin-top: 4px; }
.benefit-card .bd p { color: #8aa4ae; font-size: 12px; margin-top: 6px; line-height: 1.6; }
.benefit-card .bd .mini-btn { display: inline-block; margin-top: 8px; background: linear-gradient(135deg, #ff5e62, #d63b3f); color: #fff; font-size: 13px; font-weight: bold; padding: 7px 16px; border-radius: 999px; }

/* 礼品网格 */
.gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.gift-item { background: #f7fcfd; border: 1px solid #e3f2f5; border-radius: 12px; overflow: hidden; text-align: center; padding-bottom: 10px; position: relative; }
.gift-item img { width: 100%; height: 110px; object-fit: cover; }
.gift-item .nm { font-size: 13px; margin-top: 8px; padding: 0 6px; }
.gift-item.selected { border-color: #ff5e62; box-shadow: 0 0 0 2px rgba(255,94,98,.25); }
.gift-item.selected::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: #ff5e62; color: #fff; font-size: 13px; line-height: 22px; }
.gift-note { padding: 0 16px 14px; color: #8aa4ae; font-size: 12px; line-height: 1.7; }

/* 信任标签 */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trust-item { background: #fff; border-radius: 12px; padding: 13px 12px; font-size: 13px; display: flex; align-items: center; gap: 8px; box-shadow: 0 2px 10px rgba(33,150,170,.06); }
.trust-item .ic { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, #29c2d4, #1a9db5); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* 规则 */
.rules-card { padding: 16px; }
.rules-card .time-line { background: #fff7ec; border: 1px dashed #ffcf9e; color: #c07022; font-size: 13px; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.rules-card ol { margin: 12px 0 0 18px; }
.rules-card ol li { color: #5b7280; font-size: 13px; line-height: 2; }

/* 关于 */
.about-card { padding: 16px; }
.about-card p { color: #5b7280; font-size: 13px; line-height: 2; margin-bottom: 8px; text-align: justify; }
.store-photos { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; -webkit-overflow-scrolling: touch; }
.store-photos img { width: 150px; height: 105px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.store-info { background: #f2fafc; border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.store-info .row { display: flex; gap: 8px; font-size: 13px; color: #456; line-height: 1.9; align-items: baseline; }
.store-info .row .lb { color: #8aa4ae; flex-shrink: 0; }
.store-info a.tel { color: #148fa3; font-weight: bold; }

/* 底部悬浮 */
.bottom-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; z-index: 90; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); box-shadow: 0 -4px 16px rgba(33,150,170,.12); }
.bottom-bar a { flex: 1; text-align: center; padding: 13px 0; border-radius: 999px; font-size: 16px; font-weight: bold; }
.bottom-bar .share-btn { background: linear-gradient(135deg, #ffd166, #ffb54d); color: #7a4c00; }
.bottom-bar .buy-btn { background: linear-gradient(135deg, #ff9966, #ff5e62); color: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,94,98,.45);} 50% { box-shadow: 0 0 0 9px rgba(255,94,98,0);} }

/* ---------- 表单页(抢购) ---------- */
.page-head { background: linear-gradient(160deg, #29c2d4, #1a9db5); padding: 18px 16px 26px; color: #fff; }
.page-head h1 { font-size: 20px; }
.page-head p { font-size: 12px; opacity: .85; margin-top: 5px; }
.form-card { margin: -14px 12px 14px; position: relative; z-index: 2; padding: 16px; }
.form-card .f-item { margin-bottom: 14px; }
.form-card .f-item label { display: block; font-size: 13px; color: #456; font-weight: 600; margin-bottom: 7px; }
.form-card .f-item input { width: 100%; border: 1px solid #dbe8ec; border-radius: 10px; padding: 12px; font-size: 15px; background: #fafdfe; }
.form-card .f-item input:focus { outline: none; border-color: #21b6c9; }
.pkg-select { display: flex; flex-direction: column; gap: 10px; }
.pkg-option { border: 2px solid #e3f0f3; border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.pkg-option.on { border-color: #ff5e62; background: #fff8f8; }
.pkg-option .t { font-size: 15px; font-weight: bold; }
.pkg-option .d { font-size: 12px; color: #8aa4ae; margin-top: 3px; }
.pkg-option .p { color: #e5484d; font-weight: 800; font-size: 20px; }
.pkg-option .p .o { color: #b0c4cc; font-weight: normal; font-size: 12px; text-decoration: line-through; display: block; text-align: right; }
.agree-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #8aa4ae; line-height: 1.7; margin-top: 4px; }
.agree-row input { margin-top: 3px; }
.pay-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(33,150,170,.12); z-index: 90; }
.pay-bar .total { font-size: 13px; color: #456; }
.pay-bar .total b { color: #e5484d; font-size: 24px; }
.pay-bar button { background: linear-gradient(135deg, #ff9966, #ff5e62); color: #fff; border: none; font-size: 16px; font-weight: bold; padding: 12px 34px; border-radius: 999px; }
.pay-bar button:disabled { background: #c8d8de; }

/* ---------- 我的 ---------- */
.order-card { margin-bottom: 12px; padding: 14px 16px; }
.order-card .o-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px dashed #e5eff2; }
.order-card .o-head .no { font-size: 12px; color: #9ab0ba; }
.status-chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: bold; }
.st-0 { background: #fff3e0; color: #ef6c00; }
.st-1 { background: #e0f6ec; color: #14934e; }
.st-2 { background: #e3f2fd; color: #1565c0; }
.st--1 { background: #f2f2f2; color: #999; }
.order-card .o-body { padding-top: 10px; }
.order-card .o-title { font-size: 16px; font-weight: bold; }
.order-card .o-meta { color: #8aa4ae; font-size: 12px; margin-top: 6px; line-height: 1.8; }
.progress-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.progress-row span { font-size: 12px; padding: 5px 10px; border-radius: 8px; background: #f2f7f9; color: #8aa4ae; }
.progress-row span.done { background: #e0f6ec; color: #14934e; }
.mini-title { font-size: 15px; font-weight: bold; margin: 18px 4px 10px; display: flex; align-items: center; gap: 6px; }
.reward-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid #f0f6f8; font-size: 13px; }
.reward-row:last-child { border-bottom: none; }
.reward-row .amt { color: #e5484d; font-weight: 800; font-size: 17px; }
.reward-row .rs { font-size: 12px; }
.btn-receive { background: linear-gradient(135deg, #ff5e62, #d63b3f); border: none; color: #fff; font-size: 12px; font-weight: bold; padding: 6px 14px; border-radius: 999px; }
.empty-tip { text-align: center; color: #a9bec7; font-size: 13px; padding: 40px 0; }
.empty-tip .big { font-size: 44px; margin-bottom: 10px; }

/* ---------- 分享页 ---------- */
.share-hero { background: linear-gradient(160deg, #ff7a59, #ff5e62 60%, #e5484d); padding: 30px 20px 40px; text-align: center; color: #fff; position: relative; overflow: hidden; }
.share-hero .rp { font-size: 56px; }
.share-hero h1 { font-size: 22px; margin-top: 8px; }
.share-hero .amount { font-size: 46px; font-weight: 800; margin: 6px 0; }
.share-hero .amount small { font-size: 16px; font-weight: normal; }
.share-hero p { font-size: 13px; opacity: .9; }
.stat-row { display: flex; margin: -18px 12px 12px; position: relative; z-index: 2; }
.stat-row .card { flex: 1; display: flex; }
.stat-cell { flex: 1; text-align: center; padding: 16px 0; }
.stat-cell b { display: block; font-size: 24px; color: #e5484d; }
.stat-cell span { font-size: 12px; color: #8aa4ae; }
.stat-cell + .stat-cell { border-left: 1px solid #f0f6f8; }
.share-link-card { padding: 16px; }
.share-link-card .lk { display: flex; gap: 8px; margin-top: 10px; }
.share-link-card input { flex: 1; border: 1px solid #dbe8ec; border-radius: 10px; padding: 10px 12px; font-size: 12px; color: #789; background: #fafdfe; }
.share-link-card button { background: linear-gradient(135deg, #21b6c9, #1a9db5); color: #fff; border: none; padding: 0 18px; border-radius: 10px; font-size: 13px; font-weight: bold; }
.share-steps { padding: 4px 16px 16px; }
.share-steps .stp { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; }
.share-steps .stp .n { width: 22px; height: 22px; border-radius: 50%; background: #ffe9e9; color: #e5484d; font-size: 12px; font-weight: bold; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.share-steps .stp p { font-size: 13px; color: #5b7280; line-height: 1.7; }

/* toast */
.by-toast { position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); background: rgba(20,40,50,.85); color: #fff; font-size: 14px; padding: 12px 22px; border-radius: 10px; z-index: 999; max-width: 80%; text-align: center; }

/* 通用 */
.back-home { display: block; text-align: center; color: #8aa4ae; font-size: 13px; padding: 18px 0 8px; }
