/* AI分析功能增强样式 - 现代化用户体验 */

/* ===== 数据源标识样式 ===== */
.stat-item[data-source="估算数据"] {
    position: relative;
    opacity: 0.85;
    border: 1px dashed rgba(103, 126, 234, 0.3) !important;
    background: rgba(103, 126, 234, 0.05) !important;
}

.stat-item[data-source="估算数据"]::before {
    content: "估算";
    position: absolute;
    top: -8px;
    right: 8px;
    background: rgba(103, 126, 234, 0.8);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    z-index: 1;
}

.stat-item[data-source="真实数据"] {
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    background: rgba(16, 185, 129, 0.05) !important;
}

/* 趋势指示器样式 */
.trend-indicator {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 4px;
}

.trend-up {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.trend-stable {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.trend-down {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.trend-estimate {
    background: rgba(168, 85, 247, 0.1);
    color: #9333ea;
    border: 1px solid rgba(168, 85, 247, 0.2);
    font-style: italic;
}

/* ===== 增强版AI分析模态框 ===== */
.ai-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.ai-modal.show {
    display: flex;
}

.ai-modal-content {
    background: white;
    border-radius: var(--border-radius-xl);
    max-width: 900px;
    width: 100%;
    max-height: 92vh;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-modal-content {
        max-width: 95vw;
        max-height: 95vh;
        margin: var(--spacing-sm);
        border-radius: var(--border-radius-lg);
    }
}

@media (max-width: 480px) {
    .ai-modal {
        padding: var(--spacing-xs);
    }
    
    .ai-modal-content {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: var(--border-radius-md);
    }
}

/* ===== 模态框头部 ===== */
.ai-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--spacing-lg) var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.ai-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.ai-modal-header h4,
.ai-modal-header h3 {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.ai-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: var(--font-size-2xl);
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.ai-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.ai-modal-close:active {
    transform: scale(0.95);
}

/* ===== 模态框主体 ===== */
.ai-modal-body {
    padding: 0;
    max-height: calc(92vh - 80px);
    overflow-y: auto;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* 确保内容不会超出模态框 */
.ai-modal-content {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* 修复长文本和表格的溢出 */
.ai-analysis-content table,
.ai-analysis-content pre,
.ai-analysis-content .code-block {
    max-width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}

/* 修复图片和媒体元素 */
.ai-analysis-content img,
.ai-analysis-content video,
.ai-analysis-content iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

/* 自定义滚动条 */
.ai-modal-body::-webkit-scrollbar {
    width: 8px;
}

.ai-modal-body::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.ai-modal-body::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--border-radius-md);
}

.ai-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ===== 增强版加载状态 ===== */
.ai-loading {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--gray-600);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ai-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(102, 126, 234, 0.05) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

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

.ai-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.ai-spinner::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 4px solid transparent;
    border-top: 4px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ai-loading p {
    font-size: var(--font-size-lg);
    font-weight: 500;
    margin: var(--spacing-md) 0;
    position: relative;
    z-index: 1;
}

.ai-loading .loading-subtitle {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-top: var(--spacing-sm);
}

/* ===== 分析内容排版优化 ===== */
.ai-analysis-content {
    padding: 0;
    line-height: 1.8;
    color: var(--gray-700);
    background: white;
    max-width: 100%;
    overflow: hidden;
}

/* 分析内容卡片容器 */
.analysis-cards-container {
    padding: var(--spacing-xl);
    display: grid;
    gap: var(--spacing-lg);
    width: 100%;
    box-sizing: border-box;
}

/* ===== 防止内容重叠的关键修复 ===== */
.ai-analysis-content > * {
    clear: both;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.ai-analysis-content .data-visualization,
.ai-analysis-content .insight-box,
.ai-analysis-content .prediction-box,
.ai-analysis-content .content-showcase {
    margin: 25px 0;
    position: relative;
    z-index: 1;
    clear: both;
}

/* 修复浮动元素造成的重叠 */
.ai-analysis-content::after {
    content: '';
    display: table;
    clear: both;
}

/* 确保网格布局不会溢出 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    margin: 30px 0;
    width: 100%;
    box-sizing: border-box;
    clear: both;
}

/* 修复进度条容器 */
.progress-container {
    width: 100%;
    margin: 20px 0;
    clear: both;
    box-sizing: border-box;
}

/* 比赛信息头部卡片 */
.match-info-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.25);
    transform: translateY(0);
    transition: all var(--transition-normal);
}

.match-info-header:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.35);
}

