/* ==========================================================
   深空雷达主题 · 覆盖层
   只覆盖视觉样式（颜色/边框/阴影/圆角），不改布局和交互逻辑
   原样式文件保持不动，删掉本文件的引入即可完全还原
   ========================================================== */

:root {
    --sp-bg: #0c0c12;
    --sp-bg-2: #121218;
    --sp-bg-3: #1e1e24;
    --sp-line: rgba(0, 229, 255, 0.14);
    --sp-line-2: rgba(0, 229, 255, 0.28);
    --sp-cyan: #00e5ff;
    --sp-purple: #c084fc;
    --sp-yellow: #facc15;
    --sp-pink: #ff0055;
    --sp-text: #e4e4e7;
    --sp-text-2: #a1a1aa;
    --sp-text-3: #71717a;
    /* 主题中性令牌：白天主题会整套换掉，组件只用这些变量就能自动跟随 */
    --sp-accent: #00e5ff;
    --sp-accent-2: #22d3ee;
    --sp-accent-soft: rgba(0, 229, 255, 0.1);
    --sp-accent-line: rgba(0, 229, 255, 0.22);
    --sp-glow: rgba(0, 229, 255, 0.28);
    --sp-on-accent: #04121a;
    --sp-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    --sp-overlay: rgba(4, 6, 10, 0.72);
    --sp-drawer-h: 92vh;
}

