/* ═══════════════════════════════════════
   Report — Editorial Magazine Reading
   ═══════════════════════════════════════ */

/* ── Reading Progress ── */
.reading-bar {
    position: fixed; top: 0; left: 0; height: 2px;
    background: var(--accent);
    z-index: 200; transition: width .12s;
}

/* ── Layout ── */
.report-layout { display: flex; gap: 48px; max-width: 1000px; margin: 0 auto; }
.report-main { flex: 1; min-width: 0; max-width: 680px; }
.report-sidebar { width: 200px; flex-shrink: 0; padding-top: 12px; }

/* ── Floating ToC ── */
.toc { position: sticky; top: 80px; }
.toc-title { font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; letter-spacing: .3px; }
.toc-item { display: block; padding: 5px 0; font-size: 12px; color: var(--text-muted); cursor: pointer; transition: all .2s; border-bottom: 1px solid transparent; }
.toc-item:hover { color: var(--text); border-bottom-color: var(--border); }
.toc-item.active { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }

/* ── Report Header — Magazine Style ── */
.r-header { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.r-title { font-family: 'Playfair Display', 'Noto Serif SC', serif; font-size: 2.5rem; font-weight: 800; letter-spacing: -.8px; line-height: 1.15; margin-bottom: 16px; color: var(--text); }
.r-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.r-meta .pill { font-size: 11px; padding: 4px 12px; }
.r-submeta { font-size: 13px; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; font-style: italic; }

/* ── Drop cap disabled for CJK compatibility ── */

/* ── Doc Type Banner ── */
.doctype-banner {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: #f0f9ff; border: 1px solid #bae6fd;
    border-radius: var(--radius-md); padding: 12px 20px; margin-bottom: 24px;
    font-size: 13px; font-weight: 600; color: #0369a1;
}

/* ── 诚实披露横幅（全员可见）── */
.disclosure-banner {
    display: flex; align-items: flex-start; gap: 10px;
    background: #fffbeb; border: 1px solid #fde68a;
    border-radius: var(--radius-md); padding: 12px 18px; margin-bottom: 24px;
    font-size: 13px; line-height: 1.6; color: #92400e;
}
.disclosure-banner .disc-ic { flex: 0 0 auto; }

/* ── 数据核对表（交叉验证，全员可见）── */
.recon-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 36px;
    box-shadow: var(--shadow-sm);
}
.recon-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.recon-head strong { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--text); }
.recon-sum { font-size: 12px; color: var(--text-secondary); }
.recon-src { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; word-break: break-word; }
.recon-table-wrap { overflow-x: auto; }
.recon-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.recon-table th, .recon-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.recon-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); font-weight: 600; }
.recon-table td { color: var(--text-secondary); }
.recon-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.rb-ok { background: #d1fae5; color: #065f46; }
.rb-minor { background: #fffbeb; color: #92400e; }
.rb-bad { background: #fef2f2; color: #991b1b; }
.qg-info strong { color: var(--text); font-family: 'Playfair Display', serif; font-size: 16px; }

/* ── Company Card ── */
.co-card {
    background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 36px;
}
.co-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.co-name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; }
.co-metrics { display: flex; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.co-metric { text-align: center; }
.co-metric .val { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--text); }
.co-metric .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

/* ── Analysis Sections — Magazine Paragraphs ── */
.analysis-section {
    margin-bottom: 40px;
    position: relative;
    animation: fadeUp .6s var(--ease-out) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.analysis-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; font-weight: 700;
    margin-bottom: 20px; color: var(--text);
    position: relative; padding-bottom: 14px;
}
.analysis-section h3::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 48px; height: 2px;
    background: var(--accent);
}

.analysis-text {
    font-size: 16px; line-height: 1.9; color: var(--text-secondary);
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    column-gap: 32px;
}

/* First paragraph = lead (larger, darker) */
.analysis-text p:first-of-type {
    font-size: 17.5px;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 24px;
}

/* Normal paragraphs */
.analysis-text p {
    margin-bottom: 16px;
    max-width: 640px;
}

/* Strong text = data points highlighted */
.analysis-text strong {
    color: var(--accent);
    font-weight: 600;
}

/* Horizontal rule between logical sections */
.analysis-text hr {
    border: none; border-top: 1px solid var(--border);
    margin: 32px 0;
    max-width: 120px;
}

/* Number callout box */
.analysis-text blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 100%);
    border-left: 3px solid var(--accent);
    font-family: 'Playfair Display', serif;
    font-size: 17px; line-height: 1.55;
    color: var(--text); font-style: italic;
    position: relative;
}
.analysis-text blockquote::before {
    content: '\201C';
    position: absolute; top: -16px; left: 8px;
    font-size: 48px; color: var(--accent);
    font-family: 'Playfair Display', serif;
    opacity: .15;
}

