/* ==========================================================
   配色取自大赛海报：主蓝 #255afd，飘带的亮绿 / 青 / 橙 / 紫 / 黄
   ========================================================== */
:root {
  --blue-950: #04158a;
  --blue-900: #0a2bd0;
  --blue-700: #1246e0;
  --blue-600: #1f5cf5;
  --blue-500: #255afd;
  --blue-400: #4f8bff;
  --blue-300: #97b6fc;
  --blue-100: #e6edff;
  --blue-050: #f3f6fe;

  --ink: #0f1a4d;
  --muted: #5a6690;
  --line: #dfe6fb;
  --card: #ffffff;

  --r-green: #22d98a;
  --r-lime: #b9f04a;
  --r-yellow: #ffe93b;
  --r-orange: #ff8a2b;
  --r-coral: #ff6a3d;
  --r-purple: #b796f4;
  --r-cyan: #35d3e6;
  --r-teal: #1ed3b4;

  --gold: #a8560a;
  --gold-bg: #fff3dc;
  --silver: #4d5872;
  --silver-bg: #eaeef7;
  --gray-bg: #eef1f8;
  --ok: #0c8a63;
  --ok-bg: #e3f8ee;
  --warn: #c2251a;
  --warn-bg: #fdecea;

  --radius: 14px;
  --shadow: 0 2px 4px rgba(10, 43, 208, 0.06), 0 10px 28px rgba(10, 43, 208, 0.08);
  --grad-brand: linear-gradient(135deg, #255afd 0%, #2f8cff 60%, #35d3e6 130%);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--blue-050);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); }
h2 { font-size: 16px; margin: 0 0 10px; }
p { margin: 0; }

.container { max-width: 1320px; margin: 0 auto; padding: 26px 28px 48px; }

/* 页头 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #e0e7f3;
}
.topbar-inner {
  max-width: 1220px;
  margin: auto;
  padding: 0 28px;
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
}
.brand { display: grid; gap: 2px; color: #162a52; line-height: 1.25; }
.brand span { color: #56708f; font-size: .75rem; letter-spacing: .12em; font-weight: 650; }
.brand strong { color: #142a55; font-size: 1.12rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.topbar .tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid #e1e9f7;
  border-radius: 11px;
  background: #f0f4fb;
}
.topbar .tabs a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 7px;
  color: #435a7a;
  font-size: .925rem;
  font-weight: 650;
  white-space: nowrap;
}
.topbar .tabs a:hover { color: #153fb0; background: #e1eafa; text-decoration: none; }
.topbar .tabs a.active { color: #fff; background: #1946ba; }
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.hero-inner { position: relative; z-index: 2; padding-top: 0; padding-bottom: 0; }
.hero-context { margin-bottom: 10px; color: #c3d9ff; font-size: .95rem; font-weight: 650; letter-spacing: .11em; }
.hero h1 { margin: 0 0 9px; color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 850; line-height: 1.12; }
.hero-sub { max-width: 36em; color: #e5efff; font-size: 1rem; line-height: 1.65; }
.works-hero { padding: 27px 0 30px; background: linear-gradient(105deg,#132a87 6%,#1942ba 70%,#285cf1); }
.works-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28%;
  height: 100%;
  background: radial-gradient(circle,#c5eaff73 1px,transparent 1.5px) 0 0 / 12px 12px;
  mask-image: linear-gradient(125deg,transparent 25%,#000 100%);
  pointer-events: none;
}
.hero-art { position: absolute; right: 0; bottom: -10%; width: min(39%, 540px); height: 107%; pointer-events: none; }
.hero-art i { position: absolute; width: 112%; height: 64%; right: -15%; bottom: 4%; transform: rotate(-24deg);
  clip-path: polygon(0 60%,11% 69%,23% 73%,36% 70%,49% 62%,61% 49%,73% 31%,87% 13%,100% 0,100% 30%,88% 39%,75% 52%,63% 66%,50% 77%,36% 86%,23% 89%,11% 83%,0 72%);
}
.hero-art i:nth-child(1) { background: linear-gradient(115deg, #1ec3df22, #56e8fb); }
.hero-art i:nth-child(2) { bottom: -3%; right: -18%; transform: rotate(-20deg); background: linear-gradient(115deg,#5ce4bb18,#62df97 55%,#d4f475); }
.hero-art i:nth-child(3) { bottom: 17%; right: -31%; height: 44%; transform: rotate(-26deg); background: linear-gradient(115deg,#887cf617,#bc98f0); }
.hero-art i:nth-child(4) { bottom: -14%; right: -33%; height: 40%; transform: rotate(-24deg); background: linear-gradient(115deg,#ff88362b,#ffb74d); }
.hero-entry { display: inline-flex; align-items: center; min-height: 38px; margin-top: 14px; padding: 0 13px; border: 1px solid #ffffff77; background: #fff; color: #163785; border-radius: 8px; font-weight: 720; }
.hero-entry:hover { background: #e9f2ff; text-decoration: none; }
.workbench-hero { padding: 21px 0 25px; background: linear-gradient(110deg,#132a87,#1846b4); }
.workbench-hero h1 { font-size: clamp(1.85rem, 3.75vw, 2.55rem); }

/* ---------- 通用 ---------- */
.view[hidden] { display: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

.btn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover:not(:disabled) { border-color: var(--blue-300); background: var(--blue-100); }
.btn:disabled { color: #a3abc4; cursor: not-allowed; }
.btn.primary {
  background: var(--grad-brand);
  border: 0;
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 90, 253, 0.3);
}
.btn.primary:hover:not(:disabled) { background: linear-gradient(135deg, #1f4fe6 0%, #2f8cff 60%, #4be0f0 130%); transform: translateY(-1px); }
.btn.primary.wide { width: 100%; padding: 12px; font-size: 15.5px; }
.btn.ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.42); color: #fff; }
.btn.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); border-color: #fff; }
.modal .btn.ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.modal .btn.ghost:hover:not(:disabled) { background: var(--blue-100); border-color: var(--blue-300); }
.btn.small { padding: 4px 12px; font-size: 13px; border-radius: 8px; }
.btn.busy { opacity: 0.7; cursor: progress; }

.linklike {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue-600);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.linklike:hover { text-decoration: underline; }

.input, select, textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
.input:focus, select:focus, textarea:focus { outline: 3px solid var(--blue-100); border-color: var(--blue-500); }
textarea { resize: vertical; }
.field-label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }

.notice {
  display: flex;
  gap: 12px;
  padding: 13px 18px;
  margin-bottom: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid;
  border-image: linear-gradient(180deg, var(--r-green), var(--blue-500), var(--r-purple)) 1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.notice strong { white-space: nowrap; }

.banner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
  padding: 11px 18px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #fff6d9, #fffbe9);
  color: #7a5a00;
  border: 1px solid #f3dfa0;
  border-radius: var(--radius);
}
.banner .linklike { color: #a8690a; }
.banner[hidden] { display: none; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- 作品库 ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-bottom: 20px;
}
.filters .input { width: 290px; background: var(--card); }
.chip-group { display: flex; align-items: center; gap: 6px; }
.chip-label { font-size: .875rem; color: var(--muted); margin-right: 2px; }
.chip {
  min-height: 34px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { border-color: var(--blue-300); }
.chip.active {
  background: #1946ba;
  border-color: #1946ba;
  color: #fff;
  font-weight: 600;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 18px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.18s, transform 0.18s;
}
/* 顶部赛道色条：成长绿、就业橙、未标注紫 */
.work-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--r-purple), var(--r-cyan));
}
.work-card[data-track="growth"]::before { background: linear-gradient(90deg, var(--r-teal), var(--r-green) 55%, var(--r-lime)); }
.work-card[data-track="employ"]::before { background: linear-gradient(90deg, var(--r-coral), var(--r-orange) 55%, var(--r-yellow)); }
.work-card::after {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-100) 0%, transparent 70%);
  pointer-events: none;
}
.work-card:hover { box-shadow: 0 6px 12px rgba(10, 43, 208, 0.1), 0 18px 40px rgba(10, 43, 208, 0.14); transform: translateY(-2px); }
.work-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.badge {
  padding: 2px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge.gold { background: linear-gradient(135deg, #ffb02e, #ff7a1a); color: #fff; box-shadow: 0 3px 8px rgba(255, 138, 43, 0.35); }
.badge.silver { background: linear-gradient(135deg, #8793ad, #556079); color: #fff; }
.badge.unknown { background: var(--gray-bg); color: var(--muted); font-weight: 600; }
.badge.plain { background: var(--blue-100); color: var(--blue-700); font-weight: 600; }
.work-title { font-size: 17.5px; font-weight: 800; line-height: 1.4; margin-bottom: 4px; }
.work-level { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.work-meta { display: grid; grid-template-columns: 52px 1fr; gap: 2px 8px; font-size: 13.5px; margin-bottom: 14px; }
.work-meta dt { color: var(--muted); }
.work-meta dd { margin: 0; }
.work-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.work-up { color: var(--muted); font-size: 13px; }

.source-block { margin-top: 40px; }
.source-block h2 { font-size: 18px; }
.source-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.link-list { list-style: none; margin: 12px 0 0; padding: 0; }
.link-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.link-list a { font-weight: 700; }
.link-list .meta { color: var(--muted); font-size: 13px; }

/* 作品弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  background: rgba(4, 21, 138, 0.55);
  backdrop-filter: blur(3px);
  overflow: auto;
}
.modal {
  width: min(960px, 100%);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(4, 21, 138, 0.35);
  overflow: hidden;
}
.modal::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--r-teal), var(--r-green) 25%, var(--r-yellow) 50%, var(--r-orange) 75%, var(--r-purple));
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 22px 12px; }
.modal-head h3 { font-size: 20px; margin: 0; }
.player-wrap { position: relative; aspect-ratio: 16 / 9; background: #000; margin: 0 22px; border-radius: 10px; overflow: hidden; }
.player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal-body { padding: 16px 22px 22px; }
.modal-body h4 { margin: 16px 0 6px; font-size: 15px; }
.modal-body ul { margin: 0; padding-left: 20px; }
.modal-body li { margin-bottom: 4px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- AI 诊断 ---------- */
.ai-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: start; }
.setup, .results { padding: 22px; position: relative; }
.setup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-brand);
}
.setup h2 { display: flex; align-items: center; gap: 8px; margin-top: 26px; }
.setup h2:first-child { margin-top: 0; }
.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
}
.optional { font-size: 12.5px; font-weight: 400; color: var(--muted); }

.track-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.track-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.track-card:has(input:checked) { border-color: var(--blue-500); background: linear-gradient(135deg, #eef2ff, #f4fbff); box-shadow: 0 4px 14px rgba(37, 90, 253, 0.14); }
.track-card input { position: absolute; opacity: 0; pointer-events: none; }
.track-name { font-weight: 800; }
.track-sub { font-size: 12.5px; color: var(--muted); }

.rubric { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rubric th, .rubric td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.rubric th { color: var(--muted); font-weight: 600; border-top: 0; }
.rubric td:last-child { width: 48px; text-align: right; font-weight: 800; color: var(--blue-700); }
.rubric tfoot td { font-weight: 800; color: var(--ink); }
.rubric-meta { line-height: 1.7; margin: 6px 0 22px; }
.rubric-meta strong { color: var(--ink); font-weight: 700; margin-right: 4px; }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 22px 12px;
  border: 1.5px dashed #b9c6f5;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8faff, #f3f6fe);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--blue-500); background: var(--blue-100); }
.dropzone.small { padding: 12px; margin-top: 10px; }
.dz-title { font-weight: 700; }
.dz-sub { font-size: 12.5px; color: var(--muted); }

.deck-summary { margin-top: 10px; padding: 10px 12px; background: var(--ok-bg); color: var(--ok); border-radius: 10px; font-size: 13.5px; }
.deck-summary.warn { background: var(--warn-bg); color: var(--warn); }
#deck-outline-wrap { margin-top: 8px; font-size: 13px; }
#deck-outline-wrap summary { cursor: pointer; color: var(--muted); }
.outline { max-height: 260px; overflow: auto; margin-top: 6px; padding-right: 6px; }
.outline details { padding: 4px 0; border-top: 1px solid var(--line); }
.outline summary { color: var(--ink); }
.outline pre { white-space: pre-wrap; margin: 4px 0 8px; color: var(--muted); font: inherit; font-size: 12.5px; }

.shot-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.shot { position: relative; width: 76px; height: 48px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 26, 77, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  padding: 0;
  cursor: pointer;
}

.actions { display: grid; gap: 8px; margin-top: 26px; }
.status { min-height: 22px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.status.err { color: var(--warn); }
.spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 6px;
  border: 2px solid var(--blue-500);
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.results { min-height: 720px; }
.result-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -22px -22px 20px; padding: 10px 22px 0; }
.tab {
  padding: 8px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.tab.active { color: var(--blue-600); border-bottom-color: var(--blue-500); }
.tabpane[hidden] { display: none; }
.tab-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }

.placeholder { padding: 90px 30px; text-align: center; color: var(--muted); }
.placeholder-title { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }

.score-hero { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 22px; }
.score-ring { position: relative; width: 150px; height: 150px; filter: drop-shadow(0 6px 14px rgba(37, 90, 253, 0.28)); }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring .num b { font-size: 40px; line-height: 1; color: var(--ink); }
.score-ring .num span { font-size: 12.5px; color: var(--muted); }
.score-band { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.score-overall { color: var(--ink); }
.score-model { color: var(--muted); font-size: 12.5px; margin-top: 6px; }

.dim { margin-bottom: 16px; }
.dim-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.dim-head span:last-child { white-space: nowrap; color: var(--muted); font-weight: 600; }
.bar { height: 9px; margin: 6px 0; background: var(--gray-bg); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; transition: width 0.6s ease; }
.dim p { font-size: 14px; margin-bottom: 2px; }
.dim .advice { color: var(--blue-700); }

.block { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.block > h3 { font-size: 16px; margin-bottom: 10px; }
.block ul { margin: 0; padding-left: 20px; }
.block li { margin-bottom: 6px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 9px 8px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-weight: 700; font-size: 13px; }
.table td.pg { white-space: nowrap; font-weight: 700; color: var(--blue-700); }
.sev { padding: 1px 9px; border-radius: 7px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.sev.高 { background: var(--warn-bg); color: var(--warn); }
.sev.中 { background: #fff1de; color: #b25a05; }
.sev.低 { background: var(--gray-bg); color: var(--muted); }
.table .old { color: var(--muted); }
.table .new { font-weight: 700; }

.copy-row { display: flex; justify-content: flex-end; margin-top: 12px; }

/* 追问对话 */
.chat { margin-top: 12px; }
.chat-log { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow: auto; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14px; }
.msg.user { align-self: flex-end; background: var(--grad-brand); color: #fff; white-space: pre-wrap; box-shadow: 0 4px 12px rgba(37, 90, 253, 0.25); }
.msg.ai { align-self: flex-start; background: var(--blue-050); border: 1px solid var(--line); }
.msg.ai p { margin-bottom: 6px; }
.msg.ai p:last-child { margin-bottom: 0; }
.msg.ai ul, .msg.ai ol { margin: 4px 0; padding-left: 20px; }
.msg.ai code { padding: 1px 5px; background: #e4e9f7; border-radius: 4px; font-size: 13px; }
.chat-form { display: flex; gap: 8px; margin-top: 12px; }
.chat-form .input { flex: 1; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

/* 版式检查 */
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.shot-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.shot-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--gray-bg); }
.shot-card .body { padding: 10px 12px; font-size: 14px; }
.shot-card .body h4 { margin: 0 0 4px; font-size: 14px; }
.shot-card ul { margin: 0; padding-left: 18px; }

/* 设置弹窗 */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 4px; }
.form-row .muted { font-size: 13px; margin-top: 4px; }
.form-row input[type="checkbox"] { margin-right: 6px; accent-color: var(--blue-500); width: 16px; height: 16px; vertical-align: -3px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 作品卡片：本校、国赛、铜奖 ---------- */
.badge.home { background: var(--ink); color: #fff; }
.badge.national { background: #fff6e3; color: #a8690a; border: 1px solid #ffd98a; }
.badge.bronze { background: linear-gradient(135deg, #e0a47a, #b9713f); color: #fff; }
.work-card.home { border-color: #bcd0ff; box-shadow: 0 0 0 3px rgba(37, 90, 253, 0.08), var(--shadow); }
.work-foot .btn { flex-shrink: 0; white-space: nowrap; }
.work-up { min-width: 0; overflow-wrap: anywhere; }
.deck-summary .linklike { font-weight: 800; }

/* ---------- PPT 原件查看 ---------- */
.modal.wide { width: min(1120px, 100%); }
.deck-stage { min-height: 90px; margin-top: 8px; }
.deck-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.deck-page { margin: 0; background: var(--gray-bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.deck-page img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
.deck-page figcaption { padding: 4px 10px 6px; font-size: 12.5px; color: var(--muted); }

/* ---------- 四川省赛获奖名录 ---------- */
.roster {
  margin-top: 44px;
  padding: 24px 22px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.roster-head h2 { font-size: 20px; margin-bottom: 6px; }
.roster-head .muted { margin-bottom: 14px; }
.roster-filters { margin-bottom: 12px; }
.roster-scroll { max-height: 540px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.roster-table th { position: sticky; top: 0; background: var(--card); box-shadow: inset 0 -1px 0 var(--line); white-space: nowrap; }
.roster-table td:first-child { width: 76px; }
.roster-table td:nth-child(2) { white-space: nowrap; }
.roster-table td:nth-child(3) { white-space: nowrap; font-weight: 700; width: 12%; }
.roster-table th:nth-child(4) { width: 20%; }
.roster-table th:nth-child(5) { width: 32%; }
.roster-table { min-width: 650px; }
.roster-results { margin:0 0 8px; font-weight:650; }
.roster-case-link { border:0; background:none; padding:0; color:#1946ba; font:inherit; font-weight:650; text-align:left; cursor:pointer; }
.roster-case-link:hover { text-decoration:underline; }
.roster-table tr.is-home td { background: #f3f6ff; }
.roster-table tr.is-home td:nth-child(3) { color: var(--blue-700); }
.tag-home { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700; vertical-align: 1px; }
.roster-table .empty-cell { text-align: center; color: var(--muted); padding: 28px 8px; }
#roster-source { margin: 10px 2px 0; }

@media (max-width: 980px) {
  .ai-grid { grid-template-columns: 1fr; }
  .source-cols { grid-template-columns: 1fr; }
  .score-hero { grid-template-columns: 1fr; justify-items: center; }
  .filters .input { width: 100%; }
}

/* 成都大学备赛站 */
body { background:#f3f6fb; color:#152640; font-size:16px; }
.container { max-width:1220px; }
.library-heading { display:flex; justify-content:space-between; gap:1rem; align-items:center; margin:0 0 15px; }
.library-heading h2 { margin:0 0 2px; font-size:1.35rem; }
.roster-jump { border:0; background:none; color:#1743ad; font:inherit; font-weight:650; padding:6px 0; cursor:pointer; }
.roster-jump:hover { text-decoration:underline; }
#roster-title { scroll-margin-top:110px; }
#filters { background:#fff; padding:16px; border:1px solid #dbe5f3; border-radius:14px; }
#filters input { width:100%; max-width:none; }
.work-card { border:1px solid #d8e3f3; box-shadow:0 3px 12px #142f5010; }
.work-title { color:#14274c; }
.prep { margin-bottom:22px; padding:18px 22px; }
.prep summary { font-size:1.125rem; font-weight:700; cursor:pointer; }
#prep-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem 1.3rem; }
#prep-list label { display:flex; align-items:baseline; gap:.5rem; padding:.5rem; border-radius:8px; background:#f1f6ff; }
#prep-list input { accent-color:#1749d4; }
:focus-visible { outline:3px solid #237cf0; outline-offset:3px; }
@media (max-width:760px) {
  .hero-art { width: 52%; opacity:.4; right:-15%; }
  #prep-list { grid-template-columns:1fr; }
  .library-heading { flex-wrap:wrap; gap:.35rem; }
  .works-hero { padding:24px 0 26px; }
}

/* 备赛结果与报告 */
.rubric-details,.supplement { border:1px solid #dce6f5; border-radius:10px; padding:10px 12px; margin:14px 0; }
.rubric-details summary,.supplement summary { cursor:pointer; font-weight:650; color:#24466d; }
.supplement .field-label { margin-top:12px; }
.setup .actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:14px; }
.report-toolbar { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:12px; padding-bottom:14px; }
.report-toolbar h2 { margin:0; font-size:1.25rem; }
.report-toolbar p { margin:3px 0 0; }
#btn-download-report:not(:disabled) { color:#fff; background:#1646c1; border-color:#1646c1; }
.results { min-width:0; min-height:400px; scroll-margin-top:90px; }
.result-table { overflow-x:auto; }
.result-table .table { min-width:340px; }
.polish-coverage { margin:0 0 12px; }
.polish-page { border:1px solid #dce6f5; border-radius:12px; margin:10px 0; padding:14px 16px; overflow-wrap:anywhere; }
.polish-page h3 { margin:0 0 10px; font-size:1rem; color:#1646c1; }
.polish-page dl { margin:0; display:grid; grid-template-columns:max-content 1fr; gap:5px 10px; }
.polish-page dt { color:#466180; }
.polish-page dd { margin:0; white-space:pre-line; }
.polish-page .suggested-title { font-weight:750; color:#14274c; }
#rubric-benchmark { margin-top:12px; padding:12px 0 0; border-top:1px solid #e1e9f5; }
#rubric-benchmark h3 { margin:0; font-size:1rem; }
#rubric-benchmark ul { margin:.5em 0; padding:0 0 0 1.15em; }
#rubric-benchmark li { margin:.65em 0; font-size:.875rem; }
#rubric-benchmark li span { display:block; }
#rubric-benchmark a { display:inline-block; margin-bottom:8px; }
@media(max-width: 680px) {
  .container { padding-left:18px; padding-right:18px; }
  .topbar-inner { display:block; min-height:0; padding:10px 18px; }
  .topbar .brand { display:inline-flex; flex-wrap:wrap; align-items:baseline; gap:8px; }
  .topbar .brand strong { font-size:1rem; }
  .topbar .tabs { width:max-content; margin:8px auto 0; }
  .topbar .tabs a { min-height:33px; padding:0 12px; }
  .hero-context { font-size:.875rem; }
  .hero-sub { max-width:29em; }
  .setup,.results { padding:16px; }
  .report-toolbar { align-items:center; }
  .results { scroll-margin-top:106px; }
}
