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

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

.search-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 8px;
}

.search-hero-image {
    display: block;
    width: min(100%, 480px);
    height: auto;
    object-fit: contain;
}

.search-shell,
.login-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(245, 191, 96, 0.14);
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.search-shell-intro {
    position: relative;
    z-index: 1;
    margin-bottom: 22px;
}

.search-shell-title {
    margin: 16px 0 10px;
    max-width: 12em;
    font-size: 3.2rem;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.search-shell-description {
    max-width: 48rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.search-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    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;
}

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

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

#searchButton {
    width: 58px;
    font-weight: 600;
    background: linear-gradient(135deg, #f8ca72, #eeaf46);
    border: none;
    color: #1f2937;
    padding: 0;
    height: 58px;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 18px !important;
    border-bottom-right-radius: 18px !important;
    box-shadow: 0 14px 30px rgba(245, 191, 96, 0.3);
    transition: all 0.2s ease;
}

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

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

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

#searchButton.is-flying i {
    animation: fly-animate 0.8s ease-in-out infinite;
}

#searchButton.searching {
    background: linear-gradient(135deg, #f5bf60, #dd9f31);
}

#searchButton:hover:not(.searching) {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(245, 191, 96, 0.36);
}

#searchButton i {
    font-size: 1.1rem;
    /* 稍微调大一点点更有力量感 */
    color: #4A3728;
    /* 这里替换成我上面建议的颜色，比如深棕色 */
    transition: color 0.3s ease;
}

#searchButton:hover i {
    color: #ffffff;
}

/* --- 结果区网盘徽章颜色（弱化显示，不与主按钮竞争） --- */
.result-actions .bg-purple {
    background-color: #f1eaff !important;
    color: #7a56d6 !important;
}

.result-actions .bg-orange {
    background-color: #fff2e2 !important;
    color: #c97f12 !important;
}

.result-actions .bg-teal {
    background-color: #e8f8f6 !important;
    color: #24897f !important;
}

.result-actions .bg-mid-blue {
    background-color: #eaf0ff !important;
    color: #4768c7 !important;
}

.result-actions .bg-light-green {
    background-color: #edf8e2 !important;
    color: #6f9f1e !important;
}

.result-actions .bg-salmon {
    background-color: #fff0eb !important;
    color: #d06f4c !important;
}

.result-actions .bg-slate-blue {
    background-color: #edf2f7 !important;
    color: #51687f !important;
}

.result-actions .bg-deep-violet {
    background-color: #efe8ff !important;
    color: #6c43d7 !important;
}

.result-actions .bg-coral {
    background-color: #ffeded !important;
    color: #d85e5e !important;
}

.result-actions .bg-navy-blue {
    background-color: #edf1f5 !important;
    color: #3f5265 !important;
}

.result-actions .bg-rose {
    background-color: #ffeaf1 !important;
    color: #ca557d !important;
}

.result-actions .bg-dark-mint {
    background-color: #e9f8f2 !important;
    color: #2a8d71 !important;
}

.result-actions .bg-warm-gold {
    background-color: #fff5df !important;
    color: #be8b1f !important;
}

.result-actions .bg-olive {
    background-color: #eff4e6 !important;
    color: #6b7f38 !important;
}

.result-actions .bg-grape {
    background-color: #f2eef5 !important;
    color: #6e5d7e !important;
}

.result-actions .bg-terracotta {
    background-color: #fdf0ec !important;
    color: #b86450 !important;
}

/* --- 初始提示区域 --- */
.initial-prompt-area {
    padding-top: 64px;
    padding-bottom: 64px;
    color: var(--text-secondary);
}

.initial-icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(245, 191, 96, 0.16), rgba(247, 222, 164, 0.38));
    border: 1px solid rgba(148, 163, 184, 0.18);
    margin-bottom: 18px;
}

.initial-icon-wrapper i {
    font-size: 1.75rem;
    /* color: var(--brand); */
    color: #b7791f;
}

.initial-prompt-area h3 {
    font-size: 1.05rem;
    font-weight: 600;
    /* color: var(--text-secondary) !important; */
    color: #64748b !important;
}


