:root {
  --bg: #f4f7fd;
  --card: #ffffff;
  --text: #1b2540;
  --muted: #56627d;
  --line: #dce4f5;
  --accent: #214fd9;
  --accent-2: #2846c8;
  --navy: #072261;
  --sky: #e2ecff;
  --sky-2: #eef3fe;
  --gold: #e3bf6a;
  /* Element Plus theme: brand blue */
  --el-color-primary: #214fd9;
  --el-color-primary-light-3: #6484e4;
  --el-color-primary-light-5: #90a7ec;
  --el-color-primary-light-7: #bccaf4;
  --el-color-primary-light-8: #d3dcf7;
  --el-color-primary-light-9: #e9edfb;
  --el-color-primary-dark-2: #1a3fae;
  --el-text-color-primary: #1b2540;
  --el-text-color-regular: #3a4560;
  --el-text-color-secondary: #56627d;
  --el-border-color: #cfd8ec;
  --el-border-color-light: #dce4f5;
  --el-border-color-lighter: #e6ecf8;
  --el-fill-color-light: #f4f7fd;
  --el-border-radius-base: 4px;
  --el-font-family: MiSans, "HarmonyOS Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font-family: MiSans, "HarmonyOS Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; }

.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.topbar .brand { font-weight: 600; font-size: 16px; }
.topbar .sub { color: var(--muted); font-size: 13px; }
.topbar .spacer { flex: 1; }

.page { max-width: 1400px; margin: 0 auto; padding: 20px 24px 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; }

/* filters */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 16px; align-items: end; }
.filters .search { grid-column: span 2; }
.filters label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.filter-actions { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: var(--muted); font-size: 13px; }
.filter-actions .spacer { flex: 1; }