/* Bullet lists */
.analysis-text ul, .analysis-text ol {
    margin: 16px 0 20px 20px;
    list-style: none;
}
.analysis-text ul li, .analysis-text ol li {
    position: relative;
    padding: 6px 0 6px 20px;
    margin-bottom: 6px;
    line-height: 1.6;
}
.analysis-text ul li::before {
    content: '';
    position: absolute; left: 0; top: 13px;
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: .5;
}
.analysis-text ol { counter-reset: item; }
.analysis-text ol li::before {
    counter-increment: item;
    content: counter(item);
    position: absolute; left: 0; top: 4px;
    font-size: 11px; font-weight: 700;
    color: var(--accent); opacity: .7;
}

/* Section dividers */
.analysis-section + .analysis-section {
    padding-top: 8px;
}

/* Alternating background tint (light) */
.analysis-section:nth-child(even) {
    background: linear-gradient(90deg, #fafaf9 0%, transparent 60%);
    margin-left: -16px; margin-right: -16px;
    padding-left: 16px; padding-right: 16px;
    border-radius: var(--radius-md);
}

/* ── Table styling (inside analysis) ── */
.analysis-text table {
    width: 100%; border-collapse: collapse;
    margin: 20px 0; font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
/* 移动端：表格横向滚动 */
@media (max-width: 768px) {
    .analysis-text table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        font-size: 12px;
    }
    .analysis-text th,
    .analysis-text td {
        padding: 6px 10px;
        white-space: nowrap;
    }
}
.analysis-text th {
    background: var(--bg); padding: 10px 14px;
    text-align: left; font-weight: 600; font-size: 11px;
    text-transform: uppercase; letter-spacing: .3px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}
.analysis-text td {
    padding: 8px 14px; border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}
.analysis-text tr:last-child td { border-bottom: none; }

/* Source badge */
.src-badge {
    display: inline-block; font-size: 10px; font-weight: 500;
    padding: 2px 7px; border-radius: 4px;
    background: var(--border-light); color: var(--text-muted);
    cursor: pointer; transition: all .15s;
    margin-left: 2px; vertical-align: middle;
    font-style: normal;
}
.src-badge:hover { background: var(--accent); color: #fff; }

/* Pull quote style */
.analysis-text blockquote, .analysis-text p strong:only-child {
    display: block;
    margin: 24px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fafaf9, #f5f5f4);
    border-left: 3px solid var(--accent);
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.5;
    color: var(--text);
    font-style: italic;
}

/* ── Charts Toggle ── */
.charts-toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 18px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); cursor: pointer;
    font-size: 14px; font-weight: 500; color: var(--text-secondary);
    transition: all .15s; margin-bottom: 20px;
    user-select: none; font-family: 'Inter', sans-serif;
}
.charts-toggle:hover { border-color: var(--accent); color: var(--accent); }
.charts-toggle.open { border-radius: var(--radius-md) var(--radius-md) 0 0; margin-bottom: 0; }
.charts-toggle .arrow { transition: transform .25s; }
.charts-toggle.open .arrow { transform: rotate(180deg); }

