/* report.css — 学习报告 V2（2026-11-24 Amber 设计稿）。全部限定在 .rp2 内，不影响其他页面 */
.rp2 { position: relative; --pu: #6a52ec; --pu2: #8b77fa; --pus: #efecff; --ok: #21b07a; --oks: #e6f6ef; --wa: #f08a24; --was: #fff3e6; --rd: #e5484d; }
.rp2 { font-variant-numeric: tabular-nums; }
.rp2 .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rp2-head { align-items: center; margin-bottom: 6px; }
.rp2-head h1 { display: flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 800; }
.rp2-tag { white-space: nowrap; padding: 3px 10px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--pu); background: var(--pus); }
.rp2-sel select, .rp2-btn { height: 42px; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(70, 60, 160, .08); border: 1px solid var(--line); font-weight: 700; }
.rp2-btn { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; }
.rp2-tabs { gap: 30px; margin: 6px 0 16px; border-bottom: 0; }
.rp2-tabs button { padding: 10px 2px; font-size: 16px; font-weight: 700; color: var(--ink2); }
.rp2-tabs button.is-on { color: #5b45e0; box-shadow: inset 0 -3px 0 var(--pu); }
.rp2-tabs button:not(.is-on):hover { color: var(--ink); }
.rp2-tabs button:focus-visible { outline: 2px solid var(--pu); outline-offset: 2px; border-radius: 4px; }

/* 数据说明条 */
.rp2-key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding: 12px 18px; margin-bottom: 16px; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(70, 60, 160, .06); font-size: 13px; color: var(--ink2); }
.rp2-key__t { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 10px; background: #f3f2fd; color: var(--ink); font-weight: 800; }
.rp2-key__t .ic { color: var(--pu); width: 16px; height: 16px; }
.rp2-key__i { display: inline-flex; align-items: center; gap: 6px; }
.rp2-key__i b { color: var(--ink); margin-right: 4px; }
.rp2-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rp2-dot--exam { background: #6a4cf0; } .rp2-dot--mastery { background: var(--ok); } .rp2-dot--pred { background: #b49cfb; }

/* KPI */
.rp2-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: 16px; row-gap: 0; margin-bottom: 16px; }
.rp2-kpi { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; position: relative; overflow: hidden; min-height: 132px; padding: 18px 20px; border-radius: 20px; background: #fff; border: 1px solid #ebe8fb; box-shadow: 0 8px 24px rgba(70, 60, 160, .07); }
.rp2-kpi--mastery { background: linear-gradient(160deg, #f1fbf6, #fff 70%); border-color: #d7f0e4; }
.rp2-kpi--levels { background: linear-gradient(160deg, #f4f3ff, #fff 70%); }
.rp2-kpi__h { display: flex; align-items: center; gap: 10px; }
.rp2-kpi__h small { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; text-wrap: balance; font-size: 13.5px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.rp2-kpi__ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--pus); color: var(--pu); flex: none; }
.rp2-kpi--mastery .rp2-kpi__ic { background: var(--ok); color: #fff; border-radius: 50%; }
.rp2-kpi__v { display: block; margin: 10px 0 4px; font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.rp2-kpi em { position: relative; z-index: 1; align-self: start; max-width: calc(100% - 64px); font-style: normal; font-size: 13px; line-height: 1.45; color: var(--ink2); }
.rp2-deco { position: absolute; right: 0; bottom: 0; width: 120px; height: 56px; pointer-events: none; }
.rp2-deco--c { right: 12px; bottom: 10px; width: 62px; height: 62px; }

/* 布局 */
.rp2-g2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: stretch; }
.rp2-g2--eq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rp2-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.rp2-c { display: flex; flex-direction: column; padding: 22px 24px; border-radius: 20px; }
.rp2-c > .rp2-pc { flex: 1; }
.rp2-c__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rp2-c__h h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); }
.rp2-c__ic { width: 24px; height: 24px; color: #f5a524; }
.rp2 .einfo summary { width: 18px; height: 18px; font-size: 11px; }
.rp2-chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; border: 1px solid transparent; background: none; font-family: inherit; }
.rp2-chip--exam, .rp2-chip--link { color: var(--pu); background: #f6f4ff; border-color: #e3dcff; }
.rp2-chip--link { cursor: pointer; }
.rp2-chip--link:hover { background: var(--pus); }
.rp2-chip--mastery { color: #138a5c; background: var(--oks); }

/* 各科百分位 */
.rp2-pc { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; align-items: stretch; }
.rp2-pc__rows { list-style: none; margin: 0; padding: 4px 0; display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; gap: 22px 16px; align-content: center; }
.rp2-pc__rows li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; }
.rp2-pc__rows li > b { font-size: 15px; color: var(--ink); }
.rp2-pc__t { position: relative; height: 10px; border-radius: 6px; background: var(--track); }
.rp2-pc__t > b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--c); }
.rp2-pc__b { font-size: 14px; color: var(--ink2); white-space: nowrap; }
.rp2-pc__b--top { color: #138a5c; font-weight: 700; } .rp2-pc__b--low { color: #c2610f; font-weight: 700; }
.rp2-pos { position: relative; overflow: hidden; padding: 18px 18px 0; border-radius: 18px; background: linear-gradient(170deg, #f3f0ff, #faf9ff 70%); border: 1px solid #e7e2ff; min-height: 220px; }
.rp2-pos__h { display: flex; align-items: center; gap: 8px; color: var(--pu); }
.rp2-pos__h b { color: var(--ink); font-size: 16px; }
.rp2-pos__h .ic { width: 22px; height: 22px; }
.rp2-pos__v { display: block; margin: 12px 0 8px; font-size: 30px; font-weight: 800; color: var(--ink); }
.rp2-pos p { position: relative; z-index: 1; margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink2); }
.rp2-peak { display: block; width: 100%; height: 90px; margin-top: 8px; }
#tbl-tg { margin-top: 14px; }

/* 结论与建议 */
.rp2-cl { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rp2-cl__i { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 14px 16px; border-radius: 16px; background: #f6f5fd; }
.rp2-cl__i > .ic { width: 24px; height: 24px; margin-top: 1px; }
.rp2-cl__i b { font-size: 16px; color: var(--ink); }
.rp2-cl__i p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.rp2-cl__i--good { background: var(--oks); } .rp2-cl__i--good > .ic { color: var(--ok); }
.rp2-cl__i--warn { background: var(--was); } .rp2-cl__i--warn > .ic { color: var(--wa); }
.rp2-cl__i--next > .ic { color: var(--pu); }
.rp2-cl__i .btn { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; }
.rp2 .btn--pri { background: linear-gradient(135deg, #8b77fa 0%, #6a4cf0 100%); box-shadow: 0 8px 18px rgba(106, 76, 240, .22); border-radius: 12px; font-weight: 700; color: #fff; }
.rp2 .btn--pri .ic { width: 16px; height: 16px; }
.rp2 .btn--ghost.btn--sm { border-radius: 12px; font-weight: 700; background: #fff; }

/* 对比表 */
.rp2-tbl { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.rp2-tbl th, .rp2-tbl td:first-child { white-space: nowrap; }
.rp2-tbl th { padding: 12px 14px; text-align: left; font-size: 14px; font-weight: 600; color: var(--ink2); border-bottom: 1px solid var(--line); }
.rp2-tbl td { padding: 14px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.rp2-tbl tr:last-child td { border-bottom: 0; }
.rp2-tbl__m { display: grid; grid-template-columns: 3em minmax(80px, 150px); align-items: center; gap: 10px; min-width: 150px; }
.rp2-tbl__m i { display: block; height: 8px; border-radius: 5px; background: var(--track); }
.rp2-tbl__m i b { display: block; height: 100%; border-radius: 5px; background: var(--c); }
.rp2-band { display: inline-block; padding: 4px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--pu); background: var(--pus); }
.rp2-band--top { color: #138a5c; background: var(--oks); } .rp2-band--low { color: #c2610f; background: #ffeedd; }
.rp2-foot { display: flex; align-items: flex-start; gap: 8px; line-height: 1.55; margin: 14px 0 0; font-size: 13px; color: var(--ink2); }
.rp2-foot .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.rp2-foot--c { justify-content: center; margin: 4px 0 16px; }

/* 学科卡（学科分析 / 掌握情况 / 提升建议共用） */
.rp2-sa, .rp2-mc, .rp2-ac { display: flex; flex-direction: column; position: relative; overflow: hidden; padding: 20px 22px; border-radius: 20px; border: 1px solid var(--bc, #e5e2fb); border-top: 3px solid var(--c); background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 55%, #fff), #fff 120px); }
.rp2-sa__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.rp2-sa__h h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); }
.rp2-sa__h .sicon { border-radius: 11px; }
.rp2-sa__k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.rp2-sa__k > div { padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid #eeecf9; }
.rp2-sa__k small { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink2); }
.rp2-sa__k b { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 24px; font-weight: 800; color: var(--ink); }
.rp2-sa__k .rp2-sa__p { background: linear-gradient(135deg, #f1edff, #e9e3ff); border-color: #e0d8ff; }
.rp2-sa__p small { color: #5b45e0; font-weight: 700; }
.rp2-sa__p b { color: #4f39d6; } .rp2-sa__p b .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.rp2-sa__b { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 12px; align-items: center; }
.rp2-sa__b--one { grid-template-columns: minmax(0, 1fr); }
.rp2-sa__bars { padding-left: 14px; border-left: 1px solid var(--line); }
.rp2-sa__b--one .rp2-sa__bars { padding-left: 0; border-left: 0; }
.rp2-sa__bars h3 { display: flex; align-items: center; gap: 4px; margin: 0 0 8px; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.rp2-sa__bars h3 .tip .ic { width: 15px; height: 15px; color: var(--muted); cursor: help; }
.rp2-rd { display: block; width: 100%; height: auto; overflow: visible; }
.rp2-rd__g { fill: none; stroke: #e6e4f3; stroke-width: 1; }
.rp2-rd__a { stroke: #eceaf6; stroke-width: 1; }
.rp2-rd__c { fill: none; stroke: #9aa0bd; stroke-width: 1.4; stroke-dasharray: 4 3; }
.rp2-rd__l { font-size: 15px; fill: var(--ink2); }
.rp2-db { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.rp2-db__r { display: grid; grid-template-columns: minmax(0, 10.5em) minmax(0, 1fr) 38px; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); }
.rp2-db__n { line-height: 1.25; overflow-wrap: anywhere; }
.rp2-db__t { position: relative; height: 8px; border-radius: 5px; background: var(--track); }
.rp2-db__t > b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: #8f95b3; }
.rp2-db__t > s { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: #4b5175; text-decoration: none; }
.rp2-db__r--up b { background: var(--ok); } .rp2-db__r--down b { background: var(--wa); } .rp2-db__r--eq b { background: #8f95b3; }
.rp2-db__r em { font-style: normal; text-align: right; color: var(--ink); font-weight: 600; }
.rp2-db__lg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.rp2-db__lg span { display: inline-flex; align-items: center; gap: 4px; }
.rp2-db__k { width: 10px; height: 6px; border-radius: 3px; } .rp2-db__k--up { background: var(--ok); } .rp2-db__k--eq { background: #8f95b3; } .rp2-db__k--down { background: var(--wa); }
.rp2-db__lg s { width: 2px; height: 10px; background: #4b5175; border-radius: 1px; }
.rp2-sa > .rp2-find, .rp2-ac > .rp2-find { margin-top: auto !important; }
.rp2-sa__b, .rp2-ac__l { margin-bottom: 14px; }
.rp2-sa > .rp2-sa__b { flex: 1; }
.rp2-find { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: #f6f5fd; font-size: 13.5px; color: var(--ink2); line-height: 1.5; }
.rp2-find .ic { color: var(--pu); width: 18px; height: 18px; }
.rp2-find b { color: var(--pu); margin-right: 6px; flex: none; }
.rp2-sa__none { margin: 6px 0 0; }

/* 掌握情况 */
.rp2-sum { display: grid; grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(0, .9fr)) minmax(0, 1.25fr); align-items: center; gap: 0; padding: 18px 22px; border-radius: 20px; margin-bottom: 16px; }
.rp2-sum > div { display: flex; align-items: center; gap: 12px; padding: 0 18px; }
.rp2-sum > div + div { border-left: 1px solid var(--line); }
.rp2-sum__main { padding-left: 0 !important; }
.rp2-sum__main > div { flex: 1; display: grid; gap: 6px; }
.rp2-sum__main b { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 800; color: var(--ink); }
.rp2-sum__main b .tip .ic { width: 15px; height: 15px; color: var(--muted); cursor: help; }
.rp2-sum__main small { font-size: 12.5px; color: var(--ink2); }
.rp2-sum__main strong { font-size: 26px; font-weight: 800; color: var(--ink); }
.rp2-sum__bar { display: block; height: 10px; border-radius: 6px; background: var(--track); }
.rp2-sum__bar b { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #8b77fa, #6a4cf0); }
.rp2-sum__s small { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink2); line-height: 1.3; }
.rp2-sum__s b { display: flex; align-items: baseline; gap: 8px; font-size: 26px; font-weight: 800; color: var(--ink); }
.rp2-sum__subj { font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink2); }
.rp2-sum__s small { text-wrap: balance; }
.rp2-mc { min-height: 220px; }
.rp2-mc__lv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; font-size: 13.5px; color: var(--ink2); margin-bottom: 16px; }
.rp2-mc__lv > span { grid-column: 1 / -1; }
.rp2-mc__bar { display: block; height: 8px; border-radius: 5px; background: color-mix(in srgb, var(--sc) 80%, #e9e9f5); }
.rp2-mc__bar b { display: block; height: 100%; border-radius: 5px; background: var(--c); }
.rp2-mc__lv > b { color: var(--ink); }
.rp2-mc__k { display: grid; grid-template-columns: 1fr 1fr; gap: 0; position: relative; z-index: 1; max-width: calc(100% - 64px); }
.rp2-mc__k > div { display: grid; grid-template-columns: 20px 1fr; column-gap: 6px; align-items: center; padding-right: 14px; }
.rp2-mc__k > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.rp2-mc__k .ic { width: 17px; height: 17px; color: var(--ink2); }
.rp2-mc__k small { font-size: 13px; color: var(--ink2); line-height: 1.3; }
.rp2-mc__k b { grid-column: 1 / -1; padding-left: 4px; margin-top: 4px; font-size: 22px; font-weight: 800; color: var(--ink); }
.rp2-mc__list { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; max-width: calc(100% - 70px); }
.rp2 .mlist.rp2-mc__list li { display: inline-flex; padding: 0; border: 0; }
.rp2-mc__kp { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 10px; border: 1px solid #d7f0e4; background: var(--oks); color: #138a5c; font: inherit; font-size: 12.5px; cursor: pointer; }
.rp2-mc__kp .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.rp2-mc__kp:hover { background: #d9f2e6; border-color: #b8e6d0; }
.rp2-mini { position: absolute; right: 14px; bottom: 12px; width: 66px; height: 66px; pointer-events: none; }
.rp2-mini .k { fill: none; stroke: var(--c, #6a52ec); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .72; }
.rp2-mini .f { fill: color-mix(in srgb, var(--c, #6a52ec) 14%, #fff); }
.rp2-mini .f.k { fill: color-mix(in srgb, var(--c, #6a52ec) 14%, #fff); }
.rp2-mini .p { fill: #fff; }

/* 提升建议 */
.rp2-ac__g { display: inline-flex; align-items: baseline; gap: 8px; padding: 5px 14px; border-radius: 14px; background: #f1edff; }
.rp2-ac__g small { font-size: 13px; font-weight: 700; color: #5b45e0; }
.rp2-ac__g b { font-size: 24px; font-weight: 800; color: #4f39d6; }
.rp2-ac__l { list-style: none; margin: 0; padding: 0; }
.rp2-ac__l li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.rp2-ac__l li:last-child { border-bottom: 0; }
.rp2-ac__no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f3f2fd; color: var(--pu); font-weight: 800; font-size: 14px; }
.rp2-ac__t b { display: block; font-size: 15px; color: var(--ink); }
.rp2-ac__t small { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12.5px; color: var(--ink2); }
.rp2-ac .rp2-find { padding-right: 64px; min-height: 44px; }
.rp2-ac .rp2-mini { width: 40px; height: 40px; bottom: 22px; right: 32px; }
.rp2-ac__none { margin: 8px 0; }
.rp2-how { padding: 20px 22px; border-radius: 20px; }
.rp2-how li .ic { flex: none; }
.rp2-how__ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pus); color: var(--pu); }
.rp2-how__ic .ic { width: 20px; height: 20px; }
.rp2-how ul { list-style: none; margin: 0; padding: 0; }
.rp2-how li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink); line-height: 1.55; }
.rp2-how li:last-child { border-bottom: 0; }
.rp2-how li .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--pus); color: var(--pu); stroke-width: 2.4; }

/* 响应式 */
@media (max-width: 1280px) { .rp2-pc { grid-template-columns: minmax(0, 1fr) 210px; } }
@media (max-width: 1180px) { .rp2-g2 { grid-template-columns: minmax(0, 1fr); } .rp2-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rp2-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; } .rp2-sum > div:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 1100px) { .rp2-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto 1fr auto auto 1fr; row-gap: 0; } .rp2-kpis > :nth-child(n+3) { margin-top: 16px; } }
@media (max-width: 960px) { .rp2-g2--eq { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .rp2-kpis, .rp2-g3, .rp2-sum { grid-template-columns: minmax(0, 1fr); }
  .rp2-kpis { grid-template-rows: none; row-gap: 12px; } .rp2-kpis > .rp2-kpi { grid-row: auto; grid-template-rows: none; } .rp2-kpis > :nth-child(n+3) { margin-top: 0; }
  .rp2-sum > div { padding: 0 !important; border-left: 0 !important; }
  .rp2-pc { grid-template-columns: minmax(0, 1fr); }
  .rp2-sa__b { grid-template-columns: minmax(0, 1fr); }
  .rp2-sa__bars { padding-left: 0; border-left: 0; }
  .rp2-sa__rd { max-width: 300px; margin: 0 auto; }
  .rp2-tabs { gap: 18px; overflow-x: auto; }
  .rp2-key { gap: 8px 16px; }
  .rp2-sa__k b { font-size: 20px; }
  .rp2-sa__k { gap: 6px; } .rp2-sa__k > div { padding: 8px 10px; } .rp2-sa__k small { font-size: 11.5px; white-space: nowrap; }
  .rp2-head h1 { font-size: 24px; flex-wrap: wrap; }
  .rp2-ac .rp2-mini { display: none; }
  .rp2-ac .rp2-find { padding-right: 14px; }
  .rp2-ac__l li { grid-template-columns: 28px minmax(0, 1fr); }
  .rp2-ac__l li .btn { grid-column: 2; justify-self: start; }
}
@media print { .rp2-tabs, .rp2-sel, .rp2-btn, .rp2-mini, .rp2-deco { display: none !important; } .rp2-kpi, .rp2-c, .rp2-sa, .rp2-mc, .rp2-ac { box-shadow: none; break-inside: avoid; } }

/* 2026-11-24 视觉精修：报告内信息图标统一（einfo 与 SVG 信息图标同尺寸、同颜色、同线宽） */
.rp2 .einfo { margin-left: 4px; }
.rp2 .einfo > summary { width: 16px; height: 16px; border: 1.6px solid #a3a8c3; color: #8288a8; background: transparent; font: 700 10px/12.8px -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", sans-serif; font-style: normal; }
.rp2 .einfo > summary:hover, .rp2 .einfo[open] > summary { border-color: var(--pu); color: var(--pu); }
.rp2 .tip .ic, .rp2-sum__main b .tip .ic, .rp2-sa__bars h3 .tip .ic { width: 16px; height: 16px; color: #8288a8; stroke-width: 1.6; }
.rp2 .tip { display: inline-flex; }
.rp2-sa__p .einfo > summary, .rp2-kpi--pred .einfo > summary { border-color: #b7abf6; color: #6a52ec; }

/* ── PDF 导出（2026-11-24）：独立 A4 版式，只在打印时出现；屏幕上不渲染 ── */
@media screen { #rpp { display: none !important; } }
@page rpp-hans { size: A4; margin: 14mm 13mm 16mm; @bottom-left { content: "元因教育 · 学习报告"; font-size: 8pt; color: #8288a8; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Noto Sans", sans-serif; } @bottom-right { content: "第 " counter(page) " / " counter(pages) " 页"; font-size: 8pt; color: #8288a8; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Noto Sans", sans-serif; } }
@page rpp-hant { size: A4; margin: 14mm 13mm 16mm; @bottom-left { content: "元因教育 · 學習報告"; font-size: 8pt; color: #8288a8; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Noto Sans", sans-serif; } @bottom-right { content: "第 " counter(page) " / " counter(pages) " 頁"; font-size: 8pt; color: #8288a8; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Noto Sans", sans-serif; } }
@page rpp-en { size: A4; margin: 14mm 13mm 16mm; @bottom-left { content: "Yuanyin Education · Learning report"; font-size: 8pt; color: #8288a8; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Noto Sans", sans-serif; } @bottom-right { content: "Page " counter(page) " of " counter(pages); font-size: 8pt; color: #8288a8; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Noto Sans", sans-serif; } }
@media print {
  body.rpp-on > :not(#rpp) { display: none !important; }
  body.rpp-on { background: #fff !important; }
  #rpp { display: block; }
}
.rpp { page: rpp-hans; --pu: #6a52ec; --pus: #efecff; --ok: #21b07a; --oks: #e6f6ef; --wa: #f08a24; --was: #fff3e6; --ink: #1d2142; --ink2: #4b5175; --muted: #8288a8; --line: #e6e8f3; --track: #eceefb;
  color: var(--ink); font-size: 9.5pt; line-height: 1.55; font-variant-numeric: tabular-nums; -webkit-print-color-adjust: exact; print-color-adjust: exact; text-wrap: pretty; }
.rpp--hant { page: rpp-hant; } .rpp--en { page: rpp-en; }
.rpp * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rpp h1, .rpp h2, .rpp h3, .rpp h4 { margin: 0; color: var(--ink); text-wrap: balance; }
/* 页眉与封面 */
.rpp-hd { display: flex; align-items: center; justify-content: space-between; padding-bottom: 3mm; border-bottom: 0.6mm solid var(--pu); }
.rpp-brand { display: flex; align-items: center; gap: 2.4mm; font-size: 11pt; }
.rpp-logo { display: inline-block; width: 7.5mm; height: 7.5mm; } .rpp-logo svg { display: block; width: 100%; height: 100%; }
.rpp-hd__doc { font-size: 8.5pt; font-weight: 700; color: var(--pu); letter-spacing: .04em; }
.rpp-cover { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8mm; padding: 6mm 0 5mm; }
.rpp-cover h1 { font-size: 22pt; font-weight: 800; line-height: 1.2; }
.rpp-cover p { margin: 1.5mm 0 0; color: var(--ink2); font-size: 10pt; }
.rpp-meta { display: grid; grid-template-columns: auto auto; gap: 1.2mm 6mm; margin: 0; font-size: 8.5pt; }
.rpp-meta div { display: flex; gap: 2mm; } .rpp-meta dt { color: var(--muted); } .rpp-meta dd { margin: 0; font-weight: 700; color: var(--ink); }
.rpp-key { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5mm 6mm; padding: 2.6mm 4mm; border-radius: 3mm; background: #f6f5fd; font-size: 8.5pt; color: var(--ink2); }
.rpp-key > b { color: var(--ink); }
.rpp-key span { display: inline-flex; align-items: center; gap: 1.6mm; } .rpp-key span b { color: var(--ink); }
.rpp .rp2-dot { width: 2.4mm; height: 2.4mm; }
/* 章节 */
.rpp-sec { padding-top: 7mm; }
.rpp-pb { break-before: page; padding-top: 0; }
.rpp-h2 { display: flex; align-items: center; gap: 3mm; margin-bottom: 4mm !important; padding-bottom: 2mm; border-bottom: 0.3mm solid var(--line); font-size: 14pt; font-weight: 800; break-after: avoid; }
.rpp-h2 span { display: inline-grid; place-items: center; min-width: 7.5mm; height: 7.5mm; padding: 0 1.6mm; border-radius: 2mm; background: var(--pu); color: #fff; font-size: 10.5pt; }
.rpp h3 { display: flex; align-items: center; gap: 2mm; margin-bottom: 3mm; font-size: 11pt; font-weight: 800; break-after: avoid; }
.rpp h4 { margin-bottom: 2mm; font-size: 9.5pt; font-weight: 800; }
.rpp-box { padding: 4mm 5mm; margin-top: 4mm; border: 0.3mm solid var(--line); border-radius: 3mm; break-inside: avoid; }
.rpp-keep { break-inside: avoid; }
.rpp-note { margin: 2.5mm 0 0; font-size: 8pt; color: var(--muted); line-height: 1.5; }
.rpp-num { text-align: right; white-space: nowrap; }
.rpp-strong { font-weight: 700; color: var(--ink); }
.rpp-sw { display: inline-block; width: 2.2mm; height: 2.2mm; margin-right: 2mm; border-radius: 50%; vertical-align: 0.15em; }
.rpp-bar { display: block; height: 2mm; border-radius: 1mm; background: var(--track); overflow: hidden; }
.rpp-bar b { display: block; height: 100%; border-radius: 1mm; background: var(--pu); }
/* KPI */
.rpp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3mm; break-inside: avoid; }
.rpp-kpi { display: grid; grid-template-rows: auto auto 1fr; padding: 3.2mm 4mm; border: 0.3mm solid var(--line); border-top: 0.8mm solid var(--pu); border-radius: 2.4mm; }
.rpp-kpi--mastery { border-top-color: var(--ok); } .rpp-kpi--levels { border-top-color: #8b77fa; } .rpp-kpi--pred { border-top-color: #b49cfb; } .rpp-kpi--exam { border-top-color: #6a4cf0; }
.rpp-kpi small { font-size: 8.5pt; font-weight: 700; color: var(--ink2); line-height: 1.35; }
.rpp-kpi b { margin: 1.2mm 0 .6mm; font-size: 18pt; font-weight: 800; line-height: 1.15; color: var(--ink); }
.rpp-kpi em { font-style: normal; font-size: 8pt; color: var(--muted); line-height: 1.4; }
/* 百分位 + 整体位置 */
.rpp-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 4mm; break-inside: avoid; }
.rpp-row > .rpp-box { margin-top: 4mm; }
.rpp-pct { width: 100%; border-collapse: collapse; }
.rpp-pct th, .rpp-pct td { padding: 1.5mm 0; font-size: 9pt; vertical-align: middle; }
.rpp-pct th { width: 1%; padding-right: 4mm; text-align: left; white-space: nowrap; font-weight: 700; }
.rpp-pct__bar { width: auto; }
.rpp-pct .rpp-num { width: 1%; padding-left: 3mm; font-weight: 700; color: var(--ink); }
.rpp-pct__b { width: 1%; padding-left: 4mm !important; white-space: nowrap; color: var(--ink2); }
.rpp-band--top { color: #138a5c !important; font-weight: 700; } .rpp-band--low { color: #c2610f !important; font-weight: 700; } .rpp-band--mid { color: var(--pu); font-weight: 700; }
.rpp-pos { background: linear-gradient(170deg, #f3f0ff, #faf9ff 70%); border-color: #e7e2ff; }
.rpp-pos strong { display: block; margin-bottom: 1.6mm; font-size: 17pt; font-weight: 800; color: var(--ink); }
.rpp-pos p { margin: 0; font-size: 8.8pt; color: var(--ink2); }
/* 结论 */
.rpp-cl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2mm; }
.rpp-cl li { display: grid; grid-template-columns: 22mm minmax(0, 1fr); gap: 3mm; padding: 2.4mm 3.5mm; border-radius: 2mm; background: #f6f5fd; border-left: 0.9mm solid var(--pu); break-inside: avoid; }
.rpp--en .rpp-cl li { grid-template-columns: 24mm minmax(0, 1fr); }
.rpp-cl li b { color: var(--ink); } .rpp-cl li span { color: var(--ink2); }
.rpp-cl--good { background: var(--oks) !important; border-left-color: var(--ok) !important; } .rpp-cl--warn { background: var(--was) !important; border-left-color: var(--wa) !important; }
/* 表格 */
.rpp-tbl { width: 100%; border-collapse: collapse; margin-top: 1mm; font-size: 8.8pt; }
.rpp-tbl th, .rpp-tbl td { padding: 2mm 2.4mm; border-bottom: 0.25mm solid var(--line); text-align: left; vertical-align: middle; }
.rpp-tbl thead th { padding-top: 1.4mm; padding-bottom: 1.4mm; background: #f6f5fd; font-size: 8pt; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.rpp-tbl thead th.rpp-num { text-align: right; }
.rpp-tbl tbody th { font-weight: 700; white-space: nowrap; }
.rpp-tbl tr { break-inside: avoid; }
.rpp-tbl__bar { width: 24%; padding-left: 0 !important; }
.rpp-tbl .rpp-tbl__bar + .rpp-num, .rpp-tbl td.rpp-num.rpp-strong:first-of-type { padding-right: 2mm; }
.rpp-pill { display: inline-block; padding: .5mm 2.2mm; border-radius: 1.6mm; background: var(--pus); font-size: 8pt; white-space: nowrap; }
.rpp-pill.rpp-band--top { background: var(--oks); } .rpp-pill.rpp-band--low { background: #ffeedd; }
.rpp .line-chart, .rpp svg.chart { max-width: 100%; height: auto; }
/* 学科卡（学科分析 / 提升建议） */
.rpp-card { margin-top: 4mm; padding: 3.6mm 5mm 4mm; border: 0.3mm solid var(--bc, var(--line)); border-left: 1.2mm solid var(--c); border-radius: 3mm; break-inside: avoid; }
.rpp-card__h { display: flex; align-items: center; gap: 2.6mm; margin-bottom: 3mm; }
.rpp-card__h > b { flex: 1; font-size: 12pt; font-weight: 800; }
.rpp-card__h .sicon { width: 7mm !important; height: 7mm !important; border-radius: 2mm; }
.rpp-stat { display: inline-flex; flex-direction: column; align-items: flex-end; min-width: 18mm; padding-left: 4mm; border-left: 0.25mm solid var(--line); }
.rpp-stat small { font-size: 7.5pt; color: var(--muted); white-space: nowrap; }
.rpp-stat em { font-style: normal; font-size: 12.5pt; font-weight: 800; color: var(--ink); line-height: 1.2; }
.rpp-stat--pred small { color: #5b45e0; font-weight: 700; } .rpp-stat--pred em { color: #4f39d6; }
.rpp-sa__b { display: grid; grid-template-columns: 58mm minmax(0, 1fr); gap: 5mm; align-items: center; }
.rpp-sa__b--one { grid-template-columns: minmax(0, 1fr); }
.rpp-sa__rd svg { display: block; width: 100%; height: auto; overflow: visible; }
.rpp .rp2-rd__l { font-size: 14px; }
.rpp .rp2-db { gap: 1.4mm; }
.rpp .rp2-db__r { grid-template-columns: minmax(0, 15em) minmax(0, 1fr) 3.2em; gap: 3mm; font-size: 8.6pt; }
.rpp--en .rp2-db__r { grid-template-columns: minmax(0, 17em) minmax(0, 1fr) 3.2em; }
.rpp .rp2-db__t { height: 2mm; } .rpp .rp2-db__t > s { top: -0.8mm; bottom: -0.8mm; width: 0.5mm; }
.rpp .rp2-db__lg { margin-top: 2mm; font-size: 7.5pt; gap: 1mm 4mm; }
.rpp-find { display: flex; gap: 2.4mm; margin: 3mm 0 0; padding: 2.2mm 3.5mm; border-radius: 2mm; background: #f6f5fd; font-size: 8.8pt; color: var(--ink2); }
.rpp-find b { flex: none; color: var(--pu); }
.rpp-ac__l { list-style: none; margin: 0; padding: 0; }
.rpp-ac__l li { display: grid; grid-template-columns: 6mm minmax(0, 1fr); gap: 3mm; align-items: start; padding: 2mm 0; border-bottom: 0.25mm solid var(--line); break-inside: avoid; }
.rpp-ac__l li:last-child { border-bottom: 0; }
.rpp-ac__no { display: inline-grid; place-items: center; width: 5.5mm; height: 5.5mm; border-radius: 50%; background: var(--pus); color: var(--pu); font-weight: 800; font-size: 8.5pt; }
.rpp-ac__l b { display: block; font-size: 9.5pt; color: var(--ink); }
.rpp-ac__l small { display: block; margin-top: .4mm; font-size: 8.2pt; color: var(--ink2); }
/* 掌握情况：已掌握知识点（全部列出） */
.rpp-mk ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.6mm; }
.rpp-mk li { padding: .6mm 2.4mm; border-radius: 1.6mm; background: var(--oks); color: #138a5c; font-size: 8.2pt; }
/* 怎样用好 + 数据说明 */
.rpp-how ul { margin: 0; padding-left: 5mm; } .rpp-how li { margin: 1mm 0; color: var(--ink2); }
.rpp-how li::marker { color: var(--pu); }
.rpp-defs { margin-top: 5mm; padding-top: 3mm; border-top: 0.3mm dashed var(--line); }
.rpp-defs h3 { font-size: 9.5pt; margin-bottom: 2mm; }
.rpp-defs dl { margin: 0; display: grid; gap: 1.4mm; }
.rpp-defs dl div { display: grid; grid-template-columns: 26mm minmax(0, 1fr); gap: 3mm; font-size: 8pt; }
.rpp--en .rpp-defs dl div { grid-template-columns: 34mm minmax(0, 1fr); }
.rpp-defs dt { font-weight: 700; color: var(--ink2); } .rpp-defs dd { margin: 0; color: var(--muted); }
.rpp p, .rpp li { orphans: 3; widows: 3; }
/* PDF 第 2 轮：章节连续排版（不强制分页，避免整页空白）；提升建议两栏；表格数字右对齐 */
.rpp-tbl td.rpp-num, .rpp-tbl th.rpp-num, .rpp-pct td.rpp-num { text-align: right; }
.rpp-g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4mm; }
.rpp-g2 > .rpp-card { display: flex; flex-direction: column; }
.rpp-g2 > .rpp-card > .rpp-find { margin-top: auto; }
.rpp-g2 .rpp-ac__l { margin-bottom: 3mm; }
.rpp-gain { display: inline-flex; align-items: baseline; gap: 2mm; padding: .8mm 3mm; border-radius: 2mm; background: #f1edff; }
.rpp-gain small { font-size: 7.5pt; font-weight: 700; color: #5b45e0; } .rpp-gain em { font-style: normal; font-size: 12pt; font-weight: 800; color: #4f39d6; }
.rpp-h2 { break-after: avoid; }
.rpp-sec > .rpp-h2 + * { break-before: avoid; }
.rpp-cover { padding: 5mm 0 4mm; }
.rpp-pct th, .rpp-pct td { padding: 1.2mm 0; }
.rpp-cl li { padding: 2mm 3.5mm; }
.rpp-pct tbody th { padding-right: 4mm; }
.rpp-pct td.rpp-num { padding-left: 3mm; }
.rpp-gain { white-space: nowrap; }
.rpp-tbl__bar .rpp-bar { min-width: 16mm; }
.rpp--en .rpp-ac__l small { font-size: 7.8pt; }
.rpp--en .rpp-ac__l li { padding: 1.6mm 0; }
.rpp-defs { margin-top: 3mm; padding: 0 4mm; border-top: 0; }
.rpp-ac .rpp-card__h { flex-wrap: wrap; row-gap: 1.6mm; }
.rpp-ac .rpp-card__h > b { min-width: 0; }
.rpp-gain { margin-left: auto; }
