/* 成工更炽热 · 校企协同平台 Web 端 —— 学院蓝设计语言 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
    background: linear-gradient(180deg, #f8fbfe 0%, #f5f9fd 60%, #eef3fa 100%);
    color: #12233c;
}

/* ---------- 登录 ---------- */
.login-mask { position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #3a7fd4 0%, #2a66b4 45%, #164377 100%); z-index: 100; }
.login-card { width: 380px; padding: 42px 40px; border-radius: 22px; background: #fff; text-align: center;
    box-shadow: 0 30px 80px rgba(3,14,32,.45), inset 0 1px 0 #fff; }
.login-brand { width: 46px; height: 4px; border-radius: 999px; margin: 0 auto 18px;
    background: linear-gradient(90deg, #ffe9a8, #ffd257, #f0a63c); }
.login-card h1 { font-size: 21px; letter-spacing: 1px; margin-bottom: 8px; }
.login-card p { font-size: 13px; color: #77869d; margin-bottom: 22px; }
.login-card input { width: 100%; height: 46px; border: 1px solid #c6d5e8; border-radius: 12px;
    padding: 0 16px; font-size: 15px; color: #12233c; background: #f7fafd; outline: none; }
.login-card input:focus { border-color: #2a66b4; background: #fff; }
.login-card .btn { width: 100%; margin-top: 14px; }
.login-card .err { color: #C9312A; font-size: 13px; margin-top: 12px; min-height: 18px; }

/* ---------- 布局 ---------- */
.app { display: none; height: 100%; }
.sidebar { width: 230px; flex: none; background: #fff; border-right: 1px solid rgba(23,42,78,.08);
    overflow-y: auto; padding: 18px 12px 30px; }
.main { flex: 1; overflow-y: auto; padding: 28px 36px 60px; }

/* ---------- 侧栏 ---------- */
.nav-group { margin-bottom: 20px; }
.nav-title { font-size: 11px; font-weight: 600; letter-spacing: 2px; color: #8b99ad; padding: 0 12px 8px; }
.nav-item { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px;
    border-radius: 10px; font-size: 14px; color: #41546e; cursor: pointer; transition: all .15s ease; }
.nav-item:hover { background: #f0f5fb; }
.nav-item.active { background: linear-gradient(135deg, #3a7fd4, #2a66b4); color: #fff; font-weight: 600;
    box-shadow: 0 6px 16px rgba(42,102,180,.30); }
.nav-item b { font-size: 11px; font-weight: 600; color: #8b99ad; background: #eef2f8;
    border-radius: 999px; padding: 1px 8px; }
.nav-item.active b { color: #fff; background: rgba(255,255,255,.22); }

/* ---------- 主区 ---------- */
.main h1 { font-size: 22px; letter-spacing: 1px; margin-bottom: 20px; }
.main h1 .sub { font-size: 13px; font-weight: 400; color: #8b99ad; margin-left: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { padding: 16px 18px; border-radius: 16px; background: #fff; cursor: pointer;
    border: 1px solid rgba(23,42,78,.06); box-shadow: 0 2px 10px rgba(17,42,78,.05);
    transition: all .15s ease; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(17,42,78,.12); }
.stat b { display: block; font-size: 26px; font-weight: 700; color: #1b4a87; }
.stat span { font-size: 13px; color: #41546e; }
.stat em { display: block; font-style: normal; font-size: 11px; color: #a7b3c2; margin-top: 4px; }

.card { padding: 22px 26px; border-radius: 18px; background: #fff; margin-bottom: 20px;
    border: 1px solid rgba(23,42,78,.06); box-shadow: 0 2px 10px rgba(17,42,78,.05); }
.card h2 { font-size: 16px; margin-bottom: 14px; }
.card .tip { font-size: 12px; color: #8b99ad; margin-bottom: 12px; }
.flag-row { display: flex; align-items: center; gap: 14px; padding: 8px 0;
    border-bottom: 1px solid rgba(23,42,78,.06); }
.flag-row code { font-size: 13px; color: #2a66b4; background: #eef4fb; padding: 3px 10px; border-radius: 8px; }
.flag-row b { font-size: 13px; font-weight: 600; }

.feed-row { display: flex; align-items: center; gap: 16px; padding: 9px 0;
    border-bottom: 1px solid rgba(23,42,78,.05); font-size: 13px; }
.feed-row:last-child { border-bottom: none; }
.feed-row b { width: 110px; flex: none; }
.feed-row span { flex: 1; color: #77869d; }
.feed-row em { font-style: normal; color: #a7b3c2; font-size: 12px; }

.empty { padding: 34px 0; text-align: center; font-size: 13px; color: #a7b3c2; }
.dim { color: #b9c2cd; }
.ok { color: #2e9e5b; font-weight: 600; }
code { font-family: Menlo, Consolas, monospace; font-size: 12px; }

/* ---------- 工具栏与按钮 ---------- */
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; }
.btn { display: inline-flex; align-items: center; height: 36px; padding: 0 18px;
    border: 1px solid rgba(23,42,78,.12); border-radius: 10px; background: #fff;
    font-size: 13px; font-weight: 600; color: #41546e; cursor: pointer; transition: all .15s ease; }
.btn:hover { border-color: #2a66b4; color: #2a66b4; }
.btn.primary { background: linear-gradient(180deg, #3a7fd4, #2a66b4); border: none; color: #fff;
    box-shadow: 0 6px 16px rgba(42,102,180,.30); }
.btn.primary:hover { color: #fff; filter: brightness(1.05); }
.btn.danger { color: #C9312A; border-color: rgba(201,49,42,.35); }
.btn.danger:hover { background: #fdf1f0; border-color: #C9312A; color: #C9312A; }
.toolbar input, .card input { height: 36px; border: 1px solid #c6d5e8; border-radius: 10px;
    padding: 0 14px; font-size: 13px; color: #12233c; background: #f7fafd; outline: none;
    margin-right: 10px; }
.card input { width: 320px; display: block; margin-bottom: 12px; margin-right: 0; }
.card input:focus { border-color: #2a66b4; background: #fff; }

/* ---------- 表格 ---------- */
.table-wrap { border-radius: 16px; background: #fff; overflow: auto; max-height: calc(100vh - 220px);
    border: 1px solid rgba(23,42,78,.07); box-shadow: 0 2px 10px rgba(17,42,78,.05); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th { position: sticky; top: 0; background: #f2f6fb; text-align: left; padding: 10px 14px;
    font-size: 12px; font-weight: 600; color: #556a88; white-space: nowrap;
    border-bottom: 1px solid rgba(23,42,78,.10); }
tbody td { padding: 9px 14px; border-bottom: 1px solid rgba(23,42,78,.05); white-space: nowrap;
    max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
tbody tr:hover { background: #f7fafd; }
td.op, th.op { color: #C9312A; }
td.op a { cursor: pointer; font-size: 12px; }
td.op a:hover { text-decoration: underline; }

/* ---------- 编辑弹层 ---------- */
.editor-mask { position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
    background: rgba(4,18,40,.55); z-index: 90; }
.editor-panel { width: 640px; max-width: 92vw; padding: 26px 30px; border-radius: 20px; background: #fff;
    box-shadow: 0 30px 80px rgba(3,14,32,.5); }
.editor-panel h2 { font-size: 17px; margin-bottom: 14px; }
.editor-panel textarea { width: 100%; height: 340px; border: 1px solid #c6d5e8; border-radius: 12px;
    padding: 14px; font-family: Menlo, Consolas, monospace; font-size: 12px; line-height: 1.6;
    color: #12233c; background: #f7fafd; outline: none; resize: vertical; }
.editor-panel textarea:focus { border-color: #2a66b4; background: #fff; }
.editor-panel .row { margin-top: 14px; text-align: right; display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px);
    padding: 10px 22px; border-radius: 999px; background: #12233c; color: #fff; font-size: 13px;
    opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 200;
    box-shadow: 0 10px 30px rgba(3,14,32,.35); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #C9312A; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
    .app { flex-direction: column; }
    .sidebar { width: 100%; max-height: 180px; border-right: none; border-bottom: 1px solid rgba(23,42,78,.08); }
    .main { padding: 18px 16px 40px; }
    .nav-group { margin-bottom: 8px; }
    .nav-item { display: inline-flex; margin: 0 6px 6px 0; }
    .nav-group .nav-title { display: none; }
}

/* ---------- 顶栏 ---------- */
.topbar { height: 52px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px; background: linear-gradient(135deg, #3a7fd4 0%, #2a66b4 55%, #164377 100%);
    box-shadow: 0 8px 24px rgba(22,67,119,.25); }
.tb-brand { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 2px; }
.tb-right { color: rgba(255,255,255,.75); font-size: 12px; letter-spacing: 1px; }
.app { height: calc(100% - 52px); }
