/* Copyright (c) 2026 无垠之境网络科技 · All Rights Reserved. */
/* ============================================================
   无垠之境网盘 · 统一皮肤（前后台共用）
   目标：内容不裁切、页面到底、按钮有流光、底部白蓝渐变
   前缀统一 sk-，避免和现有 bootstrap / layui / pear 冲突
   ============================================================ */

:root {
    /* 色板对齐飞书：品牌蓝 #3370FF，hover #245BDB，浅底 #EFF4FF */
    --sk-pri: #3370ff;
    --sk-pri-deep: #245bdb;
    --sk-pri-soft: #eff4ff;
    --sk-text: #1f2329;
    --sk-text-2: #646a73;
    --sk-text-3: #8f959e;
    --sk-line: #dee0e3;
    --sk-line-light: #eff0f1;
    --sk-bg: #f5f6f7;
    --sk-card: #ffffff;
    --sk-ok: #34c724;
    --sk-warn: #ff8800;
    --sk-danger: #f54a45;
    --sk-radius: 0px;
    /* 阴影也跟着收敛：飞书是「细描边 + 极浅投影」，不是大扩散 */
    --sk-shadow: 0 1px 2px rgba(31, 35, 41, .04), 0 4px 12px -6px rgba(31, 35, 41, .10);
    --sk-shadow-hover: 0 2px 6px rgba(31, 35, 41, .06), 0 12px 28px -12px rgba(31, 35, 41, .16);
    --sk-ease: cubic-bezier(.22, .61, .36, 1);
    --sk-grad-footer: linear-gradient(120deg, #ffffff 0%, #f7f8fa 55%, #f2f4f7 100%);
}

/* ---------- 动效基础 ----------
   只动 transform / opacity：走合成层，不会触发重排重绘，
   滚动和 hover 都不会掉帧。backwards 保证动画结束后不残留
   transform，否则会盖掉 :hover 的位移。 */
@keyframes sk-rise {
    from { opacity: 0; transform: translate3d(0, 14px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes sk-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes sk-pop {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* ---------- 基础 ---------- */
html, body { min-height: 100%; }
body {
    -webkit-font-smoothing: antialiased;
    color: var(--sk-text);
}
img { max-width: 100%; }

/* 让「内容少」的页面也把页脚推到底部 */
.sk-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.sk-app > .sk-main-wrap { flex: 1 0 auto; }
.sk-app > .sk-footer { flex: none; }

/* ---------- 页脚：白蓝简约渐变 ---------- */
.sk-footer {
    margin-top: auto;
    background: var(--sk-grad-footer);
    border-top: 1px solid rgba(30, 159, 255, .10);
    color: #7d8798;
    font-size: 12.5px;
    line-height: 1.9;
    padding: 18px 16px 22px;
    text-align: center;
}
.sk-footer a {
    color: #5f7b9a;
    text-decoration: none;
    margin: 0 6px;
    transition: color .18s;
}
.sk-footer a:hover { color: var(--sk-pri); }
.sk-footer .sk-footer-links { margin-bottom: 4px; }
.sk-footer .sk-footer-copy { color: #97a2b3; }
.sk-footer .sk-beian { padding: 4px 0 0; }

/* ---------- 卡片 ---------- */
.sk-card {
    background: var(--sk-card);
    border: 1px solid var(--sk-line);
    border-radius: var(--sk-radius);
    box-shadow: var(--sk-shadow);
    overflow: hidden;
    transition: box-shadow .3s var(--sk-ease), border-color .3s var(--sk-ease);
}
.sk-card:hover { box-shadow: var(--sk-shadow-hover); }
.sk-card + .sk-card { margin-top: 14px; }
.sk-card-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--sk-line);
    background: linear-gradient(180deg, #fbfdff, #ffffff);
    font-size: 14px;
    font-weight: 600;
    color: var(--sk-text);
}
.sk-card-hd .sk-hd-icon {
    width: 26px; height: 26px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sk-pri-soft); color: var(--sk-pri);
    font-size: 14px; flex: none;
}
.sk-card-hd .sk-hd-extra { margin-left: auto; font-weight: 400; font-size: 12.5px; color: var(--sk-text-3); }
.sk-card-bd { padding: 18px; }
.sk-card-bd.tight { padding: 0; }

/* ---------- 按钮：统一尺寸 + 流光 ---------- */
.sk-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    color: var(--sk-text);
    background: #fff;
    border-color: var(--sk-line);
    overflow: hidden;
    transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.sk-btn:hover { border-color: var(--sk-pri); color: var(--sk-pri); box-shadow: 0 4px 14px rgba(51,112,255,.16); }
.sk-btn:active { transform: translateY(1px) scale(.995); }
.sk-btn[disabled], .sk-btn.is-disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }

.sk-btn-primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #4b83ff 0%, #3370ff 45%, #245bdb 100%);
    box-shadow: 0 6px 18px rgba(51,112,255,.28);
}
.sk-btn-primary:hover { color: #fff; box-shadow: 0 10px 24px rgba(51,112,255,.34); }
.sk-btn-ghost { background: #fff; }
.sk-btn-ok { color: #fff; border-color: transparent; background: linear-gradient(135deg, #34d399, #16b777); box-shadow: 0 6px 16px rgba(22,183,119,.25); }
.sk-btn-ok:hover { color: #fff; }
.sk-btn-warn { color: #fff; border-color: transparent; background: linear-gradient(135deg, #ffb347, #fa8c16); box-shadow: 0 6px 16px rgba(250,140,22,.25); }
.sk-btn-warn:hover { color: #fff; }
.sk-btn-danger { color: #fff; border-color: transparent; background: linear-gradient(135deg, #ff8a8a, #f56c6c); box-shadow: 0 6px 16px rgba(245,108,108,.25); }
.sk-btn-danger:hover { color: #fff; }
.sk-btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 7px; }
.sk-btn-lg { height: 44px; padding: 0 26px; font-size: 15px; border-radius: 10px; }
.sk-btn-block { width: 100%; }

/* 流光：hover 时一道高光扫过 */
.sk-shine::after {
    content: "";
    position: absolute;
    top: -60%;
    left: -30%;
    width: 36%;
    height: 220%;
    background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-18deg) translateX(-220%);
    pointer-events: none;
}
.sk-shine:hover::after { animation: sk-shine-sweep .72s ease; }
@keyframes sk-shine-sweep {
    0%   { transform: skewX(-18deg) translateX(-220%); }
    100% { transform: skewX(-18deg) translateX(520%); }
}

/* 给老按钮自动加的流光/反馈（由 skin.js 注入 class） */
.sk-auto-shine { position: relative; overflow: hidden; }
.sk-auto-shine::after {
    content: "";
    position: absolute;
    top: -60%; left: -30%;
    width: 34%; height: 220%;
    background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-18deg) translateX(-240%);
    pointer-events: none;
}
.sk-auto-shine:hover::after { animation: sk-shine-sweep .78s ease; }

/* ---------- 工具栏 ---------- */
.sk-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--sk-line);
    border-radius: var(--sk-radius);
    margin-bottom: 12px;
}
.sk-toolbar .sk-spacer { margin-left: auto; }
.sk-toolbar .sk-seg {
    display: inline-flex;
    padding: 3px;
    background: #f2f6fc;
    border-radius: 9px;
    gap: 2px;
}
.sk-toolbar .sk-seg button {
    border: 0; background: transparent; cursor: pointer;
    height: 30px; padding: 0 12px; border-radius: 7px;
    font-size: 12.5px; color: var(--sk-text-2);
    display: inline-flex; align-items: center; gap: 6px;
    transition: .16s;
}
.sk-toolbar .sk-seg button:hover { color: var(--sk-pri); }
.sk-toolbar .sk-seg button.on {
    background: #fff; color: var(--sk-pri); font-weight: 600;
    box-shadow: 0 2px 8px rgba(51,112,255,.14);
}

/* ---------- 表格 ---------- */
.sk-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.sk-table th {
    text-align: left; font-weight: 600; color: var(--sk-text-2);
    background: #f7fafd; padding: 11px 14px; border-bottom: 1px solid var(--sk-line);
    white-space: nowrap;
}
.sk-table td { padding: 12px 14px; border-bottom: 1px solid #f2f5fa; color: var(--sk-text); vertical-align: middle; }
.sk-table tbody tr:hover td { background: #f8fbff; }
.sk-table tbody tr:last-child td { border-bottom: 0; }
.sk-table .sk-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 徽标 ---------- */
.sk-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 1px 9px; border-radius: 20px; font-size: 11.5px; line-height: 1.9;
    background: #f0f4fa; color: #64748b;
}
.sk-tag.blue { background: #e8f3ff; color: #245bdb; }
.sk-tag.green { background: #e7f9f1; color: #0f9d63; }
.sk-tag.orange { background: #fff4e6; color: #d97706; }
.sk-tag.red { background: #fdeeee; color: #d64545; }

/* ---------- 空状态 ---------- */
.sk-empty { padding: 56px 20px; text-align: center; color: var(--sk-text-3); font-size: 13px; }
.sk-empty .sk-empty-ico { font-size: 40px; opacity: .5; display: block; margin-bottom: 10px; }

/* ---------- 表单 ---------- */
.sk-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.sk-form .sk-field.full { grid-column: 1 / -1; }
.sk-field > label { display: block; font-size: 12.5px; color: var(--sk-text-2); margin-bottom: 7px; font-weight: 500; }
.sk-field > label .req { color: var(--sk-danger); margin-right: 3px; }
.sk-input, .sk-select, .sk-textarea {
    width: 100%; min-height: 38px; padding: 8px 12px;
    border: 1px solid #dfe6f0; border-radius: 8px; background: #fff;
    font-size: 13px; color: var(--sk-text); outline: none; font-family: inherit;
    transition: border-color .16s, box-shadow .16s;
}
.sk-textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.sk-input:focus, .sk-select:focus, .sk-textarea:focus {
    border-color: var(--sk-pri); box-shadow: 0 0 0 3px rgba(51,112,255,.12);
}
.sk-hint { font-size: 12px; color: var(--sk-text-3); margin-top: 5px; line-height: 1.6; }
@media (max-width: 720px) { .sk-form { grid-template-columns: 1fr; } }

/* ---------- 通用滚动条 ---------- */
.sk-scroll { overflow: auto; }
.sk-scroll::-webkit-scrollbar { width: 8px; height: 8px; }
.sk-scroll::-webkit-scrollbar-thumb { background: #cfdcec; border-radius: 8px; }
.sk-scroll::-webkit-scrollbar-thumb:hover { background: #b6c9de; }
.sk-scroll::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   后台（pear / layui）适配
   ============================================================ */

/* 弹窗：内容自适应高度，避免被固定高度裁掉 */
.layui-layer-page .layui-layer-content,
.layui-layer-iframe .layui-layer-content { overflow: auto !important; }
.layui-layer-page .layui-layer-content { padding-bottom: 4px; }
.layui-layer-btn { padding: 12px 18px 16px !important; }
.layui-layer-btn .layui-layer-btn0,
.layui-layer-btn .layui-layer-btn1 { border-radius: 7px !important; height: 34px; line-height: 34px; }

/* 后台内容区滚动到底（底部留出页脚 26px） */
.layui-body { overflow: auto; }
.layui-layout-admin .layui-body,
.pear-admin .layui-body { bottom: 26px; }

/* 表格里的操作按钮不换行挤压 */
.layui-table-cell .layui-btn + .layui-btn { margin-left: 4px; }
.layui-table-cell { height: auto; line-height: 26px; padding-top: 8px; padding-bottom: 8px; }

/* 后台表单：两列网格（页面里加 .sk-form 即可） */
.layui-form-item.sk-inline { display: inline-block; width: 48%; margin-right: 2%; vertical-align: top; }

/* 后台页脚渐变条 */
.sk-admin-footer {
    background: var(--sk-grad-footer);
    border-top: 1px solid rgba(51,112,255,.10);
    color: #8b95a5;
    font-size: 12px;
    text-align: center;
    padding: 10px 12px;
}

/* 后台操作按钮更明显 */
.layui-btn { border-radius: 7px; transition: transform .12s ease, box-shadow .18s ease, filter .18s ease; }
.layui-btn:hover { filter: brightness(1.03); box-shadow: 0 6px 16px rgba(51,112,255,.18); }
.layui-btn:active { transform: translateY(1px); }
.layui-btn-sm { height: 30px; line-height: 30px; }

/* 后台卡片式面板 */
.sk-panel { background: #fff; border: 1px solid var(--sk-line); border-radius: 10px; padding: 16px 18px; }
.sk-panel + .sk-panel { margin-top: 14px; }

/* ---------- 打印 / 小屏 ---------- */
@media (max-width: 900px) {
    .sk-form { grid-template-columns: 1fr; }
    .sk-toolbar { gap: 8px; }
}

/* ============================================================
   通用内容容器（.all-box 被 全部文件 / 回收站 / 分享 等页面复用）
   ============================================================ */
.all-box { padding: 0; }
.all-box > .top {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--sk-line); border-radius: var(--sk-radius);
    padding: 9px 12px; margin-bottom: 10px; box-shadow: var(--sk-shadow);
}
.all-box > .top .top-left, .all-box > .top .top-right {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.all-box > .top .top-item {
    height: 34px; padding: 0 12px; border-radius: 8px; cursor: pointer;
    transition: background .16s, color .16s, transform .12s;
}
.all-box > .top .top-item:hover { background: #f2f8ff; color: var(--sk-pri); transform: translateY(-1px); }
.all-box > .top .top-item .text { font-size: 13px; }
.all-box > .daohang {
    background: #fff; border: 1px solid var(--sk-line); border-radius: var(--sk-radius);
    padding: 9px 14px; margin-bottom: 10px; font-size: 13px; color: #5b6472;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.all-box > .daohang a { color: #46536a; text-decoration: none; }
.all-box > .daohang a:hover { color: var(--sk-pri); }
.table-box {
    background: #fff; border: 1px solid var(--sk-line); border-radius: var(--sk-radius);
    overflow: hidden; box-shadow: var(--sk-shadow);
}
.table-box .bootstrap-table .fixed-table-container { border: 0; }
.table-box .bootstrap-table .table > thead > tr > th {
    background: #f7fafd; border-bottom: 1px solid var(--sk-line); color: #5b6472; font-weight: 600;
}
.table-box .bootstrap-table .table > tbody > tr > td { border-top-color: #f2f5fa; vertical-align: middle; }
.table-box .pagination-detail, .table-box .pagination-info { font-size: 12.5px; color: #8b95a5; }
.table-box .pagination > li > a, .table-box .pagination > li > span {
    color: #5b6472; border-radius: 7px !important; margin: 0 2px; border-color: #e6edf7;
}
.table-box .pagination > .active > a, .table-box .pagination > .active > span {
    background: var(--sk-pri); border-color: var(--sk-pri); color: #fff;
}

/* 分享页 / 记录页的 bootstrap 选项卡 */
.all-box .nav-tabs { border-bottom: 1px solid var(--sk-line); margin-bottom: 14px; }
.all-box .nav-tabs > li > a { color: #5b6472; border: 0; border-radius: 8px 8px 0 0; padding: 9px 16px; }
.all-box .nav-tabs > li.active > a,
.all-box .nav-tabs > li.active > a:hover,
.all-box .nav-tabs > li.active > a:focus {
    color: var(--sk-pri); background: #f2f8ff; border: 0; border-bottom: 2px solid var(--sk-pri); font-weight: 600;
}

/* 通用卡片外壳（工单等自定义页面用） */
.sk-page .tk-head h2, .sk-page .wrap > h2 { font-size: 16px; }


/* ---------- 后台固定页脚 ---------- */
.sk-admin-footer {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 28px; line-height: 28px;
    padding: 0 12px;
    box-sizing: border-box;
    z-index: 1000;
    background: var(--sk-grad-footer);
    border-top: 1px solid rgba(51,112,255,.12);
    color: #8b95a5;
    font-size: 11.5px;
    text-align: center;
    letter-spacing: .01em;
}
.sk-admin-footer a { color: #6b88a6; text-decoration: none; margin: 0 5px; }
.sk-admin-footer a:hover { color: var(--sk-pri); }
@media (max-width: 768px) { .sk-admin-footer { display: none; } }

/* ---------- 后台编辑表单：宽屏两列，长文本自动占满 ---------- */
@media (min-width: 1000px) {
    .mainBox .main-container {
        column-count: 2;
        column-gap: 24px;
    }
    .mainBox .main-container > .layui-form-item {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
    }
    /* 大段文本 / 富文本 / 表格类控件不拆列 */
    .mainBox .main-container > .layui-form-item.sk-full,
    .mainBox .main-container > .layui-form-item:has(textarea),
    .mainBox .main-container > .layui-form-item:has(.layui-input-block > table) {
        column-span: all;
    }
}

/* 编辑页容器不要贴边 */
.layui-card-body { padding: 16px 18px; }
.mainBox { padding: 10px 4px 20px; }
.layui-form-label { width: 92px; }
.layui-input-block { margin-left: 122px; }

/* 表格工具栏按钮更紧凑清晰 */
.layui-table-tool { background: #fbfdff; }
.layui-table-tool-self { right: 14px; }


/* 文件列表容器：保证分页条始终可见 */
.table-box { min-height: 380px; }
.table-box .fixed-table-pagination { padding: 8px 12px 10px; }
.table-box .fixed-table-pagination .pagination { margin: 4px 0; }

/* 让「全部文件 / 回收站」的内容区撑满可视高度，避免底部大片留白 */
.sk-content { display: flex; flex-direction: column; min-height: 0; }
.sk-content > .all-box { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.all-box > .table-box,
.all-box > #gridBox { flex: 1 1 auto; min-height: calc(100vh - 330px); }
@media (max-width: 900px) {
    .all-box > .table-box,
    .all-box > #gridBox { min-height: 60vh; }
}

/* 只有一个卡片的内容页：给一个与侧栏相当的最小高度即可。
   原来写的是 calc(100vh - 320px)，在 1080p 上会撑出 700+ 的卡片，
   会员中心 / 帮助中心内容只占一半，下面全是空白。 */
.sk-content > .sk-page:only-of-type { min-height: 520px; }
@media (max-width: 900px) { .sk-content > .sk-page:only-of-type { min-height: 0; } }

/* ---------- 窄屏适配：顶部栏与文件工具栏不横向溢出 ---------- */
body { overflow-x: hidden; }
@media (max-width: 720px) {
    .pub-header { padding: 0 10px !important; }
    .sk-head-user { gap: 6px !important; }
    .sk-head-user .text { display: none !important; }
    .sk-vip-pill { display: none !important; }
    .sk-head-user .head-img { width: 28px !important; height: 28px !important; }
    .sk-head-user .sk-btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }

    .all-box > .top { padding: 8px !important; gap: 8px !important; }
    .all-box > .top .top-left { width: 100%; }
    .all-box > .top .top-right { width: 100%; gap: 8px !important; }
    .all-box > .top .top-right .el-input { flex: 1 1 auto; min-width: 0; }
    .all-box > .top .top-right .el-input input { width: 100% !important; }
    .all-box > .top .view-switch { margin-right: 0 !important; }
    .all-box > .daohang { font-size: 12px; padding: 8px 10px; }

    .sk-footer { padding: 14px 10px 18px !important; }
    .sk-footer-links a { margin: 0 4px !important; font-size: 12px; }
}

/* 表格横向滚动限制在卡片内，避免把整页宽度撑开导致头部溢出 */
.table-box, #gridBox { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sk-content, .sk-shell { min-width: 0; max-width: 100%; }

/* ============================================================
   公开页骨架（首页 / 登录 / 帮助 / 分享 / 声明 …）
   与个人网盘同一套：白顶栏 + 浅蓝底 + 白卡片 + 渐变页脚
   ============================================================ */
.sk-pub-body { background: var(--sk-bg); }
/* 公开页统一盒模型：项目自带的 bootstrap 精简版没有全局 border-box，
   否则 width:100% + padding 会横向溢出（弹窗登录最明显） */
.sk-app-pub, .sk-app-pub *, .sk-app-pub *::before, .sk-app-pub *::after { box-sizing: border-box; }
.sk-app-pub { background: var(--sk-bg); }
.sk-app-pub > .sk-main-wrap { display: flex; flex-direction: column; }

/* 顶栏用不透明白 + 底部一道极淡阴影代替毛玻璃：
   毛玻璃每帧都要重新采样背景，长列表滚动时在低端机上是明显的掉帧点 */
.sk-pub-head {
    position: sticky; top: 0; z-index: 60;
    background: #ffffff;
    border-bottom: 1px solid var(--sk-line);
    box-shadow: 0 1px 0 rgba(231, 238, 248, .8), 0 8px 20px -18px rgba(16, 42, 80, .55);
}
/* 全站禁用毛玻璃（含第三方弹层残留） */
.sk-app, .sk-app *, .sk-app-pub, .sk-app-pub *,
.layui-layer, .layui-layer * {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
.sk-pub-head-inner {
    max-width: 1120px; margin: 0 auto; height: 60px;
    display: flex; align-items: center; gap: 26px; padding: 0 20px;
}
.sk-pub-logo { display: flex; align-items: center; flex: none; }
.sk-pub-logo img { height: 34px; width: auto; max-width: 180px; object-fit: contain; display: block; }

.sk-pub-nav { display: flex; align-items: center; gap: 4px; }
.sk-pub-nav a {
    display: inline-flex; align-items: center; height: 34px; padding: 0 12px;
    border-radius: 8px; font-size: 13.5px; color: #4c5768; text-decoration: none;
    transition: background .16s, color .16s;
}
.sk-pub-nav a:hover { background: #f2f8ff; color: var(--sk-pri); }
.sk-pub-nav a.on { background: #eef7ff; color: var(--sk-pri); font-weight: 600; }

.sk-pub-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.sk-pub-avatar { display: flex; }
.sk-pub-avatar img { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #e8f3ff; object-fit: cover; }

.sk-pub-main {
    flex: 1 0 auto; width: 100%; max-width: 1120px;
    margin: 0 auto; padding: 22px 20px 34px;
}
.sk-pub-main.narrow { max-width: 820px; }
.sk-pub-main.mid { max-width: 980px; }

/* 卡片 */
.sk-pub-card {
    background: var(--sk-card); border: 1px solid var(--sk-line);
    border-radius: 14px; box-shadow: var(--sk-shadow);
    transition: box-shadow .3s var(--sk-ease), border-color .3s var(--sk-ease);
}
.sk-pub-card:hover { box-shadow: var(--sk-shadow-hover); border-color: #dde9f8; }
.sk-pub-card + .sk-pub-card { margin-top: 14px; }
.sk-pub-card-hd { padding: 20px 22px 0; }
.sk-pub-card-hd h1, .sk-pub-card-hd h2 {
    margin: 0; font-size: 18px; font-weight: 650; color: var(--sk-text); letter-spacing: .2px;
}
.sk-pub-card-hd .sub { margin-top: 6px; font-size: 12.5px; color: var(--sk-text-3); line-height: 1.7; }
.sk-pub-card-bd { padding: 20px 22px 22px; }

/* 页面小标题 */
.sk-sec-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.sk-sec-title h2 { font-size: 16px; margin: 0; font-weight: 650; }
.sk-sec-title .sub { font-size: 12.5px; color: var(--sk-text-3); }
.sk-sec-title .extra { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* 登录 / 注册：居中卡片 */
.sk-auth-wrap { width: 100%; max-width: 400px; margin: 2.4vh auto 0; }
.sk-auth-card { padding: 26px 28px 22px; }
.sk-auth-card .m-logo { display: none; text-align: center; margin-bottom: 18px; }
.sk-auth-card .m-logo img { height: 36px; }

/* 弹窗模式（layer iframe）去掉外壳留白 */
/* 弹窗内（layer iframe）：用 body padding 内缩，避免 width:100%+padding 溢出 */
.in-layer.sk-pub-body { padding: 16px 18px 20px; overflow-x: hidden; }
.in-layer .sk-pub-main { padding: 0; max-width: none; }
.in-layer .sk-auth-wrap { margin: 0 auto; width: 100%; max-width: 420px; }
.in-layer .sk-auth-card { box-shadow: none; border: 0; border-radius: 0; padding: 0; }
.in-layer .lg-foot { display: none; }

@media (max-width: 820px) {
    .sk-pub-head-inner { height: 54px; gap: 10px; padding: 0 12px; }
    .sk-pub-logo img { height: 28px; max-width: 120px; }
    .sk-pub-nav { gap: 0; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
    .sk-pub-nav::-webkit-scrollbar { display: none; }
    .sk-pub-nav a { padding: 0 8px; font-size: 12.5px; white-space: nowrap; }
    .sk-pub-actions .sk-btn { height: 28px; padding: 0 10px; font-size: 12px; }
    .sk-pub-main { padding: 14px 12px 24px; }
    .sk-auth-wrap { margin-top: 0; }
    .sk-pub-card-hd { padding: 16px 16px 0; }
    .sk-pub-card-bd { padding: 16px; }
}
@media (max-width: 560px) {
    .sk-pub-nav { display: none; }
}

/* 认证类页面：内容少时垂直居中，内容超高时正常滚动 */
.sk-pub-main { display: flex; flex-direction: column; }
.sk-pub-main > .sk-auth-wrap { margin: auto; }
.sk-pub-main > .sk-pub-card, .sk-pub-main > .sk-pub-stack { flex: none; }

/* ---------- 提示 / 404 页 ---------- */
.sk-tip-wrap { width: 100%; max-width: 460px; margin: auto; }
.sk-tip-card { padding: 34px 28px 30px; text-align: center; }
.sk-tip-ico {
    width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 700; color: #f56c6c; background: #fdeeee;
}
.sk-tip-card h2 { font-size: 17px; margin: 0 0 8px; font-weight: 650; color: var(--sk-text); }
.sk-tip-card p { margin: 0 0 20px; font-size: 12.5px; color: var(--sk-text-3); line-height: 1.8; }
.sk-tip-card .btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   首页（网盘风格落地页）
   ============================================================ */
.hm-hero {
    display: flex; align-items: center; gap: 40px;
    padding: 44px 44px 40px; overflow: hidden; position: relative;
    background: linear-gradient(120deg, #ffffff 0%, #f7fbff 46%, #eaf4ff 100%);
    border: 1px solid var(--sk-line); border-radius: 16px; box-shadow: var(--sk-shadow);
}
.hm-hero::after {
    content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
    right: -120px; top: -160px; background: radial-gradient(circle, rgba(51,112,255,.14), rgba(51,112,255,0) 68%);
    pointer-events: none;
}
.hm-hero-text { flex: 1 1 52%; min-width: 0; position: relative; z-index: 2; }
.hm-pill {
    display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px;
    border-radius: 20px; background: #e8f3ff; color: #245bdb; font-size: 12px; margin-bottom: 16px;
}
.hm-hero-text h1 { font-size: 34px; line-height: 1.3; margin: 0 0 14px; font-weight: 700; color: #10233a; letter-spacing: .5px; }
.hm-hero-text p { margin: 0 0 24px; font-size: 14px; line-height: 1.9; color: #55637a; max-width: 460px; }
.hm-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hm-stats { display: flex; gap: 30px; margin-top: 28px; flex-wrap: wrap; }
/* 这三个是「卖点文字」不是链接，用品牌蓝会让人以为能点，改成正文色 */
.hm-stats .it b { display: block; font-size: 15px; color: var(--sk-text); font-weight: 650; }
.hm-stats .it span { font-size: 12px; color: var(--sk-text-3); }

/* 右侧「文件窗口」示意图 */
.hm-visual { flex: 0 1 42%; min-width: 300px; position: relative; z-index: 2; }
.hm-window {
    background: #fff; border: 1px solid #e6eefb; border-radius: 14px; overflow: hidden;
    box-shadow: 0 18px 46px rgba(51,112,255,.16);
}
.hm-window-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #fbfdff; border-bottom: 1px solid #eef3fa; }
.hm-window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #dfe8f4; display: block; }
.hm-window-bar i:first-child { background: #ffd0d0; }
.hm-window-bar i:nth-child(2) { background: #ffe3b8; }
.hm-window-bar i:nth-child(3) { background: #c9eed9; }
.hm-window-body { padding: 12px 14px 16px; }
.hm-row { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; }
.hm-row + .hm-row { margin-top: 2px; }
.hm-row:nth-child(odd) { background: #f8fbff; }
.hm-ico { width: 28px; height: 28px; border-radius: 8px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.hm-row .nm { flex: 1; min-width: 0; font-size: 12.5px; color: #3d4a5c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-row .sz { font-size: 11.5px; color: #9aa6b6; }
.hm-badge { position: absolute; right: -6px; bottom: -14px; background: #fff; border: 1px solid #e6eefb;
    border-radius: 10px; box-shadow: 0 10px 24px rgba(51,112,255,.14); padding: 9px 14px; font-size: 12px; color: #245bdb; }

/* 功能卡 */
.hm-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.hm-feat { background: #fff; border: 1px solid var(--sk-line); border-radius: 14px; padding: 22px; box-shadow: var(--sk-shadow); transition: transform .18s, box-shadow .18s; }
.hm-feat:hover { transform: translateY(-2px); box-shadow: var(--sk-shadow-hover); }
.hm-feat .ico { width: 40px; height: 40px; border-radius: 11px; background: #eaf4ff; color: var(--sk-pri);
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.hm-feat h3 { font-size: 15px; margin: 0 0 8px; font-weight: 650; }
.hm-feat p { margin: 0; font-size: 12.5px; line-height: 1.85; color: var(--sk-text-3); }

.hm-cta { margin-top: 14px; padding: 26px 30px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    background: linear-gradient(120deg, #f2f9ff, #ffffff 60%, #eef7ff); }
.hm-cta h2 { font-size: 17px; margin: 0 0 6px; font-weight: 650; }
.hm-cta p { margin: 0; font-size: 12.5px; color: var(--sk-text-3); }
.hm-cta .sk-btn { margin-left: auto; }

@media (max-width: 900px) {
    .hm-hero { flex-direction: column; padding: 28px 20px 22px; gap: 26px; align-items: stretch; }
    /* 手机上徽标改为下方居中，避免压住文件窗口卡片 */
    .hm-badge {
        position: static; display: inline-block; margin: 14px auto 0;
        right: auto; bottom: auto; text-align: center;
    }
    .hm-visual { text-align: center; }
    .hm-hero-text h1 { font-size: 25px; }
    .hm-visual { min-width: 0; flex: none; }
    .hm-feats { grid-template-columns: 1fr; }
    .hm-cta { padding: 20px; }
    .hm-cta .sk-btn { margin-left: 0; }
}

/* ============================================================
   分享下载页（单文件 / 文件夹 / 提取码）
   ============================================================ */
.dl-head { padding: 22px 24px; }
.dl-file { display: flex; align-items: flex-start; gap: 14px; }
.dl-ico {
    width: 48px; height: 48px; border-radius: 12px; flex: none;
    background: linear-gradient(135deg, #eaf4ff, #dcecff); color: var(--sk-pri);
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.dl-meta { flex: 1; min-width: 0; }
.dl-meta h1 { font-size: 17px; margin: 3px 0 8px; font-weight: 650; color: var(--sk-text); word-break: break-all; line-height: 1.45; }
.dl-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--sk-text-3); }
.dl-sub b { color: var(--sk-text-2); font-weight: 500; margin-left: 3px; }
.dl-acts { flex: none; display: flex; gap: 8px; }

.dl-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.dl-plan {
    background: #fff; border: 1px solid var(--sk-line); border-radius: 14px;
    padding: 20px; box-shadow: var(--sk-shadow); position: relative; overflow: hidden;
    transition: transform .18s, box-shadow .18s;
}
.dl-plan:hover { transform: translateY(-2px); box-shadow: var(--sk-shadow-hover); }
.dl-plan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: #dfe8f4; }
.dl-plan.normal::before { background: linear-gradient(90deg, #ffd08a, #fa8c16); }
.dl-plan.login::before { background: linear-gradient(90deg, #9fd0ff, #3370ff); }
.dl-plan.vip::before { background: linear-gradient(90deg, #ffd76a, #f5b31b); }
.dl-plan h3 { font-size: 14.5px; margin: 0 0 6px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.dl-plan .speed { font-size: 20px; font-weight: 700; color: var(--sk-text); margin: 10px 0 2px; }
.dl-plan .speed small { font-size: 12px; font-weight: 400; color: var(--sk-text-3); margin-left: 4px; }
.dl-plan .desc { font-size: 12px; color: var(--sk-text-3); margin: 0 0 16px; line-height: 1.7; }
.dl-plan .sk-btn { width: 100%; }
.dl-plan .sk-btn-gold { background: linear-gradient(135deg, #ffcf5c, #f5b31b); color: #6b4400; border-color: transparent; font-weight: 600; }
.dl-plan .sk-btn-gold:hover { color: #6b4400; box-shadow: 0 8px 20px rgba(245,179,27,.25); }

/* 会员套餐 */
.vip-buy { margin-top: 14px; padding: 22px 24px; }
.vip-buy-hd { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.vip-buy-hd h2 { font-size: 16px; margin: 0; font-weight: 650; }
.vip-buy-hd .tip { font-size: 12px; color: var(--sk-text-3); }
.vip-buy-hd .hot { margin-left: auto; font-size: 11.5px; color: #d46b08; background: #fff8e6;
    border: 1px solid #ffe7ba; border-radius: 20px; padding: 2px 12px; }
.vip-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vip-plan { border: 1px solid var(--sk-line); border-radius: 12px; padding: 18px 16px; text-align: center;
    background: #fbfdff; transition: .16s; }
.vip-plan:hover { border-color: var(--sk-pri); background: #f7fbff; }
.vip-plan.hot { background: linear-gradient(180deg, #fffaf0, #fff); border-color: #ffe0a8; }
.vip-plan .nm { font-size: 14px; font-weight: 600; color: var(--sk-text); }
.vip-plan .pr { font-size: 24px; font-weight: 700; color: #d46b08; margin: 10px 0 2px; }
.vip-plan .pr small { font-size: 12px; font-weight: 400; color: var(--sk-text-3); }
.vip-plan .ds { font-size: 11.5px; color: var(--sk-text-3); min-height: 18px; }
.vip-plan .desc { font-size: 11.5px; color: var(--sk-text-3); line-height: 1.6; margin: 8px 0 12px; min-height: 34px; }
.vip-plan .sk-btn { width: 100%; }
.vip-perks { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--sk-line);
    font-size: 12.5px; color: var(--sk-text-2); display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

.dl-tip { margin-top: 14px; padding: 14px 18px; font-size: 12.5px; color: #8a6d3b;
    background: #fffbf2; border: 1px solid #ffeccc; border-radius: 12px; line-height: 1.8; }
.dl-tip b { color: #c96a00; }

@media (max-width: 900px) {
    .dl-plans, .vip-plans { grid-template-columns: 1fr; }
    .dl-file { flex-wrap: wrap; }
    .dl-acts { width: 100%; }
    .dl-acts .sk-btn { flex: 1; }
    .dl-head { padding: 16px; }
    .vip-buy { padding: 16px; }
}

/* 文件夹分享列表 */
.fl-list { border-top: 1px solid var(--sk-line); }
.fl-row { display: flex; align-items: center; gap: 10px; padding: 11px 20px; border-bottom: 1px solid #f2f5fa; }
.fl-row:last-child { border-bottom: 0; }
.fl-row:hover { background: #f8fbff; }
.fl-row .nm { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.fl-row .nm img { width: 20px; height: 20px; flex: none; }
.fl-row .nm a { color: var(--sk-text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-row .nm a:hover { color: var(--sk-pri); }
.fl-row .sz { width: 96px; flex: none; text-align: right; font-size: 12px; color: var(--sk-text-3); }
.fl-row .tm { width: 140px; flex: none; text-align: right; font-size: 12px; color: var(--sk-text-3); }
.fl-hd { display: flex; align-items: center; gap: 10px; padding: 11px 20px; background: #f7fafd;
    border-bottom: 1px solid var(--sk-line); font-size: 12px; color: var(--sk-text-2); font-weight: 600; }
.fl-hd .nm { flex: 1; }
.fl-hd .sz { width: 96px; text-align: right; flex: none; }
.fl-hd .tm { width: 140px; text-align: right; flex: none; }
@media (max-width: 720px) {
    .fl-row, .fl-hd { padding: 10px 14px; }
    .fl-row .tm, .fl-hd .tm { display: none; }
    .fl-row .sz, .fl-hd .sz { width: 70px; }
}
.zx-card { display: flex; align-items: center; gap: 20px; padding: 18px 22px; flex-wrap: wrap; }
.zx-card .txt { flex: 1; min-width: 180px; }
.zx-card .txt h3 { margin: 0 0 6px; font-size: 14.5px; font-weight: 650; }
.zx-card .txt p { margin: 0; font-size: 12.5px; color: var(--sk-text-3); line-height: 1.8; }
.zx-card img { width: 132px; height: 132px; border-radius: 10px; border: 1px solid var(--sk-line); background: #fff; }
@media (max-width: 820px) {
    .zx-card { flex-direction: column-reverse; align-items: center; text-align: center; }
    .zx-card img { width: 150px; height: 150px; }
}

/* 提取码页 */
.pw-user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--sk-line); }
.pw-user img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #eaf4ff; object-fit: cover; }
.pw-user .u { min-width: 0; }
.pw-user .u b { font-size: 13.5px; color: var(--sk-text); font-weight: 600; }
.pw-user .u .d { font-size: 12px; color: var(--sk-text-3); margin-top: 3px; line-height: 1.6; word-break: break-all; }
.pw-title { font-size: 18px; font-weight: 650; margin: 0 0 6px; color: var(--sk-text); }
.pw-sub { font-size: 12.5px; color: var(--sk-text-3); margin: 0 0 18px; }
.pw-row { display: flex; gap: 10px; }
.pw-row input { flex: 1; min-width: 0; border: 1px solid #dfe6f0; border-radius: 9px; padding: 11px 13px;
    font-size: 14px; outline: none; font-family: inherit; letter-spacing: 2px; transition: .15s; }
.pw-row input:focus { border-color: var(--sk-pri); box-shadow: 0 0 0 3px rgba(51,112,255,.12); }
.pw-row .sk-btn { flex: none; height: 44px; padding: 0 22px; border-radius: 9px; }
.pw-err { margin-top: 10px; font-size: 12.5px; color: var(--sk-danger); min-height: 18px; }

/* 个人中心内容页与公开页卡片保持同一圆角/阴影 */
.sk-page { border-radius: 14px; }

/* ---------- 前台弹窗内小表单（编辑文件 / 编辑文件夹 / 移动文件） ---------- */
body.sk-pop { padding: 16px 18px; background: #fff; margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--sk-text); font-size: 13px; }
body.sk-pop .form-group { margin-bottom: 14px; }
body.sk-pop label { font-size: 12.5px; color: var(--sk-text-2); font-weight: 500; }
body.sk-pop .form-control {
    height: 38px; border: 1px solid #dfe6f0; border-radius: 8px; box-shadow: none;
    font-size: 13px; color: var(--sk-text); padding: 8px 12px;
}
body.sk-pop textarea.form-control { height: auto; min-height: 92px; line-height: 1.7; }
body.sk-pop .form-control:focus { border-color: var(--sk-pri); box-shadow: 0 0 0 3px rgba(51,112,255,.12); }
body.sk-pop .btn { border-radius: 8px; border: 0; font-size: 13.5px; height: 38px; }
body.sk-pop .btn-success, body.sk-pop .btn-primary {
    background: linear-gradient(135deg, #4b83ff 0%, #3370ff 45%, #245bdb 100%);
    box-shadow: 0 6px 18px rgba(51,112,255,.24); color: #fff;
}
body.sk-pop .btn-success:hover, body.sk-pop .btn-primary:hover { box-shadow: 0 10px 22px rgba(51,112,255,.3); color: #fff; }
body.sk-pop .btn-block { width: 100%; }
body.sk-pop .alert { border-radius: 9px; font-size: 12.5px; padding: 9px 12px; }
body.sk-pop .help-block { margin: 0; }
body.sk-pop .panel-body { padding: 0; }
body.sk-pop .sk-pop-row { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; }
body.sk-pop .sk-pop-row > label { margin: 0; }

/* ============================================================
   移动端适配（≤720px）
   说明：文件页工具栏的 .top-right 旧样式是固定 316×32 的灰胶囊，
   内部同时塞了「列表/网格」和搜索框，窄屏必然溢出并与面包屑重叠。
   ============================================================ */
.all-box > .top .top-right {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 10px;
}
.all-box > .top .top-right .el-input {
    height: 34px;
    background: #f7fafd;
    border: 1px solid var(--sk-line);
    border-radius: 8px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color .16s, box-shadow .16s;
}
.all-box > .top .top-right .el-input:focus-within {
    border-color: var(--sk-pri);
    box-shadow: 0 0 0 3px rgba(30, 159, 255, .10);
}
.all-box > .top .top-right .el-input input {
    width: 190px !important;
    height: 30px;
    border: 0 !important;
    background: transparent !important;
    font-size: 13px;
    outline: none;
    box-shadow: none !important;
}
.all-box > .top .top-right .el-input .icon { color: #8b95a5; cursor: pointer; }
.all-box > .top .view-switch button { height: 32px; line-height: 32px; }

/* 网格批量操作条：禁止换行，隐藏时彻底移出视口 */
#gridBar { white-space: nowrap; }
#gridBar > span { flex: none; }
#gridBar button { flex: none; }

/* 页头：窄屏标题不竖排，副标题与操作按钮自动换行 */
@media (max-width: 720px) {
    .sk-page-hd { flex-wrap: wrap; gap: 6px 10px; }
    .sk-page-hd h2 { flex: none; white-space: nowrap; font-size: 15px; }
    .sk-page-hd .sub { flex: 1 1 100%; order: 3; font-size: 12px; }
    .sk-page-hd .extra { margin-left: auto; gap: 6px; }

    .all-box > .top { height: auto !important; }
    .all-box > .top .top-right { width: 100% !important; flex-wrap: nowrap !important; }
    .all-box > .top .view-switch { flex: none; }
    .all-box > .top .top-right .el-input { flex: 1 1 auto; min-width: 0; }
    .all-box > .top .top-right .el-input input { width: 100% !important; }

    #gridBar {
        bottom: 12px; gap: 8px; padding: 8px 12px; font-size: 12px;
        transform: translateX(-50%) translateY(calc(100% + 40px));
        max-width: calc(100vw - 20px);
    }
    #gridBar.show { transform: translateX(-50%) translateY(0); }
    #gridBar button { padding: 4px 10px; font-size: 12px; }

    /* 表格：不压缩列宽，整张卡片横向滚动（表头与内容同一容器，不会错位） */
    .table-box table { min-width: 560px; }
    .table-box { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
    .table-box .bootstrap-table { min-width: 560px; }
    .table-box .fixed-table-body { overflow-x: visible !important; }
    .table-box .fixed-table-pagination { padding: 6px 8px 8px; }
    .table-box .pagination-detail { display: none; }
    .table-box .pagination { margin: 2px 0; }
    .table-box .pagination > li > a,
    .table-box .pagination > li > span { padding: 4px 9px; font-size: 12px; }

    /* 内容卡片内边距收紧 */
    .sk-page { padding: 14px !important; }
    .sk-pub-card-hd { padding: 16px 14px 0; }
    .sk-pub-card-bd { padding: 14px; }
}

/* ---------- 面包屑 / 提示条：旧样式写死 16px 高，长文案会被表头压住 ---------- */
.all-box > .daohang {
    height: auto !important;
    line-height: 1.7 !important;
    padding: 9px 14px !important;
    min-height: 36px;
}
.all-box > .daohang .daohang-all { display: block; }
@media (max-width: 720px) {
    .all-box > .daohang { font-size: 12px; padding: 8px 12px !important; }
    .all-box > .daohang .daohang-all > span[style*="float"] {
        float: none !important;
        display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 5px;
    }
}

/* ---------- 移动端：所有数据表格统一横向滚动，列不被压成竖排文字 ---------- */
@media (max-width: 720px) {
    .all-box table { min-width: 640px; }
    .all-box .tab-content,
    .all-box .tabbable,
    .all-box .table-responsive,
    .all-box > form + .tabbable { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .all-box .tab-content > .tab-pane > table { min-width: 640px; }
    /* 表头不换行（竖排文字的根因是列被挤到比汉字还窄） */
    .all-box table th, .all-box table td { white-space: nowrap; }
    .all-box table th { padding: 9px 10px; font-size: 12px; }
    .all-box table td { padding: 9px 10px; font-size: 12px; }
}

/* 帮助中心等页面小标题：窄屏标题不竖排，副标题换行 */
@media (max-width: 720px) {
    .sk-sec-title { flex-wrap: wrap; gap: 6px 10px; }
    .sk-sec-title h2 { flex: none; white-space: nowrap; font-size: 15px; }
    .sk-sec-title .sub { flex: 1 1 100%; order: 3; font-size: 12px; }
}

/* ============================================================
   后台移动端（≤768px）：表单收窄标签、控件单列、工具栏换行
   ============================================================ */
@media (max-width: 768px) {
    /* 表单：标签更窄，输入区占满剩余宽度 */
    .layui-form-label {
        width: 80px !important;
        padding: 9px 6px !important;
        font-size: 12.5px !important;
    }
    .layui-form-item { margin-bottom: 12px !important; }

    /* 用 flex 固定「标签 + 输入区」为一行：float 在窄屏容易被后续块级元素挤下去 */
    .layui-form-item:has(> .layui-form-label) {
        display: flex !important;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0 8px;
    }
    .layui-form-item:has(> .layui-form-label) > .layui-form-label {
        float: none !important;
        width: 96px !important;
        flex: none;
        height: auto;
        min-height: 38px;
        line-height: 20px;
        padding: 9px 4px !important;
        text-align: left;
        white-space: normal;
        word-break: break-word;
    }
    /* 输入区内部的多个行内控件（如「上传大小 + 单位」）并排，不各自换行 */
    .layui-input-block > .layui-input-inline { width: 40% !important; margin-right: 2% !important; vertical-align: middle; }
    .layui-input-block > .layui-input-inline + .layui-form-mid { display: inline-block; margin: 0 6px 0 0 !important; float: none !important; }
    .layui-form-item:has(> .layui-form-label) > .layui-input-block {
        margin-left: 0 !important;
        flex: 1 1 0%;
        min-width: 0;
    }
    .layui-input, .layui-select, .layui-textarea { font-size: 13px !important; }

    /* 行内控件在 flex 表单里自动填充，和标签同一行 */
    .layui-form-item:has(> .layui-form-label) > .layui-input-inline {
        width: auto !important;
        flex: 1 1 0%;
        margin-right: 0 !important;
        min-width: 0;
    }
    /* 表单里直接跟在后面的说明文字（如 KB/s 提示）独占一行 */
    .layui-form-item:has(> .layui-form-label) > .layui-form-mid {
        flex: 1 1 100%;
        margin: 2px 0 0 104px !important;
        float: none !important;
    }

    /* 卡片与工具栏 */
    .layui-card-body { padding: 12px !important; }
    .layui-card-header { font-size: 14px; padding: 0 12px; }
    .layui-table-tool { padding: 8px 10px !important; }
    .layui-table-tool .layui-btn { margin-bottom: 4px; }
    .layui-btn + .layui-btn { margin-left: 4px; }

    /* 分页居中，避免挤在左侧 */
    .layui-table-page { text-align: center; }
    .layui-table-page > div { float: none !important; }
    .layui-table-page .layui-laypage { margin: 0 auto; }

    /* 后台页面底部留白，最后一行不被固定按钮条压住 */
    body.pear-container { padding-bottom: 72px !important; }

    /* 搜索区按钮换行时留出间距 */
    .layui-form-item .layui-btn + .layui-btn { margin-left: 6px; margin-top: 0; }
}

/* 后台表单：输入区内部多个控件（大小 + 单位 + 下拉）在窄屏排成一行 */
@media (max-width: 768px) {
    .layui-input-block:has(> .layui-input-inline) {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }
    .layui-input-block:has(> .layui-input-inline) > .layui-input-inline {
        width: auto !important;
        flex: 1 1 72px;
        margin: 0 !important;
    }
    .layui-input-block:has(> .layui-input-inline) > .layui-form-mid {
        margin: 0 !important;
        flex: none;
        float: none !important;
    }
    /* 提示文案（word-aux）独占一行，不和控件挤 */
    .layui-input-block:has(> .layui-input-inline) > .layui-form-mid.layui-word-aux {
        flex: 1 1 100%;
        margin: 2px 0 0 !important;
    }
}

/* 会员页底部支付区：窄屏单列堆叠，金额与按钮不再左右分家 */
@media (max-width: 820px) {
    .vip-pay { flex-direction: column !important; align-items: stretch !important; gap: 14px !important; }
    .vip-pay-right { margin-left: 0 !important; min-width: 0 !important; width: 100%; }
    .vip-pay-right .amount { margin-bottom: 8px; }
}

/* ============================================================
   分享下载页 v3（直角 / 平铺卡片 / 分层阴影）
   本页用 .sk-flat 作用域统一去圆角，避免逐条覆盖
   ============================================================ */

/* 直角作用域：页面内所有元素（含弹层）
   唯一例外是 loading 的转圈，它靠 border-radius:50% 才有形状 */
.sk-flat, .sk-flat *, .sk-flat *::before, .sk-flat *::after,
body.sk-flat-body .layui-layer, body.sk-flat-body .layui-layer * {
    border-radius: 0 !important;
}
body.sk-flat-body .layui-layer-loading .layui-layer-content > * {
    border-radius: 50% !important;
}

.sk-pub-main.sk-share { max-width: 1200px; }

/* ---------- 文件横幅 ---------- */
.dl2-hero {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    padding: 22px 26px; color: #fff;
    background: linear-gradient(110deg, #1468dd 0%, #0f5cc9 48%, #0a4396 100%);
    box-shadow: 0 18px 36px -24px rgba(9, 60, 140, .85);
}
/* 斜细纹：纯 CSS 渐变，没有 blur，不产生额外合成层 */
.dl2-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(125deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 10px);
}
.dl2-hero-main, .dl2-acts { position: relative; z-index: 1; }
.dl2-hero-main { flex: 1 1 340px; min-width: 0; }
.dl2-hero h1 {
    font-size: 22px; font-weight: 600; margin: 0 0 10px; color: #fff;
    line-height: 1.55; word-break: break-all;
}
.dl2-hero h1 em {
    font-style: normal; font-size: 13.5px; font-weight: 400;
    color: rgba(255, 255, 255, .66); margin-right: 10px; letter-spacing: .5px;
}
.dl2-hero h1 span { font-weight: 700; }
.dl2-hero .meta {
    display: flex; flex-wrap: wrap; gap: 8px 26px;
    font-size: 13.5px; color: rgba(255, 255, 255, .68);
}
.dl2-hero .meta b { font-weight: 500; color: #fff; margin-left: 4px; }
.dl2-hero .meta .desc-line { color: rgba(255, 255, 255, .82); line-height: 1.75; }

.dl2-acts { display: flex; gap: 10px; flex: none; }
.dl2-acts a {
    display: inline-flex; align-items: center; justify-content: center;
    height: 34px; padding: 0 18px; font-size: 13px; text-decoration: none;
    transition: background .18s var(--sk-ease), border-color .18s, color .18s, transform .18s;
}
.dl2-acts a:active { transform: translateY(1px); }
.dl2-acts .ghost { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .5); color: #fff; }
.dl2-acts .ghost:hover { background: #fff; color: #245bdb; border-color: #fff; }
.dl2-acts .warn { background: #ff8f1f; border: 1px solid #ff8f1f; color: #fff; }
.dl2-acts .warn:hover { background: #f57c00; border-color: #f57c00; }

/* ---------- 三档下载 ---------- */
.dl2-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.dl2-plan {
    position: relative; display: flex; flex-direction: column; gap: 12px;
    padding: 20px 22px 22px; background: #fff;
    border: 1px solid var(--sk-line); border-top: 3px solid #dbe4f2;
    box-shadow: var(--sk-shadow);
    transition: transform .3s var(--sk-ease), box-shadow .3s var(--sk-ease), border-color .3s;
}
.dl2-plan:nth-child(1) { border-top-color: #fa8c16; }
.dl2-plan:nth-child(2) { border-top-color: #3370ff; }
.dl2-plan:nth-child(3) { border-top-color: #16b777; }
.dl2-plan:hover { transform: translateY(-4px); box-shadow: var(--sk-shadow-hover); }

.dl2-plan .hd { display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 600; color: var(--sk-text); }
.dl2-ico {
    width: 36px; height: 36px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
}
.dl2-ico svg { width: 19px; height: 19px; display: block; }
.dl2-ico.slow   { background: #fff4e8; color: #f57c00; }
.dl2-ico.stable { background: #eaf4ff; color: #3370ff; }
.dl2-ico.fast   { background: #eafaf2; color: #16b777; }

.dl2-tag { margin-left: auto; font-size: 12px; font-weight: 400; padding: 2px 9px; line-height: 1.7; }
.dl2-tag.slow   { background: #fff4e8; color: #f57c00; }
.dl2-tag.stable { background: #eaf4ff; color: #3370ff; }
.dl2-tag.rec    { background: #eafaf2; color: #16b777; }

.dl2-eta { display: flex; align-items: baseline; gap: 8px; }
.dl2-eta .lb { font-size: 12px; color: var(--sk-text-3); flex: none; }
.dl2-eta b { font-size: 22px; font-weight: 700; letter-spacing: -.2px; }
.dl2-eta b.slow   { color: #f57c00; }
.dl2-eta b.stable { color: #3370ff; }
.dl2-eta b.fast   { color: #16b777; }
.dl2-plan .sub { font-size: 13px; color: var(--sk-text-3); line-height: 1.8; }
.dl2-plan .act { margin-top: auto; padding-top: 2px; }
.dl2-plan .act .sk-btn { width: 100%; height: 40px; font-size: 14px; }

/* ---------- 会员套餐 ---------- */
.dl2-vip {
    margin-top: 16px; background: #fff;
    border: 1px solid var(--sk-line); box-shadow: var(--sk-shadow);
}
.dl2-vip-hd {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 16px 22px; border-bottom: 1px solid #eef3fa;
    background: linear-gradient(180deg, #fbfdff, #ffffff);
}
.dl2-vip-hd h2 { font-size: 17px; font-weight: 650; margin: 0; display: flex; align-items: center; }
.dl2-vip-hd h2::before {
    content: ""; width: 3px; height: 15px; margin-right: 10px;
    background: linear-gradient(180deg, #4b83ff, #245bdb);
}
.dl2-save {
    font-size: 11.5px; padding: 2px 9px;
    color: #16b777; background: #eefaf4; border: 1px solid #d5f2e5;
}
.dl2-count {
    margin-left: auto; font-size: 12px; padding: 4px 12px;
    color: #d4380d; background: #fff2ee; border: 1px solid #ffd8cc;
}
.dl2-count #ctp_time_left { font-variant-numeric: tabular-nums; }

.dl2-vip-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px; padding: 16px 16px 6px;
}
.dl2-vip-card {
    position: relative; text-align: center;
    display: flex; flex-direction: column;
    padding: 22px 14px 22px; background: #fdfeff;
    border: 1px solid #e9f0fa;
    transition: transform .3s var(--sk-ease), box-shadow .3s, border-color .3s, background .3s;
}
.dl2-vip-card:hover {
    transform: translateY(-3px);
    border-color: #cfe4ff;
    box-shadow: 0 16px 32px -22px rgba(16, 42, 80, .45);
}
.dl2-vip-card.hot { background: linear-gradient(180deg, #f2fcf7, #ffffff); border-color: #c9eeda; }
.dl2-vip-card.hot::before {
    content: "推荐"; position: absolute; top: 0; left: 0;
    padding: 2px 10px; font-size: 10.5px; letter-spacing: .5px;
    color: #fff; background: #16b777;
}
.dl2-vip-card .nm { font-size: 16.5px; font-weight: 650; color: var(--sk-text); }
.dl2-vip-card .off {
    display: inline-block; margin-left: 6px; vertical-align: 2px;
    font-size: 11px; padding: 1px 6px;
    color: #52c41a; background: #f2fce9; border: 1px solid #d9f0c0;
}
.dl2-vip-card .desc {
    font-size: 12.5px; color: var(--sk-text-3); line-height: 1.75;
    margin: 9px 0 12px; min-height: 42px;
    flex: 1 1 auto;
}
.dl2-vip-card .perk { font-size: 11.5px; color: #e8890c; margin-bottom: 8px; }
.dl2-vip-card .price {
    font-size: 34px; font-weight: 700; color: #16233a;
    line-height: 1.1; letter-spacing: -.5px;
    font-variant-numeric: tabular-nums;
}
.dl2-vip-card .price i { font-style: normal; font-size: 14px; font-weight: 600; margin-right: 2px; vertical-align: 5px; }
.dl2-vip-card .price small { font-size: 12px; color: var(--sk-text-3); font-weight: 400; margin-left: 3px; }
.dl2-vip-card .was { font-size: 11.5px; color: #aab3c0; text-decoration: line-through; margin-top: 5px; min-height: 16px; }
.dl2-vip-card .badge {
    display: inline-block; margin: 8px 0 14px; font-size: 11px; padding: 2px 9px;
    color: #d46b08; background: #fff7e8; border: 1px solid #ffe7ba;
    /* 卡片是 flex 列，不加 align-self 会被拉成通栏 */
    align-self: center;
}
.dl2-vip-card .buy {
    width: 100%; height: 34px; font-size: 13px; cursor: pointer;
    border: 1px solid #3370ff; background: #fff; color: #3370ff;
    transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.dl2-vip-card .buy:hover { background: #3370ff; color: #fff; }
.dl2-vip-card .buy:active { transform: translateY(1px); }
.dl2-vip-card.hot .buy { background: #16b777; border-color: #16b777; color: #fff; }
.dl2-vip-card.hot .buy:hover { background: #0fa268; border-color: #0fa268; }

.dl2-perks {
    display: flex; justify-content: center; gap: 10px 28px; flex-wrap: wrap;
    padding: 16px 16px 18px; font-size: 12.5px; color: #5b6472;
}
.dl2-perks span::before { content: "✓"; color: #16b777; font-weight: 700; margin-right: 6px; }

/* 防诈骗提示 */
.dl-tip {
    margin-top: 16px; padding: 12px 18px; font-size: 12.5px; line-height: 1.8;
    color: #8a6d3b; background: #fffbf2;
    border: 1px solid #ffeccc; border-left: 3px solid #fa8c16;
}
.dl-tip b { color: #c96a00; }

/* ---------- 入场动效（错峰，backwards 不残留 transform） ---------- */
.sk-share > .dl2-hero { animation: sk-rise .52s var(--sk-ease) backwards; }
.sk-share > .dl2-plans .dl2-plan:nth-child(1) { animation: sk-rise .52s var(--sk-ease) .06s backwards; }
.sk-share > .dl2-plans .dl2-plan:nth-child(2) { animation: sk-rise .52s var(--sk-ease) .12s backwards; }
.sk-share > .dl2-plans .dl2-plan:nth-child(3) { animation: sk-rise .52s var(--sk-ease) .18s backwards; }
.sk-share > .dl2-vip { animation: sk-rise .52s var(--sk-ease) .22s backwards; }
.sk-share > .dl-tip { animation: sk-fade .5s ease .34s backwards; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .dl2-vip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .dl2-hero { padding: 18px; gap: 14px; }
    .dl2-hero h1 { font-size: 15px; }
    .dl2-hero h1 em { display: block; margin: 0 0 4px; }
    .dl2-acts { width: 100%; }
    .dl2-acts a { flex: 1; }
    .dl2-plans { grid-template-columns: 1fr; gap: 12px; }
    .dl2-plan:hover { transform: none; }
    .dl2-vip-hd { padding: 14px 16px; }
    .dl2-vip-grid { grid-template-columns: 1fr; padding: 12px; }
    .dl2-vip-card { padding: 20px 14px; }
    .dl2-vip-card:hover { transform: none; }
    .dl2-count { margin-left: 0; }
    .dl2-perks { gap: 8px 18px; font-size: 12px; padding: 14px; }
}

/* ============================================================
   文件夹分享页：列表卡片与二维码卡（直角版）
   ============================================================ */
.fl-card { margin-top: 14px; overflow: hidden; }
.fl-hd {
    background: #f7fafd;
    font-weight: 600; color: #5b6472;
    letter-spacing: .3px;
}
.fl-row { transition: background .18s var(--sk-ease); }
.fl-row:hover { background: #f6fbff; }
.fl-row .nm a { transition: color .16s; }
.zx-card { margin-top: 14px; }
.zx-card .muted { margin-top: 8px; color: #a8b0bd; font-size: 12px; }
.zx-card h3 { display: flex; align-items: center; gap: 8px; }
.zx-card h3::before {
    content: ""; width: 3px; height: 14px;
    background: linear-gradient(180deg, #4b83ff, #245bdb);
}

/* 分享页其余卡片的错峰入场 */
.sk-share > .fl-card { animation: sk-rise .52s var(--sk-ease) .24s backwards; }
.sk-share > .zx-card { animation: sk-rise .52s var(--sk-ease) .3s backwards; }

/* 分享页在手机上左右留白收一点，列表才够宽 */
@media (max-width: 720px) {
    .sk-pub-main.sk-share { padding: 12px 10px 22px; }
    .fl-row .nm img { width: 18px; height: 18px; }
}

/* ============================================================
   统一质感：焦点态 / 表格行 / 按钮反馈
   ============================================================ */
/* 键盘操作才显示焦点环，鼠标点击不出现，兼顾可达性与观感 */
.sk-btn:focus-visible,
.dl2-acts a:focus-visible,
.dl2-vip-card .buy:focus-visible,
.sk-pub-nav a:focus-visible,
.layui-btn:focus-visible {
    outline: 2px solid rgba(30, 159, 255, .55);
    outline-offset: 2px;
}

/* 表格行悬停：统一成极淡蓝，避免不同页面深浅不一 */
.table-box .bootstrap-table .table > tbody > tr:hover > td,
.all-box table > tbody > tr:hover > td,
.layui-table-body .layui-table tr:hover td {
    background: #f7fbff !important;
}
.table-box .bootstrap-table .table > tbody > tr,
.all-box table > tbody > tr {
    transition: background .16s var(--sk-ease);
}

/* 链接式操作（删除/还原等文字按钮）统一反馈 */
.all-box table a { transition: color .16s; }
.all-box table a:hover { color: var(--sk-pri); }

/* ============================================================
   会员中心：套餐卡与支付区
   ============================================================ */
.vip-plan { display: flex; flex-direction: column; }
.vip-plan .vp-price { display: flex; align-items: baseline; }
.vip-plan .vp-price i { margin-left: 5px; }
.vip-plan .vp-desc { min-height: 38px; margin-top: auto; }
.vip-plan.on .vp-check { box-shadow: 0 0 0 3px rgba(30, 159, 255, .15); }

/* 未开通在线支付时，把金额块也拉平，不要悬在右上角。
   页面自带的 <style> 在 skin.css 之后加载，同权重会盖掉这里的声明，
   所以用 .sk-page 提权 */
.sk-page .vip-pay { align-items: center; }
.vip-pay-left { flex: 1 1 320px; min-width: 0; }
.vip-pay-right { display: flex; flex-direction: column; justify-content: flex-end; }
.vip-pay-right .amount { margin-bottom: 10px; }

/* ============================================================
   右侧悬浮工具条
   ============================================================ */
.sk-sidebar { gap: 10px; }
.sk-side-btn {
    width: 54px; height: 54px; border-radius: 12px;
    border: 1px solid #e9eef6; background: #fff;
    color: #5b6472; box-shadow: 0 4px 14px -8px rgba(16, 42, 80, .28);
    transition: color .18s var(--sk-ease), border-color .18s, box-shadow .18s, transform .18s;
}
.sk-side-btn:hover {
    color: var(--sk-pri); border-color: #bfe0ff;
    box-shadow: 0 10px 24px -12px rgba(30, 159, 255, .55);
    transform: translateY(-2px);
}
.sk-side-btn .sk-side-txt {
    font-size: 11px; line-height: 1.15; color: inherit;
    white-space: normal; word-break: keep-all; letter-spacing: 0;
}

/* 悬浮条尺寸要在桌面规则之后重新声明，否则会盖掉上面的移动端媒体查询 */
@media (max-width: 768px) {
    .sk-side-btn { width: 42px; height: 42px; border-radius: 10px; }
    .sk-side-btn .sk-side-txt { font-size: 9.5px; }
}
@media (max-width: 380px) {
    .sk-side-btn { width: 38px; height: 38px; border-radius: 9px; }
    .sk-side-btn .sk-side-txt { font-size: 9px; }
}

/* 支付区做成一个浅色结算面板，避免左右两块各漂一边 */
.vip-pay {
    background: #f8fbff;
    border: 1px solid #e9f2fd;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 18px;
    gap: 18px 24px;
}
.vip-pay .lab { color: #7d8ba1; }
.vip-pay-right { min-width: 200px; }

/* ============================================================
   分享赚钱 / 财务 / 提现记录：选项卡 + 筛选 + 表格收进一张卡
   （这几页用的是老模板 .all-box > .wrap，没有卡片外壳，
     选项卡和表格直接漂在浅蓝背景上，显得零散）
   ============================================================ */
.all-box > .wrap {
    background: #fff;
    border: 1px solid var(--sk-line);
    border-radius: 14px;
    box-shadow: var(--sk-shadow);
    padding: 0 18px 16px;
    overflow: hidden;
}

.all-box > .wrap .nav-tabs {
    margin: 0 -18px 14px;
    padding: 0 18px;
    border-bottom: 1px solid var(--sk-line);
    background: linear-gradient(180deg, #fbfdff, #ffffff);
}
.all-box > .wrap .nav-tabs > li { margin-bottom: -1px; }
.all-box > .wrap .nav-tabs > li > a {
    border-radius: 0; padding: 13px 18px; font-size: 13.5px;
    color: #5b6472; border: 0; border-bottom: 2px solid transparent;
    transition: color .18s var(--sk-ease), border-color .18s;
}
.all-box > .wrap .nav-tabs > li > a:hover { background: transparent; color: var(--sk-pri); }
.all-box > .wrap .nav-tabs > li.active > a,
.all-box > .wrap .nav-tabs > li.active > a:hover,
.all-box > .wrap .nav-tabs > li.active > a:focus {
    background: transparent; border: 0; border-bottom: 2px solid var(--sk-pri);
    color: var(--sk-pri); font-weight: 600;
}

/* 筛选条 */
.all-box > .wrap .well {
    background: #f8fbff; border: 1px solid #eaf2fc; border-radius: 10px;
    padding: 11px 14px; margin: 0 0 14px; box-shadow: none;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 13px; color: #5b6472;
}
.all-box > .wrap .well .form-control { height: 32px; border-radius: 7px; border-color: #dfe6f0; font-size: 13px; }
.all-box > .wrap .well .btn-primary {
    height: 32px; line-height: 1; padding: 0 16px; border: 0; border-radius: 7px;
    background: linear-gradient(135deg, #4b83ff, #3370ff 45%, #245bdb);
    box-shadow: 0 6px 16px -8px rgba(30, 159, 255, .8);
    transition: box-shadow .18s var(--sk-ease), filter .18s;
}
.all-box > .wrap .well .btn-primary:hover { filter: brightness(1.04); box-shadow: 0 10px 22px -10px rgba(51,112,255,.85); }
/* 「实名认证 | 申请提现」由纯文字改成轻按钮，和左侧表单同一行读起来才不散 */
.all-box > .wrap .well > a {
    display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
    border: 1px solid var(--sk-line); border-radius: 7px; background: #fff;
    color: #5b6472 !important; text-decoration: none !important; font-size: 13px;
    transition: color .16s, border-color .16s, background .16s;
}
.all-box > .wrap .well > a:hover { color: var(--sk-pri) !important; border-color: #bfe0ff; background: #f7fbff; }

/* 表格 */
.all-box > .wrap .table { margin-bottom: 0; }
.all-box > .wrap .table > thead > tr > th {
    background: #f7fafd; border-color: #eef3fa; color: #5b6472;
    font-weight: 600; font-size: 12.5px; white-space: nowrap;
}
.all-box > .wrap .table > tbody > tr > td { border-color: #f2f5fa; font-size: 12.5px; }
.all-box > .wrap .pag { padding: 12px 0 2px; text-align: center; }

@media (max-width: 720px) {
    .all-box > .wrap { padding: 0 12px 12px; border-radius: 12px; }
    .all-box > .wrap .nav-tabs { margin: 0 -12px 12px; padding: 0 8px; }
    .all-box > .wrap .nav-tabs > li > a { padding: 11px 10px; font-size: 12.5px; }
    .all-box > .wrap .table { min-width: 680px; }
    .all-box > .wrap .tab-content { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* 表单提交行：独占一行，按钮不跟输入框挤在一起 */
.sk-field-submit { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.sk-field-submit .sk-btn { min-width: 180px; }

/* ============================================================
   后台：与前台同一套底色与卡片质感
   （pear 默认是 #f5f5f5 纯灰底 + 2px 圆角卡片，和前台像两套系统）
   ============================================================ */
body.pear-container { background: #f4f8ff; }

.layui-card {
    border: 1px solid var(--sk-line);
    border-radius: 10px;
    box-shadow: var(--sk-shadow);
    /* 不要 overflow:hidden：会把表头列筛选、排序下拉裁掉一半 */
    overflow: visible;
}
.layui-card-header {
    background: linear-gradient(180deg, #fbfdff, #ffffff);
    border-bottom: 1px solid #eef3fa;
    color: var(--sk-text);
    font-weight: 600;
}
.layui-card-body { padding: 16px; }

/* 后台顶部标签页（部分页面用） */
.layui-tab-brief > .layui-tab-title .layui-this { color: var(--sk-pri); }
.layui-tab-brief > .layui-tab-title .layui-this:after { border-bottom-color: var(--sk-pri); }

/* 表格斑马纹与悬停统一成极淡蓝 */
.layui-table tbody tr:hover,
.layui-table-hover { background-color: #f7fbff !important; }
.layui-table thead tr { background-color: #f7fafd; }

@media (max-width: 768px) {
    .layui-card-body { padding: 12px; }
}

/* 后台内容区统一留白（列表页、仪表盘都是 body 直挂，原本贴边 10px） */
body.pear-container { padding: 12px 14px; }
@media (max-width: 768px) {
    body.pear-container { padding: 10px 10px 72px; }
}

/* 仪表盘 5 个待办卡等分一行（原来是 5×2 栏，右侧空一格） */
.sk-kpi > div { width: 20%; }
@media (max-width: 900px) { .sk-kpi > div { width: 50%; } }
@media (max-width: 560px) { .sk-kpi > div { width: 100%; } }

/* 空数据时表格不该横向撑开：插图会跑到 640px 宽的表里，
   手机只能看到左半边，像是被裁掉了 */
@media (max-width: 720px) {
    .table-box:has(#table > .emptyFile) { overflow-x: hidden !important; }
    .table-box:has(#table > .emptyFile) #table {
        display: block; width: 100% !important; min-width: 0 !important;
    }
    .table-box:has(#table > .emptyFile) .emptyFile,
    .table-box:has(#table > .emptyFile) .emptyFile2 {
        width: 100%; max-width: 100%;
    }
}

/* 手机端空表格：容器可能被撑到 640，插图会跑到可视区外 */
@media (max-width: 720px) {
    .table-box #table { width: 100% !important; min-width: 0 !important; display: block; }
    .table-box .emptyFile { width: 100% !important; }
    .table-box .emptyFile2 { width: 100% !important; min-height: 300px; }
    .table-box .emptyFile2 .img {
        width: 100% !important; left: 0 !important; margin-left: 0 !important;
        top: 46px !important; margin-top: 0 !important;
        background-position: center 0 !important;
        background-size: 240px auto;
    }
}

/* 空状态容器的父级宽度是 0（表格被插件重建），只能用视口宽度兜底，
   否则插图与提示文字会偏到右边并被裁掉 */
@media (max-width: 720px) {
    .table-box .emptyFile2 { width: 100vw !important; max-width: 100vw !important; }
    .table-box .emptyFile2 .img {
        width: 100vw !important;
        background-position: center 0 !important;
        background-size: 220px auto !important;
        text-align: center !important;
        font-size: 12.5px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* 结算面板：两列顶端对齐，标题在同一水平线上；
   垂直居中的话左边只有两行会沉到底部，和右边差一截 */
.sk-page .vip-pay { align-items: flex-start; }
.sk-page .vip-pay-left,
.sk-page .vip-pay-right {
    display: flex; flex-direction: column; justify-content: flex-start;
}
.sk-page .vip-pay-right { margin-left: auto; }

/* 窄屏结算面板：左右改成上下堆叠后，左侧的 flex-basis:320px 会变成「高度」，
   把面板撑出 300+ 的空档，必须复位 */
@media (max-width: 820px) {
    .sk-page .vip-pay { align-items: stretch; }
    .sk-page .vip-pay-left { flex: none; width: 100%; }
    .sk-page .vip-pay-right { width: 100%; margin-left: 0; }
    .sk-page .vip-pay-right .amount { margin-bottom: 10px; }
}

/* 宽屏时右侧悬浮条会压在表格卡片上，给它留出专属走廊。
   布局模板自带 <style> 在 skin.css 之后加载，同权重会盖掉，
   所以用 body 前缀提权 */
@media (min-width: 1200px) {
    body .sk-shell { padding-right: 76px; }
}
/* 1200 以下悬浮条本来就压在留白里，不要额外加内距，
   否则会盖掉手机端的 padding: 10px */

/* ============================================================
   全站直角
   ------------------------------------------------------------
   飞书式界面靠「1px 描边 + 留白 + 极浅投影」分层，不靠圆角。
   这里一次性去掉所有圆角，避免几十处 border-radius 逐个改漏。
   圆形元素（头像、指示灯、单选点、开关滑块）单独放行。
   ============================================================ */
.sk-app, .sk-app *, .sk-app *::before, .sk-app *::after,
.app, .app *, .app *::before, .app *::after,
body.pear-container, body.pear-container *,
.layui-layer, .layui-layer *,
body.sk-pop, body.sk-pop * {
    border-radius: 0 !important;
}

/* 例外：本来就是圆形的元素 */
.sk-pub-avatar img,
.sk-head-user .head-img,
.vip-avatar,
.pw-user img,
.layui-nav-img,
.sk-chat-dot,
.sk-uava,
.sk-uava-img,
.layui-form-radio i,
.layui-form-switch i,
.slider:before,
.sk-side-qr img,
.pc-avatar,
.msg .avatar,
.tk-msg .av,
.chat-main .avatar,
.b-user img,
.vip-ch .vc-check {
    border-radius: 50% !important;
}

/* ---------- layer 内的轻量表单（新建文件夹 / 重命名 / 分享设置） ---------- */
.sk-pop-form {
    width: 420px; max-width: 100%; box-sizing: border-box;
    padding: 20px 22px 18px; background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--sk-text);
}
.sk-pop-form .sk-field + .sk-field { margin-top: 14px; }
.sk-pop-form .sk-field > label { display: block; font-size: 12.5px; color: var(--sk-text-2); margin-bottom: 6px; }
.sk-pop-form .sk-field > label .req { color: var(--sk-danger); margin-right: 3px; }
.sk-pop-form .sk-input,
.sk-pop-form .sk-textarea {
    width: 100%; box-sizing: border-box; height: 36px; padding: 0 11px;
    border: 1px solid var(--sk-line); background: #fff; font-size: 13px; color: var(--sk-text);
    outline: none; font-family: inherit;
    transition: border-color .16s, box-shadow .16s;
}
.sk-pop-form .sk-textarea { height: auto; min-height: 82px; padding: 8px 11px; line-height: 1.7; resize: vertical; }
.sk-pop-form .sk-input:focus,
.sk-pop-form .sk-textarea:focus { border-color: var(--sk-pri); box-shadow: 0 0 0 2px rgba(51, 112, 255, .12); }
.sk-pop-form .sk-pop-actions {
    margin-top: 20px; display: flex; justify-content: flex-end; gap: 10px;
}
.sk-pop-form .sk-pop-actions .sk-btn { min-width: 76px; height: 34px; font-size: 13px; }

/* 列表/网格的「更多」按钮：加大加清晰 */
.tb-more {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; color: #646a73; cursor: pointer;
    transition: background .16s, color .16s;
}
.tb-more:hover { background: #eff4ff; color: var(--sk-pri); }
.tb-more svg { width: 18px; height: 18px; }

/* ============================================================
   文件操作菜单 & 「更多」按钮（列表 / 网格共用）
   ============================================================ */
.sk-item-menu {
    min-width: 172px; padding: 6px 0; background: #fff;
    border: 1px solid #e5e6eb;
    box-shadow: 0 10px 28px -14px rgba(31, 35, 41, .28);
}
.sk-item-menu-btn {
    height: 36px; line-height: 36px; padding: 0 16px;
    font-size: 13px; color: var(--sk-text); cursor: pointer; white-space: nowrap;
    transition: background .14s, color .14s;
}
.sk-item-menu-btn:hover { background: var(--sk-pri-soft); color: var(--sk-pri); }
.sk-item-menu-btn.danger { color: var(--sk-danger); }
.sk-item-menu-btn.danger:hover { background: #fef1f1; color: var(--sk-danger); }
.sk-menu-sep { height: 1px; background: var(--sk-line-light); margin: 6px 0; }

/* 列表行的更多按钮：常显、可点区域 28×28 */
.gengduo {
    display: flex !important; align-items: center; justify-content: center;
    float: right; width: 28px; height: 28px; margin: -4px 0 0 4px;
    cursor: pointer; color: var(--sk-text-2);
    transition: background .14s, color .14s;
}
.gengduo:hover { background: var(--sk-pri-soft); color: var(--sk-pri); }
.gengduo .icon-more,
.gengduo .icon { color: inherit !important; font-size: 20px; line-height: 1; }

/* 网格卡片的更多按钮：与列表同一套观感 */
.fg-card .fg-more {
    /* 页面内的 <style> 在 skin.css 之后加载，同权重会把 display 改回 none */
    display: flex !important; position: absolute; top: 6px; right: 6px;
    width: 28px; height: 28px; align-items: center; justify-content: center;
    font-size: 16px; line-height: 1; letter-spacing: 1px;
    color: var(--sk-text-2); background: #fff; border: 1px solid transparent;
    cursor: pointer; transition: background .14s, color .14s, border-color .14s;
}
.fg-card .fg-more:hover { background: var(--sk-pri-soft); color: var(--sk-pri); border-color: #d6e2ff; }

/* 弹层不要缩放动画：
   layer 的入场动画靠 transform: scale(.5) → scale(1)，
   一旦动画没跑完（被其它样式打断）弹层就会停在 50% 大小，
   菜单会缩成一小块。直接锁死 transform 最稳。 */
.layui-layer {
    transform: none !important;
}

/* ============================================================
   个人中心内容区：字号分三级，标题/正文/辅助拉开层次
   ============================================================ */
.sk-content { font-size: 13.5px; color: var(--sk-text); }
.sk-page { font-size: 13.5px; }
.sk-page-hd h2 { font-size: 17px; }
.sk-page-hd .sub { font-size: 13px; }
.sk-page .sk-hint,
.sk-page .sk-note { font-size: 12px; color: var(--sk-text-3); }

/* 表格里的字号：表头 12.5、正文 13、次要信息 12 */
.all-box table > tbody > tr > td { font-size: 13px !important; }
.all-box table > thead > tr > th { font-size: 12.5px !important; }
.sk-content .table > tbody > tr > td .muted,
.sk-content .table .text-muted { font-size: 12px; color: var(--sk-text-3); }

/* ============================================================
   会员套餐卡：用左侧色条 + 描边区分档位，层级更清楚
   ============================================================ */
.vip-plan { border: 1px solid var(--sk-line); border-left: 3px solid #e5e6eb; background: #fff; }
.vip-plan:nth-child(1) { border-left-color: #3370ff; }
.vip-plan:nth-child(2) { border-left-color: #34c724; }
.vip-plan:nth-child(3) { border-left-color: #ff8800; }
.vip-plan:nth-child(4) { border-left-color: #8f5cf6; }
.vip-plan:hover { border-color: #c9d3e0; border-left-color: inherit; box-shadow: var(--sk-shadow-hover); transform: none; }
.vip-plan.on {
    border-color: var(--sk-pri); background: #f7faff;
    box-shadow: 0 0 0 1px var(--sk-pri) inset;
}
.vip-plan .vp-name { font-size: 15px; }
.vip-plan .vp-price b { font-size: 28px; }
.vip-plan .vp-desc { font-size: 12.5px; color: var(--sk-text-3); }

/* 分销推广选项卡（替代 bootstrap nav-tabs，横向可滑） */
.sk-tabs {
    display: flex; align-items: center; gap: 2px;
    background: #fff; border: 1px solid var(--sk-line);
    padding: 0 10px; margin-bottom: 12px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.sk-tabs::-webkit-scrollbar { display: none; }
.sk-tabs a {
    flex: none; height: 44px; line-height: 44px; padding: 0 16px;
    font-size: 13.5px; color: var(--sk-text-2); text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .16s, border-color .16s, background .16s;
}
.sk-tabs a:hover { color: var(--sk-pri); background: #fafbfc; }
.sk-tabs a.on { color: var(--sk-pri); border-bottom-color: var(--sk-pri); font-weight: 600; }
@media (max-width: 720px) {
    /* 六个选项卡在手机上换两行，比藏一半在横向滚动里更好找 */
    .sk-tabs {
        flex-wrap: wrap; overflow-x: visible;
        padding: 0 6px;
    }
    .sk-tabs a {
        flex: 1 1 30%; min-width: 88px; text-align: center;
        height: 40px; line-height: 40px; padding: 0 6px; font-size: 12.5px;
    }

    /* 数据表横向滚动时给一条可见的细滚动条，提示还能往右拖 */
    .all-box .tab-content::-webkit-scrollbar,
    .table-box::-webkit-scrollbar { height: 6px; }
    .all-box .tab-content::-webkit-scrollbar-thumb,
    .table-box::-webkit-scrollbar-thumb { background: #d7dbe0; }
    .all-box .tab-content::-webkit-scrollbar-track,
    .table-box::-webkit-scrollbar-track { background: transparent; }
}

/* 首页文件窗口的「红黄绿」三个圆点，保留圆形 */
.hm-window-bar i { border-radius: 50% !important; }

/* 弹窗内的登录页：白底、顶端对齐，不要垂直居中留出大片灰底 */
body.in-layer.sk-pub-body { background: #fff !important; }
.in-layer .sk-pub-main { justify-content: flex-start; }
.in-layer .sk-pub-main > .sk-auth-wrap { margin: 0 auto !important; }
.in-layer .lg-head { padding-top: 4px; }

/* ============================================================
   官网首页（v2）：主视觉 / 数据带 / 功能矩阵 / 场景 / 价格 / FAQ / CTA
   ============================================================ */
.hp { width: 100%; }

/* ---------- 主视觉 ---------- */
.hp-hero {
    display: flex; align-items: center; gap: 48px;
    padding: 52px 44px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
    border: 1px solid var(--sk-line);
}
.hp-hero-text { flex: 1 1 50%; min-width: 0; }
.hp-pill {
    display: inline-block; padding: 4px 12px; margin-bottom: 18px;
    font-size: 12.5px; color: var(--sk-pri); background: var(--sk-pri-soft);
}
.hp-hero-text h1 {
    font-size: 42px; line-height: 1.28; margin: 0 0 18px;
    font-weight: 700; color: #0f172a; letter-spacing: -.5px;
}
.hp-hero-text p {
    margin: 0 0 26px; font-size: 15px; line-height: 1.9;
    color: var(--sk-text-2); max-width: 480px;
}
.hp-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hp-trust {
    display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px;
    font-size: 12.5px; color: var(--sk-text-3);
}
.hp-trust span::before { content: "✓"; color: var(--sk-ok); margin-right: 6px; font-weight: 700; }

/* 右侧文件窗口示意 */
.hp-visual { flex: 0 1 44%; min-width: 300px; position: relative; }
.hp-window {
    background: #fff; border: 1px solid #e5e6eb;
    box-shadow: 0 24px 60px -40px rgba(15, 23, 42, .45);
}
.hp-window-bar {
    display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
    background: #fafbfc; border-bottom: 1px solid #eff0f1;
    font-size: 12px; color: var(--sk-text-3);
}
.hp-window-bar i { width: 8px; height: 8px; background: #dee0e3; }
.hp-window-bar i:nth-child(1) { background: #ffb3b0; }
.hp-window-bar i:nth-child(2) { background: #ffd591; }
.hp-window-bar i:nth-child(3) { background: #b7eb8f; }
.hp-window-bar span { margin-left: 8px; }
.hp-window-body { padding: 10px 12px 14px; }
.hp-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 8px; border-bottom: 1px solid #f7f8fa;
}
.hp-row:last-child { border-bottom: 0; }
.hp-ico {
    width: 34px; height: 34px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; letter-spacing: .5px;
}
.hp-ico.blue { background: #eff4ff; color: #3370ff; }
.hp-ico.purple { background: #f3efff; color: #7c4dff; }
.hp-ico.green { background: #eefbe9; color: #2fa320; }
.hp-ico.orange { background: #fff5e6; color: #d97700; }
.hp-row .nm { flex: 1; min-width: 0; font-size: 13px; color: var(--sk-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-row .sz { font-size: 11.5px; color: var(--sk-text-3); flex: none; }
.hp-badge {
    position: absolute; right: 16px; bottom: -14px;
    background: #fff; border: 1px solid #e5e6eb; padding: 8px 14px;
    font-size: 12px; color: var(--sk-pri);
    box-shadow: 0 12px 28px -18px rgba(15, 23, 42, .4);
}

/* ---------- 数据带 ---------- */
.hp-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px; background: #fff; border: 1px solid var(--sk-line);
}
.hp-stats .it { padding: 22px 24px; border-right: 1px solid var(--sk-line-light); }
.hp-stats .it:last-child { border-right: 0; }
.hp-stats .it b { display: block; font-size: 16px; font-weight: 650; color: var(--sk-text); margin-bottom: 6px; }
.hp-stats .it span { font-size: 12.5px; color: var(--sk-text-3); line-height: 1.7; }

/* ---------- 区块标题 ---------- */
.hp-section { margin-top: 52px; }
.hp-sec-hd { text-align: center; margin-bottom: 26px; }
.hp-sec-hd h2 { font-size: 28px; font-weight: 700; color: #0f172a; margin: 0 0 8px; letter-spacing: -.3px; }
.hp-sec-hd p { margin: 0; font-size: 14px; color: var(--sk-text-3); }

/* ---------- 功能矩阵 ---------- */
.hp-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hp-feat {
    background: #fff; border: 1px solid var(--sk-line); padding: 24px 22px;
    transition: border-color .2s, box-shadow .2s, transform .2s var(--sk-ease);
}
.hp-feat:hover { border-color: #c9d3e0; box-shadow: var(--sk-shadow-hover); transform: translateY(-3px); }
.hp-feat-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; background: var(--sk-pri-soft); color: var(--sk-pri);
    margin-bottom: 14px;
}
.hp-feat-ico svg { width: 20px; height: 20px; }
.hp-feat h3 { font-size: 15.5px; font-weight: 650; margin: 0 0 8px; color: var(--sk-text); }
.hp-feat p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--sk-text-3); }

/* ---------- 场景 ---------- */
.hp-scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hp-scene { background: #fff; border: 1px solid var(--sk-line); padding: 24px 22px; }
.hp-scene .num { font-size: 24px; font-weight: 700; color: #dbe4f0; letter-spacing: -1px; }
.hp-scene h3 { font-size: 15.5px; font-weight: 650; margin: 10px 0 8px; color: var(--sk-text); }
.hp-scene p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--sk-text-3); }

/* ---------- 价格 ---------- */
.hp-price { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hp-plan {
    position: relative; background: #fff; border: 1px solid var(--sk-line);
    padding: 26px 24px; display: flex; flex-direction: column;
}
.hp-plan.hot { border-color: var(--sk-pri); box-shadow: 0 0 0 1px var(--sk-pri) inset; }
.hp-plan .flag {
    position: absolute; top: 0; right: 0; padding: 3px 10px;
    font-size: 11.5px; color: #fff; background: var(--sk-pri);
}
.hp-plan h3 { font-size: 15px; font-weight: 600; margin: 0 0 12px; color: var(--sk-text-2); }
.hp-plan .price { font-size: 34px; font-weight: 700; color: #0f172a; line-height: 1.1; letter-spacing: -.5px; }
.hp-plan .price i { font-style: normal; font-size: 16px; font-weight: 600; margin-right: 2px; vertical-align: 6px; }
.hp-plan .price small { font-size: 13px; font-weight: 400; color: var(--sk-text-3); margin-left: 3px; }
.hp-plan .desc { margin: 10px 0 16px; font-size: 12.5px; color: var(--sk-text-3); line-height: 1.7; min-height: 40px; }
.hp-plan ul { list-style: none; margin: 0 0 20px; padding: 0; }
.hp-plan li { font-size: 13px; color: var(--sk-text-2); padding: 6px 0; }
.hp-plan li::before { content: "✓"; color: var(--sk-ok); font-weight: 700; margin-right: 8px; }
.hp-plan .sk-btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.hp-faq-list { max-width: 860px; margin: 0 auto; border: 1px solid var(--sk-line); background: #fff; }
.hp-faq-list details { border-bottom: 1px solid var(--sk-line-light); }
.hp-faq-list details:last-child { border-bottom: 0; }
.hp-faq-list summary {
    padding: 16px 20px; font-size: 14px; font-weight: 500; color: var(--sk-text);
    cursor: pointer; list-style: none; position: relative;
}
.hp-faq-list summary::-webkit-details-marker { display: none; }
.hp-faq-list summary::after {
    content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    color: var(--sk-text-3); font-size: 18px; line-height: 1;
}
.hp-faq-list details[open] summary::after { content: "−"; color: var(--sk-pri); }
.hp-faq-list details[open] summary { color: var(--sk-pri); }
.hp-faq-list p { margin: 0; padding: 0 20px 18px; font-size: 13px; line-height: 1.9; color: var(--sk-text-2); }

/* ---------- 底部 CTA ---------- */
.hp-cta {
    margin-top: 52px; padding: 36px 40px;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
    background: linear-gradient(110deg, #245bdb 0%, #3370ff 60%, #4b83ff 100%);
    color: #fff;
}
.hp-cta h2 { font-size: 22px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.hp-cta p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.hp-cta-btn {
    margin-left: auto; background: #fff !important; color: var(--sk-pri) !important;
    border-color: #fff !important; font-weight: 600;
}
.hp-cta-btn:hover { background: #f2f6ff !important; color: var(--sk-pri-deep) !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .hp-feats, .hp-scene-grid, .hp-price { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-hero-text h1 { font-size: 34px; }
}
@media (max-width: 900px) {
    .hp-hero { flex-direction: column; align-items: stretch; gap: 30px; padding: 32px 22px; }
    .hp-hero-text h1 { font-size: 28px; }
    .hp-visual { min-width: 0; flex: none; }
    .hp-badge { position: static; display: inline-block; margin: 12px 0 0; }
    .hp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-stats .it { border-bottom: 1px solid var(--sk-line-light); }
    .hp-section { margin-top: 36px; }
    .hp-sec-hd h2 { font-size: 22px; }
    .hp-cta { padding: 26px 22px; }
    .hp-cta-btn { margin-left: 0; width: 100%; }
}
@media (max-width: 640px) {
    .hp-feats, .hp-scene-grid, .hp-price { grid-template-columns: 1fr; }
    .hp-hero-text h1 { font-size: 24px; }
    .hp-actions .sk-btn { flex: 1; }
}

/* ==================================================================
   后台弹窗统一版式（第17轮）
   —— iframe 表单页：.sk-af > .sk-sec 分组卡片，内部两列网格
   —— type:1 弹窗内容：.sk-dlg 键值网格 / .sk-dlg-form 轻表单
   ================================================================== */

/* ---------- 1. iframe 表单页 ---------- */
.sk-af { padding: 14px 14px 78px; background: #f5f6f7; min-height: 100%; box-sizing: border-box; }
.sk-af .sk-sec { background: #fff; border: 1px solid #dee0e3; margin-bottom: 10px; }
.sk-af .sk-sec-hd {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; background: #fafbfc; border-bottom: 1px solid #eef0f3;
}
.sk-af .sk-sec-hd::before { content: ''; width: 3px; height: 13px; background: #3370ff; flex: none; }
.sk-af .sk-sec-hd h4 { margin: 0; font-size: 13px; font-weight: 600; color: #1f2329; letter-spacing: .01em; }
.sk-af .sk-sec-hd .sub { font-size: 11.5px; color: #8f959e; }
.sk-af .sk-sec-bd {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px; padding: 15px 16px 1px;
}
.sk-af .sk-sec-bd.sk-one { grid-template-columns: minmax(0, 1fr); }
.sk-af .sk-full { grid-column: 1 / -1; }

/* layui 结构改为「标签在上、控件占满」 */
.sk-af .layui-form-item { display: flex; flex-direction: column; margin-bottom: 14px; clear: none; }
.sk-af .layui-form-label {
    width: auto; float: none; text-align: left; padding: 0 0 6px;
    font-size: 12.5px; color: #646a73; line-height: 1.5;
}
.sk-af .layui-form-label .req { color: #d83931; margin-right: 2px; }
.sk-af .layui-input-block {
    margin-left: 0 !important; min-height: 0;
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.sk-af .layui-input-inline { flex: 1 1 110px; width: auto; min-width: 0; margin-right: 0 !important; }
.sk-af .layui-input-block > .layui-input,
.sk-af .layui-input-block > textarea,
.sk-af .layui-input-block > .layui-form-select { flex: 1 1 100%; width: 100%; }
.sk-af .layui-input-block > .layui-input { box-sizing: border-box; }
.sk-af .layui-form-mid { float: none; padding: 0 !important; margin: 0; display: inline-block; }
.sk-af .layui-form-mid.layui-word-aux {
    flex: 1 1 100%; font-size: 11.5px; color: #8f959e; line-height: 1.65;
}
.sk-af .sk-ro { font-size: 13px; color: #1f2329; line-height: 32px; word-break: break-all; }
.sk-af .sk-ro.dim { color: #8f959e; }
.sk-af .sk-ro.money { color: #1f2329; font-weight: 600; font-size: 15px; }
.sk-af .layui-input, .sk-af .layui-textarea { border-color: #dee0e3; }
.sk-af .layui-input:focus, .sk-af .layui-textarea:focus { border-color: #3370ff; box-shadow: 0 0 0 2px rgba(51,112,255,.1); }
.sk-af .layui-textarea { min-height: 84px; line-height: 1.7; resize: vertical; }
.sk-af .sk-inline-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; }

/* 底部固定保存条 */
.sk-af-foot {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; align-items: center; gap: 8px; justify-content: flex-end;
    padding: 10px 16px; background: #fff; border-top: 1px solid #dee0e3;
    box-shadow: 0 -4px 14px -10px rgba(31,35,41,.25);
}
.sk-af-foot .left { margin-right: auto; font-size: 11.5px; color: #8f959e; }
.sk-af-foot .layui-btn { height: 32px; line-height: 32px; padding: 0 16px; font-size: 13px; }

@media (max-width: 720px) {
    .sk-af { padding: 10px 10px 72px; }
    .sk-af .sk-sec-bd { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 13px 13px 1px; }
    .sk-af .layui-form-label { font-size: 12px; }
}

/* ---------- 2. type:1 弹窗：资料详情 ---------- */
.sk-dlg { padding: 16px 18px; font-size: 13px; }
.sk-dlg .sk-dlg-sec + .sk-dlg-sec { margin-top: 14px; }
.sk-dlg .sk-dlg-title {
    display: flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 600; color: #646a73; margin-bottom: 8px;
}
.sk-dlg .sk-dlg-title::before { content: ''; width: 3px; height: 12px; background: #3370ff; }
.sk-dlg-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px; background: #eef0f3; border: 1px solid #eef0f3;
}
.sk-dlg-cell { background: #fff; padding: 9px 12px; min-width: 0; }
.sk-dlg-cell.full { grid-column: 1 / -1; }
.sk-dlg-cell .k { font-size: 11.5px; color: #8f959e; margin-bottom: 3px; line-height: 1.4; }
.sk-dlg-cell .v { font-size: 13px; color: #1f2329; line-height: 1.55; word-break: break-all; }
.sk-dlg-cell .v.money { color: #d83931; font-weight: 600; }
.sk-dlg-cell .v a { color: #3370ff; }
.sk-dlg-note {
    margin-top: 12px; padding: 9px 12px; background: #f5f6f7;
    border-left: 3px solid #dee0e3; font-size: 12px; color: #646a73; line-height: 1.7;
}

/* type:1 轻表单（提现审核等） */
.sk-dlg-form { padding: 16px 18px 0; font-size: 13px; }
.sk-dlg-form .sk-fi { margin-bottom: 14px; }
.sk-dlg-form .sk-fi > label { display: block; font-size: 12.5px; color: #646a73; margin-bottom: 6px; }
.sk-dlg-form .sk-fi > label .req { color: #d83931; margin-right: 2px; }
.sk-dlg-form .sk-fi .val { font-size: 13px; color: #1f2329; line-height: 1.6; }
.sk-dlg-form .sk-fi .val.money { color: #d83931; font-size: 15px; font-weight: 600; }
.sk-dlg-form input[type=text], .sk-dlg-form textarea {
    width: 100%; box-sizing: border-box; border: 1px solid #dee0e3; padding: 7px 10px;
    font-size: 13px; font-family: inherit; color: #1f2329; outline: none; background: #fff;
}
.sk-dlg-form input[type=text]:focus, .sk-dlg-form textarea:focus { border-color: #3370ff; box-shadow: 0 0 0 2px rgba(51,112,255,.1); }
.sk-dlg-form textarea { height: 84px; resize: vertical; line-height: 1.7; }
.sk-dlg-form .tip { font-size: 11.5px; color: #8f959e; margin-top: 5px; line-height: 1.6; }
.sk-dlg-foot {
    display: flex; justify-content: flex-end; gap: 8px;
    margin: 4px -18px 0; padding: 11px 18px; border-top: 1px solid #eef0f3; background: #fafbfc;
}
.sk-dlg-foot .pear-btn, .sk-dlg-foot .layui-btn { height: 32px; line-height: 32px; }

.sk-af .sk-ck { display: inline-block; margin: 0 6px 4px 0; }
.sk-af .sk-ck + .sk-ck { margin-left: 4px; }

/* 弹窗表单里的块级控件（富文本、上传区）占满整行 */
.sk-af .layui-input-block > #be-root,
.sk-af .layui-input-block > .re-wrap { flex: 1 1 100%; min-width: 0; width: 100%; }

/* 后台弹窗表单：窄屏下仍保持「标签在上、控件占满」 */
.sk-af .layui-form-item { align-items: stretch; }
@media (max-width: 768px) {
    .sk-af .layui-form-item:has(> .layui-form-label) {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 0 !important;
    }
    .sk-af .layui-form-item:has(> .layui-form-label) > .layui-form-label {
        width: auto !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 0 0 6px !important;
        font-size: 12.5px !important;
        line-height: 1.5 !important;
        text-align: left !important;
    }
    .sk-af .layui-form-item:has(> .layui-form-label) > .layui-input-block {
        flex: 1 1 auto !important;
        width: 100% !important;
        margin-left: 0 !important;
    }
    .sk-af .layui-input-block > .layui-input,
    .sk-af .layui-input-block > textarea { flex: 1 1 100%; width: 100%; }
}

/* 首屏两颗按钮：窄屏并排不换行，字数多的那颗略缩字号 */
.hp-actions .sk-btn { white-space: nowrap; }
@media (max-width: 640px) {
    .hp-actions { gap: 8px; }
    .hp-actions .sk-btn { font-size: 13.5px; padding: 0 10px; }
}

/* 分销推广的统计表：手机上只保留「所属文件 / 收益 / 操作」，不需要横向拖 */
@media (max-width: 720px) {
    .all-box .promo-tbl { min-width: 0 !important; width: 100%; font-size: 12.5px; table-layout: fixed; }
    .promo-tbl th, .promo-tbl td { padding: 9px 8px; }
    .promo-tbl th:nth-child(1), .promo-tbl td:nth-child(1),
    .promo-tbl th:nth-child(3), .promo-tbl td:nth-child(3),
    .promo-tbl th:nth-child(4), .promo-tbl td:nth-child(4),
    .promo-tbl th:nth-child(5), .promo-tbl td:nth-child(5),
    .promo-tbl th:nth-child(6), .promo-tbl td:nth-child(6),
    .promo-tbl th:nth-child(7), .promo-tbl td:nth-child(7),
    .promo-tbl th:nth-child(8), .promo-tbl td:nth-child(8),
    .promo-tbl th:nth-child(10), .promo-tbl td:nth-child(10) { display: none; }
    .promo-tbl th:nth-child(2) { width: 62%; }
    .promo-tbl th:nth-child(9) { width: 18%; }
    .promo-tbl th:nth-child(11) { width: 20%; }
    .promo-tbl td:nth-child(2) { white-space: normal; word-break: break-all; line-height: 1.5; }
}

/* ==================================================================
   后台窄屏通用修正（≤768px）
   后台是 Layui 桌面组件，手机上主要修三处：搜索栏挤压、工具栏重叠、表格与页码溢出
   ================================================================== */
@media (max-width: 768px) {
    /* 1. 列表页搜索栏：标签 + 控件各占一行内的整块，不再横向挤出屏幕 */
    .layui-card .layui-form-item.layui-inline {
        display: flex; flex-wrap: wrap; align-items: center;
        width: 100%; margin: 0 0 8px; float: none;
    }
    .layui-card .layui-form-item.layui-inline > .layui-form-label {
        width: 74px !important; flex: none;
        padding: 8px 0 !important; text-align: left;
        font-size: 12px !important; line-height: 22px;
    }
    .layui-card .layui-form-item.layui-inline > .layui-input-inline {
        flex: 1 1 120px; width: auto !important; min-width: 0; margin: 0 !important;
    }
    .layui-card .layui-form-item.layui-inline .layui-input,
    .layui-card .layui-form-item.layui-inline .layui-form-select,
    .layui-card .layui-form-item.layui-inline select {
        width: 100% !important; box-sizing: border-box;
    }

    /* 2. 表格工具栏：按钮排一行，右上角图标在手机上隐藏 */
    .layui-table-tool {
        display: flex; flex-wrap: wrap; align-items: center;
        gap: 6px; height: auto; padding: 8px 10px;
    }
    .layui-table-tool-temp {
        flex: 1 1 100%; padding-right: 0;
        display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    }
    .layui-table-tool-temp { padding-right: 0 !important; }
    .layui-table-tool-temp .pear-btn {
        margin: 0 !important; padding: 0 10px !important; font-size: 12px;
    }
    .layui-table-tool-self { display: none !important; }
    .layui-table-tool .pear-btn,
    .layui-table-tool .layui-btn {
        height: 30px; line-height: 30px; padding: 0 10px;
        font-size: 12px; margin: 0 4px 0 0;
    }

    /* 3. 表格与分页：可横向拖动，页码不再顶出卡片 */
    .layui-table-body { -webkit-overflow-scrolling: touch; }
    .layui-table-body::-webkit-scrollbar { height: 6px; }
    .layui-table-body::-webkit-scrollbar-thumb { background: #d7dbe0; }
    .layui-table-page { overflow-x: auto; }
    /* 分页条：手机上隐去「每页条数 / 跳页」，只留页码和总数，避免顶出卡片 */
    .layui-table-page .layui-laypage-limits,
    .layui-table-page .layui-laypage-skip { display: none !important; }
    .layui-laypage { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
    .layui-laypage > * { margin: 0 !important; }
    .layui-table-page .layui-laypage { margin: 0; white-space: nowrap; }

    /* 卡片内边距略收，给表格多留 8px */
    .layui-card-body { padding: 12px 12px; }
}

/* 数据大屏：手机上图表可横向滑动，标签不再把面板顶宽 */
@media (max-width: 560px) {
    .s-chart { overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
    .s-col { min-width: 20px; }
    .s-col .lb { font-size: 9px; }
}

/* 手机上表头必须裁在自己容器里，才能和内容一起平移 */
@media (max-width: 768px) {
    .layui-table-header { overflow: hidden !important; }
}

/* 窄屏：分组标题的副说明换到下一行，标题本身不折字 */
@media (max-width: 768px) {
    .sk-af .sk-sec-hd { flex-wrap: wrap; align-items: flex-start; }
    .sk-af .sk-sec-hd h4 { white-space: nowrap; }
    .sk-af .sk-sec-hd .sub { flex: 1 1 100%; padding-left: 11px; }
}

/* ==================================================================
   后台数据表：手机端卡片式重排（配合 admin-skin.js 打的 data-label）
   每行 = 一张卡，左侧列名、右侧值；操作按钮单独一行靠右
   ================================================================== */
@media (max-width: 768px) {
    .layui-table-view.sk-cards { border: 0 !important; background: transparent !important; overflow: visible !important; }

    /* 表头与固定列副本在卡片模式下没有意义（主表已包含全部列） */
    .layui-table-view.sk-cards .layui-table-header,
    .layui-table-view.sk-cards .layui-table-fixed { display: none !important; }

    .layui-table-view.sk-cards .layui-table-box,
    .layui-table-view.sk-cards .layui-table-body,
    .layui-table-view.sk-cards .layui-table-main {
        width: auto !important; height: auto !important; max-height: none !important;
        max-height: none !important; min-height: 0 !important;
        overflow: visible !important;
    }

    .layui-table-view.sk-cards table { width: 100% !important; min-width: 0 !important; table-layout: fixed !important; }
    .layui-table-view.sk-cards tbody td { width: auto !important; }
    .layui-table-view.sk-cards colgroup { display: none !important; }

    .layui-table-view.sk-cards tbody tr {
        position: relative;
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        background: #fff;
        border: 1px solid #dee0e3;
        margin: 0 0 10px;
        padding: 2px 12px;
    }
    .layui-table-view.sk-cards tbody tr:hover { background: #fff; }

    .layui-table-view.sk-cards tbody td {
        display: flex; align-items: flex-start; gap: 12px;
        height: auto !important; min-height: 0 !important;
        padding: 7px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid #f2f3f5 !important;
        white-space: normal !important;
        text-align: left !important;
        line-height: 1.6 !important;
        background: transparent !important;
    }
    .layui-table-view.sk-cards tbody tr td:last-child { border-bottom: 0 !important; }

    /* 列名 */
    .layui-table-view.sk-cards tbody td::before {
        content: attr(data-label);
        flex: 0 0 82px;
        color: #8f959e;
        font-size: 12px;
        line-height: 22px;
    }
    .layui-table-view.sk-cards tbody td:not([data-label])::before { display: none; }

    /* 值 */
    .layui-table-view.sk-cards tbody td > .layui-table-cell {
        flex: 1 1 auto; min-width: 0; width: 100% !important;
        display: block !important;
        overflow-wrap: anywhere;
        height: auto !important; line-height: 1.6 !important;
        padding: 0 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        word-break: break-all;
    }
    .layui-table-view.sk-cards tbody td > .layui-table-cell * { white-space: normal; }

    /* 复选框：浮到卡片右上角，不再单独占一行 */
    .layui-table-view.sk-cards tbody td.sk-card-check {
        position: absolute; right: 10px; top: 6px; z-index: 2;
        width: auto !important;
        justify-content: flex-end;
        padding: 0 !important;
        border-bottom: 0 !important;
    }
    .layui-table-view.sk-cards tbody td.sk-card-check::before { display: none; }

    /* 没有表头的列（头像、纯图标列）在卡片里没有意义，直接隐藏 */
    .layui-table-view.sk-cards tbody td:not([data-label]):not(.sk-card-check):not(.sk-card-ops) {
        display: none !important;
    }

    /* 开关类控件不要在卡片里撑出边界 */
    .layui-table-view.sk-cards .layui-form-switch { min-width: 0; margin: 0; }

    /* 操作列：按钮靠右、不占列名位 */
    .layui-table-view.sk-cards tbody td.sk-card-ops {
        justify-content: flex-end;
        align-items: center;
        padding-top: 9px !important;
        border-bottom: 0 !important;
    }
    .layui-table-view.sk-cards tbody td.sk-card-ops::before { display: none; }
    .layui-table-view.sk-cards tbody td.sk-card-ops > .layui-table-cell { flex: 0 0 auto; }
    .layui-table-view.sk-cards tbody td.sk-card-ops .pear-btn,
    .layui-table-view.sk-cards tbody td.sk-card-ops .layui-btn { margin: 0 0 0 6px; }

    /* 空数据占位 */
    .layui-table-view.sk-cards .layui-none {
        border: 1px solid #dee0e3; background: #fff; margin: 0;
    }
}

/* ================= 列表页「按列筛选」 ================= */
.sk-filter-btn { margin: 0 6px 0 0; }
.sk-filter-btn.on { background: #eff4ff !important; border-color: #c9dcff !important; color: #3370ff !important; }

.sf-wrap { padding-bottom: 0; }
.sf-wrap .sf-row { display: flex; gap: 10px; }
.sf-wrap .sf-col { flex: 1 1 auto; min-width: 0; }
.sf-wrap .sf-col.sf-op { flex: 0 0 118px; }
.sf-wrap label { display: block; font-size: 12.5px; color: #646a73; margin-bottom: 6px; }
.sf-wrap select,
.sf-wrap input {
    width: 100%; height: 34px; box-sizing: border-box;
    border: 1px solid #dee0e3; background: #fff; color: #1f2329;
    padding: 0 10px; font-size: 13px; font-family: inherit; outline: none;
}
.sf-wrap select:focus, .sf-wrap input:focus { border-color: #3370ff; box-shadow: 0 0 0 2px rgba(51,112,255,.1); }
.sf-wrap .sf-fi { margin-top: 12px; }
.sf-active { margin-top: 14px; padding-top: 10px; border-top: 1px solid #eef0f3; }
.sf-t { font-size: 12px; color: #8f959e; margin-bottom: 8px; }
.sf-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: #eff4ff; color: #3370ff; font-size: 12px;
    padding: 4px 8px; margin: 0 6px 6px 0;
}
.sf-chip .sf-x { cursor: pointer; font-style: normal; font-size: 14px; line-height: 1; }
.sf-chip .sf-x:hover { color: #d83931; }
.sf-empty { font-size: 12px; color: #8f959e; }

@media (max-width: 768px) {
    .sf-wrap .sf-row { gap: 8px; }
    .sf-wrap .sf-col.sf-op { flex: 0 0 96px; }
}

/* ==================================================================
   弹窗按钮统一标准（第 22 轮）
   —— 主按钮：蓝底白字 → 悬停深蓝 → 按下更深，禁用灰底灰字
   —— 次按钮：白底描边深色字 → 悬停浅蓝底蓝字
   —— 危险/成功/警告同规则，只换色相
   覆盖范围：layer 弹层、iframe 表单底栏、表格工具栏（同一套 pear/layui 按钮）
   ================================================================== */

/* ---------- 次按钮（默认态） ---------- */
.pear-btn,
.layui-btn-primary,
.sk-dlg-foot .pear-btn,
.sk-af-foot .layui-btn-primary {
    background: #fff !important;
    background-image: none !important;
    border: 1px solid #dee0e3 !important;
    color: #1f2329 !important;
    opacity: 1 !important;
    box-shadow: none !important;
    filter: none !important;
}
.pear-btn:hover,
.layui-btn-primary:hover,
.sk-dlg-foot .pear-btn:hover,
.sk-af-foot .layui-btn-primary:hover {
    background: #f7faff !important;
    border-color: #c9dcff !important;
    color: #3370ff !important;
    opacity: 1 !important;
    box-shadow: none !important;
    filter: none !important;
}
.pear-btn:active,
.layui-btn-primary:active {
    background: #eff4ff !important;
    transform: none !important;
}

/* ---------- 主按钮 ---------- */
.pear-btn-primary,
.layui-btn-normal,
.layui-layer-btn .layui-layer-btn0,
.sk-dlg-foot .pear-btn-primary,
.sk-af-foot .layui-btn-normal {
    background: #3370ff !important;
    background-image: none !important;
    border: 1px solid #3370ff !important;
    color: #fff !important;
    opacity: 1 !important;
    box-shadow: none !important;
    filter: none !important;
}
.pear-btn-primary:hover,
.layui-btn-normal:hover,
.layui-layer-btn .layui-layer-btn0:hover,
.sk-dlg-foot .pear-btn-primary:hover,
.sk-af-foot .layui-btn-normal:hover {
    background: #245bdb !important;
    border-color: #245bdb !important;
    color: #fff !important;
    opacity: 1 !important;
    box-shadow: none !important;
    filter: none !important;
}
.pear-btn-primary:active,
.layui-btn-normal:active,
.layui-layer-btn .layui-layer-btn0:active {
    background: #1f4fbf !important;
    border-color: #1f4fbf !important;
    transform: none !important;
}

/* ---------- 危险 ---------- */
.pear-btn-danger,
.layui-btn-danger {
    background: #f54a45 !important;
    background-image: none !important;
    border: 1px solid #f54a45 !important;
    color: #fff !important;
    opacity: 1 !important;
    box-shadow: none !important;
}
.pear-btn-danger:hover,
.layui-btn-danger:hover {
    background: #d83931 !important;
    border-color: #d83931 !important;
    color: #fff !important;
    opacity: 1 !important;
}

/* ---------- 成功 ---------- */
.pear-btn-success,
.layui-btn-success {
    background: #00b578 !important;
    border-color: #00b578 !important;
    color: #fff !important;
    opacity: 1 !important;
}
.pear-btn-success:hover,
.layui-btn-success:hover {
    background: #009e6a !important;
    border-color: #009e6a !important;
    color: #fff !important;
}

/* ---------- 警告 ---------- */
.pear-btn-warming,
.layui-btn-warm {
    background: #ff8f1f !important;
    border-color: #ff8f1f !important;
    color: #fff !important;
    opacity: 1 !important;
}
.pear-btn-warming:hover,
.layui-btn-warm:hover {
    background: #e07a00 !important;
    border-color: #e07a00 !important;
    color: #fff !important;
}

/* ---------- 禁用 ---------- */
.pear-btn[disabled],
.pear-btn.pear-btn-disabled,
.layui-btn-disabled,
.layui-btn[disabled],
.sk-btn[disabled] {
    background: #f2f3f5 !important;
    background-image: none !important;
    border-color: #e5e6eb !important;
    color: #a9aeb8 !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* ---------- 弹层底部按钮尺寸统一 ---------- */
.layui-layer-btn { display: flex; justify-content: flex-end; gap: 8px; }
/* 取消在左、确定在右（layer 默认是确定在前） */
.layui-layer-btn { flex-direction: row; }
.layui-layer-btn .layui-layer-btn1 { order: 1; }
.layui-layer-btn .layui-layer-btn0 { order: 2; }
.layui-layer-btn .layui-layer-btn2 { order: 3; }

.layui-layer-btn a,
.layui-layer-btn .layui-layer-btn0,
.layui-layer-btn .layui-layer-btn1,
.layui-layer-btn .layui-layer-btn2 {
    margin: 0 !important;
    height: 32px !important;
    line-height: 30px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    border-radius: 0 !important;
    box-sizing: border-box;
}
.sk-dlg-foot .pear-btn,
.sk-af-foot .layui-btn { height: 32px; line-height: 30px; font-size: 13px; }

/* 前台弹窗按钮（.sk-btn 体系）补充按下与禁用态，悬停保持白字 */
.layui-layer .sk-btn-primary:active,
.sk-pop-actions .sk-btn-primary:active { filter: brightness(.92); }
.layui-layer .sk-btn:focus-visible { outline: 2px solid #c9dcff; outline-offset: 2px; }

/* ==================================================================
   第 24 轮：用户头像 / 列表状态开关 / 后台底栏
   ================================================================== */

/* ---------- 用户头像：无头像时用昵称首字，避免灰色占位图 ---------- */
.sk-uava {
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #e8f0ff; color: #3370ff;
    font-size: 13px; font-weight: 600; line-height: 1;
    vertical-align: middle; user-select: none;
}
.sk-uava-img {
    width: 30px; height: 30px; border-radius: 50%;
    object-fit: cover; display: inline-block; vertical-align: middle;
    background: #f2f3f5;
}

/* ---------- 列表状态开关：38×20 轨道 + 圆点，文字在右侧 ---------- */
.layui-table-cell .layui-form-switch {
    position: relative;
    width: 38px; height: 20px; min-width: 38px;
    margin: 0 28px 0 0; padding: 0;
    border: 0; background: #c9cdd4;
    box-sizing: border-box; vertical-align: middle;
    transition: background .18s ease;
}
.layui-table-cell .layui-form-switch > i {
    left: 2px; top: 2px;
    width: 16px; height: 16px; margin: 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(31, 35, 41, .22);
    transition: left .18s ease;
}
.layui-table-cell .layui-form-switch.layui-form-onswitch { background: #00b578; }
.layui-table-cell .layui-form-switch.layui-form-onswitch > i { left: 20px; }
/* 文字沿用 lay-text（启用/禁用、上架/下架、发布/草稿），不用 ::after 写死 */
.layui-table-cell .layui-form-switch em {
    position: absolute; left: 46px; top: 0;
    display: block; width: auto; margin: 0; padding: 0;
    line-height: 20px; font-size: 12px; font-style: normal;
    color: #8f959e !important; white-space: nowrap !important; text-align: left;
}
.layui-table-cell .layui-form-switch.layui-form-onswitch em { color: #00a870 !important; }

/* ---------- 后台底栏：给主体留出 28px，列表底部与分页不再被盖住 ---------- */
.pear-admin .layui-body { bottom: 28px !important; }
@media (max-width: 768px) {
    .pear-admin .layui-body { bottom: 0 !important; }
}

/* ==================================================================
   第 26 轮：后台外壳改为飞书浅色（与用户后台 / 官网一致）
   只作用于 .pear-admin，不影响前台
   ================================================================== */

body.pear-admin,
body.layui-layout-body {
    background: #f5f6f7 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- 顶部 ---------- */
.pear-admin .layui-header {
    left: 230px;
    width: calc(100% - 230px);
    height: 60px;
    background: #fff !important;
    border-bottom: 1px solid #eef0f3;
    box-shadow: none !important;
}
.pear-admin .layui-header .layui-nav .layui-nav-item > a {
    height: 60px;
    line-height: 60px;
    color: #4e5969 !important;
    font-size: 13.5px;
}
.pear-admin .layui-header .layui-nav .layui-nav-item > a:hover {
    color: #1f2329 !important;
    background: #f5f6f7;
}
.pear-admin .layui-header .layui-nav .layui-nav-item.collaspe > a,
.pear-admin .layui-header .layui-nav .layui-nav-item.refresh > a {
    width: 40px;
    text-align: center;
    font-size: 17px;
    color: #646a73 !important;
}
.pear-admin .layui-header .layui-nav .layui-nav-item.collaspe > a:hover,
.pear-admin .layui-header .layui-nav .layui-nav-item.refresh > a:hover {
    background: #eff4ff;
    color: #3370ff !important;
}
.pear-admin .layui-header .layui-nav-img { width: 28px; height: 28px; }
.pear-admin .layui-header .layui-nav-child {
    border: 1px solid #dee0e3 !important;
    border-radius: 0 !important;
    box-shadow: 0 8px 24px -12px rgba(31, 35, 41, .28) !important;
    padding: 4px 0 !important;
}
.pear-admin .layui-header .layui-nav-child dd a {
    height: 36px; line-height: 36px; color: #4e5969; font-size: 13px;
}
.pear-admin .layui-header .layui-nav-child dd a:hover {
    background: #eff4ff; color: #3370ff;
}

/* ---------- Logo ---------- */
.pear-admin .layui-logo {
    width: 230px;
    height: 60px;
    line-height: 60px;
    padding: 0 16px;
    background: #fff !important;
    border-bottom: 1px solid #eef0f3;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    gap: 9px;
    box-sizing: border-box;
}
.pear-admin .layui-logo .logo {
    display: inline-block !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px;
    flex: none;
}
.pear-admin .layui-logo .title {
    display: inline-block !important;
    color: #1f2329 !important;
    font-size: 16px !important;
    font-weight: 600;
    letter-spacing: .01em;
    top: 0;
    margin-left: 0;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 侧栏 ---------- */
.pear-admin .layui-side {
    width: 230px;
    top: 0;
    background: #fff !important;
    border-right: 1px solid #eef0f3;
    box-shadow: none !important;
    z-index: 9999;
}
.pear-admin .layui-side.layui-bg-black { background: #fff !important; }
.pear-admin .layui-side-scroll {
    height: calc(100% - 60px) !important;
    width: 230px !important;
    background: #fff !important;
}
.pear-admin .pear-side-scroll,
.pear-admin .pear-side-scroll.dark-theme,
.pear-admin .pear-side-scroll.light-theme,
.pear-admin .pear-nav-tree,
.pear-admin .pear-nav-tree .layui-nav-child {
    background: #fff !important;
}
.pear-admin .layui-side-scroll::-webkit-scrollbar { width: 4px; height: 4px; }
.pear-admin .layui-side-scroll::-webkit-scrollbar-thumb { background: #dee0e3; }

.pear-admin .pear-nav-tree { padding: 8px 8px 16px; }
.pear-admin .pear-nav-tree .layui-nav-item { margin: 2px 0; }
.pear-admin .pear-nav-tree .layui-nav-item > a {
    position: relative;
    height: 42px;
    line-height: 42px;
    padding: 0 12px !important;
    border-radius: 8px;
    color: #4e5969 !important;
    font-size: 13.5px;
    transition: background .16s ease, color .16s ease;
}
.pear-admin .pear-nav-tree .layui-nav-item > a:hover {
    background: #f5f6f7 !important;
    color: #1f2329 !important;
}
.pear-admin .pear-nav-tree .layui-nav-item > a > i {
    font-size: 16px;
    color: #8f959e;
    margin-right: 10px;
    transition: color .16s;
}
.pear-admin .pear-nav-tree .layui-nav-item > a:hover > i { color: #3370ff; }
.pear-admin .pear-nav-tree .layui-nav-itemed > a {
    color: #1f2329 !important;
    font-weight: 600;
}
.pear-admin .pear-nav-tree .layui-nav-itemed > a > i { color: #3370ff; }
.pear-admin .pear-nav-tree .layui-nav-more {
    right: 12px;
    border-top-color: #8f959e !important;
}
.pear-admin .pear-nav-tree .layui-nav-itemed > a > .layui-nav-more {
    border-top-color: transparent !important;
    border-bottom-color: #8f959e !important;
}

/* 选中项：浅蓝底 + 蓝字 + 左侧竖条 */
.pear-admin .pear-nav-tree .layui-this,
.pear-admin .pear-nav-tree .layui-this > a,
.pear-admin .pear-nav-tree .layui-this > a:hover {
    background: #eff4ff !important;
    color: #3370ff !important;
    font-weight: 600;
}
.pear-admin .pear-nav-tree .layui-this > a > i { color: #3370ff !important; }
.pear-admin .pear-nav-tree .layui-this > a::before {
    content: "";
    position: absolute; left: 0; top: 10px; bottom: 10px;
    width: 3px; border-radius: 3px; background: #3370ff;
}
.pear-admin .pear-nav-tree .layui-nav-bar { display: none !important; }

/* 二级菜单 */
.pear-admin .pear-nav-tree .layui-nav-child {
    padding: 2px 0 4px !important;
    margin: 2px 0 4px;
    background: #fafbfc !important;
    border-radius: 8px;
}
.pear-admin .pear-nav-tree .layui-nav-child dd { margin: 1px 6px; }
.pear-admin .pear-nav-tree .layui-nav-child dd a {
    height: 36px;
    line-height: 36px;
    padding-left: 40px !important;
    color: #646a73 !important;
    font-size: 13px;
    border-radius: 6px;
}
.pear-admin .pear-nav-tree .layui-nav-child dd a:hover {
    background: #eff4ff !important;
    color: #3370ff !important;
}
.pear-admin .pear-nav-tree .layui-nav-child dd.layui-this a,
.pear-admin .pear-nav-tree .layui-nav-child dd a.layui-this {
    background: #e8f0ff !important;
    color: #3370ff !important;
    font-weight: 600;
}
.pear-admin .pear-nav-tree .layui-nav-child dd a::before { display: none; }
.pear-admin .pear-nav-tree .layui-nav-child dd a > i { display: none; }

/* 折叠态 */
.pear-mini .layui-logo { padding: 0; justify-content: center; }
.pear-mini .layui-logo .title { display: none !important; }
.pear-mini .pear-nav-tree { padding: 8px 6px; }
.pear-mini .pear-nav-tree .layui-nav-item > a { padding: 0 !important; text-align: center; }
.pear-mini .pear-nav-tree .layui-nav-item > a > i { margin-right: 0; }
.pear-mini .pear-nav-tree .layui-this > a::before { display: none; }

/* ---------- 内容区与标签栏 ---------- */
.pear-admin .layui-body {
    left: 230px;
    bottom: 28px;
    background: #f5f6f7 !important;
    padding: 0;
}
.pear-admin .pear-tab {
    background: #fff !important;
    border-bottom: 1px solid #eef0f3;
}
.pear-admin .pear-tab .layui-tab-title {
    height: 38px;
    background: #fff !important;
    border-bottom: 0 !important;
}
.pear-admin .pear-tab .layui-tab-title li {
    min-width: 0;
    height: 38px;
    line-height: 38px;
    padding: 0 18px;
    color: #646a73;
    font-size: 12.5px;
    border-right: 0;
}
.pear-admin .pear-tab .layui-tab-title li:hover { color: #1f2329; background: #f7f8fa; }
.pear-admin .pear-tab .layui-tab-title li.layui-this {
    color: #3370ff;
    font-weight: 600;
    background: #fff;
}
.pear-admin .pear-tab .layui-tab-title li.layui-this::after {
    content: "";
    position: absolute; left: 14px; right: 14px; bottom: 0;
    height: 2px; background: #3370ff; border: 0;
}
.pear-admin .pear-tab .layui-tab-control li { color: #8f959e; }
.pear-admin .pear-tab .layui-tab-control li:hover { color: #3370ff; background: #eff4ff; }

/* ---------- 页脚 ---------- */
.pear-admin ~ .sk-admin-footer,
.sk-admin-footer {
    border-top: 1px solid #eef0f3 !important;
    background: #fff !important;
    color: #8f959e !important;
}

/* ---------- 后台内页（iframe）统一 ---------- */
body.pear-container {
    background: #f5f6f7 !important;
    color: #1f2329;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.pear-container .layui-card {
    background: #fff;
    border: 1px solid #dee0e3;
    border-radius: 0 !important;
    box-shadow: 0 1px 2px rgba(31, 35, 41, .04) !important;
}
.pear-container .layui-card-header {
    height: 46px;
    line-height: 46px;
    padding: 0 16px;
    border-bottom: 1px solid #eef0f3;
    font-size: 14px;
    font-weight: 600;
    color: #1f2329;
}
.pear-container .layui-card-body { padding: 14px 16px; }
.pear-container .layui-table-view { border-color: #dee0e3; }
.pear-container .layui-table-header th {
    background: #fafbfc !important;
    color: #646a73 !important;
    font-weight: 500;
}
.pear-container .layui-table td,
.pear-container .layui-table th { border-color: #eef0f3; }
.pear-container .layui-table tbody tr:hover,
.pear-container .layui-table-hover { background: #f7faff !important; }
.pear-container .layui-table-cell { font-size: 13px; color: #1f2329; }
.pear-container .layui-table-tool { background: #fff; border-bottom: 1px solid #eef0f3; }
.pear-container .layui-table-page { border-top: 1px solid #eef0f3; }
.pear-container .layui-laypage a,
.pear-container .layui-laypage span { border-color: #dee0e3; color: #4e5969; }
.pear-container .layui-laypage .layui-laypage-curr .layui-laypage-em { background: #3370ff; }
.pear-container .layui-laypage a:hover { color: #3370ff; }

/* 页内 tab / 面板 */
.pear-container .layui-tab-brief > .layui-tab-title .layui-this { color: #3370ff; }
.pear-container .layui-tab-brief > .layui-tab-title .layui-this::after { border-bottom: 2px solid #3370ff; }
.pear-container .layui-form-label { color: #646a73; }
.pear-container .layui-input,
.pear-container .layui-textarea,
.pear-container .layui-select { border-color: #dee0e3; }
.pear-container .layui-input:focus,
.pear-container .layui-textarea:focus { border-color: #3370ff !important; box-shadow: 0 0 0 2px rgba(51,112,255,.1); }

/* 登录页也统一为浅色背景 */
body.sk-login-body, body.login-body { background: #f5f6f7 !important; }

/* 侧栏菜单容器：Pear 的 .dark-theme .layui-nav-tree 带 !important，
   用 #sideMenu 提高优先级，彻底压成白底 */
#sideMenu .pear-nav-tree,
#sideMenu .pear-nav-tree.layui-nav-tree,
#sideMenu .pear-nav-tree .layui-nav-item,
#sideMenu .pear-nav-tree .layui-nav-itemed,
#sideMenu .pear-nav-tree .layui-nav-child {
    background: #fff !important;
}
#sideMenu .pear-nav-tree .layui-nav-child { background: #fafbfc !important; }
#sideMenu .pear-nav-tree .layui-this,
#sideMenu .pear-nav-tree .layui-this > a { background: #eff4ff !important; }

/* 标签页选中点与移动端悬浮按钮 */
.pear-admin .pear-tab .pear-tab-active { display: none !important; }
.pear-collasped-pe {
    background: #3370ff !important;
    border-radius: 50% !important;
    box-shadow: 0 8px 20px -8px rgba(51, 112, 255, .6) !important;
}

/* 后台内容页的全局直角规则优先级更高，头像单独提权放行 */
body.pear-container .sk-uava,
body.pear-container .sk-uava-img {
    border-radius: 50% !important;
}

/* 表单里的开关也用绿色（与列表一致） */
body.pear-container .layui-form-switch {
    background: #fff;
    border-color: #dee0e3;
}
body.pear-container .layui-form-switch.layui-form-onswitch {
    background: #00b578 !important;
    border-color: #00b578 !important;
}
body.pear-container .layui-form-switch em { color: #8f959e !important; }
body.pear-container .layui-form-switch.layui-form-onswitch em { color: #fff !important; }

/* 标签页选中下划线 */
.pear-admin .pear-tab .layui-tab-title li.layui-this {
    box-shadow: inset 0 -2px 0 #3370ff;
}

/* 移动端后台顶栏品牌 */
.sk-admin-mbrand { display: none; }
@media (max-width: 768px) {
    .pear-admin .layui-header { left: 0 !important; width: 100% !important; }
    .sk-admin-mbrand {
        display: block;
        position: absolute; left: 80px; top: 0;
        line-height: 60px;
        font-size: 15px; font-weight: 600; color: #1f2329;
        letter-spacing: .01em;
    }
}

/* 折叠态：滚动容器与菜单项必须一起收窄到 60px，否则图标会被推到侧栏外 */
.pear-mini .layui-side-scroll,
.pear-mini .pear-side-scroll { width: 60px !important; }
.pear-mini .pear-nav-tree { width: 60px !important; padding: 8px 0 !important; }
.pear-mini .pear-nav-tree .layui-nav-item { margin: 2px 6px !important; }
.pear-mini .pear-nav-tree .layui-nav-item > a {
    width: 48px !important; height: 42px; padding: 0 !important;
    display: flex; align-items: center; justify-content: center;
}
.pear-mini .pear-nav-tree .layui-nav-item > a > i {
    margin: 0 !important; font-size: 17px;
}
.pear-mini .pear-nav-tree .layui-nav-child { display: none !important; }

/* ==================================================================
   第 27 轮：全站黑白主题（html[data-theme="dark"]）
   —— 浅色沿用现有令牌；深色只改令牌 + 少量硬编码表面
   —— 覆盖：官网 / 登录 / 用户中心 / 分享页 / 平台后台 / 弹层
   ================================================================== */

/* ---------- 主题切换按钮 ---------- */
.sk-theme-btn {
    width: 34px; height: 34px; flex: none; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--sk-line); border-radius: 9px;
    background: var(--sk-card); color: var(--sk-text-2);
    cursor: pointer; outline: none;
    transition: color .16s, border-color .16s, background .16s;
    -webkit-tap-highlight-color: transparent;
}
.sk-theme-btn:hover { color: var(--sk-pri); border-color: var(--sk-pri); background: var(--sk-pri-soft); }
.sk-theme-btn:focus-visible { box-shadow: 0 0 0 3px rgba(51, 112, 255, .18); }
.sk-theme-btn svg { width: 17px; height: 17px; display: block; }
.sk-theme-btn .ico-sun { display: none; }
html[data-theme="dark"] .sk-theme-btn .ico-moon { display: none; }
html[data-theme="dark"] .sk-theme-btn .ico-sun { display: block; }

/* 后台顶栏里的主题按钮 */
.pear-admin .layui-header .layui-nav-item.sk-nav-theme > a {
    width: 40px; padding: 0; display: flex; align-items: center; justify-content: center;
}
.pear-admin .layui-header .sk-nav-theme svg { width: 18px; height: 18px; }
.pear-admin .layui-header .sk-nav-theme .ico-sun { display: none; }
html[data-theme="dark"] .pear-admin .layui-header .sk-nav-theme .ico-moon { display: none; }
html[data-theme="dark"] .pear-admin .layui-header .sk-nav-theme .ico-sun { display: block; }

/* ---------- 深色令牌 ---------- */
html[data-theme="dark"] {
    --sk-pri: #4c8dff;
    --sk-pri-deep: #6ba1ff;
    --sk-pri-soft: #1b2a44;
    --sk-text: #e6e8eb;
    --sk-text-2: #a8adb5;
    --sk-text-3: #7d838c;
    --sk-line: #303338;
    --sk-line-light: #26292d;
    --sk-bg: #131416;
    --sk-card: #1c1e20;
    --sk-ok: #3ddc84;
    --sk-warn: #ffa940;
    --sk-danger: #ff6b66;
    --sk-shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 6px 16px -8px rgba(0, 0, 0, .55);
    --sk-shadow-hover: 0 2px 8px rgba(0, 0, 0, .5), 0 16px 32px -16px rgba(0, 0, 0, .7);
    --sk-grad-footer: linear-gradient(120deg, #17181a 0%, #1a1b1e 55%, #1c1e21 100%);
    color-scheme: dark;
}

/* ---------- 基础 ---------- */
html[data-theme="dark"] body {
    background: var(--sk-bg) !important;
    color: var(--sk-text);
}
html[data-theme="dark"] ::selection { background: rgba(76, 141, 255, .38); color: #fff; }
html[data-theme="dark"] a { color: #7aa7ff; }
html[data-theme="dark"] img { color: transparent; }
html[data-theme="dark"] .sk-app,
html[data-theme="dark"] .sk-app-pub,
html[data-theme="dark"] .sk-main-wrap { background: transparent; }
html[data-theme="dark"] * { scrollbar-color: #3a3e44 transparent; }
html[data-theme="dark"] ::-webkit-scrollbar { width: 8px; height: 8px; }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: transparent; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #3a3e44; border-radius: 4px; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #4a4f57; }

/* 表单控件统一深色（含浏览器自动填充） */
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background-color: #232528;
    color: var(--sk-text);
    border-color: var(--sk-line);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #6f757e; }
html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus,
html[data-theme="dark"] textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--sk-text);
    -webkit-box-shadow: 0 0 0 1000px #232528 inset;
    caret-color: var(--sk-text);
}
html[data-theme="dark"] option { background: #232528; color: var(--sk-text); }

/* ---------- 官网 ---------- */
html[data-theme="dark"] .sk-pub-body { background: var(--sk-bg); }
html[data-theme="dark"] .sk-pub-head {
    background: #1a1b1e;
    border-bottom-color: #2b2e33;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .5);
}
html[data-theme="dark"] .sk-pub-nav a { color: #b3b8c0; }
html[data-theme="dark"] .sk-pub-nav a:hover { background: #262a30; color: var(--sk-pri); }
html[data-theme="dark"] .sk-pub-nav a.on { background: #1e2a44; color: var(--sk-pri); }
html[data-theme="dark"] .sk-pub-avatar img { border-color: #2c3037; }
html[data-theme="dark"] .sk-footer {
    background: var(--sk-grad-footer);
    border-top-color: #26292d;
    color: #8b919a;
}
html[data-theme="dark"] .sk-footer a { color: #9aa2ad; }
html[data-theme="dark"] .sk-footer .sk-footer-copy { color: #6f757e; }

html[data-theme="dark"] .sk-pub-card,
html[data-theme="dark"] .sk-card,
html[data-theme="dark"] .sk-panel { background: var(--sk-card); border-color: var(--sk-line); }
html[data-theme="dark"] .sk-pub-card:hover { border-color: #3a4a66; }
html[data-theme="dark"] .sk-card-hd {
    background: linear-gradient(180deg, #202225, #1c1e20);
    border-bottom-color: var(--sk-line);
}
html[data-theme="dark"] .sk-card-hd .sk-hd-icon { background: var(--sk-pri-soft); }

html[data-theme="dark"] .sk-btn {
    background: #24262a; border-color: #3a3d43; color: var(--sk-text);
}
html[data-theme="dark"] .sk-btn:hover {
    background: #2a2d32; border-color: #4c8dff; color: #8db4ff;
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .7);
}
html[data-theme="dark"] .sk-btn-ghost { background: #24262a; }
html[data-theme="dark"] .sk-btn-primary {
    background: linear-gradient(135deg, #4b83ff 0%, #3370ff 45%, #245bdb 100%);
    color: #fff;
}
html[data-theme="dark"] .sk-btn-primary:hover { color: #fff; }
html[data-theme="dark"] .sk-btn[disabled],
html[data-theme="dark"] .sk-btn.is-disabled {
    background: #232528 !important; border-color: #303338 !important; color: #5f656e !important;
}

html[data-theme="dark"] .sk-toolbar,
html[data-theme="dark"] .sk-tools { background: #1a1c1f; border-color: var(--sk-line); }
html[data-theme="dark"] .sk-table th {
    background: #232528; color: var(--sk-text-2); border-bottom-color: var(--sk-line);
}
html[data-theme="dark"] .sk-table td { border-bottom-color: #26292d; }
html[data-theme="dark"] .sk-table tbody tr:hover { background: #22252a; }

html[data-theme="dark"] .sk-field > label { color: var(--sk-text-2); }
html[data-theme="dark"] .sk-field input,
html[data-theme="dark"] .sk-field textarea,
html[data-theme="dark"] .sk-field select,
html[data-theme="dark"] .sk-input,
html[data-theme="dark"] .sk-select,
html[data-theme="dark"] .sk-textarea {
    background: #232528; border-color: #3a3d43; color: var(--sk-text);
}
html[data-theme="dark"] .sk-field input:focus,
html[data-theme="dark"] .sk-field textarea:focus,
html[data-theme="dark"] .sk-input:focus,
html[data-theme="dark"] .sk-textarea:focus { border-color: var(--sk-pri); box-shadow: 0 0 0 3px rgba(76, 141, 255, .16); }

html[data-theme="dark"] .sk-tag { background: #26292d; color: #b3b8c0; border-color: #35383e; }
html[data-theme="dark"] .sk-tag.orange { background: #3a2a12; color: #ffb44d; border-color: #4b3618; }
html[data-theme="dark"] .sk-empty { color: var(--sk-text-3); }

html[data-theme="dark"] .sk-note { background: #1b2637; border-color: #263b5c; color: #a9c4ef; }
html[data-theme="dark"] .sk-note-warn { background: #33270f; border-color: #4a3818; color: #ffc46b; }
html[data-theme="dark"] .sk-note-danger { background: #331a1a; border-color: #4d2626; color: #ff9a95; }
html[data-theme="dark"] .sk-hint { color: var(--sk-text-3); }

/* 官网首页 */
html[data-theme="dark"] .hp-hero {
    background: linear-gradient(180deg, #1b1d20 0%, #1e2330 100%);
    border-color: var(--sk-line);
}
html[data-theme="dark"] .hp-hero-text h1,
html[data-theme="dark"] .hp-sec-hd h2,
html[data-theme="dark"] .hp-plan .price { color: #f2f4f7; }
html[data-theme="dark"] .hp-window,
html[data-theme="dark"] .hp-stats,
html[data-theme="dark"] .hp-feat,
html[data-theme="dark"] .hp-scene,
html[data-theme="dark"] .hp-plan,
html[data-theme="dark"] .hp-faq-list {
    background: var(--sk-card); border-color: var(--sk-line);
}
html[data-theme="dark"] .hp-window-bar { background: #232528; border-bottom-color: #2c2f34; }
html[data-theme="dark"] .hp-row { border-bottom-color: #26292d; }
html[data-theme="dark"] .hp-badge { background: #232528; border-color: var(--sk-line); }
html[data-theme="dark"] .hp-stats .it { border-right-color: var(--sk-line-light); }
html[data-theme="dark"] .hp-scene .num { color: #3b414a; }
html[data-theme="dark"] .hp-feat:hover { border-color: #3a4a66; }
html[data-theme="dark"] .hp-plan.hot { border-color: var(--sk-pri); box-shadow: 0 0 0 1px var(--sk-pri) inset; }
html[data-theme="dark"] .hp-ico.blue { background: #1c2a44; color: #7aa7ff; }
html[data-theme="dark"] .hp-ico.purple { background: #2a2440; color: #b39cff; }
html[data-theme="dark"] .hp-ico.green { background: #1d2f22; color: #6ddc8a; }
html[data-theme="dark"] .hp-ico.orange { background: #33270f; color: #ffb44d; }
html[data-theme="dark"] .hp-cta { background: linear-gradient(110deg, #1d3f8f 0%, #2a5bd7 60%, #3370ff 100%); }

/* ---------- 登录 / 注册 ---------- */
html[data-theme="dark"] .sk-auth-card { background: var(--sk-card); }
html[data-theme="dark"] .lg-welcome h2,
html[data-theme="dark"] .lg-welcome p { color: var(--sk-text); }
html[data-theme="dark"] .lg-welcome p { color: var(--sk-text-3); }
html[data-theme="dark"] .lg-tabs { border-bottom-color: #2c2f34; }
html[data-theme="dark"] .lg-tab { color: #9aa0a9; }
html[data-theme="dark"] .lg-tab.on { color: var(--sk-pri); }
html[data-theme="dark"] .lg-field > label { color: var(--sk-text-2); }
html[data-theme="dark"] .lg-input {
    background: #232528; border-color: #3a3d43; color: var(--sk-text);
}
html[data-theme="dark"] .lg-input:focus { border-color: var(--sk-pri); box-shadow: 0 0 0 3px rgba(76, 141, 255, .16); }
html[data-theme="dark"] .lg-code-btn { background: #26292d; border-color: #3a3d43; color: #b3b8c0; }
html[data-theme="dark"] .lg-submit { background: linear-gradient(135deg, #4b83ff, #245bdb); color: #fff; }
html[data-theme="dark"] .lg-row, html[data-theme="dark"] .lg-foot { color: var(--sk-text-3); }
html[data-theme="dark"] .lg-oauth a { background: #232528; border-color: #3a3d43; color: var(--sk-text-2); }
html[data-theme="dark"] .lg-err { background: #331a1a; border-color: #4d2626; color: #ff9a95; }

/* 前台登录/注册弹窗（layer 内） */
html[data-theme="dark"] body.in-layer.sk-pub-body { background: #1c1e20 !important; }
html[data-theme="dark"] body.sk-pop { background: #1c1e20; }

/* ---------- 用户中心 ---------- */
html[data-theme="dark"] body.sk-user-body { background: var(--sk-bg); }
html[data-theme="dark"] .el-header { background: #1a1b1e !important; box-shadow: 0 1px 0 #2b2e33; }
html[data-theme="dark"] .sk-head-user .text { color: var(--sk-text); }
html[data-theme="dark"] .sk-head-user .head-img { border-color: #2c3037; }
html[data-theme="dark"] .sk-vip-pill { background: linear-gradient(135deg, #3a2a12, #33230d); color: #ffc46b; }
html[data-theme="dark"] .sk-vip-pill:hover { color: #ffd591; }

html[data-theme="dark"] .sk-side { background: var(--sk-card); border-color: var(--sk-line); }
html[data-theme="dark"] .sk-side::after { background: linear-gradient(90deg, rgba(28,30,32,0), #1c1e20 72%); }
html[data-theme="dark"] .sk-side-title { color: var(--sk-text-3); }
html[data-theme="dark"] .sk-menu-item > a { color: #b9bec6; }
html[data-theme="dark"] .sk-menu-item > a:hover { background: #26292d; color: #8db4ff; }
html[data-theme="dark"] .sk-menu-item.select > a,
html[data-theme="dark"] .sk-menu-item.on > a {
    background: linear-gradient(90deg, #1e2b46, #1c2434);
    color: #8db4ff;
}
html[data-theme="dark"] .sk-page { background: var(--sk-card); border-color: var(--sk-line); }
html[data-theme="dark"] .sk-page:hover { border-color: #3a3d43; }
html[data-theme="dark"] .sk-page-hd h2 { color: var(--sk-text); }
html[data-theme="dark"] .sk-page-hd h2::before { background: linear-gradient(180deg, #6ba1ff, #3370ff); }
html[data-theme="dark"] .sk-page-hd .sub { color: var(--sk-text-3); }

/* 文件页旧组件 */
html[data-theme="dark"] .all-box { background: transparent; }
html[data-theme="dark"] .all-box > .top {
    background: var(--sk-card) !important; border-color: var(--sk-line) !important;
}
html[data-theme="dark"] .all-box > .daohang {
    background: #1a1c1f !important; border-color: var(--sk-line) !important; color: var(--sk-text-3) !important;
}
html[data-theme="dark"] .all-box > .daohang a { color: #8db4ff !important; }
html[data-theme="dark"] .table-box { background: var(--sk-card); border-color: var(--sk-line); }
html[data-theme="dark"] .bootstrap-table .fixed-table-container,
html[data-theme="dark"] .bootstrap-table .fixed-table-body,
html[data-theme="dark"] .bootstrap-table .fixed-table-header { background: var(--sk-card); }
html[data-theme="dark"] .table > thead > tr > th,
html[data-theme="dark"] .bootstrap-table thead th {
    background: #232528 !important; color: var(--sk-text-2) !important; border-color: var(--sk-line) !important;
}
html[data-theme="dark"] .table > tbody > tr > td { border-color: #26292d !important; color: var(--sk-text); }
html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) { background: #1f2124; }
html[data-theme="dark"] .table-hover > tbody > tr:hover { background: #24272b; }
html[data-theme="dark"] .table-bordered,
html[data-theme="dark"] .table-bordered > tbody > tr > td,
html[data-theme="dark"] .table-bordered > thead > tr > th { border-color: var(--sk-line) !important; }
html[data-theme="dark"] .all-box .top-right .el-input { background: #232528 !important; border-color: #3a3d43 !important; }
html[data-theme="dark"] .all-box .top-right .el-input input { color: var(--sk-text) !important; }
html[data-theme="dark"] .view-switch { background: #232528 !important; border-color: #3a3d43 !important; }
html[data-theme="dark"] .view-switch button { color: #9aa0a9 !important; }
html[data-theme="dark"] .view-switch button.on,
html[data-theme="dark"] .view-switch button.active { background: var(--sk-pri) !important; color: #fff !important; }
html[data-theme="dark"] #gridBar { background: #232528 !important; border-color: #3a3d43 !important; color: var(--sk-text) !important; }
html[data-theme="dark"] .file-grid .file-item,
html[data-theme="dark"] .file-grid .grid-item { background: #202225 !important; border-color: #303338 !important; }

/* 个人中心 pc-* */
html[data-theme="dark"] .pc-head { background: var(--sk-card); border-bottom-color: #26292d; }
html[data-theme="dark"] .pc-head .n { color: var(--sk-text); }
html[data-theme="dark"] .pc-head .m { color: var(--sk-text-3); }
html[data-theme="dark"] .pc-avatar { background: #232528; border-color: #303338; }
html[data-theme="dark"] .pc-badge { background: #1e2a44; color: #7aa7ff; }
html[data-theme="dark"] .pc-badge.vip { background: #3a2a12; color: #ffb44d; }
html[data-theme="dark"] .pc-tabs { background: var(--sk-card); border-bottom-color: #26292d; }
html[data-theme="dark"] .pc-tab { color: #9aa0a9; }
html[data-theme="dark"] .pc-tab.on { color: var(--sk-pri); }
html[data-theme="dark"] .pc-tab.on::after { background: var(--sk-pri); }
html[data-theme="dark"] .pc-field > label { color: var(--sk-text-2); }
html[data-theme="dark"] .pc-input {
    background: #232528; border-color: #3a3d43; color: var(--sk-text);
}
html[data-theme="dark"] .pc-input:focus { border-color: var(--sk-pri); }
html[data-theme="dark"] .pc-input:disabled { background: #1e2023; color: #6f757e; }
html[data-theme="dark"] .pc-hint { color: var(--sk-text-3); }
html[data-theme="dark"] .pc-btn { background: #3370ff; color: #fff; }
html[data-theme="dark"] .pc-btn:hover { background: #245bdb; }
html[data-theme="dark"] .pc-btn.ghost { background: #24262a; color: #b3b8c0; border-color: #3a3d43; }
html[data-theme="dark"] .pc-btn.ghost:hover { color: #8db4ff; border-color: var(--sk-pri); }
html[data-theme="dark"] .pc-info .k { color: var(--sk-text-3); }
html[data-theme="dark"] .pc-info .v { color: var(--sk-text); }
html[data-theme="dark"] .pc-bind-list { border-color: #303338; }
html[data-theme="dark"] .pc-bind-row { border-bottom-color: #26292d; }
html[data-theme="dark"] .pc-bind-row .nm { color: var(--sk-text); }
html[data-theme="dark"] .pc-bind-row .st { color: var(--sk-text-3); }
html[data-theme="dark"] .pc-mini { background: #24262a; border-color: #3a3d43; color: #b3b8c0; }
html[data-theme="dark"] .pc-mini:hover { color: #8db4ff; border-color: var(--sk-pri); }
html[data-theme="dark"] .pc-mini.danger { color: #ff9a95; border-color: #4d2626; }
html[data-theme="dark"] .pc-mini.danger:hover { background: #331a1a; }
html[data-theme="dark"] .pc-mini.disabled { color: #5f656e; border-color: #303338; }
html[data-theme="dark"] .pc-guest { color: var(--sk-text-3); }

/* 会员中心 */
html[data-theme="dark"] .vip-hero {
    background: linear-gradient(120deg, #1b2230, #1c2434 55%, #1d2023);
    border-color: #2b3342;
}
html[data-theme="dark"] .vip-hero-who .n { color: var(--sk-text); }
html[data-theme="dark"] .vip-hero-who .m { color: var(--sk-text-3); }
html[data-theme="dark"] .vip-hero-desc { color: #8db4ff; }
html[data-theme="dark"] .vip-avatar { border-color: #2b2e33; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
html[data-theme="dark"] .vip-plan { background: var(--sk-card); border-color: var(--sk-line); }
html[data-theme="dark"] .vip-plan:hover { border-color: #3a4a66; }
html[data-theme="dark"] .vip-plan.on { background: #1b2230; border-color: var(--sk-pri); box-shadow: 0 0 0 1px var(--sk-pri) inset; }
html[data-theme="dark"] .vip-plan .vp-name { color: var(--sk-text); }
html[data-theme="dark"] .vip-plan .vp-badge { background: #3a2a12; color: #ffb44d; }
html[data-theme="dark"] .vip-plan .vp-price { color: #7aa7ff; }
html[data-theme="dark"] .vip-plan .vp-price i { color: var(--sk-text-3); }
html[data-theme="dark"] .vip-plan .vp-note { color: #ffb44d; }
html[data-theme="dark"] .vip-plan .vp-desc { color: var(--sk-text-3); }
html[data-theme="dark"] .vip-plan .vp-check { background: #1c1e20; border-color: #4a4f57; }
html[data-theme="dark"] .vip-plan.on .vp-check { background: var(--sk-pri); border-color: var(--sk-pri); }

html[data-theme="dark"] .vip-pay-right .pay-sum { background: #1a1c1f; border-color: #26292d; }
html[data-theme="dark"] .vip-ch { background: #1c1e20; border-color: #35383e; }
html[data-theme="dark"] .vip-ch:hover { border-color: #4a5670; }
html[data-theme="dark"] .vip-ch .vc-name { color: var(--sk-text); }
html[data-theme="dark"] .vip-ch .vc-check { background: #1c1e20; border-color: #4a4f57; }
html[data-theme="dark"] .vip-ch.is-on { background: #182234; border-color: #4c8dff; }
html[data-theme="dark"] .vip-ch-wxpay.is-on { background: #14251b; border-color: #23c463; }
html[data-theme="dark"] .vip-ch.is-off { background: #1a1c1f; border-color: #26292d; }
html[data-theme="dark"] .vip-ch.is-off .vc-name { color: var(--sk-text-3); }
html[data-theme="dark"] .vip-ch .vc-off { background: #232528; border-color: #303338; color: var(--sk-text-3); }
html[data-theme="dark"] .vip-ch.is-off .vc-glyph { background: #3a3e44; }
html[data-theme="dark"] .vip-plan .vp-price b { color: inherit; }

/* 分销 / 钱包 / 表格页 */
html[data-theme="dark"] .sk-tabs { background: var(--sk-card); border-color: var(--sk-line); }
html[data-theme="dark"] .sk-tabs a { color: var(--sk-text-2); }
html[data-theme="dark"] .sk-tabs a:hover { background: #232528; }
html[data-theme="dark"] .sk-tabs a.on { color: var(--sk-pri); }
html[data-theme="dark"] .sk-wallet { background: linear-gradient(120deg, #1d2b45, #1c2434); border-color: #2b3342; }
html[data-theme="dark"] .sk-wallet-main .num, html[data-theme="dark"] .sk-wallet-main .t { color: var(--sk-text); }
html[data-theme="dark"] .sk-wallet-tip { color: var(--sk-text-3); }

/* 工单 tk-* */
html[data-theme="dark"] .tk-list, html[data-theme="dark"] .tk-detail { background: var(--sk-card); border-color: var(--sk-line); }
html[data-theme="dark"] .tk-item { border-bottom-color: #26292d; }
html[data-theme="dark"] .tk-item:hover { background: #22252a; }
html[data-theme="dark"] .tk-item.on { background: #1b2230; }
html[data-theme="dark"] .tk-head { border-bottom-color: #26292d; }
html[data-theme="dark"] .tk-msg { background: #232528; border-color: #303338; color: var(--sk-text); }
html[data-theme="dark"] .tk-msg.mine { background: #1b2a44; border-color: #2b3f60; }
html[data-theme="dark"] .tk-meta { color: var(--sk-text-3); }
html[data-theme="dark"] .tk-empty { color: var(--sk-text-3); }
html[data-theme="dark"] .tk-field .v { color: var(--sk-text); }
html[data-theme="dark"] .tk-new { background: var(--sk-card); border-color: var(--sk-line); }
html[data-theme="dark"] .tk-reply { background: var(--sk-card); border-top-color: #26292d; }

/* 找回/重置密码 fg-* */
html[data-theme="dark"] .fg-card { background: var(--sk-card); border-color: var(--sk-line); }
html[data-theme="dark"] .fg-card h2 { color: var(--sk-text); }
html[data-theme="dark"] .fg-card p { color: var(--sk-text-3); }

/* 分享 / 下载 */
html[data-theme="dark"] .dl2-card { background: var(--sk-card) !important; border-color: var(--sk-line) !important; }
html[data-theme="dark"] .dl2-buy, html[data-theme="dark"] .vip-buy-hd { background: var(--sk-card); }
html[data-theme="dark"] .dl-meta h1 { color: var(--sk-text); }
html[data-theme="dark"] .dl-plan { background: var(--sk-card); border-color: var(--sk-line); }
html[data-theme="dark"] .dl-plan .speed { color: var(--sk-text); }
html[data-theme="dark"] .dl-plan .desc { color: var(--sk-text-3); }
html[data-theme="dark"] body.sk-flat-body { background: var(--sk-bg) !important; }

/* 帮助中心 */
html[data-theme="dark"] .help-side, html[data-theme="dark"] .help-card,
html[data-theme="dark"] .help-body { background: var(--sk-card); border-color: var(--sk-line); }
html[data-theme="dark"] .help-nav a { color: var(--sk-text-2); }
html[data-theme="dark"] .help-nav a.on { background: #1b2230; color: var(--sk-pri); }

/* Bootstrap 旧组件 */
html[data-theme="dark"] .btn-default {
    background: #24262a; border-color: #3a3d43; color: var(--sk-text);
}
html[data-theme="dark"] .btn-default:hover,
html[data-theme="dark"] .btn-default:focus { background: #2a2d32; border-color: #4c8dff; color: #8db4ff; }
html[data-theme="dark"] .form-control {
    background: #232528; border-color: #3a3d43; color: var(--sk-text); box-shadow: none;
}
html[data-theme="dark"] .form-control:focus { border-color: var(--sk-pri); box-shadow: 0 0 0 3px rgba(76,141,255,.16); }
html[data-theme="dark"] .well { background: #1a1c1f; border-color: #2b2e33; }
html[data-theme="dark"] .panel { background: var(--sk-card); border-color: var(--sk-line); }
html[data-theme="dark"] .panel-heading { background: #232528; border-color: var(--sk-line); color: var(--sk-text); }
html[data-theme="dark"] .panel-footer { background: #1e2023; border-color: var(--sk-line); }
html[data-theme="dark"] .pagination > li > a,
html[data-theme="dark"] .pagination > li > span {
    background: #232528; border-color: #3a3d43; color: #b3b8c0;
}
html[data-theme="dark"] .pagination > li > a:hover { background: #2a2d32; color: #8db4ff; }
html[data-theme="dark"] .pagination > .active > a,
html[data-theme="dark"] .pagination > .active > span {
    background: var(--sk-pri); border-color: var(--sk-pri); color: #fff;
}
html[data-theme="dark"] .modal-content { background: var(--sk-card); color: var(--sk-text); }
html[data-theme="dark"] .modal-header, html[data-theme="dark"] .modal-footer { border-color: var(--sk-line); }
html[data-theme="dark"] .dropdown-menu { background: #232528; border-color: #3a3d43; box-shadow: 0 12px 28px rgba(0,0,0,.5); }
html[data-theme="dark"] .dropdown-menu > li > a { color: #b3b8c0; }
html[data-theme="dark"] .dropdown-menu > li > a:hover { background: #2a2d32; color: #8db4ff; }
html[data-theme="dark"] .label-default { background: #3a3e44; }
html[data-theme="dark"] hr { border-color: #2c2f34; }
html[data-theme="dark"] pre, html[data-theme="dark"] code { background: #232528; border-color: #303338; color: #d7dbe2; }

/* layer 弹层（前台） */
html[data-theme="dark"] .layui-layer { background: #1c1e20; box-shadow: 0 16px 60px rgba(0,0,0,.6); }
html[data-theme="dark"] .layui-layer-title {
    background: #232528 !important; color: var(--sk-text) !important; border-bottom-color: #303338 !important;
}
html[data-theme="dark"] .layui-layer-content { color: var(--sk-text); }
html[data-theme="dark"] .layui-layer-setwin .layui-layer-min cite { background: #b3b8c0; }
html[data-theme="dark"] .layui-layer-btn a {
    background: #24262a !important; border-color: #3a3d43 !important; color: var(--sk-text) !important;
}
html[data-theme="dark"] .layui-layer-btn .layui-layer-btn0 {
    background: #3370ff !important; border-color: #3370ff !important; color: #fff !important;
}
html[data-theme="dark"] .layui-layer-prompt .layui-layer-input {
    background: #232528; border-color: #3a3d43; color: var(--sk-text);
}
html[data-theme="dark"] .layui-layer-dialog .layui-layer-content { color: var(--sk-text); }

/* 后台 / 前台共用的自定义弹窗表单 */
html[data-theme="dark"] .sk-dlg-cell { background: #232528; }
html[data-theme="dark"] .sk-dlg-cell .v { color: var(--sk-text); }
html[data-theme="dark"] .sk-dlg-cell .k { color: var(--sk-text-3); }
html[data-theme="dark"] .sk-dlg-form input[type=text],
html[data-theme="dark"] .sk-dlg-form textarea { background: #232528; border-color: #3a3d43; color: var(--sk-text); }
html[data-theme="dark"] .sk-dlg-form .sk-fi .val { color: var(--sk-text); }
html[data-theme="dark"] .sk-dlg-form .sk-fi > label { color: var(--sk-text-2); }
html[data-theme="dark"] .sk-dlg-foot { background: #202225; border-top-color: #303338; }

/* 筛选弹层 */
html[data-theme="dark"] .sf-pop { background: #1c1e20; border-color: #303338; box-shadow: 0 16px 40px rgba(0,0,0,.6); }
html[data-theme="dark"] .sf-pop .sf-hd { color: var(--sk-text); border-bottom-color: #26292d; }
html[data-theme="dark"] .sf-pop .sf-item label { color: var(--sk-text-2); }
html[data-theme="dark"] .sf-pop .sf-item input,
html[data-theme="dark"] .sf-pop .sf-item select { background: #232528; border-color: #3a3d43; color: var(--sk-text); }
html[data-theme="dark"] .sf-pop .sf-foot { border-top-color: #26292d; }

/* ==================================================================
   平台后台（iframe 外壳 + 内页 + Layui/Pear）
   ================================================================== */
html[data-theme="dark"] body.pear-admin,
html[data-theme="dark"] body.layui-layout-body { background: #131416 !important; }

html[data-theme="dark"] .pear-admin .layui-header {
    background: #1a1b1e !important;
    border-bottom-color: #2b2e33;
}
html[data-theme="dark"] .pear-admin .layui-header .layui-nav .layui-nav-item > a { color: #b3b8c0 !important; }
html[data-theme="dark"] .pear-admin .layui-header .layui-nav .layui-nav-item > a:hover {
    color: #fff !important; background: #26292d;
}
html[data-theme="dark"] .pear-admin .layui-header .layui-nav .layui-nav-item.collaspe > a,
html[data-theme="dark"] .pear-admin .layui-header .layui-nav .layui-nav-item.refresh > a { color: #9aa0a9 !important; }
html[data-theme="dark"] .pear-admin .layui-header .layui-nav .layui-nav-item.collaspe > a:hover,
html[data-theme="dark"] .pear-admin .layui-header .layui-nav .layui-nav-item.refresh > a:hover {
    background: #1e2a44; color: #8db4ff !important;
}
html[data-theme="dark"] .pear-admin .layui-header .layui-nav-child {
    background: #232528 !important; border-color: #35383e !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.55) !important;
}
html[data-theme="dark"] .pear-admin .layui-header .layui-nav-child dd a { color: #b3b8c0; }
html[data-theme="dark"] .pear-admin .layui-header .layui-nav-child dd a:hover { background: #1e2a44; color: #8db4ff; }

html[data-theme="dark"] .pear-admin .layui-logo {
    background: #1a1b1e !important; border-bottom-color: #2b2e33;
}
html[data-theme="dark"] .pear-admin .layui-logo .title { color: #e6e8eb !important; }

html[data-theme="dark"] .pear-admin .layui-side {
    background: #181a1c !important; border-right-color: #2b2e33;
}
html[data-theme="dark"] .pear-admin .layui-side.layui-bg-black { background: #181a1c !important; }
html[data-theme="dark"] .pear-admin .layui-side-scroll,
html[data-theme="dark"] .pear-admin .pear-side-scroll,
html[data-theme="dark"] .pear-admin .pear-nav-tree,
html[data-theme="dark"] #sideMenu .pear-nav-tree,
html[data-theme="dark"] #sideMenu .pear-nav-tree.layui-nav-tree,
html[data-theme="dark"] #sideMenu .pear-nav-tree .layui-nav-item,
html[data-theme="dark"] #sideMenu .pear-nav-tree .layui-nav-itemed { background: #181a1c !important; }
html[data-theme="dark"] .pear-admin .layui-side-scroll::-webkit-scrollbar-thumb { background: #3a3e44; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-item > a { color: #b9bec6 !important; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-item > a:hover { background: #232528 !important; color: #fff !important; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-item > a > i { color: #7d838c; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-item > a:hover > i { color: #8db4ff; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-itemed > a { color: #e6e8eb !important; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-itemed > a > i { color: #8db4ff; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-more { border-top-color: #7d838c !important; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-itemed > a > .layui-nav-more {
    border-top-color: transparent !important; border-bottom-color: #7d838c !important;
}
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-this,
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-this > a,
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-this > a:hover,
html[data-theme="dark"] #sideMenu .pear-nav-tree .layui-this,
html[data-theme="dark"] #sideMenu .pear-nav-tree .layui-this > a {
    background: #1e2a44 !important; color: #8db4ff !important;
}
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-this > a::before { background: #4c8dff; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-child,
html[data-theme="dark"] #sideMenu .pear-nav-tree .layui-nav-child { background: #1d1f22 !important; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-child dd a { color: #9aa0a9 !important; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-child dd a:hover { background: #232528 !important; color: #8db4ff !important; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-child dd.layui-this a { background: #1e2a44 !important; color: #8db4ff !important; }

html[data-theme="dark"] .pear-admin .layui-body { background: #131416 !important; }
html[data-theme="dark"] .pear-admin .pear-tab { background: #1a1b1e !important; border-bottom-color: #2b2e33; }
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-title { background: #1a1b1e !important; }
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-title li { color: #9aa0a9; }
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-title li:hover { background: #232528; color: #e6e8eb; }
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-title li.layui-this { background: #1a1b1e; color: #8db4ff; }
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-control li { color: #7d838c; }
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-control li:hover { background: #1e2a44; color: #8db4ff; }
html[data-theme="dark"] .sk-admin-footer {
    background: #1a1b1e !important; border-top-color: #2b2e33 !important; color: #7d838c !important;
}

/* 后台内页 */
html[data-theme="dark"] body.pear-container {
    background: #131416 !important; color: #e6e8eb;
}
html[data-theme="dark"] .pear-container .layui-card {
    background: #1c1e20; border-color: #303338;
    box-shadow: 0 1px 2px rgba(0,0,0,.4) !important;
}
html[data-theme="dark"] .pear-container .layui-card-header {
    border-bottom-color: #26292d; color: #e6e8eb;
}
html[data-theme="dark"] .pear-container .layui-table-view { border-color: #303338; }
html[data-theme="dark"] .pear-container .layui-table-header th {
    background: #232528 !important; color: #a8adb5 !important; border-color: #303338 !important;
}
html[data-theme="dark"] .pear-container .layui-table td,
html[data-theme="dark"] .pear-container .layui-table th { border-color: #2c2f34; }
html[data-theme="dark"] .pear-container .layui-table tbody tr:hover,
html[data-theme="dark"] .pear-container .layui-table-hover { background: #24272b !important; }
html[data-theme="dark"] .pear-container .layui-table-cell { color: #e6e8eb; }
html[data-theme="dark"] .pear-container .layui-table-tool { background: #1c1e20; border-bottom-color: #26292d; }
html[data-theme="dark"] .pear-container .layui-table-page { border-top-color: #26292d; }
html[data-theme="dark"] .pear-container .layui-laypage a,
html[data-theme="dark"] .pear-container .layui-laypage span {
    background: #232528; border-color: #3a3d43; color: #b3b8c0;
}
html[data-theme="dark"] .pear-container .layui-laypage a:hover { color: #8db4ff; }
html[data-theme="dark"] .pear-container .layui-laypage .layui-laypage-curr .layui-laypage-em { background: #3370ff; }
html[data-theme="dark"] .pear-container .layui-form-label { color: #a8adb5; }
html[data-theme="dark"] .pear-container .layui-input,
html[data-theme="dark"] .pear-container .layui-textarea,
html[data-theme="dark"] .pear-container .layui-select {
    background: #232528; border-color: #3a3d43; color: #e6e8eb;
}
html[data-theme="dark"] .pear-container .layui-input:focus,
html[data-theme="dark"] .pear-container .layui-textarea:focus { border-color: #4c8dff !important; box-shadow: 0 0 0 2px rgba(76,141,255,.14); }
html[data-theme="dark"] .pear-container .layui-input::placeholder { color: #6f757e; }
html[data-theme="dark"] .pear-container .layui-form-select dl {
    background: #232528; border-color: #3a3d43; box-shadow: 0 12px 28px rgba(0,0,0,.5);
}
html[data-theme="dark"] .pear-container .layui-form-select dl dd { color: #b3b8c0; }
html[data-theme="dark"] .pear-container .layui-form-select dl dd:hover,
html[data-theme="dark"] .pear-container .layui-form-select dl dd.layui-this { background: #1e2a44; color: #8db4ff; }
html[data-theme="dark"] .pear-container .layui-form-select .layui-edge { border-top-color: #7d838c; }
html[data-theme="dark"] .pear-container .layui-form-switch { background: #232528; border-color: #3a3d43; }
html[data-theme="dark"] .pear-container .layui-form-switch em { color: #7d838c !important; }
html[data-theme="dark"] .pear-container .layui-form-onswitch { background: #00b578 !important; border-color: #00b578 !important; }
html[data-theme="dark"] .pear-container .layui-form-onswitch em { color: #fff !important; }
html[data-theme="dark"] .pear-container .layui-tab-brief > .layui-tab-title { border-bottom-color: #2c2f34; }
html[data-theme="dark"] .pear-container .layui-tab-brief > .layui-tab-title .layui-this { color: #8db4ff; }
html[data-theme="dark"] .pear-container .layui-tab-title li { color: #9aa0a9; }
html[data-theme="dark"] .pear-container .layui-tab-title li.layui-this { color: #8db4ff; }
html[data-theme="dark"] .pear-container .layui-tab-content { background: transparent; }
html[data-theme="dark"] .pear-container blockquote,
html[data-theme="dark"] .pear-container .layui-elem-quote {
    background: #1a1c1f; border-color: #2b2e33; color: #b3b8c0;
}
html[data-theme="dark"] .pear-container .layui-form-radio > i { color: #5f656e; }
html[data-theme="dark"] .pear-container .layui-form-radioed > i,
html[data-theme="dark"] .pear-container .layui-form-radio > i:hover { color: #4c8dff; }
html[data-theme="dark"] .pear-container .layui-form-checkbox[lay-skin=primary] > i { background: #232528; border-color: #3a3d43; }
html[data-theme="dark"] .pear-container .layui-form-checked[lay-skin=primary] > i { background: #3370ff; border-color: #3370ff; }
html[data-theme="dark"] .pear-container .layui-btn-primary {
    background: #24262a !important; border-color: #3a3d43 !important; color: #e6e8eb !important;
}
html[data-theme="dark"] .pear-container .layui-btn-primary:hover {
    background: #2a2d32 !important; border-color: #4c8dff !important; color: #8db4ff !important;
}
html[data-theme="dark"] .pear-container .layui-btn-disabled { background: #232528 !important; border-color: #303338 !important; color: #5f656e !important; }
html[data-theme="dark"] .pear-container .layui-elem-field { border-color: #303338; }
html[data-theme="dark"] .pear-container .layui-elem-field legend { color: #e6e8eb; }
html[data-theme="dark"] .pear-container .layui-table-tool-temp { color: #e6e8eb; }
html[data-theme="dark"] .pear-container .layui-table-tool-self .layui-inline { color: #a8adb5; }
html[data-theme="dark"] .pear-container .layui-form-checkbox[lay-skin=primary] span { color: #b3b8c0; }
html[data-theme="dark"] .pear-container .sk-af { background: #131416 !important; }
html[data-theme="dark"] .pear-container .sk-af .sk-sec { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .pear-container .sk-af .sk-sec-hd {
    background: #202225; border-bottom-color: #2c2f34; color: #e6e8eb;
}
html[data-theme="dark"] .pear-container .sk-af-foot,
html[data-theme="dark"] .sk-af-foot { background: #1c1e20 !important; border-top-color: #303338 !important; }
html[data-theme="dark"] .pear-container .sk-dlg-cell { background: #232528; }
html[data-theme="dark"] .pear-container .sk-dlg-note { background: #1a1c1f; border-color: #303338; color: #a8adb5; }

/* 后台列表卡片模式 */
html[data-theme="dark"] .layui-table-view.sk-cards { background: #131416; }
html[data-theme="dark"] .layui-table-view.sk-cards tbody tr {
    background: #1c1e20 !important; border-color: #303338 !important;
}
html[data-theme="dark"] .layui-table-view.sk-cards tbody td { border-bottom-color: #26292d !important; }
html[data-theme="dark"] .layui-table-view.sk-cards .layui-table-cell::before { color: #7d838c !important; }

/* 后台弹层（layer / layer.open iframe） */
html[data-theme="dark"] .pear-admin ~ .layui-layer,
html[data-theme="dark"] body .layui-layer { color: #e6e8eb; }
html[data-theme="dark"] .layui-layer-iframe iframe { background: #131416; }
html[data-theme="dark"] .layui-layer-setwin a i { color: #9aa0a9; }

/* ==================================================================
   后台菜单栏修复：侧栏在页脚上方结束，最后一项不再被页脚压住
   ================================================================== */
.pear-admin .layui-side { bottom: 28px !important; }
.pear-admin .layui-side-scroll { padding-bottom: 4px; }
.pear-mini .layui-side { bottom: 28px !important; }
@media (max-width: 768px) {
    .pear-admin .layui-side,
    .pear-mini .layui-side { bottom: 0 !important; }
}

/* ---------- 深色补丁：会员中心结算面板 / 选中勾 / 挂件 ---------- */
html[data-theme="dark"] .sk-page .vip-pay,
html[data-theme="dark"] .vip-pay {
    background: #1a1c1f; border-color: #26292d;
}
html[data-theme="dark"] .vip-ch.is-on .vc-check { background: #1677ff; border-color: #1677ff; }
html[data-theme="dark"] .vip-ch-wxpay.is-on .vc-check { background: #1fbf5f; border-color: #1fbf5f; }
html[data-theme="dark"] .vip-plan.on .vp-check { background: var(--sk-pri); border-color: var(--sk-pri); }

html[data-theme="dark"] .sk-side-btn,
html[data-theme="dark"] .sk-side-btn.sk-side-qr {
    background: #232528; border-color: #303338; color: #b3b8c0;
    box-shadow: 0 6px 18px -10px rgba(0,0,0,.8);
}
html[data-theme="dark"] .sk-side-btn:hover { color: #8db4ff; border-color: #4c8dff; }
html[data-theme="dark"] .sk-side-btn .sk-side-txt { color: #b3b8c0; }
html[data-theme="dark"] .sk-side-qr .sk-side-txt { background: rgba(35,37,40,.9); }
html[data-theme="dark"] .sk-qr-pop { background: #232528; border-color: #35383e; }
html[data-theme="dark"] .sk-qr-pop p { color: var(--sk-text-3); }

html[data-theme="dark"] .sk-announce { background: #33270f; border-bottom-color: #4a3818; }
html[data-theme="dark"] .sk-announce-inner { color: #ffc46b; }
html[data-theme="dark"] .sk-announce-close { color: #b08a4a; }

html[data-theme="dark"] .sk-ai-panel,
html[data-theme="dark"] .sk-chat-panel { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .sk-ai-head,
html[data-theme="dark"] .sk-chat-head { background: #232528; border-bottom-color: #303338; color: #e6e8eb; }
html[data-theme="dark"] .sk-ai-head b,
html[data-theme="dark"] .sk-chat-head b { color: #e6e8eb; }
html[data-theme="dark"] .sk-ai-msg.bot,
html[data-theme="dark"] .sk-chat-msg.u { background: #232528; border-color: #35383e; color: #d7dbe2; }
html[data-theme="dark"] .sk-ai-msg.err { background: #331a1a; border-color: #4d2626; color: #ff9a95; }
html[data-theme="dark"] .sk-chat-msg.sys { background: #2a2d32; color: #9aa0a9; }
html[data-theme="dark"] .sk-ai-body,
html[data-theme="dark"] .sk-chat-body { background: #1c1e20; }
html[data-theme="dark"] .sk-ai-foot,
html[data-theme="dark"] .sk-chat-foot { background: #202225; border-top-color: #303338; }
html[data-theme="dark"] .sk-ai-foot input,
html[data-theme="dark"] .sk-chat-foot input { background: #232528; border-color: #3a3d43; color: #e6e8eb; }
html[data-theme="dark"] .sk-ai-close,
html[data-theme="dark"] .sk-chat-close { color: #9aa0a9; }

/* 品牌 Logo：深色下切换为浅字版本（仅默认 Logo 生效） */
html[data-theme="dark"] .sk-pub-logo img,
html[data-theme="dark"] .sk-user-logo img,
html[data-theme="dark"] .sk-login-logo img { filter: none; }

/* 深色 Logo 先由 CSS 直接替换，避免脚本加载前闪一下浅色字 */
html[data-theme="dark"] img[data-logo-dark] { content: url("/assets/logo/logo-dark.svg"); }

/* ---------- 后台各内页的自定义浅色块 ---------- */
/* 仪表盘 */
html[data-theme="dark"] .d-card,
html[data-theme="dark"] .d-todo,
html[data-theme="dark"] .d-kpi { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .d-card-hd { border-bottom-color: #26292d; color: #e6e8eb; }
html[data-theme="dark"] .d-card-hd .more { color: #7d838c; }
html[data-theme="dark"] .d-todo .lb,
html[data-theme="dark"] .d-kpi .lb { color: #a8adb5; }
html[data-theme="dark"] .d-todo .num,
html[data-theme="dark"] .d-kpi .val { color: #e6e8eb; }
html[data-theme="dark"] .d-kpi .val small,
html[data-theme="dark"] .d-kpi .sub { color: #7d838c; }
html[data-theme="dark"] .dash-quick a { background: #1c1e20; border-color: #303338; color: #d7dbe2; }
html[data-theme="dark"] .dash-quick a:hover { background: #1e2a44; border-color: #4c8dff; color: #8db4ff; }
html[data-theme="dark"] .d-bar .nm { color: #a8adb5; }
html[data-theme="dark"] .d-bar .track { background: #2a2d32; }
html[data-theme="dark"] .d-bar .pct { color: #e6e8eb; }
html[data-theme="dark"] .d-list td { border-bottom-color: #26292d; color: #e6e8eb; }
html[data-theme="dark"] .d-list .t,
html[data-theme="dark"] .d-list .r { color: #7d838c; }
html[data-theme="dark"] .d-tag.ok { color: #6ddc8a; background: #1d2f22; }
html[data-theme="dark"] .d-tag.wait { color: #ffb44d; background: #33270f; }
html[data-theme="dark"] .d-tag.off { color: #9aa0a9; background: #2a2d32; }
html[data-theme="dark"] .d-empty { color: #7d838c; }
html[data-theme="dark"] .d-sys span { color: #7d838c; }
html[data-theme="dark"] .d-sys b { color: #e6e8eb; }

/* 数据大屏 */
html[data-theme="dark"] .s-head h2,
html[data-theme="dark"] .s-card .v,
html[data-theme="dark"] .s-panel h4 { color: #e6e8eb; }
html[data-theme="dark"] .s-head span,
html[data-theme="dark"] .s-card .k,
html[data-theme="dark"] .s-card .v small { color: #7d838c; }
html[data-theme="dark"] .s-card,
html[data-theme="dark"] .s-panel { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .s-panel h4 { border-bottom-color: #26292d; }
html[data-theme="dark"] .s-legend,
html[data-theme="dark"] .s-col .lb { color: #7d838c; }
html[data-theme="dark"] .s-dist .row { color: #a8adb5; }

/* 文件浏览 */
html[data-theme="dark"] .b-head,
html[data-theme="dark"] .b-list { background: #1c1e20; }
html[data-theme="dark"] .b-user .n { color: #e6e8eb; }
html[data-theme="dark"] .b-user .m,
html[data-theme="dark"] .b-crumb span.sep { color: #7d838c; }
html[data-theme="dark"] .b-crumb { color: #a8adb5; }
html[data-theme="dark"] .b-row { border-bottom-color: #26292d; color: #d7dbe2; }
html[data-theme="dark"] .b-row:hover { background: #232528; }
html[data-theme="dark"] .b-row .nm.folder { color: #8db4ff; }
html[data-theme="dark"] .b-row .sz,
html[data-theme="dark"] .b-row .tm { color: #7d838c; }
html[data-theme="dark"] .b-empty { color: #7d838c; }

/* 媒体库 */
html[data-theme="dark"] .m-toolbar,
html[data-theme="dark"] .m-item,
html[data-theme="dark"] .m-empty { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .m-toolbar .muted,
html[data-theme="dark"] .m-empty { color: #7d838c; }
html[data-theme="dark"] .m-item .thumb { background-color: #232528; }
html[data-theme="dark"] .m-item .meta { color: #a8adb5; border-top-color: #26292d; }
html[data-theme="dark"] .m-preview-img { background: #17181a; }
html[data-theme="dark"] .m-preview-img img { background: #232528; }
html[data-theme="dark"] .m-preview-meta .nm { color: #e6e8eb; }
html[data-theme="dark"] .m-preview-meta .sz { color: #7d838c; }

/* 权限矩阵 */
html[data-theme="dark"] .perm-top,
html[data-theme="dark"] .perm-card { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .perm-top h2,
html[data-theme="dark"] .perm-card-hd h3 { color: #e6e8eb; }
html[data-theme="dark"] .perm-top .total,
html[data-theme="dark"] .perm-top .tip,
html[data-theme="dark"] .perm-card-hd .cnt { color: #7d838c; }
html[data-theme="dark"] .perm-card-hd { background: #202225; border-bottom-color: #26292d; }
html[data-theme="dark"] .perm-card-hd code { background: #1e2a44; color: #8db4ff; }
html[data-theme="dark"] .perm-item { background: #232528; border-color: #303338; color: #d7dbe2; }
html[data-theme="dark"] .perm-item code { color: #7d838c; }
html[data-theme="dark"] .perm-empty { color: #7d838c; }

/* 系统设置：卡片入口 / 表单 */
html[data-theme="dark"] .cfg-card,
html[data-theme="dark"] .cfg-tip { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .cfg-card h4 { color: #e6e8eb; }
html[data-theme="dark"] .cfg-card p,
html[data-theme="dark"] .cfg-tip { color: #9aa0a9; }
html[data-theme="dark"] .cfg-head,
html[data-theme="dark"] .cfg-wrap > .layui-form,
html[data-theme="dark"] .cfg-foot { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .cfg-head h3 { color: #e6e8eb; }
html[data-theme="dark"] .cfg-head p,
html[data-theme="dark"] .cfg-tip,
html[data-theme="dark"] .cfg-unit { color: #7d838c; }
html[data-theme="dark"] .cfg-group-title { color: #e6e8eb; }
html[data-theme="dark"] .cfg-img .preview { background-color: #232528; border-color: #3a3d43; }
html[data-theme="dark"] .cfg-editor-wrap { border-color: #3a3d43; }
html[data-theme="dark"] .cfg-editor-bar { background: #202225; border-bottom-color: #303338; color: #7d838c; }
html[data-theme="dark"] .be-dlg { background: #1c1e20; }
html[data-theme="dark"] .be-dlg-foot { background: #202225; border-top-color: #303338; }

/* 提现管理 */
html[data-theme="dark"] .wd-stat .item,
html[data-theme="dark"] .wd-tabs { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .wd-stat .item .n { color: #e6e8eb; }
html[data-theme="dark"] .wd-stat .item .t { color: #7d838c; }
html[data-theme="dark"] .wd-tabs a { color: #a8adb5; }
html[data-theme="dark"] .wd-tabs a.on { color: #8db4ff; border-bottom-color: #4c8dff; }
html[data-theme="dark"] .wd-search input { background: #232528; border-color: #3a3d43; color: #e6e8eb; }

/* VIP 设置 */
html[data-theme="dark"] .vip-cfg { background: #1c1e20 !important; }
html[data-theme="dark"] .vip-cfg-foot { border-top-color: #26292d; }
html[data-theme="dark"] .vip-tip,
html[data-theme="dark"] .vip-cfg-note { color: #7d838c; }

/* 工单详情（后台；前台 tk-* 是另一套结构，全部加上 .pear-container 限定） */
html[data-theme="dark"] .pear-container .tk-head,
html[data-theme="dark"] .pear-container .tk-thread { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .pear-container .tk-head h3 { color: #e6e8eb; }
html[data-theme="dark"] .pear-container .tk-meta { background: #303338; border-color: #303338; }
html[data-theme="dark"] .pear-container .tk-meta .it { background: #232528; }
html[data-theme="dark"] .pear-container .tk-meta .it .k { color: #7d838c; }
html[data-theme="dark"] .pear-container .tk-meta .it .v { color: #e6e8eb; }
html[data-theme="dark"] .pear-container .msg .top { color: #7d838c; }
html[data-theme="dark"] .pear-container .msg .text { background: #232528; color: #e6e8eb; }
html[data-theme="dark"] .pear-container .msg.admin .text { background: #17281f; }
html[data-theme="dark"] .pear-container .tk-foot { background: #1c1e20; border-top-color: #303338; }
html[data-theme="dark"] .pear-container .tk-foot textarea { background: #232528; border-color: #3a3d43; color: #e6e8eb; }
html[data-theme="dark"] .pear-container .tk-thread .tk-empty { color: #7d838c; }

/* 前台工单（tk-*，仅用户中心） */
html[data-theme="dark"] .tk-head h2 { color: #e6e8eb; }
html[data-theme="dark"] .tk-new { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .tk-field label { color: #a8adb5; }
html[data-theme="dark"] .tk-field input,
html[data-theme="dark"] .tk-field select,
html[data-theme="dark"] .tk-field textarea { background: #232528; border-color: #3a3d43; color: #e6e8eb; }
html[data-theme="dark"] .tk-list,
html[data-theme="dark"] .tk-detail { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .tk-item { border-bottom-color: #26292d; }
html[data-theme="dark"] .tk-item:hover { background: #232528; }
html[data-theme="dark"] .tk-item .tk-title,
html[data-theme="dark"] .tk-detail h3 { color: #e6e8eb; }
html[data-theme="dark"] .tk-item .tk-cat,
html[data-theme="dark"] .tk-item .tk-time,
html[data-theme="dark"] .tk-meta,
html[data-theme="dark"] .tk-empty,
html[data-theme="dark"] .tk-msg .who { color: #7d838c; }
html[data-theme="dark"] .tk-s0 { background: #33270f; color: #ffb44d; }
html[data-theme="dark"] .tk-s1 { background: #1e2a44; color: #8db4ff; }
html[data-theme="dark"] .tk-s2 { background: #17281f; color: #6ddc8a; }
html[data-theme="dark"] .tk-s3 { background: #2a2d32; color: #9aa0a9; }
html[data-theme="dark"] .tk-msg .ct { background: #232528; color: #e6e8eb; }
html[data-theme="dark"] .tk-msg.admin .ct { background: #17281f; }
html[data-theme="dark"] .tk-reply textarea { background: #232528; border-color: #3a3d43; color: #e6e8eb; }
html[data-theme="dark"] .tk-btn.ghost { background: #24262a; color: #b3b8c0; border-color: #3a3d43; }

/* 客服会话 */
html[data-theme="dark"] .chat-side,
html[data-theme="dark"] .chat-main { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .side-head { border-bottom-color: #26292d; }
html[data-theme="dark"] .side-head .tit,
html[data-theme="dark"] .sess-item .name,
html[data-theme="dark"] .main-head .who { color: #e6e8eb; }
html[data-theme="dark"] .side-head input { background: #232528; border-color: #3a3d43; color: #e6e8eb; }
html[data-theme="dark"] .side-tabs a { background: #232528; color: #a8adb5; }
html[data-theme="dark"] .side-tabs a.on { background: #1e2a44; color: #8db4ff; }
html[data-theme="dark"] .sess-item { border-bottom-color: #26292d; }
html[data-theme="dark"] .sess-item:hover { background: #22252a; }
html[data-theme="dark"] .sess-item.on { background: #1e2a44; }
html[data-theme="dark"] .sess-item .time,
html[data-theme="dark"] .sess-item .msg,
html[data-theme="dark"] .sess-item .closed,
html[data-theme="dark"] .empty-tip { color: #7d838c; }
html[data-theme="dark"] .main-head { border-bottom-color: #26292d; }
html[data-theme="dark"] .main-head .meta { color: #7d838c; }
html[data-theme="dark"] .msg-body { background: #17181a; }
html[data-theme="dark"] .msg-row.u .bubble { background: #232528; border-color: #35383e; color: #e6e8eb; }
html[data-theme="dark"] .msg-row.sys .bubble { background: #2a2d32; color: #9aa0a9; }
html[data-theme="dark"] .avatar.s { background: #2f3237; color: #9aa0a9; }
html[data-theme="dark"] .main-foot { background: #1c1e20; border-top-color: #26292d; }
html[data-theme="dark"] .main-foot textarea { background: #232528; border-color: #3a3d43; color: #e6e8eb; }
html[data-theme="dark"] .main-foot .tip { color: #7d838c; }
html[data-theme="dark"] .main-empty { color: #7d838c; }

/* 角色编辑 */
html[data-theme="dark"] .perm-group { border-color: #303338; }
html[data-theme="dark"] .perm-group-title { color: #e6e8eb; }
html[data-theme="dark"] .tips { color: #7d838c; }
html[data-theme="dark"] .perm-parent { color: #7aa7ff; }

/* 报告详情里的只读内容 */
html[data-theme="dark"] .sk-ro { background: #232528 !important; border-left-color: #3a3d43 !important; color: #d7dbe2 !important; }

/* 图表容器（ECharts 由脚本按主题重绘） */
html[data-theme="dark"] #trendChart,
html[data-theme="dark"] #pieChart { background: transparent; }

/* ---------- 深色：Layui 表格容器（Pear 里大量 !important，这里同步提权） ---------- */
html[data-theme="dark"] .pear-container .layui-table-view,
html[data-theme="dark"] .pear-container .layui-table-box,
html[data-theme="dark"] .pear-container .layui-table-main,
html[data-theme="dark"] .pear-container .layui-table-body,
html[data-theme="dark"] .pear-container .layui-table-fixed,
html[data-theme="dark"] .pear-container .layui-table-fixed .layui-table-body {
    background: #1c1e20 !important;
}
html[data-theme="dark"] .pear-container .layui-table tbody tr { background: #1c1e20 !important; }
html[data-theme="dark"] .pear-container .layui-table tbody tr:nth-child(even) { background: #1f2124 !important; }
html[data-theme="dark"] .pear-container .layui-table tbody tr:hover,
html[data-theme="dark"] .pear-container .layui-table-hover { background: #262a30 !important; }
html[data-theme="dark"] .pear-container .layui-table thead tr,
html[data-theme="dark"] .pear-container .layui-table-header { background: #232528 !important; }
html[data-theme="dark"] .pear-container .layui-table td,
html[data-theme="dark"] .pear-container .layui-table th,
html[data-theme="dark"] .pear-container .layui-table-cell { color: #e6e8eb !important; }
html[data-theme="dark"] .pear-container .layui-table th,
html[data-theme="dark"] .pear-container .layui-table-header th { color: #a8adb5 !important; }
html[data-theme="dark"] .pear-container .layui-table-tool { background: #1c1e20 !important; }
html[data-theme="dark"] .pear-container .layui-table-page { background: #1c1e20 !important; }
html[data-theme="dark"] .pear-container .layui-table-tool-panel {
    background: #232528; border-color: #3a3d43;
}
html[data-theme="dark"] .pear-container .layui-table-tool-panel li { color: #b3b8c0; }
html[data-theme="dark"] .pear-container .layui-table-tool-panel li:hover { background: #2a2d32; }
html[data-theme="dark"] .pear-container .layui-table-tool .layui-inline[lay-event] {
    color: #b3b8c0; border-color: #3a3d43;
}
html[data-theme="dark"] .pear-container .layui-table-tool .layui-inline[lay-event]:hover { border-color: #4c8dff; color: #8db4ff; }
html[data-theme="dark"] .pear-container .layui-table-mend,
html[data-theme="dark"] .pear-container .layui-table-patch { background: #1c1e20 !important; }
html[data-theme="dark"] .pear-container .layui-table-total { background: #232528 !important; }
html[data-theme="dark"] .pear-container .layui-table-total td { color: #e6e8eb !important; }
html[data-theme="dark"] .pear-container .layui-table-fixed-l { box-shadow: 1px 0 8px rgba(0,0,0,.5); }
html[data-theme="dark"] .pear-container .layui-table-fixed-r { box-shadow: -1px 0 8px rgba(0,0,0,.5); }
html[data-theme="dark"] .pear-container .layui-table .layui-form-checkbox[lay-skin=primary] > i { background: #232528; border-color: #3a3d43; }
html[data-theme="dark"] .pear-container .layui-table .layui-form-checked[lay-skin=primary] > i { background: #3370ff; border-color: #3370ff; }
html[data-theme="dark"] .pear-container .layui-laypage select { background: #232528; border-color: #3a3d43; color: #e6e8eb; }
html[data-theme="dark"] .pear-container .layui-none { color: #7d838c; }

/* ---------- 深色：列表细节 ---------- */
html[data-theme="dark"] .sk-uava { background: #1e2a44; color: #8db4ff; }
html[data-theme="dark"] .sk-uava-img { background: #2a2d32; }
html[data-theme="dark"] .pear-container .layui-table-body a,
html[data-theme="dark"] .pear-container .layui-table-cell a { color: #7aa7ff !important; }
html[data-theme="dark"] .pear-container .layui-table-body a:hover { color: #a3c4ff !important; }
html[data-theme="dark"] .pear-container .layui-laypage-btn {
    background: #3370ff !important; border-color: #3370ff !important; color: #fff !important;
}
html[data-theme="dark"] .pear-container .layui-laypage-btn:hover { background: #245bdb !important; border-color: #245bdb !important; }
html[data-theme="dark"] .pear-container .sk-filter-btn,
html[data-theme="dark"] .pear-container .pear-btn:not(.pear-btn-primary):not(.pear-btn-danger):not(.pear-btn-success):not(.pear-btn-warming) {
    background: #24262a !important; border-color: #3a3d43 !important; color: #e6e8eb !important;
}
html[data-theme="dark"] .pear-container .sk-filter-btn:hover,
html[data-theme="dark"] .pear-container .pear-btn:not(.pear-btn-primary):not(.pear-btn-danger):not(.pear-btn-success):not(.pear-btn-warming):hover {
    background: #2a2d32 !important; border-color: #4c8dff !important; color: #8db4ff !important;
}

/* ---------- 深色：分享 / 下载页 ---------- */
html[data-theme="dark"] .dl2-plan,
html[data-theme="dark"] .dl2-vip { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .dl2-vip-hd {
    background: linear-gradient(180deg, #202225, #1c1e20);
    border-bottom-color: #26292d;
}
html[data-theme="dark"] .dl2-vip-card { background: #1d1f22; border-color: #303338; }
html[data-theme="dark"] .dl2-vip-card:hover { border-color: #3d5a86; }
html[data-theme="dark"] .dl2-vip-card.hot {
    background: linear-gradient(180deg, #16281f, #1c1e20); border-color: #2c5a42;
}
html[data-theme="dark"] .dl2-vip-card .price { color: #f2f4f7; }
html[data-theme="dark"] .dl2-vip-card .was { color: #6f757e; }
html[data-theme="dark"] .dl2-save { background: #1d2f22; border-color: #2c5a42; color: #6ddc8a; }
html[data-theme="dark"] .dl2-count { background: #331a1a; border-color: #4d2626; color: #ff9a95; }
html[data-theme="dark"] .dl2-vip-card .off { background: #1d2f22; border-color: #2c5a42; color: #6ddc8a; }
html[data-theme="dark"] .dl2-vip-card .badge { background: #33270f; border-color: #4a3818; color: #ffb44d; }
html[data-theme="dark"] .dl2-vip-card .perk { color: #ffb44d; }
html[data-theme="dark"] .dl2-vip-card .buy { background: transparent; border-color: #4c8dff; color: #8db4ff; }
html[data-theme="dark"] .dl2-vip-card .buy:hover { background: #3370ff; color: #fff; }
html[data-theme="dark"] .dl2-vip-card.hot .buy { background: #16b777; border-color: #16b777; color: #fff; }
html[data-theme="dark"] .dl2-vip-card.hot .buy:hover { background: #0fa268; border-color: #0fa268; }
html[data-theme="dark"] .dl2-ico.slow,
html[data-theme="dark"] .dl2-tag.slow { background: #33270f; color: #ffb44d; }
html[data-theme="dark"] .dl2-ico.stable,
html[data-theme="dark"] .dl2-tag.stable { background: #1e2a44; color: #8db4ff; }
html[data-theme="dark"] .dl2-ico.fast,
html[data-theme="dark"] .dl2-tag.rec { background: #17281f; color: #6ddc8a; }
html[data-theme="dark"] .dl2-eta b.slow { color: #ffb44d; }
html[data-theme="dark"] .dl2-eta b.stable { color: #8db4ff; }
html[data-theme="dark"] .dl2-eta b.fast { color: #6ddc8a; }
html[data-theme="dark"] .dl-tip { background: #33270f; border-color: #4a3818; color: #ffc46b; }
html[data-theme="dark"] .dl-tip b { color: #ffb44d; }

/* 前台表格 / 分享链接 */
html[data-theme="dark"] .table a,
html[data-theme="dark"] .bootstrap-table a { color: #7aa7ff; }
html[data-theme="dark"] .table a:hover,
html[data-theme="dark"] .bootstrap-table a:hover { color: #a3c4ff; }

/* ---------- 深色：帮助中心（hp-* 列表，与官网 hp-* 区块区分） ---------- */
html[data-theme="dark"] .hp-list { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .hp-list.is-empty { background: #1a1c1f; border-color: #303338; }
html[data-theme="dark"] .hp-item { border-bottom-color: #26292d; }
html[data-theme="dark"] .hp-item:hover { background: #232528; }
html[data-theme="dark"] .hp-item .t { color: #e6e8eb; }
html[data-theme="dark"] .hp-item .d,
html[data-theme="dark"] .hp-item .m { color: #7d838c; }
html[data-theme="dark"] .hp-tag { background: #1e2a44; color: #8db4ff; }
html[data-theme="dark"] .hp-tag.notice { background: #33270f; color: #ffb44d; }
html[data-theme="dark"] .hp-empty { color: #7d838c; }
html[data-theme="dark"] .hp-empty .ico { background: #1e2a44; color: #8db4ff; }
html[data-theme="dark"] .hp-search input { background: #232528; border-color: #3a3d43; color: #e6e8eb; }
html[data-theme="dark"] .hp-search input:hover { background: #26292d; }

/* ---------- 深色：老模板 .wrap / .well / fieldset（分销、提现、记录） ---------- */
html[data-theme="dark"] .all-box > .wrap { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .well {
    background: #1a1c1f !important; border-color: #303338 !important; color: #a8adb5 !important;
}
html[data-theme="dark"] .well a[style] { color: #b3b8c0 !important; }
html[data-theme="dark"] fieldset { border-color: #303338; }
html[data-theme="dark"] .tab-content > .tab-pane { color: #e6e8eb; }

/* ---------- 深色：后台移动端顶栏 / 标签滚动按钮 ---------- */
html[data-theme="dark"] .sk-admin-mbrand { color: #e6e8eb; }
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-bar {
    background: #1a1b1e !important; border-color: #2b2e33 !important; color: #9aa0a9;
}
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-bar .layui-icon { color: #9aa0a9; }
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-bar:hover { background: #232528 !important; }
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-bar:hover .layui-icon { color: #8db4ff; }

/* 移动端卡片表格：表体底层不能留白（否则卡片间隙出现白条） */
html[data-theme="dark"] .layui-table-view.sk-cards table,
html[data-theme="dark"] .layui-table-view.sk-cards tbody,
html[data-theme="dark"] .layui-table-view.sk-cards .layui-table-main { background: transparent !important; }

/* Layui 表格本体（行单元格之间的底） */
html[data-theme="dark"] .pear-container table.layui-table { background: #1c1e20 !important; }
html[data-theme="dark"] .pear-container table.layui-table tbody { background: transparent !important; }

/* ---------- 深色：收益账本（lg-*） ---------- */
html[data-theme="dark"] .lg-card,
html[data-theme="dark"] .lg-filter,
html[data-theme="dark"] .lg-panel { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .lg-card .t,
html[data-theme="dark"] .lg-card .n small,
html[data-theme="dark"] .lg-tip,
html[data-theme="dark"] .lg-cat .c .line { color: #7d838c; }
html[data-theme="dark"] .lg-card .n { color: #e6e8eb; }
html[data-theme="dark"] .lg-card.inc .n { color: #ff7b76; }
html[data-theme="dark"] .lg-card.exp .n { color: #3ddc84; }
html[data-theme="dark"] .lg-card.bal .n { color: #7aa7ff; }
html[data-theme="dark"] .lg-filter label { color: #a8adb5; }
html[data-theme="dark"] .lg-panel h4,
html[data-theme="dark"] .lg-cat .c .name { color: #e6e8eb; }
html[data-theme="dark"] .lg-cat .c { background: #232528; border-color: #303338; }
html[data-theme="dark"] .lg-cat .c .line b.plus { color: #ff7b76; }
html[data-theme="dark"] .lg-cat .c .line b.minus { color: #3ddc84; }

/* 深色：老式浅色胶囊链接 / 蓝色主按钮提亮对比度 */
html[data-theme="dark"] .all-box > .wrap .well > a {
    background: #24262a; border-color: #3a3d43; color: #b3b8c0 !important;
}
html[data-theme="dark"] .all-box > .wrap .well > a:hover {
    background: #2a2d32; border-color: #4c8dff; color: #8db4ff !important;
}
html[data-theme="dark"] .all-box .top-item.upload { background: #1677ff !important; }
html[data-theme="dark"] .tk-btn { background: #1677ff; }
html[data-theme="dark"] .tk-btn:hover { background: #0f5ed7; }

/* ---------- 深色：彩色徽标 / 橙绿按钮的对比度 ---------- */
html[data-theme="dark"] .layui-badge.layui-bg-orange {
    background: #3a2a12 !important; color: #ffb44d !important;
}
html[data-theme="dark"] .pear-container .pear-btn-warming,
html[data-theme="dark"] .pear-btn-warming {
    background: #a85a00 !important; border-color: #a85a00 !important; color: #fff !important;
}
html[data-theme="dark"] .pear-container .pear-btn-warming:hover,
html[data-theme="dark"] .pear-btn-warming:hover {
    background: #8f4d00 !important; border-color: #8f4d00 !important;
}
html[data-theme="dark"] .pear-container .pear-btn-success,
html[data-theme="dark"] .pear-btn-success {
    background: #0b7a4b !important; border-color: #0b7a4b !important; color: #fff !important;
}
html[data-theme="dark"] .pear-container .pear-btn-success:hover,
html[data-theme="dark"] .pear-btn-success:hover {
    background: #096640 !important; border-color: #096640 !important;
}

/* AI 知识库列表 */
html[data-theme="dark"] .kb-q { color: #e6e8eb; }
html[data-theme="dark"] .kb-a { color: #a8adb5; }
html[data-theme="dark"] .kb-kw { background: #1e2a44; color: #8db4ff; }
html[data-theme="dark"] .kb-head input { background: #232528; border-color: #3a3d43; color: #e6e8eb; }
html[data-theme="dark"] .kb-head .kb-tip { color: #7d838c; }

/* ---------- 深色：免责声明正文 / 分享页举报按钮 ---------- */
html[data-theme="dark"] .xy-card p,
html[data-theme="dark"] .xy-card .doc-body { color: #c9ced6; }
html[data-theme="dark"] .dl2-acts .warn {
    background: #b35c00; border-color: #b35c00; color: #fff;
}
html[data-theme="dark"] .dl2-acts .warn:hover { background: #964b00; border-color: #964b00; }

/* 会员中心：支付通道未配置提示 */
.vip-pay-note { margin-top: 10px; }

/* 禁用按钮文字不要低到看不清 */
.vip-pay-btn[disabled] { color: #8a9099 !important; }
html[data-theme="dark"] .sk-btn[disabled],
html[data-theme="dark"] .sk-btn.is-disabled { color: #8b919a !important; }
html[data-theme="dark"] .vip-pay-btn[disabled] { color: #8b919a !important; }

/* ---------- 深色：后台登录页（sk-login-* 独立外壳） ---------- */
html[data-theme="dark"] body { color: #e6e8eb; }
html[data-theme="dark"] .sk-login-app { background: #131416; }
html[data-theme="dark"] .sk-login-head { background: #1a1b1e; border-bottom-color: #2b2e33; }
html[data-theme="dark"] .sk-login-nav a { color: #b3b8c0; }
html[data-theme="dark"] .sk-login-nav a:hover { background: #262a30; color: #8db4ff; }
html[data-theme="dark"] .sk-login-actions a {
    background: #24262a; border-color: #3a3d43; color: #b3b8c0;
}
html[data-theme="dark"] .sk-login-actions a:hover { border-color: #4c8dff; color: #8db4ff; }
html[data-theme="dark"] .sk-login-badge { background: #1e2a44; color: #8db4ff; }
html[data-theme="dark"] .sk-login-card { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .sk-login-card-hd h1 { color: #e6e8eb; }
html[data-theme="dark"] .sk-login-card-hd p { color: #7d838c; }
html[data-theme="dark"] .sk-field .layui-input {
    background: #232528 !important; border-color: #3a3d43 !important; color: #e6e8eb !important;
}
html[data-theme="dark"] .sk-field .layui-input:focus { border-color: #4c8dff !important; }
html[data-theme="dark"] .sk-code-row .codeImage { background: #fff; border-color: #3a3d43 !important; }
html[data-theme="dark"] .sk-login-card-foot { border-top-color: #26292d; color: #7d838c; }
html[data-theme="dark"] .sk-login-card-foot a { color: #8db4ff; }
html[data-theme="dark"] .sk-login-tip { color: #7d838c; }
html[data-theme="dark"] .sk-login-footer {
    background: linear-gradient(120deg, #17181a 0%, #1a1c1f 55%, #1c1e21 100%);
    border-top-color: #2b2e33; color: #8b919a;
}
html[data-theme="dark"] .sk-login-footer a { color: #9aa2ad; }
html[data-theme="dark"] .sk-login-footer .copy { color: #6f757e; }

/* 标签栏左右滚动按钮（layui-tab-prev/next/tool） */
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-title .layui-tab-prev,
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-title .layui-tab-next,
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-title .layui-tab-tool {
    background: #1a1b1e !important; color: #9aa0a9 !important;
    border-color: #2b2e33 !important;
}
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-title .layui-tab-prev:hover,
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-title .layui-tab-next:hover,
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-title .layui-tab-tool:hover {
    background: #232528 !important; color: #8db4ff !important;
}

/* 标签栏控制按钮实际结构：.pear-tab .layui-tab-control > li */
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-control li {
    background: #1a1b1e !important; color: #9aa0a9 !important; border-color: #2b2e33 !important;
}
html[data-theme="dark"] .pear-admin .pear-tab .layui-tab-control li:hover {
    background: #232528 !important; color: #8db4ff !important;
}

/* ---------- 深色：富文本编辑器（rich-editor.js 运行时注入样式） ---------- */
html[data-theme="dark"] .re-wrap { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .re-wrap:focus-within { border-color: #4c8dff; }
html[data-theme="dark"] .re-bar { background: #202225; border-bottom-color: #303338; }
html[data-theme="dark"] .re-bar button { color: #b3b8c0; }
html[data-theme="dark"] .re-bar button:hover,
html[data-theme="dark"] .re-bar button.on {
    background: #1e2a44; color: #8db4ff; border-color: #2b3f60;
}
html[data-theme="dark"] .re-bar select {
    background: #232528; border-color: #3a3d43; color: #e6e8eb;
}
html[data-theme="dark"] .re-bar .re-sep { background: #303338; }
html[data-theme="dark"] .re-bar .re-sp { color: #7d838c; }
html[data-theme="dark"] .re-body { color: #e6e8eb; }
html[data-theme="dark"] .re-body:empty:before { color: #6f757e; }
html[data-theme="dark"] .re-body blockquote {
    background: #232528; border-left-color: #2b3f60; color: #a8adb5;
}
html[data-theme="dark"] .re-body pre {
    background: #232528; border-color: #303338; color: #d7dbe2;
}
html[data-theme="dark"] .re-body code { background: #2a2d32; color: #ff9a95; }
html[data-theme="dark"] .re-body a { color: #7aa7ff; }
html[data-theme="dark"] .re-body hr { border-top-color: #303338; }
html[data-theme="dark"] .re-body table th,
html[data-theme="dark"] .re-body table td { border-color: #303338; }
html[data-theme="dark"] .re-body table th { background: #232528; color: #e6e8eb; }

/* ---------- 深色：前台右键菜单 / 轻表单弹窗 ---------- */
html[data-theme="dark"] .context-menu .list {
    background-color: #232528; color: #e6e8eb;
    border-color: #3a3d43; box-shadow: 0 10px 30px rgba(0,0,0,.55);
}
html[data-theme="dark"] .context-menu .list li { color: #b3b8c0; }
html[data-theme="dark"] .context-menu .list li:hover { background-color: #3370ff; color: #fff !important; }
html[data-theme="dark"] .context-menu .list .separate,
html[data-theme="dark"] .context-menu .list .separate.list-hover { background-color: #303338; }
html[data-theme="dark"] .sk-pop-form { background: #1c1e20; color: #e6e8eb; }
html[data-theme="dark"] .sk-pop-form .sk-field > label { color: #a8adb5; }
html[data-theme="dark"] .sk-pop-form .sk-input,
html[data-theme="dark"] .sk-pop-form .sk-textarea,
html[data-theme="dark"] .sk-pop-form input[type=text],
html[data-theme="dark"] .sk-pop-form textarea {
    background: #232528; border-color: #3a3d43; color: #e6e8eb;
}

/* 深色弹窗：关闭/最大化按钮是深色雪碧图，反色后才看得见 */
html[data-theme="dark"] .layui-layer-setwin .layui-layer-close1,
html[data-theme="dark"] .layui-layer-setwin .layui-layer-max,
html[data-theme="dark"] .layui-layer-setwin .layui-layer-maxmin {
    filter: invert(1) brightness(1.7);
    opacity: .8;
}
html[data-theme="dark"] .layui-layer-setwin .layui-layer-close1:hover { opacity: 1; }

/* ---------- 深色：上传弹窗 iframe（upload/index.html 自带 !important 白底） ---------- */
html[data-theme="dark"] .f_upb { background: #1c1e20 !important; }
html[data-theme="dark"] .queueList {
    background: #1a1c1f !important; border-color: #3a3d43 !important;
}
html[data-theme="dark"] .queueList:hover {
    background: #232528 !important; border-color: #4c8dff !important;
}
html[data-theme="dark"] .placeholder .filep { color: #a8adb5 !important; }
html[data-theme="dark"] .placeholder .filep[style] { color: #ff6b66 !important; }
html[data-theme="dark"] .filelist li {
    background: #232528 !important; border-color: #3a3d43 !important;
}
html[data-theme="dark"] .filelist li:hover { background: #2a2d32 !important; border-color: #4a5670 !important; }
html[data-theme="dark"] .filelist li .title { color: #e6e8eb !important; }
html[data-theme="dark"] .filelist li .fsize,
html[data-theme="dark"] .filelist li .finfo,
html[data-theme="dark"] .filelist li .fload,
html[data-theme="dark"] .filelist li .cancel,
html[data-theme="dark"] .filelist li .f-meta span { color: #7d838c !important; }
html[data-theme="dark"] .filelist li .progress span { background-color: #2b3f60 !important; }
html[data-theme="dark"] .uploadBtn.state-pedding { background: #2a2d32 !important; color: #8b919a !important; }

/* ---------- 深色：移动文件 / 移动端 VIP / dtree 目录树 ---------- */
html[data-theme="dark"] .move-foot { background: #1c1e20; border-top-color: #303338; }
html[data-theme="dark"] .vw-plan { background: #1c1e20; border-color: #303338; }
html[data-theme="dark"] .vw-plan:hover { background: #232528; border-color: #4a5670; }
html[data-theme="dark"] .vw-plan.active { background: #1b2230; border-color: #4c8dff; }
html[data-theme="dark"] .vw-plan .r strong { color: #ffb44d; }
html[data-theme="dark"] .dtree,
html[data-theme="dark"] .dtree .dtree-nav-div { color: #b3b8c0 !important; }
html[data-theme="dark"] .dtree .dtree-nav-item:hover { background: #232528; }
html[data-theme="dark"] .dtree .dtree-layui-item-this,
html[data-theme="dark"] .dtree .dtree-nav-item-this { background: #1e2a44; color: #8db4ff !important; }
html[data-theme="dark"] .dtree .dtree-layui-icon,
html[data-theme="dark"] .dtree .dtree-icon-null { color: #9aa0a9 !important; }

/* 后台侧栏滚动条：菜单较长时给出可见提示 */
.pear-admin .layui-side { scrollbar-width: thin; scrollbar-color: #d5d9e0 transparent; }
.pear-admin .layui-side::-webkit-scrollbar { width: 6px; }
.pear-admin .layui-side::-webkit-scrollbar-track { background: transparent; }
.pear-admin .layui-side::-webkit-scrollbar-thumb { background: #d5d9e0; border-radius: 3px; }
html[data-theme="dark"] .pear-admin .layui-side { scrollbar-color: #3a3e44 transparent; }
html[data-theme="dark"] .pear-admin .layui-side::-webkit-scrollbar-thumb { background: #3a3e44; }

/* ==================================================================
   第 28 轮：后台菜单图标与对齐
   —— 一级：图标 18 + 文字 + 右侧三角，全部垂直居中
   —— 二级：图标 16 + 文字，左边距统一，文字与一级文字同一列
   ================================================================== */
.pear-admin .pear-nav-tree .layui-nav-item > a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 0 34px 0 14px !important;
}
.pear-admin .pear-nav-tree .layui-nav-item > a > span:not(.layui-nav-more) {
    flex: 1 1 auto; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    line-height: 1.2;
}
.pear-admin .pear-nav-tree .layui-nav-item > a > .sk-mi {
    width: 18px; height: 18px; flex: none;
    color: #8f959e;
    transition: color .16s ease;
}
.pear-admin .pear-nav-tree .layui-nav-item > a:hover > .sk-mi { color: #3370ff; }
.pear-admin .pear-nav-tree .layui-nav-itemed > a > .sk-mi { color: #3370ff; }
.pear-admin .pear-nav-tree .layui-nav-item > a > .layui-nav-more {
    position: absolute;
    right: 14px;
    top: 50%;
    margin-top: -3px;
    border-width: 5px;
    transform: none;
}
.pear-admin .pear-nav-tree .layui-nav-itemed > a > .layui-nav-more {
    margin-top: -3px;
    border-top-color: transparent !important;
    border-bottom-color: #8f959e !important;
}

/* 二级：固定图标槽 + 统一左对齐 */
.pear-admin .pear-nav-tree .layui-nav-child dd a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    height: 36px;
    line-height: 36px;
    padding: 0 12px 0 16px !important;
}
.pear-admin .pear-nav-tree .layui-nav-child dd a > span {
    flex: 1 1 auto; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    line-height: 1.3;
}
.pear-admin .pear-nav-tree .layui-nav-child dd a > .sk-mi {
    width: 16px; height: 16px; flex: none;
    color: #8f959e;
    transition: color .16s ease;
}
.pear-admin .pear-nav-tree .layui-nav-child dd a:hover > .sk-mi { color: #3370ff; }
.pear-admin .pear-nav-tree .layui-nav-child dd.layui-this a > .sk-mi,
.pear-admin .pear-nav-tree .layui-nav-child dd a.layui-this > .sk-mi { color: #3370ff; }
/* 旧图标规则不再隐藏二级图标 */
.pear-admin .pear-nav-tree .layui-nav-child dd a > i { display: none; }

/* 折叠态：只留图标，文字与箭头不参与布局 */
.pear-mini .pear-nav-tree .layui-nav-item > a {
    padding: 0 !important;
    justify-content: center;
}
.pear-mini .pear-nav-tree .layui-nav-item > a > span:not(.layui-nav-more),
.pear-mini .pear-nav-tree .layui-nav-item > a > .layui-nav-more { display: none !important; }
.pear-mini .pear-nav-tree .layui-nav-item > a > .sk-mi { width: 18px; height: 18px; }

/* 深色：图标跟随文字层级 */
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-item > a > .sk-mi { color: #7d838c; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-item > a:hover > .sk-mi,
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-itemed > a > .sk-mi { color: #8db4ff; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-this > a > .sk-mi { color: #8db4ff !important; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-child dd a > .sk-mi { color: #7d838c; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-child dd a:hover > .sk-mi { color: #8db4ff; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-child dd.layui-this a > .sk-mi { color: #8db4ff !important; }

/* 用户中心左侧菜单：同一套图标尺寸 */
.sk-menu-item > a > .sk-mi { width: 18px; height: 18px; flex: none; }

/* 仪表盘快捷入口图标 */
.dash-quick a .sk-mi { width: 16px; height: 16px; flex: none; }

/* 一级菜单下拉箭头：改用 6px 折线 chevron，绝对居中，不再用边框三角 */
.pear-admin .pear-nav-tree .layui-nav-more {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 0 !important;
    border: 0 !important;
    background: none !important;
}
.pear-admin .pear-nav-tree .layui-nav-more::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 2px;
    width: 6px;
    height: 6px;
    border-right: 1.6px solid #8f959e;
    border-bottom: 1.6px solid #8f959e;
    transform: rotate(45deg);
    transform-origin: 50% 50%;
    transition: transform .18s ease, border-color .18s ease;
}
.pear-admin .pear-nav-tree .layui-nav-itemed > a > .layui-nav-more::before {
    top: 5px;
    transform: rotate(-135deg);
}
.pear-admin .pear-nav-tree .layui-nav-item > a:hover > .layui-nav-more::before,
.pear-admin .pear-nav-tree .layui-nav-itemed > a > .layui-nav-more::before { border-color: #3370ff; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-more::before { border-color: #7d838c; }
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-item > a:hover > .layui-nav-more::before,
html[data-theme="dark"] .pear-admin .pear-nav-tree .layui-nav-itemed > a > .layui-nav-more::before { border-color: #8db4ff; }

/* Pear 的 .pear-nav-tree.arrow 用图标字体画箭头（top:23px），
   这里用更高优先级压掉，统一改成绝对居中的 6px chevron */
.pear-admin .pear-nav-tree.arrow .layui-nav-more {
    top: 50% !important;
    right: 14px;
    width: 14px !important;
    height: 14px !important;
    margin: -7px 0 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
    display: block !important;
    transform: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
}
.pear-admin .pear-nav-tree.arrow .layui-nav-more::before {
    content: "" !important;
    position: absolute;
    left: 4px;
    top: 2px;
    width: 6px;
    height: 6px;
    border-right: 1.6px solid #8f959e;
    border-bottom: 1.6px solid #8f959e;
    background: none !important;
    transform: rotate(45deg);
    transform-origin: 50% 50%;
    transition: transform .18s ease, border-color .18s ease;
}
.pear-admin .pear-nav-tree.arrow .layui-nav-itemed > a > .layui-nav-more {
    transform: none !important;
    width: 14px !important;
}
.pear-admin .pear-nav-tree.arrow .layui-nav-itemed > a > .layui-nav-more::before {
    top: 4px;
    transform: rotate(-135deg);
}
.pear-admin .pear-nav-tree.arrow .layui-nav-item > a:hover > .layui-nav-more::before,
.pear-admin .pear-nav-tree.arrow .layui-nav-itemed > a > .layui-nav-more::before {
    border-color: #3370ff;
}
html[data-theme="dark"] .pear-admin .pear-nav-tree.arrow .layui-nav-more::before { border-color: #7d838c; }
html[data-theme="dark"] .pear-admin .pear-nav-tree.arrow .layui-nav-item > a:hover > .layui-nav-more::before,
html[data-theme="dark"] .pear-admin .pear-nav-tree.arrow .layui-nav-itemed > a > .layui-nav-more::before { border-color: #8db4ff; }

/* Pear 给二级菜单文字写死了 margin-left:30px，这里复位，
   让二级文字与一级文字落在同一列（50px），所有子项整齐对齐 */
.pear-admin .pear-nav-tree .layui-nav-child dd a { padding-left: 10px !important; }
.pear-admin .pear-nav-tree .layui-nav-child dd a > span { margin-left: 0 !important; }

/* 选中项图标与文字同色 */
.pear-admin .pear-nav-tree .layui-this > a > .sk-mi { color: #3370ff; }

/* ==================================================================
   第 29 轮：功能图标统一
   —— 前台文件工具栏 / 右键菜单
   —— 后台按钮、表格工具栏、行内操作（旧 Layui 图标由脚本映射）
   ================================================================== */
.all-box > .top .top-item > .sk-mi { width: 18px; height: 18px; flex: none; display: block; }
.all-box > .top .view-switch button { display: inline-flex; align-items: center; gap: 4px; }
.all-box > .top .view-switch button .sk-mi { width: 14px; height: 14px; }
.all-box > .top .top-right .el-input .sk-mi {
    width: 16px; height: 16px; flex: none; color: #8b95a5; cursor: pointer;
}
html[data-theme="dark"] .all-box > .top .top-right .el-input .sk-mi { color: #9aa0a9; }

/* 文件右键菜单 */
.sk-item-menu-btn { display: flex; align-items: center; gap: 8px; }
.sk-item-menu-btn .sk-mi { width: 15px; height: 15px; flex: none; color: #8f959e; }
.sk-item-menu-btn.danger .sk-mi { color: #f54a45; }
.sk-item-menu-btn:hover .sk-mi { color: #fff; }

/* 后台按钮 / 表格工具栏 / 行内操作里的新图标尺寸 */
.pear-btn > .sk-mi,
.layui-btn > .sk-mi,
.sk-btn > .sk-mi,
.layui-table-tool .sk-mi,
.layui-table-cell .sk-mi,
.layui-layer-btn .sk-mi,
.sk-filter-btn .sk-mi,
.sk-mini-btn .sk-mi {
    width: 14px;
    height: 14px;
    flex: none;
    display: inline-block;
    vertical-align: -2px;
}

/* 深色：视图切换未选中按钮不要白底 */
html[data-theme="dark"] .view-switch button { background: transparent !important; }
html[data-theme="dark"] .view-switch button.on,
html[data-theme="dark"] .view-switch button.active { background: var(--sk-pri) !important; }
