/* 金航线医疗培训管理后台 · 设计系统 */
:root {
  --brand: #0E6B6D;
  --brand-deep: #0B4F57;
  --brand-navy: #12365C;
  --mint: #19B6A3;
  --mint-soft: #E8F7F4;
  --gold: #F2B35E;
  --gold-soft: #FFF6E7;
  --coral: #E86A5A;
  --coral-soft: #FDEDEA;
  --blue-soft: #EAF2F8;
  --ink: #12312F;
  --text: #24423F;
  --muted: #6B817F;
  --muted-2: #93A7A4;
  --line: #E4ECEA;
  --bg: #F3F7F6;
  --surface: #fff;
  --sidebar: #0B3F47;
  --sidebar-2: #0A4C54;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 61, 66, .08);
  --shadow-sm: 0 4px 14px rgba(18, 49, 47, .05);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

/* 布局 */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 60;
  background: linear-gradient(180deg, var(--sidebar) 0%, #08343C 100%);
  color: #fff; display: flex; flex-direction: column;
  transition: transform .25s ease;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px 18px; }
.sidebar-brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.brand-text .name { font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.brand-text .sub { font-size: 10px; color: rgba(255,255,255,.38); letter-spacing: 1.2px; margin-top: 2px; }
.sidebar-scroll { flex: 1; overflow-y: auto; padding: 4px 12px 20px; }
.sidebar-scroll::-webkit-scrollbar { width: 4px; }
.sidebar-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 4px; }
.nav-group-label { font-size: 10px; letter-spacing: 1.4px; color: rgba(255,255,255,.3); padding: 18px 12px 6px; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin: 2px 0;
  border-radius: 10px; color: rgba(255,255,255,.68); font-size: 13.5px;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: linear-gradient(90deg, rgba(25,182,163,.22), rgba(25,182,163,.07)); color: #fff; box-shadow: inset 3px 0 0 var(--mint); }
.nav-item.active .icon { color: #6EE7D2; }
.nav-badge { margin-left: auto; font-size: 10px; background: var(--gold); color: #4B3108; border-radius: 8px; padding: 1px 7px; font-weight: 700; }
.sidebar-foot { padding: 14px 16px 18px; border-top: 1px solid rgba(255,255,255,.06); }
.admin-chip { display: flex; align-items: center; gap: 10px; }
.admin-avatar { width: 36px; height: 36px; border-radius: 10px; background: rgba(110,231,210,.14); color: #8CEBDA; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.admin-meta { flex: 1; min-width: 0; }
.admin-meta .n { font-size: 12.5px; color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-meta .r { font-size: 10.5px; color: rgba(255,255,255,.38); }
.logout-btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 0; background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); cursor: pointer; }
.logout-btn:hover { background: rgba(232,106,90,.18); color: #FFB5AA; }

.main { margin-left: 248px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: 64px; background: rgba(255,255,255,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center;
  gap: 14px; padding: 0 28px; position: sticky; top: 0; z-index: 40;
}
.menu-toggle { display: none; border: 0; background: #F1F6F5; color: var(--text); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted-2); }
.crumb a { color: var(--muted-2); }
.crumb .sep { opacity: .5; }
.crumb .current { color: var(--text); font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar-date { font-size: 12px; color: var(--muted-2); }
.topbar-link { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; background: var(--mint-soft); color: var(--brand); font-size: 12px; font-weight: 600; }
.content { padding: 26px 28px 40px; flex: 1; }

.sidebar-mask { display: none; position: fixed; inset: 0; background: rgba(8,45,52,.45); z-index: 55; }
.sidebar-mask.show { display: block; }

/* 页头 */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 24px; letter-spacing: -.4px; color: var(--ink); font-weight: 800; }
.page-head .desc { margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 卡片 */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(228,236,234,.7); overflow: hidden; }
.card + .card { margin-top: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #F1F6F5; }
.card-title { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.card-title .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.card-body { padding: 22px; }
.card-body.tight { padding: 0; }
.card-foot { padding: 14px 22px; border-top: 1px solid #F1F6F5; background: #FBFDFC; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap;
  background: #F1F6F5; color: var(--text);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, #128080, var(--brand-deep)); color: #fff; box-shadow: 0 6px 16px rgba(14,107,109,.18); }
.btn-primary:hover { color: #fff; box-shadow: 0 8px 20px rgba(14,107,109,.24); }
.btn-mint { background: var(--mint-soft); color: var(--brand); border-color: #CFE9E4; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-danger { background: var(--coral-soft); color: #B44739; border-color: #F6D4CF; }
.btn-gold { background: var(--gold-soft); color: #9A6416; border-color: #F3DFC0; }
.btn-sm { height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-icon { width: 32px; padding: 0; }

/* 表单 */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 20px; }
.form-grid .span-2 { grid-column: span 2; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: 12.5px; color: var(--text); font-weight: 600; }
.form-label .req { color: var(--coral); margin-left: 3px; }
.form-control, .form-select, textarea.form-control {
  width: 100%; border: 1px solid var(--line); background: #FBFDFC; border-radius: 10px;
  padding: 9px 12px; min-height: 40px; color: var(--ink); outline: none; transition: border .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(25,182,163,.11); background: #fff; }
.form-control::placeholder { color: #A9B9B6; }
textarea.form-control { min-height: 96px; resize: vertical; line-height: 1.7; }
.form-hint { font-size: 11.5px; color: var(--muted-2); }
.form-error { font-size: 11.5px; color: var(--coral); }
.check-row { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.check-row input[type=checkbox], .check-row input[type=radio] { width: 16px; height: 16px; accent-color: var(--brand); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 38px; height: 22px; border-radius: 20px; background: #D8E4E2; transition: .2s; position: relative; }
.switch .track::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(16px); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 18px; border-top: 1px solid #F1F6F5; margin-top: 22px; }

/* 筛选 */
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid #F1F6F5; }
.filter-bar .form-control, .filter-bar .form-select { width: auto; min-width: 150px; height: 36px; min-height: 36px; padding: 6px 10px; font-size: 12.5px; background: #fff; }
.filter-search { display: flex; align-items: center; gap: 0; }
.filter-search .form-control { border-radius: 10px 0 0 10px; border-right: 0; min-width: 220px; }
.filter-search .btn { border-radius: 0 10px 10px 0; height: 36px; }
.filter-bar .spacer { flex: 1; }

/* 表格 */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: .5px; color: var(--muted-2);
  font-weight: 600; padding: 12px 14px; background: #FAFCFB; border-bottom: 1px solid var(--line);
  white-space: nowrap; text-transform: uppercase;
}
.table td { padding: 13px 14px; border-bottom: 1px solid #F2F6F5; vertical-align: middle; }
.table tbody tr:hover { background: #FBFDFC; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .primary-cell { font-weight: 600; color: var(--ink); }
.table .sub-cell { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.table .thumb { width: 54px; height: 38px; object-fit: cover; border-radius: 7px; background: #EEF3F2; }
.table .avatar-sm { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: var(--mint-soft); }
.table .money { font-weight: 700; color: var(--brand); white-space: nowrap; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted-2); }
.empty .e-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--mint-soft); color: var(--mint); display: grid; place-items: center; margin: 0 auto 14px; }
.empty h3 { margin: 0 0 5px; font-size: 15px; color: var(--text); }
.empty p { margin: 0; font-size: 12.5px; }

/* 徽章 */
.badge { display: inline-flex; align-items: center; height: 23px; padding: 0 9px; border-radius: 7px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-success { background: var(--mint-soft); color: var(--brand); }
.badge-warning { background: var(--gold-soft); color: #9A6416; }
.badge-danger { background: var(--coral-soft); color: #B44739; }
.badge-info { background: var(--blue-soft); color: #245C85; }
.badge-muted { background: #F1F5F4; color: #71847F; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; }

/* 统计卡 */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.stat-card { background: #fff; border-radius: 16px; padding: 18px 20px; border: 1px solid rgba(228,236,234,.7); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; right: -24px; top: -24px; width: 88px; height: 88px; border-radius: 50%; background: var(--mint-soft); opacity: .7; }
.stat-card.gold::after { background: var(--gold-soft); }
.stat-card.blue::after { background: var(--blue-soft); }
.stat-card.coral::after { background: var(--coral-soft); }
.stat-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--mint-soft); color: var(--brand); display: grid; place-items: center; position: relative; z-index: 1; }
.stat-card.gold .stat-icon { background: var(--gold-soft); color: #9A6416; }
.stat-card.blue .stat-icon { background: var(--blue-soft); color: #245C85; }
.stat-card.coral .stat-icon { background: var(--coral-soft); color: #B44739; }
.stat-value { font-size: 27px; font-weight: 800; color: var(--ink); line-height: 1.1; margin-top: 14px; letter-spacing: -1px; position: relative; z-index: 1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 3px; position: relative; z-index: 1; }
.stat-trend { font-size: 11px; color: var(--mint); margin-top: 8px; position: relative; z-index: 1; }
.stat-trend.muted { color: var(--muted-2); }

/* 仪表盘 */
.dash-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 20px; }
.chart { display: flex; align-items: flex-end; gap: 12px; height: 190px; padding: 18px 10px 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.chart-bar { width: 100%; max-width: 38px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #4FD6C2, #0E6B6D); min-height: 4px; position: relative; transition: height .3s; }
.chart-bar:hover { filter: brightness(1.06); }
.chart-val { font-size: 11px; color: var(--muted); font-weight: 600; }
.chart-label { font-size: 10.5px; color: var(--muted-2); }
.chart-days { display: flex; justify-content: space-between; padding: 8px 10px 0; color: var(--muted-2); font-size: 10.5px; }
.quick-list { display: flex; flex-direction: column; }
.quick-row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #F2F6F5; }
.quick-row:last-child { border-bottom: 0; }
.quick-date { width: 46px; height: 46px; border-radius: 12px; background: var(--mint-soft); color: var(--brand); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-date .d { font-size: 17px; font-weight: 800; line-height: 1; }
.quick-date .m { font-size: 9px; margin-top: 2px; }
.quick-body { flex: 1; min-width: 0; }
.quick-title { font-size: 13px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-sub { font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.recent-user { display: flex; align-items: center; gap: 8px; }
.recent-user .name { font-size: 12.5px; font-weight: 600; }
.recent-user .time { font-size: 10.5px; color: var(--muted-2); }

/* 提示 */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 12.5px; margin-bottom: 18px; border: 1px solid transparent; }
.alert-success { background: var(--mint-soft); border-color: #CFE9E4; color: #0B5B55; }
.alert-error, .alert-danger { background: var(--coral-soft); border-color: #F6D4CF; color: #A53F31; }
.alert-warning { background: var(--gold-soft); border-color: #F3DFC0; color: #8C5C16; }
.alert ul { margin: 0; padding-left: 18px; }
.alert .close { margin-left: auto; border: 0; background: none; color: inherit; cursor: pointer; font-size: 18px; line-height: 1; opacity: .6; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 20px; border-top: 1px solid #F1F6F5; font-size: 12px; color: var(--muted); }
.pager .links { display: flex; gap: 6px; }
.pager a, .pager span.disabled { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); }
.pager a:hover { border-color: var(--mint); color: var(--brand); }
.pager span.disabled { opacity: .45; background: #F8FAF9; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(8,45,52,.5); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { width: 100%; max-width: 520px; background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(6,35,40,.3); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #F1F6F5; }
.modal-head h3 { margin: 0; font-size: 16px; color: var(--ink); }
.modal-close { border: 0; background: #F1F6F5; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 18px; }
.modal-body { padding: 22px; max-height: 70vh; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid #F1F6F5; background: #FBFDFC; }

/* 图片上传 */
.upload-field { display: flex; gap: 10px; align-items: flex-start; }
.upload-preview { width: 86px; height: 58px; border-radius: 10px; background: #F1F6F5; object-fit: cover; border: 1px solid var(--line); }
.upload-controls { flex: 1; }
.upload-controls .form-control { font-size: 12px; }
.upload-actions { display: flex; gap: 6px; margin-top: 6px; }

/* 详情 */
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 28px; }
.detail-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F2F6F5; font-size: 13px; }
.detail-row .k { width: 92px; color: var(--muted-2); flex-shrink: 0; }
.detail-row .v { color: var(--text); flex: 1; word-break: break-all; }
.profile-photo { width: 110px; height: 140px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); background: #F1F6F5; }
.info-banner { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: linear-gradient(135deg, var(--brand-deep), var(--brand-navy)); color: #fff; border-radius: var(--radius); margin-bottom: 20px; }
.info-banner .num { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.info-banner .label { font-size: 12px; color: rgba(255,255,255,.6); }
.info-banner .sep { width: 1px; height: 38px; background: rgba(255,255,255,.14); }
.info-banner .spacer { flex: 1; }

/* 标签页 */
.tabs { display: flex; gap: 6px; padding: 4px; background: #EDF4F2; border-radius: 11px; width: fit-content; }
.tab-link { padding: 7px 14px; border-radius: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.tab-link.active { background: #fff; color: var(--brand); box-shadow: 0 2px 6px rgba(18,49,47,.08); }

/* 登录 */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: #F3F7F6; }
.login-art { position: relative; overflow: hidden; background: linear-gradient(155deg, #083F49 0%, #0B4F57 44%, #12365C 100%); color: #fff; padding: 54px 58px; display: flex; flex-direction: column; }
.login-art::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 80%); }
.login-art::after { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(25,182,163,.34), rgba(25,182,163,0) 68%); right: -160px; top: 40px; }
.login-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; }
.login-brand img { width: 54px; height: 54px; border-radius: 15px; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.login-brand .n { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
.login-brand .e { font-size: 9px; letter-spacing: 2.4px; color: rgba(255,255,255,.38); margin-top: 2px; }
.login-copy { position: relative; z-index: 2; margin: auto 0; max-width: 480px; }
.login-copy .tagline { font-size: 11px; letter-spacing: 2.5px; color: #6EE7D2; font-weight: 600; }
.login-copy h1 { margin: 16px 0 12px; font-size: 38px; line-height: 1.35; letter-spacing: -1px; font-weight: 800; }
.login-copy h1 em { font-style: normal; color: #6EE7D2; }
.login-copy p { margin: 0; color: rgba(255,255,255,.55); font-size: 13.5px; line-height: 1.8; }
.login-features { position: relative; z-index: 2; display: flex; gap: 26px; color: rgba(255,255,255,.48); font-size: 11.5px; }
.login-features span { display: flex; align-items: center; gap: 7px; }
.login-features .dot { width: 6px; height: 6px; border-radius: 50%; background: #6EE7D2; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-box { width: 100%; max-width: 400px; }
.login-box .eyebrow { font-size: 11px; letter-spacing: 2px; color: var(--mint); font-weight: 700; }
.login-box h2 { margin: 8px 0 6px; font-size: 28px; color: var(--ink); letter-spacing: -.5px; }
.login-box .sub { font-size: 12.5px; color: var(--muted); margin-bottom: 28px; }
.login-box .form-group { margin-bottom: 16px; }
.login-box .form-control { height: 46px; background: #fff; }
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row .form-control { flex: 1; min-width: 0; }
.captcha-img { width: 130px; height: 46px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; flex: none; }
.login-submit { width: 100%; height: 48px; border: 0; border-radius: 11px; background: linear-gradient(135deg, #128080, #0B4F57); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 22px rgba(14,107,109,.22); }
.login-tip { margin-top: 18px; font-size: 11px; color: var(--muted-2); text-align: center; line-height: 1.7; }
.login-error { background: var(--coral-soft); border: 1px solid #F6D4CF; color: #A53F31; border-radius: 10px; padding: 10px 14px; font-size: 12px; margin-bottom: 16px; }

/* 课程/题目编辑器 */
.repeater { display: flex; flex-direction: column; gap: 12px; }
.repeater-row { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #FBFDFC; position: relative; }
.repeater-row .row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.repeater-row .row-index { font-size: 11px; color: var(--muted-2); font-weight: 700; letter-spacing: .5px; }
.repeater-row .row-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 90px; gap: 10px; align-items: end; }
.repeater-row .row-grid.q { grid-template-columns: 1fr 1fr .8fr; }
.repeater-row .remove-row { border: 0; background: var(--coral-soft); color: #B44739; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }
.repeater-add { border: 1px dashed #BFDAD5; background: #F7FCFB; color: var(--brand); height: 40px; border-radius: 10px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 8px; }
.option-item { display: flex; align-items: center; gap: 6px; }
.option-key { width: 24px; height: 24px; border-radius: 6px; background: var(--mint-soft); color: var(--brand); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.option-item .form-control { height: 34px; min-height: 34px; font-size: 12px; }
.answer-select { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.answer-select label { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 4px 9px; border-radius: 7px; cursor: pointer; }
.answer-select input { accent-color: var(--brand); }
.question-body { margin-top: 10px; }
.question-body textarea { min-height: 64px; }
.question-preview { line-height: 1.8; }
.answer-correct { color: var(--brand); font-weight: 600; }
.answer-wrong { color: var(--coral); font-weight: 600; }

/* 响应式 */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: grid; place-items: center; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 16px 30px; }
  .page-head h1 { font-size: 21px; }
  .form-grid, .detail-grid, .option-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .repeater-row .row-grid, .repeater-row .row-grid.q { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel { min-height: 100vh; padding: 24px; }
  .filter-bar .form-control, .filter-bar .form-select { width: 100%; }
  .filter-search { width: 100%; }
  .filter-search .form-control { min-width: 0; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
  .topbar-date { display: none; }
  .pager { flex-direction: column; }
}

/* 微信支付安全提示 */
.payment-note {
  padding: 13px 15px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(25,182,163,.08), rgba(25,182,163,.02));
  border: 1px solid rgba(25,182,163,.18);
  color: #4E6661;
  font-size: 12.5px;
  line-height: 1.75;
}
.payment-note strong { color: var(--brand); }
.payment-note code { background: rgba(255,255,255,.75); border: 1px solid rgba(25,182,163,.18); border-radius: 5px; padding: 1px 5px; font-size: 11.5px; }

/* 项目详情预览 */
.rich-preview {
  font-size: 14px;
  line-height: 1.85;
  color: #33413E;
  word-break: break-word;
}
.rich-preview img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 12px auto;
  border-radius: 10px;
  border: 1px solid rgba(228,236,234,.9);
  background: #F7FAF9;
}
.rich-preview p { margin: 0 0 12px; }
.rich-preview h1, .rich-preview h2, .rich-preview h3 { margin: 18px 0 10px; line-height: 1.4; }
.rich-preview table { max-width: 100%; border-collapse: collapse; }
.rich-preview td, .rich-preview th { border: 1px solid #E4ECEA; padding: 7px 10px; }
.preview-empty {
  padding: 26px 16px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed #CFDEDA;
  background: #F8FBFA;
  color: #7C8F8B;
  font-size: 13px;
}
.preview-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
