{{-- 全站样式：中文政府核查风格，自包含无外部依赖 --}}
:root {
    --primary: #1e4b8f;
    --primary-dark: #16386d;
    --accent: #c8102e;
    --ink: #26303f;
    --muted: #748094;
    --line: #e5e9f0;
    --bg: #f4f6fa;
    --card: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 15px;
    line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== 顶部导航 ===== */
.topbar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(22,56,109,.25);
}
.topbar-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; gap: 24px; height: 56px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .logo {
    width: 30px; height: 30px; border-radius: 8px; background: #fff;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 14px; font-weight: 800; flex-shrink: 0;
}
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
    color: rgba(255,255,255,.85); padding: 6px 14px; border-radius: 8px;
    font-size: 14px; text-decoration: none; transition: .15s;
}
.nav a:hover, .nav a.active { color: #fff; background: rgba(255,255,255,.15); text-decoration: none; }
.topbar .spacer { flex: 1; }
.topbar .user-box { font-size: 13px; color: rgba(255,255,255,.9); display: flex; align-items: center; gap: 10px; }
.topbar .user-box form { display: inline; }

/* ===== 通用容器/组件 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 24px 20px; }
.page-head { margin-bottom: 20px; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.page-head h1 { font-size: 22px; margin: 0; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    padding: 18px 20px; margin-bottom: 16px;
}
.card h2 { font-size: 16px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

.badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 999px;
    background: #eef1f7; color: #4b5375; line-height: 1.6; white-space: nowrap;
}
.badge.src-cctv { background: #e8f0fe; color: #1a5fd0; }
.badge.src-soe { background: #fdf3e3; color: #b96a12; }
.badge.src-media { background: #eef1f7; color: #4b5375; }
.badge.type-video { background: #fdeaea; color: #c8102e; }
.badge.type-image { background: #e9f6ef; color: #1e7a4c; }
.badge.type-article { background: #e8f0fe; color: #1a5fd0; }
.badge.st-published { background: #e9f6ef; color: #1e7a4c; }
.badge.st-candidate { background: #fdf3e3; color: #b96a12; }
.badge.st-hidden { background: #eef1f7; color: #6b7280; }
.badge.st-rejected { background: #fdeaea; color: #c8102e; }
.badge.tag { background: #f0f3f8; color: #536de6; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    border-radius: 8px; padding: 7px 16px; font-size: 14px; cursor: pointer;
    text-decoration: none; transition: .15s; line-height: 1.4;
}
.btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-sm { padding: 4px 12px; font-size: 13px; border-radius: 6px; }
.btn-danger { color: var(--accent); border-color: #f3c7cd; }
.btn-danger:hover { background: #fdf0f2; border-color: var(--accent); color: var(--accent); }
.btn-success { color: #1e7a4c; border-color: #bfe3d0; }
.btn-success:hover { background: #effaf4; border-color: #1e7a4c; color: #1e7a4c; }

.alert { border-radius: 10px; padding: 10px 16px; margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.alert-success { background: #effaf4; border-color: #bfe3d0; color: #166b41; }
.alert-info { background: #f0f5fd; border-color: #c6d9f5; color: #1c4d8f; }

/* ===== 统计数字卡 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.stat .num { font-size: 26px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .num .unit { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.stat .lbl { font-size: 13px; color: var(--muted); margin-top: 3px; }
@media (max-width: 768px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== 资源卡片（网格） ===== */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .res-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .res-grid { grid-template-columns: 1fr; } }
.res-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    overflow: hidden; display: flex; flex-direction: column; transition: .15s;
}
.res-card:hover { box-shadow: 0 4px 16px rgba(30,75,143,.12); border-color: #c9d4e8; }
.res-card .cover { position: relative; aspect-ratio: 16/9; background: #dde4ef center/cover; display: block; }
.res-card .cover .play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.res-card .cover .play::before {
    content: ''; width: 52px; height: 52px; border-radius: 50%;
    background: rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.85);
}
.res-card .cover .play::after {
    content: ''; width: 0; height: 0; margin-left: 6px;
    border: 12px solid transparent; border-left: 18px solid #fff;
}
.res-card .body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.res-card .title { font-size: 15px; font-weight: 600; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.res-card .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: auto; }
.res-card .summary { font-size: 13px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== 过滤栏 ===== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-bar select, .filter-bar input[type=text] {
    border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px;
    font-size: 14px; background: #fff; color: var(--ink); font-family: inherit;
}
.filter-bar .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.filter-bar .seg a { padding: 7px 14px; font-size: 13px; background: #fff; color: var(--muted); text-decoration: none; }
.filter-bar .seg a.on { background: var(--primary); color: #fff; }

/* ===== 时间线（CSS Grid 三列布局，与核查平台同方案） ===== */
.tl-day { display: flex; align-items: center; gap: 10px; row-gap: 4px; flex-wrap: wrap; margin: 28px 0 8px; }
.tl-day-label { font-weight: 700; font-size: 15px; background: #e9eef7; color: #33406b; padding: 6px 16px; border-radius: 10px; white-space: nowrap; }
.tl-day-count { font-size: 12px; color: #8a93a6; white-space: nowrap; }
.tl-day-line { flex: 1 1 30px; height: 1px; background: #e3e7f0; min-width: 0; }
.tl-item { display: grid; grid-template-columns: 72px 28px 1fr; align-items: start; padding: 8px 0; position: relative; }
.tl-time {
    grid-column: 1; text-align: right; padding-right: 16px; font-weight: 600;
    font-variant-numeric: tabular-nums; color: #4b5375; font-size: 14px; padding-top: 12px; white-space: nowrap;
}
.tl-time.kind-date-only { color: #a3abc0; font-weight: 500; font-size: 12px; padding-top: 14px; }
.tl-time.kind-captured { color: #6b7ba1; }
.tl-rail { grid-column: 2; position: relative; height: 100%; }
.tl-rail::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(180deg, #d7dbe5, #e3e7f0); transform: translateX(-50%); z-index: 0;
}
.tl-dot {
    position: absolute; left: 50%; top: 16px; width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.12);
    transform: translateX(-50%); z-index: 1;
}
.tl-dot.video { background: #c8102e; }
.tl-dot.image { background: #3dbb7c; }
.tl-dot.article { background: #1a5fd0; }
.tl-dot.pending { background: #e8a33d !important; }
.tl-dot.hidden { background: #8a93a6 !important; }
.tl-card { grid-column: 3; min-width: 0; }
.tl-card .inner {
    background: #fff; border: 1px solid #edf0f5; border-radius: 12px;
    padding: 14px 18px; box-shadow: 0 1px 3px rgba(43,54,86,.06);
}
.tl-card .inner.pending { border-left: 3px solid #e8a33d; }
.tl-card .inner.hidden { opacity: .65; }
.tl-card .title { font-size: 15px; font-weight: 600; line-height: 1.55; margin: 6px 0 4px; overflow-wrap: anywhere; }
.tl-card .summary { font-size: 13px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tl-card .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.tl-cover { float: right; width: 132px; aspect-ratio: 16/9; border-radius: 8px; margin-left: 12px; background: #dde4ef center/cover; }
@media (max-width: 576px) {
    .tl-item { grid-template-columns: 1fr; }
    .tl-rail, .tl-dot { display: none; }
    .tl-time { text-align: left; padding: 0 0 4px; }
    .tl-cover { float: none; width: 100%; margin: 8px 0 0; }
}

/* ===== 表格 ===== */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 500; font-size: 13px; white-space: nowrap; }
.table td { overflow-wrap: anywhere; }
.table tr:hover td { background: #f8fafd; }

/* ===== 登录页 ===== */
.login-wrap { max-width: 400px; margin: 60px auto; padding: 0 20px; }
.login-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.login-card h1 { font-size: 20px; margin: 0 0 4px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.field input {
    width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
    font-size: 14px; font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--primary); }
.field .err { color: var(--accent); font-size: 12px; margin-top: 4px; }
.w-full { width: 100%; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mb-2 { margin-bottom: 8px; }
.text-muted { color: var(--muted); } .fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; }
.text-danger { color: var(--accent); } .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ===== 分页 ===== */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 0; list-style: none; padding: 0; }
.pagination a, .pagination span {
    display: inline-block; min-width: 34px; text-align: center; padding: 6px 10px;
    border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: #fff; color: var(--ink); text-decoration: none;
}
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .disabled { color: #c3cad6; background: #f7f9fc; }

/* ===== 详情页媒体 ===== */
.media-box { border-radius: 12px; overflow: hidden; background: #0d1420; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
.media-box img { width: 100%; height: 100%; object-fit: cover; }
.media-box .ext-link { color: #fff; text-align: center; padding: 20px; }
.media-box .ext-link .btn { margin-top: 10px; }
.meta-list { font-size: 13px; }
.meta-list .row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #eef1f7; }
.meta-list .k { width: 90px; flex-shrink: 0; color: var(--muted); }
.meta-list .v { min-width: 0; overflow-wrap: anywhere; }
footer.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 32px 20px; }
