:root {
    --foreign-blue: #315db8;
    --foreign-blue-dark: #10284f;
    --foreign-blue-soft: #edf4ff;
    --foreign-line: #d8e2f0;
    --foreign-muted: #657690;
    --foreign-bg: #edf3f9;
    --foreign-green: #13996f;
}
* { box-sizing: border-box; }
body.foreign-report-detail-page {
    margin: 0;
    color: var(--foreign-blue-dark);
    background: var(--foreign-bg);
    font-family: Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.foreign-detail-shell { width: 100%; min-height: calc(100vh - 74px); }
.foreign-reader-card { width: 100%; min-height: calc(100vh - 74px); }
.foreign-reader-toolbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 132px;
    padding: 22px clamp(24px, 3.2vw, 64px);
    color: #fff;
    background: linear-gradient(115deg, #173a78 0%, #315db8 55%, #284c98 100%);
    box-shadow: 0 12px 32px rgba(24, 54, 105, .16);
}
.foreign-reader-heading { min-width: 0; flex: 1; }
.foreign-back { display: inline-flex; margin-bottom: 10px; color: #dbe8ff; font-size: 14px; text-decoration: none; }
.foreign-back:hover { color: #fff; text-decoration: underline; }
.foreign-reader-heading h1 {
    max-width: 1050px;
    margin: 0;
    color: #fff;
    font-size: clamp(23px, 2.1vw, 38px);
    line-height: 1.22;
    letter-spacing: -.025em;
}
.foreign-detail-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
    margin-top: 12px; color: #dbe8ff; font-size: 13px;
}
.foreign-detail-meta span { position: relative; }
.foreign-detail-meta span + span::before {
    position: absolute; left: -11px; top: 50%; width: 3px; height: 3px;
    border-radius: 50%; background: #98b7f1; content: ""; transform: translateY(-50%);
}
.foreign-reader-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; max-width: 590px; }
.foreign-reader-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 42px; padding: 0 17px; border: 1px solid rgba(255,255,255,.45);
    border-radius: 9px; color: #fff; background: rgba(255,255,255,.08);
    font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.foreign-reader-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.foreign-reader-action:hover { background: rgba(255,255,255,.16); }
.foreign-reader-action:disabled { opacity: .55; cursor: wait; }
.foreign-reader-primary { color: #244e9f; border-color: #fff; background: #fff; }
.foreign-reader-primary:hover { background: #edf4ff; }
.foreign-reader-state, .foreign-pdf-section {
    width: min(1180px, calc(100% - 40px)); margin: 30px auto;
}
.foreign-reader-state {
    display: flex; min-height: 260px; flex-direction: column; align-items: center;
    justify-content: center; gap: 10px; padding: 40px; border: 1px solid var(--foreign-line);
    border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(31, 57, 94, .06);
}
.foreign-reader-state strong { font-size: 21px; }
.foreign-reader-state span { color: var(--foreign-muted); }
.foreign-reader-state button, .foreign-pdf-state button {
    padding: 10px 18px; border: 0; border-radius: 8px; color: #fff;
    background: var(--foreign-blue); font-weight: 700; cursor: pointer;
}
.foreign-reader-state.is-brief { display: block; min-height: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
.foreign-brief-card {
    overflow: hidden; border: 1px solid var(--foreign-line); border-radius: 16px;
    background: #fff; box-shadow: 0 8px 28px rgba(31, 57, 94, .06);
}
.foreign-brief-heading {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
    padding: 26px 30px 20px; border-bottom: 1px solid #e5edf7;
}
.foreign-brief-eyebrow, .foreign-pdf-eyebrow {
    display: block; margin-bottom: 8px; color: var(--foreign-blue);
    font-size: 12px; font-weight: 800; letter-spacing: .14em;
}
.foreign-brief-heading h2, .foreign-pdf-heading h2 { margin: 0; color: var(--foreign-blue-dark); font-size: 24px; }
.foreign-brief-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.foreign-brief-badge {
    display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
    border: 1px solid #c5d8fa; border-radius: 999px; color: #315db8;
    background: #f2f7ff; font-size: 12px; font-weight: 750;
}
.foreign-brief-note {
    margin: 20px 30px 0; padding: 14px 16px; border-left: 3px solid var(--foreign-blue);
    color: #4e617d; background: #f5f8fc; font-size: 14px; line-height: 1.65;
}
.foreign-brief-translation-note { margin: 12px 30px 0; color: #7b5b13; font-size: 13px; }
.foreign-brief-body-wrap { position: relative; max-height: 220px; overflow: hidden; padding: 24px 30px 8px; }
.foreign-brief-body-wrap::after {
    position: absolute; right: 0; bottom: 0; left: 0; height: 88px; content: "";
    background: linear-gradient(transparent, #fff);
}
.foreign-brief-card.is-expanded .foreign-brief-body-wrap { max-height: none; }
.foreign-brief-card.is-expanded .foreign-brief-body-wrap::after { display: none; }
.foreign-brief-body {
    color: #273b5d; font-family: Georgia, "Times New Roman", serif;
    font-size: 16px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere;
}
.foreign-brief-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 30px 26px; }
.foreign-brief-actions button {
    min-height: 40px; padding: 0 16px; border: 1px solid #cbd8e9; border-radius: 8px;
    color: #244e9f; background: #fff; font-weight: 700; cursor: pointer;
}
.foreign-brief-actions .foreign-brief-continue { color: #fff; border-color: var(--foreign-blue); background: var(--foreign-blue); }
.foreign-pdf-section {
    overflow: hidden; border: 1px solid var(--foreign-line); border-radius: 16px;
    background: #fff; box-shadow: 0 8px 28px rgba(31, 57, 94, .06);
}
.foreign-pdf-heading {
    display: flex; justify-content: space-between; gap: 20px; padding: 26px 30px;
    border-bottom: 1px solid var(--foreign-line);
}
.foreign-pdf-heading p { max-width: 760px; margin: 8px 0 0; color: var(--foreign-muted); line-height: 1.6; }
.foreign-pdf-file-label {
    align-self: flex-start; padding: 8px 12px; border-radius: 999px;
    color: #315db8; background: #edf4ff; font-size: 12px; font-weight: 800;
}
.foreign-pdf-state {
    display: flex; min-height: 220px; flex-direction: column; align-items: center;
    justify-content: center; gap: 10px; padding: 32px; text-align: center;
}
.foreign-pdf-state span { max-width: 560px; color: var(--foreign-muted); }
.foreign-pdf-container { width: min(100%, 1050px); margin: 0 auto; padding: 24px; background: #dfe7f0; }
.foreign-pdf-container canvas { display: block; margin: 0 auto 22px; background: #fff; box-shadow: 0 5px 20px rgba(0,0,0,.15); }
.foreign-pdf-loading { padding: 20px; color: var(--foreign-muted); text-align: center; background: #f5f8fc; cursor: pointer; }
.event-loader { width: 32px; height: 32px; border: 3px solid #dbe6f5; border-top-color: var(--foreign-blue); border-radius: 50%; animation: foreign-spin .8s linear infinite; }
@keyframes foreign-spin { to { transform: rotate(360deg); } }
@media (max-width: 980px) {
    .foreign-reader-toolbar { align-items: flex-start; flex-direction: column; }
    .foreign-reader-actions { justify-content: flex-start; max-width: none; }
}
@media (max-width: 640px) {
    .foreign-reader-toolbar { min-height: 0; padding: 18px 16px 20px; }
    .foreign-reader-heading h1 { font-size: 23px; }
    .foreign-reader-actions { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foreign-reader-action { padding: 0 10px; }
    .foreign-reader-state, .foreign-pdf-section { width: calc(100% - 24px); margin: 18px auto; }
    .foreign-brief-heading, .foreign-pdf-heading { flex-direction: column; padding: 22px 18px 16px; }
    .foreign-brief-badges { justify-content: flex-start; }
    .foreign-brief-note, .foreign-brief-translation-note { margin-right: 18px; margin-left: 18px; }
    .foreign-brief-body-wrap { padding: 20px 18px 6px; }
    .foreign-brief-actions { padding: 14px 18px 22px; }
    .foreign-pdf-container { padding: 10px; }
}
