/* 复盘报告：单层样式。白纸、细线、深墨字，标题只保留两级。
   2026-10-23 重做：去掉深绿色块标题、去掉重复品牌行，底色随全站薄荷白。 */
body[data-page='review'] {
  --r-ink: #0b0f0d;
  --r-body: #171c19;
  --r-muted: #38443d;
  --r-rule: #c9dbcf;
  --r-accent: #07472f;
  --r-tint: #f1f7f3;
  color: var(--r-ink);
  font-weight: 500;
}
body[data-page='review'] .main {
  max-width: 1120px;
  padding-top: 26px;
}

/* 页首：沿用其他页的浅底标题排法，不再做深色通栏。 */
.report-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.report-toolbar h1 {
  font-size: 30px;
  color: var(--r-ink);
}
.report-toolbar .page-heading-tools {
  width: auto;
  flex: 0 0 auto;
}
.report-toolbar .button {
  min-height: 42px;
  font-size: 16px;
}
.report-toolbar .coach-welcome {
  margin-left: auto;
  align-self: center;
  align-items: center;
  gap: 10px;
}
.report-toolbar .coach-welcome p {
  color: var(--r-muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: right;
}
.report-toolbar .coach-welcome-portrait {
  width: 58px;
  height: 70px;
  flex: 0 0 58px;
}
.report-toolbar .coach-welcome-portrait img {
  left: -10px;
  top: 0;
  width: 79px;
  height: 90px;
}

/* 四个锚点做成一行文字链接，不再用四个按钮。 */
.review-directory {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0 0 16px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--r-rule);
  font-size: 15px;
}
.review-directory a {
  color: var(--r-muted);
  padding: 2px 0;
  border-bottom: 2px solid transparent;
}
.review-directory a:hover,
.review-directory a:focus-visible {
  color: var(--r-accent);
  border-bottom-color: var(--r-accent);
  text-decoration: none;
}

/* 两页报告纸 */
.report-sheet {
  padding: 22px 26px 16px;
  margin: 0 0 18px;
  background: #fff;
  border: 1px solid var(--r-rule);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 60, 42, 0.04);
}
.sheet-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--r-ink);
}
.sheet-heading h2 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--r-ink);
}
.sheet-page {
  font-size: 13px;
  color: var(--r-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 基本信息：无底色，只用细线分行。 */
.report-facts {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  margin: 0;
  border-bottom: 1px solid var(--r-rule);
}
.report-facts > div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  font-size: 15.5px;
  line-height: 1.6;
}
.report-facts > div:nth-child(even) {
  padding-left: 18px;
}
.report-facts > div:nth-child(n + 3) {
  border-top: 1px solid var(--r-rule);
}
.report-facts dt {
  color: var(--r-muted);
  white-space: nowrap;
}
.report-facts dd {
  margin: 0;
  color: var(--r-ink);
}

/* 一级标题：只有一条细线，没有色块。 */
.report-section {
  padding-top: 14px;
  scroll-margin-top: 24px;
}
.report-section-title {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
  padding: 5px 13px;
  border: 1px solid #075c41;
  border-radius: 9px;
  background: linear-gradient(170deg, #0a7951 0%, #056042 100%);
  box-shadow:
    inset 0 1px 0 rgba(232, 255, 245, 0.35),
    0 2px 5px rgba(7, 100, 67, 0.14);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}
.report-section-title > span {
  font-size: 12px;
  font-weight: 700;
  color: #c8ecd9;
  letter-spacing: 0.1em;
}

/* 二级标签：只比正文粗一点，不再是色块标题。 */
.subsection-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 6px;
  padding: 2px 10px;
  border: 1px solid #a9cfba;
  border-radius: 7px;
  background: #d9eee2;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  color: #0b3d2a;
}
.commentary-title .coach-avatar {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}
.commentary-title .coach-avatar img {
  width: 46px;
  height: 53px;
  left: -10px;
  top: -1px;
}

.verdict-summary {
  margin: 0 0 10px;
}
.verdict-lead {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 6px;
  color: var(--r-ink);
  text-wrap: pretty;
}
.verdict-summary > p:not(.verdict-lead) {
  font-size: 17px;
  line-height: 1.8;
  color: var(--r-body);
}
/* styles.css 里还留有旧版三列发现卡片规则，这里逐项锁定为单列列表。 */
.verdict-findings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--r-rule);
}
.verdict-findings > div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: baseline;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--r-rule);
  font-size: 16px;
  line-height: 1.65;
}
.verdict-findings dt {
  display: inline-block;
  padding: 1px 9px;
  border: 1px solid #a9cfba;
  border-radius: 999px;
  background: #d9eee2;
  font-size: 14.5px;
  font-weight: 700;
  color: #0b3d2a;
}
.verdict-findings dd {
  margin: 0;
  font-size: 16px;
  color: var(--r-body);
}
.verdict-findings a {
  display: inline;
  gap: 0;
  font-size: 13px;
  color: var(--r-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.evaluation-body {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.6fr);
  align-items: center;
  gap: 20px;
}
.radar-figure {
  margin: 0;
}
.radar {
  display: block;
  width: 100%;
  height: auto;
  max-width: 340px;
  margin: 0 auto;
}
.radar-figure figcaption {
  margin-top: -4px;
  text-align: center;
  font-size: 14px;
  color: var(--r-muted);
}
.table-wrap {
  overflow-x: auto;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.55;
}
.report-table th,
.report-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--r-rule);
  text-align: left;
  vertical-align: top;
}
.report-table thead th {
  border-top: 1px solid var(--r-rule);
  background: #e9f1ec;
  font-weight: 650;
  color: var(--r-ink);
}
.report-table tbody th {
  font-weight: 600;
  color: var(--r-body);
}
.dimension-table th:first-child {
  min-width: 96px;
}
.dimension-table td {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dimension-table .score {
  font-weight: 700;
  color: var(--r-accent);
}
.report-note {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--r-muted);
}
/* 五维的评分要点，取自大赛评审表 */
.rubric-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 18px;
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--r-rule);
  list-style: none;
  font-size: 13px;
  line-height: 1.55;
  color: var(--r-muted);
}
.rubric-legend li:last-child {
  grid-column: 1 / -1;
}
.rubric-legend strong {
  margin-right: 6px;
  color: var(--r-body);
  font-weight: 700;
}
.goal-table th {
  width: 24%;
}
.goal-table .goal-state {
  width: 96px;
  white-space: nowrap;
}
.goal-table .goal-state span {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid #a9cfba;
  border-radius: 999px;
  background: #d9eee2;
  font-weight: 650;
  color: #0b3d2a;
}
.sheet-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 7px;
  border-top: 1px solid var(--r-rule);
  font-size: 13.5px;
  color: var(--r-muted);
}

