/* ======================================================
   FOOTRADAPRO - Homepage Styles v7.0
   布局：桌面端 2x2 网格，移动端单列
   专业设计版：推荐比赛卡片比例优化
   ====================================================== */

/* ===== Global Variables ===== */
:root {
    --brand-primary: #F97316;
    --brand-primary-light: #FDBA74;
    --brand-primary-dark: #EA580C;
    --brand-glow: rgba(249, 115, 22, 0.2);
    --bg-primary: #111827;
    --bg-secondary: #1F2937;
    --bg-card: rgba(31, 41, 55, 0.6);
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-tertiary: #6B7280;
    --border-light: rgba(255, 255, 255, 0.08);
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

body.test-mode {
    --brand-primary: #3B82F6;
    --brand-primary-light: #93C5FD;
    --brand-primary-dark: #2563EB;
    --brand-glow: rgba(59, 130, 246, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== Header ===== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 32px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFFFFF, var(--brand-primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    font-weight: 800;
}

/* ===== Mode Indicators ===== */
.mode-indicator {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mode-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(59, 130, 246, 0.12);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: 500;
    color: #3B82F6;
    text-align: center;
}

.mode-badge i {
    font-size: 14px;
    margin-bottom: 2px;
}

.mode-balance {
    font-size: 10px;
    color: #93C5FD;
    font-weight: 400;
    white-space: nowrap;
}

.mode-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 4px;
}

.mode-btn {
    background: transparent;
    border: none;
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mode-btn.active {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 2px 8px var(--brand-glow);
}

/* ===== Marquee Ticker ===== */
.ticker-bar {
    background: rgba(31, 41, 55, 0.8);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    border: 1px solid var(--border-light);
    width: 100%;
}

.ticker-icon {
    color: var(--brand-primary);
    font-size: 16px;
    flex-shrink: 0;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    height: 32px;
}

.ticker-messages {
    white-space: nowrap;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    animation: tickerScroll 25s linear infinite;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-messages .ticker-profit { color: var(--success); font-weight: 600; }
.ticker-messages .ticker-highlight { color: var(--brand-primary); font-weight: 600; }

.ticker-stats {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    gap: 16px;
}

.ticker-stats span {
    color: var(--brand-primary);
    font-family: var(--font-mono);
    font-weight: 700;
}

/* ===== Main Content ===== */
.main-content {
    padding: 32px 32px 100px;
    min-height: calc(100vh - 60px);
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-tertiary);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Greeting ===== */
.greeting {
    margin-bottom: 32px;
}

.greeting h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF, var(--brand-primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
    word-break: break-word;
    line-height: 1.3;
}

.greeting p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== 桌面端 2x2 网格 ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}

/* ===== 模块1：AI 推荐卡片 ===== */
.combined-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-2xl);
    padding: 24px;
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.combined-card:hover {
    border-color: rgba(var(--brand-primary), 0.3);
}

.ai-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.combined-card.no-chart .ai-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 115, 22, 0.1);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--brand-primary);
    margin-bottom: 16px;
}

/* AI 推荐 - 队徽区域 */
.ai-match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0;
}

.ai-team {
    flex: 1;
    text-align: center;
}

.ai-team-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
}

.ai-team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background: var(--bg-secondary);
    padding: 8px;
}

.ai-team-name {
    font-size: 14px;
    font-weight: 600;
    word-break: break-word;
}

.ai-vs {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-primary);
}

.ai-match-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 16px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.ai-match-meta i {
    margin-right: 6px;
}

/* Confidence Bar */
.confidence {
    margin-bottom: 16px;
}

.confidence-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.confidence-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.confidence-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-primary);
}

.confidence-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    width: 0%;
    background: var(--brand-primary);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.ai-message {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    padding: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    border-left: 3px solid var(--brand-primary);
}

/* Amount Section */
.amount-presets {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.amount-preset {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.amount-preset.active {
    background: var(--brand-primary);
    border-color: transparent;
    color: white;
}

.amount-preset:hover {
    border-color: var(--brand-primary);
}

.amount-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.amount-input input {
    background: transparent;
    border: none;
    font-size: 20px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-primary);
    width: 120px;
    outline: none;
}

.amount-input span {
    font-size: 14px;
    color: var(--text-tertiary);
}

.authorize-btn {
    width: 100%;
    background: var(--brand-primary);
    border: none;
    border-radius: var(--radius-full);
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.authorize-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--brand-glow);
}

.authorize-btn:active {
    transform: scale(0.98);
}

.btn-tip {
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: center;
}

/* Chart Section */
.chart-section {
    margin-top: 8px;
}

