/* ==========================================================
   少儿美术专业素养测评 · 左印美术
   配色与版式 1:1 取自原测评表：
   红 #E62029 / 青 #00B3C4 / 柠檬 #B9DE07 / 绿 #339966
   墨 #4E4644 / 灰 #CDCCCC · #E8E7E6
   ========================================================== */

:root {
  --red: #E62029;
  --teal: #00B3C4;
  --teal2: #31B6C9;
  --lime: #B9DE07;
  --green: #339966;
  --ink: #4E4644;
  --gray: #CDCCCC;
  --gray2: #E8E7E6;
  --pink: #F094AD;
  --magenta: #E84892;
  --yellow: #FCCB0C;
  --line: #4E4644;

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
          "Noto Sans CJK SC", "Heiti SC", sans-serif;
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: #EDE4D8;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

body::before {
  content: none; /* 用户要求移除页面两侧装饰背景（2026-10-20） */
}

.app {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  background: #fff;
  box-shadow: 0 0 60px rgba(34, 24, 21, .16);
}

/* ---------------- 顶栏 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid #E4E1DC;
  padding: 10px 16px 8px;
}

.brandline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .02em;
}

.brand .dot {
  width: 20px;
  height: 20px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
  border-radius: 3px;
}

.brand-sub {
  font-size: 12px;
  color: #A29B98;
  font-weight: 500;
  letter-spacing: .06em;
}

.steps {
  display: flex;
  gap: 6px;
  margin-top: 9px;
}

.steps i {
  flex: 1;
  height: 3px;
  background: #E8E7E6;
  border-radius: 2px;
  transition: background .25s;
}

.steps i.on { background: var(--red); }
.steps i.done { background: var(--teal); }

/* ---------------- 视图 ---------------- */
.view { display: none; padding: 20px 18px 120px; }
.view.on { display: block; }

/* ---------------- 通用组件 ---------------- */
.sec-head {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1.5px solid var(--line);
  padding-bottom: 5px;
  margin-bottom: 6px;
}

.sec-num {
  width: 42px;
  background: var(--red);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  display: grid;
  place-items: center;
  font-family: "Arial Black", var(--font);
}

.sec-bar {
  background: var(--teal);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .06em;
  padding: 6px 12px;
  display: flex;
  align-items: center;
}

.sec-note {
  font-size: 12.5px;
  font-weight: 600;
  margin: 0 0 0 10px;
  display: flex;
  align-items: center;
  color: var(--ink);
}

.sec-hint {
  font-size: 11.5px;
  color: #A29B98;
  margin: 6px 0 16px;
}

.sub-head {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .02em;
  margin: 22px 0 12px;
}

.sub-head .thin { font-weight: 900; }

.lead {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.32;
  color: var(--red);
  letter-spacing: .01em;
  margin: 4px 0 4px;
}

.lead-wrap { position: relative; margin-bottom: 18px; }

.lead > span { display: block; }

.eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--teal2);
  text-transform: uppercase;
}

.tag-parent {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--teal2);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  padding: 4px 6px;
  border-radius: 4px;
  vertical-align: super;
  margin-left: 6px;
}

/* 等级选择 */
.grade-group { display: flex; gap: 5px; }

.grade {
  width: 30px;
  height: 30px;
  border: 1px solid #BCB9B7;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font);
  border-radius: 2px;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: all .15s;
}

.grade:active { transform: scale(.94); }

.grade.on {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* 综合评价 红标 */
.eval-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--red);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 6px;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
}

.eval-box {
  width: 24px;
  height: 18px;
  background: #fff;
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

/* 按钮 */
.actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #fff 70%, rgba(255, 255, 255, .92));
  display: flex;
  gap: 10px;
  border-top: 1px solid #EFEDE9;
}

.btn {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .06em;
  border: none;
  border-radius: 4px;
  padding: 14px 18px;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}

.btn:active { transform: scale(.985); }

.btn-main {
  flex: 1;
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px rgba(230, 32, 41, .22);
}

.btn-main:disabled { opacity: .45; box-shadow: none; }

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid #DCD8D2;
}

