/* 板块 5 · 练习页（AI 模拟面试官）：对话气泡、作答框、轮次页上的「练一练」块；只用设计令牌 */
.p-chat { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.p-msg { max-width: min(88%, 640px); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface-2); display: grid; gap: 4px; }
.p-msg--iv { justify-self: start; border-top-left-radius: var(--r-sm); }
.p-msg--me { justify-self: end; background: var(--primary-soft); border-color: transparent; color: var(--text); border-top-right-radius: var(--r-sm); }
.p-msg__who { font-size: var(--fs-xs); color: var(--text-3); font-weight: 600; }
.p-msg--me .p-msg__who { color: var(--primary-soft-fg); }
.p-msg__text { white-space: pre-wrap; overflow-wrap: anywhere; line-height: var(--lh); }
.p-msg.is-streaming .p-msg__text::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--primary); border-radius: 1px; animation: p-blink 1s steps(2) infinite; }
@keyframes p-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .p-msg.is-streaming .p-msg__text::after { animation: none; } }
.m-target { margin: var(--sp-1) 0 0; font-size: var(--fs-sm); color: var(--warn); display: flex; gap: 6px; align-items: flex-start; }
.m-target .ico { margin-top: 2px; flex: none; }
.p-status { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); color: var(--text-2); font-size: var(--fs-md); }
.p-status[hidden] { display: none; }
.p-answer { display: grid; gap: var(--sp-3); }
.p-answer textarea { min-height: 7.5em; resize: vertical; }
@media (max-width: 640px) {
  .p-msg { max-width: 94%; }
}

/* 二：复盘里每道题的「再练这一题 / 帮我改写」、改写结果、成长页的薄弱点 */

/* 五：成长页（次数、每个维度的小折线、薄弱点） */
.g-dims { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-4); margin-top: var(--sp-3); }
.g-dim { border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3); }
.g-dim__head { display: flex; align-items: baseline; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.g-dim__head b { font-size: var(--fs-md); }
.g-last { margin-left: auto; font-weight: 700; font-size: var(--fs-lg); }
.g-delta { font-size: var(--fs-xs); color: var(--text-3); }
.g-delta.is-up { color: var(--ok); }
.g-delta.is-down { color: var(--danger); }
.g-chart { display: block; width: 100%; height: auto; overflow: visible; }
.g-grid { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.g-line { fill: none; stroke: var(--primary); stroke-width: 2; vector-effect: non-scaling-stroke; }
.g-pt { stroke: var(--primary); stroke-width: 2; vector-effect: non-scaling-stroke; }
.g-pt--practice { fill: var(--primary); }
.g-pt--review { fill: var(--surface); }
.g-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-left: var(--sp-3); }
.g-legend i:not(:first-child) { margin-left: var(--sp-2); }
.g-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--primary); }
.g-legend i.g-pt--practice { background: var(--primary); }
.g-legend i.g-pt--review { background: var(--surface); }

/* ================= 板块 13b：成长与练习 ================= */
#scores > h2 .g-legend { margin-left: auto; font-size: var(--fs-xs); font-weight: 500; color: var(--text-3); }
.g-intro { margin: calc(-1 * var(--sp-2)) 0 var(--sp-4); }
/* 每个维度一块：名字 + 变化 + 最新分（大号等宽），下面一条带面积的折线 */
.g-dims { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--sp-3); margin-top: 0; }
.g-dim { padding: var(--sp-4) var(--sp-4) var(--sp-3); border-radius: var(--r-lg); background: var(--surface-2); border-color: var(--border); color: var(--primary); animation: k-rise var(--dur-3) var(--ease-out) both; animation-delay: calc(140ms + var(--i, 0) * 60ms); }
.g-dim__head { align-items: baseline; color: var(--text); }
.g-dim__head b { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.g-last { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -.03em; color: var(--text); line-height: 1; }
.g-delta { font-weight: 600; }
.g-delta.is-up { color: var(--primary); }
.g-chart { margin-top: var(--sp-2); height: 92px; }
.g-grid { stroke: var(--line); }
.g-area { stroke: none; }
.g-line { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; animation: g-draw 1.4s var(--ease-out) both .2s; }
@keyframes g-draw { from { stroke-dashoffset: 1; } }
.g-pt { stroke: currentColor; }
.g-pt--review { fill: var(--surface-2); }
.g-pt--practice { fill: currentColor; }
.g-pt.is-last { fill: currentColor; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--brand-glow) 80%, transparent)); }
.g-legend i { border-color: var(--primary); }
/* 薄弱点：左边一个状态点（还在练 = 暖色，已改善 = 青色） */

/* ================= 板块 13b：练习页（AI 模拟面试）和练习反馈 ================= */
.p-chat { gap: var(--sp-4); }
/* 对话气泡：考官在左（带头像），你在右（青底） */
.p-msg { position: relative; padding: 12px 16px; border-radius: 4px var(--r-lg) var(--r-lg) var(--r-lg); line-height: 1.7; box-shadow: var(--sh-sm); }
.p-msg--iv { margin-left: 44px; background: var(--surface-2); }
.p-msg--iv::before { content: ""; position: absolute; left: -44px; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-strong); box-shadow: inset 0 -10px 14px -8px color-mix(in srgb, var(--text) 18%, transparent); }
.p-msg--iv::after { content: "AI"; position: absolute; left: -44px; top: 0; width: 32px; height: 32px; display: grid; place-items: center; font: 650 11px/1 var(--mono); color: var(--text-2); }
.p-msg--me { border-radius: var(--r-lg) 4px var(--r-lg) var(--r-lg); background: var(--primary-soft); }
.p-msg__who { letter-spacing: .02em; }
/* 反馈：复盘那一套（大号平均分 + 维度条 + 逐题批注左侧色条） */
#feedback > h2 .ico { color: var(--primary); }
#feedback > h2 { font-size: var(--fs-lg); letter-spacing: -.01em; margin-bottom: var(--sp-5); }
.p-answer textarea { background: var(--surface-2); }
.p-mode__wall { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; color: var(--text-3); text-decoration: none; font-size: var(--fs-sm); }
.p-mode__wall:hover { color: var(--primary); }