/* --- 网盘过滤栏 --- */
#netdisk-filter-bar {
    padding: 4px 0 14px;
    margin-bottom: 14px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#netdisk-filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background-color: rgba(255, 255, 255, 0.88);
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.85rem;
    flex-shrink: 0;
    font-weight: 600;
    transition: all 0.18s ease;
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: rgba(245, 191, 96, 0.28);
    background-color: rgba(255, 255, 255, 0.98);
}

.filter-btn.active {
    background: rgba(245, 191, 96, 0.16);
    color: #b7791f;
    border-color: rgba(245, 191, 96, 0.3);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(245, 191, 96, 0.08);
}

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

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

/* ── 一键检测 + 筛选按钮组 ── */
.filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── 一键检测按钮 ── */
.check-all-btn {
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 5px 14px !important;
    font-size: 0.82rem !important;
    transition: all 0.25s !important;
}
.check-all-btn:hover:not(:disabled) {
    background: #0dcaf0 !important;
    color: #fff !important;
}
.check-all-btn.is-checking {
    background: #0dcaf0 !important;
    color: #fff !important;
    border-color: #0dcaf0 !important;
    pointer-events: none;
}

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

.filter-toggle-button {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    color: #475569;
    border-color: rgba(148, 163, 184, 0.2);
    background-color: rgba(255, 255, 255, 0.9);
}

.filter-toggle-button:hover,
.filter-toggle-button:focus {
    color: var(--text-primary);
    border-color: rgba(245, 191, 96, 0.3);
    background-color: rgba(255, 255, 255, 1);
}

.advanced-filter-panel {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.9) 100%);
}

#advanced-filter-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 auto;
}

.advanced-filter-group {
    width: 250px;
    height: 46px;
}

.advanced-filter-label {
    background-color: rgba(248, 250, 252, 0.95);
    border-color: rgba(148, 163, 184, 0.18);
    min-width: 78px;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    font-weight: 600;
    color: #475569;
    border-top-left-radius: 14px !important;
    border-bottom-left-radius: 14px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.advanced-filter-input {
    padding: 0.5rem 0.75rem;
    border-color: rgba(148, 163, 184, 0.18);
    background-color: rgba(255, 255, 255, 0.98);
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 14px !important;
    border-bottom-right-radius: 14px !important;
}

.advanced-filter-apply {
    height: 46px;
    min-width: 92px;
    padding: 0.5rem 1.1rem;
    font-weight: 600;
}

.view-result-modal {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-float);
}

#viewResultModal.show {
    display: grid;
    align-content: start;
    justify-items: center;
    padding-top: 20vh;
}

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

@media (max-width: 768px) {
    #viewResultModal.show {
        padding-top: 10vh;
    }
}

.view-result-modal .modal-header,
.view-result-modal .modal-footer {
    border-color: rgba(148, 163, 184, 0.14);
}

.view-result-loading p {
    font-size: 0.95rem;
}

.view-result-field {
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.9) 100%);
}

.view-result-label {
    font-size: 0.82rem;
    color: #6c757d;
    margin-bottom: 6px;
    font-weight: 600;
}

.view-result-title {
    font-size: 1rem;
    color: #212529;
    word-break: break-word;
    line-height: 1.5;
}

.view-result-link {
    display: block;
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-all;
    text-decoration: underline;
}

/* --- 温馨提示栏 --- */
.warm-tip-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    width: min(70%, 1080px);
    margin-left: auto;
    margin-right: auto;
    margin-top: 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.7), rgba(254, 229, 172, 0.5));
    border: 1px solid rgba(245, 191, 96, 0.28);
    border-radius: 14px;
    font-size: 0.84rem;
    color: #92400e;
    font-weight: 600;
}

.warm-tip-bar i {
    color: #d97706;
}

@media (max-width: 768px) {
    .warm-tip-bar {
        width: 100%;
        font-size: 0.8rem;
        padding: 8px 12px;
        border-radius: 12px;
    }
}

/* --- 搜索结果容器 --- */
#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: 16px 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,
.result-url-line {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

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

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

.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: 1rem;
    font-weight: 700;
}

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

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