.btn-teal { background: var(--teal); color: #fff; }

.btn-sm {
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 3px;
}

/* ==========================================================
   0 · 封面
   ========================================================== */
.cover { text-align: center; padding-top: 6px; }

.cover h1 {
  font-size: 40px;
  line-height: 1.22;
  font-weight: 900;
  color: var(--red);
  letter-spacing: .04em;
  margin: 6px 0 10px;
}

.cover h1 span { display: block; }

.cover-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--ink);
  margin-bottom: 20px;
}

.cover-sub i {
  display: block;
  width: 54px;
  height: 1px;
  background: #B5B2B1;
}

.cover-art {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.cover-form { margin-top: 26px; text-align: left; }

.field-row {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.field { flex: 1; display: flex; align-items: center; gap: 8px; }

.field > label {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.field input[type="text"],
.field input[type="tel"] {
  flex: 1;
  min-width: 0;
  border: none;
  border-bottom: 1px dashed #9A9491;
  background: transparent;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  padding: 4px 2px;
  outline: none;
  border-radius: 0;
}

.field input::placeholder { color: #C3BEBB; }

.field input:focus { border-bottom-color: var(--teal); }

.seg {
  display: flex;
  gap: 0;
  border: 1px solid #CFCBC6;
  border-radius: 3px;
  overflow: hidden;
}

.seg button {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 7px 12px;
  border: none;
  background: #fff;
  color: #898381;
  cursor: pointer;
}

.seg button.on { background: var(--teal); color: #fff; }

.exp-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14.5px;
  font-weight: 600;
  margin-top: 4px;
}

.exp-line .mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.mini input {
  width: 46px;
  border: none;
  border-bottom: 1px dashed #9A9491;
  font-family: var(--font);
  font-size: 14px;
  text-align: center;
  outline: none;
  padding: 2px;
}

.cover-foot {
  margin-top: 26px;
  font-size: 12px;
  color: #A29B98;
  line-height: 1.7;
  text-align: center;
}
.cover-foot .icp { color: inherit; text-decoration: none; }
.cover-foot .icp:hover { text-decoration: underline; }

/* ==========================================================
   期望卡片
   ========================================================== */
.goal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.goal {
  border: 1.5px solid var(--ink);
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: box-shadow .18s, transform .1s, border-color .18s;
  display: flex;
  flex-direction: column;
}

.goal:active { transform: scale(.985); }

.goal-top {
  display: flex;
  gap: 9px;
  padding: 12px 11px 10px;
  flex: 1;
  align-items: flex-start;
}

.goal-num {
  font-size: 34px;
  font-weight: 900;
  color: var(--teal);
  font-style: italic;
  line-height: .82;
  font-family: "Arial Black", var(--font);
  letter-spacing: -.02em;
}

.goal-desc {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink);
  padding-top: 2px;
}

.goal-bar {
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
}

.goal-check {
  width: 14px;
  height: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  flex: none;
}

.goal.on { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(0,179,196, .28); }
.goal.on .goal-bar { background: var(--teal2); }

/* ==========================================================
   雷达图 + 技能行
   ========================================================== */
.radar-wrap {
  display: flex;
  justify-content: center;
  padding: 4px 0 8px;
}

.radar-wrap svg { width: 100%; max-width: 100%; height: auto; display: block; }

.dim-list { display: flex; flex-direction: column; gap: 0; }

.dim-row {
  display: flex;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid #EFEDE9;
  align-items: flex-start;
}

.dim-row:first-child { border-top: none; }

.dim-ico {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--ink);
  margin-top: 2px;
}

.dim-ico svg { width: 100%; height: 100%; display: block; }

.dim-main { flex: 1; min-width: 0; }

.dim-name {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .02em;
  margin-bottom: 1px;
}

.dim-desc {
  font-size: 11.5px;
  color: #898381;
  line-height: 1.45;
}

.dim-side {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding-top: 2px;
}

/* ==========================================================
   表格
   ========================================================== */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  table-layout: fixed;
}

.tbl th {
  background: var(--teal2);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .18em;
  padding: 9px 8px;
  text-align: center;
}

.tbl th:first-child, .tbl td:first-child { width: 28%; }

.tbl td {
  padding: 10px 8px;
  vertical-align: middle;
  border-bottom: 2px solid #fff;
}

.tbl tr:nth-child(even) td { background: var(--gray); }
.tbl tr:nth-child(odd) td { background: var(--gray2); }

.tbl .c-name { font-size: 13px; font-weight: 800; text-align: center; line-height: 1.4; }
.tbl .c-desc { font-size: 11.5px; line-height: 1.5; color: #615955; }
.tbl .c-grade { text-align: center; }

.tbl .grade-group { justify-content: center; }

.tbl .grade {
  width: 26px;
  height: 26px;
  font-size: 12.5px;
  border-color: #8E8885;
  background: rgba(255, 255, 255, .85);
}

/* 选中态必须盖过上面的白底（同权重靠后原则） */
.tbl .grade.on {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ==========================================================
   心理素质
   ========================================================== */
.psy-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
}

.psy-dot {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: grid;
  place-items: center;
  letter-spacing: .04em;
  flex: none;
  text-align: center;
  line-height: 1.1;
}

.psy-main { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.5; }

.psy-side { display: flex; align-items: center; gap: 7px; flex: none; }

.inline-num {
  width: 34px;
  border: none;
  border-bottom: 1px solid #9A9491;
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  text-align: center;
  color: var(--red);
  font-weight: 800;
  outline: none;
}

/* ==========================================================
   生成中
   ========================================================== */
.loading-wrap { padding: 64px 24px; text-align: center; }

.spin {
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  border: 5px solid #F0EEEB;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-title { font-size: 17px; font-weight: 800; margin-bottom: 6px; }

.loading-sub { font-size: 12.5px; color: #A29B98; }

.progress-lines { margin: 26px auto 0; max-width: 300px; text-align: left; }

.pline {
  font-size: 12.5px;
  color: #B5AFAB;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .3s;
}

.pline b { width: 14px; height: 14px; border: 1.5px solid #DDD8D3; border-radius: 50%; flex: none; }

.pline.on { color: var(--ink); }
.pline.on b { border-color: var(--red); background: var(--red); }

/* ==========================================================
   报告
   ========================================================== */
.report-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.report-top h2 {
  font-size: 17px;
  font-weight: 900;
  margin: 0;
  letter-spacing: .02em;
}

.report-tools { display: flex; gap: 8px; flex-wrap: wrap; }

#reportArea { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.sheet-holder { overflow: hidden; }

.sheet {
  width: 794px;
  height: 1123px;
  background: #fff url("../assets/frame-a.jpg") center / cover no-repeat;
  padding: 13px;
  transform-origin: top left;
  box-shadow: 0 10px 34px rgba(34, 24, 21, .18);
  position: relative;
}

.sheet-inner {
  width: 100%;
  height: 100%;
  background: #fff;
  padding: 46px 50px;
  position: relative;
  overflow: hidden;
}

/* --- 封面 --- */
.p-cover { text-align: center; padding-top: 26px; }

.p-cover h1 {
  font-size: 52px;
  line-height: 1.26;
  color: var(--red);
  font-weight: 900;
  letter-spacing: .05em;
  margin: 0 0 18px;
}

.p-cover h1 span { display: block; }

.p-cover .p-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .1em;
  margin-bottom: 30px;
}

.p-cover .p-sub i { width: 64px; height: 1px; background: #A8A3A0; display: block; }

.p-cover img {
  width: min(560px, 100%);
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 30px;
}

.p-info { width: 560px; margin: 0 auto; text-align: left; }

.p-info .prow { display: flex; gap: 26px; margin-bottom: 26px; }

.p-info .pcell { flex: 1; display: flex; align-items: flex-end; gap: 6px; font-size: 18px; font-weight: 600; }

.p-info .pval {
  flex: 1;
  border-bottom: 1px dashed #6E6663;
  padding-bottom: 3px;
  font-size: 18px;
  font-weight: 700;
  min-height: 26px;
  color: var(--ink);
}

.p-info .pexp { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.cb {
  width: 15px;
  height: 15px;
  border: 1.2px solid var(--ink);
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  flex: none;
  vertical-align: -2px;
}

/* --- 通用页眉 --- */
.p-head {
  display: flex;
  align-items: stretch;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 6px;
  margin-bottom: 7px;
}

.p-num {
  width: 50px;
  background: var(--red);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  display: grid;
  place-items: center;
  font-family: "Arial Black", var(--font);
}

.p-bar {
  background: var(--teal);
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: .08em;
  padding: 7px 14px;
  display: flex;
  align-items: center;
}

.p-note {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  margin-left: 12px;
}

.p-hint { font-size: 12px; color: #A29B98; margin: 7px 0 20px; }

/* --- 雷达页 --- */
.p-sub-head { font-size: 22px; font-weight: 900; margin: 22px 0 4px; }

.p-radar-stage { position: relative; height: 718px; margin-top: 4px; }

.p-radar-stage > .radar-svg {
  position: absolute;
  left: 50%;
  top: 242px;
  width: 336px;
  height: 336px;
  transform: translateX(-50%);
}

.p-radar-stage > .radar-svg > svg {
  width: 100%;
  height: 100%;
  display: block;
}

.p-dim { position: absolute; width: 165px; }

.p-dim .eval-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.p-dim .d-ico { width: 26px; height: 26px; color: var(--ink); }
.p-dim .d-ico svg { width: 100%; height: 100%; display: block; }

.p-dim .d-name { font-size: 17px; font-weight: 900; letter-spacing: .02em; }

.p-dim .d-desc { font-size: 11.5px; line-height: 1.5; color: #615955; }

.p-dim .eval-tag { font-size: 13px; padding: 4px 7px; }
.p-dim .eval-box { width: 30px; height: 22px; font-size: 14px; }

.p-dim--top { left: 50%; top: 138px; transform: translateX(-50%); text-align: center; }
.p-dim--top .eval-line { justify-content: center; }
.p-dim--top .d-ico { margin: 0 auto 2px; }
.p-dim--top .d-name { text-align: center; }

.p-dim--left { left: 0; top: 292px; text-align: right; }
.p-dim--left .eval-line { justify-content: flex-end; }
.p-dim--left .d-ico { order: 2; }
.p-dim--left .eval-tag { order: 0; }
.p-dim--left .d-name { text-align: right; }

.p-dim--right { right: 0; top: 292px; text-align: left; }

.p-dim--bl { left: 0; top: 624px; text-align: left; }
.p-dim--br { right: 0; top: 624px; text-align: left; }

/* 图标与等级在标签上的排布（left 侧需翻转） */
.p-dim--left .eval-line { flex-direction: row-reverse; }
.p-dim--left .eval-line .d-ico { margin-left: 6px; }

.p-dim--bl .eval-line, .p-dim--br .eval-line { justify-content: flex-start; }
.p-dim--bl .d-name, .p-dim--br .d-name { margin-top: 2px; }

/* --- 期望页 --- */
.p-goal-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.24;
  color: var(--red);
  letter-spacing: .02em;
  margin: 4px 0 22px;
}

.p-goal-title > span { display: block; }
.p-goal-title .l2 { display: block; }

.p-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--teal2);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  padding: 4px 7px;
  border-radius: 4px;
  vertical-align: super;
  margin-left: 8px;
}

.p-goal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.p-goal {
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 188px;
}

.p-goal .top { display: flex; gap: 10px; padding: 14px 12px 10px; flex: 1; }

.p-goal .num {
  font-size: 46px;
  font-weight: 900;
  color: var(--teal);
  font-style: italic;
  line-height: .82;
  font-family: "Arial Black", var(--font);
}

.p-goal .txt { font-size: 12px; line-height: 1.5; padding-top: 3px; }

.p-goal .bar {
  background: var(--teal);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-goal .cbx {
  width: 16px;
  height: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  flex: none;
}

/* --- 表格 --- */
.p-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }

.p-tbl th {
  background: var(--teal2);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .2em;
  padding: 12px 10px;
  text-align: center;
}

.p-tbl th:nth-child(1) { width: 27%; }
.p-tbl th:nth-child(2) { width: 41%; }
.p-tbl th:nth-child(3) { width: 32%; }

.p-tbl td { padding: 19px 13px; vertical-align: middle; border-bottom: 3px solid #fff; }

.p-tbl tr:nth-child(even) td { background: #CDCCCC; }
.p-tbl tr:nth-child(odd) td { background: #E8E7E6; }

.p-tbl .nm { font-size: 15px; font-weight: 800; text-align: center; line-height: 1.45; }
.p-tbl .ds { font-size: 13px; line-height: 1.6; }
.p-tbl .gd { text-align: center; white-space: nowrap; }

.p-tbl .g {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  margin: 0 7px;
}

.p-tbl .g.on { font-weight: 900; color: var(--red); }

/* --- 心理 --- */
.p-psy-row { display: flex; align-items: center; gap: 18px; padding: 26px 0; }

.p-psy-dot {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
  letter-spacing: .04em;
}

.p-psy-txt { flex: 1; font-size: 16px; font-weight: 700; line-height: 1.5; }

.p-psy-txt .u { color: var(--red); font-weight: 900; border-bottom: 1px solid var(--red); padding: 0 6px; }

/* --- 综合能力 --- */
.p-box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.p-box {
  border: 1.2px solid var(--ink);
  min-height: 176px;
  position: relative;
  padding: 50px 14px 12px;
  font-size: 12.5px;
  line-height: 1.75;
}

.p-box .btag {
  position: absolute;
  top: 10px;
  left: 28px;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 3px 10px;
  letter-spacing: .04em;
}

.p-box.short .btag { background: var(--lime); color: #2A2A18; }
.p-box.long { border-width: 1.4px; }
.p-box.long .btag { background: var(--green); color: #fff; }

.p-box .txt { font-size: 12.5px; line-height: 1.8; color: #2A211E; }

.p-box .p-time {
  margin-top: 8px;
  padding: 5px 9px;
  background: rgba(0,179,196, .08);
  border-left: 3px solid var(--teal);
  font-size: 12px;
  line-height: 1.6;
  color: #1E6E7A;
  font-weight: 600;
}
.p-box.long .p-time { border-left-color: var(--green); color: #2F6B33; background: rgba(76, 175, 80, .08); }

.p-courses { margin-top: 20px; font-size: 13px; line-height: 2.15; }

.p-courses .row { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }

.p-courses .grp { font-weight: 900; font-size: 14px; white-space: nowrap; }

.p-courses .ci {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  margin-right: 10px;
}

.p-courses .ci .cb { width: 14px; height: 14px; }

.p-comment {
  margin-top: 22px;
  border: 1.2px solid var(--ink);
  padding: 14px 16px 16px;
  font-size: 12.5px;
  line-height: 1.9;
  min-height: 186px;
}

.p-comment b { display: block; font-size: 14px; margin-bottom: 6px; letter-spacing: .04em; }

.sheet-foot {
  position: absolute;
  bottom: 14px;
  left: 50px;
  right: 50px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #A8A3A0;
  letter-spacing: .06em;
}

/* 生成提示条 */
.notice {
  font-size: 12px;
  line-height: 1.6;
  padding: 9px 12px;
  border-left: 3px solid var(--red);
  background: #FFF6F5;
  color: #7A3730;
  margin: 0 0 14px;
}

.notice.hide { display: none; }

/* 分享区 */
.share-bar {
  background: #F0FAFB;
  border: 1px dashed #A8E3EA;
  padding: 13px 14px;
  margin-bottom: 16px;
  font-size: 12.5px;
  line-height: 1.7;
}

.share-bar .link {
  word-break: break-all;
  color: var(--teal2);
  font-weight: 600;
  margin: 6px 0 9px;
  font-size: 11.5px;
}

.share-bar .ops { display: flex; gap: 8px; flex-wrap: wrap; }

/* 老师编辑模式（仅限：综合评语 / 综合能力评估小字 / 课程勾选） */
.edit-bar {
  font-size: 12.5px;
  line-height: 1.7;
  padding: 10px 12px;
  border-left: 3px solid #F0B429;
  background: #FFF9EC;
  color: #7A5B16;
  margin-bottom: 14px;
}

.edit-bar.hide { display: none; }

body.editing .cmt-txt,
body.editing .p-box .txt {
  outline: 1.5px dashed #F0B429;
  outline-offset: 3px;
  cursor: text;
  min-height: 1em;
  display: block;
}

body.editing .cmt-txt:focus,
body.editing .p-box .txt:focus { outline-color: #00B3C4; }

body.editing .p-courses .ci { cursor: pointer; border-radius: 3px; }
body.editing .p-courses .ci:hover { background: #FFF9EC; }

/* 综合能力评估页排版收紧：内容不得压住页脚水印 */
.p-comp .p-sub-head { margin-top: 13px; }
.p-comp .p-box-grid { gap: 13px; }
.p-comp .p-box { min-height: 148px; padding-top: 46px; }
.p-comp .p-courses { margin-top: 12px; font-size: 12.5px; line-height: 2.05; }

/* 桌面 */
@media (min-width: 700px) {
  .app { max-width: 760px; }
  .view { padding: 26px 30px 130px; }
  .actions { max-width: 760px; padding: 14px 30px 16px; }
  .cover h1 { font-size: 46px; }
  .goal-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------- 打印 ---------------- */
@page { size: A4; margin: 0; }

@media print {
  body { background: #fff; }
  body::before { display: none; }
  .topbar, .actions, .report-top, .share-bar, .notice, .no-print { display: none !important; }
  .app { max-width: none; box-shadow: none; }
  .view { padding: 0; }
  #reportArea { gap: 0; display: block; }
  .sheet-holder { width: 794px !important; height: 1123px !important; overflow: visible; page-break-after: always; }
  .sheet { transform: none !important; box-shadow: none; page-break-after: always; }
  .sheet:last-child { page-break-after: auto; }
  /* 打印时抹掉编辑痕迹 */
  body.editing .cmt-txt,
  body.editing .p-box .txt { outline: none !important; }
  .edit-bar { display: none !important; }
}

/* ---------------- 小屏适配 ---------------- */
@media (max-width: 520px) {
  .dim-row { flex-wrap: wrap; }
  .dim-side {
    width: 100%;
    padding-left: 40px;
    justify-content: flex-end;
    margin-top: 8px;
  }
  .psy-row { flex-wrap: wrap; row-gap: 8px; }
  .psy-side { width: 100%; padding-left: 66px; justify-content: flex-end; }
  .tbl th { letter-spacing: .06em; font-size: 12px; padding: 8px 4px; }
  .tbl .grade { width: 24px; height: 24px; font-size: 11.5px; }
  .cover h1 { font-size: 36px; }
  .lead { font-size: 23px; }
  .sec-num { width: 36px; font-size: 22px; }
  .sec-bar { font-size: 17px; padding: 6px 9px; }
  .sec-note { font-size: 10.5px; margin-left: 6px; }
  .p-psy-row .eval-line { display: flex; align-items: center; gap: 6px; }
}
.dim-side, .psy-side { display: flex; align-items: center; gap: 7px; }
.p-psy-row .eval-line { display: flex; align-items: center; gap: 6px; }

/* --- 五维综合评级条 --- */
.p-radar-sum {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.2px solid var(--ink);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 6px;
}
.p-radar-sum .lbl {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
}
.p-radar-sum .lv {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background: var(--red);
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.p-radar-sum .txt { font-size: 12.5px; line-height: 1.75; color: #2C2320; }
.p-radar-sum .txt b { color: var(--red); font-weight: 900; }
.p-radar-sum .txt .sep { margin: 0 7px; color: #B9B2AE; }

/* 表单页：评价标签不再重复显示已选等级（按钮本身即选态） */
.eval-tag .eval-box[data-box],
.eval-tag .eval-box[data-pbox] { display: none; }