.match-info-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
}

.match-info-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.match-info-header h5 {
    margin: 0 0 var(--spacing-md) 0;
    font-size: var(--font-size-lg);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.match-info-header p {
    margin: var(--spacing-xs) 0;
    font-size: var(--font-size-sm);
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.match-info-header .cache-indicator {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-md);
    display: inline-block;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 分析内容标题样式 */
.ai-analysis-content h2 {
    color: #667eea;
    margin: 0;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    position: relative;
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
}

.ai-analysis-content h2::before {
    content: '';
    position: absolute;
    left: var(--spacing-xl);
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius-sm);
}

.ai-analysis-content h3 {
    color: #764ba2;
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: 600;
    position: relative;
    padding: var(--spacing-lg) var(--spacing-xl) var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
}

.ai-analysis-content h4 {
    color: var(--gray-800);
    margin: 0;
    font-size: var(--font-size-lg);
    font-weight: 600;
    padding: var(--spacing-md) var(--spacing-xl);
    background: #fafbfc;
    border-bottom: 1px solid #f1f5f9;
}

.ai-analysis-content p {
    margin: 0;
    padding: var(--spacing-md) var(--spacing-xl);
    text-align: justify;
    line-height: 1.8;
    border-bottom: 1px solid #f8fafc;
}

.ai-analysis-content p:last-child {
    border-bottom: none;
}

.ai-analysis-content strong {
    color: #667eea;
    font-weight: 600;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 2px 6px;
    border-radius: var(--border-radius-sm);
    border: 1px solid #bae6fd;
}

.ai-analysis-content em {
    color: var(--gray-600);
    font-style: italic;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    padding: 2px 6px;
    border-radius: var(--border-radius-sm);
    border: 1px solid #e5e5e5;
}

/* 增强版内容展示组件 */
.content-showcase {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    transition: all 0.3s ease;
}

/* 代码块样式 */
.code-block {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    animation: slideInUp 0.5s ease-out;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(10px);
}

.code-language {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(99, 102, 241, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.copy-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.code-content {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    background: transparent;
}

.code-content code {
    font-family: 'Fira Code', 'Monaco', 'Cascadia Code', 'Segoe UI Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    white-space: pre;
    display: block;
}

/* JSON数据块特殊样式 */
.json-block {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.json-block .code-language {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.json-block .copy-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

/* 行内代码样式 */
.inline-code {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', 'Monaco', 'Cascadia Code', 'Segoe UI Mono', monospace;
    font-size: 0.9em;
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-weight: 500;
}

/* 语法高亮 - 基础样式 */
.language-json .property {
    color: #f472b6;
}

.language-json .string {
    color: #86efac;
}

.language-json .number {
    color: #fbbf24;
}

.language-json .boolean {
    color: #c084fc;
}

.language-json .null {
    color: #94a3b8;
}

/* 代码块滚动条样式 */
.code-content::-webkit-scrollbar {
    height: 8px;
}

.code-content::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 4px;
}

.code-content::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 4px;
}

.code-content::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

/* 代码块响应式设计 */
@media (max-width: 768px) {
    .code-block {
        margin: 16px -8px;
        border-radius: 8px;
    }
    
    .code-header {
        padding: 10px 12px;
    }
    
    .code-content {
        padding: 12px;
    }
    
    .code-content code {
        font-size: 13px;
    }
}

.content-showcase:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.12),
        0 5px 15px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.content-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px 20px 0 0;
}

.content-showcase::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.content-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px 20px 0 0;
}

.content-showcase.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.02);
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.4),
        0 10px 20px rgba(118, 75, 162, 0.3);
}

