/* ==================== CSS变量 ==================== */
:root {
    --primary: #E63946;
    --primary-dark: #C62828;
    --primary-light: #FF6B6B;
    --secondary: #1D3557;
    --secondary-light: #457B9D;
    --accent: #F4A261;
    --success: #2A9D8F;
    --warning: #E9C46A;
    --danger: #E76F51;
    --bg-main: #F5F7FA;
    --bg-card: #FFFFFF;
    --bg-dark: #1A1A2E;
    --text-primary: #2D3436;
    --text-secondary: #636E72;
    --text-muted: #B2BEC3;
    --border: #E8ECF1;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
    --shadow-hover: 0 4px 20px rgba(230,57,70,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== 动画 ==================== */
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.6;} }
@keyframes spin { to{transform:rotate(360deg);} }
@keyframes slideIn { from{opacity:0;transform:translateX(40px);} to{opacity:1;transform:translateX(0);} }
@keyframes fadeIn { from{opacity:0;transform:translateY(8px);} to{opacity:1;transform:translateY(0);} }
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

/* ==================== 全局 ==================== */
* { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ==================== 导航栏 ==================== */
.navbar {
    background: var(--secondary);
    color: white;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 8px rgba(29,53,87,0.3);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo { font-size: 24px; }
.nav-title { font-size: 18px; font-weight: 800; letter-spacing: 0.5px; }
.nav-subtitle { font-size: 10px; opacity: 0.6; font-weight: 400; margin-left: 2px; }

.navbar-actions { display: flex; gap: 8px; }

.nav-btn {
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-btn:hover { background: rgba(255,255,255,0.22); }
.nav-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.nav-btn-icon { font-size: 14px; }

/* ==================== 主容器 ==================== */
.container { max-width: 960px; margin: 0 auto; padding: 16px; }

/* ==================== 状态栏 ==================== */
.status-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.status-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
}

.status-chip.online { background: #E8F5E9; color: #2E7D32; }
.status-chip.offline { background: #FFEBEE; color: #C62828; }
.status-chip .dot { width: 6px; height: 6px; border-radius: 50%; }
.status-chip.online .dot { background: #4CAF50; }
.status-chip.offline .dot { background: #F44336; }

/* ==================== Tab ==================== */
.tab-nav {
    display: flex;
    gap: 4px;
    background: white;
    padding: 4px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 9px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.tab-btn:hover { background: var(--bg-main); color: var(--text-primary); }

.tab-btn.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(230,57,70,0.25);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }

/* ==================== 骨架屏 ==================== */
.skeleton-card {
    background: white;
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
}

.skeleton-header {
    height: 40px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-body { padding: 16px; }

.skeleton-teams {
    height: 32px;
    width: 60%;
    margin: 0 auto 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-bar {
    height: 24px;
    width: 100%;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-bar.short { width: 70%; height: 18px; }

/* ==================== 赛事卡片 ==================== */
.match-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 640px) {
    .match-grid { grid-template-columns: repeat(2, 1fr); }
}

.match-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    animation: fadeIn 0.4s ease;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* 世界杯卡片 */
.match-card.worldcup-card {
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #1A237E, #FFD54F) 1;
    border-radius: var(--radius);
    border-image-slice: 1;
}

/* 由于 border-image 不支持 border-radius，改用 outline + box-shadow 模拟 */
.match-card.worldcup-card {
    border: none;
    outline: 2px solid #FFD54F;
    outline-offset: -2px;
    box-shadow: var(--shadow), inset 0 2px 0 #1A237E;
}

.match-card.finished { opacity: 0.55; }
.match-card.finished:hover { opacity: 0.7; }

/* 卡片头部 */
.match-header {
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: #FAFBFC;
}

.match-league {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
}

.match-league .badge {
    background: var(--primary);
    color: white;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.match-time { font-size: 11px; color: var(--text-muted); }

/* 卡片主体 */
.match-body { padding: 14px; }

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.team { flex: 1; text-align: center; }
.team-name { font-size: 15px; font-weight: 700; }
.team-label { font-size: 10px; color: var(--text-muted); }

.vs-divider {
    width: 36px;
    text-align: center;
    font-weight: 800;
    color: var(--primary);
    font-size: 13px;
}

/* ==================== 胜平负SP ==================== */
.spf-bar { display: flex; gap: 4px; margin-bottom: 10px; }

.spf-item {
    flex: 1;
    text-align: center;
    padding: 5px 6px;
    border-radius: var(--radius-xs);
    font-size: 12px;
    font-weight: 600;
}

.spf-item.win { background: #FFEBEE; color: #C62828; }
.spf-item.draw { background: #E8F5E9; color: #2E7D32; }
.spf-item.lose { background: #E3F2FD; color: #1565C0; }
.spf-item .label { font-size: 10px; font-weight: 400; opacity: 0.8; }

/* ==================== 波胆赔率矩阵 ==================== */
.bd-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }

.bd-cell {
    text-align: center;
    padding: 5px 3px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.bd-cell:hover { border-color: var(--primary); background: #FFF5F5; }
.bd-cell .score { font-weight: 700; color: var(--text-primary); }
.bd-cell .sp-val { display: block; font-size: 10px; color: var(--text-secondary); }

.bd-cell.high-sp { background: #FFF3E0; border-color: var(--accent); }
.bd-cell.high-sp .sp-val { color: #E65100; font-weight: 600; }

.bd-cell.selected { background: var(--primary); color: white; border-color: var(--primary); }
.bd-cell.selected .score { color: white; }
.bd-cell.selected .sp-val { color: rgba(255,255,255,0.9); }

/* ==================== 欧赔简要条 ==================== */
.match-eu-snippet {
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    background: rgba(69,123,157,0.06);
    font-size: 11px;
    color: var(--text-secondary);
}

/* ==================== AI摘要 ==================== */
.match-ai-snippet {
    margin-top: 6px;
    padding: 5px 8px;
    background: #F3E5F5;
    border-radius: var(--radius-xs);
    font-size: 11px;
    color: #6A1B9A;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== 欧赔对比表 ==================== */
.odds-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.odds-compare-table th {
    background: var(--bg-main);
    padding: 7px 6px;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    font-size: 11px;
}

.odds-compare-table td {
    padding: 7px 6px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
}

.odds-compare-table tr:hover td { background: #FAFBFC; }
.odds-better { color: var(--primary); font-weight: 700; }

/* ==================== 分析面板 ==================== */
.analysis-panel {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.analysis-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analysis-header h3 { font-size: 15px; display: flex; align-items: center; gap: 6px; }
.analysis-source-hint { font-size: 11px; color: var(--text-muted); }

.analysis-body { padding: 18px; }

/* ==================== 概率分布条 ==================== */
.prob-bar { display: flex; height: 28px; border-radius: var(--radius-xs); overflow: hidden; margin: 6px 0; }

.prob-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    transition: flex 0.3s;
}

.prob-segment.home { background: var(--primary); }
.prob-segment.draw { background: var(--success); }
.prob-segment.away { background: var(--secondary-light); }

/* ==================== AI面板 ==================== */
.ai-panel {
    background: linear-gradient(135deg, #1A1A2E, #16213E);
    border-radius: var(--radius);
    padding: 20px;
    color: #E0E0E0;
    margin-top: 14px;
}

.ai-panel h4 { color: #BB86FC; font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.ai-text { white-space: pre-wrap; font-size: 13px; line-height: 1.8; }

.ai-loading { display: flex; align-items: center; gap: 10px; padding: 16px; color: #BB86FC; }

.ai-loading .spinner {
    width: 20px; height: 20px;
    border: 2px solid rgba(187,134,252,0.3);
    border-top-color: #BB86FC;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==================== AI分析卡片 ==================== */
.ai-analysis-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 16px;
    border-left: 3px solid var(--primary);
}

.ai-analysis-header { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.ai-analysis-body { font-size: 13px; line-height: 1.8; color: var(--text-secondary); }
.ai-analysis-body p { margin-bottom: 8px; }

.ai-prob-bar { display: flex; height: 24px; border-radius: var(--radius-xs); overflow: hidden; margin-top: 10px; }

.ai-prob-seg {
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 600; color: white; min-width: 30px;
}

.ai-prob-seg.win { background: var(--primary); }
.ai-prob-seg.draw { background: var(--success); }
.ai-prob-seg.lose { background: var(--secondary-light); }

/* ==================== 推荐标签 ==================== */
.recommendation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 14px; }

.rec-card { padding: 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.rec-card.conservative { background: #E8F5E9; border-color: #A5D6A7; }
.rec-card.value { background: #FFF3E0; border-color: #FFCC80; }
.rec-card.combo { background: #E3F2FD; border-color: #90CAF9; }

.rec-label { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 6px; }
.rec-card.conservative .rec-label { color: #2E7D32; }
.rec-card.value .rec-label { color: #E65100; }
.rec-card.combo .rec-label { color: #1565C0; }

.rec-score { font-size: 20px; font-weight: 800; margin: 2px 0; }
.rec-sp { font-size: 13px; font-weight: 600; color: var(--primary); }
.rec-reason { font-size: 11px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }

/* ==================== 图表 ==================== */
.chart-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 18px;
    margin-bottom: 14px;
}

.chart-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.chart-container { position: relative; height: 200px; width: 100%; }

@media (max-width: 640px) { .chart-container { height: 160px; } }

/* ==================== 计算器 ==================== */
.calculator {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.calc-selected { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; min-height: 32px; }

.calc-chip {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 16px; font-size: 12px; font-weight: 500;
}

.calc-chip.home-win { background: #FFEBEE; color: #C62828; }
.calc-chip.draw { background: #E8F5E9; color: #2E7D32; }
.calc-chip.away-win { background: #E3F2FD; color: #1565C0; }

.calc-chip .remove {
    width: 16px; height: 16px; border-radius: 50%;
    background: rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 11px; line-height: 1;
}

.calc-result {
    background: var(--bg-main);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.calc-result-item .label { font-size: 11px; color: var(--text-muted); }
.calc-result-item .value { font-size: 22px; font-weight: 800; color: var(--primary); }

/* 计算器Tab样式 */
.calc-header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.calc-title-text { font-size: 16px; font-weight: 700; }

.calc-clear-btn { font-size: 12px; padding: 4px 10px; }
.calc-clear-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.calc-list {
    background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 6px 0; margin-bottom: 12px; min-height: 48px;
}

.calc-row {
    display: flex; align-items: center; padding: 8px 14px;
    border-bottom: 1px solid var(--border); gap: 8px; transition: var(--transition);
}

.calc-row:last-child { border-bottom: none; }
.calc-row:hover { background: #FAFBFC; }
.calc-row-info { flex: 1; min-width: 0; }
.calc-row-match { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc-row-score { font-size: 15px; font-weight: 700; margin-top: 1px; }
.calc-row-sp { font-size: 13px; font-weight: 700; color: var(--primary); white-space: nowrap; }

.calc-row-del {
    background: none; border: none; font-size: 18px; color: var(--text-muted);
    cursor: pointer; padding: 2px 4px; border-radius: var(--radius-xs); transition: var(--transition);
}

.calc-row-del:hover { background: #FFEBEE; color: var(--primary); }

.calc-summary-box {
    background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 14px 18px; margin-bottom: 10px;
}

.calc-summary-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}

.calc-summary-row:last-child { border-bottom: none; }
.calc-summary-row.highlight { background: #FFF5F5; margin: 0 -18px; padding: 8px 18px; }

.calc-sp-val { font-size: 16px; font-weight: 700; color: var(--secondary); }
.calc-win-val { font-size: 20px; font-weight: 800; color: var(--primary); }

.calc-bet-input {
    width: 72px; padding: 5px 8px; border: 2px solid var(--border); border-radius: var(--radius-xs);
    font-size: 14px; font-weight: 700; text-align: right; color: var(--secondary);
}

.calc-bet-input:focus { outline: none; border-color: var(--primary); }

.calc-quick-bets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

.calc-quick-btn {
    padding: 5px 12px; border: 1.5px solid var(--border); border-radius: 16px;
    background: var(--bg-card); font-size: 12px; font-weight: 600; cursor: pointer;
    color: var(--text-secondary); transition: var(--transition);
}

.calc-quick-btn:hover { border-color: var(--primary); color: var(--primary); background: #FFF5F5; }

.calc-manual-add {
    background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 12px 14px; margin-bottom: 12px;
}

.calc-input {
    padding: 6px 8px; border: 1.5px solid var(--border); border-radius: var(--radius-xs); font-size: 12px;
}

.calc-input:focus { outline: none; border-color: var(--primary); }

.calc-picker-card {
    background: var(--bg-card); border: 2px solid var(--primary); border-radius: var(--radius);
    padding: 12px 14px; margin-bottom: 14px; box-shadow: var(--shadow-lg);
}

.calc-pick-btn {
    padding: 4px 8px; border: 1.5px solid var(--border); border-radius: var(--radius-xs);
    background: #F5F5F5; font-size: 11px; cursor: pointer; transition: var(--transition); color: var(--text-primary);
}

.calc-pick-btn:hover { border-color: var(--primary); background: #FFF5F5; }
.calc-pick-btn.high { background: #FFF3E0; border-color: #FFB74D; color: #E65100; font-weight: 700; }

.btn-add-calc {
    background: transparent; border: 1.5px solid var(--secondary-light); color: var(--secondary-light);
    padding: 3px 8px; border-radius: 14px; font-size: 10px; cursor: pointer; transition: var(--transition);
}

.btn-add-calc:hover { background: var(--secondary-light); color: white; }

/* ==================== 设置 ==================== */
.settings-panel {
    background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
}

.settings-title { font-size: 16px; margin-bottom: 16px; }

.setting-group { margin-bottom: 16px; }
.setting-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

.setting-group input {
    width: 100%; padding: 8px 12px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); font-size: 13px; transition: var(--transition);
}

.setting-group input:focus { outline: none; border-color: var(--primary); }
.setting-group .hint { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

.settings-actions { display: flex; gap: 10px; margin-top: 16px; }

.btn-primary {
    background: var(--primary); color: white; border: none;
    padding: 8px 20px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
    background: transparent; color: var(--primary); border: 2px solid var(--primary);
    padding: 6px 16px; border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 600; cursor: pointer; transition: var(--transition);
}

.btn-outline:hover { background: var(--primary); color: white; }

.info-box {
    margin-top: 18px; padding: 14px; background: var(--bg-main); border-radius: var(--radius-sm);
}

.info-box h4 { font-size: 13px; margin-bottom: 6px; }
.info-box ul { font-size: 12px; color: var(--text-secondary); padding-left: 18px; line-height: 1.8; }

.warning-box {
    margin-top: 12px; padding: 14px; background: #FFF3E0; border-radius: var(--radius-sm);
}

.warning-box h4 { font-size: 13px; margin-bottom: 6px; color: #E65100; }
.warning-box p { font-size: 12px; color: #795548; line-height: 1.7; }

/* ==================== Toast ==================== */
.toast-container {
    position: fixed; top: 64px; right: 12px; z-index: 1000;
    display: flex; flex-direction: column; gap: 6px;
}

.toast {
    padding: 10px 16px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500;
    box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease; max-width: 280px;
}

.toast.success { background: #E8F5E9; color: #2E7D32; border-left: 3px solid #4CAF50; }
.toast.error { background: #FFEBEE; color: #C62828; border-left: 3px solid #F44336; }
.toast.info { background: #E3F2FD; color: #1565C0; border-left: 3px solid #2196F3; }
.toast.warning { background: #FFF3E0; color: #E65100; border-left: 3px solid #FF9800; }

/* ==================== 模态框 ==================== */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 200;
    display: flex; align-items: center; justify-content: center; padding: 16px;
    opacity: 0; visibility: hidden; transition: all 0.25s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    background: white; border-radius: var(--radius); max-width: 720px; width: 100%;
    max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-lg);
    animation: fadeIn 0.3s ease;
}

/* ==================== 空状态 ==================== */
.empty-state { text-align: center; padding: 40px 16px; color: var(--text-muted); }
.empty-icon { font-size: 36px; margin-bottom: 12px; }
.empty-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.empty-desc { font-size: 13px; }

/* ==================== 响应式 ==================== */
@media (max-width: 480px) {
    .container { padding: 8px; }
    .navbar { padding: 0 12px; height: 48px; }
    .nav-title { font-size: 15px; }
    .nav-subtitle { display: none; }
    .tab-btn { padding: 7px 8px; font-size: 12px; }
    .match-header { padding: 8px 10px; }
    .match-body { padding: 10px; }
    .team-name { font-size: 14px; }
    .modal { max-height: 92vh; border-radius: var(--radius-sm); }
}

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D0D0D0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #A0A0A0; }

/* ==================== 减弱动画偏好 ==================== */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==================== 增强AI分析：保本策略 + 高赔率建议 ==================== */
.strategy-card {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.strategy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-main, #f8f9fa);
    border-bottom: 1px solid #eee;
}
.strategy-body {
    padding: 12px 14px;
}

/* 保本策略网格 */
.safe-bet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 8px 0;
}
.safe-bet-item {
    text-align: center;
    padding: 10px 6px;
    border-radius: 10px;
    background: var(--bg-main, #f8f9fa);
    border: 1px solid #eee;
}
.safe-bet-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}
.safe-bet-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary, #1D3557);
}
.safe-bet-prop {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* 高赔率选项网格 */
.high-odds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 8px 0;
}
.high-odds-item {
    text-align: center;
    padding: 10px 6px;
    border-radius: 10px;
    background: var(--bg-main, #f8f9fa);
    border: 1px solid #eee;
}
.ho-side {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}
.ho-sp {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary, #1D3557);
    margin-bottom: 2px;
}
.ho-prob {
    font-size: 11px;
    margin-bottom: 2px;
}
.ho-eu {
    font-size: 9px;
    color: #999;
    margin-bottom: 2px;
}
.ho-value {
    font-size: 11px;
    font-weight: 600;
    color: #E65100;
    margin-top: 2px;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .safe-bet-grid, .high-odds-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    .safe-bet-item, .high-odds-item {
        padding: 8px 4px;
    }
    .safe-bet-amount, .ho-sp {
        font-size: 15px;
    }
}
