/* 现代化足球预测网站UI设计 */
:root {
    /* 现代蓝绿色主题 */
    --primary-color: #1e40af;
    --secondary-color: #0ea5e9;
    --accent-color: #10b981;
    --success-color: #059669;
    --warning-color: #f59e0b;
    --danger-color: #dc2626;
    
    /* 中性色 */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    
    /* 背景色 */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #0ea5e9 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --gradient-danger: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
    
    /* 阴影 */
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-heavy: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    padding-top: 80px; /* 为固定导航栏留出空间 */
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    height: 80px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    justify-content: center; /* 使导航按钮居中 */
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.nav-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.nav-btn i {
    font-size: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: calc(100vh - 80px);
}

/* 主页面头部 */
.main-header {
    margin-bottom: 2rem;
}

.header-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.hero-section {
    text-align: left;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.05) 0%, rgba(14, 165, 233, 0.05) 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}

/* 预测成功案例 */
.success-cases {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.success-cases h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.success-cases h2 i {
    color: #ffd700;
    font-size: 1.8rem;
}

.cases-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cases-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    font-size: 0.9rem;
}

.cases-table th {
    background: var(--bg-secondary);
    padding: 1rem 0.75rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    font-size: 0.85rem;
}

.cases-table td {
    padding: 1rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.success-row:hover {
    background: var(--bg-secondary);
}

.accuracy {
    font-weight: 700;
    color: var(--success-color);
    font-size: 1rem;
}

.match-code {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
}

.prediction {
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.prediction.win {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success-color);
}

.prediction.draw {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.prediction.lose {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger-color);
}

.score {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.odds {
    font-weight: 600;
    color: var(--accent-color);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

/* 统计数据 */
.cases-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Main Content */
main {
    padding: 0;
    max-width: 100%;
}


/* Input Sections */
.match-input-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.match-input-section h2 {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.match-input-section.hidden {
    display: none;
}

/* Classic Mode Layout */
.classic-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.match-selection-panel,
.selected-matches-panel {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.match-selection-panel h3,
.selected-matches-panel h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.classic-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.empty-cart-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.empty-cart-message i {
    font-size: 1.5rem;
    color: var(--text-light);
}

.empty-cart-message small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Form Styles */
.match-form,
.ai-match-form {
    max-width: 100%;
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: var(--card-bg);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.primary-btn {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-light);
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.secondary-btn {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.secondary-btn:hover:not(:disabled) {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

/* 彩票模式布局 */
.lottery-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.lottery-matches-panel,
.lottery-cart-panel {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.lottery-matches-panel h3,
.lottery-cart-panel h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Lottery Controls */
.lottery-controls {
    margin-bottom: 1.5rem;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Match Cards */
.matches-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.matches-section h2 {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.matches-container {
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.empty-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.empty-message i {
    font-size: 2rem;
    color: var(--text-light);
}

.empty-message p {
    margin: 0;
}

.match-card,
.lottery-match-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.match-card:hover,
.lottery-match-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px);
}

.match-card.selected,
.lottery-match-card.selected {
    border-color: var(--primary-color);
    background: rgba(30, 64, 175, 0.05);
}

/* Match Card Content */
.match-info {
    margin-bottom: 1rem;
}

.teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.home-team,
.away-team {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    font-size: 0.9rem;
}

.vs {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.league {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
}

.odds-info {
    margin-bottom: 1rem;
}

.odds-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.odds-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.odds-values {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.match-actions {
    display: flex;
    justify-content: flex-end;
}

.remove-match-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.remove-match-btn:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Results Section */
.results-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.results-section h2 {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.results-section.hidden {
    display: none;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn.hidden {
    display: none;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* AI Result Cards */
.simple-ai-results {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ai-result-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.ai-result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-heavy);
}

.match-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.match-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.league-info {
    color: var(--text-secondary);
    font-weight: 600;
}

.odds-display {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 12px;
    flex-wrap: wrap;
}

.odds-item {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: var(--shadow-light);
    color: var(--text-primary);
}

.ai-analysis-content {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.05) 0%, rgba(0, 242, 254, 0.05) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-color);
}

.ai-analysis-content h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-analysis-content h4 i {
    color: var(--secondary-color);
}

.ai-analysis-content h5 {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin: 0.6rem 0 0.3rem 0;
    font-weight: 600;
    border-left: 3px solid var(--primary-color);
    padding-left: 0.6rem;
    line-height: 1.3;
}

.ai-analysis-content ul {
    margin: 0.3rem 0;
    padding-left: 1rem;
}

.ai-analysis-content li {
    margin: 0.2rem 0;
    line-height: 1.3;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.ai-analysis-content strong {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.8rem;
}

.ai-analysis-content p {
    margin: 0.3rem 0;
    line-height: 1.3;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.analysis-text {
    max-height: 250px;
    overflow-y: auto;
    padding: 0.6rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
}

.analysis-text::-webkit-scrollbar {
    width: 6px;
}

.analysis-text::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.analysis-text::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.analysis-text::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.analysis-text {
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 1rem;
}

/* Source Tag */
.match-source {
    text-align: right;
    margin-top: 1rem;
}

.source-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-light);
}

.lottery-selected-card {
    border-left: 4px solid var(--secondary-color);
}

.lottery-selected-card .match-source {
    opacity: 0.9;
}

/* Messages */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-heavy);
    animation: slideIn 0.3s ease;
}

.message.success {
    background: var(--gradient-success);
}

.message.error {
    background: var(--gradient-danger);
}

.message.info {
    background: var(--gradient-primary);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-overlay.hidden {
    display: none;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Footer */
footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 1.5rem;
    color: var(--text-secondary);
    margin-top: 2rem;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* 增加移动端导航栏高度 */
    }
    
    .navbar {
        height: 120px;
    }
    
    .nav-container {
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        flex: 1;
        justify-content: center;
    }
    
    .container {
        padding: 0 1rem;
        min-height: calc(100vh - 120px);
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .subtitle {
        font-size: 1rem;
    }
    
    .success-cases {
        padding: 1rem;
    }
    
    .success-cases h2 {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cases-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cases-table {
        font-size: 0.8rem;
    }
    
    .cases-table th,
    .cases-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .header-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    /* 响应式预测结果布局 */
    .individual-results {
        grid-template-columns: 1fr;
    }
    
    /* 响应式经典模式布局 */
    .classic-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .match-selection-panel,
    .selected-matches-panel {
        padding: 1rem;
    }
    
    /* 响应式彩票模式布局 */
    .lottery-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .lottery-matches-panel,
    .lottery-cart-panel {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .teams {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .vs {
        transform: rotate(90deg);
    }
    
    .action-buttons,
    .classic-actions {
        flex-direction: column;
    }
    
    .message {
        right: 1rem;
        left: 1rem;
        top: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0;
    }
    
    .match-input-section,
    .matches-section,
    .results-section,
    .mode-selection {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .mode-btn {
        padding: 0.75rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* AI Introduction */
.ai-intro {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary-color);
}

.ai-intro p {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-intro i {
    color: var(--secondary-color);
}

/* Loading Messages */
.loading-message {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-message i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Lottery Selected Matches */
.selected-matches-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.selected-matches-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-matches-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.lottery-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Lottery Matches Container */
.lottery-matches-list {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 1rem;
    min-height: 300px;
}

.lottery-cart-container {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 1rem;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
}

/* Lottery Match Cards - Compact Style */
.lottery-match-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.85rem;
}

.lottery-match-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
    transform: translateY(-1px);
}

.lottery-match-card.selected {
    border-color: var(--primary-color);
    background: rgba(30, 64, 175, 0.05);
}

.lottery-match-card .match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.lottery-match-card .match-time {
    color: var(--text-secondary);
    font-weight: 500;
}

.lottery-match-card .match-status {
    background: var(--success-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.lottery-match-card .match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
}

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

.lottery-match-card .team-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    display: block;
    padding: 0.3rem 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.lottery-match-card .vs {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.7rem;
    flex-shrink: 0;
}

.lottery-match-card .odds-section {
    margin-bottom: 0.5rem;
}

.lottery-match-card .odds-group {
    margin-bottom: 0.3rem;
}

.lottery-match-card .odds-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.lottery-match-card .odds-values {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lottery-match-card .odds-item {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

.lottery-match-card .match-actions {
    display: flex;
    justify-content: flex-end;
}

.lottery-match-card .select-match-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 500;
}

.lottery-match-card .select-match-btn:hover {
    background: #1e3a8a;
    transform: scale(1.02);
}

.lottery-match-card .select-match-btn.selected {
    background: var(--success-color);
}

/* League Section in Lottery */
.league-section {
    margin-bottom: 1rem;
}

.league-title {
    background: var(--bg-secondary);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.league-title .match-count {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.8rem;
}

.league-matches {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* 预测结果网格布局 */
.individual-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* 经典预测结果样式 - 更紧凑版 */
.classic-prediction {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}

.classic-prediction .match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border-color);
}

.classic-prediction .match-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.league-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.probabilities-section {
    margin-bottom: 0.6rem;
    flex: 1;
}

.probabilities-section h4 {
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.probability-bars {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.prob-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.prob-label {
    width: 35px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.prob-value {
    width: 40px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    font-size: 0.75rem;
}

.prob-visual {
    flex: 1;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
}

.prob-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.prediction-details {
    margin-bottom: 0.8rem;
    background: var(--bg-secondary);
    padding: 0.8rem;
    border-radius: 6px;
}

.detail-item {
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    font-size: 0.75rem;
    line-height: 1.4;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.recommendation {
    background: var(--accent-color);
    color: white;
    padding: 0.4rem;
    border-radius: 4px;
    margin-top: 0.3rem;
    font-size: 0.75rem;
}

.odds-comparison {
    background: var(--bg-secondary);
    padding: 0.8rem;
    border-radius: 6px;
    margin-top: auto;
}

.odds-comparison h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.odds-row {
    display: flex;
    justify-content: space-between;
    gap: 0.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.odds-row span {
    flex: 1;
    text-align: center;
    padding: 0.25rem;
    background: var(--card-bg);
    border-radius: 3px;
    border: 1px solid var(--border-color);
    font-size: 0.7rem;
}

/* 串关结果样式 */
.best-parlay-card {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.best-parlay-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.parlay-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.parlay-info {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    flex-wrap: wrap;
}

.parlay-odds, .parlay-prob {
    font-weight: 600;
    color: var(--text-primary);
}

.parlay-ev {
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.parlay-ev.positive {
    background: var(--success-color);
    color: white;
}

.parlay-ev.negative {
    background: var(--danger-color);
    color: white;
}

.parlay-selections {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.match-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.pick-type {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pick-odds {
    font-weight: 600;
    color: var(--accent-color);
    margin-left: 0.5rem;
}

/* 其他串关组合 */
.parlays-list h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.parlay-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    transition: all 0.2s ease;
}

.parlay-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

.parlay-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.parlay-rank {
    background: var(--text-secondary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.parlay-picks {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pick-chip {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

/* AI模式购物车样式 */
.ai-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.ai-input-panel,
.ai-cart-panel {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.ai-input-panel h3,
.ai-cart-panel h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-input-panel h3 i,
.ai-cart-panel h3 i {
    color: var(--secondary-color);
}

.ai-cart-container {
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
    margin-bottom: 1.5rem;
}

.ai-cart-container:empty::before {
    content: "购物车为空";
    display: block;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem 0;
}

.ai-selected-card {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    position: relative;
}

.ai-selected-card:last-child {
    margin-bottom: 0;
}

.ai-selected-card .match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ai-selected-card .match-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.ai-selected-card .remove-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}

.ai-selected-card .remove-btn:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

.ai-selected-card .match-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.ai-selected-card .odds-info {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.ai-selected-card .odds-info span {
    background: var(--bg-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.ai-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.ai-actions .btn {
    flex: 1;
}

#ai-match-count {
    color: var(--secondary-color);
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ai-input-panel,
    .ai-cart-panel {
        padding: 1.5rem;
    }
    
    .ai-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
} 
/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    min-width: 400px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin: 1rem 0;
    line-height: 1.6;
    color: var(--text-primary);
}

.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    position: relative;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.code-block code {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    word-break: break-all;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #1e3a8a;
    transform: scale(1.05);
}

.help-text {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-footer .btn {
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* 响应式模态框 */
@media (max-width: 768px) {
    .modal-content {
        min-width: 90vw;
        max-width: 95vw;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* 彩票模式折叠功能 */
.matches-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.matches-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.matches-count span {
    color: var(--primary-color);
    font-weight: 600;
}

.matches-separator {
    margin: 0 0.5rem;
    color: var(--border-color);
}

.compact-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* 比赛卡片基础样式 */
.lottery-match-card {
    display: block;
    transition: all 0.3s ease;
}

/* 隐藏的比赛卡片 */
.lottery-match-card.hidden-match {
    display: none !important;
}

/* 折叠状态指示器 */
.matches-fade-overlay {
    position: relative;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.9) 100%);
    height: 80px;
    margin-top: -80px;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 最佳串关推荐 */
.best-parlay-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    animation: parlaySlideIn 0.3s ease-out;
}

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

.parlay-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.parlay-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.parlay-header .compact-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.parlay-header .compact-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.parlay-content {
    padding: 0.8rem;
    min-height: 60px;
    background: white;
    font-size: 0.85rem;
}

.parlay-loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 1rem;
}

.parlay-loading i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.parlay-recommendation {
    background: white;
    border-radius: 6px;
    padding: 0.8rem;
}

.parlay-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}

.parlay-matches {
    margin-bottom: 1rem;
}

.parlay-match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem;
    background: var(--bg-secondary);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.parlay-match-info {
    flex: 1;
}

.parlay-prediction {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.parlay-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.parlay-stat {
    text-align: center;
    padding: 0.4rem;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.parlay-stat-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
}

.parlay-stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}

.parlay-reasoning {
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 0.8rem;
    margin-top: 1rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* 比赛展开/折叠动画 */
.lottery-matches-list {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.matches-fade-indicator {
    background: linear-gradient(transparent, var(--card-bg));
    height: 40px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    border-radius: 0 0 8px 8px;
}

/* 响应式串关推荐 */
@media (max-width: 768px) {
    .parlay-header {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    
    .parlay-stats {
        grid-template-columns: 1fr;
    }
    
    .matches-summary {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
}

/* 使用指南样式 */
.usage-guide {
    margin-top: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.usage-guide h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.usage-guide h3 i {
    color: var(--secondary-color);
}

.guide-steps {
    margin-bottom: 2rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.step-item:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(5px);
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

.step-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.features-highlight {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: scale(1.02);
}

.feature-item i {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

/* 响应式使用指南 */
@media (max-width: 768px) {
    .usage-guide {
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .step-number {
        align-self: center;
    }
    
    .features-highlight {
        grid-template-columns: 1fr;
    }
    
    .usage-guide h3 {
        font-size: 1.1rem;
    }
}


/* 用户认证弹窗样式 */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.auth-modal.hidden {
    display: none !important;
}

.modal-content {
    background: var(--card-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

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

.form-actions {
    margin-top: 0.5rem;
}

.full-width {
    width: 100%;
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* 导航栏用户区域样式 */
.nav-user {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.username {
    font-weight: 600;
    color: var(--text-primary);
}

.user-type-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.user-type-badge.free {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.user-type-badge.premium {
    background: var(--accent-color);
    color: white; /* 保持白色文字，因为 accent-color 是绿色系 */
}

.predictions-remaining {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

/* 消息提示样式 */
.auth-message {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10001;
}

.auth-message.success {
    background: var(--gradient-success);
}

.auth-message.error {
    background: var(--gradient-danger);
}

.auth-message.warning {
    background: var(--warning-color);
}

.auth-message.info {
    background: var(--gradient-primary);
}

.message-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


/* 禁用按钮样式 */
.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg-secondary);
    color: var(--text-light);
}

.btn.disabled:hover {
    background: var(--bg-secondary);
    transform: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--bg-secondary);
    color: var(--text-light);
    pointer-events: none;
}

.btn:disabled:hover {
    background: var(--bg-secondary);
    transform: none;
}

