/* ================================================================
   核子GEO — 报告正文样式 v2
   现代简约 · 可读性优先
   ================================================================ */

.report-body {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    box-shadow: var(--shadow);
    line-height: 1.85;
    font-size: 1rem;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
    color: var(--text-secondary);
}

.report-body h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 36px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    color: var(--text);
}

.report-body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 32px 0 14px;
    color: var(--text);
}

.report-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 24px 0 10px;
    color: var(--text);
}

.report-body h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 18px 0 8px;
    color: var(--text-secondary);
}

.report-body p { margin: 10px 0; }

/* Blockquote - Warning blocks */
.report-body blockquote {
    margin: 16px 0;
    padding: 16px 24px;
    background: #fffbeb;
    border-left: 4px solid var(--warning);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #92400e;
    font-size: 0.95rem;
}

.report-body blockquote p { margin: 4px 0; }

/* Tables */
.report-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.report-body table thead { background: var(--bg-alt); }

.report-body table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.report-body table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.report-body table tbody tr { transition: background var(--transition); }
.report-body table tbody tr:hover { background: var(--card-hover); }
.report-body table tbody tr:last-child td { border-bottom: none; }

/* Code blocks */
.report-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.85rem;
    font-family: var(--font-mono, monospace);
    line-height: 1.7;
    margin: 16px 0;
    max-height: 400px;
    overflow-y: auto;
    position: relative;
}

.report-body pre.large-code {
    max-height: 200px;
    overflow: hidden;
}

.report-body pre.large-code::after {
    content: "▼ 点击展开完整代码";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50px;
    background: linear-gradient(transparent, #1e293b 80%);
    color: #38bdf8;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    pointer-events: auto;
}

.report-body pre.large-code.expanded { max-height: none; }
.report-body pre.large-code.expanded::after {
    content: "▲ 收起";
    height: 30px;
    padding-bottom: 4px;
}

.report-body code {
    background: var(--bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--danger);
    font-family: var(--font-mono, monospace);
}

.report-body pre code {
    background: none;
    color: #e2e8f0;
    padding: 0;
}

/* Lists */
.report-body ul, .report-body ol {
    margin: 10px 0;
    padding-left: 24px;
}

.report-body li { margin: 6px 0; }

/* HR */
.report-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

/* Strong */
.report-body strong { color: var(--text); }

/* Links */
.report-body a { color: var(--primary); font-weight: 500; }
.report-body a:hover { color: var(--primary-dark); }

/* ================================================================
   ROAST / WARNING SECTIONS
   ================================================================ */
.roast-section {
    margin: 32px 0;
    padding: 32px 36px;
    border-radius: var(--radius-lg);
    border: 2px solid;
    position: relative;
    word-break: break-word;
    overflow-wrap: break-word;
}

.roast-critical {
    background: linear-gradient(135deg, #fff5f5, #fee2e2);
    border-color: #dc2626;
    box-shadow: 0 0 40px rgba(220, 38, 38, 0.15);
}

.roast-critical h2 {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    color: #dc2626 !important;
    text-align: center;
    margin: 0 0 20px !important;
    letter-spacing: 3px;
    border: none !important;
    animation: shake 0.5s ease-in-out;
}

.roast-critical p, .roast-critical strong {
    font-size: 1.05rem !important;
    line-height: 1.9 !important;
    color: #991b1b !important;
}

.roast-warning {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #f59e0b;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}

.roast-warning h2 {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #d97706 !important;
    text-align: center;
    margin: 0 0 16px !important;
    border: none !important;
}

.roast-warning p, .roast-warning strong {
    font-size: 1rem !important;
    color: #92400e !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 50%, 90% { transform: translateX(-4px); }
    30%, 70% { transform: translateX(4px); }
}

/* ================================================================
   REPORT HEADER
   ================================================================ */
.report-main-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    margin: 16px 0 4px;
    text-align: center;
}

.report-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 24px;
}

/* ================================================================
   TRUNCATE NOTICE
   ================================================================ */
.truncate-notice {
    margin: 16px 0;
    padding: 14px 20px;
    background: #fefce8;
    border: 2px solid #facc15;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: #854d0e;
    line-height: 1.7;
}

.truncate-notice strong { color: #ca8a04; font-size: 0.95rem; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .report-body {
        padding: 24px 16px;
        font-size: 0.95rem;
    }

    .report-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.8rem;
    }

    .report-body pre {
        padding: 14px;
        font-size: 0.75rem;
    }

    .report-body h1 { font-size: 1.35rem !important; }
    .report-body h2 { font-size: 1.15rem !important; }
    .report-body h3 { font-size: 1rem !important; }

    .roast-critical h2 { font-size: 1.5rem !important; }
    .roast-warning h2 { font-size: 1.3rem !important; }
    .roast-section { padding: 20px 16px; }

    .report-main-title { font-size: 1.35rem !important; }
    .report-meta { flex-direction: column; align-items: flex-start; gap: 8px; }

    .site-header .container { flex-direction: column; gap: 8px; }
    .site-header nav { flex-wrap: wrap; justify-content: center; }
}
