*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;background:#f4f6f8;color:#222;max-width:480px;margin:0 auto}
#app{min-height:100vh;padding-bottom:24px}
.page{display:none;padding:16px}
.page.active{display:block}

/* 顶部统一导航栏 */
.top-nav{position:sticky;top:0;z-index:140;background:#1b7a4b;color:#fff;text-align:center;font-size:16px;font-weight:700;padding:14px 10px;box-shadow:0 2px 6px rgba(0,0,0,.1)}

.hero{background:linear-gradient(135deg,#1b7a4b,#2ea56a);border-radius:16px;padding:36px 20px;text-align:center;color:#fff;margin-bottom:16px}
.logo{width:64px;height:64px;margin:0 auto 12px;background:#fff;color:#1b7a4b;font-size:24px;font-weight:700;border-radius:50%;display:flex;align-items:center;justify-content:center}
.hero h1{font-size:22px;letter-spacing:1px}
.hero-sub{opacity:.85;margin-top:6px;font-size:13px}

.balance-card{background:#fff;border-radius:14px;padding:16px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 2px 8px rgba(0,0,0,.06);margin-bottom:16px}
.balance-label{font-size:12px;color:#888}
.balance-num{font-size:26px;font-weight:700;color:#1b7a4b}
.rank-pill{background:#e8f5ee;color:#1b7a4b;font-size:13px;padding:6px 12px;border-radius:999px;font-weight:600}

.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}
.menu-card{background:#fff;border:none;border-radius:14px;padding:20px 12px;font-size:14px;font-weight:600;color:#333;box-shadow:0 2px 8px rgba(0,0,0,.06);cursor:pointer}
.mc-icon{display:block;font-size:28px;margin-bottom:8px}

.section-pair{margin-top:4px}
.btn-primary{width:100%;background:linear-gradient(135deg,#1b7a4b,#2ea56a);color:#fff;border:none;border-radius:12px;padding:14px;font-size:16px;font-weight:600;cursor:pointer}
.btn-ghost{width:100%;background:#fff;color:#1b7a4b;border:1px solid #1b7a4b;border-radius:12px;padding:13px;font-size:15px;cursor:pointer;margin-top:10px}

.page-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.page-head h2{font-size:18px}
.back{background:#fff;border:none;width:36px;height:36px;border-radius:10px;font-size:22px;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.08)}

.card{background:#fff;border-radius:14px;padding:16px;box-shadow:0 2px 8px rgba(0,0,0,.06);margin-bottom:14px}
.card h3{font-size:15px;margin-bottom:10px;color:#1b7a4b}
.card.center{text-align:center}
.form-item{margin-bottom:14px;text-align:left}
.form-item label{display:block;font-size:13px;color:#666;margin-bottom:6px}
.form-item input,.form-item select{width:100%;padding:12px;border:1px solid #ddd;border-radius:10px;font-size:15px;background:#fafafa}
.tip{font-size:12px;color:#999;margin-top:10px;line-height:1.6}

.avatar{width:64px;height:64px;border-radius:50%;background:#1b7a4b;color:#fff;font-size:26px;display:flex;align-items:center;justify-content:center;margin:0 auto 10px}
.rows{margin:14px 0;text-align:left}
.rows div{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #f0f0f0;font-size:14px}
.rows span{color:#888}

.qr-frame{width:240px;height:240px;margin:16px auto;padding:10px;background:#fff;border:1px solid #e5e5e5;border-radius:12px;display:flex;align-items:center;justify-content:center}
#qr-canvas{width:220px;height:220px}
.qr-link{font-size:12px;color:#1b7a4b;word-break:break-all}

.rule-list{padding-left:18px;font-size:14px;line-height:2}
.progress-wrap{margin-top:14px}
.progress-info{display:flex;justify-content:space-between;font-size:13px;margin-bottom:6px;color:#555}
.progress{height:8px;background:#eee;border-radius:99px;overflow:hidden}
.progress-bar{height:100%;background:linear-gradient(90deg,#1b7a4b,#2ea56a);border-radius:99px;transition:width .3s}
.team-list{font-size:14px}
.team-list .tm{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f0f0f0}
.team-list .tm b{color:#1b7a4b}

.goods-list .goods{background:#fff;border-radius:14px;padding:14px;box-shadow:0 2px 8px rgba(0,0,0,.06);margin-bottom:12px}
.goods-img{width:100%;height:140px;border-radius:10px;object-fit:cover;display:block;margin-bottom:10px}
.goods h4{font-size:15px;margin-bottom:4px}
.goods .meta{font-size:12px;color:#888;margin-bottom:10px}
.goods .price{color:#d35400;font-weight:700;margin-bottom:10px}
.exchange-btn{background:#1b7a4b;color:#fff;border:none;border-radius:8px;padding:8px 14px;font-size:13px;cursor:pointer}
.exchange-btn:disabled{background:#bbb}

.gallery{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.gallery img{width:100%;height:96px;object-fit:cover;border-radius:10px;display:block}

#toast{position:fixed;left:50%;bottom:80px;transform:translateX(-50%);background:rgba(0,0,0,.78);color:#fff;padding:10px 18px;border-radius:8px;font-size:14px;opacity:0;transition:opacity .3s;pointer-events:none;z-index:99}
#toast.show{opacity:1}