.chart-section:empty {
    display: none;
}

.chart-title {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.chart-bars {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 12px;
    height: 180px;
    margin-bottom: 16px;
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.chart-bar-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.bar-segment {
    width: 100%;
    transition: height 0.3s ease;
    min-height: 2px;
}

.bar-auth {
    background: var(--brand-primary);
    border-radius: 4px 4px 0 0;
}

.bar-profit {
    background: var(--success);
    border-radius: 4px 4px 0 0;
}

.bar-profit.negative {
    background: var(--danger);
}

.chart-label {
    font-size: 10px;
    color: var(--text-tertiary);
    text-align: center;
}

.chart-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    white-space: nowrap;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    pointer-events: none;
    display: none;
    margin-bottom: 8px;
    z-index: 10;
}

.chart-bar-stack:hover .chart-tooltip {
    display: block;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    font-size: 10px;
    color: var(--text-tertiary);
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 6px;
}

.legend-dot.auth { background: var(--brand-primary); }
.legend-dot.profit { background: var(--success); }
.legend-dot.loss { background: var(--danger); }

.empty-chart {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-tertiary);
    font-size: 13px;
}

/* ===== 模块2：新闻卡片 ===== */
.news-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-2xl);
    padding: 24px;
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.news-card:hover {
    border-color: rgba(var(--brand-primary), 0.3);
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    display: flex;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.news-item:hover {
    border-color: var(--brand-primary);
    background: rgba(255, 255, 255, 0.05);
}

.news-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    background-color: var(--bg-secondary);
    flex-shrink: 0;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-source {
    font-size: 10px;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.news-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-tertiary);
}

/* ===== 模块3：平台统计卡片 ===== */
.stats-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-2xl);
    padding: 24px;
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.stats-card:hover {
    border-color: rgba(var(--brand-primary), 0.3);
}

.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-compact {
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    padding: 12px 8px;
}

.stat-compact .stat-value-sm {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--brand-primary);
}

.stat-compact .stat-label-sm {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.stat-compact .trend-up {
    color: var(--success);
    font-size: 9px;
}

.ai-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.history-match {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
}

.history-date {
    font-size: 9px;
    color: var(--text-tertiary);
}

.history-profit {
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-mono);
}

.history-profit.positive { color: var(--success); }
.history-profit.negative { color: var(--danger); }

.history-test-badge {
    font-size: 8px;
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    margin-left: 8px;
}

.chain-proof {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-top: 12px;
    border: 1px solid var(--border-light);
}

.chain-proof-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 11px;
    color: var(--text-secondary);
}

.chain-address {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-addr {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.copy-addr:hover {
    color: var(--brand-primary);
}

.proof-confirm {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: var(--success);
}

.proof-confirm a {
    color: var(--brand-primary);
    text-decoration: none;
}

/* ===== 模块4：推荐比赛卡片（专业设计版）===== */
.matches-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-2xl);
    padding: 24px;
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
}

.matches-card:hover {
    border-color: rgba(var(--brand-primary), 0.3);
}

/* 2x2 网格 */
.more-matches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    flex: 1;
}

/* 卡片容器 - 专业比例 */
.more-match-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.more-match-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* 队徽区域 - 放大比例 */
.more-match-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.more-match-team {
    flex: 1;
    text-align: center;
}

.more-match-team-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.more-match-team-logo img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    transition: all 0.2s;
}

.more-match-card:hover .more-match-team-logo img {
    border-color: var(--brand-primary);
    transform: scale(1.02);
}

.more-match-team-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.3;
}

.more-match-vs {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-primary);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
}

/* 比赛信息区域 */
.more-match-info {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.more-match-league {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.more-match-league i {
    font-size: 10px;
    color: var(--brand-primary);
}

.more-match-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 11px;
    color: var(--text-tertiary);
}

.more-match-confidence {
    color: var(--brand-primary);
    font-weight: 700;
    background: rgba(249, 115, 22, 0.12);
    padding: 2px 8px;
    border-radius: 20px;
}

/* 交易按钮 - 放大设计 */
.more-match-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 10px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.more-match-btn i {
    font-size: 11px;
    transition: transform 0.2s;
}

.more-match-btn:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.more-match-btn:hover i {
    transform: translateX(4px);
}

.view-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 12px;
    color: var(--brand-primary);
    text-decoration: none;
    text-align: center;
    width: 100%;
    font-weight: 500;
}

.view-link:hover {
    text-decoration: underline;
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
    padding: 10px 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
    border-radius: var(--radius-md);
}

