@charset "UTF-8";
/**
 * 软件源码下载平台 - 后台样式表
 * 作者：挽星  QQ：2774779458  官方网址：gf.wancikeji.cn
 */

:root {
    --a-bg: #f2f4f7;
    --a-surface: #ffffff;
    --a-side: #1f2530;
    --a-side-hover: #2b3342;
    --a-text: #1f2329;
    --a-sub: #5b6472;
    --a-muted: #8d95a3;
    --a-border: #e6e9ee;
    --a-border-soft: #f1f3f6;
    --a-primary: #2d6cdf;
    --a-primary-dark: #1f56b8;
    --a-primary-soft: #eaf2ff;
    --a-warn: #e08b1a;
    --a-danger: #d64040;
    --a-ok: #16a34a;
    --a-radius: 10px;
    --a-radius-sm: 6px;
    --a-radius-lg: 14px;
    --a-shadow-sm: 0 1px 2px rgba(31, 35, 41, .05);
    --a-shadow: 0 4px 16px rgba(31, 35, 41, .07);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--a-bg);
    color: var(--a-text);
    font: 14px/1.7 "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--a-sub); text-decoration: none; transition: color .18s; }
a:hover { color: var(--a-primary); }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0 0 10px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { background: var(--a-primary-soft); color: var(--a-primary-dark); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }
em { font-style: normal; }
.req { color: var(--a-danger); }

/* ==================== 后台骨架 ==================== */
.adm-shell { display: flex; min-height: 100vh; }

