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

.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-status-toast {
    position: fixed;
    bottom: 84px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1080;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 22px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(245, 158, 11, 0.32);
    box-shadow: 0 10px 28px -4px rgba(245, 158, 11, 0.18),
                0 4px 14px rgba(15, 23, 42, 0.08);
    color: #92400e;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-status-toast.toast-hidden {
    opacity: 0;
    transform: translate(-50%, 18px);
}

.search-status-toast .spinner-border {
    width: 0.92rem;
    height: 0.92rem;
    border-width: 0.15em;
    color: #d97706;
}

.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: 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;
    justify-content: center;
    margin-bottom: 0;
}

.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: 6px 0 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

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

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.88);
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.22);
    padding: 0 16px;
    height: 38px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.84rem;
    line-height: 1;
    flex-shrink: 0;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: rgba(245, 191, 96, 0.45);
    background-color: rgba(255, 255, 255, 0.98);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.07);
}

.filter-btn:active {
    transform: translateY(0);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(245, 191, 96, 0.24), rgba(245, 191, 96, 0.14));
    color: #b7791f;
    border-color: rgba(245, 191, 96, 0.5);
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(245, 191, 96, 0.2);
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 2px 7px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.14);
    color: #64748b;
    line-height: 1;
    transition: all 0.2s ease;
}

.filter-btn:hover .filter-count {
    background: rgba(148, 163, 184, 0.24);
    color: #334155;
}

.filter-btn.active .filter-count {
    background: rgba(222, 159, 45, 0.25);
    color: #966110;
}

.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;
}

.filter-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.filter-toggle-button {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #475569;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    backdrop-filter: blur(8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.export-excel-btn:hover,
.export-excel-btn:focus {
    color: #047857;
    border-color: rgba(16, 185, 129, 0.45);
    background-color: rgba(240, 253, 244, 0.9);
}

.filter-toggle-button:hover,
.filter-toggle-button:focus {
    color: #0f172a;
    border-color: rgba(245, 191, 96, 0.45);
    background-color: #ffffff;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.filter-toggle-button.has-active-filters {
    color: #b7791f;
    background: rgba(255, 248, 235, 0.9);
    border-color: rgba(245, 191, 96, 0.5);
    font-weight: 600;
}

.advanced-filter-panel {
    padding: 16px 20px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 4px 10px -2px rgba(15, 23, 42, 0.02);
    backdrop-filter: blur(12px);
    margin-top: 8px;
}

.advanced-filter-grid {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-input-wrapper {
    flex: 1 1 240px;
    min-width: 220px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.7);
    border-radius: 14px;
    padding: 4px 14px;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.filter-input-wrapper:focus-within {
    border-color: #f5bf60;
    box-shadow: 0 0 0 3px rgba(245, 191, 96, 0.18);
    background: #ffffff;
}

.filter-input-icon {
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    margin-right: 8px;
}

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

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

.filter-input-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    margin-right: 8px;
    padding-right: 8px;
    border-right: 1px solid rgba(226, 232, 240, 0.9);
    white-space: nowrap;
}

.filter-input-field {
    border: none !important;
    background: transparent !important;
    padding: 6px 0 !important;
    font-size: 0.84rem;
    color: #1e293b;
    box-shadow: none !important;
    width: 100%;
}

.filter-input-field::placeholder {
    color: #94a3b8;
    font-size: 0.82rem;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.filter-apply-btn {
    height: 40px;
    min-width: 90px;
    padding: 0 18px;
    font-size: 0.84rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8ca72, #eeaf46);
    color: #362511;
    box-shadow: 0 4px 12px rgba(245, 191, 96, 0.25);
    transition: all 0.2s ease;
}

.filter-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 191, 96, 0.35);
    color: #1a1005;
}

.filter-reset-btn {
    height: 40px;
    padding: 0 14px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid rgba(203, 213, 225, 0.7);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.9);
    color: #64748b;
    transition: all 0.2s ease;
}

.filter-reset-btn:hover {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.4);
}

.active-filter-tags {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(226, 232, 240, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
}

.active-filter-chip.chip-include {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.active-filter-chip.chip-exclude {
    background: rgba(244, 63, 94, 0.1);
    color: #e11d48;
    border: 1px solid rgba(244, 63, 94, 0.25);
}

.chip-remove {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.chip-remove:hover {
    opacity: 1;
}

.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;
}

/* --- 弹窗内的 Star 引导卡片 --- */
.view-result-star-card {
    border: 1px solid rgba(245, 191, 96, 0.32);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(245, 191, 96, 0.08);
}

.star-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.star-card-text {
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.45;
    display: flex;
    align-items: center;
}

.star-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(222, 159, 45, 0.45);
    background: rgba(255, 255, 255, 0.92);
    color: #b7791f;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.star-card-btn:hover {
    background: #f5bf60;
    color: #0f172a;
    border-color: #f5bf60;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 191, 96, 0.28);
}

/* --- 搜索结果容器 --- */
#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;
    }
}

@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;
    }
}