/* table */
.el-table .cell { line-height: 1.5; }
.el-table__row { cursor: pointer; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.empty { color: #c0c4cc; }
.pager { display: flex; justify-content: flex-end; margin-top: 16px; }

/* detail */
.detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.detail-head h2 { margin: 0; font-size: 22px; }
.detail-head .spacer { flex: 1; }
.group-title { font-weight: 600; margin: 0 0 14px; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 24px; }
.grid .wide { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field label .ro { margin-left: 6px; font-size: 11px; color: #c0c4cc; }
.field .val { min-height: 22px; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.field.dirty label { color: var(--accent); }
.field .el-select, .field .el-date-editor, .field .el-input-number { width: 100%; }
.files { display: flex; flex-direction: column; gap: 4px; }
.files .file { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.files .size { color: var(--muted); font-size: 12px; }
.savebar { position: sticky; bottom: 0; display: flex; gap: 8px; justify-content: flex-end; align-items: center;
  padding: 12px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 -2px 8px rgba(0,0,0,.04); }
.savebar .hint { color: var(--muted); font-size: 13px; margin-right: auto; }
.warn { margin-bottom: 16px; }

@media (max-width: 700px) {
  .page { padding: 12px 16px 40px; }
  .topbar { padding: 0 16px; }
  .filters .search { grid-column: auto; }
}

/* progress */
.pchip { display: inline-block; padding: 0 6px; font-size: 12px; line-height: 20px; border-radius: 4px;
  background: #eef3fe; color: #3a4560; white-space: nowrap; }
.progress-panel .pstats { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-bottom: 16px; font-size: 14px; }
.progress-panel .pstats span { color: var(--muted); font-size: 12px; margin-right: 8px; }
.progress-panel .pline { display: grid; grid-template-columns: 160px 1fr 160px 250px; gap: 12px; align-items: center; margin-bottom: 10px; }
.progress-panel .psettle { display: flex; align-items: center; gap: 6px; min-width: 0; }
.progress-panel .pname { font-weight: 500; }
.progress-panel .pname small { margin-left: 6px; color: var(--muted); font-weight: normal; }
.progress-panel .pmeta { color: var(--muted); font-size: 12px; }
.progress-panel .ptable { margin-top: 12px; }
@media (max-width: 700px) {
  .progress-panel .pline { grid-template-columns: 1fr; gap: 4px; }
}

/* contract import */
.group-title .sub { margin-left: 8px; font-weight: normal; font-size: 12px; color: var(--muted); }
.upload-tip { padding: 8px 0; color: #3a4560; font-size: 14px; }
.upload-tip em { color: var(--accent); font-style: normal; }
.el-upload-dragger { padding: 20px; }
.contract-result { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.from-contract { margin-left: 6px; padding: 0 4px; font-size: 11px; line-height: 16px; border-radius: 3px;
  background: #e2ecff; color: var(--accent); }
.with-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 42%); gap: 16px; align-items: start; }
.with-preview .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.preview { position: sticky; top: 72px; }
.preview iframe { width: 100%; height: calc(100vh - 200px); min-height: 480px; border: 1px solid var(--line); border-radius: 4px; }
@media (max-width: 1100px) {
  .with-preview { grid-template-columns: 1fr; }
  .preview { position: static; }
}
.contract-summary { margin-top: 8px; }
.pay-table { margin-top: 8px; }
.pay-plan { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pay-plan label { font-size: 12px; color: var(--muted); }
.pay-plan-head { display: flex; align-items: center; margin-bottom: 8px; min-height: 28px; }
.pay-plan-head .spacer, .pay-filters .spacer { flex: 1; }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.pay-no { width: 48px; font-size: 13px; color: var(--muted); }
.pay-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pay-sub { font-size: 12px; color: var(--muted); }
.pay-block { display: block; }
.overdue { display: block; color: #f56c6c; font-size: 12px; }
.pay-actions { display: inline-flex; align-items: center; gap: 10px; }
.pay-actions .el-button + .el-button { margin-left: 0; }
.pay-proofs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px 5px 0 0; }
.pay-proof { position: relative; display: inline-flex; }
.pay-proof .el-image { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 4px; }
.pay-proof a { position: absolute; top: -5px; right: -5px; width: 15px; height: 15px; line-height: 14px; text-align: center;
  font-size: 12px; color: #fff; background: #909399; border-radius: 50%; cursor: pointer; }
.warn-text { color: #e6a23c; }
.doc-text { height: calc(100vh - 200px); min-height: 480px; overflow: auto; margin: 0; padding: 12px; white-space: pre-wrap;
  font: 13px/1.7 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #fafafa; border: 1px solid var(--line); border-radius: 4px; }
.opt-new { margin-left: 8px; color: var(--muted); font-size: 11px; }
.dialog-tip { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.cand { margin-top: 2px; color: var(--muted); font-size: 12px; }

/* lesson form */
.lesson-page { max-width: 900px; }
.lf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 24px; }
.lf-hint { margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.lf-actions { display: flex; justify-content: flex-end; }

/* shareable summary card: fixed width so screenshots look the same everywhere */
.summary-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.summary-wrap .el-alert { max-width: 560px; }
.lesson-card { width: 420px; max-width: 100%; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(31, 35, 41, .10); color: #1b2540; }
.lc-head { padding: 22px 24px 18px; background: linear-gradient(135deg, #214fd9, #214fd9); color: #fff; }
.lc-kicker { font-size: 12px; letter-spacing: 2px; opacity: .85; }
.lc-name { margin-top: 6px; font-size: 24px; font-weight: 600; }
.lc-time { margin-top: 4px; font-size: 13px; opacity: .9; }
.lc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 24px; border-bottom: 1px solid #e6ecf8; }
.lc-meta span { display: block; font-size: 12px; color: #56627d; margin-bottom: 2px; }
.lc-progress, .lc-section { padding: 14px 24px 0; }
.lc-label { font-size: 12px; color: #214fd9; font-weight: 600; margin-bottom: 6px; }
.lc-text { font-size: 14px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.lc-foot { margin-top: 18px; padding: 12px 24px; font-size: 12px; color: #56627d; background: #f4f7fd; text-align: right; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* 幸运曲奇: wrapped cookie -> wrapper slides off -> cookie cracks -> paper slip unfolds */
.fortune { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 12px; padding-top: 20px;
  width: 420px; max-width: 100%; border-top: 1px dashed var(--line); }
.fc-tip { min-height: 20px; font-size: 13px; color: var(--muted); }
.fc-cookie { padding: 0; border: 0; background: none; cursor: pointer; width: 220px; max-width: 70vw; line-height: 0;
  border-radius: 16px; -webkit-tap-highlight-color: transparent; }
.fc-cookie:disabled { cursor: default; }
.fc-cookie:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.fc-cookie svg { width: 100%; height: auto; overflow: visible; }
.fc-closed .fc-cookie svg { animation: fc-wiggle 3.2s ease-in-out 1s infinite; transform-origin: 50% 80%; }
.fc-closed .fc-cookie:hover svg { animation-duration: .9s; }
.fc-half, .fc-wrap, .fc-seal { transform-box: fill-box; transition: transform .5s cubic-bezier(.3, .7, .4, 1), opacity .5s ease; }
.fc-half-l { transform-origin: 100% 100%; }
.fc-half-r { transform-origin: 0% 100%; }
.fc-slip-edge { opacity: 0; transition: opacity .3s ease .25s; }
.fortune:not(.fc-closed) .fc-wrap-l { transform: translate(-60px, -6px) rotate(-14deg); opacity: 0; }
.fortune:not(.fc-closed) .fc-wrap-r { transform: translate(60px, -6px) rotate(14deg); opacity: 0; }
.fortune:not(.fc-closed) .fc-seal { opacity: 0; }
.fc-crack .fc-half-l, .fc-open .fc-half-l { transform: translate(-14px, 4px) rotate(-16deg); }
.fc-crack .fc-half-r, .fc-open .fc-half-r { transform: translate(14px, 4px) rotate(16deg); }
.fc-crack .fc-slip-edge, .fc-open .fc-slip-edge { opacity: 1; }
.fc-paper { position: relative; width: 360px; max-width: 92%; margin-top: -6px; padding: 16px 28px 12px; text-align: center;
  background: #fffdf4; border: 1px solid #ece3c9; border-radius: 3px; box-shadow: 0 6px 18px rgba(31, 35, 41, .10);
  color: #3b3a36; transform-origin: 50% 0; animation: fc-unfold .6s cubic-bezier(.2, .8, .3, 1) both; }
.fc-paper::before, .fc-paper::after { content: ""; position: absolute; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: #e8453c; }
.fc-paper::before { left: 11px; }
.fc-paper::after { right: 11px; }
.fc-paper p { margin: 0; font-family: "Songti SC", "STSong", "SimSun", serif; font-size: 16px; line-height: 1.8; letter-spacing: .5px; }
.fc-paper small { display: block; margin-top: 8px; font-size: 11px; color: #b0a58a; letter-spacing: 1px; }
@keyframes fc-wiggle { 0%, 84%, 100% { transform: rotate(0); } 88% { transform: rotate(-4deg); } 92% { transform: rotate(4deg); } 96% { transform: rotate(-2deg); } }
@keyframes fc-unfold { from { opacity: 0; transform: translateY(-34px) scale(.08, .5); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fc-closed .fc-cookie svg, .fc-paper { animation: none; }
  .fc-half, .fc-wrap, .fc-seal, .fc-slip-edge { transition: none; }
}
@media (max-width: 700px) {
  .topbar .sub { display: none; }
}

/* navigation & accounts */
.topnav { display: flex; gap: 4px; margin-left: 16px; }
.topnav a { padding: 6px 12px; border-radius: 6px; font-size: 14px; color: #3a4560; cursor: pointer; }
.topnav a:hover { background: #eef3fe; }
.topnav a.active { color: var(--accent); background: #e2ecff; font-weight: 500; }
.who { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.auth-page { display: flex; justify-content: center; padding: 64px 16px; }
.auth-card { width: 380px; max-width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 28px 28px 20px; }
.auth-card h2 { margin: 0 0 16px; text-align: center; }
.auth-tip { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 16px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.lesson-detail { padding: 4px 48px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.lesson-detail p { margin: 4px 0; }
@media (max-width: 700px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .topbar .brand { display: none; }
  .topnav { flex: 1; min-width: 0; margin-left: 0; overflow-x: auto; }
  .topnav a { flex: none; padding: 6px 6px; white-space: nowrap; }
  .topbar .spacer { display: none; }
  .who { flex: none; }
  .who .el-tag { display: none; }
}

/* 课酬统计 */
.salary-summary { display: flex; flex-wrap: wrap; gap: 8px 36px; align-items: baseline; }
.salary-summary span { color: var(--muted); font-size: 12px; margin-right: 6px; }
.salary-summary b { font-size: 18px; }
.salary-summary small { margin-left: 6px; color: var(--muted); }
.salary-card .sc-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sc-name { font-size: 18px; font-weight: 600; }
.sc-stats { color: #3a4560; }
.sc-fee { margin: 10px 0 14px; padding: 8px 12px; background: #fff7e8; border-radius: 6px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.sc-fee span { display: inline-block; margin-right: 10px; color: #d25f00; font-size: 12px; font-weight: 600; }
.sc-grid { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 24px; margin-bottom: 8px; }
.sc-table td { padding: 3px 16px 3px 0; font-size: 14px; }
.sc-events { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
@media (max-width: 800px) { .sc-grid { grid-template-columns: 1fr; } }

/* monthly pay flow */
.sc-payroll { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -4px 0 14px; padding: 8px 12px; border: 1px solid var(--line, #e5e6eb); border-radius: 6px; }
.sc-payroll .spacer, .pay-head .spacer { flex: 1; }
.pay-head { align-items: center !important; }
.pay-alert { margin-bottom: 16px; }
.pay-sheet { width: 100%; border-collapse: collapse; font-size: 13px; }
.pay-sheet th { padding: 8px; text-align: left; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.pay-sheet td { padding: 8px; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) {  /* phones: one block per row, so 金额 needs no sideways scrolling */
  .pay-sheet thead { display: none; }
  .pay-sheet tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .pay-sheet td { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; border: 0; }
  .pay-sheet td::before { content: attr(data-label); color: var(--muted); }
  .pay-sheet td:empty { display: none; }
}
.pay-total { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px 24px; margin-top: 12px; }
.pay-total label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.pay-total .el-input-number { width: 130px; }
.pay-total b { font-size: 16px; }
.pay-total .pay-net { font-size: 18px; color: var(--accent); }

/* settlement */
.pchip.settled { background: #e8ffea; color: #00a854; }
.sc-pending { margin: 4px 0 12px; padding: 10px 12px; border: 1px solid #ffd8a8; border-radius: 6px; background: #fffaf2; }
.sc-pending-head, .sc-pending-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sc-pending-head { margin-bottom: 6px; font-size: 12px; }
.sc-pending-row { padding: 4px 0; font-size: 14px; border-top: 1px dashed #ffe4c2; }
.sc-projects { margin: 4px 0 8px; }
.sc-settled { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 0 0 12px; font-size: 14px; }
.svc-done { font-size: 13px; color: #00a854; }
.proj-board { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.proj-board .proj-free { background: #e8ffea; color: #00a854; }
.proj-board .proj-mine { background: #e2ecff; color: var(--accent); }
.proj-board .proj-taken { background: #eef3fe; color: #86909c; }
.hourly { font-size: 13px; white-space: nowrap; }
.hourly-yellow { color: #b8860b; background: #fff7d6; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.hourly-red { color: #d4380d; background: #fff1f0; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.prefill-note { color: var(--accent); }
.auth-sep { margin: 0 8px; color: #c0c4cc; }

/* 作品互评 */
.el-dialog { max-width: calc(100vw - 24px); }
.nav-badge { display: inline-block; min-width: 16px; height: 16px; margin-left: 4px; padding: 0 4px; border-radius: 8px;
  background: #f53f3f; color: #fff; font-size: 11px; line-height: 16px; text-align: center; vertical-align: 1px; }
.muted { color: var(--muted); font-size: 12px; }
.rv-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid #e6ecf8; }
.rv-row:last-child { border-bottom: 0; }
.rv-row .spacer { flex: 1; }
.rv-todo { border-color: #ffd591; background: #fffbf0; }
.rv-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.rv-links a { color: var(--accent); text-decoration: none; word-break: break-all; }
.rv-links a:hover { text-decoration: underline; }
.rv-all-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.rv-assign { display: flex; gap: 6px; align-items: center; }
.rv-assign .el-select { flex: 1; min-width: 150px; }
.rv-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.rv-score { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #e6ecf8; }
.rv-score span { display: flex; flex-direction: column; font-size: 13px; }
.rv-score small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.rv-score .rv-input { display: flex; flex-direction: row; align-items: center; gap: 6px; flex-shrink: 0; }
.rv-comment { margin-top: 14px; padding: 10px 14px; background: #f4f7fd; border-radius: 6px; }
.rv-comment-head { font-size: 13px; font-weight: 600; }
@media (max-width: 700px) { .rv-scores { grid-template-columns: 1fr; } }

/* 学生端 */
.card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.card-head .group-title { margin: 0; }
.card-head .spacer, .invite-row .spacer { flex: 1; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 24px; }
.ac-gpa { display: flex; gap: 8px; width: 100%; }
.ac-gpa .el-select { width: 120px; flex: none; }
.ac-langs { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.ac-lang { display: grid; grid-template-columns: 140px 1fr auto; gap: 8px; align-items: center; }
.invite-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.invite-code { font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: 1px; }
.invite-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.invite-tools .el-input { flex: 1; }
.me-page { max-width: 960px; }
.me-desc .el-descriptions__label { width: 120px; }
.ml-title { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; overflow: hidden; }
.ml-date { flex: none; font-variant-numeric: tabular-nums; }
.ml-course { flex: none; font-weight: 500; }
.ml-title .muted { flex: none; }
.ml-sum { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.ml-body { padding: 4px 4px 8px; }
.ml-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 8px; font-size: 13px; }
.ml-meta b { margin-right: 6px; color: var(--muted); font-weight: normal; }
.ml-part { margin-top: 10px; }
@media (max-width: 640px) {
  .ml-sum, .ml-title .muted { display: none; }
  .ac-lang { grid-template-columns: 1fr 1fr auto; }
}
.pre-msg .el-message-box__message p { white-space: pre-line; }

/* 院校库 */
.school-notice { margin-bottom: 16px; }
.school-filters .sf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.school-filters .sf-row .spacer { flex: 1; }
.school-filters .sf-label { width: 76px; flex: none; font-size: 13px; color: var(--muted); }
.school-filters .el-check-tag small { margin-left: 2px; font-weight: 400; opacity: .7; }
.school-filters .sf-count { font-size: 13px; color: var(--muted); }
.school-filters .sf-hint { font-size: 12px; color: var(--muted); }
.school-group { margin-bottom: 8px; }
.school-group .sg-title { font-size: 17px; margin: 18px 0 10px; }
.school-group .sg-title small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.school-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 0 16px; }
.school-card { display: flex; flex-direction: column; gap: 8px; }
.school-card .sc-school { font-weight: 600; font-size: 15px; }
.school-card .sc-school span { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
.school-card .sc-prog { font-size: 15px; color: var(--accent); font-weight: 500; }
.school-card .sc-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: #3a4560; }
.school-card .sc-block { border-top: 1px dashed var(--line); padding-top: 8px; }
.school-card .sc-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.school-card .sc-text { font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.school-card .sc-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 4px; }
.school-card .sc-rounds { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-round { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 6px; font-size: 13px;
  background: #eef3fe; font-variant-numeric: tabular-nums; }
.sc-round em { font-style: normal; font-size: 12px; color: var(--muted); }
.sc-round small { font-size: 12px; }
.sc-round.dl-open { background: #e2ecff; color: #214fd9; }
.sc-round.dl-soon, .sf-hint .dl-soon { background: #fff3e8; color: #c2410c; }
.sc-round.dl-past, .sf-hint .dl-past { background: #eef3fe; color: #a8abb2; text-decoration: line-through; }
.sc-round.dl-text { background: #eef3fe; color: #3a4560; }
.sf-hint .dl-soon, .sf-hint .dl-past { padding: 1px 6px; border-radius: 4px; }
.school-card .sc-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.school-card .sc-links a { color: var(--accent); text-decoration: none; }
.school-card .sc-links a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .school-grid { grid-template-columns: 1fr; }
  .school-filters .sf-label { width: 100%; }
}

/* 星标推荐 + 学生选校 */
.star { color: #f59e0b; margin-right: 4px; }
.star-tag.is-checked { background: #fff7e6; color: #b45309; }
.school-group.sg-star .sg-title { color: #b45309; }
.school-card.featured { border-color: #fcd34d; box-shadow: 0 0 0 1px #fde68a inset; }
.school-card.picked { border-color: #67c23a; box-shadow: 0 0 0 1px #b3e19d inset; }
.school-card .sc-top { display: flex; align-items: flex-start; gap: 8px; }
.school-card .sc-top .sc-school { flex: 1; }
.school-card .sc-country { font-size: 12px; color: var(--muted); margin-top: -4px; }
.my-choice-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; position: sticky; top: 64px; z-index: 5;
  border-color: #b6d3ff; background: #eef3fe; padding: 10px 16px; }
.my-choice-bar.done { border-color: #b3e19d; background: #f3faf0; }
.my-choice-bar .mcb-count { font-size: 18px; color: var(--accent); }
.my-choice-bar .mcb-progress { width: 140px; }
.choice-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.choice-row .cr-no { width: 26px; height: 26px; border-radius: 50%; background: #eef3fe; display: flex; align-items: center;
  justify-content: center; font-size: 13px; color: var(--muted); flex-shrink: 0; }
.choice-row .cr-days { width: 64px; flex-shrink: 0; text-align: center; font-variant-numeric: tabular-nums; }
.choice-row .cr-days b { font-size: 26px; line-height: 1; }
.choice-row .cr-days small { font-size: 12px; margin-left: 2px; }
.choice-row .cr-days span { font-size: 13px; color: var(--muted); }
.choice-row .cr-main { flex: 1; min-width: 0; }
.choice-row .cr-school { font-weight: 600; }
.choice-row .cr-school small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.choice-row .cr-prog { font-size: 13px; color: var(--accent); margin-top: 2px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.choice-row .cr-track { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.track-tip { margin: 0 0 12px; line-height: 1.7; }
.track-options { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.track-options .el-radio { margin-right: 0; height: auto; min-height: 36px; white-space: normal; }
.choice-row .cr-dl { font-size: 13px; color: #3a4560; margin-top: 4px; }
.choice-row .cr-all { display: block; font-size: 12px; margin-top: 2px; }
.choice-row .cd-today { color: #d03050; font-weight: 600; margin-left: 6px; }
.choice-row.cd-hot { border-color: #f5b5b5; background: #fff5f5; }
.choice-row.cd-hot .cr-days b { color: #d03050; }
.choice-row.cd-soon { border-color: #fcd9b6; background: #fffaf3; }
.choice-row.cd-soon .cr-days b { color: #c2410c; }
.choice-row.cd-ok .cr-days b { color: var(--accent); }
.choice-row.cd-past { opacity: .6; }
@media (max-width: 720px) {
  .choice-row { gap: 10px; padding: 8px 10px; }
  .choice-row .cr-days { width: 48px; }
  .choice-row .cr-days b { font-size: 20px; }
  .my-choice-bar .mcb-progress { width: 80px; }
}

/* ---------- 游戏职位 ---------- */
.jobs-page .detail-head { flex-wrap: wrap; }
.jobs-sub { font-size: 13px; color: var(--muted); }
.jobs-notice { margin-bottom: 12px; }
.jobs-table .job-title { font-weight: 600; color: var(--el-color-primary); text-decoration: none; }
.jobs-table .job-title:hover { text-decoration: underline; }
.jobs-table .job-new { margin-left: 6px; vertical-align: 1px; }
.jobs-table .job-dept, .jobs-table .job-loc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.jobs-table .job-loc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jobs-table .job-tag { margin-left: 4px; }
.jobs-table .job-country { font-size: 13px; }
.jobs-pager { margin-top: 12px; justify-content: flex-end; flex-wrap: wrap; }
.jobs-table .job-m-company { font-size: 13px; margin-top: 4px; }
.jobs-table .job-m-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
@media (max-width: 720px) { .jobs-table .job-loc { white-space: normal; } }

/* 院校库 · 申请指南详情页 */
.school-card.has-guide { cursor: pointer; transition: box-shadow .15s, transform .15s; }
.school-card.has-guide:hover { box-shadow: 0 4px 16px rgba(33, 79, 217, .16); transform: translateY(-1px); }
.school-card .sc-guide { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding: 8px 12px;
  border-radius: 6px; background: #eef3fe; color: var(--accent); font-size: 13px; font-weight: 600; }
.school-card .sc-guide span { font-weight: 400; }
/* 重点提醒（school_guides.js 的 alert）：卡片和详情页都显示 */
.sc-alert { margin-top: 8px; padding: 8px 12px; border-radius: 6px; border-left: 3px solid #e5484d; background: #fff1f0;
  font-size: 13px; line-height: 1.65; color: #3a2a2a; }
.sc-alert b { color: #c22a2f; }
.sc-alert ul { margin: 4px 0 0; padding-left: 18px; }
.sc-alert li { margin: 2px 0; }
.card.guide-alert { margin-top: 0; padding: 14px 18px; font-size: 14px; border: 1px solid #f5c2c0; border-left: 3px solid #e5484d; }
.guide-page { max-width: 980px; margin: 0 auto; }
.guide-hero h2 { margin: 6px 0 4px; font-size: 22px; }
.guide-hero .gh-school { font-weight: 600; }
.guide-hero .gh-school span:not(.star) { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
.guide-hero .gh-sub { color: #3a4560; font-size: 14px; line-height: 1.6; margin-bottom: 10px; }
.guide-hero .gh-prog { color: var(--accent); font-weight: 500; }
.guide-hero .sc-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: #3a4560; }
.guide-hero .gh-grid { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.guide-page .sc-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.guide-page .sc-rounds { display: flex; flex-wrap: wrap; gap: 6px; }
.guide-page .sc-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 4px; }
.guide-page .sc-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.guide-page .sc-links a, .guide-sources a { color: var(--accent); text-decoration: none; }
.guide-page .sc-links a:hover, .guide-sources a:hover { text-decoration: underline; }
.guide-hero .gh-updated { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.guide-row { display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.guide-row:first-child { border-top: 0; padding-top: 0; }
.guide-row .gr-label { font-weight: 600; font-size: 14px; color: #3a4560; }
.guide-body { font-size: 14px; line-height: 1.75; min-width: 0; }
.guide-body p { margin: 0; }
.guide-body ul { margin: 0; padding-left: 20px; }
.guide-body li { margin: 2px 0; }
.guide-body > * + * { margin-top: 8px; }
.guide-note { padding: 10px 14px; border-radius: 6px; border-left: 3px solid; }
.guide-note .gn-title { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.guide-note.tip { background: #fff8e6; border-color: #f59e0b; }
.guide-note.tip .gn-title { color: #b45309; }
.guide-note.official { background: #fff1f0; border-color: #e5484d; }
.guide-note.official .gn-title { color: #c22a2f; }
.guide-intro { margin: 0 0 4px; font-size: 14px; line-height: 1.7; color: #3a4560; }
.guide-item { padding: 14px 0 4px; border-top: 1px solid var(--line); margin-top: 12px; }
.guide-item h4 { margin: 0 0 8px; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.guide-item h4 small { font-weight: 400; font-size: 13px; color: var(--muted); }
.guide-item .gi-no { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.guide-table-wrap { overflow-x: auto; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.guide-table th, .guide-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.guide-table th { background: #f4f7fd; font-weight: 600; white-space: nowrap; }
.guide-table td:first-child { font-weight: 600; white-space: nowrap; }
.guide-sources > div { font-size: 14px; line-height: 2; }
@media (max-width: 700px) {
  .guide-row { grid-template-columns: 1fr; gap: 4px; }
  .guide-table td:first-child { white-space: normal; }
}

/* 文书工具 */
.wenshu-page { max-width: 860px; }
.wenshu-text { margin: 0 0 10px; line-height: 1.7; }
.wenshu-url { display: flex; gap: 8px; margin-bottom: 10px; }
.wenshu-url .el-input { flex: 1; min-width: 0; }
.wenshu-warn { margin: 0; line-height: 1.6; }
.wenshu-notice { margin-bottom: 16px; }
.wenshu-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
@media (max-width: 720px) { .wenshu-url { flex-direction: column; } }

/* ================= 麦壳思品牌样式（蓝白） ================= */
.gold-bar { display: block; width: 44px; height: 4px; background: var(--gold); }

/* top bar */
.topbar { background: var(--accent); color: #fff; border-bottom: 0; }
.topbar .brand { display: flex; align-items: center; gap: 12px; font-size: 14px; flex: none; }
.topbar .brand img { display: block; height: 12px; width: auto; }
.topbar .brand i { width: 1px; height: 16px; background: #b6d3ff; }
.topbar .brand span { white-space: nowrap; }
@media (max-width: 1499px) { .topbar .brand span, .topbar .brand i { display: none; } }
.topnav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { flex: none; padding: 6px 10px; border-radius: 4px; color: var(--sky); white-space: nowrap; }
.topnav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.topnav a.active { background: #fff; color: var(--accent); font-weight: 600; }
.nav-badge { background: var(--gold); color: var(--navy); font-weight: 700; }
.who { color: #fff; flex: none; }
.who .el-tag { background: var(--accent-2); border-color: transparent; color: var(--sky); }
.topbar .el-button { flex: none; }
.topbar .el-button--primary.is-plain { background: transparent; border-color: #fff; color: #fff; font-weight: 600; }
.topbar .el-button--primary.is-plain:hover, .topbar .el-button--primary.is-plain:focus-visible { background: #fff; border-color: #fff; color: var(--accent); }
.topbar .el-button.is-link { color: var(--sky); }
.topbar .el-button.is-link:hover { color: #fff; }
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 8px 12px 0; gap: 6px 8px; }
  .topbar .brand { display: flex; }
  .topbar .spacer { display: block; flex: 1; }
  .topnav { order: 5; flex: 0 0 100%; margin: 0; padding-bottom: 6px; }
  .topnav a { padding: 6px 10px; }
  .my-choice-bar { top: 70px; }
}

/* surfaces & titles */
.card { border-radius: 6px; }
.detail-head h2 { color: var(--navy); font-size: 24px; font-weight: 700; line-height: 1.3; }
.detail-head h2[data-en]::before { content: attr(data-en); display: block; font-size: 12px; font-weight: 600; letter-spacing: 3px;
  line-height: 1.4; color: var(--accent); }
.group-title { padding-left: 12px; border-left: 4px solid var(--accent); color: var(--navy); font-size: 16px; font-weight: 700; line-height: 1.3; }
.group-title .sub { line-height: 1.3; }
.sg-title { color: var(--navy); }
.el-table { --el-table-header-bg-color: var(--sky-2); --el-table-header-text-color: var(--navy); --el-table-row-hover-bg-color: var(--bg);
  --el-table-border-color: #e6ecf8; }
.el-table th.el-table__cell { font-weight: 600; }
.el-progress-bar__outer { background-color: var(--sky); }
.pay-sheet th { color: var(--navy); background: var(--sky-2); }
.guide-table th { color: var(--navy); }
.savebar { border-radius: 6px; box-shadow: 0 -2px 12px rgba(7, 34, 97, .08); }
.salary-summary b, .pay-total .pay-net { color: var(--accent); }
.sc-name { color: var(--navy); }

/* sign-in / register / reset */
.auth-page { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: 100vh; padding: 0; background: #fff; }
.auth-hero { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 48px 64px;
  color: #fff; background: var(--accent) url(/static/logo-ghost.svg) no-repeat right -200px top 96px / 760px auto; overflow: hidden; }
.auth-hero .ah-logo { display: block; width: 128px; height: auto; }
.auth-hero .ah-kicker { font-size: 13px; letter-spacing: 3px; color: var(--sky); }
.auth-hero h1 { margin: 14px 0 18px; font-size: 44px; line-height: 1.25; font-weight: 700; }
.auth-hero p { margin: 18px 0 0; font-size: 16px; line-height: 1.7; color: var(--sky); }
.auth-hero .ah-roles { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.auth-hero .ah-roles div { display: flex; align-items: center; gap: 18px; padding: 14px 20px; background: var(--accent-2); }
.auth-hero .ah-roles b { width: 30px; font-size: 20px; }
.auth-hero .ah-roles strong { width: 44px; font-size: 16px; font-weight: 600; }
.auth-hero .ah-roles span { font-size: 13px; color: var(--sky); }
.auth-card { align-self: center; justify-self: center; width: 380px; max-width: calc(100% - 48px); padding: 40px 0; border: 0; border-radius: 0; background: none; }
.auth-card h2 { margin: 0 0 20px; text-align: left; font-size: 26px; font-weight: 700; color: var(--navy); }
.auth-kicker { margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: 3px; color: var(--accent); }
.auth-card .el-button--primary { height: 44px; font-size: 15px; font-weight: 600; }
@media (max-width: 860px) {
  .auth-page { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .auth-hero { gap: 20px; padding: 24px 24px 26px; background-size: 380px auto; background-position: right -90px bottom 20px; }
  .auth-hero .ah-logo { width: 96px; }
  .auth-hero h1 { margin: 8px 0 12px; font-size: 26px; }
  .auth-hero .ah-kicker { font-size: 11px; }
  .auth-hero p { margin-top: 12px; font-size: 14px; }
  .auth-hero .ah-roles { display: none; }
  .auth-card { align-self: start; padding: 28px 0 40px; }
}

/* 学生主页 */
.me-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-bottom: 16px; padding: 26px 30px; border-radius: 6px;
  color: #fff; background: var(--accent) url(/static/logo-ghost.svg) no-repeat left 46% top -34px / 520px auto; overflow: hidden; }
.me-hero .mh-main { flex: 1 1 260px; min-width: 0; }
.me-hero .mh-kicker { font-size: 12px; letter-spacing: 3px; color: var(--sky); }
.me-hero h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 12px; font-size: 28px; font-weight: 700; line-height: 1.3; }
.me-hero .el-tag { background: var(--accent-2); border-color: transparent; color: var(--sky); }
.me-hero .mh-stats { display: flex; }
.me-hero .mh-stats > div { width: 136px; padding: 14px 16px; }
.me-hero .mh-stats b { display: block; font-size: 28px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.me-hero .mh-stats small { font-size: 14px; font-weight: 600; }
.me-hero .mh-stats span { display: block; margin-top: 4px; font-size: 13px; }
.me-hero .mh-a { background: var(--sky); color: var(--navy); }
.me-hero .mh-b { background: #fff; color: var(--navy); }
.me-hero .mh-a b, .me-hero .mh-b b { color: var(--accent); }
.me-hero .mh-a small, .me-hero .mh-b small { color: var(--muted); }
.me-hero .mh-c { background: var(--accent-2); color: #fff; }
.me-hero .mh-c small, .me-hero .mh-c span { color: var(--sky); }
@media (max-width: 700px) {
  .me-hero { padding: 20px 16px 0; margin: -12px -16px 16px; border-radius: 0; background-position: right -120px top -20px; background-size: 380px auto; }
  .me-hero h2 { font-size: 24px; }
  .me-hero .mh-stats { flex: 0 0 calc(100% + 32px); margin: 0 -16px; }
  .me-hero .mh-stats > div { flex: 1; width: auto; padding: 12px 14px; }
  .me-hero .mh-stats b { font-size: 24px; }
}

/* 课堂反馈卡片（下载成图片发给学生，宽度保持 420px） */
.lesson-card { border-radius: 8px; box-shadow: 0 6px 28px rgba(7, 34, 97, .14); flex: none; }
.lesson-card .lc-head { padding: 20px 26px 22px; background: var(--accent); }
.lesson-card .lc-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 12px; color: #e2ecff; }
.lesson-card .lc-brand img { display: block; width: 78px; height: 11px; }
.lesson-card .lc-brand i { width: 1px; height: 12px; background: #b6d3ff; }
.lesson-card .lc-kicker { font-size: 11px; letter-spacing: 3px; color: #e2ecff; opacity: 1; }
.lesson-card .lc-name { font-size: 28px; font-weight: 700; }
.lesson-card .gold-bar { width: 40px; margin: 10px 0 12px; }
.lesson-card .lc-time { margin-top: 0; color: #e2ecff; opacity: 1; font-variant-numeric: tabular-nums; }
.lesson-card .lc-meta { gap: 0; padding: 0; border-bottom: 0; }
.lesson-card .lc-meta > div { padding: 14px 26px; background: #e2ecff; }
.lesson-card .lc-meta > div + div { background: #eef3fe; }
.lesson-card .lc-meta b { font-size: 15px; color: #072261; }
.lesson-card .lc-progress { padding: 18px 26px 0; }
.lesson-card .lc-section { margin: 16px 26px 0; padding: 0 0 0 12px; border-left: 3px solid #214fd9; }
.lesson-card .lc-label { letter-spacing: 1px; }
.lesson-card .lc-foot { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 13px 26px; text-align: left;
  background: #072261; color: #e2ecff; }
.lesson-card .lc-foot img { display: block; width: 57px; height: 8px; }
.lesson-card .lc-foot span { flex: 1; }
.lesson-card .lc-foot em { font-style: normal; color: #e3bf6a; }
.summary-side { display: contents; }
.summary-side > .el-alert:first-child { order: -1; }
@media (min-width: 900px) {
  .summary-wrap { flex-direction: row; justify-content: center; align-items: flex-start; gap: 32px; }
  .summary-side { display: flex; flex-direction: column; gap: 16px; flex: 1 1 0; min-width: 0; max-width: 420px; }
  .summary-side > .el-alert:first-child { order: 0; }
  .summary-side .summary-actions { justify-content: flex-start; }
  .summary-side .fortune { align-self: center; }
}

/* 幸运曲奇 */
.fc-paper { background: #fff; border-color: #b6d3ff; color: var(--navy); box-shadow: 0 6px 18px rgba(7, 34, 97, .10); }
.fc-paper::before, .fc-paper::after { background: var(--accent); }
.fc-paper small { color: var(--muted); }