.netdisk-badge {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 999px;
    flex-shrink: 0;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: none;
    letter-spacing: 0.01em;
}

.result-divider {
    margin: 0;
    border-color: rgba(148, 163, 184, 0.14);
}



.copy-button,
.view-button {
    min-width: 84px;
    min-height: 38px;
    border-radius: 999px !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #334155 !important;
    font-weight: 600 !important;
}

.copy-button:hover,
.view-button:hover {
    border-color: rgba(245, 191, 96, 0.3) !important;
    color: #b7791f !important;
    background: rgba(245, 191, 96, 0.12) !important;
}

.login-shell {
    margin-top: 30px;
    min-height: calc(100vh - 240px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-panel {
    width: min(100%, 460px);
    padding: 34px;
    border-radius: 20px;
}

.login-copy {
    margin-bottom: 22px;
}

.login-title {
    margin: 16px 0 10px;
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    text-align: left;
}

.login-description {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.75;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #334155;
}

.form-group input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    font-size: 0.98rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.96);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(245, 191, 96, 0.42);
    box-shadow: 0 0 0 4px rgba(245, 191, 96, 0.12);
}

.btn-login {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    background: linear-gradient(135deg, #f8ca72, #eeaf46);
    color: #1f2937;
    border: none;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(245, 191, 96, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(245, 191, 96, 0.34);
}

.error-message {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(239, 68, 68, 0.16);
    border-radius: 16px;
    background: rgba(254, 242, 242, 0.88);
    color: #b91c1c;
    text-align: left;
    font-weight: 600;
}

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

    #advanced-filter-bar {
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    .advanced-filter-group {
        flex: 1 1 280px;
        max-width: 420px;
    }

    .advanced-filter-apply {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .search-page-wrapper {
        padding-top: 14px;
    }

    .search-shell,
    .login-panel {
        border-radius: 24px;
    }

    .search-shell {
        padding-left: 20px;
        padding-right: 20px;
    }

    .search-layout {
        gap: 14px;
    }

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

    .search-hero-image {
        width: min(100%, 280px);
    }

    .input-group-custom {
        width: 100%;
        border-radius: 18px;
        padding: 8px;
    }

    #searchInput,
    #searchButton {
        height: 50px;
    }

    .result-count {
        text-align: left;
        white-space: normal;
        word-break: break-word;
        line-height: 1.5;
    }

    .filter-toolbar {
        align-items: center;
    }

    .filter-toggle-button {
        padding: 0.42rem 0.78rem;
        font-size: 0.88rem;
    }

    #advanced-filter-bar {
        width: 100%;
        justify-content: stretch;
    }

    .advanced-filter-group {
        width: 100%;
        height: auto;
    }

    .advanced-filter-label {
        min-width: 72px;
    }

    .advanced-filter-input {
        min-height: 38px;
    }

    .advanced-filter-apply {
        width: 100%;
        min-height: 38px;
    }

    .advanced-filter-panel {
        padding: 10px;
        border-radius: 14px;
    }

    #scrollableResults {
        padding: 0 16px;
        border-radius: 18px;
    }

    .result-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 0;
    }

    .result-info {
        width: 100%;
    }

    .result-title,
    .result-url-line {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
        word-break: break-word;
    }

    .result-actions {
        width: 100%;
        margin-left: 0;
        margin-top: 0;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .result-actions .btn {
        min-width: 84px;
    }

    .login-shell {
        min-height: auto;
        padding-top: 24px;
    }

    .login-panel {
        padding: 24px 20px;
    }

    .login-title {
        font-size: 1.7rem;
    }
}

/* --- 分类标签栏（首页） --- */
.category-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: min(70%, 1080px);
    margin-top: 16px;
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    align-items: center;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.8);
}

.category-tab:hover {
    color: #b7791f;
    border-color: rgba(245, 191, 96, 0.35);
    background: rgba(245, 191, 96, 0.08);
    transform: translateY(-1px);
}

.category-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #f5bf60, #de9f2d);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(245, 191, 96, 0.3);
}