/* ---------- 全局 ---------- */
html,
body {
    background: var(--sp-bg, #0c0c12) !important;
    color: var(--sp-text, #e4e4e7) !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.028) 1px, transparent 1px);
    background-size: 52px 52px;
}

body > * {
    position: relative;
    z-index: 1;
}

html body .bg-white,
html body .bg-gray-1,
html body .bg-gray-2 {
    background-color: var(--sp-bg-2, #121218) !important;
}

html body .text-gray-1,
html body .text-gray-2,
html body .text-gray-3 {
    color: var(--sp-text-2, #a1a1aa) !important;
}

/* ---------- 头部 ---------- */
.headerBox .bg {
    background: rgba(12, 12, 18, 0.82) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14)) !important;
}

.headerBox .title {
    color: var(--sp-text, #e4e4e7) !important;
    letter-spacing: 0.5px;
    text-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

.headerBox .navs .item {
    color: var(--sp-text-2, #a1a1aa) !important;
    border: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14)) !important;
    border-radius: 999px !important;
    transition: all 0.2s ease;
}

.headerBox .navs .item:hover {
    color: var(--sp-cyan, #00e5ff) !important;
    border-color: var(--sp-line-2, rgba(0, 229, 255, 0.28)) !important;
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.22);
}

/* ---------- 搜索框（头部 + 首页） ---------- */
.search input,
.search-input {
    background: var(--sp-bg-3, #1e1e24) !important;
    border: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14)) !important;
    color: var(--sp-text, #e4e4e7) !important;
    border-radius: 12px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search input::placeholder,
.search-input::placeholder {
    color: var(--sp-text-3, #71717a) !important;
}

.search input:focus,
.search-input:focus {
    outline: none !important;
    border-color: var(--sp-cyan, #00e5ff) !important;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1), 0 0 22px rgba(0, 229, 255, 0.18) !important;
}

.search .btn,
.search-button {
    background: linear-gradient(135deg, #00e5ff 0%, #22d3ee 100%) !important;
    color: #04121a !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.3) !important;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.search .btn:hover,
.search-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 26px rgba(0, 229, 255, 0.5) !important;
}

/* 联想下拉 */
.search-suggestions {
    background: var(--sp-bg-2, #121218) !important;
    border: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14)) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden;
}

.suggestion-item {
    color: var(--sp-text-2, #a1a1aa) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.suggestion-item:hover {
    background: rgba(0, 229, 255, 0.08) !important;
    color: var(--sp-cyan, #00e5ff) !important;
}

.skeleton-item {
    background: linear-gradient(90deg, var(--sp-bg-3, #1e1e24), #2a2a33, var(--sp-bg-3, #1e1e24)) !important;
}

/* ---------- 首页主视觉 ---------- */
.home-hero {
    padding-top: 8px;
}

.main-title {
    color: var(--sp-text, #e4e4e7) !important;
    letter-spacing: 2px;
    text-shadow: 0 0 24px rgba(0, 229, 255, 0.45), 0 0 60px rgba(192, 132, 252, 0.2);
}

.sub-title {
    color: var(--sp-text-2, #a1a1aa) !important;
    letter-spacing: 3px;
}

/* ---------- 内容容器与卡片 ---------- */
.nav-content-container,
.home-card,
.content {
    background: var(--sp-bg-2, #121218) !important;
    border: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14)) !important;
    border-radius: 16px !important;
}

.nav-content-container {
    overflow: hidden;
}

.nav {
    border-bottom: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14)) !important;
    background: transparent !important;
}

.nav .item {
    color: var(--sp-text-2, #a1a1aa) !important;
    background: var(--sp-bg-3, #1e1e24) !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
}

.nav .item.active,
.nav .item:hover {
    color: var(--sp-cyan, #00e5ff) !important;
    border-color: var(--sp-line-2, rgba(0, 229, 255, 0.28)) !important;
    background: rgba(0, 229, 255, 0.08) !important;
}

.home-card-head {
    border-bottom: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14)) !important;
}

.home-card-title {
    color: var(--sp-text, #e4e4e7) !important;
    letter-spacing: 1px;
}

.home-card-title::before {
    background: linear-gradient(180deg, var(--sp-cyan, #00e5ff), var(--sp-purple, #c084fc)) !important;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.home-card-count {
    color: var(--sp-cyan, #00e5ff) !important;
}

/* 资源列表 */
.resource-list .item,
.resource-list > div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.045) !important;
    transition: background 0.18s ease;
}

.resource-list .item:hover,
.resource-list > div:hover {
    background: rgba(0, 229, 255, 0.06) !important;
}

.resource-list .title {
    color: var(--sp-text, #e4e4e7) !important;
}

.resource-list .date {
    color: var(--sp-cyan, #00e5ff) !important;
    background: rgba(0, 229, 255, 0.1) !important;
    border-radius: 6px !important;
}

/* ---------- 按钮 ---------- */
/* 提交需求弹窗的按钮跟着主题走（原样式是固定蓝色） */
html body .layerBox .vbtn {
    background: linear-gradient(135deg, var(--sp-accent, #00e5ff), var(--sp-accent-2, #22d3ee)) !important;
    color: var(--sp-on-accent, #04121a) !important;
    border: none !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px var(--sp-glow, rgba(0, 229, 255, .25)) !important;
}

html body .el-button--primary,
html body .btns2,
html body .btn-primary {
    background: linear-gradient(135deg, #00e5ff, #22d3ee) !important;
    border: none !important;
    color: #04121a !important;
}

html body .el-button--primary:hover {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.45) !important;
}

/* ---------- 弹窗 ---------- */
.el-dialog,
.dialogUrlBox {
    background: var(--sp-bg-2, #121218) !important;
    border: 1px solid var(--sp-line-2, rgba(0, 229, 255, 0.28)) !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75), 0 0 40px rgba(0, 229, 255, 0.08) !important;
}

.el-dialog__title,
.el-dialog__header {
    color: var(--sp-text, #e4e4e7) !important;
    border-bottom: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14)) !important;
}

.el-dialog__body,
.dialog-footer {
    color: var(--sp-text-2, #a1a1aa) !important;
}

.el-message-box {
    background: var(--sp-bg-2, #121218) !important;
    border: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14)) !important;
    border-radius: 14px !important;
}

.el-message-box__title,
.el-message-box__content {
    color: var(--sp-text, #e4e4e7) !important;
}

/* ---------- 分页 ---------- */
.el-pagination button,
.el-pager li {
    background: var(--sp-bg-3, #1e1e24) !important;
    color: var(--sp-text-2, #a1a1aa) !important;
    border-radius: 8px !important;
}

.el-pager li.active {
    background: rgba(0, 229, 255, 0.16) !important;
    color: var(--sp-cyan, #00e5ff) !important;
}

/* ---------- 标签 / 徽章 ---------- */
.cache-badge {
    background: rgba(250, 204, 21, 0.12) !important;
    color: var(--sp-yellow, #facc15) !important;
    border: 1px solid rgba(250, 204, 21, 0.3) !important;
    border-radius: 999px !important;
}

/* ---------- 页脚 ---------- */
.common-footer,
.footerBox {
    background: transparent !important;
    border-top: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14)) !important;
    color: var(--sp-text-3, #71717a) !important;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--sp-bg, #0c0c12);
}

::-webkit-scrollbar-thumb {
    background: #2a2a33;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.35);
}

/* ---------- 空状态 ---------- */
.el-empty__description p {
    color: var(--sp-text-3, #71717a) !important;
}

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
    .main-title {
        letter-spacing: 1px;
        text-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
    }

    .nav-content-container,
    .home-card,
    .content {
        border-radius: 12px !important;
    }
}

/* ================= 首页布局改造 ================= */

/* 大家在搜 */
.sp-hotwords {
    max-width: 740px;
    margin: 20px auto 0;
    padding: 0 4px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.sp-hotwords-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--sp-text-3, #71717a);
    font-size: 13px;
    white-space: nowrap;
    padding-top: 5px;
}

.sp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sp-cyan, #00e5ff);
    box-shadow: 0 0 8px var(--sp-cyan, #00e5ff);
    animation: sp-pulse 2s ease-in-out infinite;
}

@keyframes sp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.8); }
}

.sp-hotwords-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.sp-tag {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    color: var(--sp-text-2, #a1a1aa) !important;
    background: var(--sp-bg-3, #1e1e24);
    border: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14));
    text-decoration: none !important;
    transition: all .18s ease;
    line-height: 1.6;
}

.sp-tag:hover {
    color: var(--sp-cyan, #00e5ff) !important;
    border-color: var(--sp-line-2, rgba(0, 229, 255, 0.28));
    background: rgba(0, 229, 255, .08);
    box-shadow: 0 0 14px rgba(0, 229, 255, .2);
    transform: translateY(-1px);
}

/* 双卡片 */
.sp-panels {
    max-width: 1120px;
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.sp-panel {
    background: var(--sp-bg-2, #121218);
    border: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14));
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.sp-panel:hover {
    border-color: var(--sp-line-2, rgba(0, 229, 255, 0.28));
    box-shadow: 0 0 30px rgba(0, 229, 255, .08);
}

.sp-panel-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sp-panel-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--sp-text, #e4e4e7);
    letter-spacing: .5px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.sp-panel-title::before {
    content: "";
    width: 3px;
    height: 15px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--sp-cyan, #00e5ff), var(--sp-purple, #c084fc));
    box-shadow: 0 0 8px rgba(0, 229, 255, .5);
}

.sp-panel-more {
    font-size: 12px;
    color: var(--sp-text-3, #71717a);
    letter-spacing: 1px;
}

.sp-rank-list {
    list-style: none;
    margin: 0;
    padding: 8px 10px;
    max-height: 360px;
    overflow-y: auto;
}

.sp-rank-list li {
    border-radius: 10px;
    transition: background .16s ease;
    cursor: pointer;
}

.sp-rank-list li:hover {
    background: rgba(0, 229, 255, .06);
}

.sp-rank-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    color: var(--sp-text-2, #a1a1aa) !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: color .16s ease;
}

.sp-rank-list a:hover {
    color: var(--sp-cyan, #00e5ff) !important;
}

.sp-rank {
    width: 20px;
    flex-shrink: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--sp-text-3, #71717a);
    font-variant-numeric: tabular-nums;
}

.sp-rank-1 { color: #ff0055 !important; text-shadow: 0 0 10px rgba(255, 0, 85, .5); }
.sp-rank-2 { color: #ff6a00 !important; text-shadow: 0 0 10px rgba(255, 106, 0, .45); }
.sp-rank-3 { color: #facc15 !important; text-shadow: 0 0 10px rgba(250, 204, 21, .4); }

@media (max-width: 768px) {
    .sp-panels { grid-template-columns: 1fr; gap: 14px; }
    .sp-hotwords { max-width: 100%; }
    .sp-rank-list { max-height: none; }
}

/* 本地无资源时隐藏空的内容区，有数据后自动恢复 */
.nav-content-container:not(:has(.resource-item)) {
    display: none !important;
}


/* ==========================================================
   视觉强化层：极光 / 流光标题 / 发光搜索 / 扫描线
   ========================================================== */

/* 极光光晕（背景层） */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 12% -8%, rgba(0, 229, 255, 0.10), transparent 65%),
        radial-gradient(760px 480px at 88% 4%, rgba(192, 132, 252, 0.10), transparent 62%),
        radial-gradient(680px 420px at 50% 108%, rgba(0, 229, 255, 0.06), transparent 62%);
}

/* 网格提亮 + 缓慢流动 */
body::before {
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.045) 1px, transparent 1px);
    background-size: 52px 52px;
    animation: sp-grid-drift 24s linear infinite;
}

@keyframes sp-grid-drift {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 0 52px, 52px 0; }
}

/* 流光标题 */
.main-title {
    background: linear-gradient(110deg, #00e5ff 0%, #c084fc 30%, #ffffff 50%, #c084fc 70%, #00e5ff 100%) !important;
    background-size: 220% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
    animation: sp-shine 5s linear infinite;
    filter: drop-shadow(0 0 22px rgba(0, 229, 255, 0.35));
}

@keyframes sp-shine {
    to { background-position: 220% center; }
}

/* 搜索区发光底盘 */
.search-container {
    position: relative;
}

.search-container::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 26px;
    background: radial-gradient(closest-side, rgba(0, 229, 255, 0.16), transparent 72%);
    filter: blur(16px);
    opacity: .75;
    pointer-events: none;
    z-index: -1;
    animation: sp-breathe 4.5s ease-in-out infinite;
}

@keyframes sp-breathe {
    0%, 100% { opacity: .45; transform: scale(.98); }
    50%      { opacity: .95; transform: scale(1.02); }
}

.search-input:focus {
    box-shadow:
        0 0 0 3px rgba(0, 229, 255, 0.12),
        0 0 28px rgba(0, 229, 255, 0.35),
        inset 0 0 18px rgba(0, 229, 255, 0.06) !important;
}

/* 头部扫描线 */
.headerBox {
    position: relative;
}

.headerBox::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.9), transparent);
    animation: sp-scan 3.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sp-scan {
    0%   { transform: translateX(-100%); opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* 卡片悬浮 */
.sp-panel {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.sp-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.35) !important;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55), 0 0 34px rgba(0, 229, 255, 0.14) !important;
}

/* 热词标签入场 */
.sp-tag {
    animation: sp-fade-up .45s ease both;
}

.sp-tag:nth-child(1)  { animation-delay: .02s; }
.sp-tag:nth-child(2)  { animation-delay: .04s; }
.sp-tag:nth-child(3)  { animation-delay: .06s; }
.sp-tag:nth-child(4)  { animation-delay: .08s; }
.sp-tag:nth-child(5)  { animation-delay: .10s; }
.sp-tag:nth-child(6)  { animation-delay: .12s; }
.sp-tag:nth-child(7)  { animation-delay: .14s; }
.sp-tag:nth-child(8)  { animation-delay: .16s; }
.sp-tag:nth-child(9)  { animation-delay: .18s; }
.sp-tag:nth-child(10) { animation-delay: .20s; }
.sp-tag:nth-child(11) { animation-delay: .22s; }
.sp-tag:nth-child(12) { animation-delay: .24s; }

@keyframes sp-fade-up {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 搜索按钮脉冲 */
.search-button {
    position: relative;
    overflow: hidden;
}

.search-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: sp-btn-sweep 3.2s ease-in-out infinite;
}

@keyframes sp-btn-sweep {
    0%, 60% { transform: translateX(-120%); }
    85%     { transform: translateX(120%); }
    100%    { transform: translateX(120%); }
}

/* 榜单前三名徽章发光 */
.sp-rank-1, .sp-rank-2, .sp-rank-3 {
    animation: sp-rank-glow 2.6s ease-in-out infinite;
}

@keyframes sp-rank-glow {
    0%, 100% { filter: brightness(1); }
    50%      { filter: brightness(1.45); }
}

/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after,
    .main-title,
    .search-container::before,
    .headerBox::after,
    .sp-tag,
    .search-button::after,
    .sp-rank-1, .sp-rank-2, .sp-rank-3,
    .sp-dot {
        animation: none !important;
    }
}

@media (max-width: 768px) {
    .main-title { filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.3)); }
    .search-container::before { filter: blur(10px); inset: -8px; }
}


/* ==========================================================
   深色适配 · 补漏层
   修正：搜索框父容器、搜索结果页、弹窗、工具类
   ========================================================== */

/* ---------- 搜索框：白色在父容器上 ---------- */
html body .search-container .flex {
    background: var(--sp-bg-3, #1e1e24) !important;
    border: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14)) !important;
    border-radius: 14px !important;
    box-shadow: 0 0 0 0 transparent !important;
    transition: border-color .2s ease, box-shadow .25s ease !important;
}

html body .search-container .flex:focus-within {
    border-color: var(--sp-cyan, #00e5ff) !important;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, .10), 0 0 26px rgba(0, 229, 255, .22) !important;
}

html body .search-container .search-input {
    background: transparent !important;
    color: var(--sp-text, #e4e4e7) !important;
}

html body .search-container .search-input::placeholder {
    color: var(--sp-text-3, #71717a) !important;
}

/* 顶部导航搜索框 */
html body .headerBox .search,
html body .searchBox .search {
    background: var(--sp-bg-3, #1e1e24) !important;
    border: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14)) !important;
    border-radius: 12px !important;
}

html body .headerBox .search input,
html body .searchBox .search input {
    background: transparent !important;
    color: var(--sp-text, #e4e4e7) !important;
}

html body .headerBox .search input::placeholder,
html body .searchBox .search input::placeholder {
    color: var(--sp-text-3, #71717a) !important;
}

html body .headerBox .search .btn,
html body .searchBox .search .btn {
    background: linear-gradient(135deg, #00e5ff, #22d3ee) !important;
    color: #04121a !important;
    border-radius: 10px !important;
}

/* ---------- 搜索结果页 ---------- */
html body .search-results-section {
    background: var(--sp-bg-2, #121218) !important;
    border: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14)) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(0, 229, 255, .06) !important;
    padding: 22px !important;
}

html body .resource-result-card {
    background: var(--sp-bg-3, #1e1e24) !important;
    border: 1px solid rgba(255, 255, 255, .06) !important;
    border-radius: 12px !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .2s ease !important;
}

html body .resource-result-card:hover {
    transform: translateY(-2px);
    border-color: var(--sp-line-2, rgba(0, 229, 255, 0.28)) !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .45), 0 0 20px rgba(0, 229, 255, .12) !important;
}

html body .resource-result-card .title,
html body .resource-result-card a {
    color: var(--sp-text, #e4e4e7) !important;
}

html body .resource-result-card .date,
html body .resource-result-card .text-gray-2 {
    color: var(--sp-text-3, #71717a) !important;
}

/* 网盘筛选条 */
html body .pan-filter button {
    background: var(--sp-bg-3, #1e1e24) !important;
    color: var(--sp-text-2, #a1a1aa) !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
}

html body .pan-filter button.active,
html body .pan-filter button:hover {
    background: rgba(0, 229, 255, .1) !important;
    color: var(--sp-cyan, #00e5ff) !important;
    border-color: var(--sp-line-2, rgba(0, 229, 255, 0.28)) !important;
}

html body .pan-select-menu {
    background: var(--sp-bg-2, #121218) !important;
    border: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14)) !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .6) !important;
}

/* 关键词高亮 */
html body .search-results-section .keyword,
html body .search-results-section h1,
html body .search-results-section h2 {
    color: var(--sp-text, #e4e4e7) !important;
}

/* ---------- 详情页列表 ---------- */
html body .listBox .left .Ebox .list .item {
    background: var(--sp-bg-3, #1e1e24) !important;
    border-color: rgba(255, 255, 255, .06) !important;
}

html body .listBox .left .Ebox .list .item .title,
html body .listBox .left .Ebox .list .item a {
    color: var(--sp-text, #e4e4e7) !important;
}

html body .listBox .left .Ebox .list .item .resource-tree-btn,
html body .listBox .left .Ebox .list .item .resource-tree-error button {
    background: var(--sp-bg-3, #1e1e24) !important;
    color: var(--sp-cyan, #00e5ff) !important;
    border: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14)) !important;
}

/* ---------- 资源弹窗 ---------- */
html body .dialogUrlBox .resource-dialog-card {
    background: var(--sp-bg-2, #121218) !important;
    border: 1px solid var(--sp-line-2, rgba(0, 229, 255, 0.28)) !important;
    border-radius: 18px !important;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .8), 0 0 50px rgba(0, 229, 255, .08) !important;
}

html body .dialogUrlBox .resource-dialog-btn.btn-copy,
html body .dialogUrlBox .resource-dialog-tree-toggle {
    background: var(--sp-bg-3, #1e1e24) !important;
    color: var(--sp-text, #e4e4e7) !important;
    border: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14)) !important;
    border-radius: 10px !important;
}

html body .dialogUrlBox .resource-dialog-error {
    background: rgba(255, 0, 85, .1) !important;
    color: #ff8098 !important;
    border-radius: 10px !important;
}

html body .dialogUrlBox .dialogUrl .qrcode {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 8px;
}

html body .dialogUrlBox .el-icon {
    background: transparent !important;
}

/* ---------- 公告弹窗 ---------- */
html body .ios-announcement-dialog {
    background: var(--sp-bg-2, #121218) !important;
    border: 1px solid var(--sp-line-2, rgba(0, 229, 255, 0.28)) !important;
    border-radius: 18px !important;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .8) !important;
}

html body .ios-announcement-title,
html body .ios-announcement-content {
    color: var(--sp-text, #e4e4e7) !important;
}

html body .ios-announcement-button {
    background: var(--sp-bg-3, #1e1e24) !important;
    color: var(--sp-text-2, #a1a1aa) !important;
    border: 1px solid var(--sp-line, rgba(0, 229, 255, 0.14)) !important;
    border-radius: 10px !important;
}

html body .ios-announcement-button.primary {
    background: linear-gradient(135deg, #00e5ff, #22d3ee) !important;
    color: #04121a !important;
    border: none !important;
}

/* ---------- 工具类 ---------- */
html body .bg-white {
    background: var(--sp-bg-2, #121218) !important;
}

html body .border-b,
html body .border-gray-3 {
    border-color: rgba(255, 255, 255, .06) !important;
}

html body .border-gray-2,
html body .border {
    border-color: rgba(255, 255, 255, .08) !important;
}

/* ---------- 布局紧凑化 ---------- */
html body .search-results-section {
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

html body .sp-panels {
    gap: 14px !important;
    margin-top: 20px !important;
}

html body .sp-panel-head {
    padding: 12px 16px !important;
}

html body .sp-rank-list a {
    padding: 8px 10px !important;
}

html body .sp-hotwords {
    margin-top: 16px !important;
}



/* ---------- 宽度撑开（覆盖 flex 收缩） ---------- */
html body .sp-panels {
    width: 100% !important;
    max-width: 1120px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
}

html body .sp-panel {
    width: 100% !important;
    min-width: 0 !important;
}

html body .sp-hotwords {
    width: 100% !important;
    max-width: 880px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

html body .search-container {
    width: 100% !important;
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

html body .home-hero {
    width: 100% !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 首页整体：让内容在视口中更靠中间 */
html body #app {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 榜单列表字号略增，填充空间 */
html body .sp-rank-list a {
    font-size: 14.5px !important;
    padding: 9px 12px !important;
}

html body .sp-panel-head {
    padding: 14px 18px !important;
}

@media (max-width: 768px) {
    html body .sp-panels {
        grid-template-columns: 1fr !important;
    }
}


/* ---------- 细节打磨 ---------- */
/* 搜索按钮图标可见 */
html body .search-button i,
html body .search-button .fa,
html body .search-button svg {
    color: #04121a !important;
    fill: #04121a !important;
    font-size: 17px !important;
    opacity: 1 !important;
    position: relative;
    z-index: 2;
}

html body .search-button span {
    color: #04121a !important;
    position: relative;
    z-index: 2;
}

/* 标题加大 */
html body .main-title {
    font-size: 40px !important;
    font-weight: 500 !important;
    letter-spacing: 4px !important;
    line-height: 1.25 !important;
}

html body .sub-title {
    font-size: 14px !important;
    letter-spacing: 5px !important;
    margin-top: 8px !important;
    opacity: .85;
}

/* 搜索框加高 */
html body .search-container .flex {
    height: 56px !important;
    padding-left: 22px !important;
    padding-right: 6px !important;
}

html body .search-container .search-input {
    font-size: 15.5px !important;
}

html body .search-button {
    min-width: 46px !important;
    width: 46px !important;
    height: 44px !important;
    border-radius: 11px !important;
}

/* 热词与卡片间距收紧 */
html body .home-hero {
    padding-top: 56px !important;
    padding-bottom: 14px !important;
}

html body .sp-hotwords {
    margin-top: 14px !important;
}

html body .sp-panels {
    margin-top: 18px !important;
}

/* 榜单行更紧凑 */
html body .sp-rank-list {
    padding: 6px 8px !important;
}

html body .sp-rank-list a {
    padding: 7px 12px !important;
    font-size: 14px !important;
}

/* 两侧卡片高度对齐内容（避免右侧大片空白） */
html body .sp-panels {
    align-items: start !important;
}

html body .sp-panel {
    align-self: start !important;
}

/* 顶部导航高度收敛 */
html body .headerBox .box {
    height: 60px !important;
}

@media (max-width: 768px) {
    html body .main-title {
        font-size: 28px !important;
        letter-spacing: 2px !important;
    }
    html body .search-container .flex {
        height: 50px !important;
    }
}


/* ---------- 搜索图标：CSS 绘制，不依赖字体 ---------- */
/* 头部/列表页搜索按钮用的是字体图标，原样式取 --theme-theme（蓝色），
   压在绿色/青色按钮上很难看 —— 统一跟按钮前景色 */
html body .headerBox .box .search .btn .iconfont,
html body .searchBox .search .btn .iconfont {
    color: var(--sp-on-accent, #04121a) !important;
}

html body .search-button i,
html body .search-button .fa {
    display: none !important;
}

html body .search-button {
    position: relative !important;
}

/* 放大镜：镜圈 + 手柄，颜色跟着按钮前景色走（深色主题深墨绿，白天主题白） */
html body .search-button::before {
    content: "" !important;
    position: absolute !important;
    width: 14px !important;
    height: 14px !important;
    border: 2.2px solid var(--sp-on-accent, #04121a) !important;
    border-radius: 50% !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: transparent !important;
    box-sizing: border-box !important;
    z-index: 3 !important;
    pointer-events: none !important;
}

html body .search-button::after {
    content: "" !important;
    position: absolute !important;
    inset: auto !important;
    width: 7.5px !important;
    height: 2.4px !important;
    background: var(--sp-on-accent, #04121a) !important;
    border-radius: 2px !important;
    top: calc(50% + 5.4px) !important;
    left: calc(50% + 5.4px) !important;
    transform-origin: left center !important;
    transform: rotate(45deg) !important;
    animation: none !important;
    z-index: 3 !important;
    pointer-events: none !important;
}



/* ---------- 搜索结果页：文字与按钮可读性 ---------- */
html body .resource-title,
html body .resource-title span,
html body .resource-title .highlight,
html body .resource-card-header a {
    color: #e4e4e7 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
}

html body .resource-title:hover,
html body .resource-title:hover span {
    color: #00e5ff !important;
}

/* 标题左侧红条改为青色 */
html body .red-bar-title::before {
    background: linear-gradient(180deg, #00e5ff, #c084fc) !important;
    box-shadow: 0 0 8px rgba(0, 229, 255, .5) !important;
}

/* 目录按钮 */
html body .resource-tree-btn {
    background: rgba(255, 255, 255, .06) !important;
    color: #a1a1aa !important;
    border: 1px solid rgba(0, 229, 255, .18) !important;
    border-radius: 8px !important;
    padding: 5px 12px !important;
    font-size: 13px !important;
}

html body .resource-tree-btn:hover {
    color: #00e5ff !important;
    border-color: rgba(0, 229, 255, .45) !important;
}

/* 获取资源按钮 */
html body .resource-get-btn {
    background: linear-gradient(135deg, #00e5ff, #22d3ee) !important;
    color: #04121a !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 5px 14px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    box-shadow: 0 0 14px rgba(0, 229, 255, .25) !important;
}

html body .resource-get-btn:hover {
    box-shadow: 0 0 22px rgba(0, 229, 255, .5) !important;
}

/* 网盘图标尺寸 */
html body .resource-pan-icon {
    width: 20px !important;
    height: 20px !important;
    border-radius: 4px !important;
    object-fit: contain !important;
}

/* 搜索结果页关键词与统计 */
html body .search-results-section,
html body .search-results-section * {
    color: inherit;
}

html body .search-results-section {
    color: #e4e4e7 !important;
}

/* 网盘筛选标签文字 */
html body .pan-filter button,
html body .pan-filter a {
    color: #a1a1aa !important;
}

html body .pan-filter button.active,
html body .pan-filter a.active {
    color: #00e5ff !important;
}

/* 结果卡片分隔线 */
html body .resource-result-card + .resource-result-card {
    border-top: 1px solid rgba(255, 255, 255, .05) !important;
}


/* ==========================================================
   首页搜索抽屉
   ========================================================== */
.sp-drawer-mask {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(4, 6, 10, .72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
}

.sp-drawer-mask.sp-open {
    opacity: 1;
    visibility: visible;
}

.sp-drawer {
    position: fixed;
    left: 50%;
    bottom: 0;
    width: min(100%, 880px);
    max-height: 82vh;
    z-index: 9001;
    display: flex;
    flex-direction: column;
    background: #121218;
    border: 1px solid rgba(0, 229, 255, .22);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -20px 70px rgba(0, 0, 0, .7), 0 0 60px rgba(0, 229, 255, .08);
    transform: translate(-50%, 100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .34s cubic-bezier(.22, .9, .3, 1), opacity .28s ease, visibility .28s ease;
}

.sp-drawer.sp-open {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

.sp-drawer-grab {
    width: 46px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .16);
    margin: 10px auto 4px;
    flex-shrink: 0;
}

.sp-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 22px 14px;
    border-bottom: 1px solid rgba(0, 229, 255, .12);
    flex-shrink: 0;
}

.sp-drawer-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sp-drawer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00e5ff;
    box-shadow: 0 0 10px #00e5ff;
    flex-shrink: 0;
    animation: sp-dot-pulse 1.8s ease-in-out infinite;
}

@keyframes sp-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(.75); }
}

.sp-drawer-kw {
    color: #e4e4e7;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 340px;
}

.sp-drawer-count {
    color: #00e5ff;
    font-size: 13px;
    background: rgba(0, 229, 255, .1);
    border: 1px solid rgba(0, 229, 255, .22);
    border-radius: 999px;
    padding: 1px 10px;
    flex-shrink: 0;
}

.sp-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #a1a1aa;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all .18s ease;
    flex-shrink: 0;
}

.sp-drawer-close:hover {
    background: rgba(255, 0, 85, .12);
    border-color: rgba(255, 0, 85, .35);
    color: #ff5c7c;
}

.sp-drawer-body {
    padding: 12px 18px 26px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
}

.sp-drawer-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 6px;
    color: #a1a1aa;
    font-size: 13px;
}

.sp-spin {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(0, 229, 255, .25);
    border-top-color: #00e5ff;
    border-radius: 50%;
    animation: sp-spin .7s linear infinite;
}

@keyframes sp-spin {
    to { transform: rotate(360deg); }
}

.sp-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: #1e1e24;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    transition: transform .16s ease, border-color .16s ease, box-shadow .2s ease;
    animation: sp-item-in .3s ease both;
}

@keyframes sp-item-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.sp-drawer-item:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 229, 255, .32);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .4), 0 0 18px rgba(0, 229, 255, .08);
}

.sp-drawer-icon {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 6px;
    flex-shrink: 0;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.sp-drawer-main {
    flex: 1;
    min-width: 0;
}

.sp-drawer-name {
    color: #e4e4e7;
    font-size: 14.5px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

.sp-drawer-name em,
.sp-drawer-name .highlight {
    color: #00e5ff;
    font-style: normal;
    background: rgba(0, 229, 255, .12);
    border-radius: 3px;
    padding: 0 2px;
}

.sp-drawer-sub {
    color: #71717a;
    font-size: 12px;
    margin-top: 3px;
}

.sp-drawer-btn {
    flex-shrink: 0;
    padding: 7px 16px;
    background: linear-gradient(135deg, #00e5ff, #22d3ee);
    color: #04121a;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(0, 229, 255, .28);
    transition: box-shadow .2s ease, transform .15s ease;
}

.sp-drawer-btn:hover {
    box-shadow: 0 0 24px rgba(0, 229, 255, .55);
    transform: translateY(-1px);
}

.sp-drawer-empty {
    padding: 46px 0 34px;
    text-align: center;
    color: #71717a;
    font-size: 14px;
}

/* ---------- 抽屉分页：底部「下滑加载更多」哨兵 ---------- */
.sp-drawer-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 16px 0 6px;
    color: #71717a;
    font-size: 12.5px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.sp-drawer-more:hover {
    color: #a1a1aa;
}

.sp-drawer-more-main {
    color: #00e5ff;
    font-size: 13px;
    letter-spacing: .04em;
}

.sp-drawer-more-main::after {
    content: '';
    display: block;
    width: 22px;
    height: 1px;
    margin: 6px auto 0;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, .75), transparent);
}

.sp-drawer-more-sub {
    color: #71717a;
    font-size: 12px;
}

.sp-drawer-more-sub b {
    color: #e4e4e7;
    font-weight: 600;
}

/* ---------- 抽屉网盘筛选条 ---------- */
.sp-pan-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px 10px;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sp-pan-tabs::-webkit-scrollbar {
    display: none;
}

.sp-pan-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
    color: #9b9ba6;
    font-size: 12.5px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.sp-pan-tab b {
    font-weight: 500;
    font-size: 11px;
    color: #6f6f7a;
    font-variant-numeric: tabular-nums;
}

.sp-pan-tab:hover {
    color: #d4d4d8;
    border-color: rgba(0, 229, 255, .25);
}

.sp-pan-tab.is-active {
    color: #04121a;
    font-weight: 600;
    background: linear-gradient(135deg, #00e5ff, #22d3ee);
    border-color: transparent;
    box-shadow: 0 0 16px rgba(0, 229, 255, .35);
}

.sp-pan-tab.is-active b {
    color: rgba(4, 18, 26, .72);
}

.sp-pan-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sp-pan-tab.is-active .sp-pan-dot {
    display: none;
}

/* ---------- 搜索中：左→右渐变扫描线 + 全网搜索提示 ---------- */
.sp-drawer-scan {
    position: relative;
    padding: 2px 20px 9px;
    flex-shrink: 0;
}

.sp-scan-track {
    position: relative;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 0 10px rgba(0, 229, 255, .12);
    overflow: hidden;
}

.sp-scan-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 34%;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg,
        rgba(0, 229, 255, 0) 0%,
        rgba(0, 229, 255, .35) 22%,
        rgba(0, 229, 255, .95) 58%,
        #eafcff 78%,
        rgba(0, 229, 255, .9) 90%,
        rgba(0, 229, 255, 0) 100%);
    filter: drop-shadow(0 0 7px rgba(0, 229, 255, .85)) drop-shadow(0 0 14px rgba(0, 229, 255, .35));
    animation: sp-scan-run 1.7s cubic-bezier(.45, .05, .55, .95) infinite;
    will-change: transform;
}

@keyframes sp-scan-run {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(315%); }
}

.sp-scan-label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 7px;
    padding-left: 2px;
    color: #8b8b96;
    font-size: 12px;
    letter-spacing: .03em;
}

.sp-scan-dots {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    padding-bottom: 2px;
}

.sp-scan-dots i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #00e5ff;
    opacity: .25;
    animation: sp-dot-pulse 1.2s ease-in-out infinite;
}

.sp-scan-dots i:nth-child(2) { animation-delay: .18s; }
.sp-scan-dots i:nth-child(3) { animation-delay: .36s; }

@keyframes sp-dot-pulse {
    0%, 100% { opacity: .22; transform: translateY(0); }
    50%      { opacity: 1;   transform: translateY(-1px); }
}

.sp-scan-count {
    margin-left: auto;
    color: #5c5c66;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

/* ---------- 资源有效性徽章 ---------- */
.sp-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 17px;
    padding: 0 7px;
    margin-left: 8px;
    border-radius: 999px;
    font-size: 10.5px;
    line-height: 1;
    letter-spacing: .02em;
    white-space: nowrap;
    vertical-align: middle;
    transform: translateY(-1px);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.sp-check.is-ok {
    color: #86efac;
    background: rgba(74, 222, 128, .13);
    border: 1px solid rgba(74, 222, 128, .26);
    box-shadow: inset 0 0 8px rgba(74, 222, 128, .07), 0 0 10px rgba(74, 222, 128, .06);
}

.sp-check.is-bad {
    color: #7d7d88;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .07);
}

.sp-check.is-locked,
.sp-check.is-uncertain,
.sp-check.is-unsupported {
    color: #6f6f7a;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .05);
}

.sp-check.is-checking {
    padding: 0;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.sp-check-spin {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.6px solid rgba(0, 229, 255, .18);
    border-top-color: rgba(0, 229, 255, .9);
    animation: sp-spin .72s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .sp-scan-beam,
    .sp-scan-dots i,
    .sp-check-spin {
        animation: none;
    }
}

/* ---------- 首页六大热门板块 ---------- */
.sp-blocks {
    width: 100%;
    max-width: 1120px;
    margin: 18px auto 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.sp-block {
    background: var(--sp-bg-2, #121218);
    border: 1px solid var(--sp-line, rgba(0, 229, 255, .14));
    border-radius: 16px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.sp-block:hover {
    border-color: var(--sp-line-2, rgba(0, 229, 255, .28));
    box-shadow: 0 0 30px rgba(0, 229, 255, .08);
}

.sp-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid var(--sp-line, rgba(0, 229, 255, .14));
    background: linear-gradient(90deg, rgba(0, 229, 255, .05), transparent 62%);
}

.sp-block-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--sp-text, #e4e4e7);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .5px;
}

.sp-block-title::before {
    content: "";
    width: 3px;
    height: 15px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--sp-cyan, #00e5ff), var(--sp-purple, #c084fc));
    box-shadow: 0 0 8px rgba(0, 229, 255, .5);
}

.sp-block-tag {
    padding: 2px 9px;
    border-radius: 999px;
    color: #86efac;
    font-size: 11px;
    letter-spacing: .04em;
    background: rgba(74, 222, 128, .1);
    border: 1px solid rgba(74, 222, 128, .2);
}

.sp-block-list {
    padding: 9px 8px 11px;
}

.sp-block-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.sp-block-item:hover {
    background: rgba(0, 229, 255, .05);
    border-color: rgba(0, 229, 255, .18);
    transform: translateX(2px);
}

.sp-block-idx {
    flex-shrink: 0;
    width: 17px;
    color: #5c5c66;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.sp-block-idx.is-top {
    color: #00e5ff;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 229, 255, .45);
}

.sp-block-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: contain;
}

.sp-block-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #cfcfd6;
    font-size: 13px;
}

.sp-block-go {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 6px;
    color: #00e5ff;
    font-size: 11px;
    background: rgba(0, 229, 255, .08);
    border: 1px solid rgba(0, 229, 255, .18);
    opacity: 0;
    transition: opacity .16s ease;
}

.sp-block-item:hover .sp-block-go {
    opacity: 1;
}

.sp-block-skeleton {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.sp-block-skeleton span {
    height: 13px;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
    background-size: 220% 100%;
    animation: sp-shimmer 1.25s linear infinite;
}

.sp-block-skeleton span:nth-child(2) { width: 88%; }
.sp-block-skeleton span:nth-child(3) { width: 94%; }
.sp-block-skeleton span:nth-child(4) { width: 76%; }
.sp-block-skeleton span:nth-child(5) { width: 84%; }

@keyframes sp-shimmer {
    0%   { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

.sp-block-empty {
    padding: 28px 16px 30px;
    color: #5c5c66;
    font-size: 12.5px;
    text-align: center;
}

@media (max-width: 768px) {
    .sp-blocks {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 12px 10px 0;
    }
    .sp-block-go { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sp-block-skeleton span { animation: none; }
}

/* ---------- 移动端底色修正 ----------
   原始 home.css 在 max-width:768px 里把 html/body/#app 写成 #f4f6f9，
   导致手机端整页白底、深色卡片悬空。这里统一拉回深空底色。 */
@media (max-width: 768px) {
    html,
    body,
    #app {
        background: var(--sp-bg, #0c0c12) !important;
    }

    #app {
        padding-bottom: 26px;
    }
}




@media (max-width: 768px) {
    .sp-drawer {
        width: 100%;
        max-height: 88vh;
        border-radius: 18px 18px 0 0;
        border-left: none;
        border-right: none;
    }
    .sp-drawer-head { padding: 8px 16px 12px; }
    .sp-drawer-body { padding: 10px 12px 24px; }
    .sp-drawer-kw { max-width: 150px; font-size: 15px; }
    .sp-drawer-btn { padding: 6px 12px; font-size: 12px; }
    .sp-drawer-item { padding: 10px 11px; gap: 9px; }
    .sp-drawer-scan { padding: 2px 14px 8px; }
    .sp-pan-tabs { padding: 0 12px 8px; gap: 6px; }
    .sp-pan-tab { height: 26px; padding: 0 10px; font-size: 12px; }
    .sp-pan-tab b { font-size: 10.5px; }
}


/* ---------- 抽屉加高 · 显示更多结果 ---------- */
html body .sp-drawer {
    max-height: 92vh !important;
    width: min(100%, 940px) !important;
}

/* 头部/扫描线/筛选条都是固定高度，滚动区用 flex 吃掉剩余空间，
   不再写死 max-height，避免移动端被挤爆 */
html body .sp-drawer-body {
    padding: 10px 16px 20px !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* 条目更紧凑，一屏多显示几条 */
html body .sp-drawer-item {
    padding: 10px 13px !important;
    margin-bottom: 6px !important;
    gap: 11px !important;
}

html body .sp-drawer-name {
    font-size: 14px !important;
    line-height: 1.45 !important;
}

html body .sp-drawer-sub {
    font-size: 11.5px !important;
    margin-top: 2px !important;
}

html body .sp-drawer-btn {
    padding: 6px 14px !important;
    font-size: 12.5px !important;
}

html body .sp-drawer-icon {
    width: 20px !important;
    height: 20px !important;
}

html body .sp-drawer-head {
    padding: 8px 20px 12px !important;
}

@media (max-width: 768px) {
    html body .sp-drawer {
        max-height: 94vh !important;
        width: 100% !important;
    }
    html body .sp-drawer-body {
        max-height: calc(94vh - 70px) !important;
        padding: 8px 11px 18px !important;
    }
    html body .sp-drawer-item {
        padding: 9px 10px !important;
        margin-bottom: 5px !important;
    }
}


/* ---------- 抽屉最小高度：内容少也不塌 ---------- */
html body .sp-drawer {
    min-height: 76vh !important;
    max-height: 92vh !important;
    height: auto !important;
}

@media (max-width: 768px) {
    html body .sp-drawer {
        min-height: 80vh !important;
        max-height: 94vh !important;
    }
    html body .sp-drawer-body {
        padding: 8px 11px 18px !important;
    }
}


/* ---------- 层级修正：所有弹窗必须盖过搜索抽屉 ---------- */
/* 抽屉：9000 / 9001，弹窗统一提到 9600 */
html body .dialogUrlBox,
html body .dialogUrlBox .el-overlay,
html body .dialogUrlBox .el-overlay-dialog,
html body .el-overlay,
html body .el-message-box__wrapper,
html body .ios-announcement-overlay,
html body .el-dialog__wrapper {
    z-index: 9600 !important;
}

/* Element Plus 的 popper / 下拉 */
html body .el-popper,
html body .el-select-dropdown {
    z-index: 9700 !important;
}

/* 抽屉内部的层级不动，保持 9000/9001 */


/* ---------- 修正：弹窗被 common-header 的 z-index 困住 ----------
   层级链：el-overlay(z9600) < common-header(z100) < #app(z9)
   弹窗的 9600 只在 common-header 内部生效，整体被 100 限制。
   把 common-header 提到抽屉(9001)之上，弹窗随之上浮。
   抽屉从底部滑出，与顶部导航不重叠，不影响视觉。            */
html body .common-header {
    z-index: 9300 !important;
}

/* 抽屉遮罩也要在导航之下，避免盖住顶部条 */
html body .sp-drawer-mask {
    z-index: 9000 !important;
}

html body .sp-drawer {
    z-index: 9001 !important;
}


/* ---------- 资源弹窗深色适配 ---------- */
html body .dialogUrlBox .el-dialog,
html body .dialogUrlBox .el-dialog__body,
html body .dialogUrlBox .resource-dialog-card,
html body .dialogUrlBox .resource-dialog-content {
    background: #121218 !important;
    color: #e4e4e7 !important;
}

html body .dialogUrlBox .el-dialog {
    border-radius: 18px !important;
    border: 1px solid rgba(0, 229, 255, .25) !important;
    box-shadow: 0 26px 90px rgba(0, 0, 0, .85), 0 0 60px rgba(0, 229, 255, .1) !important;
}

/* 链接块 */
html body .dialogUrlBox .resource-dialog-url,
html body .dialogUrlBox .dialogUrl .url,
html body .dialogUrlBox .resource-dialog-link {
    background: #1e1e24 !important;
    color: #00e5ff !important;
    border: 1px solid rgba(0, 229, 255, .18) !important;
    border-radius: 10px !important;
}

/* 复制/打开按钮 */
html body .dialogUrlBox .resource-dialog-btn {
    border-radius: 9px !important;
    font-size: 13px !important;
}

html body .dialogUrlBox .resource-dialog-btn.btn-copy {
    background: rgba(255, 255, 255, .07) !important;
    color: #e4e4e7 !important;
    border: 1px solid rgba(0, 229, 255, .22) !important;
}

html body .dialogUrlBox .resource-dialog-btn.btn-open,
html body .dialogUrlBox .resource-dialog-btn.primary {
    background: linear-gradient(135deg, #00e5ff, #22d3ee) !important;
    color: #04121a !important;
    border: none !important;
}

/* 二维码容器保持白底 */
html body .dialogUrlBox .dialogUrl .qrcode,
html body .dialogUrlBox .resource-dialog-qrcode {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 10px !important;
}

/* 目录结构按钮 */
html body .dialogUrlBox .resource-dialog-tree-toggle {
    background: #1e1e24 !important;
    color: #a1a1aa !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    border-radius: 10px !important;
}

/* 免责声明块 */
html body .dialogUrlBox .resource-dialog-tip,
html body .dialogUrlBox .resource-dialog-notice {
    background: rgba(255, 255, 255, .04) !important;
    color: #a1a1aa !important;
    border: 1px solid rgba(255, 255, 255, .06) !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
}

/* 所有文字兜底 */
html body .dialogUrlBox .el-dialog__body * {
    color: inherit;
}

html body .dialogUrlBox .el-dialog__body {
    color: #e4e4e7 !important;
}


/* ---------- 搜索框清理：干掉外层光晕"突起" ---------- */
/* 之前用 ::before 做呼吸光晕，比输入框大 14px，视觉上像第二层边框，
   左侧凸出还容易误点，导致首字丢失。改为内阴影发光。 */
html body .search-container::before {
    display: none !important;
    content: none !important;
}

html body .search-container .flex {
    padding-left: 16px !important;
    padding-right: 5px !important;
    box-shadow: inset 0 0 22px rgba(0, 229, 255, .05) !important;
}

html body .search-container .flex:focus-within {
    box-shadow:
        inset 0 0 22px rgba(0, 229, 255, .08),
        0 0 0 3px rgba(0, 229, 255, .10),
        0 0 26px rgba(0, 229, 255, .22) !important;
}

html body .search-container .search-input {
    padding-left: 6px !important;
    text-indent: 0 !important;
    caret-color: #00e5ff !important;
}


/* ---------- 彻底清掉输入框自身的边框（双层框"突起"的元凶） ----------
   实测：input.search-input 有 1px 边框 + 6px 左内边距，
   嵌在 .flex 的 1px 边框里，左侧错位 17px，形成视觉凸起并影响点击定位。 */
html body .search-container .search-input,
html body .search-container input.search-input,
html body .searchBox .search input,
html body .headerBox .search input {
    border: none !important;
    border-width: 0 !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important;
    line-height: normal !important;
}

/* 焦点态只让父容器发光，输入框本身不发光 */
html body .search-container .search-input:focus,
html body .searchBox .search input:focus,
html body .headerBox .search input:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}


/* ---------- 资源弹窗：清除剩余白底（按实测类名精准覆盖） ---------- */
/* 关闭按钮：圆形、收进卡片内、悬停转 90 度 */
html body .dialogUrlBox .el-dialog__headerbtn {
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    background: rgba(255, 255, 255, .05) !important;
    color: #9b9ba6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 5;
    transition: background .18s ease, border-color .18s ease, transform .22s ease;
}

html body .dialogUrlBox .el-dialog__headerbtn:hover {
    background: rgba(0, 229, 255, .14) !important;
    border-color: rgba(0, 229, 255, .45) !important;
    transform: rotate(90deg);
}

html body .dialogUrlBox .el-dialog__headerbtn:hover .el-dialog__close {
    color: #00e5ff !important;
}

html body .dialogUrlBox .el-dialog__headerbtn .el-dialog__close {
    color: inherit !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

/* 链接卡片 */
html body .dialogUrlBox .resource-dialog-link-card {
    background: #1e1e24 !important;
    border: 1px solid rgba(0, 229, 255, .14) !important;
    border-radius: 12px !important;
}

/* 二维码外框（qrcode 本身保持白底，否则扫不出） */
html body .dialogUrlBox .resource-dialog-qr {
    background: #1e1e24 !important;
    border: 1px solid rgba(0, 229, 255, .14) !important;
    border-radius: 12px !important;
}

/* 免责声明 */
html body .dialogUrlBox .statement {
    background: rgba(255, 255, 255, .04) !important;
    color: #a1a1aa !important;
    border: 1px solid rgba(255, 255, 255, .06) !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    line-height: 1.75 !important;
}

/* 海报占位（图片加载前的底色） */
html body .dialogUrlBox .resource-dialog-poster {
    background: #1e1e24 !important;
}

/* 弹窗内所有浅底兜底 */
html body .dialogUrlBox .resource-dialog-link-card *,
html body .dialogUrlBox .statement * {
    color: #a1a1aa !important;
}

html body .dialogUrlBox .statement a {
    color: #00e5ff !important;
}


/* ---------- 目录树面板：深色适配 + 按钮醒目 ---------- */
/* 白底来源：.dialogUrlBox .dialogUrl .pan-tree-box { background: #fafafc } */
html body .dialogUrlBox .dialogUrl .pan-tree-box {
    background: #1a1a21 !important;
    border: 1px solid rgba(0, 229, 255, .18) !important;
    border-radius: 12px !important;
    box-shadow: inset 0 0 26px rgba(0, 229, 255, .04) !important;
}

html body .dialogUrlBox .dialogUrl .pan-tree-body {
    background: transparent !important;
    color: #d4d4d8 !important;
}

html body .dialogUrlBox .dialogUrl .pan-tree-node,
html body .dialogUrlBox .dialogUrl .pan-tree-node span,
html body .dialogUrlBox .dialogUrl .pan-tree-node div,
html body .dialogUrlBox .dialogUrl .pan-tree-node a {
    color: #d4d4d8 !important;
    background: transparent !important;
}

html body .dialogUrlBox .dialogUrl .pan-tree-node:hover {
    background: rgba(0, 229, 255, .06) !important;
    border-radius: 6px !important;
}

html body .dialogUrlBox .dialogUrl .pan-tree-toggle {
    color: #00e5ff !important;
}

html body .dialogUrlBox .dialogUrl .pan-tree-loading {
    color: #00e5ff !important;
    background: transparent !important;
}

html body .dialogUrlBox .dialogUrl .pan-tree-empty,
html body .dialogUrlBox .dialogUrl .pan-tree-tip {
    color: #71717a !important;
    background: transparent !important;
}

html body .dialogUrlBox .dialogUrl .pan-tree-error {
    color: #ff8098 !important;
    background: rgba(255, 0, 85, .08) !important;
    border-radius: 8px !important;
}

/* 按钮：更醒目 + 呼吸光 */
html body .dialogUrlBox .resource-dialog-tree-toggle {
    background: linear-gradient(135deg, rgba(0, 229, 255, .15), rgba(192, 132, 252, .15)) !important;
    border: 1px solid rgba(0, 229, 255, .45) !important;
    color: #00e5ff !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    letter-spacing: .4px !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    text-shadow: 0 0 12px rgba(0, 229, 255, .5) !important;
    box-shadow: 0 0 16px rgba(0, 229, 255, .2), inset 0 0 20px rgba(0, 229, 255, .06) !important;
    animation: sp-tree-pulse 2.4s ease-in-out infinite !important;
    transition: transform .18s ease !important;
}

html body .dialogUrlBox .resource-dialog-tree-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 229, 255, .8) !important;
    box-shadow: 0 0 30px rgba(0, 229, 255, .45) !important;
}

@keyframes sp-tree-pulse {
    0%, 100% { box-shadow: 0 0 14px rgba(0, 229, 255, .16), inset 0 0 18px rgba(0, 229, 255, .04); }
    50%      { box-shadow: 0 0 30px rgba(0, 229, 255, .42), inset 0 0 22px rgba(0, 229, 255, .1); }
}

html body .dialogUrlBox .resource-dialog-tree-toggle em {
    color: #a1a1aa !important;
    background: rgba(255, 255, 255, .07) !important;
    border-radius: 999px !important;
    padding: 1px 9px !important;
    font-style: normal !important;
    font-size: 12px !important;
    margin-left: 6px !important;
    text-shadow: none !important;
}

/* ---------- 回到顶部按钮深色化 ---------- */
html body .global-backtop {
    background: rgba(18, 18, 24, .88) !important;
    border: 1px solid rgba(0, 229, 255, .28) !important;
    color: #00e5ff !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .5), 0 0 20px rgba(0, 229, 255, .12) !important;
    backdrop-filter: blur(8px);
}

html body .global-backtop:hover {
    background: rgba(26, 26, 34, .96) !important;
    border-color: rgba(0, 229, 255, .5) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .55), 0 0 26px rgba(0, 229, 255, .22) !important;
}

/* ---------- 资源弹窗标题栏：原样式带半透明白底，深色主题下标题几乎不可读 ---------- */
html body .dialogUrlBox .resource-dialog-header {
    background: transparent !important;
    padding-right: 56px !important; /* 给右上角圆形关闭按钮留位（按钮 34px + 边距） */
}

html body .dialogUrlBox .resource-dialog-title {
    color: #f0f0f3 !important;
}

@media (max-width: 768px) {
    /* 单列，海报压成横幅，避免 220px 海报列把信息区挤成一条 */
    html body .dialogUrlBox .resource-dialog-shell {
        display: block !important;
    }
    html body .dialogUrlBox .resource-dialog-poster {
        min-height: 0 !important;
        height: 180px !important;
        margin-bottom: 12px;
    }
    html body .dialogUrlBox .resource-dialog-poster-main {
        height: 180px !important;
    }
    html body .dialogUrlBox .resource-dialog-poster-main img {
        object-fit: cover !important;
    }
    html body .dialogUrlBox .resource-dialog-card {
        padding: 16px !important;
    }
    html body .dialogUrlBox .el-dialog {
        max-height: 88vh;
        overflow-y: auto;
    }
}

/* 弹窗外层 .dialogUrl 是浅灰底，.resource-dialog-info 自带白色渐变蒙层 —— 一并压掉 */
html body .dialogUrlBox .dialogUrl {
    background: #121218 !important;
}

html body .dialogUrlBox .resource-dialog-info {
    background: transparent !important;
    background-image: none !important;
}

/* 海报占位蒙层是浅色主题的产物，深色下会糊住标题 —— 全部清掉 */
html body .dialogUrlBox .resource-dialog-poster::before,
html body .dialogUrlBox .resource-dialog-poster::after {
    background: transparent !important;
    background-image: none !important;
    animation: none !important;
}

@media (max-width: 768px) {
    /* 移动端弹窗空间有限，海报只会挤占可读区域，直接不显示 */
    html body .dialogUrlBox .resource-dialog-poster {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* 原设计是白色玻璃卡上浮 -74px 压住海报；海报隐藏后必须把这层位移清掉，否则标题被顶出弹窗 */
    html body .dialogUrlBox .resource-dialog-info,
    html body .dialogUrlBox .resource-dialog-shell:not(.no-poster):not(.has-landscape) .resource-dialog-info {
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    html body .dialogUrlBox .resource-dialog-shell:not(.no-poster):not(.has-landscape) .resource-dialog-header {
        margin: 0 0 10px !important;
        padding: 0 44px 0 0 !important;
        background: transparent !important;
    }
}

/* 「提交需求」悬浮按钮（.headerBox .navs .item）原本白底，深色主题下像块白补丁 */
html body .headerBox .navs .item {
    background: rgba(18, 18, 24, .9) !important;
    border: 1px solid rgba(0, 229, 255, .28) !important;
    color: #00e5ff !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .45), 0 0 16px rgba(0, 229, 255, .12) !important;
    backdrop-filter: blur(8px);
}

/* ---------- 移动端抽屉：默认占六成屏，可拖动改高（限高限低） ---------- */
@media (max-width: 768px) {
    html body .sp-drawer {
        min-height: 0 !important;
        max-height: none !important;
        height: var(--sp-drawer-h, 92vh) !important;
        transition:
            transform .34s cubic-bezier(.22, .9, .3, 1),
            opacity .28s ease,
            visibility .28s ease,
            height .3s cubic-bezier(.22, .9, .3, 1);
    }

    /* 拖动过程中关掉高度过渡，手指跟手 */
    html body .sp-drawer.is-dragging {
        transition: transform .2s ease, opacity .2s ease, visibility .2s ease !important;
    }

    html body .sp-drawer.is-dragging .sp-drawer-body {
        overflow-y: hidden !important;
        pointer-events: none;
    }
}

/* 拖动手柄：视觉只有一条细线，热区上下各放大 14px，手机好按 */
.sp-drawer-grabwrap {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 8px 0 4px;
    cursor: grab;
    touch-action: none;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.sp-drawer-grabwrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    bottom: -10px;
}

.sp-drawer-grabwrap.is-dragging {
    cursor: grabbing;
}

.sp-drawer-grab {
    width: 46px;
    height: 4px;
    border-radius: 2px;
    background: var(--sp-text-3, rgba(255, 255, 255, .2));
    opacity: .55;
    margin: 0;
}

@media (min-width: 769px) {
    .sp-drawer-grabwrap {
        padding: 8px 0 2px;
        cursor: default;
    }
}

/* ---------- 首页背景流星 ---------- */
.sp-stars {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.sp-stars i {
    position: absolute;
    top: var(--y, 10%);
    left: var(--x, 10%);
    width: 2.5px;
    height: 2.5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 7px 2px rgba(190, 235, 255, .75), 0 0 16px 3px rgba(0, 229, 255, .28);
    opacity: 0;
    animation: sp-star-fly var(--sd, 8s) linear infinite;
    animation-delay: var(--sdelay, 0s);
    will-change: transform, opacity;
}

.sp-stars i::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1.2px;
    width: var(--sw, 120px);
    height: 1.6px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(190, 235, 255, .18) 45%,
        rgba(214, 244, 255, .75) 85%,
        #fff 100%);
    transform: translateY(-50%) rotate(32deg);
    transform-origin: right center;
    border-radius: 1px;
    filter: blur(.2px);
}

/* 远近层次：交替长短，避免六条一样长 */
.sp-stars i:nth-child(2n)::after { width: 86px; opacity: .8; }
.sp-stars i:nth-child(3n)::after { width: 150px; opacity: .65; }

@keyframes sp-star-fly {
    0%   { transform: translate3d(0, 0, 0); opacity: 0; }
    8%   { opacity: 1; }
    70%  { opacity: .9; }
    94%  { opacity: .25; }
    100% { transform: translate3d(520px, 325px, 0); opacity: 0; }
}

@media (max-width: 768px) {
    .sp-stars i:nth-child(n+4) { display: none; }
    .sp-stars i::after { width: 80px; }
}

@media (prefers-reduced-motion: reduce) {
    .sp-stars { display: none; }
}

/* ---------- 网盘名彩色标签 ---------- */
.sp-pan-badge {
    display: inline-flex;
    align-items: center;
    height: 17px;
    padding: 0 7px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1;
    letter-spacing: .02em;
    white-space: nowrap;
    vertical-align: middle;
}

.sp-pan-badge.is-t0 {
    color: #7ff0ff;
    background: rgba(0, 229, 255, .12);
    border: 1px solid rgba(0, 229, 255, .28);
}

.sp-pan-badge.is-t2 {
    color: #9cc6ff;
    background: rgba(74, 158, 255, .14);
    border: 1px solid rgba(74, 158, 255, .32);
}

.sp-pan-badge.is-t3 {
    color: #ffc09a;
    background: rgba(255, 138, 76, .14);
    border: 1px solid rgba(255, 138, 76, .32);
}

.sp-pan-badge.is-t4 {
    color: #c4b8ff;
    background: rgba(139, 124, 255, .14);
    border: 1px solid rgba(139, 124, 255, .32);
}


/* ---------- 资源弹窗：只保留一层边框 ----------
   原本外层 .el-dialog 和内层 .resource-dialog-card 各有一圈青色描边，
   嵌套后看起来像双边框。这里把外层做成完全透明，只留内层卡片那一圈。 */
html body .el-dialog.dialogUrlBox {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

html body .dialogUrlBox .el-dialog__header {
    padding: 0 !important;
    margin: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    border: none !important;
    background: transparent !important;
}

html body .dialogUrlBox .el-dialog__body {
    padding: 0 !important;
    background: transparent !important;
}

html body .dialogUrlBox .resource-dialog-card {
    border: 1px solid rgba(0, 229, 255, .26) !important;
    border-radius: 16px !important;
    background: #121218 !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .75), 0 0 40px rgba(0, 229, 255, .07) !important;
    position: relative !important;
}

/* 弹窗关闭按钮：Element 自带的那个被 .resource-dialog-header 盖住点不到（实测 elementFromPoint
   落在 header 上），改成卡片内自己的按钮，热区 34px（手机 40px） */
html body .dialogUrlBox .el-dialog__headerbtn {
    display: none !important;
}

.sp-dialog-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 60;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--sp-line-2, rgba(255, 255, 255, .14));
    background: var(--sp-bg-3, rgba(30, 30, 36, .92));
    color: var(--sp-text-2, #a1a1aa);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .22s ease;
}

.sp-dialog-close svg {
    width: 15px;
    height: 15px;
    display: block;
}

.sp-dialog-close:hover {
    color: var(--sp-accent, #00e5ff);
    border-color: var(--sp-accent-line, rgba(0, 229, 255, .45));
    background: var(--sp-accent-soft, rgba(0, 229, 255, .12));
    transform: rotate(90deg);
}

.sp-dialog-close:active {
    transform: scale(.92);
}

@media (max-width: 768px) {
    .sp-dialog-close {
        width: 40px;
        height: 40px;
        top: 8px;
        right: 8px;
        background: var(--sp-bg-2, #121218);
        box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
    }

    .sp-dialog-close svg {
        width: 17px;
        height: 17px;
    }

    html body .dialogUrlBox .resource-dialog-header {
        padding-right: 56px !important;
    }
}

/* ===== 2026-10-22 云梦改版：手机端头部与搜索框 ===== */

/* 手机端搜索框：width:100% 再叠加左右 padding 会溢出视口，改用 border-box 收进屏内 */
@media (max-width: 768px) {
    html body .search-container {
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* 顶部「加入群聊 / 提交需求 / 外链」已移除，主题按钮独占右上角 */
@media (max-width: 768px) {
    html body .common-header .headerBox .box .navs {
        position: fixed !important;
        right: 14px !important;
        top: 14px !important;
        z-index: 9002 !important;
        display: flex !important;
        align-items: center !important;
        pointer-events: auto !important;
    }

    html body .common-header .headerBox .box .navs .sp-theme-btn {
        width: 38px !important;
        height: 38px !important;
        position: static !important;
    }
}

/* ===== 搜索结果「站内」角标（自己网盘里已转存的 / 后台手工上传的） ===== */
.sp-local-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 0 7px;
    margin-right: 5px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .4px;
    background: var(--sp-accent, #4aa8ff);
    color: var(--sp-on-accent, #fff);
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .sp-local-badge {
        height: 17px;
        padding: 0 6px;
        font-size: 10px;
    }
}

/* ===== 获取资源过渡动画（后台转存 + 分享中）===== */
.rd-veil {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 18px 20px;
    text-align: center;
}
.rd-veil-visual {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 18px;
}
.rd-veil-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.rd-ring-track { fill: none; stroke: var(--sp-accent-soft); stroke-width: 5; }
.rd-ring-bar {
    fill: none;
    stroke: var(--sp-accent);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 62 265;
    transform-origin: 60px 60px;
    animation: rd-ring-spin 1.6s cubic-bezier(.45, .15, .55, .85) infinite;
}
@keyframes rd-ring-spin { to { transform: rotate(360deg); } }

.rd-veil-cloud {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    color: var(--sp-accent);
    animation: rd-cloud-float 3s ease-in-out infinite;
}
.rd-veil-cloud .rd-arrow { animation: rd-arrow-bob 1.4s ease-in-out infinite; }
@keyframes rd-cloud-float {
    0%, 100% { transform: translateY(-3px); }
    50% { transform: translateY(3px); }
}
@keyframes rd-arrow-bob {
    0%, 100% { transform: translateY(-1.5px); opacity: .85; }
    50% { transform: translateY(2px); opacity: 1; }
}

.rd-veil-spark {
    position: absolute;
    top: -2px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: var(--sp-accent-2);
    box-shadow: 0 0 12px 2px var(--sp-glow, rgba(0, 229, 255, .45));
    transform-origin: 4px 62px;
    animation: rd-spark-spin 1.6s linear infinite;
}
@keyframes rd-spark-spin { to { transform: rotate(360deg); } }

.rd-veil-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--sp-text);
    margin-bottom: 8px;
}

/* 文字轮播：4 条循环淡入淡出（转存时长不定，循环播放） */
.rd-veil-lines {
    position: relative;
    width: 250px;
    height: 22px;
    overflow: hidden;
    margin-bottom: 14px;
}
.rd-veil-lines span {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    font-size: 13.5px;
    color: var(--sp-text-2);
    opacity: 0;
    animation: rd-line-cycle 10s linear infinite;
}
.rd-veil-lines span:nth-child(1) { animation-delay: 0s; }
.rd-veil-lines span:nth-child(2) { animation-delay: 2.5s; }
.rd-veil-lines span:nth-child(3) { animation-delay: 5s; }
.rd-veil-lines span:nth-child(4) { animation-delay: 7.5s; }
@keyframes rd-line-cycle {
    0%, 20% { opacity: 0; transform: translateY(8px); }
    5%, 18% { opacity: 1; transform: translateY(0); }
    26%, 100% { opacity: 0; transform: translateY(-8px); }
}

.rd-veil-bar {
    width: 200px;
    height: 4px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--sp-accent-soft);
    margin-bottom: 12px;
}
.rd-veil-bar i {
    display: block;
    height: 100%;
    width: 36%;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--sp-accent), var(--sp-accent-2));
    animation: rd-bar-slide 1.6s ease-in-out infinite;
}
@keyframes rd-bar-slide {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(320%); }
}

.rd-veil-tip { font-size: 12px; color: var(--sp-text-3); }

/* 手机端 */
@media (max-width: 768px) {
    .rd-veil { min-height: 260px; padding: 22px 14px 16px; }
    .rd-veil-visual { width: 100px; height: 100px; }
    .rd-veil-cloud { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
    .rd-veil-lines { width: 220px; }
    .rd-veil-bar { width: 170px; }
    .rd-veil-title { font-size: 16px; }
}