.charts-body { display: none; }
.charts-body.open {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
    padding: 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-top: none; border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-bottom: 20px;
}
.vibe-layout {
    padding: 24px 28px;
    font-size: 13px; line-height: 1.8; color: var(--text-secondary);
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.vibe-layout h3 { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 12px; color: var(--text); grid-column: 1/-1; }
.vibe-layout strong { color: var(--text); font-weight: 600; font-size: 14px; }
.vibe-layout ul { list-style: none; padding: 0; margin: 4px 0 16px; }
.vibe-layout li { padding: 4px 0; border-bottom: 1px solid var(--border-light); }
.vibe-layout li:last-child { border-bottom: none; }
.vibe-layout hr { border: none; border-top: 1px solid var(--border); grid-column: 1/-1; }
.vibe-layout p { margin: 0; }
@media (max-width: 600px) { .vibe-layout { grid-template-columns: 1fr; } }

/* ── Source Popup ── */
.src-popup {
    position: fixed; z-index: 300; max-width: 260px;
    background: var(--text); color: #fff; padding: 8px 12px;
    border-radius: 6px; font-size: 12px; line-height: 1.5;
    pointer-events: none; opacity: 0; transition: opacity .12s;
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.src-popup.show { opacity: 1; }

/* ── Collapsible ── */
.collapsible { margin-bottom: 16px; font-family: 'Inter', sans-serif; }
.collapsible summary {
    cursor: pointer; font-size: 14px; font-weight: 500;
    padding: 10px 14px; border-radius: var(--radius-sm);
    color: var(--text-secondary); background: var(--bg);
    transition: all .15s;
}
.collapsible summary:hover { color: var(--accent); background: var(--accent-light); }
.collapsible .content { padding: 16px; font-size: 14px; line-height: 1.8; color: var(--text-secondary); }

/* ── Action Bar ── */
.action-bar {
    display: flex; gap: 10px; justify-content: center;
    padding: 40px 0; border-top: 1px solid var(--border);
    margin-top: 40px;
}

/* ── Mobile ToC (visible below 900px) ── */
.mobile-toc { display: none; margin-bottom: 24px; }
.mobile-toc summary {
    padding: 12px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-md); color: var(--text);
    list-style: none;
}
.mobile-toc summary::-webkit-details-marker { display: none; }
.mobile-toc .toc-links { padding: 12px 18px; display: flex; flex-direction: column; gap: 6px; }
.mobile-toc .toc-links a {
    font-size: 13px; color: var(--text-secondary); text-decoration: none;
    padding: 10px 0; min-height: 44px; display: flex; align-items: center;
    border-bottom: 1px solid var(--border-light);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .report-sidebar { display: none; }
    .mobile-toc { display: block; }
    .r-title { font-size: 1.75rem; }
    .report-layout { gap: 0; }
    .report-main { max-width: none; padding: 0 16px; }
}
@media (max-width: 600px) {
    .r-title { font-size: 1.5rem; }
    .charts-body.open { grid-template-columns: 1fr; }
    .co-metrics { gap: 10px; }
    .co-metric .val { font-size: 16px; }
    .analysis-text { font-size: 15px; line-height: 1.8; }
}
@media (max-width: 480px) {
    .r-title { font-size: 1.3rem; }
    .r-header { padding-bottom: 16px; }
    .action-bar { flex-direction: column; align-items: center; gap: 8px; }
}

/* ── Social Image Gallery V2 ── */
.social-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    max-width: 1000px;
    margin: 0 auto;
}
.social-thumb {
    text-align: center;
    transition: transform 0.2s;
}
.social-thumb:hover {
    transform: translateY(-2px);
}
.social-thumb img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}
.social-thumb:hover img {
    border-color: var(--accent, #7B9EC7);
}
.social-thumb span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}
@media (max-width: 600px) {
    .social-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    .social-thumb img {
        max-height: 120px;
    }
}
