/* P5 APP 原型 - 移动端优先 · 政府官网红色权威主题 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #c8102e;
  --primary-dark: #9d0000;
  --primary-deeper: #7a0000;
  --primary-light: #fff1f0;
  --primary-glow: rgba(200, 16, 46, 0.12);
  --accent-gold: #b8860b;
  --accent-gold-light: #fffbe6;
  --bg: #f7f4f4;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #595959;
  --border: #f0e6e6;
  --success: #389e0d;
  --warning: #d48806;
  --danger: #cf1322;
  --live: #cf1322;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 48px;
  --tabbar-h: 58px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --shadow-sm: 0 2px 8px rgba(122, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(122, 0, 0, 0.08);
  --shadow-lg: 0 8px 28px rgba(200, 16, 46, 0.15);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.page { padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px); min-height: 100vh; }
.page.no-tabbar { padding-bottom: calc(var(--safe-bottom) + 16px); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 0 48px;
  font-size: 17px; font-weight: 600;
  box-shadow: 0 2px 12px rgba(200, 16, 46, 0.28);
  border-bottom: 2px solid var(--accent-gold);
}
.header.transparent {
  background: transparent;
  box-shadow: none;
  position: absolute; width: 100%; max-width: 480px;
  left: 50%; transform: translateX(-50%);
}
.header .back {
  position: absolute; left: 0; top: 0; height: 100%;
  min-width: 44px; padding: 0 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; background: none; border: none; cursor: pointer;
}

.content { padding: 0 0 16px; }
.content-padded { padding: 12px 16px 16px; }

/* Tab bar */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex; z-index: 200;
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 10px; gap: 3px;
  min-height: 44px; transition: color 0.2s;
}
.tabbar a.active { color: var(--primary); font-weight: 600; }
.tabbar a.active .tab-icon { transform: scale(1.08); }
.tabbar .tab-icon { font-size: 22px; line-height: 1; transition: transform 0.2s; }

