/* 结构分析卡片样式：移植自甲方 2026-11-04 工作台样板（structureAnalysisHtml） */
.analysis-mode { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; font-size: 12px; color: var(--text-muted); }
.analysis-mode .mode-badge { color: #7A5A1F; background: #FAF3E4; border: 1px solid #EBD9B4; border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.analysis-mode .mode-badge.timed { color: #247552; background: #EFF9F3; border-color: #C9E8D6; }
.awindow { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: #FCFBF8; }
.awindow.overall { border-color: #D8C9E9; background: #FAF8FD; }
.awhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.awtime { font-size: 13px; font-weight: 700; color: var(--text); }
.awrole { font-size: 11px; color: var(--brand-text); background: var(--brand-soft); border-radius: 999px; padding: 2px 9px; }
.awconfidence { margin-left: auto; font-size: 11px; color: var(--text-muted); }
.awrow { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; font-size: 12.5px; line-height: 1.75; margin-top: 6px; }
.awrow b { color: var(--text-muted); font-weight: 500; }
.awquote { margin-top: 10px; border-left: 3px solid #CDBBE2; padding: 7px 10px; background: var(--surface); border-radius: 0 8px 8px 0; font-size: 12px; line-height: 1.75; color: #514A5B; }
.awquote span { display: block; color: #3E9B6C; font-size: 11px; font-weight: 600; margin-bottom: 2px; }
.awcontext { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--border); }
.analysis-note { color: #7A5A1F; background: #FFFCF5; border: 1px solid #EBD9B4; border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.75; margin-bottom: 12px; }
.awsection-title { font-size: 15px; font-weight: 650; color: var(--text); margin-bottom: 10px; }
.awbadges { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.awbadge { display: inline-flex; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); font-size: 11px; line-height: 1.6; }
.awcheck { color: #247552; }
.awsubsection { margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--text); }
.awsummary { font-size: 12.5px; line-height: 1.75; color: var(--text); }
.awtimeline { margin-top: 10px; border-left: 2px solid #DDD3E8; padding-left: 12px; }
.awsegment, .awlayer, .awshot { position: relative; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.awsegment:last-child, .awlayer:last-child, .awshot:last-child { border-bottom: none; }
.awdetails { margin-top: 6px; font-size: 11px; color: var(--brand-text); }
.awdetails summary { cursor: pointer; user-select: none; }
.awinline { margin-top: 6px; padding: 7px 9px; border-radius: 8px; background: #F4F0F8; font-size: 12px; line-height: 1.65; }
.awinline b { margin-right: 7px; color: var(--brand-text); font-weight: 500; }
.awmuted { margin-top: 6px; color: var(--text-muted); font-size: 11px; line-height: 1.6; }
.awverdict { margin-left: auto; border-radius: 999px; padding: 2px 8px; font-size: 11px; background: #F2F0F4; color: var(--text-muted); }
.awverdict.pass { color: #247552; background: #EFF9F3; }
.awverdict.weak { color: #7A5A1F; background: #FAF3E4; }
.awverdict.missing { color: #A34B4B; background: #FFF1F1; }
.awrisk { margin-top: 8px; padding: 9px 10px; border-radius: 8px; background: #FFF8F2; font-size: 12px; line-height: 1.65; }
.awrisk b, .awrisk span { display: block; }
.awrisk span { color: #7A5A1F; margin-top: 3px; }
.awlist { margin: 8px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.8; color: var(--text); }
.awindow.coach { container-type: inline-size; }
.awsection-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 14px; }
.awsection-head .awsection-title, .awsection-head .awbadges { margin: 0; }
.awcoach-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.awcoach-card { min-width: 0; padding: 14px; border: 1px solid #E4DCEB; border-radius: 10px; background: var(--surface); }
.awcoach-card > b { display: block; margin-bottom: 8px; color: var(--brand-text); font-size: 12px; font-weight: 650; }
.awcoach-card p { font-size: 13px; line-height: 1.8; color: var(--text); overflow-wrap: anywhere; }
.awcoach-card.hook { grid-column: 1 / -1; border-left: 3px solid #B79BD3; }
.awcoach-card.framework { grid-column: 1 / -1; padding: 16px; border-color: #D8C9E9; background: #FCFBFE; }
.awframework-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.awframework-head b { color: var(--brand-text); font-size: 12px; font-weight: 650; }
.awframework-head b span { margin-left: 6px; color: var(--text-muted); font-weight: 400; }
.awframework-pattern { flex: none; padding: 3px 9px; border: 1px solid #DED1EA; border-radius: 999px; background: var(--surface); color: var(--brand-text); font-size: 11px; font-weight: 600; }
.awframework-chain { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; padding: 0; list-style: none; }
.awframework-chain li { display: flex; align-items: center; min-width: 0; gap: 6px; padding: 7px 10px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-text); font-size: 12px; line-height: 1.5; }
.awframework-chain li > span { flex: none; font-size: 10px; font-weight: 700; opacity: .65; }
.awframework-chain li strong { font-weight: 650; overflow-wrap: anywhere; }
.awframework-chain li:not(:last-child)::after { content: '→'; margin-left: 3px; color: #A58ABD; }
.awframework-details { display: grid; grid-template-columns: 1fr; gap: 12px; }
.awframework-note { padding-top: 10px; border-top: 1px solid #E8E0EE; }
.awframework-note b { display: block; margin-bottom: 4px; color: var(--text-muted); font-size: 11px; font-weight: 500; }
.awframework-note p { font-size: 12.5px; line-height: 1.75; }
.awoutline { margin: 12px 0; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 8px; background: var(--surface); }
.awstage { padding: 12px 0; border-bottom: 1px solid var(--border); }
.awstage:last-child { border-bottom: none; }
.awstage-title { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.awstage-title span { color: var(--brand-text); font-size: 11px; font-weight: 600; }
.awstage-summary { margin-top: 5px; color: var(--text-muted); font-size: 12px; line-height: 1.7; }
.awcoach-notes { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.awcoach-notes .awrow { display: block; margin: 0; }
.awcoach-notes .awrow b { display: block; margin-bottom: 4px; }
@container (min-width: 760px) {
  .awcoach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .awcoach-card.hook { grid-column: auto; }
  .awframework-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awcoach-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .awcoach-grid, .awcoach-notes { grid-template-columns: 1fr; }
  .awcoach-card.hook { grid-column: auto; }
  .awsection-head { align-items: flex-start; }
}
/* 新 skill 增加的两张卡：编导复用蓝图、运营要点 */
.awshot .awsummary { margin-top: 2px; }
.awshot .awrow { margin-top: 4px; }
.awshot-no { font-size: 11px; color: var(--text-muted); }
.awindow .awlist li { overflow-wrap: anywhere; }
.awindow .awsubsection:first-of-type { margin-top: 14px; }
/* 只有一条说明（如仅有复用公式）时占满整行，不留右侧空白 */
.awframework-note:only-child { grid-column: 1 / -1; }
/* 最终结果逐块出现 */
.wb-reveal { opacity: 0; animation: wbRevealIn .45s ease forwards; }
@keyframes wbRevealIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .wb-reveal { opacity: 1; animation: none; } }
/* 痛点代入 / 钩子手法 / 行动收束：固定上下排列，不再分三栏 */
.awindow.coach .awcoach-notes { grid-template-columns: 1fr; gap: 14px; }