/* 证据区：纵向单列，靠细线分区。 */
.evidence-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 0;
}
.evidence-dialogue,
.coach-commentary,
.suggested-response {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.dialogue-transcript {
  margin: 0;
  border-top: 1px solid var(--r-rule);
}
.dialogue-transcript > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  border-bottom: 1px solid var(--r-rule);
  font-size: 16.5px;
  line-height: 1.75;
}
.dialogue-transcript dt {
  padding: 7px 10px;
  border-right: 1px solid var(--r-rule);
  background: var(--r-tint);
  color: var(--r-body);
  font-size: 14.5px;
}
.dialogue-transcript dd {
  margin: 0;
  padding: 7px 12px;
  color: var(--r-body);
}
.original-quote {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--r-ink);
}
.original-quote mark {
  background: #d9eee1;
  color: #0b4a31;
  text-decoration: underline;
  text-underline-offset: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.coach-takeaway {
  margin: 0 0 8px;
  padding: 10px 14px;
  border: 1px solid #bcdccc;
  border-left: 4px solid var(--r-accent);
  border-radius: 8px;
  background: linear-gradient(150deg, #f7fdf9, #e8f6ee);
}
.coach-keypoint {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--r-ink);
}
.commentary-reasons {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--r-rule);
}
.commentary-reasons > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  border-bottom: 1px solid var(--r-rule);
}
.commentary-reasons dt {
  margin: 0;
  padding: 7px 10px;
  background: var(--r-tint);
  color: var(--r-body);
  font-size: 14.5px;
  font-weight: 600;
}
.commentary-reasons dd {
  margin: 0;
  padding: 7px 12px;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--r-body);
}
.suggested-response blockquote {
  margin: 0;
  padding: 9px 13px;
  border-left: 3px solid var(--r-accent);
  background: var(--r-tint);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--r-ink);
}
.retained-evidence {
  padding-top: 12px;
  scroll-margin-top: 24px;
}
.retained-evidence blockquote {
  margin: 0 0 5px;
  padding: 8px 12px;
  border-left: 3px solid #9cb8a5;
  background: #f6faf7;
  font-size: 16px;
  line-height: 1.7;
  color: var(--r-body);
}
.retained-evidence > p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--r-body);
}

