/* ============================================================
   鹭职通平台 · PC 端设计系统 v2.0（藏青鎏金 · 政务高端风）
   深藏青画布 #0c2340 + 鎏金强调 #f59e0b + 玻璃卡片 + 金色光晕
   桌面优先：左侧导航 + 顶栏 + 内容区；类名与 v1.0 完全兼容
   ============================================================ */
:root {
    --cy: #f59e0b;
    --cy-deep: #d97706;
    --bl: #3b82f6;
    --vio: #3267b0;
    --grad: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
    --grad-soft: rgba(245, 158, 11, .12);
    --side-grad: linear-gradient(180deg, #091d38 0%, #0c2340 60%, #102c52 100%);
    --bg: #0c2340;
    --card: #122b4e;
    --card-hi: #16345d;
    --line: rgba(255, 255, 255, .10);
    --text: #e6edf5;
    --muted: #9eb8da;
    --green: #34d399;
    --red: #f87171;
    --blue: #5680be;
    --gray: #7a9ccc;
    --glow: 0 0 24px rgba(245, 158, 11, .16);
    --shadow: 0 4px 18px rgba(2, 10, 26, .5);
    --shadow-lg: 0 18px 50px rgba(2, 10, 26, .7);
    --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font: 14px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(1100px 560px at 88% -8%, rgba(245, 158, 11, .07), transparent 60%),
        radial-gradient(900px 620px at -8% 30%, rgba(28, 58, 106, .5), transparent 55%),
        var(--bg);
    background-attachment: fixed;
}
a { color: var(--cy); text-decoration: none; }
a:hover { opacity: .85; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0c2340; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #f59e0b, #d97706); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #fbbf24, #f59e0b); }

/* ---------- 布局骨架 ---------- */
.pc-shell { display: flex; min-height: 100vh; }
.pc-side {
    width: 224px; flex: 0 0 224px; color: #c2d4e8;
    background: var(--side-grad);
    border-right: 1px solid rgba(245, 158, 11, .14);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.pc-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 20px 18px 16px; cursor: pointer; user-select: none;
    border-bottom: 1px solid rgba(245, 158, 11, .14);
}
.pc-brand-logo {
    width: 38px; height: 38px; border-radius: 11px; flex: 0 0 38px;
    background: var(--grad); color: #0c2340; font-size: 20px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(245, 158, 11, .4);
}
.pc-brand-name { font-size: 17px; font-weight: 700; letter-spacing: 1px; color: #fff; }
.pc-brand-sub { font-size: 11px; color: rgba(194, 212, 232, .5); }
.pc-nav { flex: 1; padding: 6px 12px 24px; }
.pc-nav-loading { color: rgba(194, 212, 232, .4); padding: 14px 8px; font-size: 13px; }
.pc-nav-group { margin-top: 14px; }
.pc-nav-group-title {
    font-size: 11px; color: rgba(158, 184, 218, .75); letter-spacing: 2px;
    padding: 8px 10px 6px; display: flex; align-items: center; gap: 6px;
}
.pc-nav-item {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 12px; margin: 2px 0; border-radius: 10px;
    color: rgba(194, 212, 232, .8); font-size: 13.5px; cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}
.pc-nav-item:hover { background: rgba(245, 158, 11, .1); color: #fff; }
.pc-nav-item.active {
    background: var(--grad); color: #0c2340; font-weight: 700;
    box-shadow: 0 4px 16px rgba(245, 158, 11, .35);
}
.pc-nav-item .ni { width: 18px; text-align: center; }

.pc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-topbar {
    height: 58px; background: rgba(9, 26, 50, .85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 158, 11, .14);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 26px; position: sticky; top: 0; z-index: 30;
}
.pc-crumb { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.pc-topbar-right { display: flex; align-items: center; gap: 16px; }
.pc-bell { position: relative; font-size: 17px; text-decoration: none; }
.pc-badge {
    position: absolute; top: -7px; right: -9px; min-width: 16px; height: 16px;
    background: var(--grad); color: #0c2340; border-radius: 8px; font-size: 10px; font-weight: 800;
    font-style: normal; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.pc-userchip { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; }
.pc-avatar {
    width: 30px; height: 30px; border-radius: 50%; background: var(--grad-soft);
    border: 1px solid rgba(245, 158, 11, .35); color: var(--cy); font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.pc-content { flex: 1; padding: 24px 26px; max-width: 1280px; width: 100%; margin: 0 auto; }
.pc-foot { padding: 16px 26px 22px; color: var(--muted); font-size: 12px; text-align: center; }

/* ---------- 卡片与区块 ---------- */
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 16px;
}
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card-title .bar { width: 4px; height: 16px; border-radius: 2px; background: var(--grad); display: inline-block; box-shadow: 0 0 8px rgba(245, 158, 11, .6); }
.card-title .extra { margin-left: auto; font-weight: 400; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.hero {
    background: linear-gradient(135deg, rgba(217, 119, 6, .3) 0%, rgba(28, 58, 106, .55) 55%, rgba(17, 37, 71, .65) 100%);
    border: 1px solid rgba(245, 158, 11, .32);
    border-radius: var(--radius); color: #fff;
    padding: 26px 28px; margin-bottom: 16px;
    box-shadow: 0 10px 34px rgba(245, 158, 11, .12), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.hero-title { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.hero-sub { opacity: .88; margin-top: 6px; font-size: 13.5px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stat-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.stat-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 18px 20px; position: relative; overflow: hidden;
    transition: border-color .18s, box-shadow .18s;
}
.stat-card:hover { border-color: rgba(245, 158, 11, .45); box-shadow: var(--glow); }
.stat-card::after {
    content: ""; position: absolute; right: -22px; top: -22px; width: 74px; height: 74px;
    border-radius: 50%; border: 1px solid rgba(245, 158, 11, .18); background: rgba(245, 158, 11, .06);
}
.stat-num {
    font-size: 26px; font-weight: 800;
    background: linear-gradient(135deg, #fde68a, #fbbf24 45%, #f59e0b);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, .25));
}
.stat-label { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.stat-card.gold .stat-num { background: linear-gradient(135deg, #fde68a, #fbbf24 45%, #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- 表格 ---------- */
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 16px; }
table.pc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pc-table th {
    text-align: left; padding: 12px 16px; background: rgba(245, 158, 11, .08); color: #9eb8da;
    font-weight: 600; font-size: 12.5px; border-bottom: 1px solid rgba(245, 158, 11, .16); white-space: nowrap;
}
.pc-table td { padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); vertical-align: middle; }
.pc-table tr:last-child td { border-bottom: none; }
.pc-table tr:hover td { background: rgba(245, 158, 11, .05); }
.pc-table .t-main { font-weight: 600; color: #fff; }
.pc-table .t-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.pc-table .ops { white-space: nowrap; text-align: right; }
.pc-table .ops a, .pc-table .ops button { margin-left: 8px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 1px solid var(--line); cursor: pointer; border-radius: 10px; font-size: 13.5px;
    padding: 9px 18px; font-weight: 600; transition: transform .12s, opacity .15s, box-shadow .15s;
    background: rgba(245, 158, 11, .08); color: var(--text); text-decoration: none;
}
.btn:hover { opacity: .92; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary, .btn.gold { background: var(--grad); border: none; color: #0c2340; font-weight: 700; box-shadow: 0 4px 16px rgba(245, 158, 11, .35); }
.btn.pink { background: linear-gradient(135deg, #3b82f6, #3267b0); border: none; color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.danger { background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .3); color: var(--red); }
.btn.sm { padding: 5px 12px; font-size: 12.5px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.lg { padding: 12px 26px; font-size: 15px; }

/* ---------- 标签 ---------- */
.tag {
    display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 20px;
    font-size: 11.5px; font-weight: 600; line-height: 20px; white-space: nowrap; border: 1px solid transparent;
}
.tag.green { background: rgba(52, 211, 153, .12); color: #34d399; border-color: rgba(52, 211, 153, .3); }
.tag.red { background: rgba(248, 113, 113, .12); color: #f87171; border-color: rgba(248, 113, 113, .3); }
.tag.gold { background: rgba(251, 191, 36, .14); color: #fbbf24; border-color: rgba(251, 191, 36, .34); }
.tag.pink { background: rgba(86, 128, 190, .16); color: #9ec3f0; border-color: rgba(86, 128, 190, .34); }
.tag.gray { background: rgba(100, 116, 139, .16); color: #94a3b8; border-color: rgba(100, 116, 139, .3); }
.tag.blue { background: rgba(86, 128, 190, .14); color: #7ab0e8; border-color: rgba(86, 128, 190, .32); }

/* ---------- 表单 ---------- */
.form-item { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-item > label { font-size: 12.5px; color: #9eb8da; font-weight: 600; }
.form-item input, .form-item select, .form-item textarea {
    border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
    font-size: 13.5px; font-family: inherit; background: rgba(6, 20, 40, .55);
    color: var(--text); outline: none; width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.form-item input::placeholder, .form-item textarea::placeholder { color: #5d76a3; }
.form-item select option { background: #122b4e; color: var(--text); }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
    border-color: var(--cy); box-shadow: 0 0 0 3px rgba(245, 158, 11, .16);
}
.form-item textarea { min-height: 84px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-bottom: 16px; }
.filters .form-item { margin-bottom: 0; min-width: 150px; }
.filters .form-item input, .filters .form-item select { padding: 8px 10px; }
.inline-tip {
    background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .26);
    border-radius: 10px; padding: 10px 14px; font-size: 12.5px; color: #fcd34d; margin-bottom: 14px;
}

/* ---------- KV 明细 ---------- */
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.kv { display: flex; gap: 14px; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, .1); font-size: 13.5px; align-items: baseline; }
.kv .k { color: var(--muted); flex: 0 0 96px; }
.kv .v { flex: 1; min-width: 0; word-break: break-all; }
.kv-full { grid-column: 1 / -1; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 4px 4px; font-size: 13px; color: var(--muted); }
.pager button {
    border: 1px solid var(--line); background: rgba(245, 158, 11, .06); border-radius: 8px;
    min-width: 30px; height: 30px; cursor: pointer; font-size: 13px; color: var(--text);
}
.pager button.cur { background: var(--grad); color: #0c2340; border-color: transparent; font-weight: 800; box-shadow: 0 0 12px rgba(245, 158, 11, .35); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 弹窗 ---------- */
.pc-mask {
    position: fixed; inset: 0; background: rgba(3, 10, 24, .7); z-index: 100;
    display: flex; align-items: flex-start; justify-content: center; padding: 7vh 20px 20px;
    overflow-y: auto; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.pc-modal {
    background: #10294d; border: 1px solid rgba(245, 158, 11, .3); border-radius: 16px; width: 560px; max-width: 100%;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(245, 158, 11, .1); animation: pop .18s ease;
}
.pc-modal.wide { width: 760px; }
@keyframes pop { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.pc-modal-head {
    display: flex; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line);
    font-size: 15.5px; font-weight: 700; color: #fff;
}
.pc-modal-close { margin-left: auto; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; }
.pc-modal-body { padding: 20px 22px; max-height: 64vh; overflow-y: auto; }
.pc-modal-foot { padding: 14px 22px 18px; display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- Toast / 状态 ---------- */
.pc-toast {
    position: fixed; top: 74px; left: 50%; transform: translateX(-50%) translateY(-16px);
    background: rgba(10, 26, 50, .95); border: 1px solid rgba(245, 158, 11, .4);
    color: #e6edf5; padding: 10px 22px; border-radius: 24px;
    font-size: 13.5px; z-index: 200; opacity: 0; pointer-events: none; transition: all .25s;
    box-shadow: 0 10px 30px rgba(2, 10, 26, .6);
}
.pc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.pc-loading { text-align: center; color: var(--muted); padding: 60px 0; font-size: 13.5px; }
.pc-empty { text-align: center; color: var(--muted); padding: 46px 0; font-size: 13.5px; }
.pc-empty .e-ico { font-size: 34px; display: block; margin-bottom: 10px; opacity: .6; }

/* ---------- 时间线 ---------- */
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, rgba(245, 158, 11, .3), rgba(255, 255, 255, .1)); }
.tl-item { position: relative; padding: 8px 0 14px; }
.tl-item::before {
    content: ""; position: absolute; left: -21px; top: 15px; width: 10px; height: 10px;
    border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px rgba(245, 158, 11, .18), 0 0 10px rgba(245, 158, 11, .45);
}
.tl-item .tl-time { color: var(--muted); font-size: 12px; }
.tl-item .tl-text { margin-top: 2px; }

/* ---------- 登录页（v1.4 起走独立 auth.css，以下为向后兼容保留） ---------- */
body.pc-login { background: var(--bg); }
.login-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
    background:
        radial-gradient(circle at 12% 18%, rgba(245, 158, 11, .1) 0, transparent 34%),
        radial-gradient(circle at 86% 82%, rgba(28, 58, 106, .55) 0, transparent 30%),
        var(--bg);
}
.login-card {
    width: 420px; max-width: 100%; background: var(--card); border: 1px solid var(--line);
    border-radius: 20px; box-shadow: var(--shadow-lg); padding: 38px 36px 30px;
}
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand .logo {
    width: 62px; height: 62px; border-radius: 18px; margin: 0 auto 12px;
    background: var(--grad); color: #0c2340; font-size: 30px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(245, 158, 11, .4);
}
.login-brand h1 { font-size: 21px; letter-spacing: 1px; color: #fff; }
.login-brand p { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.login-code-row { display: flex; gap: 10px; }
.login-code-row input { flex: 1; }
.login-tip { text-align: center; color: var(--muted); font-size: 12px; margin-top: 16px; }

/* ---------- 消息 ---------- */
.msg-item { display: flex; gap: 12px; padding: 14px 6px; border-bottom: 1px solid rgba(255, 255, 255, .07); cursor: pointer; }
.msg-item:last-child { border-bottom: none; }
.msg-item:hover { background: rgba(245, 158, 11, .05); }
.msg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cy); margin-top: 8px; flex: 0 0 8px; box-shadow: 0 0 8px rgba(245, 158, 11, .6); }
.msg-dot.read { background: #33507a; box-shadow: none; }
.msg-main { flex: 1; min-width: 0; }
.msg-title { font-weight: 600; font-size: 13.5px; color: #fff; }
.msg-title.read { color: var(--muted); font-weight: 400; }
.msg-body { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.msg-time { color: var(--gray); font-size: 12px; white-space: nowrap; }

/* ---------- 评分进度 ---------- */
.score-bar { height: 8px; border-radius: 4px; background: rgba(245, 158, 11, .14); overflow: hidden; min-width: 90px; }
.score-bar i { display: block; height: 100%; background: var(--grad); border-radius: 4px; box-shadow: 0 0 10px rgba(245, 158, 11, .45); }

/* ---------- 响应式兜底 ---------- */
@media (max-width: 900px) {
    .pc-side { display: none; }
    .stat-grid, .stat-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2, .grid-3, .form-row, .form-row-3, .kv-grid { grid-template-columns: 1fr; }
}
