/* ===========================================================
   ZhanQun 站群管理系统 - 后台样式
   响应式断点：1200 / 1024 / 768 / 560
   =========================================================== */

:root {
    --bg: #f5f7fb;
    --side: #1b2537;
    --side-2: #131c2c;
    --side-hover: rgba(255, 255, 255, .06);
    /* 主题色：黑色系（按钮 / 链接 / 选中态都从这里取色） */
    --primary: #111827;
    --primary-d: #000000;
    --primary-l: #eef0f3;
    --ok: #12a150;
    --err: #e0393e;
    --warn: #e08b1a;
    --border: #e6e9f0;
    --text: #1f2733;
    --muted: #7b8595;
    --radius: 10px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow: 0 2px 10px rgba(16, 24, 40, .07);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
    --side-w: 228px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font: 14px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-d); }
img { max-width: 100%; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #c9cfda; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #aab2c0; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- 布局 ---------------- */

.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--side-w);
    flex-shrink: 0;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    background: linear-gradient(180deg, var(--side) 0%, var(--side-2) 100%);
    color: #c3ccdb;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform .25s ease;
}

.sidebar .logo {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    gap: 11px;
}

/* SVG 自带渐变与符号，容器只负责尺寸和投影 */
.sidebar .logo .logo-mark {
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: 11px;
    box-shadow: 0 4px 12px rgba(79, 124, 247, .42);
}

.sidebar .logo .logo-mark .zq-logo { width: 100%; height: 100%; display: block; border-radius: 11px; }

.sidebar .logo .logo-text { display: flex; flex-direction: column; min-width: 0; }

.sidebar .logo .logo-text b {
    font-size: 15.5px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.2;
}

.sidebar .logo .logo-ver {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: .3px;
    color: #a9b7d0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 20px;
    background: rgba(255, 255, 255, .07);
    width: fit-content;
}