.nav-item i {
    font-size: 20px;
}

.nav-item.active {
    color: var(--brand-primary);
}

.nav-item:active {
    background: rgba(255, 107, 0, 0.1);
}

/* ===== Toast ===== */
.toast-container {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.toast-notification {
    background: var(--brand-primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 90vw;
    animation: slideUp 0.2s ease;
}

.toast-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ===== Utility ===== */
.hidden {
    display: none !important;
}

/* ==================== 移动端响应式 ==================== */
@media (max-width: 1023px) {
    .main-content {
        padding: 16px 16px 80px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .greeting h1 {
        font-size: 22px;
    }
    
    .greeting p {
        font-size: 13px;
    }
    
    .combined-card, .news-card, .stats-card, .matches-card {
        padding: 16px;
    }
    
    /* 移动端模式指示器 */
    .mode-indicator {
        width: 100%;
        margin-top: 8px;
    }
    
    .mode-badge {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        padding: 8px 12px;
        gap: 8px;
        border-radius: var(--radius-md);
    }
    
    .mode-badge i {
        font-size: 12px;
        margin-bottom: 0;
    }
    
    .mode-balance {
        white-space: normal;
    }
    
    /* 图表高度 */
    .chart-bars {
        height: 120px;
        gap: 6px;
    }
    
    /* 新闻卡片 */
    .news-image {
        width: 60px;
        height: 60px;
    }
    
    .news-title {
        font-size: 12px;
    }
    
    /* 移动端卡片比例调整 */
    .more-matches-grid {
        gap: 12px;
    }
    
    .more-match-card {
        padding: 12px 10px;
        gap: 8px;
    }
    
    .more-match-team-logo img {
        width: 44px;
        height: 44px;
    }
    
    .more-match-team-name {
        font-size: 10px;
    }
    
    .more-match-vs {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .more-match-league {
        font-size: 10px;
    }
    
    .more-match-meta {
        font-size: 10px;
        gap: 8px;
    }
    
    .more-match-btn {
        padding: 8px 0;
        font-size: 11px;
    }
    
    .ai-team-logo {
        width: 50px;
        height: 50px;
    }
    
    .ai-team-name {
        font-size: 12px;
    }
    
    .ai-vs {
        font-size: 14px;
    }
    
    .ai-match-meta {
        gap: 12px;
        font-size: 11px;
        flex-wrap: wrap;
    }
    
    .stats-grid-compact {
        gap: 8px;
    }
    
    .stat-compact {
        padding: 8px 4px;
    }
    
    .stat-compact .stat-value-sm {
        font-size: 16px;
    }
    
    .amount-presets {
        gap: 6px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }
    
    .amount-preset {
        padding: 6px 12px;
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .authorize-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .ticker-stats {
        display: none;
    }
    
    .header-container {
        padding: 10px 16px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .mode-btn {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    .bottom-nav {
        padding: 6px 0;
    }
    
    .nav-item {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    .nav-item i {
        font-size: 18px;
    }
}

/* ==================== 小屏手机 ==================== */
@media (max-width: 480px) {
    .main-content {
        padding: 12px 12px 80px;
    }
    
    .greeting h1 {
        font-size: 18px;
    }
    
    .combined-card, .news-card, .stats-card, .matches-card {
        padding: 12px;
        border-radius: var(--radius-lg);
    }
    
    .ai-team-logo {
        width: 40px;
        height: 40px;
    }
    
    .more-match-team-logo img {
        width: 38px;
        height: 38px;
    }
    
    .more-match-team-name {
        font-size: 9px;
    }
    
    .more-match-vs {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .more-match-league {
        font-size: 9px;
    }
    
    .more-match-meta {
        font-size: 9px;
        gap: 6px;
    }
    
    .more-match-btn {
        padding: 6px 0;
        font-size: 10px;
    }
    
    .stat-compact .stat-value-sm {
        font-size: 14px;
    }
    
    .mode-badge {
        padding: 6px 10px;
        font-size: 10px;
    }
}

/* ==================== 触摸优化 ==================== */
button, a, .nav-item, .more-match-card, .history-item, .news-item,
.amount-preset, .mode-btn, .copy-addr, .toast-close {
    cursor: pointer;
    touch-action: manipulation;
}

/* ===== 移动端溢出修复 ===== */
@media (max-width: 1023px) {
    .content-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .dashboard-grid {
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .stats-card,
    .matches-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .more-matches-grid {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .more-match-card {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* ===== 移动端隐藏推荐比赛模块 ===== */
@media (max-width: 1023px) {
    .matches-card {
        display: none !important;
    }
}