.content-showcase.success {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.content-showcase.warning {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.content-showcase.error {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.content-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.content-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

.content-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 16px;
    margin: 25px 0;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 
        0 10px 30px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.content-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 40px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.content-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.content-highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* ===== 数据可视化组件 - 统一定义 ===== */
.data-visualization {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.data-visualization:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.data-visualization::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

/* ===== 统计网格 - 统一定义 ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.stat-item {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: #667eea;
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 8px;
    display: block;
    animation: countUp 1s ease-out;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 5px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: linear-gradient(135deg, #e9ecef 0%, #f1f3f5 100%);
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    animation: progressAnimation 2s ease-out;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 2px 8px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progressShimmer 2s ease-out;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

/* ===== 洞察框和预测框样式 ===== */

.insight-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 5px solid #f59e0b;
    padding: 25px 30px 25px 45px; /* 增加左边距为图标留空间 */
    border-radius: 16px;
    margin: 25px 0;
    position: relative;
    box-shadow: 
        0 8px 25px rgba(245, 158, 11, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    clear: both;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
}

.insight-box:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(245, 158, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.insight-box::before {
    content: '💡';
    position: absolute;
    top: 25px;
    left: 15px; /* 调整图标位置 */
    background: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: pulse 2s infinite;
    z-index: 3;
}

.insight-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.prediction-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid #3b82f6;
    padding: 20px 25px 20px 40px; /* 增加左边距为图标留空间 */
    border-radius: 12px;
    margin: 20px 0;
    position: relative;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
    clear: both;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
}

.prediction-box::before {
    content: '🎯';
    position: absolute;
    top: 20px;
    left: 12px; /* 调整图标位置 */
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.trend-indicator {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
}

.trend-up {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.trend-down {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.trend-stable {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

/* 球员信息样式 */
.player-info-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.player-info-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

.player-info-header h5 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-basic-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.player-position {
    display: flex;
    align-items: center;
    gap: 12px;
}

.position-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.player-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.player-status {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-self: flex-start;
}

/* 响应式设计 - 统一处理 */
@media (max-width: 768px) {
    .player-info-header {
        padding: 20px 16px;
    }
    
    .player-position {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 16px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .player-info-header {
        padding: 16px 12px;
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-item {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
}

/* 动画效果 */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

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

.player-info-header {
    animation: fadeInUp 0.6s ease-out;
}

.stat-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }
.stat-item:nth-child(5) { animation-delay: 0.5s; }
.stat-item:nth-child(6) { animation-delay: 0.6s; }

/* 增强版图标和视觉元素 */
.icon-enhancement {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-enhancement::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: iconPulse 2s infinite;
    z-index: -1;
}

.icon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: bounce 2s infinite;
    z-index: 10;
}

.visual-element {
    position: relative;
    overflow: hidden;
}

.visual-element::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: gradientBorder 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.visual-element:hover::after {
    opacity: 1;
}

.enhanced-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 
        0 8px 25px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.enhanced-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.enhanced-icon:hover {
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 
        0 12px 35px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.enhanced-icon:hover::before {
    left: 100%;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.status-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: statusShimmer 2s infinite;
}

.status-indicator.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status-indicator.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.status-indicator.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.status-indicator.info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.data-point {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    color: #667eea;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.data-point:hover {
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.data-point::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #667eea;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.data-point:hover::after {
    opacity: 1;
}

.visual-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}

.visual-separator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.8), transparent);
    animation: separatorMove 3s linear infinite;
}

.floating-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.floating-element.top-right {
    top: 20px;
    right: 20px;
    animation-delay: 0s;
}

.floating-element.bottom-left {
    bottom: 20px;
    left: 20px;
    animation-delay: 2s;
}

.floating-element.center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

.glow-effect {
    position: relative;
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glow-effect:hover::before {
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

/* 图标和视觉元素动画 */
@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 0.3; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes statusShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes separatorMove {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(-5px) rotate(-5deg); }
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* 增强版警告和提示信息 */
.ai-analysis-content .alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    margin: 0;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.ai-analysis-content .alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background: currentColor;
}

.ai-analysis-content .alert::after {
    content: '⚠️';
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    font-size: var(--font-size-lg);
    opacity: 0.2;
}

.ai-analysis-content .alert-danger {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left-color: #ef4444;
    color: #991b1b;
}

.ai-analysis-content .alert-danger::after {
    content: '🚨';
}

.ai-analysis-content .alert-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left-color: #f59e0b;
    color: #92400e;
}

.ai-analysis-content .alert-warning::after {
    content: '⚠️';
}

.ai-analysis-content .alert-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left-color: #3b82f6;
    color: #1e40af;
}

.ai-analysis-content .alert-info::after {
    content: 'ℹ️';
}

.ai-analysis-content .alert-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: #22c55e;
    color: #166534;
}

.ai-analysis-content .alert-success::after {
    content: '✅';
}

/* 内容分组样式 */
.content-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-lg);
    margin: var(--spacing-lg) 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-normal);
}

.content-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.content-section-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.content-section-body {
    padding: var(--spacing-xl);
}

/* 响应式网格布局 */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
}

