:root {
  --primary: #4f7cff;
  --primary-dark: #3a63d8;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1f2733;
  --text-sub: #7a8699;
  --green: #22b07d;
  --orange: #f5a623;
  --red: #e8574e;
  --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); }
.hidden { display: none !important; }

/* 登录 */
.login-view { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #4f7cff 0%, #6a5cff 100%); padding: 24px; }
.login-card { width: 100%; max-width: 360px; background: #fff; border-radius: 20px; padding: 36px 28px; box-shadow: 0 20px 60px rgba(30, 50, 120, .3); }
.login-logo { font-size: 30px; font-weight: 800; color: var(--primary); text-align: center; }
.login-logo span { color: var(--text); font-weight: 300; }
.login-sub { text-align: center; color: var(--text-sub); font-size: 13px; margin: 8px 0 26px; }
.login-card input { width: 100%; height: 46px; border: 1px solid #e3e8f0; border-radius: 10px; padding: 0 14px; font-size: 15px; margin-bottom: 14px; outline: none; }
.login-card input:focus { border-color: var(--primary); }
.btn-primary { width: 100%; height: 46px; border: none; border-radius: 10px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn-primary:active { background: var(--primary-dark); }
.login-error { color: var(--red); font-size: 13px; text-align: center; min-height: 18px; margin-top: 10px; }
.login-tip { text-align: center; color: #b3bcc9; font-size: 12px; margin-top: 18px; }

/* 框架 */
.app-view { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.app-header { position: sticky; top: 0; z-index: 10; background: var(--primary); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.header-title { font-size: 17px; font-weight: 600; }
.header-user { font-size: 13px; opacity: .9; }
.app-main { flex: 1; padding: 14px 14px 84px; }
.tab-bar { position: fixed; bottom: 0; left: 0; right: 0; max-width: 520px; margin: 0 auto; background: #fff; display: flex; border-top: 1px solid #eef1f6; padding-bottom: env(safe-area-inset-bottom); }
.tab-item { flex: 1; border: none; background: none; padding: 8px 0 10px; font-size: 11px; color: var(--text-sub); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tab-item.active { color: var(--primary); font-weight: 600; }
.tab-icon { font-size: 18px; }

/* 卡片 */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(31, 60, 136, .05); }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.card-title .more { font-size: 12px; color: var(--text-sub); font-weight: 400; }

/* 首页 */
.hero { background: linear-gradient(135deg, #4f7cff, #6a5cff); color: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 12px; }
.hero-name { font-size: 18px; font-weight: 600; }
.hero-course { font-size: 13px; opacity: .85; margin-top: 4px; }
.hero-score-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 16px; }
.hero-score { font-size: 42px; font-weight: 800; line-height: 1; }
.hero-score small { font-size: 14px; font-weight: 400; opacity: .8; }
.hero-grade { background: rgba(255,255,255,.2); border-radius: 20px; padding: 6px 14px; font-size: 13px; }
.hero-veto { margin-top: 10px; font-size: 12px; background: rgba(232,87,78,.25); padding: 6px 10px; border-radius: 8px; }
.chart { width: 100%; height: 260px; }
.chart-sm { width: 100%; height: 180px; }

/* 预警 */
.alert-item { border-left: 4px solid var(--orange); background: #fff8ec; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; }
.alert-item.red { border-color: var(--red); background: #fff0ef; }
.alert-item .alert-msg { font-weight: 600; }
.alert-item .alert-extra { color: var(--text-sub); margin-top: 4px; line-height: 1.5; }

/* 任务 */
.module-card { border: 1px solid #edf0f6; border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.module-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.module-name { font-weight: 600; font-size: 14px; }
.module-weight { font-size: 12px; color: var(--text-sub); }
.obi-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px dashed #eef1f6; font-size: 13px; }
.obi-desc { flex: 1; color: #3c4657; padding-right: 8px; }
.obi-score { font-weight: 700; min-width: 42px; text-align: right; }
.obi-score.good { color: var(--green); }
.obi-score.mid { color: var(--orange); }
.obi-score.bad { color: var(--red); }
.upload-btn { border: 1px solid var(--primary); color: var(--primary); background: #fff; border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.material-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #f2f4f8; font-size: 13px; }
.material-thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #eef1f6; flex-shrink: 0; }
.material-status { font-size: 11px; border-radius: 6px; padding: 2px 6px; }
.material-status.pending { background: #fff3d6; color: #b97900; }
.material-status.approved { background: #dcf5e9; color: #128054; }
.material-status.rejected { background: #fde2e0; color: #c0342b; }
.material-ai { color: var(--text-sub); font-size: 12px; margin-top: 2px; }

/* 画像 */
.co-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px solid #f2f4f8; }
.co-bar-wrap { flex: 1; height: 8px; background: #eef1f6; border-radius: 4px; margin: 6px 12px 0; overflow: hidden; }
.co-bar { height: 100%; background: var(--primary); border-radius: 4px; }
.tag { display: inline-block; border-radius: 6px; padding: 3px 8px; font-size: 12px; margin: 3px 4px 0 0; }
.tag.weak { background: #fde2e0; color: #c0342b; }
.tag.strong { background: #dcf5e9; color: #128054; }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge-item { text-align: center; padding: 12px 6px; border-radius: 10px; background: #f7f9ff; }
.badge-item .badge-icon { font-size: 26px; }
.badge-item .badge-name { font-size: 12px; margin-top: 6px; color: #3c4657; }
.badge-item.gold { background: linear-gradient(160deg, #fff6d8, #ffefc2); }
.badge-item.silver { background: linear-gradient(160deg, #eef2f8, #e4eaf4); }
.report-item { padding: 10px 0; border-top: 1px solid #f2f4f8; font-size: 13px; }
.report-narrative { color: #3c4657; line-height: 1.6; white-space: pre-line; margin: 8px 0; background: #f7f9ff; padding: 10px; border-radius: 8px; }

/* 岗位 */
.job-card { background: #fff; border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 10px rgba(31,60,136,.05); display: flex; gap: 14px; }
.job-ring { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.job-info { flex: 1; }
.job-title { font-weight: 600; font-size: 15px; }
.job-salary { color: var(--orange); font-size: 13px; margin: 2px 0; }
.job-gaps { font-size: 12px; color: var(--text-sub); }

/* 我的 */
.me-head { display: flex; align-items: center; gap: 14px; }
.me-avatar { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, #4f7cff, #6a5cff); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.me-name { font-size: 17px; font-weight: 600; }
.me-sub { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.btn-ghost { width: 100%; height: 44px; border: 1px solid #e3e8f0; background: #fff; border-radius: 10px; color: var(--red); font-size: 15px; cursor: pointer; margin-top: 8px; }
.empty { text-align: center; color: var(--text-sub); font-size: 13px; padding: 30px 0; }
.loading { text-align: center; color: var(--text-sub); font-size: 13px; padding: 20px 0; }
.toast { position: fixed; top: 60px; left: 50%; transform: translateX(-50%); background: rgba(31,39,51,.92); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13px; z-index: 99; max-width: 80%; }
