* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: #f2f4f8; color: #1f2937; }
button, input, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 24px; }
.page-shell { min-height: 100vh; }
.header-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: linear-gradient(135deg, #ff6b35, #ff8c42); color: #fff; }
.header-left { display: flex; gap: 12px; align-items: center; }
.header-logo { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.header-title { font-size: 18px; font-weight: 700; }
.header-sub { font-size: 12px; opacity: .85; }
.header-btn, .nav-back { color: #fff; background: rgba(255,255,255,.18); border-radius: 10px; padding: 8px 12px; }
.top-nav { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.search-bar { padding: 12px 16px; }
.search-input { width: 100%; border: none; border-radius: 999px; padding: 12px 16px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.banner-slide { margin: 0 16px 12px; border-radius: 18px; padding: 20px; color: #fff; display: flex; justify-content: space-between; align-items: center; min-height: 130px; }
.banner-badge { display: inline-block; background: rgba(255,255,255,.22); padding: 4px 10px; border-radius: 999px; font-size: 12px; margin-bottom: 8px; }
.banner-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.banner-sub { font-size: 13px; opacity: .92; margin-bottom: 12px; }
.banner-btn { display: inline-block; background: rgba(255,255,255,.95); color: #2563eb; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.banner-icon { font-size: 48px; opacity: .9; }
.quick-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 0 16px 12px; }
.quick-row button { background: #fff; border-radius: 12px; padding: 10px 4px; font-size: 11px; box-shadow: 0 4px 12px rgba(0,0,0,.04); }
.quick-row.compact { grid-template-columns: repeat(4, 1fr); }
.notice-bar { margin: 0 16px 12px; background: #fff7ed; color: #9a3412; padding: 10px 12px; border-radius: 12px; font-size: 13px; }
.cat-row { display: flex; gap: 8px; overflow: auto; padding: 0 16px 12px; }
.cat-chip { white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: #fff; color: #64748b; }
.cat-chip.active { background: #4f46e5; color: #fff; }
.goods-list { padding: 0 16px; display: grid; gap: 12px; }
.goods-card { display: flex; gap: 12px; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 8px 24px rgba(79,70,229,.06); }
.goods-icon { width: 56px; height: 56px; border-radius: 14px; background: #eef2ff; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.goods-name { font-weight: 700; font-size: 15px; }
.goods-tag { margin-left: 6px; font-size: 11px; color: #fff; background: #f97316; padding: 2px 6px; border-radius: 999px; }
.goods-desc { font-size: 12px; color: #64748b; margin: 6px 0; }
.goods-foot { display: flex; justify-content: space-between; align-items: center; }
.goods-price { color: #ef4444; font-weight: 700; font-size: 18px; }
.goods-buy { color: #4f46e5; font-size: 13px; font-weight: 600; }
.card { background: #fff; margin: 12px 16px; border-radius: 16px; padding: 16px; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.detail-hero { height: 180px; background: linear-gradient(160deg, #312e81, #4f46e5 58%, #06b6d4); display: flex; align-items: center; justify-content: center; position: relative; }
.detail-icon { width: 96px; height: 96px; background: rgba(255,255,255,.96); border-radius: 24px; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.detail-tag { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.18); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 12px; }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.price { color: #ef4444; font-size: 28px; font-weight: 700; }
.badge { background: #eef2ff; color: #4f46e5; padding: 4px 10px; border-radius: 999px; font-size: 12px; }
.muted { color: #64748b; font-size: 13px; line-height: 1.6; }
.small { font-size: 12px; }
.steps { padding-left: 18px; line-height: 1.8; color: #475569; }
.detail-text { white-space: pre-wrap; font-size: 13px; line-height: 1.7; color: #475569; background: #f8fafc; padding: 12px; border-radius: 12px; }
.footer-bar { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); box-shadow: 0 -8px 24px rgba(15,23,42,.08); }
.footer-price { font-size: 18px; font-weight: 700; color: #ef4444; }
.primary-btn { background: linear-gradient(135deg, #4f46e5, #06b6d4); color: #fff; border-radius: 999px; padding: 12px 22px; font-weight: 700; }
.primary-btn.full, .ghost-btn.full { width: 100%; margin-top: 10px; }
.ghost-btn { background: #eef2ff; color: #4f46e5; border-radius: 999px; padding: 12px 18px; font-weight: 600; }
.pay-card { text-align: center; }
.pay-logo { font-size: 42px; margin-bottom: 8px; }
.pay-amount { font-size: 36px; font-weight: 800; color: #ef4444; margin: 12px 0; }
.pay-line { font-size: 14px; color: #475569; margin: 6px 0; }
.agree-row { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; margin: 16px 0; color: #64748b; }
.result-card { text-align: center; }
.result-card.ok { border: 1px solid #bbf7d0; }
.result-card.fail { border: 1px solid #fecaca; }
.result-icon { font-size: 48px; margin-bottom: 8px; }
.result-info { text-align: left; background: #f8fafc; border-radius: 12px; padding: 12px; margin: 12px 0; font-size: 13px; line-height: 1.8; }
.btn-row { display: grid; gap: 10px; }
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.stats-row div { background: #fff; border-radius: 14px; padding: 16px; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,.04); }
.stats-row b { display: block; font-size: 24px; color: #4f46e5; }
.order-item { padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.order-item:last-child { border-bottom: none; }
.order-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.order-sub { font-size: 12px; color: #64748b; margin-top: 4px; }
.status.paid, .status.completed { color: #059669; }
.status.pending { color: #d97706; }
.status.failed { color: #dc2626; }
.info-list div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.service-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.service-icon { width: 44px; height: 44px; border-radius: 12px; background: #eef2ff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.service-icon.big { width: 64px; height: 64px; font-size: 32px; margin: 0 auto 12px; }
.service-name { font-weight: 700; }
.quota { margin-top: 10px; color: #059669; font-weight: 600; }
.quota.warn { color: #d97706; }
textarea, input[type=file] { width: 100%; margin-top: 8px; }
textarea { border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; resize: vertical; }
.style-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.style-chip { padding: 8px 12px; border-radius: 999px; background: #f1f5f9; color: #475569; }
.style-chip.active { background: #4f46e5; color: #fff; }
.use-result { margin-top: 12px; }
.result-card-inline { display: flex; gap: 12px; background: #f0fdf4; border-radius: 12px; padding: 12px; }
.tab-row { display: flex; gap: 8px; padding: 12px 16px; }
.tab-row button { flex: 1; padding: 10px; border-radius: 999px; background: #fff; }
.tab-row button.active { background: #4f46e5; color: #fff; }
.about-card { text-align: center; }
.about-logo { font-size: 48px; margin-bottom: 8px; }
.empty { text-align: center; color: #94a3b8; padding: 24px 0; }
.fx-toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(20px); background: rgba(15,23,42,.88); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 999; max-width: 80vw; text-align: center; }
.fx-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
