/* 延续盐场战报的浅色背景、白色分区、蓝色标题和表格。 */
.camp-report {
    --report-blue: #3b82f6; --report-heading: #1e3a8a; --report-muted: #64748b;
    --report-border: #e2e8f0;
    box-sizing: border-box; padding: 20px 14px; border: 1px solid #dbeafe; border-radius: 12px;
    color: #334155; background: linear-gradient(180deg, #f0f9ff, #e0f2fe);
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, "Segoe UI", sans-serif;
    line-height: 1.5; text-align: left; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.camp-report *, .camp-report *::before, .camp-report *::after { box-sizing: border-box; }
.camp-report h2, .camp-report h3, .camp-report h4, .camp-report p { margin: 0; }
.camp-report button { font: inherit; cursor: pointer; }
.camp-report button:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.camp-report__title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.camp-report h2 { color: var(--report-heading); font-size: 22px; }
.camp-report__export { border: 1px solid #3b82f6; border-radius: 6px; padding: 6px 12px; background: #fff; color: #2563eb; flex-shrink: 0; font-size: 12px !important; }
.camp-report__export:disabled { opacity: .5; cursor: default; }
.camp-report__meta { font-size: 12px; color: var(--report-muted); margin-top: 6px !important; }
.camp-report__error { color: #dc2626; font-size: 12px; margin-top: 8px !important; }
.camp-report__match { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 16px 12px; background: #fff; border-radius: 10px; margin: 18px 0 14px; }
.camp-report__team { display: flex; gap: 8px; align-items: center; min-width: 0; }
.camp-report__team--opponent { flex-direction: row-reverse; text-align: right; }
.camp-report__team-info { min-width: 0; }
.camp-report__team-info strong { display: block; color: #1e3a8a; font-size: 13px; }
.camp-report__team-info small { display: block; color: var(--report-muted); font-size: 10px; }
.camp-report__avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: #eff6ff; color: #3b82f6; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.camp-report__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camp-report__avatar--small { width: 26px; height: 26px; flex-basis: 26px; font-size: 12px; }
.camp-report__score { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 20px; }
.camp-report__score strong { font-size: 28px; color: #3b82f6; }
.camp-report__score strong:last-child { color: #d97706; }
.camp-report__score span { font-size: 11px; color: var(--report-muted); }
.camp-report__panel { padding: 14px 12px; margin-top: 14px; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgb(0 0 0 / 2%); }
.camp-report__section-title { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.camp-report__section-title h3 { color: var(--report-heading); font-size: 16px; }
.camp-report__section-title > span { color: var(--report-muted); font-size: 11px; }
.camp-report__metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.camp-report__metrics > div { padding: 10px 6px; background: #f8fafc; border-radius: 7px; }
.camp-report__metrics strong { display: block; font-size: 26px; color: #3b82f6; line-height: 1.3; }
.camp-report__metrics small { color: var(--report-muted); font-size: 11px; }
.camp-report__hint { color: var(--report-muted); font-size: 11px; margin: 8px 0 !important; }
.camp-report__notice { margin: 10px 0 !important; padding: 10px; background: #fffbeb; color: #92400e; border-left: 3px solid #f59e0b; border-radius: 6px; font-size: 12px; }
.camp-report__filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.camp-report__filters button { font-size: 11px; color: #475569; padding: 5px 9px; border-radius: 5px; border: 1px solid #e2e8f0; background: #fff; }
.camp-report__filters button[aria-pressed="true"] { background: #eff6ff; color: #2563eb; border-color: #93c5fd; }
.camp-report__table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.camp-report__table th { font-weight: 600; color: #475569; background: #f1f5f9; font-size: 11px; }
.camp-report__table td, .camp-report__table th { padding: 10px 5px; text-align: center; border-bottom: 1px solid #f1f5f9; }
.camp-report__table tbody tr:nth-child(even) { background: #f8fafc; }
.camp-report__table .report-name { text-align: left; width: 46%; }
.camp-report__participation .report-name { width: 40%; }
.camp-report__table .report-number { font-size: 17px; font-weight: 650; color: #3b82f6; }
.camp-report__person { display: flex; align-items: center; gap: 7px; min-width: 0; }
.camp-report__person > div:last-child { min-width: 0; }
.camp-report__person strong { display: block; font-size: 12px; font-weight: 500; word-break: break-word; }
.camp-report__person small { display: block; color: var(--report-muted); font-size: 9px; margin-top: 2px; }
.camp-report__slot { flex: 0 0 19px; color: #94a3b8; font-size: 10px; }
.camp-report__status { display: inline-block; border-radius: 4px; background: #f1f5f9; padding: 2px 5px; color: #64748b; font-size: 10px; white-space: nowrap; }
.camp-report__status--not_started { background: #fff7ed; color: #b45309; }
.camp-report__status--completed { background: #f0fdf4; color: #15803d; }
.camp-report__participation time { display: block; color: #64748b; font-size: 9px; margin-top: 3px; }
.camp-report__zone { margin-top: 14px; }
.camp-report__zone h4 { color: #1e3a8a; font-size: 13px; background: #eff6ff; border-radius: 5px 5px 0 0; padding: 8px 10px; }
.camp-report__zone h4 span { color: var(--report-muted); font-size: 10px; font-weight: 400; margin-left: 10px; }
.camp-report__empty { padding: 20px 10px; text-align: center; color: #64748b; font-size: 12px; }
.camp-report__footer { margin-top: 18px; color: #64748b; font-size: 10px; line-height: 1.7; }
.camp-report__footer time { display: block; margin-top: 6px; }
.camp-report .report-success { color: #16a34a !important; }
.camp-report .report-warning { color: #d97706 !important; }
.camp-report .report-muted { color: #64748b !important; }
.camp-report .report-danger { color: #dc2626 !important; }
.camp-report-tab { padding: 12px; }
.camp-report-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; background: #fff; border-radius: 12px; margin-bottom: 12px; }
.camp-report-toolbar label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #475569; }
.camp-report-toolbar select { border: 1px solid #e2e8f0; border-radius: 5px; background: #fff; padding: 7px; max-width: 150px; }
.camp-report-error { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: #fff7ed; color: #9a4b11; font-size: 13px; overflow-wrap: anywhere; }
.camp-report-empty { padding: 36px 12px; text-align: center; color: #64748b; }
/* 其他战报沿用盐场的表头、正文和浅色统计区。 */
.battle-report-view table { color: #334155; }
.battle-report-view thead { background: #f8fafc !important; color: #475569 !important; }
.battle-report-view tbody tr { border-bottom-color: #f1f5f9 !important; }
.battle-report-view tbody tr:nth-child(even) { background: #f8fafc !important; }
.battle-report-view .report-toolbar { display: flex; flex-wrap: wrap; gap: 10px; }
.battle-report-view .report-toolbar > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 420px) {
    .camp-report-tab { padding: 8px; }
    .camp-report { padding: 16px 8px; }
    .camp-report h2 { font-size: 19px; }
    .camp-report__panel { padding: 12px 8px; }
    .camp-report__metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .camp-report__table td, .camp-report__table th { padding: 9px 3px; }
    .camp-report__participation .report-name { width: 38%; }
    .camp-report__avatar--small { width: 22px; height: 22px; flex-basis: 22px; }
    .camp-report__table .report-number { font-size: 16px; }
    .camp-report__team-info strong { font-size: 12px; }
}

.camp-report__details-toggle { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.camp-report__details-toggle button { padding: 8px 10px; background: #fff; border: 1px solid #cbd5e1; color: #475569; border-radius: 6px; font-size: 12px; }

/* 成员按三路分组，角色标记不占用独立列。 */
.camp-report__table .camp-report__group-divider th { background: #dbeafe; color: #1e3a8a; text-align: left; padding: 7px 8px; border-top: 2px solid #fff; }
.camp-report__group-divider span { margin-left: 10px; font-size: 10px; font-weight: 400; color: #64748b; }
.camp-report__role-mark { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-right: 4px; border-radius: 4px; font-size: 10px; font-weight: 700; vertical-align: 1px; }

/* 子页面独立呈现；保持原我方战况样式，头像在手机上同样显示。 */
.camp-report { container-type: inline-size; }
.camp-report__subtabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; padding: 4px; background: #e2edfa; border-radius: 9px; margin: 14px 0; }
.camp-report__subtabs button { border: 0; border-radius: 6px; padding: 10px 2px; color: #64748b; background: transparent; font-size: 13px; white-space: nowrap; }
.camp-report__subtabs button[aria-selected="true"] { background: #fff; color: #1d4ed8; font-weight: 700; box-shadow: 0 1px 5px #1e3a8a10; }
.camp-report__subpage--opponent .camp-report__group-divider th { background: #fff1e6; }
.camp-report__table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.camp-report__enemy-table { min-width: 600px; }
.camp-report__enemy-table .report-name { width: 31%; }
.camp-report__layout-section { margin-top: 16px; }
.camp-report__layout-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #e6f0fc; margin-bottom: 8px; color: #1e3a8a; }
.camp-report__subpage--opponent .camp-report__layout-heading { background: #fff1e6; }
.camp-report__layout-heading h3 { font-size: 14px; }
.camp-report__layout-heading h3 span { margin-left: 8px; font-size: 11px; font-weight: 400; color: #64748b; }
.camp-report__layout-heading > span { font-size: 10px; color: #64748b; white-space: nowrap; }
.camp-report__layout-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
.camp-report__layout-card { padding: 12px; border: 1px solid #dbeafe; border-radius: 10px; background: #fff; min-width: 0; }
.camp-report__layout-card--empty { background: #f8fafc; border-style: dashed; }
.camp-report__layout-person { display: flex; align-items: center; gap: 8px; }
.camp-report__layout-person .camp-report__avatar { width: 34px; height: 34px; flex-basis: 34px; }
.camp-report__layout-name { flex: 1; min-width: 0; }
.camp-report__layout-name strong { display: block; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.camp-report__layout-name small { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: #64748b; font-size: 10px; margin-top: 4px; }
.camp-report__layout-name small b { font-weight: 500; color: #3b82f6; }
.camp-report__role-label { display: inline-block; padding: 1px 5px; border-radius: 4px; }
.camp-report__layout-score { color: #3b82f6; text-align: right; flex-shrink: 0; font-size: 10px; }
.camp-report__layout-score b { display: block; font-size: 17px; }
.camp-report__layout-metrics { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 5px; padding: 9px 0 7px; margin-top: 8px; border-top: 1px solid #f1f5f9; color: #3b82f6; font-size: 11px; }
.camp-report__layout-metrics span:last-child { text-align: right; }
.camp-report__layout-metrics b { font-weight: 650; }
.camp-report__layout-defense,.camp-report__layout-state { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: #15803d; }
.camp-report__layout-state { color: #64748b; margin-top: 7px; font-size: 10px; }
.camp-report__hp-track { height: 4px; background: #e2e8f0; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.camp-report__hp-track i { display: block; height: 100%; background: #3b82f6; }
.camp-report__layout-empty { padding: 24px 0; font-size: 12px; color: #94a3b8; }
@container (min-width: 480px) { .camp-report__layout-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@container (min-width: 780px) { .camp-report__layout-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:420px) {
    .camp-report__subtabs button { font-size: 11px; }
    .camp-report__person { gap: 4px; }
    .camp-report__layout-heading { padding: 9px 8px; }
    .camp-report__layout-heading h3 span { display: block; margin: 2px 0 0; }
    .camp-report__participation .report-name { width: 42%; }
}

.camp-report__scroll-hint { display: none; font-size: 10px; color: #64748b; margin: 6px 0 !important; }
.camp-report__cell-detail { display: block; font-size: 9px; color: #64748b; margin-top: 3px; }
@container (max-width: 600px) { .camp-report__scroll-hint { display: block; } }

.camp-report__coverage { font-size: 11px; color: #475569; background: #eff6ff; padding: 8px 10px; border-radius: 5px; margin: 8px 0 !important; }
.camp-report__difficulty-records { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; margin-top: 9px; }
.camp-report__difficulty-records > span { display: block; font-size: 9px; border-radius: 4px; padding: 4px; color: #64748b; background: #ecfdf5; }
.camp-report__difficulty-records > span:nth-child(2) { background: #fffbeb; }
.camp-report__difficulty-records > span:nth-child(3) { background: #fff1f2; }
.camp-report__difficulty-records b { display: block; font-weight: 500; margin-top: 1px; }
.camp-report__record-time { font-size: 9px; color: #94a3b8; margin-top: 5px !important; }

.camp-report__status--in_progress { background: #eff6ff; color: #2563eb; }

.camp-report-progress { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 10px; border-radius: 8px; color: #1d4ed8; background: #eff6ff; font-size: 12px; }
