/* 升学就业作战台 v0.1 样式 */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  background: #f5f7fa;
  color: #303133;
}
#app { min-height: 100vh; }

/* 登录页 */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f3ff 0%, #f7f9fc 60%, #fdf3e7 100%);
}
.auth-card { width: 380px; padding: 8px 8px 24px; }
.auth-title { text-align: center; margin: 12px 0 4px; font-size: 22px; letter-spacing: 2px; }
.auth-sub { text-align: center; color: #909399; margin-bottom: 20px; font-size: 13px; }

/* 选赛道 */
.track-wrap { max-width: 960px; margin: 0 auto; padding: 48px 24px; }
.track-title { font-size: 24px; margin-bottom: 8px; }
.track-sub { color: #909399; margin-bottom: 28px; }
.track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.track-card {
  cursor: pointer; border: 2px solid transparent; border-radius: 10px;
  transition: all .2s; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.track-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.10); }
.track-card.active { border-color: #409eff; }
.track-emoji { font-size: 32px; }
.track-name { font-size: 17px; font-weight: 600; margin: 8px 0 4px; }
.track-desc { color: #909399; font-size: 12px; line-height: 1.6; }

/* 主框架 */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 200px; background: #fff; border-right: 1px solid #ebeef5;
  padding: 16px 0; position: sticky; top: 0; height: 100vh;
}
.brand { font-size: 17px; font-weight: 700; padding: 0 20px 16px; letter-spacing: 1px; }
.brand small { display: block; font-weight: 400; color: #a8abb2; font-size: 11px; letter-spacing: 0; margin-top: 4px; }
.main { flex: 1; padding: 20px 24px; min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.topbar h2 { margin: 0; font-size: 20px; }
.topbar .right { display: flex; align-items: center; gap: 12px; color: #606266; }

/* 工作台 */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-box { background: #fff; border-radius: 10px; padding: 18px 20px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.stat-box .num { font-size: 28px; font-weight: 700; }
.stat-box .label { color: #909399; font-size: 13px; margin-top: 4px; }
.countdown-card {
  background: #fff; border-radius: 10px; padding: 18px 20px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.countdown-card .days { font-size: 34px; font-weight: 800; color: #f56c6c; }
.countdown-card .days.warn { color: #e6a23c; }
.countdown-card .days.ok { color: #67c23a; }

/* 机会库 */
.filter-bar { background: #fff; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.table-wrap { background: #fff; border-radius: 10px; padding: 6px 12px 14px; }
.page-row { display: flex; justify-content: flex-end; padding: 12px 0 0; }
.placeholder { color: #a8abb2; padding: 80px 0; text-align: center; }

.detail-grid { display: grid; grid-template-columns: 140px 1fr; row-gap: 10px; font-size: 14px; }
.detail-grid .k { color: #909399; }
.detail-grid .v { color: #303133; word-break: break-all; }
.track-children { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 10px; }

/* 移动端：岗位卡片列表 */
.opp-cards { margin-top: 12px; }
.opp-card {
  background: #fff; border: 1px solid #ebeef5; border-radius: 8px;
  padding: 12px 14px; margin-bottom: 10px;
}
.opp-card-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.opp-card-sub { color: #909399; font-size: 12px; margin-bottom: 8px; }
.opp-card-tags .el-tag { margin: 0 6px 6px 0; }
.empty-card { margin-top: 12px; }
.match-head { margin-bottom: 10px; }
.match-row { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #ebeef5; font-size: 13px; }
.match-row .mk { width: 18px; }
.profile-form .tip { color: #909399; font-size: 12px; line-height: 1.6; margin-top: 4px; }
.profile-form .hint { color: #67c23a; font-size: 12px; margin-bottom: 8px; }

.health-standards{border:1px solid #ebeef5;border-radius:6px;padding:10px 12px;margin:0 0 14px 96px;font-size:13px;color:#606266;background:#fafafa}
.health-standards b{display:block;margin:6px 0}
.hs-item{margin:4px 0;line-height:1.8}

.source-row{display:flex;align-items:center;gap:10px;margin:6px 0;font-size:13px}
.source-row a{color:#409eff;text-decoration:none}
.src-count{color:#909399}
.src-note{color:#c0c4cc}
.hs-src{margin-top:8px;color:#909399;font-size:12px;line-height:1.8}

/* v0.2.8 详情长文本 */
.detail-list .v.pre { white-space: pre-wrap; line-height: 1.7; }
.src-org{color:#909399;font-size:12px;margin-right:8px}

.card-star { position:absolute; right:12px; top:10px; font-size:20px; color:#e6a23c; cursor:pointer; line-height:1; }
.opp-card { position: relative; }

.watch-row { display:flex; align-items:center; gap:12px; padding:8px 0; border-bottom:1px dashed #ebeef5; }
.watch-row:last-child { border-bottom:none; }
.watch-main { flex:1; min-width:0; }
.watch-title { font-weight:600; font-size:14px; }
.watch-sub { color:#909399; font-size:12px; margin-top:2px; }

/* 我的申请看板 */
.apps-page { padding: 4px 2px; }
.apps-head { display:flex; align-items:baseline; gap:12px; margin-bottom:12px; }
.apps-head .hint { color:#909399; font-size:12px; }
.kanban { display:flex; gap:12px; overflow-x:auto; padding-bottom:8px; }
.kan-col { flex:0 0 220px; background:#f7f8fa; border-radius:8px; padding:8px; }
.kan-title { font-size:13px; font-weight:600; color:#606266; padding:4px 6px 8px; }
.kan-card { background:#fff; border:1px solid #ebeef5; border-radius:6px; padding:10px; margin-bottom:8px; }
.kan-pos { font-size:13px; font-weight:600; color:#303133; line-height:1.4; }
.kan-unit { font-size:12px; color:#606266; margin-top:4px; }
.kan-tags { margin-top:6px; }
.kan-ops { display:flex; justify-content:space-between; margin-top:6px; }

/* 材料清单 */
.mat-summary{display:flex;align-items:center;background:#fff;border-radius:10px;padding:16px 20px;margin-bottom:14px}
.mat-num{font-size:30px;font-weight:700;color:#2f6fdb}
.mat-num span{font-size:16px;color:#909399;font-weight:400}
.mat-label{font-size:13px;color:#606266;margin-left:8px}
.mat-group{background:#fff;border-radius:10px;padding:14px 18px;margin-bottom:14px}
.mat-head{display:flex;align-items:baseline;gap:10px;border-bottom:1px solid #f0f2f5;padding-bottom:8px;margin-bottom:8px}
.mat-title{font-weight:600;font-size:15px}
.mat-sub{font-size:12px;color:#909399;flex:1}
.mat-progress{font-size:12px;color:#2f6fdb;background:#eef3fe;border-radius:10px;padding:2px 10px}
.mat-item{display:flex;align-items:center;gap:10px;padding:6px 0}
.mat-name{min-width:120px;font-size:14px}
.mat-name.done{color:#909399;text-decoration:line-through}
.mat-note{width:240px}
.mat-add{display:flex;gap:8px;margin-top:8px;padding-top:8px;border-top:1px dashed #f0f2f5}
@media (max-width:680px){.mat-note{width:120px}}

@media (max-width: 640px) {
  .mat-item { flex-wrap: wrap; }
  .mat-item .el-input { width: 100% !important; margin-top: 6px; }
  .kan-col { min-width: 78vw; }
  .filter-row { flex-wrap: wrap; gap: 8px; }
  .page-title { font-size: 18px; }
  .topbar h2 { font-size: 15px; }
  .topbar .right { flex-wrap: wrap; gap: 6px; }
  .opp-card-actions { gap: 6px; }
}

.opp-card-actions { margin-top: 6px; }
.kan-log { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; padding: 4px 0; }
.kan-log .t { color: #909399; }

/* 手机端：侧栏收起成抽屉，主区不再被 200px 侧栏挤成一列字 */
.nav-toggle { display: none; }
.nav-mask { display: none; }
@media (max-width: 640px) {
  .nav-toggle { display: inline-flex; }
  .sidebar { position: fixed; left: -220px; top: 0; z-index: 40; width: 200px;
             transition: left .2s; box-shadow: 2px 0 12px rgba(0,0,0,.08); }
  .sidebar.open { left: 0; }
  .nav-mask { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }
  .main { padding: 12px; }
  .topbar { flex-wrap: wrap; align-items: flex-start; gap: 8px; }
  .topbar h2 { font-size: 16px; width: 100%; }
}

/* v0.5 AI 助手 + 简历批阅 */
.ai-input { display: flex; gap: 8px; }
.ai-input .el-input { flex: 1; }
.ai-quick { margin-top: 10px; }
.ai-chip { cursor: pointer; margin: 0 6px 6px 0; }
.ai-msg { border-top: 1px dashed #ebeef5; margin-top: 12px; padding-top: 10px; }
.ai-q { color: #409eff; font-weight: 600; margin-bottom: 6px; }
.ai-a { white-space: pre-wrap; line-height: 1.8; color: #303133; }
.ai-src { margin-top: 8px; font-size: 13px; color: #909399; }
.ai-total .num { font-size: 34px; font-weight: 700; color: #409eff; }
.ai-dim { margin-top: 12px; }
.ai-dim-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 4px; }
.ai-tips { margin-top: 14px; background: #fdf6ec; border-radius: 6px; padding: 10px 12px; color: #8a5a00; line-height: 1.9; }
/* v0.5.2 推荐卡片 */
.rec-grp { margin-bottom: 8px; }
.rec-t { font-size: 12px; color: #909399; margin-bottom: 2px; }
.rec-row { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.rec-row:hover { background: #f5f7fa; }
.rec-name { font-size: 14px; color: #303133; }
.rec-sub { font-size: 12px; color: #909399; }

/* v0.5.7 手机端：筛选器、表格、AI 输入不挤成一团 */
@media (max-width: 640px) {
  .filter-row { display: flex; flex-direction: column; align-items: stretch; }
  .filter-row .el-select,
  .filter-row .el-input,
  .filter-row .el-autocomplete,
  .filter-row .el-date-editor { width: 100% !important; }
  .filter-row .el-button { margin-left: 0 !important; width: 100%; }
  .filter-bar { padding: 8px !important; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ai-input { flex-wrap: wrap; }
  .ai-input .el-input { width: 100%; }
  .ai-input .el-button { width: 100%; margin-left: 0; }
  .mat-add { flex-wrap: wrap; }
  .mat-add .el-input { width: 100% !important; }
  .row { flex-wrap: wrap; }
  .card { padding: 12px !important; }
  .el-dialog { margin-top: 6vh !important; }
  .stat-row { grid-template-columns: 1fr 1fr !important; }
  .track-grid { grid-template-columns: 1fr !important; }
}

/* v0.5.7 手机端：材料/申请页头不再和下拉挤在一行；侧栏抽屉加宽 */
@media (max-width: 640px) {
  .sidebar { width: 76vw; max-width: 280px; left: -80vw; }
  .sidebar.open { left: 0; }
  .apps-head { flex-wrap: wrap; }
  .apps-head b { width: 100%; }
  .apps-head .el-select { width: 100% !important; }
  .apps-head .hint { width: 100%; }
  .row > .el-select, .row > .el-input, .row > .el-autocomplete { width: 100% !important; }
  .row > .hint { width: 100%; }
}

/* v0.6.1：日程条目可点、手机端卡片头按钮好按 */
.watch-row[style*="cursor:pointer"]:hover { background: #f5f7fa; }
@media (max-width: 640px) {
  .el-card__header .el-button { min-height: 32px; }
}

/* v0.7.1：移动端表格滑动提示 */
.mobile-only { display: none; }
@media (max-width: 640px) { .mobile-only { display: block; font-size: 12px; } }

/* v0.8：只读分享页 + 账号设置入口 */
.nick { cursor: pointer; }
.nick:hover { color: #2563eb; }
.share-wrap { max-width: 720px; margin: 40px auto; padding: 0 16px; }
.share-card { background: #fff; border: 1px solid #ebeef5; border-radius: 12px; padding: 24px; }
.share-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.share-hd h2 { margin: 0 0 6px; }
.share-roots { display: flex; gap: 6px; flex-wrap: wrap; }
.share-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.share-stat { background: #f7f9fc; border-radius: 8px; padding: 12px; text-align: center; }
.share-stat b { display: block; font-size: 22px; }
.share-stat span { color: #909399; font-size: 12px; }
.share-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #ebeef5; }
.share-title { font-weight: 600; }
.share-sub { color: #909399; font-size: 12px; }
@media (max-width: 640px) { .share-stats { grid-template-columns: repeat(3, 1fr); } .share-card { padding: 16px; } }

/* 数据免责说明（克制展示） */
.data-note{margin:8px 0 0;font-size:12px;color:#909399;line-height:1.6;}
@media (max-width:640px){.data-note{font-size:11px;}}

/* 数据新鲜度 + 手机端收尾 */
.src-updated{font-size:12px;color:#909399}
.src-updated .stale{font-style:normal;color:#e6a23c;margin-left:2px}
@media (max-width:640px){
  .source-row{flex-wrap:wrap;gap:6px}
  .source-row a{font-size:12px}
  .mat-item{flex-wrap:wrap}
  .mat-item .mat-actions{margin-left:0;width:100%;display:flex;gap:8px}
  .kanban{scroll-snap-type:x mandatory}
  .kan-col{scroll-snap-align:start}
  .apps-head .el-select{width:100%!important}
}

.stale-text{color:#e6a23c}
