/* ========== 资产排行榜 - 共享样式 ========== */
:root {
  --bg: #0a0a1a; --card: #141428; --accent: #e94560; --gold: #f0a500;
  --purple: #a855f7; --orange: #f97316; --silver: #94a3b8; --bronze: #d97706;
  --text: #f1f5f9; --text-secondary: #94a3b8; --border: #1e293b;
  --success: #22c55e; --input-bg: #1e1e3a; --white: #ffffff;
  --green: #22c55e; --blue: #3b82f6;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); min-height: 100vh;
  display: flex; justify-content: center; align-items: flex-start;
  -webkit-font-smoothing: antialiased;
}
.app { width: 100%; max-width: 428px; min-height: 100vh; position: relative; overflow-x: hidden; }
.screen { display: none; padding: 20px 20px 40px; min-height: 100vh; }
.screen.active { display: block; }

/* Welcome */
.welcome { text-align: center; padding-top: 60px;
  background: radial-gradient(ellipse at 50% 0%, rgba(233,69,96,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(168,85,247,0.1) 0%, transparent 50%); }
.welcome h1 { font-size: 32px; margin-bottom: 8px; background: linear-gradient(135deg, #f0a500, #e94560, #a855f7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.welcome .subtitle { font-size: 15px; color: var(--text-secondary); margin-bottom: 40px; }
.hero-icon { font-size: 72px; margin-bottom: 20px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.feature-cards { display: flex; gap: 8px; margin: 30px 0; }
.feature-card { flex: 1; background: var(--card); border-radius: 14px; padding: 14px 8px; border: 1px solid var(--border); text-align: center; }
.feature-card .icon { font-size: 24px; margin-bottom: 4px; }
.feature-card .ftitle { font-size: 11px; font-weight: 600; }
.feature-card .fdesc { font-size: 10px; color: var(--text-secondary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; border-radius: 50px; font-size: 16px; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; width: 100%; }
.btn-primary { background: linear-gradient(135deg, #e94560, #a855f7); color: #fff; box-shadow: 0 4px 20px rgba(233,69,96,0.3); }
.btn-primary:active { transform: scale(0.97); opacity: 0.9; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-secondary); }
.btn-small { padding: 8px 20px; font-size: 13px; width: auto; }
.btn-share-wechat { background: #07c160; color: #fff; }
.btn-share-link { background: var(--card); border: 1px solid var(--border); color: var(--text); }
.btn-retry { background: var(--card); border: 1px solid var(--border); color: var(--text-secondary); }
.privacy-note { font-size: 11px; color: var(--text-secondary); margin-top: 20px; }
.privacy-note span { color: var(--accent); }

/* Form */
.form-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.back-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.progress-bar-wrap { flex: 1; }
.progress-text { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #e94560, #a855f7); border-radius: 2px; transition: width 0.4s; }
.form-step { display: none; }
.form-step.active { display: block; }
.form-step h3 { font-size: 20px; margin-bottom: 4px; }
.form-step .step-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.field-group { margin-bottom: 20px; }
.field-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.field-group label .required-star { color: var(--accent); }
.range-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.range-option { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--input-bg); color: var(--text-secondary); font-size: 13px; cursor: pointer; transition: all 0.2s; text-align: center; flex: 1; min-width: 65px; }
.range-option:hover { border-color: var(--accent); color: var(--text); }
.range-option.selected { background: rgba(233,69,96,0.15); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.range-option.zero { min-width: 45px; flex: 0.5; }
.count-selector { display: flex; gap: 10px; }
.count-btn { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--border); background: var(--input-bg); color: var(--text); font-size: 18px; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.count-btn:hover { border-color: var(--accent); }
.count-btn.selected { background: rgba(233,69,96,0.15); border-color: var(--accent); color: var(--accent); }
.form-actions { display: flex; gap: 12px; margin-top: 30px; }
.form-actions .btn { flex: 1; }

/* Summary */
.summary { background: var(--card); border-radius: 14px; padding: 16px; border: 1px solid var(--border); margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.summary-row:last-child { border-bottom: none; }
.summary-row .sr-label { color: var(--text-secondary); }
.summary-row .sr-value { font-weight: 600; }
.summary-total { font-size: 16px; font-weight: 700; color: var(--gold); padding-top: 10px; }

/* Loading */
.loading-screen { text-align: center; padding-top: 100px; }
.loading-icon { font-size: 64px; margin-bottom: 24px; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: 0.7; } }
.loading-text { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.loading-sub { font-size: 13px; color: var(--text-secondary); }
.loading-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.loading-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: dotBounce 1.4s ease-in-out infinite; }
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce { 0%,80%,100% { transform: scale(0); } 40% { transform: scale(1); } }

/* Result */
.result-header { text-align: center; margin-bottom: 24px; }
.tier-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; border-radius: 50px; font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.tier-badge.king { background: linear-gradient(135deg, #f0a500, #d97706); color: #fff; }
.tier-badge.diamond { background: linear-gradient(135deg, #a855f7, #7c3aed); color: #fff; }
.tier-badge.gold { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }
.tier-badge.silver { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.tier-badge.bronze { background: linear-gradient(135deg, #d97706, #92400e); color: #fff; }
.rank-number { font-size: 48px; font-weight: 800; background: linear-gradient(135deg, #f0a500, #e94560); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.rank-label { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* Result Tabs */
.result-tabs { display: flex; gap: 2px; margin-bottom: 16px; background: var(--card); border-radius: 12px; padding: 3px; overflow-x: auto; }
.result-tab { flex: 1; min-width: 48px; padding: 8px 4px; text-align: center; border-radius: 10px; font-size: 11px; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; border: none; background: transparent; white-space: nowrap; }
.result-tab.active { background: rgba(233,69,96,0.15); color: var(--accent); font-weight: 600; }

/* Reference Section */
.reference-section { margin-bottom: 16px; }
.section-title { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; }
.ref-person { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; margin-bottom: 6px; border: 1px solid var(--border); background: var(--card); }
.ref-person.above { border-left: 3px solid var(--accent); }
.ref-person.below { border-left: 3px solid var(--success); }
.ref-person.you { border-left: 3px solid var(--gold); background: rgba(240,165,0,0.1); }
.ref-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.ref-info { flex: 1; min-width: 0; }
.ref-info .ref-name { font-size: 13px; font-weight: 600; }
.ref-info .ref-meta { font-size: 11px; color: var(--text-secondary); }
.ref-gap { text-align: right; flex-shrink: 0; }
.ref-gap .gap-value { font-size: 14px; font-weight: 700; }
.ref-gap .gap-label { font-size: 10px; color: var(--text-secondary); }
.ref-gap .gap-value.up { color: var(--accent); }
.ref-gap .gap-value.down { color: var(--success); }

/* Rank Cards */
.rank-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.rank-card { background: var(--card); border-radius: 14px; padding: 16px; border: 1px solid var(--border); text-align: center; }
.rank-card .rank-icon { font-size: 24px; margin-bottom: 6px; }
.rank-card .rank-title { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.rank-card .rank-value { font-size: 20px; font-weight: 700; }

/* Info Cards */
.info-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.info-card { background: var(--card); border-radius: 10px; padding: 12px; border: 1px solid var(--border); text-align: center; }
.info-card .info-label { font-size: 10px; color: var(--text-secondary); margin-bottom: 4px; }
.info-card .info-value { font-size: 14px; font-weight: 700; }
.info-card .info-value.higher { color: var(--success); }
.info-card .info-value.lower { color: var(--accent); }

/* Emotion */
.emotion-card { background: linear-gradient(135deg, rgba(233,69,96,0.1), rgba(168,85,247,0.1)); border-radius: 16px; padding: 20px; border: 1px solid rgba(233,69,96,0.2); margin-bottom: 20px; }
.emotion-card .emotion-icon { font-size: 32px; margin-bottom: 10px; }
.emotion-card .emotion-text { font-size: 14px; line-height: 1.8; color: var(--text); }
.emotion-mode-switch { display: flex; gap: 8px; margin-bottom: 14px; }
.mode-btn { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--input-bg); color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.mode-btn.active { background: rgba(233,69,96,0.15); border-color: var(--accent); color: var(--accent); }

/* Fun Convert */
.fun-convert { margin-bottom: 20px; }
.fun-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fun-item { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 8px; text-align: center; }
.fun-item .fun-emoji { font-size: 26px; margin-bottom: 6px; }
.fun-item .fun-label { font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; }
.fun-item .fun-value { font-size: 18px; font-weight: 700; color: var(--gold); }
.fun-item .fun-unit { font-size: 10px; color: var(--text-secondary); }

/* Class Contrast */
.class-contrast { margin-bottom: 20px; }
.class-text { background: rgba(240,165,0,0.08); border: 1px solid rgba(240,165,0,0.2); border-radius: 14px; padding: 14px 16px; font-size: 13px; line-height: 1.7; color: var(--text); }
.class-emoji { margin-right: 6px; }

/* PK Challenge */
.pk-card { background: linear-gradient(135deg, rgba(233,69,96,0.12), rgba(168,85,247,0.12)); border: 1px solid rgba(233,69,96,0.25); border-radius: 16px; padding: 20px; margin-bottom: 20px; text-align: center; }
.pk-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.pk-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.6; }
.btn-pk { background: linear-gradient(135deg, #e94560, #f97316); color: #fff; box-shadow: 0 4px 20px rgba(233,69,96,0.3); }
.pk-result { margin-top: 16px; border-radius: 14px; padding: 16px; border: 1px solid var(--border); background: var(--card); }
.pk-result.win { border-color: rgba(34,197,94,0.4); }
.pk-result.lose { border-color: rgba(233,69,96,0.4); }
.pk-vs { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.pk-side { flex: 1; text-align: center; }
.pk-side-label { font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; }
.pk-side-value { font-size: 22px; font-weight: 800; }
.pk-side-sub { font-size: 10px; color: var(--text-secondary); margin-top: 2px; }
.pk-vs-badge { font-size: 16px; font-weight: 800; color: var(--accent); }
.pk-result-text { font-size: 14px; font-weight: 600; }

/* Share */
.share-section { text-align: center; margin-bottom: 20px; }
.share-preview { background: var(--card); border-radius: 16px; padding: 24px; border: 1px solid var(--border); margin-bottom: 16px; position: relative; overflow: hidden; }
.share-preview .share-tier { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.share-preview .share-rank { font-size: 36px; font-weight: 800; margin-bottom: 4px; }
.share-preview .share-rank.gold-text { color: var(--gold); }
.share-preview .share-rank.purple-text { color: var(--purple); }
.share-preview .share-rank.orange-text { color: var(--orange); }
.share-preview .share-rank.silver-text { color: var(--silver); }
.share-preview .share-rank.bronze-text { color: var(--bronze); }
.share-preview .share-slogan { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.share-preview .share-cta { font-size: 12px; color: var(--accent); }
.share-watermark { position: absolute; bottom: 12px; right: 16px; font-size: 10px; color: var(--text-secondary); opacity: 0.5; }
.share-actions { display: flex; gap: 10px; }
.share-actions .btn { flex: 1; }

/* Toast */
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.85); color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 14px; z-index: 1000; animation: toastIn 0.3s ease; pointer-events: none; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 100; animation: fadeIn 0.2s; padding: 20px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--card); border-radius: 16px; padding: 24px; width: 90%; max-width: 400px; text-align: center; border: 1px solid var(--border); }
.modal h3 { margin-bottom: 8px; font-size: 18px; }
.modal p { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.modal canvas { width: 100%; border-radius: 12px; margin-bottom: 16px; }

/* City Selector */
.city-selector { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--input-bg); cursor: pointer; transition: all 0.2s; min-height: 48px; }
.city-selector .city-value { font-size: 15px; color: var(--text); font-weight: 600; }
.city-selector .city-tier { font-size: 11px; color: var(--text-secondary); background: rgba(240,165,0,0.15); border: 1px solid rgba(240,165,0,0.3); border-radius: 10px; padding: 2px 8px; }
.city-selector .city-placeholder { font-size: 15px; color: var(--text-secondary); }
.city-selector .city-arrow { margin-left: auto; color: var(--text-secondary); font-size: 14px; }
.city-selector.selected { border-color: var(--accent); }
.city-modal { background: var(--card); border: 1px solid var(--border); border-radius: 20px 20px 0 0; width: 100%; max-width: 480px; max-height: 80vh; display: flex; flex-direction: column; overflow: hidden; animation: slideUp 0.3s ease; padding: 0; }
.city-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 12px; }
.city-modal-header h3 { font-size: 18px; margin: 0; }
.city-modal-close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.city-search-wrap { padding: 0 20px 12px; }
.city-search { width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--input-bg); color: var(--text); font-size: 16px; outline: none; }
.city-search:focus { border-color: var(--accent); }
.city-list { flex: 1; overflow-y: auto; padding: 0 12px 24px; -webkit-overflow-scrolling: touch; }
.city-group-title { font-size: 12px; color: var(--text-secondary); padding: 14px 8px 6px; }
.city-option { padding: 12px 16px; border-radius: 10px; font-size: 15px; color: var(--text); cursor: pointer; transition: background 0.15s; }
.city-option:active { background: rgba(233,69,96,0.1); }
.city-option.selected { background: rgba(233,69,96,0.15); color: var(--accent); font-weight: 600; }
.city-no-result { text-align: center; padding: 40px; color: var(--text-secondary); font-size: 14px; }

/* Animations */
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.animate-up { animation: slideUp 0.5s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }

::-webkit-scrollbar { width: 0; }

/* ========== Admin Styles ========== */
.admin-body { background: #f1f5f9; color: #1e293b; font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif; }
.admin-header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.admin-header h1 { font-size: 20px; color: #1a1a2e; }
.admin-header .header-actions { display: flex; gap: 10px; }
.admin-header .btn-admin { padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; }
.admin-header .btn-admin.primary { background: #e94560; color: #fff; }
.admin-header .btn-admin.secondary { background: #e2e8f0; color: #475569; }
.admin-header .nav-link { font-size: 13px; color: #64748b; text-decoration: none; }
.admin-header .nav-link:hover { color: #e94560; }

.admin-container { max-width: 1400px; margin: 0 auto; padding: 24px; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 12px; padding: 20px; border: 1px solid #e2e8f0; }
.stat-card .stat-label { font-size: 12px; color: #64748b; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: #1a1a2e; }
.stat-card .stat-sub { font-size: 12px; color: #94a3b8; margin-top: 4px; }

/* Charts */
.charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.chart-card { background: #fff; border-radius: 12px; padding: 20px; border: 1px solid #e2e8f0; }
.chart-card h3 { font-size: 15px; margin-bottom: 16px; color: #1a1a2e; }
.chart-bar-wrap { display: flex; flex-direction: column; gap: 8px; }
.chart-bar-row { display: flex; align-items: center; gap: 10px; }
.chart-bar-label { width: 80px; font-size: 12px; color: #64748b; text-align: right; flex-shrink: 0; }
.chart-bar-track { flex: 1; height: 24px; background: #f1f5f9; border-radius: 6px; overflow: hidden; }
.chart-bar-fill { height: 100%; border-radius: 6px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: 11px; font-weight: 600; color: #fff; min-width: 30px; transition: width 0.5s; }
.chart-bar-fill.king { background: linear-gradient(90deg, #f0a500, #eab308); }
.chart-bar-fill.diamond { background: linear-gradient(90deg, #a855f7, #7c3aed); }
.chart-bar-fill.gold { background: linear-gradient(90deg, #f97316, #ea580c); }
.chart-bar-fill.silver { background: linear-gradient(90deg, #94a3b8, #64748b); }
.chart-bar-fill.bronze { background: linear-gradient(90deg, #d97706, #92400e); }
.chart-bar-count { width: 40px; font-size: 12px; color: #64748b; flex-shrink: 0; }

/* Table */
.table-section { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; overflow: hidden; margin-bottom: 24px; }
.table-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e2e8f0; }
.table-header h3 { font-size: 15px; }
.table-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.table-filters select, .table-filters input { padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 12px; background: #fff; }
.table-filters select { min-width: 100px; }
.table-filters input { width: 150px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid #f1f5f9; }
.admin-table th { background: #f8fafc; font-weight: 600; color: #475569; white-space: nowrap; }
.admin-table tr:hover td { background: #f8fafc; }
.admin-table .tier-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.admin-table .tier-tag.king { background: #fef3c7; color: #92400e; }
.admin-table .tier-tag.diamond { background: #f3e8ff; color: #6b21a8; }
.admin-table .tier-tag.gold { background: #fed7aa; color: #9a3412; }
.admin-table .tier-tag.silver { background: #e2e8f0; color: #475569; }
.admin-table .tier-tag.bronze { background: #fef3c7; color: #92400e; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; }
.pagination button { padding: 6px 12px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; cursor: pointer; font-size: 12px; }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }
.pagination .page-info { font-size: 12px; color: #64748b; }

.empty-state { text-align: center; padding: 60px; color: #94a3b8; }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-row { grid-template-columns: 1fr; }
  .table-filters { flex-direction: column; }
  .admin-table { font-size: 11px; }
  .admin-table th, .admin-table td { padding: 8px 6px; }
}

/* ========== H5 移动端优化 ========== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.app {
  max-width: 428px;
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.screen { padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(40px + env(safe-area-inset-bottom, 0px)); }

/* 触控目标最小 44px */
.range-option { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.count-btn { min-width: 48px; min-height: 48px; }
.btn { min-height: 46px; }
.back-btn, .city-modal-close { min-width: 40px; min-height: 40px; }

/* 去除移动端点击高亮 */
* { -webkit-tap-highlight-color: transparent; }

/* 移动端按钮按压反馈 */
.range-option:active, .count-btn:active, .result-tab:active, .city-option:active, .btn:active { filter: brightness(1.15); }

/* 桌面端鼠标悬停效果仅在非触摸设备生效 */
@media (hover: hover) {
  .range-option:hover { border-color: var(--accent); color: var(--text); }
  .count-btn:hover { border-color: var(--accent); }
  .btn-outline:hover { border-color: var(--text-secondary); }
}

/* 小屏手机（<380px）字号微调 */
@media (max-width: 380px) {
  .rank-number { font-size: 40px; }
  .welcome h1 { font-size: 28px; }
  .result-tab { min-width: 44px; }
}

/* 安全区兼容（老设备无 env 时回退） */
@supports (padding: env(safe-area-inset-bottom)) {
  .share-actions { padding-bottom: env(safe-area-inset-bottom, 0px); }
}