/* 练习计划 */
.practice-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}
.practice-heading .report-section-title {
  margin: 0;
}
.practice-heading .button {
  min-height: 34px;
  padding: 4px 12px;
  font-size: 15px;
}
.practice-sequence {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: practice;
}
.practice-sequence li {
  display: grid;
  grid-template-columns: 24px 148px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--r-rule);
  line-height: 1.7;
  counter-increment: practice;
}
.practice-sequence li:last-child {
  border-bottom: 0;
}
.practice-sequence li::before {
  content: counter(practice, decimal-leading-zero);
  font-size: 13px;
  font-weight: 700;
  color: var(--r-accent);
  font-variant-numeric: tabular-nums;
}
.practice-sequence strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--r-ink);
}
.practice-sequence span {
  font-size: 16px;
  color: var(--r-body);
}

body[data-page='review'] :is(a, button, [tabindex]):focus-visible {
  outline: 3px solid #2c7546;
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .evaluation-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .radar {
    max-width: 320px;
  }
  .report-facts {
    grid-template-columns: 1fr;
  }
  .report-facts > div:nth-child(even) {
    padding-left: 0;
  }
  .report-facts > div + div {
    border-top: 1px solid var(--r-rule);
  }
  .report-sheet {
    padding: 18px 20px 14px;
  }
  .goal-table th {
    width: auto;
  }
  /* 覆盖 styles.css 旧版窄屏卡片间距 */
  .verdict-findings > div + div {
    border-top: 0;
    padding-top: 6px;
  }
  .practice-sequence li + li {
    border-top: 0;
    padding-top: 7px;
  }
}

@media (max-width: 520px) {
  body[data-page='review'] .main {
    margin-inline: 12px;
    padding-top: 18px;
  }
  .report-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .report-toolbar h1 {
    font-size: 26px;
  }
  .report-toolbar .coach-welcome {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
  .report-toolbar .coach-welcome-portrait {
    width: 50px;
    height: 60px;
    flex: 0 0 50px;
  }
  .report-toolbar .coach-welcome-portrait img {
    width: 67px;
    height: 76px;
    left: -8px;
  }
  .report-toolbar .page-heading-tools {
    width: 100%;
  }
  .review-directory {
    gap: 4px 16px;
    font-size: 14px;
  }
  .report-sheet {
    padding: 16px 14px 12px;
  }
  .sheet-heading h2 {
    font-size: 19px;
  }
  .report-section-title {
    font-size: 17px;
  }
  .verdict-lead,
  .coach-keypoint {
    font-size: 17px;
  }
  .verdict-findings > div {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 6px 0;
  }
  .dialogue-transcript > div,
  .commentary-reasons > div {
    grid-template-columns: 1fr;
  }
  .dialogue-transcript dt {
    border-right: 0;
    border-bottom: 1px solid var(--r-rule);
  }
  .report-table th,
  .report-table td {
    padding: 6px 8px;
  }
  /* 窄屏把目标表改成三段式，避免状态列被挤成两三个字一行 */
  .goal-table,
  .goal-table tbody,
  .goal-table tr,
  .goal-table th,
  .goal-table td {
    display: block;
  }
  .goal-table tr {
    padding: 6px 0;
    border-bottom: 1px solid var(--r-rule);
  }
  .goal-table tr:last-child {
    border-bottom: 0;
  }
  .goal-table th,
  .goal-table td {
    border: 0;
    padding: 0;
  }
  .goal-table .goal-state {
    display: inline-block;
    width: auto;
    margin: 2px 0 3px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--r-tint);
    font-size: 13px;
    white-space: normal;
  }
  .practice-sequence li {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 2px 8px;
  }
  .practice-sequence span {
    grid-column: 2;
  }
  .sheet-footer {
    flex-direction: column;
    gap: 2px;
  }
}

@page {
  size: A4;
  margin: 10mm;
}

