/* Analysis Module Specific Styles */

/* Report Content Styles */
.report-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.report-content h1,
.report-content h2,
.report-content h3,
.report-content h4,
.report-content h5,
.report-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.report-content h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.report-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.3rem;
}

.report-content h3 {
    font-size: 1.5rem;
    color: #495057;
}

.report-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.report-content ul,
.report-content ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.report-content li {
    margin-bottom: 0.5rem;
}

.report-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

.report-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e83e8c;
}

.report-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.report-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

.report-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.report-content th,
.report-content td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}

.report-content th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.report-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 特殊元素样式 */
.report-content theme {
    display: block;
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.report-content theme[type="other"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.report-content theme[type="success"] {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.report-content theme[type="warning"] {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.report-content theme[type="danger"] {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.report-content theme[type="info"] {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

/* 改进的列表样式 */
.report-content ul {
    list-style-type: none;
    padding-left: 0;
}

.report-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.report-content ul li::before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

.report-content ol {
    counter-reset: item;
    padding-left: 0;
}

.report-content ol li {
    counter-increment: item;
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.report-content ol li::before {
    content: counter(item) ".";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* 改进的引用样式 */
.report-content blockquote {
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 12px 12px 0;
    position: relative;
}

.report-content blockquote::before {
    content: """;
    font-size: 4rem;
    color: #667eea;
    position: absolute;
    top: -1rem;
    left: 1rem;
    opacity: 0.3;
}

/* 改进的代码样式 */
.report-content code {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.9em;
    color: #e83e8c;
    border: 1px solid #dee2e6;
}

.report-content pre {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.report-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    border: none;
}
}

/* Theme Components */
[data-theme="wechat-blue"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

[data-theme="success"] {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

[data-theme="warning"] {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

[data-theme="danger"] {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .report-content h1 {
        font-size: 2rem;
    }
    
    .report-content h2 {
        font-size: 1.5rem;
    }
    
    .report-content h3 {
        font-size: 1.25rem;
    }
    
    .analysis-hero {
        padding: 2rem 0;
    }
    
    .analysis-hero h1 {
        font-size: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .report-content {
        font-size: 12pt;
        line-height: 1.6;
    }
    
    .report-content h1 {
        font-size: 18pt;
        page-break-after: avoid;
    }
    
    .report-content h2 {
        font-size: 16pt;
        page-break-after: avoid;
    }
    
    .report-content h3 {
        font-size: 14pt;
        page-break-after: avoid;
    }
    
    .report-content img {
        max-width: 80%;
        page-break-inside: avoid;
    }
    
    .report-content table {
        page-break-inside: avoid;
    }
}

/* Animation Effects */
.report-card {
    transition: all 0.3s ease;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.report-tag {
    transition: all 0.3s ease;
}

.report-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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