:root {
    --report-bg: #f4f7fb;
    --report-card: #ffffff;
    --report-line: #dbe3ee;
    --report-text: #18212f;
    --report-muted: #627288;
    --report-primary: #0f6bff;
    --report-primary-soft: rgba(15, 107, 255, 0.12);
    --report-success: #1d8a5b;
    --report-success-soft: rgba(29, 138, 91, 0.12);
    --report-warn: #c26a1b;
    --report-warn-soft: rgba(194, 106, 27, 0.12);
    --report-failed: #d14444;
    --report-failed-soft: rgba(209, 68, 68, 0.12);
    --report-shadow: 0 18px 42px rgba(27, 52, 87, 0.08);
    --report-radius: 20px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--report-text);
    background:
        radial-gradient(circle at top left, rgba(15, 107, 255, 0.12), transparent 30%),
        linear-gradient(180deg, #f8fbff, #f1f5fa);
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body[data-tone="success"] {
    background: #f6f8fa;
}

body[data-tone="failed"] {
    background:
        radial-gradient(circle at top right, rgba(209, 68, 68, 0.12), transparent 30%),
        linear-gradient(180deg, #fff7f7, #f4f7fb);
}

.report-page {
    width: min(1240px, calc(100% - 24px));
    margin: 0 auto;
    padding: 16px 12px 24px;
}

.report-card {
    background: var(--report-card);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--report-radius);
    box-shadow: var(--report-shadow);
}

.report-chip,
.report-pill,
.report-lang-btn,
.report-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
}

.report-chip {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 12px;
    color: var(--report-primary);
    background: var(--report-primary-soft);
}

.report-chip.success {
    color: var(--report-success);
    background: var(--report-success-soft);
}

.report-chip.failed {
    color: var(--report-failed);
    background: var(--report-failed-soft);
}

.report-title {
    margin: 14px 0 10px;
    font-size: clamp(24px, 8vw, 40px);
    line-height: 1.12;
}

.report-subtitle {
    margin: 0;
    color: var(--report-muted);
    font-size: 14px;
    line-height: 1.75;
}

.report-label {
    display: block;
    margin-bottom: 8px;
    color: var(--report-muted);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.report-strong {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.report-strong.metric {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.report-strong.metric-sm {
    font-size: 18px;
}

.report-section-title {
    margin: 0 0 14px;
    font-size: 18px;
}

.report-section-desc {
    margin: -4px 0 16px;
    color: var(--report-muted);
    font-size: 13px;
    line-height: 1.7;
}

.report-facts,
.report-kv-grid,
.report-tags,
.report-raw-panel {
    display: grid;
    gap: 12px;
}

.report-fact,
.report-kv,
.report-note,
.report-raw-panel {
    padding: 14px;
    border-radius: 14px;
    background: #f6f9fc;
    border: 1px solid #e5edf6;
}

.report-kv small {
    display: block;
    margin-bottom: 6px;
    color: var(--report-muted);
    font-size: 12px;
}

.report-tag {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid var(--report-line);
    border-radius: 10px;
    background: #ffffff;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.report-action {
    min-height: 40px;
    padding: 10px 14px;
    border: 1px solid var(--report-line);
    background: #ffffff;
    color: var(--report-text);
    cursor: pointer;
    text-decoration: none;
}

.report-action.primary {
    border-color: transparent;
    background: var(--report-primary);
    color: #ffffff;
}

.report-action:disabled {
    cursor: default;
    opacity: 0.7;
}

.report-hidden {
    display: none !important;
}

.report-raw {
    margin: 0;
    padding: 18px;
    border-radius: 16px;
    background: #101827;
    color: #f9fbff;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.report-empty {
    padding: 14px;
    border: 1px dashed var(--report-line);
    border-radius: 14px;
    color: var(--report-muted);
    background: rgba(255, 255, 255, 0.75);
}

.claim-parts-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    table-layout: fixed;
    font-size: 12px;
}

.claim-parts-table th,
.claim-parts-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e8edf3;
    text-align: left;
    vertical-align: middle;
}

.claim-parts-table th {
    color: #536173;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    background: transparent;
}

.claim-parts-table td {
    color: #334155;
    font-weight: 600;
    line-height: 1.45;
}

.claim-parts-table th:nth-child(1),
.claim-parts-table td:nth-child(1) {
    width: 58%;
}

.claim-parts-table th:nth-child(2),
.claim-parts-table td:nth-child(2) {
    width: 24%;
}

.claim-parts-table th:nth-child(3),
.claim-parts-table td:nth-child(3) {
    width: 18%;
    text-align: center;
}

.report-glossary {
    display: grid;
    gap: 10px;
}

.report-glossary h3,
.report-glossary .report-section-title {
    margin: 0;
    color: #172033;
    font-size: 17px;
    line-height: 1.35;
}

.report-glossary dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.report-glossary dl > div {
    display: grid;
    gap: 5px;
    padding: 10px 0;
    border-top: 1px solid #e4eaf1;
}

.report-glossary dt {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.report-glossary dd {
    margin: 0;
    color: #536173;
    font-size: 13px;
    line-height: 1.6;
}

.single-report-page {
    width: min(980px, calc(100% - 24px));
    padding: 18px 0 32px;
}

.single-report {
    display: grid;
    gap: 0;
    background: #ffffff;
    border: 1px solid #d8e0ea;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    color: #172033;
}

.single-report > section + section {
    border-top: 1px solid #d8e0ea;
}

.single-report .report-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
}

.single-report .report-title {
    margin: 0;
    color: #172033;
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: 0;
}

.single-report .report-subtitle {
    margin: 8px 0 0;
    color: #536173;
    font-size: 14px;
    line-height: 1.55;
}

.single-report .report-label {
    margin-bottom: 5px;
    color: #617188;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
}

.single-report .report-strong {
    color: #172033;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.single-report .report-strong.metric {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.25;
}

.single-report .report-strong.metric-sm {
    font-size: 13px;
}

.single-report .report-section-title {
    margin: 0;
    color: #172033;
    font-size: 17px;
    line-height: 1.35;
    letter-spacing: 0;
}

.single-report .report-section-desc {
    margin: 5px 0 0;
    color: #617188;
    font-size: 13px;
    line-height: 1.55;
}

.single-report .report-fact,
.single-report .report-kv,
.single-report .report-note {
    padding: 10px 0;
    border: 0;
    border-top: 1px solid #edf1f5;
    border-radius: 0;
    background: transparent;
}

@media (min-width: 720px) {
    .report-page {
        width: min(1240px, calc(100% - 32px));
        padding-left: 16px;
        padding-right: 16px;
    }

    .report-kv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 430px) {
    .single-report-page {
        width: 100%;
        padding-top: 0;
    }

    .single-report {
        border-left: 0;
        border-right: 0;
        box-shadow: none;
    }

    .single-report .report-title {
        font-size: 27px;
        line-height: 1.14;
    }
}