/* 打印：两页 A4，正文 9pt，保持同样的细线版式。 */
@media print {
  html {
    font-size: 12pt;
  }
  body[data-page='review'] {
    background: #fff;
    margin: 0;
    min-width: 0;
  }
  body[data-page='review']::before {
    display: none;
  }
  .site-header,
  .site-footer,
  .skip,
  .report-toolbar,
  .review-directory,
  .preview-notice,
  .practice-heading .button {
    display: none !important;
  }
  body[data-page='review'] .main {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .report-sheet {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    break-after: page;
  }
  .report-sheet:last-of-type {
    break-after: auto;
  }
  .sheet-heading {
    padding-bottom: 2mm;
  }
  .sheet-heading h2 {
    font-size: 15pt;
  }
  .sheet-page {
    font-size: 9pt;
  }
  .report-facts {
    grid-template-columns: 1.25fr 1fr;
  }
  .report-facts > div {
    padding: 1.4mm 0;
    gap: 2mm;
    font-size: 10pt;
  }
  .report-facts > div:nth-child(even) {
    padding-left: 4mm;
  }
  .report-section {
    padding-top: 3mm;
  }
  .report-section-title {
    margin-bottom: 1.8mm;
    padding: 1.4mm 2.5mm;
    border-radius: 1.5mm;
    font-size: 12.5pt;
  }
  .report-section-title > span {
    font-size: 9pt;
  }
  .subsection-title {
    margin: 2.4mm 0 1.2mm;
    padding: 0.7mm 2mm;
    font-size: 10pt;
  }
  .commentary-title .coach-avatar {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }
  .commentary-title .coach-avatar img {
    width: 35px;
    height: 40px;
    left: -7px;
    top: -1px;
  }
  .verdict-summary {
    margin-bottom: 2mm;
  }
  .verdict-lead,
  .coach-keypoint {
    font-size: 12pt;
    line-height: 1.5;
    margin-bottom: 1.2mm;
  }
  .verdict-summary > p:not(.verdict-lead) {
    font-size: 10pt;
    line-height: 1.55;
  }
  .verdict-findings > div {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    gap: 2.5mm;
    padding: 1.3mm 0;
    font-size: 10pt;
  }
  .verdict-findings a {
    font-size: 8.5pt;
  }
  .evaluation-body {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 4mm;
  }
  .radar {
    max-width: 190px;
  }
  .radar-figure figcaption {
    font-size: 8.5pt;
  }
  .report-table {
    font-size: 10pt;
    line-height: 1.45;
  }
  .report-table th,
  .report-table td {
    padding: 1.4mm 2mm;
  }
  .dimension-table th:first-child {
    min-width: 70px;
  }
  .report-note {
    margin-top: 1.2mm;
    font-size: 8.5pt;
    line-height: 1.45;
  }
  .goal-table .goal-state {
    width: 70px;
  }
  .sheet-footer {
    margin-top: 2.5mm;
    padding-top: 1.4mm;
    font-size: 8.5pt;
  }
  .evidence-workspace {
    gap: 1mm;
  }
  .dialogue-transcript > div {
    grid-template-columns: 84px minmax(0, 1fr);
    font-size: 10pt;
  }
  .dialogue-transcript dt {
    padding: 1.4mm 2mm;
    font-size: 8.5pt;
  }
  .dialogue-transcript dd {
    padding: 1.4mm 2mm;
  }
  .original-quote {
    font-size: 10pt;
  }
  .coach-takeaway {
    margin-bottom: 1.4mm;
    padding: 1.6mm 2.4mm;
  }
  .commentary-reasons > div {
    grid-template-columns: 62px minmax(0, 1fr);
  }
  .commentary-reasons dt {
    padding: 1.4mm 2mm;
    font-size: 8.5pt;
  }
  .commentary-reasons dd {
    padding: 1.4mm 2mm;
    font-size: 10pt;
    line-height: 1.55;
  }
  .suggested-response blockquote {
    padding: 1.6mm 2.4mm;
    font-size: 10pt;
  }
  .retained-evidence {
    padding-top: 2.2mm;
  }
  .retained-evidence blockquote {
    margin-bottom: 1.2mm;
    padding: 1.4mm 2.2mm;
    font-size: 10pt;
    line-height: 1.55;
  }
  .retained-evidence > p {
    font-size: 9.5pt;
    line-height: 1.55;
  }
  .practice-heading {
    margin-bottom: 1.2mm;
    padding-bottom: 1.2mm;
  }
  .practice-sequence li {
    grid-template-columns: 18px 108px minmax(0, 1fr);
    gap: 2.5mm;
    padding: 1.3mm 0;
  }
  .practice-sequence li::before,
  .practice-sequence strong,
  .practice-sequence span {
    font-size: 10pt;
  }
  .practice-sequence span {
    grid-column: auto;
  }
  .table-wrap {
    overflow: visible;
  }
  .report-table,
  .dialogue-transcript > div,
  .commentary-reasons > div,
  .practice-sequence li,
  .verdict-findings > div {
    break-inside: avoid;
  }
  * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