/* ========== Banner 轮播 ========== */
.banner-wrap {
  position: relative;
  margin-bottom: 0;
  overflow: hidden;
}
.banner-slider {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.banner-slide {
  min-width: 100%;
  height: 168px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px 18px;
  color: #fff;
  overflow: hidden;
}
.banner-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
  z-index: 1;
}
.banner-slide .banner-bg {
  position: absolute; inset: 0; z-index: 0;
}
.banner-slide .banner-content { position: relative; z-index: 2; }
.banner-slide h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.banner-slide p { font-size: 12px; opacity: 0.92; }
.banner-slide .banner-tag {
  display: inline-block; font-size: 10px; font-weight: 600;
  background: rgba(255,255,255,0.25); backdrop-filter: blur(4px);
  padding: 2px 8px; border-radius: 20px; margin-bottom: 6px;
}
.banner-dots {
  position: absolute; bottom: 10px; right: 14px;
  display: flex; gap: 6px; z-index: 3;
}
.banner-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: all 0.3s; cursor: pointer;
}
.banner-dots span.active { width: 18px; border-radius: 3px; background: #fff; }

/* Banner gradient themes - 红色权威系 */
.bg-blue { background: linear-gradient(135deg, #c8102e 0%, #9d0000 50%, #7a0000 100%); }
.bg-purple { background: linear-gradient(135deg, #d4380d 0%, #c8102e 50%, #9d0000 100%); }
.bg-teal { background: linear-gradient(135deg, #cf1322 0%, #a8071a 50%, #820014 100%); }
.bg-orange { background: linear-gradient(135deg, #e85d04 0%, #c8102e 55%, #9d0000 100%); }
.bg-indigo { background: linear-gradient(135deg, #c8102e 0%, #9d0000 60%, #7a0000 100%); }
.bg-gold { background: linear-gradient(135deg, #c8102e 0%, #9d0000 40%, #7a0000 100%); }

/* Decorative shapes on banners */
.banner-slide .deco {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  z-index: 0;
}
.banner-slide .deco-1 { width: 120px; height: 120px; top: -30px; right: -20px; }
.banner-slide .deco-2 { width: 80px; height: 80px; top: 20px; right: 60px; }

/* ========== Section ========== */
.section-block { padding: 0 16px; margin-bottom: 16px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-head h3 {
  font-size: 17px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.section-head h3::before {
  content: ''; width: 4px; height: 16px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
  border-radius: 2px;
}
.section-head a { font-size: 13px; color: var(--text-secondary); }

/* Quick actions grid */
.quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; padding: 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: -20px 16px 16px;
  position: relative; z-index: 5;
}
.quick-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; color: var(--text); cursor: pointer;
  text-align: center;
}
.quick-item .qi-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--primary-light);
  transition: transform 0.2s;
}
.quick-item:active .qi-icon { transform: scale(0.92); }
.quick-item span { font-size: 11px; color: var(--text-secondary); font-weight: 500; }

/* Promo video card */
.promo-video-card {
  display: block; position: relative;
  border-radius: var(--radius); overflow: hidden;
  height: 140px; color: #fff; cursor: pointer;
  box-shadow: var(--shadow-md);
}
.promo-video-card .pvc-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #3d0a0a 40%, #5c0000 100%);
}
.promo-video-card .pvc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
  display: flex; align-items: center; padding: 16px; gap: 14px;
}
.promo-video-card .play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.promo-video-card .play-btn::after {
  content: ''; border-left: 16px solid var(--primary);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}
.promo-video-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.promo-video-card p { font-size: 12px; opacity: 0.85; }
.promo-video-card .pvc-tag {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; background: var(--primary);
  padding: 2px 8px; border-radius: 4px; font-weight: 600;
}

/* Live card - 与红色主题区分，使用深蓝墨色系 */
.live-card {
  display: block; border-radius: var(--radius);
  padding: 14px 16px; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #1e3a5f 0%, #152238 100%);
  box-shadow: 0 4px 16px rgba(21, 34, 56, 0.35);
  position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.live-card.replay-mode {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  box-shadow: 0 4px 16px rgba(26, 32, 44, 0.35);
}
.live-card .live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 8px;
}
.live-card .live-badge.is-live {
  background: #e6a817;
  color: #1a1a1a;
}
.live-card .live-dot {
  width: 7px; height: 7px; background: #1a1a1a; border-radius: 50%;
  animation: pulse 1.2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1)} 50%{opacity:.5; transform:scale(0.85)} }
.live-card h4 { font-size: 16px; font-weight: 700; }
.live-card p { font-size: 12px; opacity: 0.9; margin-top: 2px; }
.live-card .live-deco {
  position: absolute; right: -10px; top: -10px;
  font-size: 64px; opacity: 0.15;
}

/* Rich entry cards */
.rich-card {
  display: flex; align-items: stretch;
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  margin-bottom: 12px; color: inherit; cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.rich-card:active { transform: scale(0.985); }
.rich-card .rc-side {
  width: 6px; flex-shrink: 0;
  background: linear-gradient(to bottom, var(--primary), var(--primary-dark));
}
.rich-card .rc-body { flex: 1; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.rich-card .rc-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.rich-card .rc-info { flex: 1; min-width: 0; }
.rich-card .rc-info h4 { font-size: 15px; font-weight: 700; }
.rich-card .rc-info p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.rich-card .rc-arrow { color: #cbd5e1; font-size: 20px; }

/* Product list - 首页纵向 */
.product-list { display: flex; flex-direction: column; gap: 10px; }
.product-list-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  color: inherit; cursor: pointer;
  transition: box-shadow 0.2s;
}
.product-list-item:active { box-shadow: var(--shadow-md); }
.product-list-item .pli-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  background: var(--primary-light);
}
.product-list-item .pli-body { flex: 1; min-width: 0; }
.product-list-item .pli-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.product-list-item .pli-rate { font-size: 18px; font-weight: 800; color: var(--primary); }
.product-list-item .pli-meta { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.product-list-item .pli-arrow { color: #cbd5e1; font-size: 20px; flex-shrink: 0; }

/* Product scroll (legacy) */
.product-scroll {
  display: flex; gap: 12px; overflow-x: auto;
  padding-bottom: 4px; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-scroll::-webkit-scrollbar { display: none; }
.product-chip {
  min-width: 200px; flex-shrink: 0;
  background: var(--card); border-radius: var(--radius);
  padding: 14px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.product-chip .pc-rate {
  font-size: 22px; font-weight: 800; color: var(--primary);
  margin: 6px 0 2px;
}
.product-chip .pc-name { font-size: 14px; font-weight: 600; }
.product-chip .pc-meta { font-size: 11px; color: var(--text-secondary); margin-top: 6px; }
.product-chip .pc-tag {
  display: inline-block; font-size: 10px;
  background: var(--primary-light); color: var(--primary);
  padding: 2px 6px; border-radius: 4px; margin-top: 8px; font-weight: 600;
}

/* Team stats pills */
.team-pills { display: flex; gap: 8px; margin-top: 10px; }
.team-pill {
  flex: 1; text-align: center;
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 10px 6px;
}
.team-pill strong { display: block; font-size: 20px; font-weight: 800; color: var(--primary); }
.team-pill span { font-size: 11px; color: var(--text-secondary); }

/* Cards */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.card-desc { font-size: 13px; color: var(--text-secondary); }
.card-desc p { margin-bottom: 4px; }

/* CS float */
.cs-float {
  position: fixed; right: 16px;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 16px);
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 4px 16px rgba(200, 16, 46, 0.45);
  z-index: 150; cursor: pointer; border: none;
}
.page.no-tabbar .cs-float { bottom: calc(var(--safe-bottom) + 16px); }

/* News page banner - shorter */
.banner-wrap.news-banner .banner-slide { height: 140px; }

/* Sub tabs */
.sub-tabs {
  display: flex; background: var(--card);
  border-radius: var(--radius); padding: 4px; margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.sub-tabs button {
  flex: 1; border: none; background: transparent;
  padding: 10px 8px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-secondary); cursor: pointer;
  min-height: 44px; font-weight: 500; transition: all 0.2s;
}
.sub-tabs button.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.35);
}

/* 流水详情 - 账户类型 Tab（可横向滑动） */
.tx-tabs {
  display: flex; gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tx-tabs::-webkit-scrollbar { display: none; }
.tx-tabs button {
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  background: var(--card);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  min-height: 36px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.tx-tabs button.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.3);
}

/* Transfer hub */
.transfer-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.transfer-option {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); color: inherit; cursor: pointer;
}
.transfer-option:active { box-shadow: var(--shadow-md); }
.transfer-option .to-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; background: var(--primary-light); flex-shrink: 0;
}
.transfer-option .to-body { flex: 1; min-width: 0; }
.transfer-option .to-body h5 { font-size: 15px; font-weight: 700; }
.transfer-option .to-body p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.transfer-option .to-arrow { color: #ccc; font-size: 18px; }
.transfer-flow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
}
.transfer-flow .tf-from, .transfer-flow .tf-to {
  padding: 2px 8px; border-radius: 4px; font-size: 12px;
}
.transfer-flow .tf-from { background: var(--bg); color: var(--text-secondary); }
.transfer-flow .tf-to { background: var(--primary-light); color: var(--primary); }
.transfer-rules .rule-item {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; line-height: 1.55;
}
.transfer-rules .rule-item:last-child { border-bottom: none; }
.transfer-rules .rule-item strong { display: block; font-size: 14px; margin-bottom: 4px; color: var(--text); }
.transfer-rules .rule-item.disabled { opacity: 0.55; }

/* 提现方式选择 */
.pay-method-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.pay-method-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: var(--radius);
  padding: 14px 16px; border: 2px solid var(--border);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.pay-method-item.active {
  border-color: var(--primary);
  background: var(--primary-light);
}
.pay-method-item input { display: none; }
.pay-method-item .pm-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--bg); flex-shrink: 0;
}
.pay-method-item.active .pm-icon { background: #fff; }
.pay-method-item .pm-info { flex: 1; }
.pay-method-item .pm-info h5 { font-size: 15px; font-weight: 600; }
.pay-method-item .pm-info p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.pay-method-item .pm-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.pay-method-item.active .pm-check {
  border-color: var(--primary); background: var(--primary); color: #fff;
  font-size: 12px;
}

/* News list - enhanced */
.news-list { display: none; }
.news-list.active { display: block; }
.news-item {
  display: flex; gap: 12px; background: var(--card);
  border-radius: var(--radius); padding: 12px; margin-bottom: 10px;
  cursor: pointer; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
  color: inherit;
}
.news-item:active { box-shadow: var(--shadow-md); }
.news-item .thumb {
  width: 110px; height: 74px; border-radius: var(--radius-sm);
  flex-shrink: 0; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.news-item .thumb .thumb-bg {
  position: absolute; inset: 0;
}
.news-item .thumb .thumb-icon {
  position: relative; z-index: 1; font-size: 24px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.news-item .thumb.video .thumb-icon::after {
  content: ''; border-left: 11px solid var(--primary);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}
.news-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.news-item .info h4 {
  font-size: 14px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item .info .summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item.article { align-items: flex-start; }
.news-item.article .thumb { height: 88px; }
.news-item .info .meta {
  font-size: 11px; color: var(--text-secondary); margin-top: 8px;
  display: flex; align-items: center; gap: 8px;
}
.news-item .pin {
  display: inline-block; color: #fff; background: var(--danger);
  font-size: 10px; padding: 1px 5px; border-radius: 3px;
  margin-right: 4px; font-weight: 600; vertical-align: middle;
}

/* Asset cards - enhanced */
.profile-hero {
  margin: 0 0 20px;
  padding: 28px 20px 32px;
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-deeper) 55%, #5c0000 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.profile-hero::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -80px; right: -60px;
}
.profile-hero::after {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  bottom: -40px; left: -30px;
}
.profile-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.profile-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 88px;
}
.profile-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 36px;
  border: 3px solid rgba(255,255,255,0.35);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.profile-avatar-name {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  max-width: 88px;
  word-break: break-all;
}
.profile-avatar-name.verified { color: #fff; }
.profile-avatar-name.unverified {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  font-size: 13px;
}
.profile-info { flex: 1; min-width: 0; padding-top: 8px; }
.profile-info .ph-id {
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.profile-info .ph-id strong {
  font-weight: 700;
  opacity: 1;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.profile-info .ph-phone {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.95;
  letter-spacing: 0.5px;
}

/* Asset grid - 我的页 */
.asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 20px;
}
.asset-grid-item {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  min-height: 96px;
}
.asset-grid-item:active { transform: scale(0.97); box-shadow: var(--shadow-md); }
.asset-grid-item.wide { grid-column: 1 / -1; }
.asset-grid-item .agi-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 10px;
}
.asset-grid-item h4 {
  font-size: 12px; color: var(--text-secondary); font-weight: 500;
  margin-bottom: 4px;
}
.asset-grid-item .amount {
  font-size: 18px; font-weight: 800; line-height: 1.2;
  letter-spacing: -0.3px; word-break: break-all;
}
.asset-grid-item .amount.blue { color: var(--primary); }
.asset-grid-item .amount.gold { color: var(--warning); }
.asset-grid-item .amount.green { color: var(--success); }
.asset-grid-item .amount.purple { color: var(--accent-gold); }
.asset-grid-item .agi-extra {
  font-size: 11px; color: var(--text-secondary); margin-top: 4px;
}
.asset-grid-item .agi-extra em {
  font-style: normal; color: var(--success); font-weight: 600;
}

/* Function icon grid - 我的页 */
.func-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 8px;
  padding: 16px;
  background: var(--card);
  border-radius: var(--radius);
  margin: 0 16px;
  box-shadow: var(--shadow-sm);
}
.func-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; color: var(--text); cursor: pointer; text-align: center;
}
.func-item .fi-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--primary-light);
  transition: transform 0.2s;
}
.func-item:active .fi-icon { transform: scale(0.92); }
.func-item span { font-size: 11px; color: var(--text-secondary); font-weight: 500; line-height: 1.3; }

.asset-card {
  display: block; background: var(--card); border-radius: var(--radius);
  padding: 16px; margin: 0 16px 10px;
  box-shadow: var(--shadow-sm);
  color: inherit; cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.asset-card:active { box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.asset-card .ac-top { display: flex; justify-content: space-between; align-items: center; }
.asset-card h4 { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.asset-card .ac-icon { font-size: 20px; }
.asset-card .amount { font-size: 26px; font-weight: 800; color: var(--text); margin: 8px 0 4px; letter-spacing: -0.5px; }
.asset-card .amount.blue { color: var(--primary); }
.asset-card .amount.gold { color: var(--warning); }
.asset-card .amount.green { color: var(--success); }
.asset-card .amount.purple { color: var(--accent-gold); }
.asset-card .sub { font-size: 12px; color: var(--text-secondary); }
.asset-card .arrow-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border);
  font-size: 12px; color: var(--text-secondary);
}

/* Menu list */
.menu-list {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; margin: 0 16px;
  box-shadow: var(--shadow-sm);
}
.menu-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px; border-bottom: 1px solid var(--border);
  color: inherit; cursor: pointer; min-height: 52px;
  transition: background 0.15s;
}
.menu-item:active { background: var(--bg); }
.menu-item:last-child { border-bottom: none; }
.menu-item .left { display: flex; align-items: center; gap: 12px; }
.menu-item .icon-wrap {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.menu-item .label { font-size: 15px; font-weight: 500; }

/* Buttons */
.btn {
  display: block; width: 100%; padding: 13px 16px;
  border: none; border-radius: var(--radius);
  font-size: 16px; font-weight: 600; cursor: pointer;
  min-height: 48px; text-align: center;
  transition: opacity 0.2s;
}
.btn:active { opacity: 0.85; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
}
.btn-primary:disabled { background: #bbb; box-shadow: none; cursor: not-allowed; }
.btn-outline {
  background: #fff; color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-group { display: flex; gap: 10px; margin-top: 16px; }
.btn-group .btn { flex: 1; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text-secondary); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: #fff;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--primary); outline: none; }
.form-hint { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }

/* Team tabs */
.gen-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.gen-tabs button {
  flex: 1; padding: 10px; border: 1.5px solid var(--border);
  background: #fff; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px;
  min-height: 44px; font-weight: 500; transition: all 0.2s;
}
.gen-tabs button.active {
  border-color: var(--primary); background: var(--primary-light);
  color: var(--primary); font-weight: 700;
}
.member-list .member-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.member-list .member-item:last-child { border-bottom: none; }
.member-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; margin-right: 10px;
}
.member-list .member-item { display: flex; align-items: center; }
.member-list .member-info { flex: 1; }
.member-list .member-info .name { font-weight: 600; font-size: 14px; }
.member-list .member-info .phone { font-size: 12px; color: var(--text-secondary); }

/* Check-in - 月历签到 */
.page-checkin { background: linear-gradient(180deg, #ffe8ec 0%, var(--bg) 280px); }

.checkin-top {
  text-align: center;
  padding: 20px 16px 8px;
}
.checkin-top h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.checkin-streak-big {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}
.checkin-streak-big .num {
  font-size: 52px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -2px;
}
.checkin-streak-big .unit {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.checkin-streak-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
}

.checkin-calendar-card {
  background: var(--card);
  border-radius: 16px;
  margin: 16px;
  padding: 16px 12px 12px;
  box-shadow: var(--shadow-md);
}
.cc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 12px;
  font-size: 14px;
  font-weight: 600;
}
.cc-head span:last-child {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 13px;
}
.cc-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding: 0 2px;
}
.cc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px 4px;
}
.cc-cell { min-height: 54px; }
.cc-empty { visibility: hidden; }
.cc-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 6px 2px;
  min-height: 54px;
  background: #f5f5f5;
}
.cc-day .day-num {
  font-size: 13px;
  font-weight: 600;
  color: #8c8c8c;
  line-height: 1.2;
}
.cc-day .day-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: #fff;
  color: #bfbfbf;
}
.cc-day.signed {
  background: #ececec;
}
.cc-day.signed .day-check {
  background: #fff;
  color: #8c8c8c;
}
.cc-day.today {
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.35);
}
.cc-day.today .day-num { color: #fff; }
.cc-day.today .day-check {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border: none;
}
.cc-day.today.signed .day-check {
  background: #fff;
  color: var(--primary);
}
.cc-day.future {
  background: var(--primary-light);
}
.cc-day.future .day-num { color: var(--primary); }
.cc-day.future .day-check {
  background: transparent;
  border: 1.5px solid #ffccc7;
  color: transparent;
}
.cc-day.missed .day-num { color: #bfbfbf; }
.cc-day.missed .day-check {
  background: transparent;
  border: 1.5px dashed #e8e8e8;
  color: transparent;
}

.checkin-action-btn {
  display: block;
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  padding: 15px;
  border: none;
  border-radius: 28px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.35);
  transition: transform 0.15s, opacity 0.15s;
}
.checkin-action-btn:active { transform: scale(0.98); }
.checkin-action-btn.done {
  background: linear-gradient(135deg, #bfbfbf, #8c8c8c);
  box-shadow: none;
  cursor: default;
}

.checkin-points-card {
  background: var(--card);
  border-radius: 16px;
  margin: 0 16px 16px;
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}
.cpc-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
}
.cpc-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--warning);
  margin: 8px 0 14px;
  letter-spacing: -0.5px;
}
.cpc-progress-track {
  height: 6px;
  background: #f5f5f5;
  border-radius: 3px;
  overflow: visible;
  position: relative;
  margin-bottom: 8px;
}
.cpc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffc53d, var(--warning));
  border-radius: 3px;
  transition: width 0.4s ease;
  position: relative;
}
.cpc-progress-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--warning);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.cpc-progress-tip {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.cpc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: var(--bg);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
}
.cpc-stat label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.cpc-stat strong {
  font-size: 18px;
  font-weight: 700;
}
.cpc-stat strong.gold { color: var(--warning); }
.cpc-stat strong.red { color: var(--primary); }
.cpc-rules {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.cpc-rules b {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
}

/* Video player */
.player-mock {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a1a, #5c0000);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-direction: column; gap: 10px; margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.player-mock .play-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.player-mock .play-circle::after {
  content: ''; border-left: 20px solid var(--primary);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
}
.player-mock .live-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--live); font-size: 12px; padding: 3px 10px; border-radius: 4px; font-weight: 600;
}

