/* ===== 壹搜搜索页 完整CSS（子比主题独立隔离版） ===== */
/* ================= 壹搜科技感主题 ================= */
.pansou-page {
    padding: 24px 0 40px;
}

.pansou-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 头部 */
.pansou-header {
    text-align: center;
    padding: 28px 16px;
    background: linear-gradient(135deg, #0b1220 0%, #11254a 50%, #1a1540 100%);
    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.08) inset,
        0 10px 40px rgba(59, 130, 246, 0.25),
        0 0 80px rgba(139, 92, 246, 0.15);
}

.pansou-header::before {
    content: "";
    position: absolute;
    left: -20%;
    top: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 70%);
    pointer-events: none;
}

.pansou-header::after {
    content: "";
    position: absolute;
    right: -15%;
    bottom: -15%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
    pointer-events: none;
}

.pansou-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.pansou-logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8));
}

.pansou-logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #38bdf8, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pansou-subtitle {
    margin-top: 6px;
    font-size: 13px;
    color: #93c5fd;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

/* 通用面板 */
.pansou-panel {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.06) inset,
        0 8px 30px rgba(15, 23, 42, 0.45),
        0 0 40px rgba(59, 130, 246, 0.08);
}

.pansou-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #38bdf8, #8b5cf6, #22d3ee);
}

.pansou-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 14px;
}

.pansou-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 12px #22d3ee;
    animation: pansouBlink 1.6s infinite;
}

@keyframes pansouBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* 输入框 */
.pansou-wrap input,
.pansou-wrap select {
    flex: 1;
    min-width: 220px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(96, 165, 250, 0.32);
    border-radius: 10px;
    padding: 10px 14px;
    color: #e2e8f0;
    outline: none;
    font-size: 14px;
    transition: 0.25s;
}

.pansou-wrap input:focus,
.pansou-wrap select:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18), 0 0 20px rgba(34, 211, 238, 0.25);
}

.pansou-wrap input::placeholder {
    color: #64748b;
}

/* 按钮 */
.pansou-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    transition: 0.25s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.pansou-btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

.pansou-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.6);
}

.pansou-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.pansou-btn-warning:hover {
    transform: translateY(-2px);
}

.pansou-btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.pansou-btn-ghost {
    background: transparent;
    border: 1px solid rgba(96, 165, 250, 0.45);
    color: #7dd3fc;
}

.pansou-btn-ghost:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: #22d3ee;
}

.pansou-btn-mini {
    padding: 6px 12px;
    font-size: 12px;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
}

.pansou-btn-mini:hover {
    background: rgba(99, 102, 241, 0.28);
}

/* 搜索 / Detect 行（移除token-row） */
.pansou-search-row,
.pansou-detect-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* 小标题 */
.pansou-small-title {
    display: inline-block;
    margin: 16px 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #7dd3fc;
    letter-spacing: 1px;
}

.pansou-sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 网盘统计行 */
#pansou_stat_row {
    padding: 8px 12px;
    margin-bottom:12px;
    background:rgba(15, 23, 42, 0.65);
    border:1px solid rgba(96,165,250,0.2);
    border-radius:10px;
}

/* 来源选择面板 频道+插件 */
#sourceSelectorBox {
    margin-top:10px;
}
.selector-loading{
    color:#94a3b8;
    padding:8px 0;
}
.source-list{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}
.source-col{
    flex:1;
    min-width:200px;
}
.col-title{
    font-size:14px;
    color:#7dd3fc;
    font-weight:600;
    margin-bottom:8px;
}
.source-item{
    display:block;
    padding:4px 0;
    font-size:13px;
    color:#cbd5e1;
    cursor:pointer;
}
.source-item input{
    margin-right:6px;
}

/* 历史 */
.pansou-history-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pansou-history-item {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #7dd3fc;
    font-size: 12px;
    cursor: pointer;
    transition: 0.25s;
}

.pansou-history-item:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: #22d3ee;
    transform: translateY(-1px);
}

/* 筛选标签 */
.pansou-pill-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pansou-pill {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #cbd5e1;
    font-size: 13px;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.6);
    transition: 0.25s;
}

.pansou-pill:hover {
    border-color: #22d3ee;
    color: #22d3ee;
}

.pansou-pill.active {
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.45);
}

/* 结果区标题 */
.pansou-result-area {
    margin-top: 18px;
}

.pansou-result-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
}

.pansou-result-count {
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color: #fff;
    font-size: 12px;
}

/* 结果网格 */
.pansou-grid-result {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.pansou-item-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    position: relative;
}

.pansou-item-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.5), rgba(139, 92, 246, 0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.pansou-item-card:hover {
    transform: translateY(-4px);
    border-color: #22d3ee;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.55),
        0 0 30px rgba(34, 211, 238, 0.25);
}

.pansou-item-card:hover::before {
    opacity: 1;
}

.pansou-item-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #0b1220;
    cursor: pointer;
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}

.pansou-item-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.pansou-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.pansou-item-meta {
    font-size: 12px;
    color: #94a3b8;
}

.pansou-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    background: rgba(250, 204, 21, 0.12);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.35);
}

.pansou-tag-pwd {
    background: rgba(250, 204, 21, 0.14);
    color: #fcd34d;
}

.pansou-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.pansou-item-actions .pansou-btn {
    padding: 7px 10px;
    font-size: 12px;
}

/* 检测结果 */
.pansou-detect-box {
    margin-top: 12px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.25);
    min-height: 40px;
    color: #cbd5e1;
    font-size: 13px;
}

.pansou-detect-box pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    color: #e2e8f0;
}

/* 空状态 */
.pansou-empty-text {
    color: #64748b;
    font-size: 13px;
    padding: 12px 0;
}

/* Toast */
.pansou-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    z-index: 9999;
    display: none;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45);
}

/* 图片弹窗 */
.pansou-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.88);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.pansou-modal img {
    max-width: 92%;
    max-height: 88%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.pansou-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: #7dd3fc;
    cursor: pointer;
}

/* 滚动条 */
.pansou-grid-result::-webkit-scrollbar,
.pansou-detect-box::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.pansou-grid-result::-webkit-scrollbar-thumb,
.pansou-detect-box::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.4);
    border-radius: 4px;
}

/* 热门关键词 */
.hot-keyword-title{
    color:#94a3b8;
    margin:8px 0 6px;
    font-size:14px;
}
.hot-keyword-wrap{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:12px;
}
.hot-keyword-item{
    background:#1e293b;
    color:#e2e8f0;
    padding:4px 10px;
    border-radius:6px;
    font-size:13px;
    cursor:pointer;
    transition: 0.2s;
}
.hot-keyword-item:hover{
    background:#334155;
}

/* Token三色按钮（保留类名防止报错，页面已经不用） */
.pansou-btn-green{
    background:#16a34a;
    color:#fff;
}
.pansou-btn-blue{
    background:#2563eb;
    color:#fff;
}
.pansou-btn-red{
    background:#dc2626;
    color:#fff;
}

/* 移动端 */
@media (max-width: 768px) {
    .pansou-wrap {
        padding: 0 12px;
    }
    .source-list{
        flex-direction:column;
    }
    .pansou-search-row,
    .pansou-detect-row {
        flex-direction: column;
        align-items: stretch;
    }

    .pansou-wrap input,
    .pansou-wrap select {
        min-width: unset;
        width: 100%;
    }

    .pansou-btn {
        width: 100%;
    }

    .pansou-grid-result {
        grid-template-columns: 1fr;
    }
}