.sidebar .group-title {
    padding: 16px 22px 6px;
    font-size: 10.5px;
    color: #6b7a92;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.sidebar a {
    display: block;
    padding: 9px 22px;
    color: #c3ccdb;
    font-size: 13.5px;
    border-left: 3px solid transparent;
    transition: background .15s, color .15s;
}
.sidebar a:hover { background: var(--side-hover); color: #fff; }
.sidebar a.active {
    background: linear-gradient(90deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
    color: #fff;
    border-left-color: #fff;
    font-weight: 500;
}

.main { flex: 1; margin-left: var(--side-w); min-width: 0; }

.topbar {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
}
.topbar h1 {
    font-size: 17px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar .user {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 14px;
    align-items: center;
    flex-shrink: 0;
}
.topbar .user a { white-space: nowrap; }

.container { padding: 22px 24px 64px; }

/* ---------------- 移动端汉堡 / 遮罩 ---------------- */

.zq-burger {
    display: none;
    width: 38px; height: 38px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    padding: 0;
    position: relative;
}
.zq-burger span,
.zq-burger span::before,
.zq-burger span::after {
    position: absolute;
    left: 50%; width: 17px; height: 2px;
    background: #46536a;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: transform .22s, opacity .18s;
}
.zq-burger span { top: 50%; margin-top: -1px; }
.zq-burger span::before { content: ""; top: -6px; }
.zq-burger span::after  { content: ""; top: 6px; }
.layout.nav-open .zq-burger span { background: transparent; }
.layout.nav-open .zq-burger span::before { transform: translateX(-50%) rotate(45deg) translateY(6px); }
.layout.nav-open .zq-burger span::after  { transform: translateX(-50%) rotate(-45deg) translateY(-6px); }

.zq-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    z-index: 55;
    animation: zqFade .2s ease;
}
@keyframes zqFade { from { opacity: 0 } to { opacity: 1 } }

/* ---------------- 卡片 / 网格 ---------------- */

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: linear-gradient(180deg, #fff, #fbfcfe);
}
.card-head .sub { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform .18s, box-shadow .18s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat::after {
    content: "";
    position: absolute;
    right: -18px; top: -18px;
    width: 70px; height: 70px;
    border-radius: 50%;
    background: var(--primary-l);
    opacity: .55;
}
.stat .label { color: var(--muted); font-size: 13px; position: relative; }
.stat .value { font-size: 27px; font-weight: 700; margin-top: 6px; letter-spacing: -.5px; position: relative; }
.stat .value.blue { color: var(--primary); }
.stat .value.green { color: var(--ok); }
.stat .value.orange { color: var(--warn); }
.stat .value.red { color: var(--err); }
/* 统计卡右上角的图标：坐在 ::after 的淡色圆里，随卡配色 */
.stat .stat-ico {
    position: absolute; right: 8px; top: 8px;
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); opacity: .5; transition: opacity .18s;
}
.stat .stat-ico svg { width: 28px; height: 28px; }
.stat .stat-ico.blue { color: #2563eb; }
.stat .stat-ico.green { color: var(--ok); }
.stat .stat-ico.orange { color: var(--warn); }
.stat .stat-ico.plain { color: var(--muted); }
.stat:hover .stat-ico { opacity: .9; }
/* 可点击的流量卡：整卡进访问日志 */
a.stat.stat-link { display: block; color: inherit; text-decoration: none; }

/* ---------------- 表格 ---------------- */

table.tb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tb th, table.tb td {
    padding: 11px 13px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}
table.tb th { background: #fafbfd; font-weight: 600; color: #434c5c; white-space: nowrap; }
table.tb tbody tr { transition: background .12s; }
table.tb tbody tr:hover td { background: #f7f9ff; }
table.tb td.ops a { margin-right: 8px; white-space: nowrap; }
table.tb .ell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* ---------------- 按钮 ---------------- */

.btn {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
    transition: background .15s, border-color .15s, box-shadow .15s, transform .1s, color .15s;
    white-space: nowrap;
}
.btn:hover {
    border-color: #c3cad6;
    background: #f7f9fc;
    box-shadow: 0 2px 8px rgba(17, 24, 39, .08);
    transform: translateY(-1px);
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-primary {
    background: linear-gradient(180deg, #2b2f36, var(--primary));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(17, 24, 39, .28);
}
.btn-primary:hover {
    background: var(--primary-d);
    border-color: var(--primary-d);
    color: #fff;
    box-shadow: 0 4px 10px rgba(17, 24, 39, .3);
}
.btn-danger { background: #fff; border-color: #f5b5b7; color: var(--err); }
.btn-danger:hover {
    background: var(--err);
    border-color: var(--err);
    color: #fff;
    box-shadow: 0 2px 8px rgba(224, 57, 62, .28);
}
.btn-sm { padding: 4px 11px; font-size: 12.5px; border-radius: 7px; }
.btn + .btn { margin-left: 6px; }

/* ---------------- 表单 ---------------- */

/* 站点设置：关注我们（社交链接）两列排布 */
.zq-social-grid {
    display: grid; gap: 8px 12px;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}
.zq-social-row { display: flex; align-items: center; gap: 8px; }
.zq-social-name { flex: 0 0 92px; font-size: 13px; color: var(--muted); }
.zq-social-row input { flex: 1 1 auto; }

/* 下载分类：新增表单里各语言的分类名 / 简介，每种语言一小格 */
.zq-dl-cats {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.zq-dl-cat-row {
    border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: #fcfdff;
}
.zq-dl-cat-name { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.zq-dl-cat-name code { font-weight: 400; color: var(--muted); }
.zq-dl-cat-row input, .zq-dl-cat-row textarea { font-size: 13px; }
.zq-dl-cat-row textarea { margin-top: 6px; }

/* 产品发布页：多语言内容每种语言一张卡片，标题 / 简介 / 详情各占一行 */
.zq-pc-lang {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px 16px; margin-bottom: 14px; background: #fff;
}
.zq-pc-lang:last-child { margin-bottom: 0; }
.zq-pc-lang.is-main { border-color: #c7d6fb; background: #fafcff; }
.zq-pc-lang-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    padding-bottom: 10px; margin-bottom: 12px;
    border-bottom: 1px dashed var(--border);
}
.zq-pc-lang-name { font-size: 14.5px; font-weight: 600; color: var(--text); }
.zq-pc-lang-name code { font-weight: 400; color: var(--muted); }
.zq-pc-lang-money { display: flex; align-items: center; gap: 6px; }
.zq-pc-lang-money label {
    display: inline; margin: 0; font-size: 13px; font-weight: 500; color: var(--muted);
}
.zq-pc-lang-money input { width: 110px; }
.zq-pc-lang-money select { width: 130px; }
@media (max-width: 640px) {
    .zq-pc-lang { padding: 12px; }
    .zq-pc-lang-money { width: 100%; }
    .zq-pc-lang-money input, .zq-pc-lang-money select { flex: 1; width: auto; }
}

.form-item { margin-bottom: 18px; }
/* 同一个字段里放了好几个输入框时（比如每种语言一句），相邻控件之间自动拉开，
   否则它们会直接贴在一起，连 label 都没有、看不出是几个格子 */
.form-item > :is(input, select, textarea) + :is(input, select, textarea) {
    margin-top: 12px;
}
.form-item label {
    display: block;
    margin-bottom: 6px;
    font-size: 13.5px;
    color: #3c4557;
    font-weight: 500;
}
.form-item label .tip { font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 6px; }

/* 复选框标签（label.chk） */
label.chk { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
label.chk input[type=checkbox] { width: auto; margin: 0; }

input[type=text], input[type=password], input[type=number], input[type=url], select, textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d8dde7;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 90px; line-height: 1.6; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #c3cad6; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .12);
}
input::placeholder, textarea::placeholder { color: #b3bac6; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline input, .inline select { width: auto; }
.switch { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; cursor: pointer; }
.switch input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

/* ---------------- 标签 / 提示 ---------------- */

.tag { display: inline-block; padding: 2px 9px; border-radius: 5px; font-size: 12px; background: var(--primary-l); color: #111827; }
.tag.ok { background: #e3f9ec; color: #0f7c3c; }
.tag.warn { background: #fdf3e2; color: #a8660c; }
.tag.err { background: #fdeaea; color: #c22b30; }
.tag.gray { background: #f1f4f8; color: #6a7484; }

.alert {
    padding: 11px 15px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13.5px;
    border: 1px solid transparent;
    animation: zqSlide .22s ease;
}
@keyframes zqSlide { from { opacity: 0; transform: translateY(-4px) } to { opacity: 1; transform: none } }
.alert.success { background: #edfaf2; border-color: #b6ecc9; color: #0c6b37; }
.alert.error { background: #fdf1f1; border-color: #f6c9ca; color: #a52126; }
.alert.info { background: #eff4ff; border-color: #c7d8fe; color: #24479c; }

.pager { margin-top: 16px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pager a {
    padding: 5px 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #fff;
    font-size: 13px;
    color: var(--text);
}
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager a.disabled { color: #c3c9d3; pointer-events: none; }
.pager .total { color: var(--muted); font-size: 13px; margin-left: 8px; }

/* ---------------- 内容库列表页（/articles）美化 ---------------- */
/* 筛选栏：控件统一高度、圆角，聚焦有描边；间距比默认松一点，不挤成一团 */
.zq-art-filter { gap: 10px; }
.zq-art-filter input, .zq-art-filter select { height: 34px; padding: 0 10px; border-radius: 8px; }
.zq-art-filter .btn { height: 34px; }
/* 结果计数：数字高亮，一眼看到「本页看到第几条 / 一共多少条」 */
.zq-art-count {
    margin-left: 4px; padding: 5px 11px;
    border-radius: 999px; background: #f1f4f8; color: #4a5567; font-size: 12.5px;
}
/* 批量操作栏：浅底分组，和表头、表格区分开，按钮不再散在一行里 */
.zq-art-bar {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
    padding: 10px 14px; border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fbfcfe, #f6f8fb);
}
.zq-art-bar .btn { border-radius: 8px; }
.zq-art-bar .switch { font-weight: 600; }
.zq-art-bar .btn-danger { margin-left: 2px; }
/* 表格：斑马纹 + 更舒服的行高，封面缩略图圆角阴影 */
.zq-art-tb td { padding: 10px 13px; }
.zq-art-tb tbody tr:nth-child(even) td { background: #fcfcfe; }
.zq-art-tb tbody tr:hover td { background: #f5f8ff; }
.zq-art-tb img { box-shadow: 0 1px 3px rgba(17, 24, 39, .12); }
.zq-art-tb td.ops a { padding: 2px 4px; border-radius: 5px; }
.zq-art-tb td.ops a:hover { background: #eef2ff; }
.zq-art-tb code { font-size: 12px; color: #6a7484; }
/* 分页上方信息条：左边「本页区间 / 共多少条」，右边每页条数 */
.zq-art-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-top: 14px; padding: 10px 14px;
    border: 1px solid var(--border); border-radius: 9px; background: #fbfcfe;
    font-size: 13px; color: #4a5567;
}
.zq-art-foot b { color: #111827; }
.zq-art-size { display: inline-flex; align-items: center; gap: 6px; }
.zq-art-size select { height: 30px; padding: 0 8px; border-radius: 7px; }

/* 表格横向滚动提示（由页尾脚本在手机端插入）：移动端没有滚动条，
   不提示的话用户不知道表格能左右滑，会以为内容没显示全 */
.zq-tb-tip {
    margin: 0 0 8px; padding: 6px 10px;
    border-radius: 6px; background: #f1f4f8; color: #6a7484;
    font-size: 12px; text-align: center; line-height: 1.5;
    transition: opacity .25s;
}

.empty { padding: 52px 20px; text-align: center; color: var(--muted); }
.empty p { margin-bottom: 12px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tabs a { padding: 9px 16px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--primary); }
.tabs a.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }

/* ---------------- 登录页 ---------------- */

.login-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    /* 背景图（/assets/login-bg.jpeg）+ 深色渐变遮罩，保证白色登录卡片始终清晰可读
       图片加载失败时退回深色 #141414 */
    background-color: #141414;
    background-image:
        linear-gradient(135deg, rgba(20, 20, 20, .58) 0%, rgba(8, 8, 8, .72) 100%),
        url('/assets/login-bg.jpeg');
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: cover, cover;
    background-attachment: fixed, fixed;
}
.login-box {
    background: #fff;
    padding: 36px 32px;
    border-radius: 16px;
    width: 100%;
    max-width: 392px;
    box-shadow: var(--shadow-lg);
}
.login-box h2 { font-size: 21px; margin-bottom: 4px; letter-spacing: .3px; }
.login-box .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 26px; }
.login-box .brand {
    display: flex; align-items: center; gap: 13px; margin-bottom: 20px;
}
.login-box .brand .brand-logo {
    width: 48px; height: 48px; flex: 0 0 48px;
    display: block;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
    animation: zqLogoPop .5s cubic-bezier(.34, 1.32, .64, 1) both;
}
.login-box .brand .brand-logo .zq-logo {
    width: 100%; height: 100%; display: block; border-radius: 14px;
}
@keyframes zqLogoPop {
    from { opacity: 0; transform: translateY(-8px) scale(.84); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .login-box .brand .brand-logo,
    .login-card,
    .login-side-brand .brand-logo,
    .login-side-brand, .login-side-list li, .login-side-foot,
    .login-title, .login-desc, .zq-field, .zq-remember,
    .zq-login-submit { animation: none; }
    .zq-login-submit::after { display: none; }
}

/* ---------------- 登录页（新：左右分栏卡片） ---------------- */

.zq-login-body { background: #111; }

.login-card {
    display: flex;
    width: 100%;
    max-width: 840px;
    min-height: 470px;
    /* 毛玻璃：透出登录页背景图，同时保持白底可读性 */
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .46), 0 2px 10px rgba(0, 0, 0, .22);
    animation: zqCardIn .55s cubic-bezier(.2, .8, .3, 1) both;
}
@keyframes zqCardIn {
    from { opacity: 0; transform: translateY(16px) scale(.985); }
    to   { opacity: 1; transform: none; }
}
/* 元素依次淡入 */
@keyframes zqFadeUp {
    from { opacity: 0; transform: translateY(9px); }
    to   { opacity: 1; transform: none; }
}
/* 只淡入不动位移：用在自身带 transform 动画的元素上，避免覆盖 hover 效果 */
@keyframes zqFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* 左侧品牌区 */
.login-side {
    position: relative;
    flex: 1 1 44%;
    padding: 40px 36px;
    color: #fff;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(460px 300px at 18% -4%, rgba(255, 255, 255, .16), transparent 62%),
        radial-gradient(320px 320px at 100% 100%, rgba(255, 255, 255, .07), transparent 70%),
        linear-gradient(160deg, #232323 0%, #3a3a3a 46%, #0b0b0b 100%);
}
/* 斜纹肌理，让深色区不显死板 */
.login-side::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(135deg,
        rgba(255, 255, 255, .045) 0 1px, transparent 1px 9px);
}
.login-side > * { position: relative; z-index: 1; }
.login-side-brand {
    display: flex; align-items: center; gap: 13px;
    animation: zqFadeUp .5s .08s ease both;
}
.login-side-brand .brand-logo {
    width: 48px; height: 48px; flex: 0 0 48px; display: block;
    border-radius: 14px; background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .38), 0 0 0 5px rgba(255, 255, 255, .07);
    animation: zqLogoPop .55s cubic-bezier(.34, 1.32, .64, 1) both;
}
/* 登录页 Logo 去色，保持黑白（侧边栏保留品牌原色） */
.login-side-brand .brand-logo .zq-logo,
.login-box .brand .brand-logo .zq-logo { filter: grayscale(1); }
.login-side-brand h2 {
    font-size: 20px; letter-spacing: .4px; color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.login-side-brand .sub { font-size: 12px; color: rgba(255, 255, 255, .8); margin: 2px 0 0; letter-spacing: .2px; }
.login-side-list {
    list-style: none; margin: 32px 0 0; padding: 0;
    font-size: 13px; line-height: 1.95; color: rgba(255, 255, 255, .93);
}
.login-side-list li {
    position: relative; padding-left: 26px; margin-bottom: 12px;
    animation: zqFadeUp .45s ease both;
}
.login-side-list li:nth-child(1) { animation-delay: .18s; }
.login-side-list li:nth-child(2) { animation-delay: .26s; }
.login-side-list li:nth-child(3) { animation-delay: .34s; }
.login-side-list li::before {
    content: "✓"; position: absolute; left: 0; top: 4px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 17px; height: 17px; border-radius: 50%;
    font-size: 10px; line-height: 1; color: #fff;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .38);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .08);
}
.login-side-foot {
    margin-top: auto; padding-top: 18px;
    font-size: 11.5px; color: rgba(255, 255, 255, .62);
    border-top: 1px solid rgba(255, 255, 255, .14);
    animation: zqFadeUp .5s .44s ease both;
}

/* 右侧表单区 */
.login-main { flex: 1 1 56%; padding: 42px 40px; display: flex; flex-direction: column; }
.login-title {
    font-size: 22px; font-weight: 600; letter-spacing: .4px;
    animation: zqFadeUp .45s .1s ease both;
}
.login-desc {
    font-size: 12.5px; color: var(--muted); margin: 6px 0 24px;
    animation: zqFadeUp .45s .16s ease both;
}

.login-alert {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 12px; margin-bottom: 16px;
    font-size: 13px; color: #222;
    background: #f5f5f5; border: 1px solid #dcdcdc; border-left: 3px solid #111;
    border-radius: 8px;
    animation: zqShake .32s ease both;
}
@keyframes zqShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.zq-field { margin-bottom: 16px; animation: zqFadeUp .45s ease both; }
.zq-field:nth-of-type(1) { animation-delay: .2s; }
.zq-field:nth-of-type(2) { animation-delay: .26s; }
.zq-field:nth-of-type(3) { animation-delay: .32s; }
.zq-field > label {
    display: block; font-size: 12.5px; font-weight: 500;
    color: #475467; margin-bottom: 6px;
}
.zq-input-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.zq-input-icon {
    position: absolute; left: 12px; display: flex;
    color: #98a2b3; pointer-events: none;
    transition: color .18s;
}
.zq-input-icon svg { width: 18px; height: 18px; fill: currentColor; }
/* 聚焦时左侧图标同步变黑，输入区整体更聚焦 */
.zq-input-wrap:focus-within .zq-input-icon { color: #111; }
.zq-input-wrap input {
    width: 100%; padding: 11px 12px 11px 38px; font-size: 14.5px;
    border: 1px solid var(--border); border-radius: 11px;
    background: #fbfcfe; color: var(--text);
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.zq-input-wrap input::placeholder { color: rgba(127, 127, 127, .55); }
.zq-input-wrap input:focus {
    outline: none; background: #fff;
    border-color: #111;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .08);
}
/* 自动填充会盖掉背景与文字色，这里抢回为白底黑字 */
.zq-input-wrap input:-webkit-autofill,
.zq-input-wrap input:-webkit-autofill:hover,
.zq-input-wrap input:-webkit-autofill:focus,
.zq-input-wrap input:-webkit-autofill:active {
    -webkit-text-fill-color: #111;
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    caret-color: #111;
    transition: background-color 9999s ease-in-out 0s;
}
/* 小图标按钮：与输入框并排的独立方块，不再压在输入框上 */
.zq-pwd-btn {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; padding: 0;
    border: 1px solid #e0e0e0; border-radius: 11px; background: #ededed;
    color: #555; cursor: pointer;
    transition: color .16s, background .16s, border-color .16s, transform .12s;
}
.zq-pwd-btn:hover {
    color: #111; background: #dedede; border-color: #111; transform: translateY(-1px);
}
.zq-pwd-btn:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.zq-pwd-btn svg { width: 17px; height: 17px; fill: currentColor; }
/* 小眼睛：黑底白图标，更醒目 */
.zq-input-wrap .zq-pwd-btn {
    position: static; flex: 0 0 42px; width: 42px;
    background: #000; border-color: #000; color: #fff;
}
.zq-input-wrap .zq-pwd-btn:hover { background: #333; border-color: #000; color: #fff; }

/* ---------- 滑块验证码：拖动拼图块对齐缺口 ---------- */
.zq-cap-slide {
    --zq-cap-ok: #167a4a;
    --zq-cap-bad: #b91c1c;
    width: 100%; max-width: 340px;
    user-select: none; -webkit-user-select: none;
}
.zq-cap-slide.compact { max-width: 300px; }

/* 图片区 */
.zq-cap-stage {
    position: relative; width: 100%; overflow: hidden;
    border: 1px solid var(--border, #e0e0e0); border-radius: 11px;
    background: #ececec; line-height: 0;
}
.zq-cap-bg { display: block; width: 100%; height: auto; }
.zq-cap-piece {
    position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .38));
}
/* 取图中的骨架屏 */
.zq-cap-load {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(100deg, #ececec 28%, #f8f8f8 48%, #ececec 68%);
    background-size: 220% 100%;
    animation: zq-cap-shimmer 1.1s linear infinite;
    transition: opacity .2s;
}
@keyframes zq-cap-shimmer {
    from { background-position: 130% 0; }
    to   { background-position: -30% 0; }
}
.zq-cap-slide.ready .zq-cap-load { opacity: 0; visibility: hidden; animation: none; }
/* 通过 / 未通过的浮层提示 */
.zq-cap-flash {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
    padding: 5px 0; text-align: center; font-size: 12.5px; line-height: 1.5; color: #fff;
    background: rgba(0, 0, 0, .58); pointer-events: none;
    opacity: 0; transform: translateY(100%);
    transition: opacity .18s, transform .18s;
}
.zq-cap-flash.show { opacity: 1; transform: translateY(0); }
.zq-cap-flash.good { background: rgba(22, 122, 74, .9); }
.zq-cap-flash.bad  { background: rgba(185, 28, 28, .9); }

/* 滑轨 */
.zq-cap-bar {
    --zq-fill: 0px;
    position: relative; height: 42px; margin-top: 9px; overflow: hidden;
    border: 1px solid #e0e0e0; border-radius: 11px;
    background: linear-gradient(#f2f2f2, #e6e6e6);
    transition: border-color .16s, background .16s;
}
.zq-cap-bar::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: var(--zq-fill); background: rgba(0, 0, 0, .09);
    border-right: 1px solid rgba(0, 0, 0, .18);
}
.zq-cap-bar-tip {
    position: absolute; inset: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 0 12px; text-align: center;
    font-size: 12.5px; line-height: 1.4; color: #8a8a8a; pointer-events: none;
    transition: color .16s;
}
.zq-cap-thumb {
    position: absolute; left: 0; top: 0; z-index: 2; box-sizing: border-box;
    width: 46px; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #d8d8d8; border-radius: 11px;
    color: #444; cursor: grab; touch-action: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
    transition: background .16s, color .16s, border-color .16s;
}
.zq-cap-thumb svg { width: 18px; height: 18px; fill: currentColor; }
.zq-cap-thumb:hover { color: #111; border-color: #111; }
.zq-cap-thumb:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.zq-cap-slide.dragging .zq-cap-thumb { cursor: grabbing; background: #f4f4f4; }

/* 通过：滑轨整个变绿，滑块停在原地 */
.zq-cap-slide.done .zq-cap-bar {
    background: rgba(22, 122, 74, .12); border-color: rgba(22, 122, 74, .45);
}
.zq-cap-slide.done .zq-cap-bar-tip { color: var(--zq-cap-ok); }
.zq-cap-slide.done .zq-cap-thumb {
    background: var(--zq-cap-ok); border-color: var(--zq-cap-ok); color: #fff; cursor: default;
}
/* 未通过 / 没验证就提交：滑轨标红 */
.zq-cap-slide.err .zq-cap-bar,
.zq-cap-slide.fail .zq-cap-bar {
    background: rgba(185, 28, 28, .08); border-color: var(--zq-cap-bad);
}
.zq-cap-slide.err .zq-cap-bar-tip { color: var(--zq-cap-bad); }
.zq-cap-slide.fail .zq-cap-thumb { border-color: var(--zq-cap-bad); color: var(--zq-cap-bad); }

/* 底部：换一张 */
.zq-cap-foot { display: flex; justify-content: flex-end; margin-top: 7px; }
.zq-cap-new {
    padding: 4px 11px; border: 1px solid #e0e0e0; border-radius: 8px;
    background: #fff; color: #666; font-size: 12.5px; cursor: pointer;
}
.zq-cap-new:hover { border-color: #111; color: #111; }
.zq-cap-noscript { font-size: 12.5px; color: #b91c1c; }

.zq-remember {
    display: flex; align-items: center; gap: 8px; margin: 4px 0 20px;
    font-size: 12.5px; color: var(--muted); cursor: pointer; user-select: none;
    animation: zqFadeUp .45s .38s ease both;
    transition: color .16s;
}
.zq-remember:hover { color: #344054; }
.zq-remember input { width: 14px; height: 14px; accent-color: #111; cursor: pointer; }

/* ---------- 后台「资讯频道」页：黑系 + 网格排版 ---------- */
.zq-news-admin input:focus,
.zq-news-admin select:focus,
.zq-news-admin textarea:focus {
    outline: none;
    border-color: #111827 !important;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .12) !important;
}
.zq-news-admin .btn-primary {
    background: linear-gradient(180deg, #2b2f36, #111827) !important;
    border-color: #111827 !important;
    color: #fff;
    box-shadow: 0 2px 6px rgba(17, 24, 39, .25) !important;
}
.zq-news-admin .btn-primary:hover { background: #000 !important; color: #fff; }

/* 录入表单：两列网格，控件不再一行一行挤着；标题 / 链接 / 简介 / 按钮独占整行 */
.zq-news-admin .form-row-wrap {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 20px 22px !important;
    padding: 10px 0 6px !important;
}
.zq-news-admin .form-row-wrap input[type=text],
.zq-news-admin .form-row-wrap select {
    width: 100% !important; margin: 0 !important;
    min-width: 0 !important;
    height: 40px; padding: 8px 12px;
    border: 1px solid #d1d5db; border-radius: 8px;
    background: #fff; font-size: 13.5px;
    transition: border-color .15s, box-shadow .15s;
}
.zq-news-admin .form-row-wrap input[type=text]:hover,
.zq-news-admin .form-row-wrap select:hover { border-color: #9ca3af; }
/* 跨整行的字段与按钮 */
.zq-news-admin .form-row-wrap input[name=title],
.zq-news-admin .form-row-wrap input[name=url],
.zq-news-admin .form-row-wrap input[name=description],
.zq-news-admin .form-row-wrap button[type=submit] { grid-column: 1 / -1; }
.zq-news-admin .form-row-wrap button[type=submit] {
    justify-self: start; min-width: 110px; height: 38px;
    border-radius: 8px; cursor: pointer; font-size: 13.5px;
}
/* 窄屏退回单列，避免每个格子挤成一条缝 */
@media (max-width: 760px) {
    .zq-news-admin .form-row-wrap { grid-template-columns: 1fr !important; }
}

/* 筛选行：拉开距离 */
.zq-news-admin form.inline {
    display: flex; gap: 14px 16px; flex-wrap: wrap; align-items: center;
    padding: 10px 12px;
}
.zq-news-admin form.inline select {
    min-width: 140px; height: 36px; padding: 6px 10px;
    border: 1px solid #d1d5db; border-radius: 8px; background: #fff;
}
.zq-news-admin form.inline .btn { flex: none; border-radius: 8px; }

/* 统计卡与卡片间距 */
.zq-news-admin .grid { gap: 14px; }
.zq-news-admin .stat { border: 1px solid #e5e7eb; border-radius: 10px; }

/* 表格：表头浅灰底、行 hover、单元格呼吸感 */
.zq-news-admin .tb th {
    background: #f9fafb; font-weight: 600; white-space: nowrap;
    padding: 10px 10px; border-bottom: 2px solid #e5e7eb;
}
.zq-news-admin .tb td { padding: 10px; vertical-align: middle; }
.zq-news-admin .tb tr:hover td { background: #f8f9fb; }
/* 表格里的链接统一黑系（原文链接、编辑等） */
.zq-news-admin .tb a { color: #111827; }
.zq-news-admin .tb a:hover { color: #000; text-decoration: underline; }

/* 批量操作条与表格之间留空 */
.zq-news-admin .card-body > div[style] { padding: 10px 12px !important; }

/* 登录提交按钮：覆盖 .btn-primary 的蓝色，改为纯黑 */
.zq-login-submit {
    position: relative; overflow: hidden;
    width: 100%; height: 48px; padding: 0;
    animation: zqFadeIn .5s .44s ease both;
    font-size: 15px; font-weight: 600; letter-spacing: 3px; border-radius: 12px;
    color: #fff; border-color: #000;
    background: linear-gradient(135deg, #262626 0%, #000 55%, #1c1c1c 100%);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .26);
    transition: background .2s, box-shadow .2s, transform .12s;
}
/* 悬停时一道高光扫过按钮 */
.zq-login-submit::after {
    content: ""; position: absolute; top: 0; left: -70%;
    width: 45%; height: 100%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent);
    transform: skewX(-18deg);
    transition: left .55s ease;
}
.zq-login-submit:hover::after { left: 125%; }
.zq-login-submit:hover {
    background: linear-gradient(135deg, #333 0%, #111 55%, #262626 100%);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .34);
    transform: translateY(-1px);
}
.zq-login-submit:active { transform: translateY(1px); }
.zq-login-submit:disabled { opacity: .7; cursor: default; }
.zq-login-submit:disabled::after { display: none; }
.zq-login-submit:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.login-help {
    margin-top: 18px; text-align: center; font-size: 12px;
    animation: zqFadeIn .5s .5s ease both;
}

@media (max-width: 860px) {
    .login-card { flex-direction: column; max-width: 420px; min-height: 0; }
    .login-side { flex: none; padding: 26px 24px; }
    .login-side-list { display: none; }
    .login-side-foot { margin-top: 14px; }
    .login-main { padding: 28px 24px 30px; }
}
@media (max-width: 560px) {
    /* 移动端 fixed 背景在 iOS 上表现异常，改回随页面滚动 */
    .login-wrap { padding: 14px 12px; background-attachment: scroll, scroll; }
    .login-card { border-radius: 14px; }
    .login-side-brand .brand-logo { width: 40px; height: 40px; flex-basis: 40px; }
}

.help { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.75; }

/* 管理员「可管理站点」选择区 */
.zq-site-pick {
    border: 1px solid var(--border); border-radius: 8px;
    padding: 10px 12px; background: #fbfcfe;
}
.zq-site-all { display: inline-block; margin-bottom: 8px; font-weight: 600; }
.zq-site-list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.zq-site-list label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.zq-site-opt {
    display: inline-flex; align-items: center; gap: 5px;
    margin: 0 14px 4px 0; font-size: 13px; white-space: nowrap;
}
code, pre { font-family: Consolas, Monaco, "Courier New", monospace; }
code { background: #f2f5fa; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
pre {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    overflow: auto;
    font-size: 12.5px;
    line-height: 1.6;
}
.thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 5px; border: 1px solid var(--border); }
/* 封面图预览（上传 / 手填地址后即时显示） */
.zq-cover-preview { margin-top: 8px; }
.zq-cover-preview:empty { margin-top: 0; }
.zq-cover-preview img {
    max-width: 220px; max-height: 130px;
    border: 1px solid var(--border); border-radius: 8px;
    background: #f7f9fc; display: block; padding: 2px;
}
.nowrap { white-space: nowrap; }
.text-muted { color: var(--muted); }
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.right { text-align: right; }

/* ---------------- 响应式：≤1200px ---------------- */
@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- 响应式：≤1024px ---------------- */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .form-row-3 { grid-template-columns: 1fr 1fr; }
    table.tb .ell { max-width: 200px; }
}

/* ---------------- 响应式：≤768px（平板 / 手机横屏） ---------------- */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); box-shadow: none; }
    .layout.nav-open .sidebar { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .layout.nav-open .zq-mask { display: block; }
    .zq-burger { display: block; }

    .main { margin-left: 0; }
    .topbar { padding: 0 14px; height: 56px; gap: 10px; }
    .topbar h1 { font-size: 16px; }
    .topbar .user { gap: 10px; font-size: 12.5px; }
    .topbar .user > span { display: none; }
    .container { padding: 16px 14px 56px; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }

    /* 表格：容器横向滚动，避免挤压变形 */
    .card-body, .card-body.tight { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table.tb { min-width: 620px; }
    /* 表格把容器撑宽后，紧跟在表格后面的分页条会被推到横滑区里（手机上看不见），
       这里把它钉在可视区左侧并限宽，保证始终能看到、能点到 */
    .card-body > .pager {
        position: sticky; left: 0;
        width: calc(100vw - 58px);   /* 减去 container + card-body 的左右内边距 */
        margin-top: 14px;
    }
    .card-body.tight > .pager { width: calc(100vw - 28px); }
    /* 横向滚动提示条：同样钉住，别被表格带走 */
    .card-body > .zq-tb-tip {
        position: sticky; left: 0;
        width: calc(100vw - 58px);
    }
    .card-body.tight > .zq-tb-tip { width: calc(100vw - 28px); }
    /* 操作列按钮允许换行，别把表格撑得更宽 */
    table.tb td.ops a { white-space: normal; }
    table.tb td .btn + .btn { margin-top: 4px; }

    .card-head { padding: 13px 15px; font-size: 14.5px; }
    .card-body { padding: 15px; }
    .card { margin-bottom: 14px; }

    .stat { padding: 15px 16px; }
    .stat .value { font-size: 23px; }

    /* 触摸友好 */
    .btn { padding: 9px 16px; }
    .btn-sm { padding: 6px 12px; }
    input[type=text], input[type=password], input[type=number], input[type=url], select, textarea {
        font-size: 16px; /* 防 iOS 聚焦缩放 */
        padding: 10px 12px;
    }
}

/* ---------------- 响应式：≤560px（手机竖屏） ---------------- */
@media (max-width: 560px) {
    .container { padding: 14px 12px 48px; }

    /* 顶栏：链接多（修改密码 / 前台 / 清缓存 / 退出），允许换行别挤出去 */
    .topbar { height: auto; min-height: 56px; padding: 8px 14px; flex-wrap: wrap; }
    .topbar h1 { flex: 1 1 auto; min-width: 0; }
    .topbar .user { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
    .topbar .user a { font-size: 12px; }

    .btn { padding: 9px 14px; font-size: 13px; }
    .btn + .btn { margin-left: 5px; }
    .inline > .btn { flex: 1 1 auto; }

    .card-head { flex-direction: column; align-items: flex-start; }
    .card-head > * { width: 100%; }

    .pager a { padding: 6px 11px; }
    .pager .total { width: 100%; margin-left: 0; }

    /* 行内筛选表单：输入框在窄屏自动伸缩，别顶出屏幕 */
    .inline input, .inline select { flex: 1 1 130px; min-width: 0; max-width: 100%; }
    .inline > .btn { flex: 0 0 auto; }
    /* 卡片头部：按钮组换行显示，保证每个按钮都在屏幕内 */
    .card-head > span { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
    /* 安全密码 / 修改密码弹窗：模板里写死了 440px，窄屏会超出屏幕，这里强制自适应 */
    .zq-pin-modal > div {
        width: auto !important; max-width: 94vw;
        margin: 5vh auto !important;
        max-height: 86vh; overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .zq-pin-modal input[type=password] { width: 100%; }

    .login-box { padding: 28px 22px; border-radius: 14px; }
    .login-box h2 { font-size: 19px; }
    .login-box .brand { gap: 11px; margin-bottom: 18px; }
    .login-box .brand .brand-logo { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; }
    .login-box .brand .brand-logo .zq-logo { border-radius: 12px; }

    .tabs { gap: 0; }
    .tabs a { padding: 9px 12px; font-size: 13.5px; }
}

/* ---------------- 蜘蛛池 / 全局设置（行式表单） ---------------- */
.sp-form {
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 12px;
    overflow: hidden;
}

.sp-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f2f6;
}
.sp-row:last-child { border-bottom: 0; }

.sp-label {
    flex: 0 0 210px;
    text-align: right;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}
.sp-label .req { color: #dc2626; }

.sp-ctrl {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.sp-radio,
.sp-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #3a3f4b;
    cursor: pointer;
    white-space: nowrap;
}
.sp-radio input,
.sp-check input { accent-color: #111; margin: 0; }

.sp-note { color: #9aa0ac; font-size: 12px; line-height: 1.6; }
.sp-note.warn { color: #dc2626; }

.sp-input {
    width: min(520px, 100%);
    height: 36px;
}
.sp-textarea {
    width: 100%;
    min-height: 130px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
}

.sp-group {
    padding: 12px 20px;
    background: #fafbfd;
    border-top: 1px solid #eef0f4;
    border-bottom: 1px solid #eef0f4;
    font-weight: 600;
    color: #333;
}
.sp-group .sp-note { font-weight: 400; margin-left: 8px; }

/* 错误页设置：大文本框 + 蓝色副标题 */
.sp-textarea.err { min-height: 190px; }
.sp-hint { color: #111827; font-size: 12px; }
.sp-row-err .sp-label { line-height: 1.7; }

.sp-foot {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px 0;
}
.sp-save {
    background: #2f9e44;
    border: 1px solid #2f9e44;
    color: #fff;
    height: 42px;
    padding: 0 30px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}
.sp-save:hover { background: #2b8a3e; border-color: #2b8a3e; }

@media (max-width: 860px) {
    .sp-row { flex-wrap: wrap; gap: 8px; }
    .sp-label { flex: 1 1 100%; text-align: left; }
}

/* ==================== Video 视频平台后台 ==================== */
/* 表单：每个字段一块「标签 + 控件」，统一 18/20px 间距，不再靠 inline style 挤在一行 */
.zq-video-admin .zq-vform {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px 20px;
    padding: 4px 0 2px;
}
.zq-video-admin .zq-vform .fld {
    display: flex; flex-direction: column; gap: 7px; min-width: 0;
}
.zq-video-admin .zq-vform .fld > span {
    font-size: 12.5px; font-weight: 600; letter-spacing: .2px; color: #6b7280;
}
.zq-video-admin .zq-vform .fld > span b { color: #C30D23; font-weight: 700; }
.zq-video-admin .zq-vform .fld.wide { grid-column: 1 / -1; }

.zq-video-admin .zq-vform input[type=text],
.zq-video-admin .zq-vform select,
.zq-video-admin .zq-vform textarea,
.zq-video-admin .zq-vbar select,
.zq-video-admin .zq-vbtbar select,
.zq-video-admin .zq-vlang input[type=text] {
    width: 100%; height: 42px; padding: 9px 13px;
    border: 1px solid #d7dbe3; border-radius: 9px;
    background: #fff; font-size: 13.5px; color: #1f2329;
    transition: border-color .15s, box-shadow .15s;
}
.zq-video-admin .zq-vform textarea { height: auto; min-height: 78px; line-height: 1.6; resize: vertical; }
.zq-video-admin .zq-vform input:hover,
.zq-video-admin .zq-vform select:hover,
.zq-video-admin .zq-vform textarea:hover,
.zq-video-admin .zq-vbar select:hover,
.zq-video-admin .zq-vbtbar select:hover { border-color: #9ca3af; }
.zq-video-admin .zq-vform input:focus,
.zq-video-admin .zq-vform select:focus,
.zq-video-admin .zq-vform textarea:focus,
.zq-video-admin .zq-vbar select:focus,
.zq-video-admin .zq-vbtbar select:focus {
    outline: none; border-color: var(--primary, #111827);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, .1);
}
/* 按钮行：独占整行，和上方字段留出明显间距 */
.zq-video-admin .zq-vform .acts {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 2px; padding-top: 14px; border-top: 1px dashed rgba(127, 127, 127, .18);
}
.zq-video-admin .zq-vform .acts .sub { font-size: 12.5px; color: #9aa1ab; font-weight: 400; }

/* 筛选条：浅灰底、字段带小标题，控件之间拉开 14px */
.zq-video-admin .zq-vbar {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px;
    padding: 16px 18px; background: #fafbfc;
    border-bottom: 1px solid var(--border, #e5e7eb);
}
.zq-video-admin .zq-vbar .fld { display: flex; flex-direction: column; gap: 6px; }
.zq-video-admin .zq-vbar .fld > span { font-size: 12px; font-weight: 600; color: #6b7280; }
.zq-video-admin .zq-vbar select { min-width: 152px; height: 38px; }
.zq-video-admin .zq-vbar .acts { display: flex; gap: 8px; align-items: center; }

/* 批量操作条 */
.zq-video-admin .zq-vbtbar {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 16px;
    padding: 14px 16px; border-bottom: 1px solid var(--border, #e5e7eb); background: #fff;
}
.zq-video-admin .zq-vbtbar .fld { display: flex; flex-direction: column; gap: 6px; }
.zq-video-admin .zq-vbtbar .fld > span { font-size: 12px; font-weight: 600; color: #6b7280; }
.zq-video-admin .zq-vbtbar select { min-width: 148px; height: 38px; }
.zq-video-admin .zq-vbtbar > .switch { padding-bottom: 10px; }

/* 卡片头部的按钮组 */
.zq-video-admin .zq-vheadacts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zq-video-admin .zq-vheadacts .inline { gap: 8px; }

/* 说明文字 */
.zq-video-admin .zq-vtip {
    margin: 0 0 16px; padding: 11px 14px; font-size: 13px; line-height: 1.7; color: #6b7280;
    background: #f8fafc; border: 1px solid #eef1f5; border-left: 3px solid #C30D23; border-radius: 8px;
}
.zq-video-admin .zq-vtip code {
    padding: 1px 5px; border-radius: 4px; background: #eef1f5; color: #374151; font-size: 12.5px;
}

/* 表格细节 */
.zq-video-admin .zq-vtb td { vertical-align: middle; }
.zq-video-admin .zq-vthumb {
    width: 96px; height: 54px; object-fit: cover; border-radius: 7px; display: block;
    background: #f3f4f6; box-shadow: 0 0 0 1px rgba(17, 24, 39, .07);
}
.zq-video-admin .zq-vtitle { color: #1f2329; font-weight: 600; text-decoration: none; }
.zq-video-admin .zq-vtitle:hover { color: #C30D23; }
.zq-video-admin .zq-vdesc { margin-top: 3px; font-size: 12px; color: #9aa1ab; }
.zq-video-admin .zq-vmuted { color: #9aa1ab; }
.zq-video-admin .zq-vbadge {
    display: inline-block; padding: 2px 10px; border-radius: 999px;
    font-size: 12px; line-height: 1.7; white-space: nowrap;
}
.zq-video-admin .zq-vbadge.st1 { background: #e3f9ec; color: #0f7c3c; }
.zq-video-admin .zq-vbadge.st0 { background: #fdf3e2; color: #a8660c; }
.zq-video-admin .zq-vbadge.st2 { background: #fdecec; color: #b42318; }
/* 分类表格里直接编辑的输入框 */
.zq-video-admin input.zq-vcell {
    width: 100%; height: 34px; padding: 5px 9px;
    border: 1px solid #d7dbe3; border-radius: 7px; font-size: 13px;
}
.zq-video-admin input.zq-vcell:focus {
    outline: none; border-color: var(--primary, #111827); box-shadow: 0 0 0 3px rgba(17, 24, 39, .1);
}
/* 编辑页顶部封面预览 */
.zq-video-admin .zq-vpreview {
    display: flex; align-items: center; gap: 14px; margin: 0 0 18px;
    padding: 12px; background: #fafbfc; border: 1px solid #eef1f5; border-radius: 10px;
}
.zq-video-admin .zq-vpreview img {
    width: 200px; height: 112px; object-fit: cover; border-radius: 8px; display: block; background: #f3f4f6;
}
.zq-video-admin .zq-vpreview-meta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.zq-video-admin .zq-vpreview-meta b { font-size: 14px; color: #1f2329; }
.zq-video-admin .zq-vpreview-meta span { font-size: 12.5px; word-break: break-all; }

/* 多语言分类名：小格子网格，标签在上 */
.zq-video-admin .zq-vlangs {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 16px;
}
.zq-video-admin .zq-vlang { display: flex; flex-direction: column; gap: 6px; }
.zq-video-admin .zq-vlang > span { font-size: 12px; font-weight: 600; color: #6b7280; }
.zq-video-admin .zq-vcheck { display: flex; align-items: center; height: 42px; }
.zq-video-admin .zq-vform .fld > span + .zq-vlangs { margin-top: 2px; }

/* 统计卡 */
.zq-video-admin .grid { gap: 14px; }
.zq-video-admin .stat { border: 1px solid #e5e7eb; border-radius: 10px; }

@media (max-width: 760px) {
    .zq-video-admin .zq-vform { grid-template-columns: 1fr; gap: 16px; }
    .zq-video-admin .zq-vbar,
    .zq-video-admin .zq-vbtbar { gap: 12px; }
    .zq-video-admin .zq-vbar select,
    .zq-video-admin .zq-vbtbar select { min-width: 0; flex: 1 1 140px; }
    .zq-video-admin .zq-vbar .fld,
    .zq-video-admin .zq-vbtbar .fld { flex: 1 1 140px; }
    .zq-video-admin .zq-vpreview { flex-direction: column; align-items: flex-start; }
    .zq-video-admin .zq-vpreview img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* ---- 导入页：分步骤区块 + 预览卡片网格 ---- */
.zq-video-admin .zq-vsec {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px 20px;
}
.zq-video-admin .zq-vsec > h4 {
    grid-column: 1 / -1; margin: 0;
    display: flex; align-items: center; gap: 9px;
    font-size: 13.5px; font-weight: 700; color: #111827;
}
/* 步骤圆标 */
.zq-video-admin .zq-vstep {
    width: 21px; height: 21px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #111827; color: #fff; font-size: 12px; font-weight: 700;
}
/* 字段下方的灰色小字说明 */
.zq-video-admin .zq-vhint {
    font-size: 12px; font-style: normal; line-height: 1.6; color: #9aa1ab;
}
.zq-video-admin .zq-vhint code {
    padding: 0 4px; border-radius: 4px; background: #eef1f5; color: #4b5563; font-size: 11.5px;
}
/* 报错提示块 */
.zq-video-admin .zq-valert {
    padding: 12px 15px; border-radius: 9px; font-size: 13px; line-height: 1.7;
    background: #fdecec; border: 1px solid #f8cfcf; color: #b42318;
}

/* 预览卡片网格 */
.zq-video-admin .zq-vgrid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
    gap: 16px; padding: 16px 18px;
}
.zq-video-admin .zq-vpv {
    background: #fff; border: 1px solid #eef1f5; border-radius: 10px; overflow: hidden;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.zq-video-admin .zq-vpv:hover {
    transform: translateY(-2px); box-shadow: 0 6px 16px rgba(17, 24, 39, .1); border-color: #d7dbe3;
}
.zq-video-admin .zq-vpv.dup { background: #fcfcfd; }
.zq-video-admin .zq-vpv-thumb {
    position: relative; display: block; aspect-ratio: 16 / 9; background: #111827; overflow: hidden;
}
.zq-video-admin .zq-vpv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zq-video-admin .zq-vpv-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 42px; height: 42px; border-radius: 50%; background: rgba(17, 24, 39, .55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.zq-video-admin .zq-vpv-play::after {
    content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-40%, -50%);
    border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.zq-video-admin .zq-vpv:hover .zq-vpv-play { background: #C30D23; }
.zq-video-admin .zq-vpv-tag {
    position: absolute; left: 8px; top: 8px; padding: 1px 7px; border-radius: 999px;
    background: #e3f9ec; color: #0f7c3c; font-size: 11.5px; font-weight: 600;
}
.zq-video-admin .zq-vpv.dup .zq-vpv-tag { background: rgba(17, 24, 39, .72); color: #fff; }
.zq-video-admin .zq-vpv-body { padding: 10px 12px 12px; }
.zq-video-admin .zq-vpv-title {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    font-size: 13.5px; font-weight: 600; line-height: 1.45; color: #1f2329; text-decoration: none;
}
.zq-video-admin .zq-vpv-title:hover { color: #C30D23; }
.zq-video-admin .zq-vpv-meta {
    display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px;
    font-size: 12px; color: #9aa1ab;
}
.zq-video-admin .zq-vpv-meta span:first-child {
    flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 760px) {
    .zq-video-admin .zq-vsec { grid-template-columns: 1fr; gap: 14px; }
    .zq-video-admin .zq-vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
    .zq-video-admin .zq-vpv-title { font-size: 12.5px; }
}

/* ---------- 广告位后台：表单间距与排版 ---------- */
/* form-item 内多控件（file + text、日期组）之间拉开距离 */
.zq-ad-form .form-item { margin-bottom: 22px; }
.zq-ad-form .form-item label { margin-bottom: 9px; font-size: 13.5px; }
.zq-ad-form input[type=text],
.zq-ad-form input[type=number],
.zq-ad-form input[type=date],
.zq-ad-form select,
.zq-ad-form textarea {
    width: 100%; min-width: 0; height: 40px; padding: 8px 12px;
    border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px;
    transition: border-color .15s;
}
.zq-ad-form textarea { height: auto; line-height: 1.6; padding: 10px 12px; }
.zq-ad-form input:hover, .zq-ad-form select:hover, .zq-ad-form textarea:hover { border-color: #9ca3af; }
.zq-ad-form input:focus, .zq-ad-form select:focus, .zq-ad-form textarea:focus { border-color: #111827; outline: none; }
/* file 控件单独一行，与手填地址框拉开 10px */
.zq-ad-form input[type=file] { height: auto; padding: 7px 0; margin-bottom: 10px; border: 0; }
/* 日期组：两个 date 并排、中间「至」 */
.zq-ad-form .zq-ad-dates { display: flex; align-items: center; gap: 10px; }
.zq-ad-form .zq-ad-dates input[type=date] { flex: 1; }
.zq-ad-form .zq-ad-dates-sep { color: #6b7280; font-size: 13px; flex: 0 0 auto; }
/* 帮助文字与上方控件留出呼吸感 */
.zq-ad-form .help { margin-top: 8px; line-height: 1.6; }
/* 底部按钮区 */
.zq-ad-form .zq-ad-actions { margin-top: 24px; display: flex; gap: 12px; }

/* ---------- 广告位后台：列表页 ---------- */
.zq-ad-index .card-head { gap: 14px; flex-wrap: wrap; }
.zq-ad-index table.tb input[type=checkbox] { width: 15px; height: 15px; accent-color: #111827; cursor: pointer; }
.zq-ad-index table.tb td, .zq-ad-index table.tb th { vertical-align: middle; }
@media (max-width: 900px) {
    .zq-ad-form .zq-ad-dates { flex-direction: column; align-items: stretch; }
    .zq-ad-form .zq-ad-dates-sep { display: none; }
}

/* ---------- 广告位：到期提示条 ---------- */
.zq-ad-alert {
    margin-bottom: 16px; padding: 12px 16px; border-radius: 10px;
    background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
    font-size: 13.5px; line-height: 1.6;
}
.zq-ad-alert b { font-size: 15px; }

/* ---------- 亚马逊一键导入 ---------- */
.zq-ai-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.zq-ai-row input[type="text"] { flex: 1 1 320px; min-width: 240px; }
.zq-ai-row .help { margin: 0; color: #6b7280; }

/* ---------- 在线客服：后台会话管理 ---------- */
.zq-chat-wrap { display: flex; gap: 0; padding: 0 !important; align-items: stretch; min-height: 520px; }
.zq-chat-side {
    width: 260px; flex: 0 0 260px; border-right: 1px solid #eef0f2;
    display: flex; flex-direction: column; max-height: 620px;
}
.zq-chat-filter { padding: 10px; border-bottom: 1px solid #eef0f2; }
.zq-chat-filter select { width: 100%; }
.zq-chat-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1 1 auto; }
.zq-chat-item { border-bottom: 1px solid #f4f5f7; }
.zq-chat-item.is-on { background: #f4f4f5; border-left: 3px solid #111827; }
.zq-chat-item.is-over { opacity: .62; }
.zq-chat-item > a { display: block; padding: 9px 11px; color: inherit; text-decoration: none; }
.zq-chat-item > a:hover { background: #fafbfc; }
.zq-chat-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.zq-chat-item-top i { font-size: 11px; color: #9ca3af; font-style: normal; }
.zq-chat-last {
    display: block; font-size: 12px; color: #6b7280; margin-top: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.zq-chat-item.has-new .zq-chat-last { font-weight: 600; color: #111827; }
.zq-chat-meta { display: flex; justify-content: space-between; font-size: 11px; color: #9ca3af; margin-top: 3px; }
.zq-chat-meta em { font-style: normal; }
.zq-chat-dot {
    background: #111827; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 10.5px; line-height: 1.6;
}
.zq-chat-main {
    flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; padding: 0; max-height: 620px;
}
.zq-chat-main-head {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #eef0f2; flex-wrap: wrap;
}
.zq-chat-msgs {
    flex: 1 1 auto; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fafbfc;
}
.zq-crow { display: flex; }
.zq-crow.is-you { justify-content: flex-start; }
.zq-crow.is-me { justify-content: flex-end; }
.zq-crow.is-sys { justify-content: center; }
.zq-cbd {
    position: relative; max-width: 78%; padding: 8px 11px 16px; border-radius: 10px;
    font-size: 13px; line-height: 1.6; word-break: break-word;
}
.zq-crow.is-you .zq-cbd { background: #fff; border: 1px solid #e8eaed; border-bottom-left-radius: 3px; }
.zq-crow.is-me .zq-cbd { background: #111827; color: #fff; border-bottom-right-radius: 3px; }
.zq-crow.is-sys .zq-cbd { background: #f4f5f7; color: #6b7280; font-size: 12px; max-width: 90%; }
.zq-cbd img { max-width: 220px; max-height: 220px; border-radius: 8px; cursor: zoom-in; }
.zq-cbd a { color: inherit; text-decoration: underline; }
.zq-cbd i {
    position: absolute; right: 8px; bottom: 3px; font-style: normal; font-size: 10.5px; opacity: .65;
}
.zq-chat-input { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid #eef0f2; align-items: flex-end; }
.zq-chat-input textarea {
    flex: 1 1 auto; min-height: 46px; border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 8px 10px; font: inherit; font-size: 13px; resize: vertical;
}
.zq-chat-quick { display: flex; gap: 6px; padding: 0 14px 10px; flex-wrap: wrap; }
@media (max-width: 900px) {
    .zq-chat-wrap { flex-direction: column; }
    .zq-chat-side { width: 100%; flex: 0 0 auto; border-right: 0; border-bottom: 1px solid #eef0f2; max-height: 220px; }
    .zq-chat-main { max-height: none; }
}

/* ===========================================================
   栏目管理 /gl/categories
   =========================================================== */
/* 添加 + 批量生成：一张卡左右两栏，省掉两张卡的高度 */
.zq-cats-add { display: grid; grid-template-columns: 1.15fr 1fr; }
.zq-cats-add > section { padding: 18px; min-width: 0; }
.zq-cats-add > section + section { border-left: 1px solid var(--border); background: #fcfdff; }
.zq-cats-add h4 { font-size: 13.5px; font-weight: 600; color: #434c5c; margin-bottom: 12px; }
.zq-cats-add .inline input[type="text"],
.zq-cats-add .inline input[type="number"] { height: 34px; }
.zq-cats-add .help { margin-top: 8px; }

/* 筛选卡的统计徽章 */
.zq-cats-stat { margin-left: auto; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.zq-cats-stat b { color: var(--text); }

/* 列表：横向滚动容器 + 名称/计数/移动按钮 */
.zq-tb-scroll { overflow-x: auto; }
.zq-cat-name { display: flex; flex-direction: column; gap: 3px; min-width: 128px; }
.zq-cat-name b { font-size: 13.5px; line-height: 1.4; }
.zq-cat-name code {
    font-size: 11.5px; color: var(--muted); background: #f4f6fa;
    border: 1px solid var(--border); border-radius: 4px; padding: 0 6px; width: max-content;
}
/* 栏目别名做成前台预览链接 */
.zq-cat-preview { display: inline-flex; align-items: center; gap: 3px; width: max-content; text-decoration: none; }
.zq-cat-preview code { transition: all .15s; }
.zq-cat-preview:hover code { color: var(--primary, #2563eb); border-color: var(--primary, #2563eb); background: #eef3ff; }
.zq-cat-preview { color: var(--muted); font-size: 11px; line-height: 1; }
.zq-cnt {
    display: inline-block; min-width: 28px; text-align: center; padding: 1px 9px;
    border-radius: 999px; background: #e8f6ee; color: #0f7c3c; font-size: 12px; font-weight: 600;
}
.zq-cnt.zero { background: #f3f5f8; color: #b6bdc9; font-weight: 400; }
.zq-mv {
    display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 6px; margin-right: 5px;
    color: #59637a; background: #fff; font-size: 13px; transition: all .15s;
}
.zq-mv:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-l); }
/* 同步卡：紧凑布局 */
.zq-sync-box { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.zq-sync-box > div { min-width: 0; }
.zq-sync-box select[multiple] { height: 148px; }
.zq-sync-tip { flex: 1 1 260px; font-size: 12.5px; color: var(--muted); line-height: 1.75; }
.zq-sync-tip b { color: var(--text); }
@media (max-width: 900px) {
    .zq-cats-add { grid-template-columns: 1fr; }
    .zq-cats-add > section + section { border-left: 0; border-top: 1px solid var(--border); }
    .zq-cats-stat { margin-left: 0; width: 100%; }
}

/* ===========================================================
   足球数据 /gl/football
   =========================================================== */
/* 同步区：左边联赛勾选（两列），右边按钮 */
.zq-ft-sync { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.zq-ft-pick { display: flex; flex-wrap: wrap; gap: 8px 18px; flex: 1 1 420px; }
.zq-ft-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }
.zq-ft-chk input { margin: 0; }
.zq-ft-act { display: flex; align-items: center; gap: 10px; }
/* 同步日志：等宽字体、限高可滚 */
.zq-ft-log {
    margin-top: 12px; max-height: 180px; overflow: auto;
    background: #0f172a; color: #cbd5e1; border-radius: 8px;
    padding: 10px 12px; font: 12.5px/1.7 ui-monospace, Consolas, monospace;
}
.zq-ft-log:empty { display: none; }
.zq-ft-log .ok { color: #4ade80; }
.zq-ft-log .err { color: #f87171; }
/* 联赛 / 日期切换的胶囊页签 */
.zq-ft-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.zq-ft-tab {
    padding: 5px 12px; border-radius: 999px; font-size: 13px; text-decoration: none;
    color: #4b5563; background: #f4f6fa; border: 1px solid transparent;
}
.zq-ft-tab:hover { color: var(--primary); border-color: var(--primary); }
.zq-ft-tab.on { color: #fff; background: var(--primary); border-color: var(--primary); }
/* 积分榜 / 比分表：数字列居中，队名列带队徽 */
.zq-ft-tb td, .zq-ft-tb th { text-align: center; }
.zq-ft-tb .zq-ft-team { text-align: left; white-space: nowrap; }
.zq-ft-tb .zq-ft-team img { vertical-align: -4px; margin-right: 6px; }
.zq-ft-tb .zq-ft-team em { color: var(--muted); font-style: normal; font-size: 12px; margin-left: 6px; }
.zq-ft-tb .ta-r { text-align: right; }
.zq-ft-tb td:nth-child(5) { text-align: left; }
.zq-ft-score { font-weight: 700; font-variant-numeric: tabular-nums; }
.zq-ft-score.live { color: #dc2626; }
/* 球队名保存条 */
.zq-ft-save { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--border); }
.mb10 { margin-bottom: 10px; }
@media (max-width: 900px) {
    .zq-ft-act { width: 100%; }
}


/* 后台语言 / 国家图标：本地 SVG（public/assets/flags/），避免服务器 emoji 显示成 ?? */
img.zq-flag,
img.zq-flag-inline {
    width: 18px; height: 13px; border-radius: 2px; object-fit: cover;
    display: inline-block; vertical-align: -2px; margin-right: 3px;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, .15);
}