.category-tab .tab-count {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.category-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.category-tab.tab-more {
    margin-left: auto;
    border-style: dashed;
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    .category-tab-bar {
        width: 100%;
        padding: 10px 12px;
        gap: 8px;
        border-radius: 14px;
    }

    .category-tab {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    .category-tab.tab-more {
        margin-left: 0;
    }

    .category-tab .tab-count {
        display: none;
    }
}

@media (max-width: 480px) {
    .category-tab-bar {
        padding: 8px 10px;
        gap: 6px;
    }

    .category-tab {
        padding: 4px 10px;
        font-size: 0.76rem;
    }
}
.hot-search-container {
    width: min(70%, 1080px);
    margin-top: 16px;
    padding: 16px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.hot-search-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.hot-search-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
}

.hot-search-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hot-search-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(248, 250, 252, 0.95);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.hot-search-item:hover {
    background: rgba(245, 191, 96, 0.12);
    border-color: rgba(245, 191, 96, 0.2);
    transform: translateY(-1px);
}

.hot-search-rank {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    min-width: 18px;
    text-align: center;
}

.hot-search-rank.rank-first {
    color: #ef4444;
}

.hot-search-rank.rank-second {
    color: #f97316;
}

.hot-search-rank.rank-third {
    color: #eab308;
}

.hot-search-keyword {
    font-size: 0.88rem;
    color: #334155;
    font-weight: 600;
}

.hot-search-count {
    font-size: 0.72rem;
    color: #94a3b8;
    padding-left: 4px;
}

.search-query-badge {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hot-search-container {
        width: 100%;
        padding: 12px 16px;
        border-radius: 14px;
    }

    .hot-search-title {
        font-size: 0.88rem;
    }

    .hot-search-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .hot-search-item {
        padding: 6px 10px;
        justify-content: flex-start;
    }

    .hot-search-keyword {
        font-size: 0.82rem;
    }

    .hot-search-count {
        font-size: 0.66rem;
    }
}

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

    #netdisk-filter-bar {
        gap: 8px;
        margin-bottom: 12px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.82rem;
    }

    #scrollableResults {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .search-shell-title {
        font-size: 1.75rem;
    }

    .result-title {
        font-size: 0.98rem;
    }

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

    .netdisk-badge {
        font-size: 0.72rem;
        padding: 4px 9px;
    }

    .hot-search-container {
        padding: 10px 14px;
    }

    .hot-search-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .hot-search-item {
        padding: 5px 8px;
        justify-content: flex-start;
    }

    .hot-search-keyword {
        font-size: 0.78rem;
    }

    .hot-search-count {
        font-size: 0.62rem;
    }

    .hot-search-rank {
        font-size: 0.68rem;
        min-width: 14px;
    }
}

/* ===== 影视热搜榜 ===== */
.yingshi-ranking-section {
    width: min(70%, 1080px);
    max-width: 100%;
    margin: 16px auto 0;
    padding: 20px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.yingshi-ranking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.yingshi-ranking-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
}

.yingshi-channel-tabs {
    display: flex;
    gap: 4px;
    background: rgba(148, 163, 184, 0.08);
    padding: 3px;
    border-radius: 10px;
}

.yingshi-channel-tab {
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.yingshi-channel-tab:hover {
    color: #334155;
}

.yingshi-channel-tab.active {
    background: #fff;
    color: #de9f2d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.yingshi-ranking-loading {
    text-align: center;
    padding: 30px;
    color: #94a3b8;
    font-size: 0.9rem;
}

.yingshi-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 10px;
    color: #94a3b8;
    font-size: 0.88rem;
}

.yingshi-ranking-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.yingshi-ranking-grid::-webkit-scrollbar {
    display: none;
}

.yingshi-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 0;
}

.yingshi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    border-color: rgba(245, 191, 96, 0.3);
}

.yingshi-card-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.ys-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.yingshi-card:hover .ys-poster-img {
    transform: scale(1.06);
}

.ys-poster-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2rem;
    color: #94a3b8;
}

.yingshi-card-rank {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
}

.yingshi-card-rank.rank-top1 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}