.analysis-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
}

.analysis-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-xl);
}

/* ===== 增强版AI分析按钮 ===== */
.ai-analysis-btn {
    margin-top: var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.ai-analysis-btn .btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: var(--font-size-sm);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    min-height: 44px;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    box-shadow: var(--shadow-md);
}

.ai-analysis-btn .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.ai-analysis-btn .btn:hover::before {
    left: 100%;
}

.ai-analysis-btn .btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ai-analysis-btn .btn:active {
    transform: translateY(0);
}

/* 加载状态按钮 */
.ai-analysis-btn.loading .btn {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    pointer-events: none;
}

.ai-analysis-btn.loading .btn::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: var(--spacing-md);
}

/* 成功状态按钮 */
.ai-analysis-btn.success .btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* 错误状态按钮 */
.ai-analysis-btn.error .btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* ===== 动画效果增强 ===== */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes progressShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

@keyframes progressAnimation {
    0% {
        width: 0;
    }
}

@keyframes countUp {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== 特殊效果 ===== */
.ai-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.8), 0 0 30px rgba(118, 75, 162, 0.5);
    }
}

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

/* 滑入动画 */
.slide-in {
    animation: slideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== 无障碍访问支持 ===== */
.ai-modal:focus-within {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.ai-modal-close:focus,
.ai-analysis-btn .btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ===== 响应式设计优化 ===== */
@media (max-width: 768px) {
    .ai-modal-content {
        width: 95%;
        margin: 2.5% auto;
        max-height: 95vh;
    }
    
    .ai-modal-header h4,
    .ai-modal-header h3 {
        font-size: var(--font-size-lg);
    }
    
    .match-info-header {
        padding: var(--spacing-lg);
    }
    
    .analysis-cards-container {
        padding: var(--spacing-lg);
    }
    
    .ai-analysis-content h2,
    .ai-analysis-content h3,
    .ai-analysis-content h4,
    .ai-analysis-content p {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
    
    .data-card-header,
    .data-card-body {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
    
    .analysis-grid,
    .analysis-grid-2,
    .analysis-grid-3 {
        grid-template-columns: 1fr;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
    }
    
    .content-section-body {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .ai-modal-content {
        width: 98%;
        margin: 1% auto;
        border-radius: var(--border-radius-md);
    }
    
    .match-info-header {
        padding: var(--spacing-md);
    }
    
    .analysis-cards-container {
        padding: var(--spacing-md);
    }
    
    .ai-analysis-content h2,
    .ai-analysis-content h3,
    .ai-analysis-content h4,
    .ai-analysis-content p {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    .data-card-header,
    .data-card-body {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    .analysis-grid,
    .analysis-grid-2,
    .analysis-grid-3 {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    .content-section-body {
        padding: var(--spacing-md);
    }
    
    .ai-analysis-btn .btn {
        min-height: 40px;
        font-size: var(--font-size-xs);
        padding: var(--spacing-xs) var(--spacing-md);
    }
}

/* ===== 打印样式优化 ===== */
@media print {
    .ai-modal {
        position: static;
        background: white;
        padding: 0;
    }
    
    .ai-modal-content {
        box-shadow: none;
        max-width: 100%;
        max-height: none;
        border-radius: 0;
    }
    
    .ai-modal-close {
        display: none;
    }
    
    .ai-loading {
        display: none;
    }
    
    .data-card:hover,
    .content-section:hover,
    .match-info-header:hover {
        transform: none;
        box-shadow: none;
    }
    
    .analysis-grid,
    .analysis-grid-2,
    .analysis-grid-3 {
        break-inside: avoid;
    }
}