/* 聚合商户权益小管家 H5 —— 复刻小程序风格 */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #f5f7fb; color: #1a1a1a; font-size: 14px; line-height: 1.5;
}
#app { max-width: 750px; margin: 0 auto; min-height: 100vh; background: #f5f7fb; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
input, textarea { font-family: inherit; outline: none; border: none; }

.container { padding: 12px 14px 90px; }
.container.no-tab { padding-bottom: 30px; }
.card {
  background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(31, 45, 61, 0.04);
}
.page-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.page-subtitle { font-size: 13px; color: #8a8f99; }
.section-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.section-header { font-size: 15px; font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.section-link, .section-link-text { font-size: 12px; color: #22a6ff; font-weight: 400; }
.empty-block { padding: 28px 12px; text-align: center; color: #1a1a1a; font-size: 14px; font-weight: 500; }
.empty-hint { padding: 0 12px 12px; text-align: center; color: #a0a4ab; font-size: 12px; line-height: 1.6; margin-top: -4px; }
.empty-title { font-size: 15px; font-weight: 600; text-align: center; margin-bottom: 6px; }
.empty-meta { font-size: 12px; color: #8a8f99; text-align: center; }
.empty-text { text-align: center; color: #a0a4ab; font-size: 13px; padding: 20px 0; }

/* 顶部 hero */
.home-hero { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #22a6ff, #4fc3ff); color: #fff; }
.home-hero-title { font-size: 19px; font-weight: 700; }
.home-hero-subtitle { font-size: 12px; opacity: .85; margin-top: 2px; }
.home-hero-badge { background: rgba(255,255,255,.22); border-radius: 20px; padding: 5px 12px; font-size: 12px; }
.home-hero-badge-on { background: #fff; color: #52c41a; border-radius: 20px; padding: 5px 14px; font-size: 12px; font-weight: 600; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.hero-banner { background: linear-gradient(135deg, #22a6ff, #4fc3ff); color: #fff; }
.hero-title { font-size: 18px; font-weight: 700; }
.hero-subtitle { font-size: 12px; opacity: .85; margin-top: 2px; }
.hero-card { background: linear-gradient(135deg, #1d39c4, #22a6ff); color: #fff; }
.hero-card .hero-card-title { font-size: 17px; font-weight: 700; margin-top: 12px; }
.hero-card .hero-card-meta { font-size: 12px; opacity: .85; margin-top: 4px; }
.hero-head-main { display: flex; justify-content: space-between; align-items: flex-start; }
.hero-stage-row { display: flex; align-items: center; gap: 6px; }
.hero-card-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.hero-status { font-size: 12px; background: rgba(255,255,255,.2); padding: 4px 10px; border-radius: 12px; }
.hero-code { font-size: 12px; opacity: .8; margin-top: 2px; }
.hero-grid { display: flex; margin-top: 14px; }
.hero-metric { flex: 1; text-align: center; }
.hero-label { display: block; font-size: 11px; opacity: .8; }
.hero-value { display: block; font-size: 16px; font-weight: 700; margin-top: 2px; }

/* 公告 */
.notice { display: flex; align-items: center; gap: 8px; padding: 12px 16px; }
.notice-badge { background: #fff1f0; color: #ff4d4f; font-size: 11px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.notice-marquee { flex: 1; overflow: hidden; }
.notice-marquee-track { display: flex; white-space: nowrap; animation: marquee 14s linear infinite; }
.notice-content { font-size: 13px; color: #555; padding-right: 40px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.notice-arrow { font-size: 12px; color: #22a6ff; white-space: nowrap; }
.notice-banner {
  background: linear-gradient(135deg, #e6f4ff, #bae0ff);
  padding: 10px 14px;
  border: none;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
}
.notice-banner-icon { font-size: 16px; flex-shrink: 0; }
.notice-banner-text {
  flex: 1;
  font-size: 13px;
  color: #1d4ed8;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice-banner-link {
  font-size: 12px;
  color: #1d4ed8;
  font-weight: 500;
  flex-shrink: 0;
}

/* 三圆统计 */
.stats { display: flex; }
.stat-item { flex: 1; text-align: center; }
.stat-icon { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; font-weight: 600; }
.stat-icon.pink { background: linear-gradient(135deg, #ff85c0, #ff5b8d); }
.stat-icon.purple { background: linear-gradient(135deg, #b37feb, #9254de); }
.stat-icon.orange { background: linear-gradient(135deg, #ffc53d, #fa8c16); }
.stat-value { font-size: 16px; font-weight: 700; }
.stat-value-money { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.stat-label { font-size: 11px; color: #8a8f99; margin-top: 2px; }

/* 工具宫格 */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 6px; }
.tool-grid-small { grid-template-columns: repeat(3, 1fr); }
.tool-item { text-align: center; }
.tool-icon { width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; font-weight: 600; }
.tool-title { font-size: 11px; color: #444; }

/* 锁定提示卡 */
.lock-card { text-align: center; padding: 24px 16px; }
.lock-title { font-size: 15px; font-weight: 600; }
.lock-meta { font-size: 12px; color: #8a8f99; margin: 8px 0 14px; }
.lock-btn { background: #22a6ff; color: #fff; border-radius: 20px; padding: 8px 22px; font-size: 13px; }
.lock-hint { font-size: 11px; color: #b0b4bb; margin-top: 10px; text-align: center; }

/* 交易列表 */
.transaction-item, .record-row, .list-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #f2f3f5;
}
.transaction-item:last-child, .record-row:last-child, .list-row:last-child { border-bottom: none; }
.transaction-title, .record-title, .list-title { font-size: 13px; font-weight: 500; }
.transaction-meta, .record-meta, .list-meta { font-size: 11px; color: #a0a4ab; margin-top: 3px; }
.transaction-right, .record-right, .list-right { text-align: right; }
.transaction-amount, .record-amount, .list-amount { font-size: 14px; font-weight: 600; }
.transaction-status, .record-status, .list-tag { font-size: 11px; color: #8a8f99; margin-top: 3px; }
.amount-in { color: #f5222d; }
.amount-out { color: #52c41a; }

/* 我的 */
.profile { display: flex; align-items: center; gap: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #22a6ff, #4fc3ff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { flex: 1; }
.profile-name { font-size: 16px; font-weight: 600; }
.profile-mobile { font-size: 12px; color: #8a8f99; margin-top: 3px; }
.profile-arrow { color: #c0c4cc; font-size: 18px; }
.member-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.member-card-title { font-size: 16px; font-weight: 700; margin-top: 4px; }
.member-status { background: #e6f7ff; color: #1677ff; font-size: 11px; padding: 4px 10px; border-radius: 12px; }
.member-card-meta { font-size: 12px; color: #8a8f99; margin-top: 8px; }
.wallet-summary { background: linear-gradient(135deg, #722ed1, #b37feb); color: #fff; }
.wallet-main { display: flex; justify-content: space-between; align-items: center; }
.wallet-title { font-size: 12px; opacity: .85; }
.wallet-total { font-size: 26px; font-weight: 700; margin-top: 4px; }
.wallet-badge { background: rgba(255,255,255,.22); padding: 5px 12px; border-radius: 14px; font-size: 11px; }
.wallet-actions { display: flex; gap: 10px; margin-top: 14px; }
.member-btn { flex: 1; background: rgba(255,255,255,.2); color: #fff; border-radius: 20px; padding: 9px 0; font-size: 13px; }
.member-btn-primary { background: #fff; color: #722ed1; font-weight: 600; }
.member-btn-disabled { opacity: .5; }
.menu-group { padding: 4px 16px; }
.menu-item { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid #f2f3f5; }
.menu-item:last-child { border-bottom: none; }
.menu-left { display: flex; align-items: center; gap: 10px; }
.menu-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; }
.menu-title { font-size: 14px; }
.menu-title.danger-text, .danger-text { color: #ff4d4f; }
.menu-arrow { color: #c0c4cc; font-size: 16px; }

/* tabbar */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; max-width: 750px; margin: 0 auto;
  background: #fff; display: flex; border-top: 1px solid #eee; padding-bottom: env(safe-area-inset-bottom);
  z-index: 100;
}
.tabbar-item { flex: 1; text-align: center; padding: 7px 0 5px; color: #bfbfbf; }
.tabbar-item.active { color: #22a6ff; }
.tabbar-icon { font-size: 20px; line-height: 1; }
.tabbar-text { font-size: 10px; margin-top: 3px; }

/* 商城 */
.coupon-bar { padding: 12px 16px; }
.coupon-row-group { display: flex; }
.coupon-row-half { flex: 1; }
.coupon-label { font-size: 12px; color: #8a8f99; }
.coupon-value { font-size: 14px; font-weight: 700; color: #f5222d; }
.shortcut-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 4px; }
.shortcut-item { text-align: center; }
.shortcut-icon { width: 42px; height: 42px; border-radius: 12px; margin: 0 auto 5px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; }
.shortcut-title { font-size: 11px; color: #444; }
.category-grid { display: flex; gap: 8px; overflow-x: auto; }
.category-item { flex: 0 0 auto; text-align: center; padding: 4px 2px; }
.category-icon { width: 40px; height: 40px; border-radius: 12px; margin: 0 auto 5px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.category-name { font-size: 11px; color: #666; }
.category-item.active .category-name { color: #22a6ff; font-weight: 600; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product-card { margin-bottom: 0; padding: 10px; }
.product-image { position: relative; height: 120px; border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-image-media { width: 100%; height: 100%; object-fit: cover; }
.product-image-text { color: #fff; font-size: 15px; font-weight: 700; padding: 0 10px; text-align: center; }
.product-tag { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.45); color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 8px; }
.product-title { font-size: 13px; font-weight: 600; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-subtitle { font-size: 11px; color: #a0a4ab; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.product-price { font-size: 13px; color: #f5222d; font-weight: 700; }
.product-sales { font-size: 10px; color: #a0a4ab; }

/* 汇总格子 */
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 8px; }
.summary-item { background: #f7f9fc; border-radius: 10px; padding: 10px 12px; }
.summary-item-full { grid-column: span 2; }
.summary-label { display: block; font-size: 11px; color: #8a8f99; }
.summary-value { display: block; font-size: 15px; font-weight: 600; margin-top: 3px; }
.summary-card .summary-grid { margin-top: 12px; }
.note-card { background: #fffbe6; border-radius: 8px; padding: 10px 12px; margin-top: 12px; }
.note-line { font-size: 12px; color: #ad6800; }
.member-card-actions { display: flex; gap: 10px; margin-top: 14px; }
.member-card-actions .member-btn { background: #f0f5ff; color: #2f54eb; }
.member-card-actions .member-btn-primary { background: #22a6ff; color: #fff; }
.action-row { display: flex; gap: 10px; margin-top: 14px; }
.action-btn { flex: 1; background: #f0f5ff; color: #2f54eb; border-radius: 20px; padding: 9px 0; font-size: 13px; }
.action-btn-primary { background: #22a6ff; color: #fff; }
.order-line { font-size: 13px; padding: 4px 0; color: #444; }

/* 表单 */
.form-block, .form-item { margin-bottom: 14px; }
.form-label { font-size: 13px; color: #555; margin-bottom: 6px; }
.form-input, .amount-input, .picker-value {
  width: 100%; background: #f5f7fa; border-radius: 10px; padding: 12px 14px; font-size: 14px; color: #1a1a1a;
}
.picker-placeholder { color: #a0a4ab; }
.submit-btn, .primary-btn {
  width: 100%; background: #22a6ff; color: #fff; border-radius: 22px; padding: 12px 0;
  font-size: 15px; font-weight: 600; margin-top: 8px;
}
.submit-btn[disabled], .primary-btn[disabled] { opacity: .5; }
.submit-btn-secondary, .secondary-btn { background: #f0f5ff; color: #2f54eb; }
.danger-btn { width: 100%; background: #fff1f0; color: #ff4d4f; border-radius: 22px; padding: 12px 0; font-size: 15px; margin-top: 8px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.form-divider { text-align: center; color: #c0c4cc; font-size: 12px; margin: 10px 0; position: relative; }
.form-divider::before, .form-divider::after { content: ''; position: absolute; top: 50%; width: 38%; height: 1px; background: #ebedf0; }
.form-divider::before { left: 0; } .form-divider::after { right: 0; }
.header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.header-action { font-size: 12px; color: #22a6ff; }
.create-form { border-top: 1px solid #f2f3f5; padding-top: 14px; margin-bottom: 6px; }
.set-default-action { font-size: 11px; color: #22a6ff; margin-top: 4px; }

/* 交易记录筛选 */
.period-switch-row { display: flex; background: #f2f3f5; border-radius: 10px; padding: 3px; margin-bottom: 12px; }
.period-chip { flex: 1; text-align: center; padding: 7px 0; font-size: 13px; border-radius: 8px; color: #666; }
.period-chip-active { background: #fff; color: #22a6ff; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.period-picker-row { margin-bottom: 12px; }
.period-picker-value { background: #f5f7fa; border-radius: 10px; padding: 10px 14px; font-size: 14px; text-align: center; }
.period-summary-row { display: flex; }
.summary-block { flex: 1; text-align: center; }
.summary-block .summary-value { color: #f5222d; }
.tabs-card { display: flex; padding: 6px; gap: 4px; }
.tab-item { flex: 1; text-align: center; padding: 8px 0; font-size: 13px; border-radius: 8px; color: #666; }
.tab-item-active { background: #e6f7ff; color: #1677ff; font-weight: 600; }
.retry-btn { display: block; margin: 14px auto 0; background: #22a6ff; color: #fff; border-radius: 18px; padding: 8px 24px; font-size: 13px; }

/* 客服 */
.support-header .page-title { margin-bottom: 2px; }
.stage-card { text-align: center; }
.stage-title { font-size: 14px; font-weight: 600; }
.stage-meta { font-size: 12px; color: #8a8f99; margin: 8px 0; }
.stage-btn { background: #22a6ff; color: #fff; border-radius: 18px; padding: 8px 22px; font-size: 13px; margin-top: 6px; }
.quick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-chip { background: #f0f5ff; color: #2f54eb; font-size: 12px; padding: 6px 12px; border-radius: 14px; }
.message-card { min-height: 200px; }
.message-item { display: flex; margin-bottom: 12px; }
.message-user { justify-content: flex-end; }
.message-bubble { max-width: 78%; padding: 10px 13px; border-radius: 12px; }
.message-user .message-bubble { background: #22a6ff; color: #fff; border-bottom-right-radius: 4px; }
.message-system .message-bubble { background: #f2f3f5; border-bottom-left-radius: 4px; }
.message-content { font-size: 13px; word-break: break-word; }
.message-time { font-size: 10px; opacity: .65; margin-top: 5px; }
.composer-card { display: flex; gap: 10px; align-items: center; position: sticky; bottom: 12px; }
.composer-input { flex: 1; background: #f5f7fa; border-radius: 18px; padding: 10px 16px; font-size: 14px; }
.composer-btn { background: #22a6ff; color: #fff; border-radius: 18px; padding: 10px 20px; font-size: 14px; flex-shrink: 0; }

/* 商户认证 */
.access-card .hero-title { color: #1a1a1a; }
.status-box { background: #f7f9fc; border-radius: 10px; padding: 14px; margin: 14px 0; }
.status-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.status-line { font-size: 13px; padding: 3px 0; }
.status-note { font-size: 11px; color: #a0a4ab; margin-top: 8px; }

/* 商品详情 */
.gallery-card { padding: 0; overflow: hidden; }
.gallery-swiper, .gallery-fallback { height: 260px; }
.gallery-fallback { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: 700; }
.gallery-image { width: 100%; height: 260px; object-fit: cover; }
.summary-top-row { display: flex; gap: 8px; align-items: center; }
.product-tag-static { background: #fff1f0; color: #f5222d; font-size: 11px; padding: 3px 8px; border-radius: 6px; }
.product-type { font-size: 11px; color: #8a8f99; }
.product-name { font-size: 17px; font-weight: 700; margin-top: 8px; }
.price-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 12px; }
.price-currency { color: #f5222d; font-size: 14px; font-weight: 700; }
.price-value { color: #f5222d; font-size: 26px; font-weight: 700; }
.price-label { font-size: 11px; color: #a0a4ab; margin-left: 6px; }
.price-side-meta { text-align: right; }
.price-side-line { font-size: 11px; color: #8a8f99; }
.info-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #f2f3f5; font-size: 13px; }
.info-row:last-child { border-bottom: none; }
.info-label { color: #8a8f99; }
.info-value-price { color: #f5222d; font-weight: 600; }
.info-link { color: #22a6ff; }
.block-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.notice-text, .desc-text { font-size: 13px; color: #555; line-height: 1.7; }
.detail-image { width: 100%; border-radius: 8px; margin-bottom: 8px; }
.tips-card { color: #ad6800; background: #fffbe6; font-size: 12px; }
.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; max-width: 750px; margin: 0 auto;
  background: #fff; display: flex; align-items: center; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px rgba(0,0,0,.06); z-index: 100;
}
.bottom-bar-main { flex: 1; }
.bottom-bar-currency { color: #f5222d; font-size: 14px; font-weight: 700; }
.bottom-bar-price { color: #f5222d; font-size: 24px; font-weight: 700; }
.bottom-bar-subtitle { font-size: 11px; color: #a0a4ab; }
.bottom-bar-btn { background: #22a6ff; color: #fff; border-radius: 22px; padding: 11px 34px; font-size: 15px; font-weight: 600; }

/* 弹层 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; display: flex; align-items: flex-end; justify-content: center; }
.modal-sheet { background: #fff; width: 100%; max-width: 750px; border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 82vh; overflow-y: auto; }
.modal-center { align-items: center; }
.modal-center .modal-sheet { border-radius: 16px; margin: 0 32px; max-height: 70vh; }
.sheet-handle { width: 36px; height: 4px; background: #e4e7ed; border-radius: 2px; margin: 0 auto 14px; }
.sheet-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.sheet-title { font-size: 16px; font-weight: 700; }
.sheet-subtitle { font-size: 12px; color: #8a8f99; margin-top: 3px; }
.sheet-price { color: #f5222d; font-size: 20px; font-weight: 700; }
.redeem-option { border: 1.5px solid #e4e7ed; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.redeem-option-active { border-color: #22a6ff; background: #f0f9ff; }
.redeem-option-disabled { opacity: .5; }
.redeem-option-title { font-size: 14px; font-weight: 600; }
.redeem-option-meta { font-size: 11px; color: #8a8f99; margin-top: 4px; }
.sheet-input, .sheet-textarea { width: 100%; background: #f5f7fa; border-radius: 10px; padding: 11px 13px; font-size: 14px; margin-bottom: 10px; }
.sheet-textarea { min-height: 70px; resize: none; }
.redeem-action-row { display: flex; gap: 10px; margin-top: 10px; }
.redeem-action-btn { flex: 1; }
.option-card { display: block; width: 100%; background: #f0f9ff; border: 1.5px solid #22a6ff; color: #1677ff; border-radius: 12px; padding: 14px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.option-cancel-btn { background: #f2f3f5; color: #666; width: 100%; border-radius: 22px; padding: 12px 0; font-size: 14px; }
.access-modal-title { font-size: 16px; font-weight: 700; text-align: center; }
.access-modal-desc { font-size: 12px; color: #8a8f99; text-align: center; margin: 8px 0 16px; }

/* 月度活动 */
.reward-card { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(31,45,61,.04); }
.reward-card-claimed { opacity: .75; }
.reward-card-top { display: flex; justify-content: space-between; align-items: center; }
.reward-title { font-size: 14px; font-weight: 600; }
.reward-amount { color: #f5222d; font-size: 17px; font-weight: 700; }
.progress-track { height: 8px; background: #f2f3f5; border-radius: 4px; margin: 12px 0; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #22a6ff, #4fc3ff); border-radius: 4px; }
.reward-card-bottom { display: flex; justify-content: space-between; align-items: center; }
.reward-meta { font-size: 11px; color: #8a8f99; }
.claim-btn { background: #22a6ff; color: #fff; border-radius: 16px; padding: 6px 20px; font-size: 12px; }
.claim-btn-disabled { opacity: .5; }
.status-pill { font-size: 11px; padding: 4px 12px; border-radius: 12px; }
.status-claimed { background: #f6ffed; color: #52c41a; }
.status-waiting { background: #fff7e6; color: #fa8c16; }
.status-upcoming { background: #f2f3f5; color: #8a8f99; }
.reward-card-upcoming { opacity: .8; }

/* 规则 */
.rules-card-top { background: #fffbe6; }
.rules-title { font-size: 14px; font-weight: 600; color: #ad6800; }
.rules-intro { font-size: 12px; color: #ad6800; margin: 4px 0 10px; }
.rule-row { display: flex; justify-content: space-between; font-size: 12px; color: #874d00; padding: 3px 0; }
.summary-line { font-size: 12px; color: #8a8f99; margin: 10px 0; }

/* 登录页 */
.login-page { min-height: 100vh; background: linear-gradient(160deg, #22a6ff 0%, #4fc3ff 40%, #f5f7fb 40.2%); padding: 60px 24px 30px; }
.login-logo { text-align: center; color: #fff; margin-bottom: 34px; }
.login-logo-icon { width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.25); display: inline-flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }
.login-logo-title { font-size: 20px; font-weight: 700; margin-top: 12px; }
.login-logo-sub { font-size: 12px; opacity: .85; margin-top: 4px; }
.login-card { background: #fff; border-radius: 16px; padding: 24px 20px; box-shadow: 0 6px 24px rgba(34,166,255,.12); }
.login-tabs { display: flex; margin-bottom: 20px; }
.login-tab { flex: 1; text-align: center; padding: 8px 0; font-size: 15px; color: #8a8f99; border-bottom: 2px solid transparent; }
.login-tab.active { color: #22a6ff; font-weight: 700; border-bottom-color: #22a6ff; }
.login-input { width: 100%; background: #f5f7fa; border-radius: 10px; padding: 13px 14px; font-size: 14px; margin-bottom: 14px; }
.login-btn { width: 100%; background: #22a6ff; color: #fff; border-radius: 22px; padding: 13px 0; font-size: 15px; font-weight: 600; }
.login-tip { font-size: 11px; color: #a0a4ab; text-align: center; margin-top: 14px; }

/* ============ portal 入口页（图片1风格） ============ */
.portal-wrap { padding: 0 14px 40px; }
.portal-hero {
  display: flex; justify-content: space-between; align-items: flex-end;
  background: linear-gradient(135deg, #22a6ff 0%, #1677ff 60%, #0958d9 100%);
  border-radius: 16px; padding: 26px 20px; margin: 18px 0 22px;
  color: #fff; position: relative; overflow: hidden; min-height: 150px;
}
.portal-hero-left { z-index: 2; }
.portal-badge {
  display: inline-block; background: rgba(255,255,255,.22); color: #fff;
  font-size: 12px; padding: 5px 13px; border-radius: 20px; font-weight: 500; margin-bottom: 14px;
}
.portal-hero-title { font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.portal-hero-sub { font-size: 13px; opacity: .88; margin-top: 8px; }
.portal-hero-art { position: relative; width: 110px; height: 110px; flex-shrink: 0; }
.portal-art-circle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 90px; height: 90px; border-radius: 50%;
  background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
}
.portal-art-icon { position: absolute; font-size: 22px; }
.portal-art-wallet { top: 8px; left: 6px; }
.portal-art-ticket { bottom: 6px; left: 12px; font-size: 20px; }
.portal-art-pct { bottom: 10px; right: 6px; font-size: 28px; font-weight: 800; }
.portal-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 14px; padding: 18px 16px; margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(34,119,255,.06); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.portal-card:active { transform: scale(.98); box-shadow: 0 1px 4px rgba(34,119,255,.06); }
.portal-card-alt { opacity: .7; cursor: default; }
.portal-card-alt:active { transform: none; }
.portal-card-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 700;
}
.portal-icon-blue { background: linear-gradient(135deg, #22a6ff, #1677ff); }
.portal-icon-purple { background: linear-gradient(135deg, #722ed1, #531dab); }
.portal-card-body { flex: 1; min-width: 0; }
.portal-card-title { font-size: 16px; font-weight: 600; color: #1a1a1a; }
.portal-card-desc { font-size: 12px; color: #8a8f99; margin-top: 4px; }
.portal-card-enter { font-size: 13px; color: #22a6ff; font-weight: 500; white-space: nowrap; }
.portal-enter-disabled { color: #bfbfbf; font-size: 11px; }
.portal-foot { text-align: center; color: #bfbfbf; font-size: 11px; margin-top: 24px; }

/* ============ access 认证页（图片2风格） ============ */
.access-portal { padding-top: 12px; }
.access-portal-card {
  background: #fff; border-radius: 12px; padding: 26px 20px;
  box-shadow: 0 2px 12px rgba(31,45,61,.05);
}
.access-portal-title { font-size: 18px; font-weight: 700; color: #1a1a1a; letter-spacing: .5px; }
.access-portal-sub { font-size: 12px; color: #8a8f99; margin-top: 8px; line-height: 1.7; }

/* 输入框组 */
.access-form-item { margin-top: 20px; }
.access-form-label {
  display: block; font-size: 14px; color: #1a1a1a; font-weight: 500; margin-bottom: 8px;
}
.access-form-input {
  width: 100%;
  background: #f2f3f5;
  border-radius: 8px;
  padding: 13px 15px;
  font-size: 15px;
  color: #1a1a1a;
  outline: none;
  border: 1.5px solid transparent;
  transition: background .15s ease, border-color .15s ease, padding .15s ease;
  -webkit-appearance: none;
}
.access-form-input:focus {
  background: #fff;
  border-color: #1677ff;
  padding: 11.5px 13.5px;
}
.access-form-input::placeholder { color: #c0c4cc; font-size: 15px; }
.access-form-input::-webkit-input-placeholder { color: #c0c4cc; }
.access-form-input::-moz-placeholder { color: #c0c4cc; }
.access-form-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #f2f3f5 inset !important;
}

.access-form-or { text-align: center; color: #bfbfbf; font-size: 13px; margin: 20px 0 16px; }

/* 按钮 */
.access-btn {
  width: 100%;
  border-radius: 24px;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  margin-top: 16px;
  cursor: pointer;
  border: none;
  letter-spacing: 1px;
  transition: opacity .12s ease, transform .08s ease;
}
.access-btn:active { transform: scale(.99); opacity: .92; }
.access-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.access-btn-primary {
  background: #1677ff;
  background-image: linear-gradient(180deg, #1677ff 0%, #0958d9 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22,119,255,.28);
}
.access-btn-primary:active {
  background-image: linear-gradient(180deg, #0958d9 0%, #003eb3 100%);
}

.access-btn-plain {
  background: #f2f3f5;
  color: #595959;
}
.access-btn-plain:active { background: #e5e6eb; color: #1a1a1a; }

.access-btn-danger {
  background: #fff1f0;
  color: #ff4d4f;
}
.access-btn-danger:active { background: #ffccc7; color: #cf1322; }

/* 状态面板 */
.access-status {
  background: #fff; border-radius: 12px; padding: 16px 20px; margin-top: 16px;
  box-shadow: 0 2px 12px rgba(31,45,61,.05);
}
.access-status-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.access-status-label { color: #8a8f99; }
.access-status-val { color: #1a1a1a; font-weight: 500; }
.access-status-val.ok { color: #52c41a; }
.access-status-val.no { color: #fa8c16; }

/* 绿色匹配确认卡（图片5风格） */
.access-match-card {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0 8px;
}
.access-match-title {
  font-size: 13px;
  font-weight: 600;
  color: #389e0d;
  margin-bottom: 10px;
}
.access-match-row {
  font-size: 14px;
  color: #1a1a1a;
  padding: 4px 0;
}
.access-match-row span:first-child {
  color: #595959;
}
.access-match-row span:last-child {
  font-weight: 500;
}
.access-match-amount {
  color: #cf1322;
  font-weight: 700;
  font-size: 16px;
}
.access-match-hint {
  font-size: 11px;
  color: #52c41a;
  margin-top: 10px;
  line-height: 1.6;
}