.yingshi-card-rank.rank-top2 {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.yingshi-card-rank.rank-top3 {
    background: linear-gradient(135deg, #d97706, #b45309);
}

.yingshi-card-label {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 7px;
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 4px;
    color: #fff;
    backdrop-filter: blur(4px);
}

.yingshi-card-label.label-hot {
    background: rgba(239, 68, 68, 0.85);
}

.yingshi-card-label.label-new {
    background: rgba(34, 197, 94, 0.85);
}

.yingshi-card-body {
    padding: 10px 12px 12px;
}

.yingshi-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
}

.yingshi-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.yingshi-card-score {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #f59e0b;
    font-weight: 700;
}

.yingshi-card-score i {
    font-size: 0.7rem;
}

.yingshi-card-hot {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #ef4444;
}

.yingshi-card-hot i {
    font-size: 0.65rem;
}

/* 响应式 */
@media (max-width: 1100px) {
    .yingshi-ranking-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .yingshi-ranking-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .yingshi-ranking-section {
        width: 100%;
        padding: 14px 16px;
        border-radius: 14px;
    }

    .yingshi-ranking-header {
        gap: 10px;
    }

    .yingshi-ranking-title {
        font-size: 0.92rem;
    }

    .yingshi-channel-tab {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .yingshi-ranking-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .yingshi-card {
        min-width: auto;
        border-radius: 12px;
    }

    .yingshi-card-body {
        padding: 8px 10px 10px;
    }

    .yingshi-card-title {
        font-size: 0.8rem;
    }

    .yingshi-card-meta {
        font-size: 0.7rem;
        gap: 6px;
    }

    .yingshi-card-rank {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .yingshi-ranking-section {
        width: 100%;
        padding: 10px 8px;
    }

    .yingshi-ranking-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .yingshi-card {
        flex-shrink: unset;
        width: auto;
    }

    .yingshi-card-title {
        font-size: 0.78rem;
    }

    .yingshi-card-meta {
        font-size: 0.68rem;
    }
}

/* --- 资源列表容器（标签栏内部） --- */
.resource-list {
    width: 100%;
    margin-top: 14px;
    padding-top: 6px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.resource-item:last-child {
    border-bottom: none;
}

.resource-item:hover {
    background: rgba(245, 191, 96, 0.05);
}

.resource-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f5bf60, #de9f2d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

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

.resource-title {
    font-weight: 700;
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #0f172a;
}

.resource-meta {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 5px;
    display: flex;
    gap: 12px;
}

.resource-platform {
    margin-top: 5px;
}

.platform-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.73rem;
    font-weight: 600;
    background: rgba(248, 250, 252, 1);
    color: #64748b;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.resource-loading,
.resource-empty {
    text-align: center;
    padding: 50px 20px;
    color: #94a3b8;
}

.resource-loading i,
.resource-empty i {
    font-size: 2.5rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .resource-item {
        padding: 12px 10px;
        gap: 10px;
    }

    .resource-thumb {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .resource-title {
        font-size: 0.85rem;
    }

    .resource-meta {
        font-size: 0.72rem;
    }
}

/* ======================================================
   Google Row Style — 搜索结果卡片化
   覆盖原有 .result-item 布局，保留所有现有 class 名
   ====================================================== */

/* ── 结果容器：减少内边距，去掉过强的背景 ── */
#scrollableResults {
    padding: 0 20px;
    background: none;
    box-shadow: none;
    border: none;
    max-height: none;
    overflow-y: visible;
}

/* ── 结果条目：从单行 flex-row → 卡片式 ── */
.result-item {
    padding: 18px 4px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10) !important;
    transition: background 0.15s !important;
    cursor: default !important;
    position: relative;
    margin: 0;
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.55) !important;
}

.result-item:last-child {
    border-bottom: none !important;
}

/* ── 隐藏原有的分隔线 ── */
.result-divider {
    display: none !important;
}

/* ── 内部弹性布局 ── */
.result-row-inner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

/* ── 内容区域 ── */
.result-content-area {
    flex: 1;
    min-width: 0;
}

/* ── 标题行：标题 + badge + 检测按钮并排 ── */
.result-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.result-title-row .result-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: none !important;
    flex: 1 !important;
    display: block !important;
    text-align: left !important;
}

/* ── 网盘 badge 颜色 ── */
.result-title-row .netdisk-badge {
    margin: 0 !important;
    font-size: 0.73rem !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
    font-weight: 600 !important;
    border: none !important;
    color: #fff !important;
}
.result-title-row .netdisk-badge.bg-terracotta   { background: #e07b5a !important; }
.result-title-row .netdisk-badge.bg-mid-blue      { background: #3b82f6 !important; }
.result-title-row .netdisk-badge.bg-teal          { background: #14b8a6 !important; }
.result-title-row .netdisk-badge.bg-navy-blue     { background: #1e3a5f !important; }
.result-title-row .netdisk-badge.bg-coral         { background: #f472b6 !important; }
.result-title-row .netdisk-badge.bg-orange        { background: #f59e0b !important; }
.result-title-row .netdisk-badge.bg-warm-gold     { background: #d4a017 !important; }
.result-title-row .netdisk-badge.bg-light-green   { background: #22c55e !important; }
.result-title-row .netdisk-badge.bg-deep-violet   { background: #7c3aed !important; }
.result-title-row .netdisk-badge.bg-dark-mint     { background: #059669 !important; }
.result-title-row .netdisk-badge.bg-salmon        { background: #ef6b6b !important; }
.result-title-row .netdisk-badge.bg-purple        { background: #a855f7 !important; }
.result-title-row .netdisk-badge.bg-olive         { background: #84cc16 !important; }
.result-title-row .netdisk-badge.bg-secondary,
.result-title-row .netdisk-badge.bg-dark          { background: #94a3b8 !important; }

/* ── 链接检测按钮样式（status-tag 风格） ── */
.check-link-btn {
    font-size: 0.73rem !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(148,163,184,0.16) !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    flex-shrink: 0 !important;
    min-width: auto !important;
    min-height: auto !important;
    line-height: 1.4 !important;
}

.check-link-btn:hover {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

/* 检测完成后状态 */
.check-link-btn.btn-success {
    background: #eaf7ee !important;
    color: #16a34a !important;
    border-color: rgba(22,163,74,0.2) !important;
}

.check-link-btn.btn-warning {
    background: #fef9e7 !important;
    color: #d97706 !important;
    border-color: rgba(217,119,6,0.2) !important;
}

/* ── URL / 描述行（原 result-url-line） ── */
.result-url-line {
    font-size: 0.84rem !important;
    color: #64748b !important;
    margin-top: 2px !important;
    margin-bottom: 4px !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-align: left !important;
}

.result-url-line a {
    color: #64748b !important;
    text-decoration: none !important;
}

.result-url-line a:hover {
    text-decoration: underline !important;
    color: #334155 !important;
}

/* ── 操作按钮区域 ── */
.result-item .result-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 8px;
    margin-top: 0;
}

.result-item .result-actions .btn {
    min-width: 72px;
    height: 34px;
    border-radius: 999px !important;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #334155 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.18s;
    padding: 0 14px;
}

.result-item .result-actions .btn:hover {
    border-color: rgba(245, 191, 96, 0.35) !important;
    color: #b7791f !important;
    background: rgba(245, 191, 96, 0.1) !important;
    transform: translateY(-1px);
}

/* ── 搜索 shell 精简 ── */
.search-shell {
    padding: 16px 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
}

.search-page-wrapper {
    padding-top: 10px;
}

/* ── 筛选栏调整 ── */
#netdisk-filter-bar {
    padding: 0 4px 8px !important;
}

.filter-and-count-container {
    padding: 0 4px !important;
    margin: 0 0 4px !important;
}

/* ── Hot 结果强调 ── */
.result-item.hot-result .result-title {
    font-size: 1.08rem !important;
}

/* ── 响应式 ── */
@media (max-width: 768px) {
    .result-row-inner {
        flex-direction: column;
        gap: 8px;
    }
    .result-title-row .result-title {
        font-size: 0.95rem !important;
    }
    .result-url-line {
        font-size: 0.8rem !important;
    }
    .result-item .result-actions {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .result-title-row .result-title {
        font-size: 0.9rem !important;
    }
    .check-link-btn {
        font-size: 0.7rem !important;
        padding: 3px 8px !important;
    }
}