:root {
  --ink: #18232b;
  --muted: #66747b;
  --line: #dce3e4;
  --paper: #f7f9f7;
  --panel: #ffffff;
  --teal: #147d78;
  --teal-dark: #0b5f5a;
  --amber: #c7822a;
  --soft-teal: #e7f3f1;
  --soft-amber: #fff3df;
  --shadow: 0 12px 34px rgba(24, 35, 43, .07);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 "Segoe UI", "Microsoft YaHei", sans-serif; }
.topbar { height: 68px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 700; letter-spacing: .01em; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 7px; font-size: 11px; letter-spacing: .08em; }
.topbar-note { color: var(--muted); font-size: 13px; }
.shell { width: min(1120px, 90vw); margin: 0 auto; padding: 58px 0 72px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.eyebrow { margin: 0 0 8px; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 660px; margin-bottom: 13px; font-size: clamp(29px, 4vw, 48px); line-height: 1.12; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: 23px; line-height: 1.2; }
h3 { margin-bottom: 0; font-size: 18px; }
.lede { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 16px; }
.protocol { min-width: 270px; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-left: 3px solid var(--amber); color: var(--muted); background: var(--soft-amber); font-size: 12px; }
.protocol strong { color: var(--ink); font-size: 13px; }
.protocol-dot { width: 7px; height: 7px; margin-top: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--amber); }
.workspace-panel, .status-panel, .report-section { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.workspace-panel { padding: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-head h2 { margin: 0; }
.format-note, .privacy-note, .metric-note { color: var(--muted); font-size: 12px; }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.upload-box { min-height: 206px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; border: 1px dashed #aebfc0; background: #fbfdfc; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.upload-box:hover, .upload-box:focus-within { border-color: var(--teal); background: var(--soft-teal); transform: translateY(-2px); }
.upload-index { position: absolute; top: 18px; right: 20px; color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.upload-title { font-size: 20px; font-weight: 700; }
.upload-subtitle { margin-top: 3px; color: var(--muted); }
.file-name { display: block; max-width: 100%; overflow: hidden; margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--teal-dark); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.upload-box input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; }
.privacy-note { margin: 0; }
button, a { font: inherit; }
button { cursor: pointer; }
.primary-button { display: inline-flex; align-items: center; gap: 18px; padding: 12px 18px; border: 0; border-radius: 5px; color: #fff; background: var(--teal); font-weight: 700; }
.primary-button:hover { background: var(--teal-dark); }
.status-panel { margin-top: 16px; padding: 18px 22px; }
.status-row { display: flex; justify-content: space-between; color: var(--ink); font-weight: 700; }
.progress-track { height: 6px; margin-top: 10px; overflow: hidden; background: #e8eeee; }
#progress-bar { width: 0; height: 100%; background: var(--teal); transition: width .35s ease; }
#status-message { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.results { margin-top: 48px; }
.result-head { margin-bottom: 21px; }
.result-actions { display: flex; align-items: center; gap: 14px; }
.text-button { color: var(--teal-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.quiet-button { padding: 7px 10px; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 13px; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { min-height: 116px; padding: 17px; border-top: 3px solid var(--teal); background: var(--panel); box-shadow: var(--shadow); }
.metric-label { display: block; color: var(--muted); font-size: 12px; }
.metric strong { display: block; margin: 8px 0 3px; font-size: 28px; line-height: 1; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pose-preview { margin-top: 16px; }
.student-feedback { margin: 24px 0 20px; padding: 22px 0; border-top: 3px solid var(--teal); border-bottom: 1px solid var(--line); }
#student-feedback-content { overflow-wrap: anywhere; line-height: 1.8; }
.ai-summary { margin-bottom: 16px; font-weight: 600; }
.ai-suggestion { padding: 16px 0; border-top: 1px solid var(--line); }
.ai-suggestion h4 { margin: 0 0 8px; font-size: 16px; }
.ai-suggestion p { margin: 8px 0; }
.ai-adjustment { color: var(--teal-dark); }
.ai-seek { margin-right: 8px; white-space: normal; text-align: left; }
.ai-state { margin: 0; color: var(--muted); }
.pose-canvas-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pose-canvas-grid > div { padding: 10px; background: #142126; color: #9fb2b4; font-size: 12px; }
.pose-canvas-grid canvas { display: block; width: 100%; height: auto; background: #0d1619; }
.pose-canvas-grid span { display: block; padding: 7px 2px 0; }
.video-card { overflow: hidden; background: #142126; box-shadow: var(--shadow); }
.video-label { display: flex; justify-content: space-between; padding: 11px 15px; color: #eaf2f2; font-size: 13px; }
.video-label span:last-child { max-width: 65%; overflow: hidden; color: #9fb2b4; text-overflow: ellipsis; white-space: nowrap; }
video { display: block; width: 100%; max-height: 370px; background: #0d1619; }
.report-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin-top: 16px; }
.report-section { padding: 23px; }
.compact { margin-bottom: 17px; }
.compact .eyebrow { margin-bottom: 4px; }
.count-badge { min-width: 27px; padding: 2px 7px; text-align: center; color: var(--teal-dark); background: var(--soft-teal); font-size: 12px; font-weight: 700; }
.finding { padding: 15px 0; border-top: 1px solid var(--line); }
.finding:first-child { border-top: 0; padding-top: 0; }
.finding-title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.finding-chip { padding: 2px 6px; color: var(--teal-dark); background: var(--soft-teal); font-size: 12px; }
.finding p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.finding-seek { margin-top: 10px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--teal-dark); background: #fff; font-size: 12px; }
.finding-seek:hover { border-color: var(--teal); background: var(--soft-teal); }
.judgement-note { margin: 0 0 14px; padding: 12px 14px; border-left: 3px solid #b66a28; color: #63370f; background: #fff2e6; font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 5px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.limitations { margin-top: 15px; padding: 16px 18px; color: var(--muted); background: #edf2f1; font-size: 12px; }
.limitations p { margin: 0 0 5px; font-weight: 700; color: var(--ink); }
.limitations ul { margin: 6px 0 0; padding-left: 18px; }
footer { padding: 22px 5vw; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.catalog-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.catalog-hero h1 { margin-bottom: 13px; }
.catalog-meta { min-width: 142px; padding: 12px 0 12px 18px; border-left: 3px solid var(--teal); color: var(--muted); }
.catalog-meta strong { display: block; color: var(--ink); font-size: 31px; line-height: 1; }
.catalog-meta span { display: block; margin-top: 6px; font-size: 12px; }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.category-card { min-height: 230px; grid-column: span 2; position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-top: 4px solid var(--teal); color: var(--ink); background: var(--panel); box-shadow: var(--shadow); text-align: left; transition: transform .2s, border-color .2s, box-shadow .2s; }
.category-card:nth-child(n + 4) { grid-column: span 3; min-height: 205px; }
.category-card:hover, .category-card:focus-visible { border-color: var(--teal); box-shadow: 0 15px 35px rgba(24, 35, 43, .12); transform: translateY(-3px); outline: none; }
.category-card.green { border-top-color: #478b63; }
.category-card.orange { border-top-color: var(--amber); }
.category-card.blue { border-top-color: #387da5; }
.category-card.purple { border-top-color: #765f9b; }
.card-index, .action-number { color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.category-card.green .card-index { color: #478b63; }
.category-card.orange .card-index { color: var(--amber); }
.category-card.blue .card-index { color: #387da5; }
.category-card.purple .card-index { color: #765f9b; }
.category-name { margin-top: 37px; font-size: 22px; font-weight: 700; line-height: 1.2; }
.category-description { max-width: 280px; margin-top: 9px; color: var(--muted); font-size: 13px; }
.category-footer { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.card-arrow { color: var(--teal); font-size: 20px; line-height: 1; }
.page-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 27px; }
.back-button { padding: 6px 0; border: 0; color: var(--teal-dark); background: transparent; font-size: 13px; font-weight: 700; }
.back-button:hover { color: var(--ink); }
.step-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.action-card { min-height: 174px; display: flex; flex-direction: column; align-items: flex-start; padding: 20px; border: 1px solid var(--line); color: var(--ink); background: var(--panel); text-align: left; transition: transform .2s, border-color .2s, box-shadow .2s; }
.action-card:hover, .action-card:focus-visible { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); outline: none; }
.action-card.available { border-color: #8ac5c0; background: var(--soft-teal); }
.action-card.available .action-status { color: var(--teal-dark); }
.action-name { margin-top: 31px; font-size: 20px; font-weight: 700; line-height: 1.2; }
.action-detail { min-height: 40px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.action-status { margin-top: auto; padding-top: 17px; color: var(--muted); font-size: 12px; font-weight: 700; }
.coming-view { min-height: 560px; }
.coming-view .page-nav { margin-bottom: 48px; }
.coming-panel { max-width: 700px; padding: 50px 0 66px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.coming-mark { display: block; margin-bottom: 18px; color: var(--amber); font-size: 42px; letter-spacing: .18em; line-height: .55; }
.coming-panel h1 { margin-bottom: 15px; }
.coming-actions { display: flex; align-items: center; gap: 17px; margin-top: 30px; }
.coming-actions .quiet-button { padding: 11px 13px; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(20, 125, 120, .28); outline-offset: 3px; }
@media (max-width: 760px) {
  .topbar { padding: 0 5vw; }
  .topbar-note { display: none; }
  .shell { width: 90vw; padding-top: 38px; }
  .intro, .form-actions { align-items: stretch; flex-direction: column; }
  .protocol { min-width: 0; }
  .upload-grid, .video-grid, .report-grid, .pose-canvas-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-head { align-items: flex-start; flex-direction: column; }
  .workspace-panel { padding: 21px; }
  .primary-button { justify-content: center; }
  .catalog-hero { align-items: stretch; flex-direction: column; gap: 24px; }
  .catalog-meta { min-width: 0; }
  .category-grid, .action-grid { grid-template-columns: 1fr; }
  .category-card, .category-card:nth-child(n + 4) { grid-column: auto; min-height: 190px; }
  .action-card { min-height: 155px; }
  .coming-panel { padding: 38px 0 48px; }
  .coming-actions { align-items: stretch; flex-direction: column; }
  .coming-actions button { width: 100%; }
}
