/* 全站隐藏浏览器侧边滚动条：仍然可以滚动，只是不显示滚动条 */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* --- 搜索栏 --- */
.search-page-wrapper {
    padding-top: 18px;
    flex: 1 0 auto;
}

.search-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 8px;
}.search-shell {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.search-shell {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: var(--radius-2xl);
}

.search-area {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.search-input-wrapper {
    width: min(70%, 1080px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-input-wrapper .input-group-custom {
    width: 100%;
}

.input-group-custom {
    width: min(70%, 1080px);
    margin: 0;
    padding: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 18px 42px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    overflow: hidden;
}
@keyframes progress-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (max-width: 768px) {
    .search-input-wrapper {
        width: 100%;
    }
}

#searchInput {
    height: 58px;
    border: none;
    background: transparent;
    font-size: 1rem;
    padding-left: 18px;
    color: var(--text-primary);
}

#searchInput:focus {
    box-shadow: none;
    background: transparent;
}

@keyframes fly-animate {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(3px, -3px) rotate(15deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* --- 结果区网盘徽章专属品牌配色（低饱和底色 + 品牌主色字，精致高辨识度） --- */
/* 1. 国内主流网盘 */
.netdisk-badge.bg-baidu {
    background-color: #eaf2fe !important;
    color: #1e60d5 !important;
    border-color: rgba(30, 96, 213, 0.15) !important;
}
.netdisk-badge.bg-quark {
    background-color: #fdf0ec !important;
    color: #d93829 !important;
    border-color: rgba(217, 56, 41, 0.15) !important;
}
.netdisk-badge.bg-aliyun {
    background-color: #e6f8f3 !important;
    color: #059669 !important;
    border-color: rgba(5, 150, 105, 0.15) !important;
}
.netdisk-badge.bg-xunlei {
    background-color: #e6f6f9 !important;
    color: #0284c7 !important;
    border-color: rgba(2, 132, 199, 0.15) !important;
}
.netdisk-badge.bg-uc {
    background-color: #fef6e8 !important;
    color: #d97706 !important;
    border-color: rgba(217, 119, 6, 0.15) !important;
}
.netdisk-badge.bg-123pan {
    background-color: #f5effe !important;
    color: #8b5cf6 !important;
    border-color: rgba(139, 92, 246, 0.15) !important;
}
.netdisk-badge.bg-115 {
    background-color: #fff3ea !important;
    color: #ea580c !important;
    border-color: rgba(234, 88, 12, 0.15) !important;
}

/* 2. 运营商云盘 */
.netdisk-badge.bg-tianyi {
    background-color: #edf3ff !important;
    color: #2563eb !important;
    border-color: rgba(37, 99, 235, 0.15) !important;
}
.netdisk-badge.bg-mobile {
    background-color: #ecfdf5 !important;
    color: #16a34a !important;
    border-color: rgba(22, 163, 74, 0.15) !important;
}
.netdisk-badge.bg-unicom {
    background-color: #fff1f2 !important;
    color: #e11d48 !important;
    border-color: rgba(225, 29, 72, 0.15) !important;
}

/* 3. 国内特色 / 小众网盘 */
.netdisk-badge.bg-lanzou {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border-color: rgba(3, 105, 161, 0.15) !important;
}
.netdisk-badge.bg-ctfile {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border-color: rgba(4, 120, 87, 0.15) !important;
}
.netdisk-badge.bg-weiyun {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: rgba(29, 78, 216, 0.15) !important;
}
.netdisk-badge.bg-jianguo {
    background-color: #fcf4ea !important;
    color: #92400e !important;
    border-color: rgba(146, 64, 14, 0.15) !important;
}
.netdisk-badge.bg-wukong {
    background-color: #edf2f7 !important;
    color: #334155 !important;
    border-color: rgba(51, 65, 85, 0.15) !important;
}
.netdisk-badge.bg-kuaitu {
    background-color: #fdf2f8 !important;
    color: #db2777 !important;
    border-color: rgba(219, 39, 119, 0.15) !important;
}
.netdisk-badge.bg-guangya {
    background-color: #fefce8 !important;
    color: #ca8a04 !important;
    border-color: rgba(202, 138, 4, 0.18) !important;
}

/* 4. 海外及跨境网盘 */
.netdisk-badge.bg-terabox {
    background-color: #eef2ff !important;
    color: #4f46e5 !important;
    border-color: rgba(79, 70, 229, 0.15) !important;
}
.netdisk-badge.bg-gdrive {
    background-color: #e6f4ea !important;
    color: #137333 !important;
    border-color: rgba(19, 115, 51, 0.15) !important;
}
.netdisk-badge.bg-mega {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: rgba(220, 38, 38, 0.15) !important;
}
.netdisk-badge.bg-gofile {
    background-color: #f3e8ff !important;
    color: #7c3aed !important;
    border-color: rgba(124, 58, 237, 0.15) !important;
}
.netdisk-badge.bg-onedrive {
    background-color: #e0f2fe !important;
    color: #0078d4 !important;
    border-color: rgba(0, 120, 212, 0.15) !important;
}
.netdisk-badge.bg-pikpak {
    background-color: #fff1eb !important;
    color: #c2410c !important;
    border-color: rgba(194, 65, 12, 0.15) !important;
}

/* 5. P2P 协议链接 & 兜底 */
.netdisk-badge.bg-magnet {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    border-color: rgba(30, 41, 59, 0.18) !important;
}
.netdisk-badge.bg-thunder {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border-color: rgba(3, 105, 161, 0.15) !important;
}
.netdisk-badge.bg-ed2k {
    background-color: #f3f4f6 !important;
    color: #475569 !important;
    border-color: rgba(71, 85, 105, 0.15) !important;
}
.netdisk-badge.bg-other {
    background-color: #f8fafc !important;
    color: #64748b !important;
    border-color: rgba(100, 116, 139, 0.15) !important;
}

/* 兼容旧版本通用 class */
.netdisk-badge.bg-purple { background-color: #f5effe !important; color: #8b5cf6 !important; }
.netdisk-badge.bg-orange { background-color: #fff3ea !important; color: #ea580c !important; }
.netdisk-badge.bg-teal { background-color: #e6f6f9 !important; color: #0284c7 !important; }
.netdisk-badge.bg-mid-blue { background-color: #eaf2fe !important; color: #1e60d5 !important; }
.netdisk-badge.bg-light-green { background-color: #ecfdf5 !important; color: #16a34a !important; }
.netdisk-badge.bg-salmon { background-color: #fff1eb !important; color: #c2410c !important; }
.netdisk-badge.bg-deep-violet { background-color: #edf3ff !important; color: #2563eb !important; }
.netdisk-badge.bg-coral { background-color: #fdf2f8 !important; color: #db2777 !important; }
.netdisk-badge.bg-navy-blue { background-color: #edf2f7 !important; color: #334155 !important; }
.netdisk-badge.bg-dark-mint { background-color: #e6f8f3 !important; color: #059669 !important; }
.netdisk-badge.bg-warm-gold { background-color: #fef6e8 !important; color: #d97706 !important; }
.netdisk-badge.bg-olive { background-color: #eff4e6 !important; color: #6b7f38 !important; }
.netdisk-badge.bg-terracotta { background-color: #fdf0ec !important; color: #d93829 !important; }

.badge-name-full {
    display: inline;
}.badge-name-short {
    display: none;
}

.filter-and-count-container {
    gap: 16px;
    margin-bottom: 20px;
}

.filter-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.filter-toolbar-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.result-count {
    flex: 0 0 auto;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 600;
}

.filter-input-icon.text-emerald {
    color: #10b981;
}

.filter-input-icon.text-rose {
    color: #f43f5e;
}

/* 转存弹窗：高度跟随内容，橄榄绿粗框（与精选页卡片同一套视觉） */
.view-result-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #FFFDFE;
    border: 2px solid #5D7028;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 5px 8px 5px rgba(1, 2, 1, 0.4);
}

/* 顶部橄榄绿横条 */
.view-result-modal::before {
    content: "";
    display: block;
    height: 10px;
    background: #5D7028;
    flex-shrink: 0;
}

/* 加载态：只有动画本身，不留绿框和绿条（is-loading 挂在外层 #viewResultModal 上） */
#viewResultModal.is-loading .view-result-modal {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

#viewResultModal.is-loading .view-result-modal::before {
    display: none;
}

#viewResultModal.is-loading .view-result-close {
    display: none;
}

#viewResultModal.show {
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 24px 16px;
}

.view-result-close {
    position: absolute;
    top: 22px;
    right: 14px;
    width: 24px;
    height: 24px;
    padding: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #5D7028;
    cursor: pointer;
}
.view-result-close svg { width: 20px; height: 20px; stroke-width: 1.7; }
.view-result-close:hover { background: transparent; color: #3d4a1a; }
.view-result-close:focus,
.view-result-close:focus-visible { outline: none !important; box-shadow: none !important; }

#viewResultModal .modal-dialog,
#viewResultModal .modal-dialog.modal-dialog-centered {
    width: min(calc(100vw - 40px), 380px);
    max-width: 380px;
    min-height: auto;
    margin: 0 auto;
    transform: none;
}

/* 内容紧凑排列，弹窗高度跟着内容走，不留大片空白 */
.view-result-modal .modal-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.4rem 1.5rem;
}

#viewResultContentState {
    display: flex;
    flex-direction: column;
}

#viewResultStandardState {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 内容出现时轻微弹入，让点击有反馈 */
#viewResultStandardState,
#viewResultQrState {
    animation: viewResultPop 0.26s ease-out;
}

@keyframes viewResultPop {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.view-result-loading {
    padding: 0;
}

/* 转存加载：量子云四粒子（按 CloudLoader 原组件 1:1 复刻，尺寸/配色/缓动/周期全部原版） */
.qc-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    overflow: hidden;
}

.qc-loader {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 176px;
    height: 96px;
}

.qc-item {
    position: absolute;
}

.qc-dot {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
}

/* 红：快速内圈粒子 h-4 w-4 */
.qc-red {
    z-index: 30;
    width: 16px;
    height: 16px;
    animation: qcRed 3.8s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    will-change: transform, opacity;
}

.qc-red .qc-dot {
    background: #f87171;
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.75), 0 0 24px rgba(248, 113, 113, 0.3);
}

/* 蓝：大外圈粒子 h-6 w-6 */
.qc-blue {
    z-index: 10;
    width: 24px;
    height: 24px;
    animation: qcBlue 5.6s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    will-change: transform, opacity;
}

.qc-blue .qc-dot {
    background: #60a5fa;
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.7), 0 0 30px rgba(96, 165, 250, 0.25);
}

/* 黄：中心粒子 h-5 w-5 */
.qc-yellow {
    z-index: 40;
    width: 20px;
    height: 20px;
    animation: qcYellow 3.1s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    will-change: transform, opacity;
}

.qc-yellow .qc-dot {
    background: #facc15;
    box-shadow: 0 0 14px rgba(250, 204, 21, 0.75), 0 0 26px rgba(250, 204, 21, 0.3);
}

/* 绿：慢速轨道粒子 h-3.5 w-3.5 */
.qc-green {
    z-index: 0;
    width: 14px;
    height: 14px;
    animation: qcGreen 6.4s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
    will-change: transform, opacity;
}

.qc-green .qc-dot {
    background: #4ade80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.75), 0 0 24px rgba(74, 222, 128, 0.3);
}

@keyframes qcRed {
    0% { transform: translate3d(-46px, 7px, 0) scale(0.72); opacity: 0.45; }
    25% { transform: translate3d(-23px, -7px, 0) scale(0.95); opacity: 0.78; }
    50% { transform: translate3d(46px, 0, 0) scale(1.18); opacity: 1; }
    75% { transform: translate3d(23px, 7px, 0) scale(0.95); opacity: 0.78; }
    100% { transform: translate3d(-46px, 7px, 0) scale(0.72); opacity: 0.45; }
}

@keyframes qcBlue {
    0% { transform: translate3d(38px, -4px, 0) scale(1); opacity: 0.95; }
    25% { transform: translate3d(19px, 7px, 0) scale(0.88); opacity: 0.72; }
    50% { transform: translate3d(-38px, 3px, 0) scale(0.68); opacity: 0.42; }
    75% { transform: translate3d(-19px, -7px, 0) scale(0.88); opacity: 0.72; }
    100% { transform: translate3d(38px, -4px, 0) scale(1); opacity: 0.95; }
}

@keyframes qcYellow {
    0% { transform: translate3d(-27px, 2px, 0) scale(0.82); opacity: 0.65; }
    20% { transform: translate3d(-17px, -5px, 0) scale(0.94); opacity: 0.82; }
    50% { transform: translate3d(27px, 0, 0) scale(1.08); opacity: 1; }
    80% { transform: translate3d(17px, 5px, 0) scale(0.94); opacity: 0.82; }
    100% { transform: translate3d(-27px, 2px, 0) scale(0.82); opacity: 0.65; }
}

@keyframes qcGreen {
    0% { transform: translate3d(64px, 6px, 0) scale(0.52); opacity: 0.25; }
    20% { transform: translate3d(43px, -5px, 0) scale(0.68); opacity: 0.45; }
    50% { transform: translate3d(0, 3px, 0) scale(1); opacity: 0.9; }
    80% { transform: translate3d(-43px, -5px, 0) scale(0.68); opacity: 0.45; }
    100% { transform: translate3d(-64px, 6px, 0) scale(0.52); opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
    .qc-red,
    .qc-blue,
    .qc-yellow,
    .qc-green {
        animation: none;
    }
}

/* 网盘标识行：图标 + 网盘名 + 底部蓝线（与精选页卡片同一套） */
.view-result-netdisk {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding-bottom: 6px;
    border-bottom: 2px solid #5D7028;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #5D7028;
}

.view-result-netdisk-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

/* 二维码态内容居中，网盘行也跟着居中 */
#viewResultQrNetdisk {
    justify-content: center;
    margin-bottom: 12px;
}

/* 二维码态内容在正方形里垂直居中 */
#viewResultQrState {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.view-result-title {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #5D7028;
    word-break: break-word;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-result-qr-foot {
    padding: 16px 4px 4px;
}

.view-result-qr-link {
    display: block;
    margin-top: 3px;
    font-size: 0.72rem;
    line-height: 1.5;
    color: #3b82f6;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-result-qr-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.view-result-qr-box {
    width: 168px;
    height: 168px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.view-result-qr-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    z-index: 5;
}

.view-result-qr-loading.is-active {
    display: flex !important;
}

.view-result-qr-loading .qr-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid #e2e8f0;
    border-top-color: #94a3b8;
    border-radius: 50%;
    animation: viewResultSpin 0.8s linear infinite;
    margin-bottom: 6px;
}

.view-result-qr-loading .qr-text {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.view-result-qr-img {
    width: 150px;
    height: 150px;
    display: block;
    border-radius: 8px;
    position: relative;
    z-index: 10;
}

.view-result-qr-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #0f172a;
    word-break: break-word;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-result-qr-address,
#viewResultQrLink {
    word-break: break-all;
}

.view-result-link {
    margin-top: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.55;
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #3b82f6;
    text-decoration: none;
}

.view-result-link:hover {
    text-decoration: underline;
    color: #2563eb;
}

/* --- 搜索结果容器 --- */
#scrollableResults {
    position: relative;
    max-height: 80vh;
    overflow-y: hidden;
    overflow-x: hidden;
    background:
        radial-gradient(circle at calc(100% + 42px) calc(100% + 56px),
            rgba(245, 191, 96, 0.11) 0%,
            rgba(245, 191, 96, 0.06) 18%,
            rgba(245, 191, 96, 0.025) 32%,
            transparent 46%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 250, 252, 0.68));
    border: 1px solid rgba(148, 163, 184, 0.14);
    padding: 0 24px;
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    z-index: 1;
}

#scrollableResults>* {
    position: relative;
    z-index: 1;
}

.result-item {
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.result-info {
    flex-grow: 1;
    min-width: 0;
    text-align: left;
}.result-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.result-title,
.result-url-line {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.result-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
    flex: 1 1 auto;
    min-width: 0;
}

.result-title-link {
    color: inherit;
    text-decoration: none;
}

.result-title-link:hover {
    text-decoration: underline;
}

.result-url-line {
    font-size: 0.86rem;
    color: #64748b;
    margin-top: 6px;
}

.result-url-line a {
    color: inherit;
    text-decoration: underline;
}

/* --- Hot 资源定制样式 --- */
.result-item.hot-result .result-title,
.result-item.hot-result .result-url-line a {
    font-size: 0.98rem;
    font-weight: 700;
}

.result-item.hot-result .result-title {
    color: #000 !important;
}

.result-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 12px;
    gap: 10px;
}

.netdisk-badge {
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    font-weight: 500;
    border: none !important;
    box-shadow: none !important;
    letter-spacing: 0.01em;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    height: 22px;
    justify-content: center;
    cursor: default;
    user-select: none;
}

.view-button {
    min-width: 72px;
    height: 28px;
    padding: 0 8px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
    border-radius: 18px !important;
    border: 1px solid rgba(245, 191, 96, 0.45) !important;
    background: linear-gradient(135deg, rgba(255, 251, 243, 0.98), rgba(254, 243, 199, 0.9)) !important;
    color: #92400e !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.12) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.view-button:hover {
    border-color: rgba(245, 158, 11, 0.7) !important;
    color: #78350f !important;
    background: linear-gradient(135deg, #fde68a, #f59e0b) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25) !important;
    transform: translateY(-1px);
}

.view-button.dead-btn {
    border: 1px solid rgba(203, 213, 225, 0.6) !important;
    background: rgba(241, 245, 249, 0.85) !important;
    color: #64748b !important;
    box-shadow: none !important;
    font-weight: 500 !important;
}

.view-button.dead-btn:hover {
    border-color: rgba(148, 163, 184, 0.6) !important;
    background: #e2e8f0 !important;
    color: #334155 !important;
    box-shadow: none !important;
    transform: translateY(-1px);
}

/* 响应式调整 */
@media (min-width: 769px) {
    .filter-toolbar {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .search-page-wrapper {
        padding-top: 10px;
    }.search-shell {
        border-radius: 20px;
    }

    .search-shell {
        padding-left: 14px;
        padding-right: 14px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .search-layout {
        gap: 12px;
    }

    .search-hero {
        padding-top: 0;
    }

    .input-group-custom {
        width: 100%;
        border-radius: 16px;
        padding: 6px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    }

    #searchInput {
        height: 46px;
        font-size: 0.95rem;
        padding-left: 12px;
    }.badge-name-full {
        display: none !important;
    }.badge-name-short {
        display: inline !important;
    }

    .filter-and-count-container {
        margin-bottom: 12px;
        gap: 10px;
    }

    .filter-toolbar {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .filter-toolbar-info {
        flex: 1 1 auto;
        min-width: 0;
        gap: 6px;
    }

    .result-count {
        text-align: left;
        white-space: normal;
        word-break: break-word;
        line-height: 1.4;
        font-size: 0.88rem;
        flex: 1 1 auto;
        min-width: 0;
    }

    #scrollableResults {
        padding: 0 14px;
        border-radius: 18px;
        max-height: 75vh;
        -webkit-overflow-scrolling: touch;
    }

    .result-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 11px 4px;
        margin: 0 -4px;
        border-radius: 10px;
        cursor: pointer;
        transition: background-color 0.15s ease;
    }

    .result-item:active {
        background-color: rgba(241, 245, 249, 0.75);
    }

    .result-info {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
    }

    .result-title-line {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.45;
        word-break: break-all;
    }

    .result-title-line .netdisk-badge {
        display: inline-flex;
        vertical-align: 1px;
        margin-right: 4px;
        margin-bottom: 2px;
        font-size: 0.72rem;
        padding: 1px 5px;
        height: 20px;
        line-height: 20px;
        flex-shrink: 0;
        border-radius: 4px;
    }

    .result-title-line .result-title {
        display: inline;
        font-size: 0.94rem;
        font-weight: 600;
        line-height: 1.45;
        color: #0f172a;
        letter-spacing: -0.01em;
        word-break: break-all;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .result-url-line {
        font-size: 0.8rem;
        color: #64748b;
        margin-top: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1.4;
    }

    .result-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-shrink: 0;
        width: auto;
        margin-left: 0;
        margin-top: 0;
        min-width: 48px;
    }

    .result-actions .action-btn-wrapper {
        width: auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .result-actions .btn,
    .view-button {
        min-width: 48px;
        height: 28px;
        padding: 0 8px !important;
        font-size: 0.82rem !important;
        border-radius: 14px !important;
        white-space: nowrap !important;
        gap: 0 !important;
    }

    /* 移动端隐藏 查看/复制 按钮前面的图标，节省空间 */
    .result-actions .btn i,
    .view-button i {
        display: none !important;
    }

    .link-health-badge {
        display: none !important;
    }

    /* 移动端弹窗优化 */
    #viewResultModal.show {
        padding: 12px;
    }

    #viewResultModal .modal-dialog,
    #viewResultModal .modal-dialog.modal-dialog-centered {
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }

    .view-result-modal {
        border-radius: 3px;
    }

    .view-result-modal .modal-header {
        padding: 12px 16px;
    }

    .view-result-modal .modal-body {
        padding: 14px 16px 6px;
    }

    .view-result-modal .modal-footer {
        padding: 8px 16px 14px;
    }

    .view-result-modal .modal-footer .btn {
        width: 100%;
        height: 40px;
        border-radius: 12px;
        font-size: 0.92rem;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .container-fluid-custom {
        padding: 0 12px;
    }

    #scrollableResults {
        padding: 0 10px;
    }

    .result-item {
        gap: 8px;
        padding: 10px 2px;
        margin: 0 -2px;
    }

    .result-title-line .result-title {
        font-size: 0.91rem;
    }

    .result-url-line {
        font-size: 0.78rem;
    }

    .result-title-line .netdisk-badge {
        margin-right: 3px;
        padding: 1px 4px;
    }

    .result-actions {
        min-width: 44px;
    }

    .result-actions .btn,
    .view-button {
        min-width: 44px;
        height: 26px;
        padding: 0 6px !important;
        font-size: 0.78rem !important;
    }
}

/* --- 网盘链接健康测活状态徽章与失效过滤 --- */
.link-health-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
    height: 22px;
    text-align: center;
    border: none !important;
    cursor: default;
    user-select: none;
}

.link-health-badge.badge-ok {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

.link-health-badge.badge-bad {
    background: rgba(244, 63, 94, 0.08);
    color: #e11d48;
}

.link-health-badge.badge-locked {
    background: rgba(245, 158, 11, 0.08);
    color: #d97706;
}

.link-health-badge.badge-checking,
.link-health-badge.badge-uncertain {
    background: rgba(100, 116, 139, 0.06);
    color: #64748b;
}

/* 失效/死链条目视觉置灰与弱化 (淡雾灰标题，彻底隐藏操作按钮，自然融入整体) */
.result-item.is-dead-link {
    background: transparent;
    border-left: none;
    padding: 14px 0;
    margin: 0;
    opacity: 0.75;
    transition: all 0.2s ease;
}

.result-item.is-dead-link:hover {
    opacity: 0.9;
}

.result-item.is-dead-link .result-title {
    color: #94a3b8 !important;
    font-weight: 500;
}

.result-item.is-dead-link .result-url-line,
.result-item.is-dead-link .result-url-line a {
    color: #cbd5e1 !important;
}

.result-item.is-dead-link .netdisk-badge {
    opacity: 0.65;
    filter: grayscale(30%);
}

/* 2. 结果区去掉大容器底色，每条结果独立成白块 */
#scrollableResults {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}
#scrollableResults > * { position: static; }

.result-item-wrapper {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    padding: 4px 18px !important;
    margin-bottom: 14px !important;
    box-shadow: 2px 5px 6px rgba(1, 2, 1, 0.18) !important;
    transition: all 0.3s ease-in-out !important;
    overflow: hidden;
}
.result-item-wrapper:hover {
    transform: scale(1.05) !important;
    box-shadow: 4px 8px 10px rgba(1, 2, 1, 0.26) !important;
}

.netdisk-badge-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: -2px;
    object-fit: contain;
}

/* 3. 复制/查看改成纯文字按钮，颜色区分，不再堆叠彩色按钮块 */
.view-button {
    min-width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #3b82f6 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    gap: 0 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}
.view-button:hover {
    color: #2563eb !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}
.view-button.dead-btn {
    color: #9ca3af !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* 4. 盘友圈式分页器 */
.wp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 0 8px;
}
.wp-pagination.hidden { display: none !important; }
.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    color: #4b5563;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 2px 5px 6px rgba(1, 2, 1, 0.18);
    transition: all 0.3s ease-in-out;
}
.page-btn:hover:not(:disabled) {
    color: #3b82f6;
    border-color: #89b4fa;
    transform: scale(1.05);
    box-shadow: 4px 8px 10px rgba(1, 2, 1, 0.26);
}
.page-btn.active {
    background: #eaf1fb;
    color: #3b82f6;
    border-color: #89b4fa;
    font-weight: 600;
}
.page-btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.page-btn.page-nav { padding: 0 14px; }
.page-ellipsis { color: #9ca3af; padding: 0 2px; }

/* 深色模式 */
html.dark .result-item-wrapper { background: #1c1c1e !important; border-color: #2c2c2e !important; }
html.dark .result-item-wrapper:hover { box-shadow: 4px 8px 10px rgba(1, 2, 1, 0.6) !important; }
html.dark .result-title { color: #f5f5f7 !important; }
html.dark .result-url-line,
html.dark .result-url-line a { color: #8e8e93 !important; }
html.dark .view-button { color: #60a5fa !important; }
html.dark .view-button:hover { color: #93c5fd !important; }
html.dark .page-btn { background: #1c1c1e; color: #c7c7cc; border-color: #3a3a3c; }
html.dark .page-btn.active { background: #2c3a4a; color: #60a5fa; border-color: #3b82f6; }
html.dark .page-ellipsis { color: #6f6f73; }
.result-count {
    color: #1f2937 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}
.result-count-kw { color: #3b82f6 !important; font-weight: 600 !important; }
html.dark .result-count { color: #e5e7eb !important; }
html.dark .result-count-kw { color: #60a5fa !important; }
/* 关键词与数字加粗，句子其余保持常规字重 */
.result-count { font-weight: 400 !important; }
.result-count-kw { font-weight: 700 !important; }
.result-count-num { font-weight: 700 !important; }
.filter-and-count-container.mt-3 { margin-top: 6px !important; }
.search-shell { padding-top: 16px !important; }

/* ===== 2026-11-26 结果页瘦身：与搜索框等宽、收紧间距、加载态、去复制 ===== */
.search-shell {
    width: min(84%, 720px) !important;
    margin: 0 auto !important;
    padding: 8px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}
.filter-and-count-container.mt-3 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}
#scrollableResults { padding: 0 !important; }

/* 搜索中的转圈（功能性指示，非装饰动画） */
@keyframes wp-spin { to { transform: rotate(360deg); } }

/* 卡片：去掉复制后收紧，链接行贴住标题 */
.result-item-wrapper {
    padding: 2px 16px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 1px 2px rgba(1, 2, 1, 0.06), 0 2px 5px rgba(1, 2, 1, 0.08) !important;
}
.result-item-wrapper:hover {
    transform: none !important;
    box-shadow: 0 2px 4px rgba(1, 2, 1, 0.08), 0 4px 12px rgba(1, 2, 1, 0.10) !important;
}
.result-item { padding: 12px 0 !important; }.result-actions { display: flex !important; }
.result-url-line { margin-top: 6px !important; }
@media (max-width: 768px) {
    .search-shell { width: 100% !important; padding-top: 6px !important; }
    .filter-and-count-container.mt-3 { margin-bottom: 8px !important; }
    .result-item { padding: 11px 0 !important; }
}

/* ===== 2026-11-26 学盘友圈：细边框白卡 + 关键词黄底高亮 ===== */
.result-item-wrapper {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 0 14px !important;
    margin-bottom: 10px !important;
    box-shadow: none !important;
}
.result-item-wrapper:hover {
    transform: none !important;
    border-color: #d1d5db !important;
    box-shadow: none !important;
}
.result-item {
    display: block !important;
    padding: 13px 0 !important;
}
.result-item.is-clickable {
    cursor: pointer;
}
/* 网盘徽章独立一行，放在标题上方（小灰字） */
.result-netdisk-line {
    display: flex;
    align-items: center;
    margin-bottom: 3px;
}
.result-netdisk-line .netdisk-badge {
    font-size: 0.7rem !important;
    height: auto !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    padding: 0 !important;
    gap: 4px !important;
    border: 0 !important;
    background: transparent !important;
    color: #8e8e93 !important;
}
.result-netdisk-line .netdisk-badge .badge-name-full,
.result-netdisk-line .netdisk-badge .badge-name-short {
    font-size: 0.7rem !important;
    color: #8e8e93 !important;
}
.result-netdisk-line .netdisk-badge-icon {
    width: 13px !important;
    height: 13px !important;
}
.result-title-line {
    display: block !important;
    margin: 0 !important;
}
.result-title-line .result-title {
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    color: #111827 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.kw-hit {
    background: #fdf08a !important;
    color: #111827 !important;
    padding: 0 1px;
    border-radius: 2px;
}
.result-url-line {
    margin-top: 7px !important;
}
.result-url-line a {
    font-size: 12.5px !important;
    color: #3b82f6 !important;
    word-break: break-all;
}
.result-url-line a:hover {
    color: #2563eb !important;
    text-decoration: underline;
}
html.dark .result-item-wrapper {
    background: #1c1c1e !important;
    border-color: #2c2c2e !important;
}
html.dark .result-title-line .result-title { color: #f5f5f7 !important; }
html.dark .kw-hit { background: #7a6a12 !important; color: #fff8c9 !important; }
html.dark .result-url-line a { color: #60a5fa !important; }
@media (max-width: 768px) {
    .result-item-wrapper { padding: 0 12px !important; }
    .result-item { padding: 12px 0 !important; }
    .result-title-line .result-title { font-size: 14.5px !important; }
}

/* ===== 2026-11-26 搜索框改实心搜索键 + 结果筛选器 + 分页器 ===== */
/* 输入框现在占据左端，圆角回到左侧 */
.input-group-custom.vgroup-shell .form-control {
    border-radius: 18px 0 0 18px !important;
    padding: 0 18px !important;
}
.input-group-custom.vgroup-shell .search-submit-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 80px;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 20px !important;
    border: 0 !important;
    border-radius: 0 16px 16px 0 !important;
    background: #3b82f6 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em;
    cursor: pointer;
}
.input-group-custom.vgroup-shell .search-submit-btn:hover { background: #2f74e0 !important; }
.input-group-custom.vgroup-shell .search-submit-btn:disabled { background: #93b8ee !important; }
.input-group-custom.vgroup-shell .search-submit-btn.searching { color: transparent !important; }
.input-group-custom.vgroup-shell .search-submit-btn.searching::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: wp-spin 0.8s linear infinite;
}

/* 结果数一行：左文案 + 右筛选器 */
.filter-toolbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.filter-toolbar-info { flex: 1 1 auto; min-width: 0; }
.count-filter { position: relative; flex: 0 0 auto; }
.count-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 2px 2px 6px;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 1.4;
    cursor: pointer;
}
.count-filter-trigger:hover { color: #3b82f6; }
.count-filter-chevron { width: 14px; height: 14px; flex: 0 0 auto; }
.count-filter-trigger[aria-expanded="true"] .count-filter-chevron { transform: rotate(180deg); }
.count-filter-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 60;
    min-width: 92px;
    padding: 4px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08);
}
.count-filter-option {
    display: block;
    width: 100%;
    padding: 7px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    text-align: left;
    font-size: 13.5px;
    color: #374151;
    cursor: pointer;
}
.count-filter-option:hover { background: #f3f4f6; }
.count-filter-option.active { background: #eaf1fb; color: #3b82f6; font-weight: 500; }
html.dark .count-filter-menu { background: #1c1c1e; border-color: #2c2c2e; }
html.dark .count-filter-option { color: #d1d1d6; }
html.dark .count-filter-option:hover { background: #2c2c2e; }
html.dark .count-filter-option.active { background: #1e3a5f; color: #60a5fa; }

/* 分页器：Element Plus 风格，浅灰方块 + 当前页蓝底白字 */
.wp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 20px 0 10px;
}
.page-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 7px;
    border: 0;
    border-radius: 4px;
    background: #f2f3f5;
    color: #4b5563;
    font-size: 13px;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
}
.page-btn:hover { background: #e8eaed; color: #111827; }
.page-btn.active { background: #3b82f6; color: #ffffff; font-weight: 500; }
.page-btn.active:hover { background: #3b82f6; color: #ffffff; }
.page-btn:disabled { background: #f7f8fa; color: #c0c4cc; cursor: default; }
.page-btn.page-nav { min-width: 54px; }
.page-ellipsis { color: #c0c4cc; font-size: 13px; padding: 0 2px; }
html.dark .page-btn { background: #2c2c2e; color: #c7c7cc; }
html.dark .page-btn:hover { background: #3a3a3c; color: #ffffff; }
html.dark .page-btn.active { background: #3b82f6; color: #ffffff; }
html.dark .page-btn:disabled { background: #232325; color: #55555a; }
@media (max-width: 768px) {
    .input-group-custom.vgroup-shell .form-control { border-radius: 14px 0 0 14px !important; padding: 0 14px !important; }
    .input-group-custom.vgroup-shell .search-submit-btn {
        min-width: 68px;
        padding: 0 14px !important;
        border-radius: 0 12px 12px 0 !important;
        font-size: 14px !important;
    }
    .filter-toolbar { gap: 8px; }
    .count-filter-trigger { font-size: 13px; }
    .page-btn { min-width: 28px; height: 28px; font-size: 12.5px; }
    .page-btn.page-nav { min-width: 50px; }
    .wp-pagination { gap: 5px; padding: 16px 0 8px; }
}
@media (max-width: 768px) {
}

/* ===== 2026-11-26 搜索框与搜索键分离（Gitee 式：方框 + 独立实心键） ===== */
.search-box-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}
.search-box-row .input-group-custom.vgroup-shell {
    flex: 1 1 auto;
    width: auto !important;
    border-radius: 8px !important;
}
.search-box-row .input-group-custom.vgroup-shell .form-control {
    border-radius: 7px 0 0 7px !important;
    padding: 0 16px !important;
}
.search-box-row .search-clear-btn {
    border-radius: 0 7px 7px 0;
}
@media (max-width: 768px) {
    .search-box-row { gap: 7px; }
    .search-box-row .input-group-custom.vgroup-shell { border-radius: 8px !important; }
    .search-box-row .input-group-custom.vgroup-shell .form-control {
        border-radius: 7px 0 0 7px !important;
        padding: 0 14px !important;
    }
}

/* ===== 2026-11-26 搜索框对齐赴今朝 el-input：放大镜前缀 + 细边聚焦 + Element 转圈 ===== */
.search-input-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 16px;
    color: #a8abb2;
    pointer-events: none;
}
.search-input-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}
.search-box-row .input-group-custom.vgroup-shell .form-control {
    padding: 0 10px 0 8px !important;
}
.search-box-row .input-group-custom.vgroup-shell:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 1px #3b82f6 inset !important;
}
html.dark .search-input-icon { color: #8e8e93; }

/* 加载转圈：Element Plus 环形弧（两段动画：旋转 + 描边伸缩） */
@keyframes wp-el-rotate { 100% { transform: rotate(360deg); } }
@keyframes wp-el-dash {
    0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}
@media (max-width: 768px) {
    .search-input-icon { padding-left: 14px; }
    .search-input-icon svg { width: 17px; height: 17px; }
    .search-box-row .input-group-custom.vgroup-shell .form-control { padding: 0 8px 0 7px !important; }
    .search-box-row .input-group-custom.vgroup-shell:focus-within { box-shadow: 0 0 0 1px #3b82f6 inset !important; }
}

/* ===== 2026-11-26 对齐赴今朝：单框搜索 + Element 加载 + Element 分页 + 卡片式列表 ===== */
/* 搜索框：去掉独立搜索键，单框满宽；赴今朝 Element 放大镜图标 */
.search-box-row { gap: 0 !important; }
.search-box-row .input-group-custom.vgroup-shell {
    border-radius: 8px !important;
    height: 48px;
}
.search-box-row .input-group-custom.vgroup-shell .form-control {
    border-radius: 0 8px 8px 0 !important;
    padding: 0 12px 0 6px !important;
    font-size: 15px;
    height: 100% !important;
}
.search-input-icon {
    padding-left: 13px;
    color: #a8abb2;
}
.search-input-icon svg { width: 16px; height: 16px; stroke: none; }
.search-box-row .search-clear-btn {
    flex: 0 0 34px;
    width: 34px;
    border-radius: 0 8px 8px 0;
}
.search-box-row .search-clear-btn svg { width: 14px; height: 14px; stroke: none; }
.search-box-row .input-group-custom.vgroup-shell:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 1px #3b82f6 inset !important;
}

/* 加载中：Element Plus el-loading 原样（42px 圆弧 + 蓝色文字） */
@keyframes wp-loading-rotate { to { transform: rotate(1turn); } }
@keyframes wp-loading-dash {
    0%   { stroke-dasharray: 1, 200; stroke-dashoffset: 0; }
    50%  { stroke-dasharray: 90, 150; stroke-dashoffset: -40px; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -120px; }
}

/* ===== 2026-11-26 撤回整卡/分页器；补语音键、筛选器箭头动画、去关键词黄底 ===== */


/* 结果筛选器：文字不变蓝，箭头展开时旋转 */
.count-filter-trigger,
.count-filter-trigger:hover,
.count-filter-trigger:focus,
.count-filter-trigger:focus-visible,
.count-filter-trigger[aria-expanded="true"] { color: #6b7280 !important; background: transparent !important; outline: 0 !important; }
.count-filter-chevron {
    transition: transform 0.2s ease !important;
}
.count-filter-trigger[aria-expanded="true"] .count-filter-chevron {
    transform: rotate(180deg) !important;
}

/* 去掉搜索结果的关键词黄色底 */
.kw-hit,
html.dark .kw-hit {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

@media (max-width: 768px) {
}

/* 下拉菜单选中项也不标蓝（浅灰底 + 深字） */
.count-filter-option.active,
.count-filter-option:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}
.count-filter-option.active { font-weight: 500 !important; }
html.dark .count-filter-option.active,
html.dark .count-filter-option:hover {
    background: #2c2c2e !important;
    color: #f5f5f7 !important;
}

/* ===== 2026-11-27 结果数配色 / 下拉居中 / 徽章去底色 / 卡片与分页动效 ===== */
/* 1. 结果数：整行灰色 13.5px（与右侧"全部"同字号），关键词红色不加粗 */
.result-count,
.result-count-kw,
.result-count-num { font-size: 13.5px !important; }
.result-count { color: #6b7280 !important; font-weight: 400 !important; }
.result-count-kw { color: #ef4444 !important; font-weight: 400 !important; }
.result-count-num { color: #6b7280 !important; font-weight: 400 !important; }
html.dark .result-count { color: #9ca3af !important; }
html.dark .result-count-kw { color: #f87171 !important; }
html.dark .result-count-num { color: #9ca3af !important; }

/* 2. 筛选下拉选项文字居中 */
.count-filter-option {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 3. 网盘徽章：去掉背景色块，文字黑色 */
.result-title-line .netdisk-badge {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: #111827 !important;
}
.result-title-line .netdisk-badge .badge-name-full,
.result-title-line .netdisk-badge .badge-name-short { color: #111827 !important; }
html.dark .result-title-line .netdisk-badge,
html.dark .result-title-line .netdisk-badge .badge-name-full,
html.dark .result-title-line .netdisk-badge .badge-name-short { color: #f5f5f7 !important; }

/* 4. 卡片与分页按钮 hover 动效（小店同款：放大 1.05 + 浮起阴影） */
.result-item-wrapper {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.2s ease !important;
}
.result-item-wrapper:hover {
    transform: scale(1.05) !important;
    box-shadow: 4px 8px 10px rgba(1, 2, 1, 0.26) !important;
    border-color: #dfe3e8 !important;
}
.wp-pagination .page-btn {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.18s ease, color 0.18s ease !important;
}
.wp-pagination .page-btn:hover:not(:disabled):not(.active) {
    transform: scale(1.05) !important;
    box-shadow: 4px 8px 10px rgba(1, 2, 1, 0.26) !important;
}

/* 网盘徽章与标题垂直居中对齐（图标 + 网盘名 作为整体，与标题同一条中线） */
.result-title-line {
    display: flex !important;
    align-items: flex-start !important;
    flex-wrap: nowrap !important;
}
.result-title-line .netdisk-badge {
    display: inline-flex !important;
    align-items: center;
    flex: 0 0 auto;
    gap: 4px;
    margin-right: 6px !important;
    vertical-align: baseline !important;
    line-height: 1.2 !important;
}
.result-title-line .netdisk-badge-icon {
    margin-right: 0 !important;
    vertical-align: middle !important;
    flex: 0 0 auto;
}
.result-title-line .result-title {
    flex: 1 1 auto;
    min-width: 0;
}

/* ===== 2026-11-27 徽章字号与网盘名一致 + 链接去掉下划线 ===== */
.result-title-line .netdisk-badge {
    font-size: 15px !important;
    height: auto !important;
    line-height: 1.55 !important;
    font-weight: 500 !important;
    padding: 0 !important;
    gap: 5px !important;
}
.result-title-line .netdisk-badge .badge-name-full,
.result-title-line .netdisk-badge .badge-name-short {
    font-size: 15px !important;
    line-height: 1.55 !important;
}
.result-title-line .netdisk-badge-icon {
    width: 15px !important;
    height: 15px !important;
}
@media (max-width: 768px) {
    .result-title-line .netdisk-badge,
    .result-title-line .netdisk-badge .badge-name-full,
    .result-title-line .netdisk-badge .badge-name-short { font-size: 14.5px !important; }
    .result-title-line .netdisk-badge-icon { width: 14.5px !important; height: 14.5px !important; }
}

/* 链接不要下划线 */
.result-url-line a,
.result-url-line a:hover,
.result-item.hot-result .result-url-line a {
    text-decoration: none !important;
}

/* 搜索框 hover 动效（小店同款：轻微放大 + 浮起阴影） */
.search-box-row .input-group-custom.vgroup-shell {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.2s ease !important;
}
.search-box-row .input-group-custom.vgroup-shell:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 8px 18px rgba(1, 2, 1, 0.12) !important;
}

/* ===== 2026-11-27 徽章挪到链接行左侧，与链接同字号 ===== */
.result-url-line {
    display: flex !important;
    align-items: center;
    gap: 6px;
    white-space: normal !important;
    overflow: hidden !important;
}
.result-url-line .netdisk-badge {
    flex: 0 0 auto;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #111827 !important;
}
.result-url-line .netdisk-badge .badge-name-full,
.result-url-line .netdisk-badge .badge-name-short {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    color: #111827 !important;
}
.result-url-line .netdisk-badge-icon {
    width: 13px !important;
    height: 13px !important;
    margin: 0 !important;
    vertical-align: middle !important;
    flex: 0 0 auto;
}
.result-url-line a {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
html.dark .result-url-line .netdisk-badge,
html.dark .result-url-line .netdisk-badge .badge-name-full,
html.dark .result-url-line .netdisk-badge .badge-name-short { color: #c7c7cc !important; }
@media (max-width: 768px) {
    .result-url-line { gap: 5px; }
    .result-url-line .netdisk-badge,
    .result-url-line .netdisk-badge .badge-name-full,
    .result-url-line .netdisk-badge .badge-name-short { font-size: 12px !important; }
    .result-url-line .netdisk-badge-icon { width: 12.5px !important; height: 12.5px !important; }
}

/* 卡片点击不再出现灰色块（移动端 :active 底色 + 浏览器默认点击高亮） */
.result-item:active {
    background-color: transparent !important;
}
.result-item-wrapper,
.result-item,
.result-item-wrapper a {
    -webkit-tap-highlight-color: transparent !important;
}

/* ===== 2026-11-27 右上角图标 hover 动效 + 站名旋转 ===== */
.theme-entry,
.paper-entry {
    transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease !important;
}
.theme-entry:hover,
.paper-entry:hover {
    transform: scale(1.08) !important;
    background: #f5f6f7 !important;
    border-color: #dfe3e8 !important;
}
.theme-entry:active,
.paper-entry:active {
    transform: scale(0.96) !important;
}
html.dark .theme-entry:hover,
html.dark .paper-entry:hover {
    background: #2c2c2e !important;
    border-color: #3a3a3c !important;
}

/* 站名：鼠标移上去转一圈 */
.brand-title {
    display: inline-flex;
    transform-origin: center center;
}
.brand-wordmark {
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.brand-title:hover .brand-wordmark,
.brand-wordmark:hover {
    transform: rotate(360deg);
}

/* ===== 2026-11-27 搜索框左侧图标：输入时切换为转圈加载（lucide LoaderCircle 形态） ===== */
@keyframes wp-icon-spin { to { transform: rotate(360deg); } }
.search-input-icon .search-icon-loading { display: none; }
.search-input-icon.is-loading .search-icon-default { display: none; }
.search-input-icon.is-loading .search-icon-loading {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    animation: wp-icon-spin 0.7s linear infinite;
}

/* ===== 2026-11-30 全站统一加载图标：一律用搜索框同款 LoaderCircle 弧，不再用 bootstrap 转圈 ===== */
.wp-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #3b82f6;
    vertical-align: -2px;
    margin-right: 2px;
    animation: wp-icon-spin 0.7s linear infinite;
}

.wp-spinner-sm {
    width: 11px;
    height: 11px;
    vertical-align: -1px;
    margin-right: 0;
}

/* 搜索中暂无结果：居中图标 + 文案 */
.search-empty-loading {
    text-align: center;
    padding: 40px 0;
}

.search-empty-loading .wp-spinner {
    width: 22px;
    height: 22px;
    margin-bottom: 10px;
    margin-right: 0;
}


/* ===== 2026-11-27 提示条改为顶部悬浮（对齐赴今朝 ElMessage，不占布局、自动消失） ===== */
.search-hint {
    position: fixed !important;
    top: 18px;
    left: 50%;
    right: auto !important;
    margin: 0 !important;
    width: auto !important;
    max-width: calc(100vw - 32px);
    display: flex !important;
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, -10px);
    z-index: 3000;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.10);
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}
.search-hint.show {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ===== 2026-11-27 搜索加载动画：终端骨架窗口 ===== */
.wp-terminal {
    width: min(100%, 420px);
    margin: 6px auto 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    overflow: hidden;
    animation: wp-term-in 0.3s ease-out both;
}
.wp-terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px 8px;
}
.wp-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.wp-dot-r { background: #ef4444; }
.wp-dot-y { background: #eab308; }
.wp-dot-g { background: #22c55e; }
.wp-terminal-title {
    flex: 1 1 auto;
    min-height: 16px;
    padding-right: 34px;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, "Courier New", monospace;
    font-size: 12px;
    line-height: 16px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
}
.wp-terminal-title::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 11px;
    margin-left: 2px;
    vertical-align: -1px;
    background: #3b82f6;
    animation: wp-caret 530ms steps(1) infinite;
}
.wp-terminal-body {
    height: 168px;
    padding: 2px 16px 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wp-line {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 14px;
    flex: 0 0 auto;
    animation: wp-line-in 0.2s ease-out both;
}
.wp-line.is-indent { padding-left: 16px; }
.wp-line:nth-child(4n) { margin-top: 8px; }
.wp-seg {
    height: 12px;
    border-radius: 2px;
    opacity: 0.5;
    flex: 0 0 auto;
}
.wp-seg.is-circle { width: 15px; height: 15px; border-radius: 50%; }
.wp-seg.c-gray { background: #9ca3af; }
.wp-seg.c-teal { background: #14b8a6; }
.wp-seg.c-blue { background: #3b82f6; }
.wp-seg.c-gray6 { background: #4b5563; }
.wp-seg.c-pink { background: #ec4899; }
@keyframes wp-line-in { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: none; } }
@keyframes wp-caret { 50% { opacity: 0; } }
@keyframes wp-term-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

html.dark .wp-terminal { background: #1c1c1e; border-color: #3a3a3c; }
html.dark .wp-seg.c-gray { background: #8e8e93; }
html.dark .wp-terminal-title { color: #8e8e93; }
html.dark .search-hint { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5); }

@media (max-width: 768px) {
    .wp-terminal { width: 100%; margin: 4px 0 8px; border-radius: 14px; }
    .wp-terminal-body { height: 132px; padding: 2px 12px 12px; }
    .wp-terminal-title { font-size: 11.5px; }
    .search-hint { top: 12px; font-size: 13px; padding: 9px 12px; }
}

/* 骨架行底部渐隐，避免被硬切一刀 */
.wp-terminal-body {
    -webkit-mask-image: linear-gradient(180deg, #000 78%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(180deg, #000 78%, rgba(0, 0, 0, 0) 100%);
}

/* 万盘精选入口：与纸张/深浅色按钮同一套 hover 动效 */
.featured-entry {
    transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.18s ease !important;
}
.featured-entry:hover {
    transform: scale(1.08) !important;
    background: #f5f6f7 !important;
    border-color: #dfe3e8 !important;
    color: #4d4d4d !important;
}
.featured-entry:active { transform: scale(0.96) !important; }
html.dark .featured-entry:hover { background: #2c2c2e !important; border-color: #3a3a3c !important; color: #ffffff !important; }

/* 右上角图标统一：同尺寸、同圆角、同色、同间距（去掉旧的主题键额外左外边距） */
.theme-entry,
.featured-entry {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #4d4d4d !important;
    box-shadow: none !important;
}
.theme-entry { margin-left: 0 !important; }
.theme-entry .theme-icon,
.theme-entry .theme-icon svg {
    width: 18px !important;
    height: 18px !important;
    color: #4d4d4d !important;
}
.featured-entry svg {
    width: 18px !important;
    height: 18px !important;
    color: #4d4d4d !important;
}
html.dark .theme-entry,
html.dark .featured-entry {
    background: #1c1c1e !important;
    border-color: #3a3a3c !important;
    color: #e5e7eb !important;
}
html.dark .theme-entry .theme-icon,
html.dark .theme-entry .theme-icon svg,
html.dark .featured-entry svg { color: #e5e7eb !important; }

/* 空状态占位图（赴今朝同款 Element Plus el-empty，筛选网盘无结果时，页面居中） */
.empty-queue-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  padding: 24px 16px 32px;
}
.empty-queue-art {
  width: 100px;
  max-width: 100%;
  height: auto;
  display: block;
}
.empty-queue-tip {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #909399;
  text-align: center;
}