.adm-side {
    width: 216px; flex-shrink: 0; background: var(--a-side); color: #c6ccd7;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.adm-logo {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 18px; font-size: 15px; font-weight: 600; color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.adm-logo-mark {
    width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--a-primary), #4f92ff);
    color: #fff; font-weight: 700; font-size: 17px;
    display: flex; align-items: center; justify-content: center;
}
.adm-menu { flex: 1; padding: 12px 10px; }
.adm-menu-item {
    display: block; padding: 10px 14px; border-radius: var(--a-radius-sm);
    color: #c6ccd7; font-size: 14px; margin-bottom: 4px;
}
.adm-menu-item:hover { background: var(--a-side-hover); color: #fff; }
.adm-menu-item.on { background: var(--a-primary); color: #fff; font-weight: 600; }
.adm-side-foot {
    padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: 13px; display: flex; gap: 14px;
}
.adm-side-foot a { color: #8f98a6; }
.adm-side-foot a:hover { color: #fff; }

.adm-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-top {
    background: var(--a-surface); border-bottom: 1px solid var(--a-border);
    padding: 0 24px; height: 62px; display: flex; align-items: center; gap: 16px;
    position: sticky; top: 0; z-index: 20;
}
.adm-title { font-size: 17px; }
.adm-user { margin-left: auto; font-size: 13px; color: var(--a-muted); display: flex; gap: 16px; }
.adm-main { flex: 1; padding: 22px 24px; }
.adm-foot { padding: 16px 24px 26px; color: var(--a-muted); font-size: 12.5px; }

/* ==================== 面板 ==================== */
.adm-panel {
    background: var(--a-surface); border-radius: var(--a-radius);
    padding: 20px; box-shadow: var(--a-shadow-sm); margin-bottom: 20px;
}
.adm-panel-title {
    font-size: 15px; margin-bottom: 16px; padding-left: 10px;
    border-left: 3px solid var(--a-primary); line-height: 1.3;
}
.adm-hint { font-size: 13px; color: var(--a-muted); margin-bottom: 14px; }
.adm-two-col { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }

/* ==================== 统计卡片 ==================== */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
    background: var(--a-surface); border-radius: var(--a-radius);
    padding: 18px 20px; box-shadow: var(--a-shadow-sm);
    border-left: 3px solid var(--a-primary);
}
.stat-card.warn { border-left-color: var(--a-warn); }
.stat-label { display: block; font-size: 13px; color: var(--a-muted); margin-bottom: 6px; }
.stat-num { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: .5px; }
.stat-num em { color: var(--a-muted); font-weight: 400; font-size: 18px; margin: 0 2px; }
.stat-sub { display: block; font-size: 12.5px; color: var(--a-muted); margin-top: 6px; }

/* ==================== 柱状图（纯 CSS） ==================== */
.chart-bars { display: flex; align-items: flex-end; gap: 12px; height: 190px; padding: 10px 4px 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.chart-val { font-size: 12px; color: var(--a-sub); margin-bottom: 5px; }
.chart-bar {
    width: 100%; max-width: 46px; border-radius: 5px 5px 0 0;
    background: linear-gradient(180deg, #5b95f5, var(--a-primary));
    min-height: 4px; transition: opacity .2s;
}
.chart-col:hover .chart-bar { opacity: .82; }
.chart-x { font-size: 12px; color: var(--a-muted); margin-top: 7px; }

/* ==================== 简单列表 ==================== */
.adm-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 0; border-bottom: 1px dashed var(--a-border-soft); font-size: 13.5px;
}
.adm-list li:last-child { border-bottom: 0; }
.adm-list li a { flex: 1; min-width: 0; color: var(--a-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-list li a:hover { color: var(--a-primary); }
.adm-list-meta { flex-shrink: 0; font-size: 12.5px; color: var(--a-muted); }
.adm-list .empty { color: var(--a-muted); justify-content: center; }

/* ==================== 表格 ==================== */
.adm-table-wrap { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table th, .adm-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--a-border-soft); }
.adm-table th { background: #fafbfc; color: var(--a-sub); font-weight: 600; font-size: 13px; white-space: nowrap; }
.adm-table tr:hover td { background: #fbfcfe; }
.adm-td-title { max-width: 420px; }
.adm-empty { text-align: center; color: var(--a-muted); padding: 34px 0 !important; }
.adm-ops { display: flex; gap: 12px; align-items: center; }
.adm-ops a { color: var(--a-primary); }
.link-danger { background: none; border: 0; padding: 0; color: var(--a-danger); cursor: pointer; font-size: 13.5px; font-family: inherit; }
.link-danger:hover { text-decoration: underline; }
.inline-form { display: inline; }
.adm-tag { display: inline-block; font-size: 11.5px; padding: 1px 7px; border-radius: 4px; background: var(--a-primary-soft); color: var(--a-primary); margin-right: 6px; }
.adm-tag-rec { background: #fff1e6; color: #d2691e; }
.adm-dot { font-size: 12.5px; }
.adm-dot.ok { color: var(--a-ok); }
.adm-dot.off { color: var(--a-muted); }

/* ==================== 工具条 ==================== */
.adm-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.adm-filter { display: flex; gap: 10px; flex-wrap: wrap; }
.adm-filter input, .adm-filter select {
    padding: 8px 12px; border: 1.5px solid var(--a-border); border-radius: var(--a-radius-sm);
    font-size: 13.5px; font-family: inherit; outline: none; background: var(--a-surface); color: var(--a-text);
}
.adm-filter input:focus, .adm-filter select:focus { border-color: var(--a-primary); }
.adm-toolbar > .adm-btn:last-child { margin-left: auto; }

/* ==================== 表单 ==================== */
.adm-form .adm-field { margin-bottom: 16px; }
.adm-field label { display: block; font-size: 13.5px; color: var(--a-sub); margin-bottom: 7px; }
.adm-field input[type="text"], .adm-field input[type="number"], .adm-field input[type="password"],
.adm-field select, .adm-field textarea {
    width: 100%; padding: 9px 13px; border: 1.5px solid var(--a-border); border-radius: var(--a-radius-sm);
    font-size: 14px; font-family: inherit; outline: none; background: var(--a-surface); color: var(--a-text);
    transition: border-color .2s;
}
.adm-field input:focus, .adm-field select:focus, .adm-field textarea:focus { border-color: var(--a-primary); }
.adm-field textarea { resize: vertical; line-height: 1.7; }
.adm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.adm-tip { font-size: 12.5px; color: var(--a-muted); margin: 6px 0 0; }
.adm-form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.adm-checks { display: flex; gap: 22px; flex-wrap: wrap; }
.adm-check { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--a-sub); cursor: pointer; }

/* 开关 */
.adm-switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.adm-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.adm-switch-track {
    width: 42px; height: 23px; border-radius: 999px; background: #d7dce3;
    position: relative; transition: background .22s; flex-shrink: 0;
}
.adm-switch-track::after {
    content: ''; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px;
    border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
    transition: transform .22s;
}
.adm-switch input:checked + .adm-switch-track { background: var(--a-primary); }
.adm-switch input:checked + .adm-switch-track::after { transform: translateX(19px); }
.adm-switch-text { font-size: 13px; color: var(--a-muted); }

/* 网盘行 / 截图行 */
.down-row, .shot-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.down-row select {
    width: 128px; flex-shrink: 0; padding: 9px 10px; border: 1.5px solid var(--a-border);
    border-radius: var(--a-radius-sm); font-size: 13.5px; font-family: inherit; background: var(--a-surface); color: var(--a-text); outline: none;
}
.down-row input, .shot-row input {
    flex: 1; padding: 9px 13px; border: 1.5px solid var(--a-border); border-radius: var(--a-radius-sm);
    font-size: 13.5px; font-family: inherit; outline: none; color: var(--a-text); background: var(--a-surface);
}
.down-row .w-pwd { flex: 0 0 120px; }
.down-row input:focus, .down-row select:focus, .shot-row input:focus { border-color: var(--a-primary); }
.tag-rename { display: flex; gap: 8px; align-items: center; }
.tag-rename input {
    width: 180px; padding: 7px 11px; border: 1.5px solid var(--a-border);
    border-radius: var(--a-radius-sm); font-size: 13.5px; font-family: inherit; outline: none; color: var(--a-text);
}

/* ==================== 按钮 ==================== */
.adm-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 18px; border-radius: var(--a-radius-sm); font-size: 13.5px;
    border: 1.5px solid var(--a-border); background: var(--a-surface);
    color: var(--a-sub); cursor: pointer; font-family: inherit; transition: all .2s;
}
.adm-btn:hover { border-color: var(--a-primary); color: var(--a-primary); }
.adm-btn-primary { background: var(--a-primary); border-color: var(--a-primary); color: #fff; }
.adm-btn-primary:hover { background: var(--a-primary-dark); border-color: var(--a-primary-dark); color: #fff; }
.adm-btn-sm { padding: 5px 13px; font-size: 13px; }
.adm-btn-danger { border-color: #f6d5d5; color: var(--a-danger); }
.adm-btn-danger:hover { background: #fdf2f2; border-color: #f0b8b8; color: var(--a-danger); }

/* ==================== 提示 ==================== */
.adm-toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: #23303f; color: #fff; padding: 9px 22px; border-radius: 999px;
    font-size: 13.5px; z-index: 99; box-shadow: var(--a-shadow);
    transition: opacity .4s;
}
.adm-alert { padding: 11px 15px; border-radius: var(--a-radius-sm); font-size: 13.5px; margin-bottom: 16px; }
.adm-alert-err { background: #fdeeee; color: #96271f; border: 1px solid #f6cdc8; }

/* ==================== 分页（后台复用前台样式变量） ==================== */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.pager .pg {
    min-width: 34px; height: 34px; padding: 0 11px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--a-radius-sm); background: var(--a-surface);
    border: 1px solid var(--a-border); font-size: 13.5px; color: var(--a-sub);
}
.pager .pg:hover { border-color: var(--a-primary); color: var(--a-primary); }
.pager .pg.cur { background: var(--a-primary); border-color: var(--a-primary); color: #fff; font-weight: 600; }
.pager .gap { display: inline-flex; align-items: center; color: var(--a-muted); }

/* ==================== 登录页 ==================== */
.login-body {
    background: linear-gradient(150deg, #eaf0fa 0%, #f5f7fa 55%, #eef3fb 100%);
    display: flex; align-items: center; justify-content: center; min-height: 100vh;
}
.login-wrap {
    width: 100%; max-width: 400px; margin: 30px 20px; padding: 36px 32px;
    background: var(--a-surface); border-radius: var(--a-radius-lg); box-shadow: var(--a-shadow);
}
.login-head { text-align: center; margin-bottom: 26px; }
.login-head .adm-logo-mark { margin: 0 auto 12px; width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
.login-head h1 { font-size: 19px; margin-bottom: 5px; }
.login-head p { color: var(--a-muted); font-size: 13px; margin: 0; }
.login-form .adm-field { margin-bottom: 16px; }
.login-btn { width: 100%; padding: 11px; font-size: 15px; border-radius: var(--a-radius-sm); }
.login-foot { text-align: center; margin-top: 20px; font-size: 12.5px; color: var(--a-muted); display: flex; gap: 8px; justify-content: center; }
.login-foot a { color: var(--a-muted); }

/* ==================== 用户系统（前台投稿审核 / 用户管理） ====================
   作者：挽星  QQ：2774779458  官方网址：gf.wancikeji.cn */
.adm-dot.wait { color: #d98a00; }
.adm-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 8px; background: #eef0f5; }
.adm-avatar-ph { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--a-primary-soft); color: var(--a-primary); align-items: center; justify-content: center; font-size: 13px; vertical-align: middle; margin-right: 8px; }
.adm-quick { display: flex; gap: 8px; align-items: center; }
.adm-toolbar > .adm-quick { margin-left: auto; }
.link-ok { background: none; border: 0; padding: 0; color: var(--a-ok); cursor: pointer; font-size: 13.5px; font-family: inherit; }
.link-ok:hover { text-decoration: underline; }

/* ==================== 响应式 ==================== */
@media (max-width: 1080px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .adm-two-col { grid-template-columns: 1fr; }
    .adm-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .adm-shell { flex-direction: column; }
    .adm-side { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; flex-wrap: wrap; }
    .adm-logo { border-bottom: 0; }
    .adm-menu { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
    .adm-menu-item { margin-bottom: 0; }
    .adm-side-foot { border-top: 0; margin-left: auto; }
    .stat-grid { grid-template-columns: 1fr; }
    .adm-grid-2 { grid-template-columns: 1fr; }
    .adm-main { padding: 16px 14px; }
}