/* Badge */
.badge {
  display: inline-block; font-size: 11px; padding: 2px 8px;
  border-radius: 4px; font-weight: 600;
}
.badge-pending { background: #fff7e6; color: #d48806; }
.badge-success { background: #f6ffed; color: #389e0d; }
.badge-danger { background: #fff2f0; color: #cf1322; }

.detail-row {
  display: flex; justify-content: space-between; padding: 13px 0;
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.detail-row:last-child { border-bottom: none; }
.detail-row .label { color: var(--text-secondary); }

.tx-item {
  padding: 14px 0; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start;
}
.tx-item .tx-left h5 { font-size: 14px; font-weight: 600; }
.tx-item .tx-left p { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.tx-item .tx-right { text-align: right; }
.tx-item .tx-amount { font-weight: 700; font-size: 15px; }
.tx-item .tx-amount.plus { color: var(--success); }

.filter-bar { display: flex; gap: 8px; margin-bottom: 12px; }
.filter-bar select {
  flex: 1; padding: 10px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; min-height: 42px;
}

/* Modal */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 300;
  align-items: flex-end; justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff; width: 100%; max-width: 480px;
  border-radius: 20px 20px 0 0; padding: 24px 16px calc(24px + var(--safe-bottom));
  animation: slideUp .3s ease;
}
@keyframes slideUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
.modal h3 { text-align: center; margin-bottom: 20px; font-size: 17px; font-weight: 700; }

/* 视频弹窗播放 */
.video-modal-overlay {
  align-items: center;
  padding: 20px 16px;
  background: rgba(0, 0, 0, 0.72);
}
.video-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  animation: videoModalIn 0.25s ease;
}
@keyframes videoModalIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}
.video-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal-player {
  border-radius: 0;
  margin: 0;
  aspect-ratio: 16/9;
}
.video-modal-player .video-playing-label {
  font-size: 13px;
  opacity: 0.85;
}
.video-modal-body {
  padding: 14px 16px 18px;
}
.video-modal-body h3 {
  text-align: left;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}
.video-modal-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: left;
}

.pwd-inputs { display: flex; gap: 8px; justify-content: center; margin: 16px 0 24px; }
.pwd-inputs input {
  width: 44px; height: 48px; text-align: center; font-size: 20px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
}

.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,.78); color: #fff;
  padding: 14px 28px; border-radius: 12px; font-size: 14px;
  z-index: 400; display: none; max-width: 80%; text-align: center;
}
.toast.show { display: block; }

.article-content { font-size: 15px; line-height: 1.85; }
.article-content p { margin-bottom: 14px; }
.article-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }

.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-item {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform 0.2s;
}
.product-item:active { transform: scale(0.97); }
.product-item .p-img {
  height: 110px;
  display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.product-item .p-info { padding: 10px 12px; }
.product-item .p-info h5 { font-size: 13px; font-weight: 600; line-height: 1.4; }
.product-item .p-info .points { font-size: 15px; color: var(--primary); margin-top: 6px; font-weight: 700; }
.product-item .p-info .sales { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }
.product-item .p-tag {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; font-weight: 600; color: #fff;
  background: var(--primary); padding: 2px 6px; border-radius: 4px;
}
.product-item .p-img-wrap { position: relative; }

/* ========== 积分商城 ========== */
.header-actions {
  position: absolute; right: 0; top: 0; height: 100%;
  display: flex; align-items: center; gap: 2px; padding-right: 8px;
}
.header-action {
  position: relative; min-width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
}
.mall-badge {
  position: absolute; top: 4px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: #ff4d4f; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.mall-points-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #fff7e6, #fff);
  border: 1px solid #ffe58f; border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 12px;
}
.mall-points-bar .mp-label { font-size: 13px; color: var(--text-secondary); }
.mall-points-bar .mp-value { font-size: 22px; font-weight: 800; color: #d48806; }
.mall-cats {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  margin-bottom: 12px; scrollbar-width: none;
}
.mall-cats::-webkit-scrollbar { display: none; }
.mall-cat {
  flex-shrink: 0; padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 500; background: var(--bg);
  color: var(--text-secondary); border: 1px solid var(--border); cursor: pointer;
}
.mall-cat.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.mall-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border-radius: 20px; padding: 8px 14px;
  margin-bottom: 12px; border: 1px solid var(--border);
}
.mall-search input { flex: 1; border: none; background: none; font-size: 14px; outline: none; }
.mall-detail-hero {
  height: 240px; display: flex; align-items: center; justify-content: center;
  font-size: 80px; position: relative;
}
.mall-detail-hero .md-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--primary); color: #fff; font-size: 11px;
  padding: 3px 10px; border-radius: 4px; font-weight: 600;
}
.mall-detail-info { padding: 16px; background: var(--card); }
.mall-detail-info .md-points { font-size: 26px; font-weight: 800; color: var(--primary); margin: 8px 0; }
.mall-detail-info .md-meta { font-size: 12px; color: var(--text-secondary); display: flex; gap: 16px; }
.mall-detail-section { background: var(--card); margin-top: 10px; padding: 16px; }
.mall-detail-section h4 {
  font-size: 15px; font-weight: 600; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.mall-spec-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mall-spec-list span {
  font-size: 12px; padding: 4px 10px; background: var(--bg);
  border-radius: 4px; color: var(--text-secondary);
}
.mall-qty-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--card); margin-top: 10px;
}
.mall-qty-ctrl {
  display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.mall-qty-ctrl button {
  width: 36px; height: 36px; background: var(--bg); border: none;
  font-size: 18px; cursor: pointer;
}
.mall-qty-ctrl button:disabled { opacity: 0.4; }
.mall-qty-ctrl span {
  width: 44px; text-align: center; font-size: 15px; font-weight: 600;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border); line-height: 36px;
}
.mall-bottom-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255,255,255,0.98); border-top: 1px solid var(--border); z-index: 150;
}
.mall-bottom-bar .mb-cart {
  display: flex; flex-direction: column; align-items: center;
  font-size: 10px; color: var(--text-secondary); min-width: 48px; position: relative;
}
.mall-bottom-bar .mb-actions { flex: 1; display: flex; gap: 8px; }
.mall-bottom-bar .btn-cart, .mall-bottom-bar .btn-buy {
  flex: 1; padding: 12px; font-size: 14px; font-weight: 600;
  border: none; border-radius: var(--radius-sm); cursor: pointer; color: #fff;
}
.mall-bottom-bar .btn-cart { background: linear-gradient(135deg, #ffa940, #fa8c16); }
.mall-bottom-bar .btn-buy { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.page.has-mall-bar { padding-bottom: calc(70px + var(--safe-bottom)); }
.cart-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 10px;
}
.cart-check {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border);
  flex-shrink: 0; margin-top: 28px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; font-size: 12px; color: transparent;
}
.cart-check.checked { border-color: var(--primary); background: var(--primary); color: #fff; }
.cart-item .ci-img {
  width: 80px; height: 80px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; background: var(--bg); flex-shrink: 0;
}
.cart-item .ci-body { flex: 1; min-width: 0; }
.cart-item .ci-body h5 { font-size: 14px; font-weight: 600; line-height: 1.4; }
.cart-item .ci-body .ci-points { font-size: 16px; font-weight: 700; color: var(--primary); margin: 6px 0; }
.cart-item .ci-foot { display: flex; align-items: center; justify-content: space-between; }
.cart-item .ci-del { font-size: 12px; color: var(--text-secondary); background: none; border: none; cursor: pointer; }
.cart-footer {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255,255,255,0.98); border-top: 1px solid var(--border); z-index: 150;
}
.cart-footer .cf-check { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.cart-footer .cf-total { flex: 1; text-align: right; }
.cart-footer .cf-total strong { font-size: 18px; color: var(--primary); }
.cart-footer .btn { width: auto; min-width: 110px; margin: 0; padding: 12px 20px; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.cart-empty .ce-icon { font-size: 56px; margin-bottom: 12px; opacity: 0.5; }
.checkout-addr {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: var(--radius); padding: 16px; cursor: pointer;
}
.checkout-addr .ca-icon { font-size: 28px; }
.checkout-addr .ca-body { flex: 1; }
.checkout-addr .ca-body h5 { font-size: 15px; font-weight: 600; }
.checkout-addr .ca-body p { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.checkout-addr .ca-arrow { font-size: 20px; color: var(--text-secondary); }
.checkout-addr.no-addr { color: var(--primary); justify-content: center; }
.checkout-goods { background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.checkout-goods h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.checkout-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.checkout-item:last-child { border-bottom: none; }
.checkout-item .ci-img {
  width: 64px; height: 64px; border-radius: 8px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.checkout-item .ci-info { flex: 1; }
.checkout-item .ci-info h5 { font-size: 13px; font-weight: 600; }
.checkout-item .ci-info .ci-sub { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.checkout-item .ci-price { font-size: 14px; font-weight: 700; color: var(--primary); }
.checkout-summary { background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.checkout-summary .cs-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.checkout-summary .cs-row.total {
  border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 16px;
}
.checkout-summary .cs-row.total span:last-child { color: var(--primary); }
.checkout-submit {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  background: rgba(255,255,255,0.98); border-top: 1px solid var(--border); z-index: 150;
}
.checkout-submit .btn { margin: 0; }
.addr-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--card); border-radius: var(--radius);
  padding: 16px; margin-bottom: 10px; cursor: pointer;
  border: 2px solid transparent;
}
.addr-item.selected { border-color: var(--primary); }
.addr-item .ai-check {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border);
  flex-shrink: 0; margin-top: 2px; display: flex; align-items: center;
  justify-content: center; font-size: 12px; color: transparent;
}
.addr-item.selected .ai-check { border-color: var(--primary); background: var(--primary); color: #fff; }
.order-card { background: var(--card); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.order-card .oc-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px;
}
.order-card .oc-head .oc-status { color: var(--primary); font-weight: 600; }
.order-card .oc-item { display: flex; gap: 12px; padding: 12px 16px; }
.order-card .oc-item .oi-img {
  width: 56px; height: 56px; border-radius: 8px; background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.order-card .oc-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; border-top: 1px solid var(--border); font-size: 13px;
}
.order-card .oc-foot strong { color: var(--primary); font-size: 15px; }
.mall-success { text-align: center; padding: 48px 24px 24px; }
.mall-success .ms-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #f6ffed; color: #52c41a; font-size: 36px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.mall-success h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.mall-success p { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.mall-success .btn { margin-bottom: 10px; }

.chat-area { display: flex; flex-direction: column; gap: 12px; min-height: 50vh; padding: 16px; }
.chat-bubble { max-width: 78%; padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.chat-bubble.service { background: var(--primary-light); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble.user { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-input-bar {
  display: flex; gap: 8px; padding: 12px 16px;
  background: var(--card); border-top: 1px solid var(--border);
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
}
.chat-input-bar input { flex: 1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 22px; }

.amount-hero {
  text-align: center; padding: 28px 16px;
  background: linear-gradient(180deg, var(--primary-light), var(--card));
  border-radius: var(--radius); margin-bottom: 16px;
}
.amount-hero .label { font-size: 14px; color: var(--text-secondary); }
.amount-hero .value { font-size: 36px; font-weight: 800; color: var(--primary); margin: 8px 0; letter-spacing: -1px; }

.page-me { padding-top: 0; }
.page-me .section-head:first-of-type { margin-top: 0; }

@media (min-width: 481px) {
  body { box-shadow: 0 0 32px rgba(0,0,0,.1); }
}
