/* 网盘资源搜索器 - 主样式文件 */

/* ===== 全局样式 ===== */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    /* 统一搜索表单元素尺寸 */
    --unified-height: 58px;
    --unified-font-size: 1.25rem;
    --unified-padding-y: 0.75rem;
    --unified-padding-x: 1rem;
    --unified-border-width: 2px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-weight: 400;
    margin: 0;
    padding: 0;
}

/* ===== 搜索容器样式 ===== */
.search-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 15px 0 15px; /* 顶部留少量间距，与地址栏紧挨 */
}

/* ===== 卡片样式 ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ===== 表单样式 ===== */
.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background: white;
}

.input-group-text {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

/* ===== 按钮样式 ===== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #1e7e34 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e0a800 100%);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c82333 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* ===== 搜索结果样式 ===== */
.result-item {
    transition: var(--transition);
    min-height: 60px; /* 减少最小高度 */
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    margin-bottom: 8px; /* 减少卡片间距 */
    padding: 12px; /* 减少内边距 */
}

.result-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.result-item h6 {
    line-height: 1.3; /* 减少行高 */
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: var(--dark-color);
    font-weight: 500;
    margin-bottom: 8px; /* 减少标题下方间距 */
    font-size: 0.95rem; /* 稍微减小字体 */
}

.result-item .btn-get-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 100px; /* 减少按钮最小宽度 */
    font-weight: 500;
    padding: 6px 12px; /* 减少按钮内边距 */
    font-size: 0.9rem; /* 减小按钮字体 */
}

/* 紧凑模式下的搜索结果容器 */
#searchResults {
    margin-top: 10px; /* 减少与搜索表单的间距 */
}

#resultsList {
    margin-top: 10px; /* 减少结果列表顶部间距 */
}

/* 移动端更紧凑的样式 */
@media (max-width: 768px) {
    .result-item {
        min-height: 50px;
        padding: 8px;
        margin-bottom: 6px;
    }
    
    .result-item h6 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .result-item .btn-get-link {
        min-width: 80px;
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

/* ===== 徽章样式 ===== */
.badge {
    border-radius: 20px;
    padding: 0.5rem 0.8rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resource-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-电影 { 
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); 
    color: #1976d2; 
    border: 1px solid #90caf9;
}

.type-音乐 { 
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%); 
    color: #7b1fa2; 
    border: 1px solid #ce93d8;
}

.type-电视剧 { 
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%); 
    color: #388e3c; 
    border: 1px solid #a5d6a7;
}

.type-软件 { 
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%); 
    color: #f57c00; 
    border: 1px solid #ffcc02;
}

.type-游戏 { 
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%); 
    color: #c2185b; 
    border: 1px solid #f48fb1;
}

.type-书籍 { 
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%); 
    color: #00695c; 
    border: 1px solid #80cbc4;
}

.type-其他 {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    color: #616161;
    border: 1px solid #bdbdbd;
}

/* ===== 网盘类型徽章样式 ===== */
.netdisk-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.2px;
    border: none;
    transition: all 0.3s ease;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.netdisk-badge img {
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.netdisk-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    cursor: default;
}

.netdisk-badge:hover img {
    transform: scale(1.1);
}

.netdisk-quark {
    color: white;
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 50%, #7c3aed 100%);
}

.netdisk-quark:hover {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #6d28d9 100%);
}

.netdisk-baidu {
    color: white;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #2563eb 100%);
}

.netdisk-baidu:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
}

.netdisk-other {
    color: #6b7280;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
    font-size: 0.75em;
    padding: 4px 8px;
}

/* ===== 加载动画样式 ===== */
.loading-spinner {
    display: none;
}

#searchLoading {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
    backdrop-filter: blur(10px);
    box-shadow: var(--box-shadow);
}

/* 搜索结果区域样式调整 */
#searchResults {
    margin-top: 2rem; /* 增加顶部间距，避免被遮挡 */
}

/* ===== 网盘选择器样式 ===== */
.netdisk-selector-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.netdisk-selector {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    /* 与 input-group-lg 的高度保持一致 */
    min-height: calc(1.5em + 1rem + 4px);
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    line-height: 1.5;
}

/* 确保与搜索框的input-group-lg样式一致 */
.form-select-lg.netdisk-selector {
    padding: 0.5rem 3rem 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: var(--border-radius);
}

.netdisk-selector:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.netdisk-selector:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15), 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
    transform: translateY(-1px);
}

.netdisk-selector option {
    padding: 10px;
    font-weight: 500;
}

.netdisk-selector-wrapper .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

/* 网盘选择器动画效果 */
.netdisk-selector-wrapper {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 网盘切换动画 */
.netdisk-selector-wrapper.switching .netdisk-selector {
    transform: scale(0.95);
    opacity: 0.7;
}

.netdisk-selector-wrapper.hover .netdisk-selector {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
}

/* ===== 搜索渠道选择器样式 ===== */
.selector-changing {
    transform: scale(0.95);
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* 旧的渠道选择器样式已被新的带箭头样式替代 */

/* 渠道说明文字动画 */
#channelDescription {
    transition: all 0.3s ease;
}

/* 网盘类型包装器动画 */
#netdiskTypeWrapper {
    transition: all 0.3s ease;
}

/* 网盘切换提示 */
.netdisk-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.netdisk-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.netdisk-toast i {
    color: #ffffff;
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== 状态提示样式 ===== */
.alert {
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    border-left: 4px solid;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d1f2eb 0%, #a7f3d0 100%);
    color: #0c5460;
    border-left-color: var(--success-color);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #fef3c7 100%);
    color: #856404;
    border-left-color: var(--warning-color);
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #fecaca 100%);
    color: #721c24;
    border-left-color: var(--danger-color);
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bfdbfe 100%);
    color: #0c5460;
    border-left-color: var(--info-color);
}

/* ===== 链接状态样式 ===== */
.link-status {
    font-size: 0.9em;
}

.btn-get-link {
    min-width: 120px;
    position: relative;
}

/* ===== 页脚样式 ===== */
.footer {
    margin-top: 50px;
    padding: 30px 0 20px 0;
    border-top: 1px solid #dee2e6;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.95) 0%, rgba(233, 236, 239, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.footer .alert-info {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-color: rgba(13, 110, 253, 0.2);
    color: #0c5460;
}

.footer a {
    transition: var(--transition);
    text-decoration: none;
}

.footer a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-1px);
    text-shadow: 0 1px 3px rgba(0, 123, 255, 0.3);
}

/* ===== 模态框样式 ===== */
.modal-content {
    border: none !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden !important; /* 确保圆角效果正确显示 */
    background-clip: padding-box !important; /* 防止背景色溢出圆角 */
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px 15px 0 0 !important; /* 强制应用圆角 */
    padding: 1.5rem;
    margin: 0 !important; /* 移除可能的边距 */
    background-clip: padding-box !important; /* 防止背景色溢出圆角 */
}

.modal-body {
    padding: 2rem;
    border-radius: 0 !important; /* 确保中间部分没有圆角 */
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 0 15px 15px !important; /* 强制应用圆角 */
    padding: 1.5rem;
    margin: 0 !important; /* 移除可能的边距 */
    background-clip: padding-box !important; /* 防止背景色溢出圆角 */
}

/* 特定模态框的额外修复 */
#progressModal .modal-content {
    border: none !important;
    border-radius: 15px !important;
    overflow: hidden !important;
}

#progressModal .modal-header {
    border-radius: 15px 15px 0 0 !important;
    background-clip: padding-box !important;
    /* 确保bg-primary背景色不会溢出圆角 */
}

#progressModal .modal-header.bg-primary {
    background-color: var(--bs-primary) !important;
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* 修复Bootstrap可能的样式冲突 */
.modal-header.bg-primary {
    border-top-left-radius: 15px !important;
    border-top-right-radius: 15px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* ===== 滚动目标高亮样式 ===== */
.highlight-target {
    animation: highlightPulse 2s ease-in-out;
    border: 2px solid var(--primary-color) !important;
    border-radius: var(--border-radius) !important;
    position: relative;
}

.highlight-target::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-color);
    border-radius: calc(var(--border-radius) + 10px);
    opacity: 0.3;
    animation: highlightBorder 2s ease-in-out;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(0, 123, 255, 0);
        transform: scale(1.01);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
        transform: scale(1);
    }
}

@keyframes highlightBorder {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.02);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* ===== 搜索结果区域优化 ===== */
#searchResults {
    scroll-margin-top: 100px; /* 现代浏览器的滚动边距 */
    position: relative;
}

/* 搜索结果标题优化 */
#searchResults h4 {
    position: relative;
    padding: 10px 0;
    margin-bottom: 20px !important;
}

/* 移动端搜索结果优化 */
@media (max-width: 768px) {
    #searchResults {
        scroll-margin-top: 80px;
    }

    #searchResults h4 {
        padding: 8px 0;
        margin-bottom: 15px !important;
        font-size: 1.3rem;
    }
}

/* ===== 进度条样式 ===== */
.progress {
    height: 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--info-color), var(--primary-color));
    background-size: 200% 100%;
    animation: progressShine 2s linear infinite;
}

@keyframes progressShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== 分页样式 ===== */
.pagination {
    margin-top: 2rem;
}

.page-link {
    border: none;
    border-radius: var(--border-radius);
    margin: 0 2px;
    padding: 0.75rem 1rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.5);
    color: #6c757d;
}

/* 电影分页特殊样式 */
#moviesPagination .pagination {
    justify-content: center;
    margin-bottom: 1rem;
}

#moviesPagination .page-link {
    border: 1px solid #e9ecef;
    background: white;
    color: #495057;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

#moviesPagination .page-link:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#moviesPagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

#moviesPagination .page-item.disabled .page-link {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
}

/* 电影网格布局优化 - 两排每排5个 */
#moviesList.row {
    margin-bottom: 1.5rem;
}

#moviesList .col-xl-2-4,
#moviesList .col-lg-2-4,
#moviesList .col-md-2-4,
#moviesList .col-sm-2-4,
#moviesList .col-2-4 {
    margin-bottom: 1.5rem;
}

/* 确保电影卡片高度一致 - 适应5列布局 */
.movie-card {
    min-height: 320px;
}

.movie-poster {
    height: 240px;
}

.movie-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100px;
}

/* ===== 二维码样式 ===== */
.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.qr-container img {
    border: 3px solid var(--primary-color);
    border-radius: 12px;
    padding: 10px;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
    transition: var(--transition);
}

.qr-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.3);
}

/* ===== 响应式设计 ===== */

@media (max-width: 768px) {
    /* 手机端搜索容器优化 */
    .search-container {
        padding: 5px 10px 0 10px; /* 进一步减少顶部间距 */
    }

    /* 手机端搜索框区域优化 */
    .search-container {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* 手机端内容区域优化 */
    .content-wrapper {
        padding-top: 0 !important;
    }

    .card-body {
        padding: 0.3rem; /* 进一步缩小内边距 */
    }

    /* 缩小搜索表单的间距 */
    .card-title.mb-4 {
        margin-bottom: 0.3rem !important; /* 进一步缩小标题下方间距 */
        font-size: 1.1rem !important; /* 缩小标题字体 */
    }

    .text-center.mb-3 {
        margin-bottom: 0.3rem !important; /* 进一步缩小描述文字下方间距 */
        font-size: 0.85rem !important; /* 缩小描述文字 */
    }

    .text-center.mb-4 {
        margin-bottom: 0.3rem !important; /* 进一步缩小快速跳转按钮下方间距 */
    }

    /* 进一步优化手机端间距 */
    .row {
        margin-bottom: 0.3rem !important; /* 减少行间距 */
    }

    /* 优化表单组间距 */
    .form-group {
        margin-bottom: 0.5rem !important; /* 减少表单组间距 */
    }

    /* 优化按钮组间距 */
    .btn-group {
        margin-bottom: 0.3rem !important; /* 减少按钮组间距 */
    }

    /* 优化卡片间距 */
    .card {
        margin-bottom: 0.5rem !important; /* 减少卡片间距 */
    }

    .row.mt-3 {
        margin-top: 0.5rem !important; /* 缩小搜索统计信息上方间距 */
    }

    /* 搜索统计信息在手机端保持横向排列并缩小字体 */
    .row.mt-3.text-center .col-md-4 {
        margin-bottom: 0 !important;
    }

    .row.mt-3.text-center .col-md-4 small {
        font-size: 0.7rem !important;
    }

    /* 缩小搜索表单行间距 */
    .row.g-3 {
        --bs-gutter-y: 0.25rem !important; /* 进一步缩小行间距 */
    }

    /* 缩小表单标签间距 */
    .form-label.mb-1 {
        margin-bottom: 0.25rem !important;
        font-size: 0.8rem !important;
    }

    /* 缩小小提示文字间距 */
    .text-muted.mt-1 {
        margin-top: 0.25rem !important;
        font-size: 0.75rem !important;
    }

    /* 缩小搜索卡片的外边距 */
    .card.mb-4 {
        margin-bottom: 1rem !important;
    }

    /* 缩小快速导航按钮的间距 */
    .quick-nav-buttons {
        gap: 4px !important;
    }

    .quick-nav-btn {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
    }

    .result-item {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem;
    }

    .result-item .btn-get-link {
        width: 100% !important;
        max-width: none !important;
        margin-top: 15px;
        min-width: auto;
        padding: 0.75rem 1rem;
    }

    .result-item .col-md-5 {
        text-align: center !important;
    }

    .result-item h6 {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .resource-type {
        font-size: 0.75rem;
        padding: 3px 8px;
        margin-bottom: 0.5rem;
    }

    .search-container {
        padding: 0 10px;
    }

    /* 确保搜索结果在移动端有足够的上边距 */
    #searchResults {
        margin-top: 2rem;
        scroll-margin-top: 20px; /* 为滚动定位留出空间 */
    }

    /* 移动端滚动提示样式 */
    .mobile-scroll-indicator {
        padding: 1rem;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 10px;
        border: 1px solid #dee2e6;
        margin-bottom: 1rem;
    }

    .arrow-down-container {
        margin-bottom: 0.5rem;
    }

    /* 向下箭头动画 */
    .pulse-down {
        animation: pulseDown 2s infinite;
    }

    @keyframes pulseDown {
        0%, 100% {
            transform: translateY(0);
            opacity: 1;
        }
        50% {
            transform: translateY(5px);
            opacity: 0.7;
        }
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .card-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .footer {
        padding: 20px 0 15px 0;
    }

    .footer .alert-info {
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    /* 搜索表单在移动端的优化 */
    .row.g-3 {
        gap: 1rem !important;
    }

    /* 移动端统一尺寸调整 */
    :root {
        --unified-height-mobile: 50px;
        --unified-font-size-mobile: 1rem;
        --unified-padding-y-mobile: 0.625rem;
        --unified-padding-x-mobile: 0.75rem;
    }

    .input-group-lg .form-control,
    .input-group-lg .input-group-text,
    #searchChannel.form-select-lg,
    .channel-selector-with-arrow.form-select-lg,
    .netdisk-selector-with-arrow.form-select-lg,
    #searchBtn.btn-lg {
        height: var(--unified-height-mobile);
        font-size: var(--unified-font-size-mobile);
        padding: var(--unified-padding-y-mobile) var(--unified-padding-x-mobile);
    }

    /* 渠道选择器在移动端的特殊处理 */
    .channel-selector-with-arrow.form-select-lg {
        padding-right: 1.8rem !important;
    }

    /* 网盘选择器在移动端的特殊处理 */
    .netdisk-selector-with-arrow.form-select-lg {
        padding-right: 2.2rem !important;
    }

    /* 移动端箭头位置调整 */
    .channel-dropdown-arrow {
        right: 1rem;
        font-size: 0.8rem;
    }

    .netdisk-dropdown-arrow {
        right: 0.6rem;
        font-size: 0.8rem;
    }

    /* 搜索统计信息在移动端的布局 */
    .search-container .row.mt-4 .col-md-4 {
        margin-bottom: 0.5rem;
    }

    /* 无结果提示在移动端的优化 */
    #noResults .glass-effect {
        padding: 2rem 1.5rem;
    }

    #noResults .row .col-md-6 {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 576px) {
    .search-container {
        padding: 0 5px;
    }

    .card-body {
        padding: 1rem;
    }

    .result-item {
        margin-bottom: 1rem;
        padding: 1rem !important;
    }

    .result-item h6 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .btn-get-link {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-body {
        padding: 1rem;
    }

    .qr-container {
        padding: 10px !important;
    }

    .qr-container img {
        max-width: 160px !important;
        height: auto;
    }

    /* 手机端弹窗优化 */
    #progressModal .modal-content {
        margin: 0;
    }

    #progressModal .modal-header {
        padding: 1rem;
    }

    #progressModal .modal-body {
        padding: 1rem !important;
    }

    #progressModal .modal-title {
        font-size: 1rem;
    }

    #progressModal .alert {
        font-size: 0.8rem !important;
        padding: 0.4rem !important;
        margin-bottom: 1rem !important;
    }

    #progressModal .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }

    /* 手机端提取码样式优化 */
    #progressModal .alert-warning {
        padding: 0.4rem !important;
        margin-bottom: 0.5rem !important;
    }

    #progressModal .alert-warning code {
        font-size: 1rem !important;
    }

    #progressModal h6 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem !important;
    }

    /* 手机端专用样式 - 更紧凑的布局 */
    #progressModal .text-center {
        padding: 0.5rem 0;
    }

    #progressModal .text-success {
        font-size: 1rem !important;
    }
}

/* ===== 动画效果 ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInFromLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInFromRight 0.6s ease-out;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* ===== 特殊效果 ===== */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ===== 模拟进度条样式 ===== */
#simulatedProgressBar {
    transition: width 0.3s ease, background-color 0.5s ease;
    border-radius: 10px;
}

#progressPercentage {
    transition: all 0.3s ease;
    border-radius: 15px;
    font-weight: 600;
}

#progressTips {
    transition: opacity 0.3s ease;
}

/* 进度条完成时的动画效果 */
.progress-complete {
    animation: progressComplete 0.6s ease-out;
}

@keyframes progressComplete {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* 每日更新列表项悬停效果 */
.hover-shadow:hover {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25) !important;
    transform: translateY(-3px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.8) !important;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(232,234,246,0.8) 100%) !important;
}

/* 每日更新列表项点击效果 */
.daily-item {
    transition: all 0.3s ease;
}

.daily-item.item-expanded > div:first-child {
    background: linear-gradient(135deg, rgba(232,234,246,0.9) 0%, rgba(243,229,245,0.7) 100%) !important;
    border-left: 4px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2) !important;
}

.daily-item .fa-chevron-down,
.daily-item .fa-chevron-up {
    transition: transform 0.3s ease;
}

/* 每日热门资源高亮样式 */
.bg-light-danger {
    background-color: #fff5f5 !important;
}

.result-item.border-danger {
    border-color: #dc3545 !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15);
}

.result-item.border-danger:hover {
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.25);
}

/* 每日更新分页样式 */
#dailyMoviesPagination .pagination,
#dailyTVPagination .pagination {
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 0.25rem;
}

#dailyMoviesPagination .page-link,
#dailyTVPagination .page-link {
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    color: #007bff;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

#dailyMoviesPagination .page-item.active .page-link,
#dailyTVPagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    font-weight: 600;
}

#dailyMoviesPagination .page-link:hover,
#dailyTVPagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #007bff;
}

#dailyMoviesPagination .page-item.disabled .page-link,
#dailyTVPagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}


/* ===== 搜索按钮优化 ===== */
#searchBtn {
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

#searchBtn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #004085 100%);
}

/* ===== 网盘类型选择优化 ===== */
#netdiskType {
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e9ecef;
}

#netdiskType:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 网盘选择器包装器 */
.netdisk-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* 带箭头的网盘选择器 */
.netdisk-selector-with-arrow {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    padding-right: 3rem !important; /* 为箭头留出空间 */
}

.netdisk-selector-with-arrow:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.netdisk-selector-with-arrow:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15), 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
    transform: translateY(-1px);
}

/* 下拉箭头样式 */
.netdisk-dropdown-arrow {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

/* 悬停时箭头颜色变化 */
.netdisk-select-wrapper:hover .netdisk-dropdown-arrow {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* 焦点时箭头颜色变化 */
.netdisk-selector-with-arrow:focus + .netdisk-dropdown-arrow {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* 网盘选择器包装器动画效果 */
.netdisk-select-wrapper {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* 网盘切换动画 */
.netdisk-select-wrapper.switching .netdisk-selector-with-arrow {
    transform: scale(0.95);
    opacity: 0.7;
}

.netdisk-select-wrapper.switching .netdisk-dropdown-arrow {
    transform: translateY(-50%) scale(0.8);
    opacity: 0.5;
}

.netdisk-select-wrapper.hover .netdisk-selector-with-arrow {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
}

/* 渠道选择器包装器动画效果 */
.channel-select-wrapper {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* 渠道切换动画 */
.channel-select-wrapper.switching .channel-selector-with-arrow {
    transform: scale(0.95);
    opacity: 0.7;
}

.channel-select-wrapper.switching .channel-dropdown-arrow {
    transform: translateY(-50%) scale(0.8);
    opacity: 0.5;
}

.channel-select-wrapper.hover .channel-selector-with-arrow {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
}

/* ===== 无结果提示优化 ===== */
#noResults {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#noResults i {
    opacity: 0.6;
    margin-bottom: 1rem;
}

#noResults h4 {
    color: #6c757d;
    font-weight: 600;
}

#noResults p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* ===== 输入框焦点效果 ===== */
.form-control:focus, .form-select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15), 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ===== 搜索建议样式 ===== */
.search-tips {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-left: 4px solid var(--info-color);
}

/* ===== 统一搜索表单元素尺寸 ===== */

/* 统一搜索输入框尺寸 */
.input-group-lg .form-control,
.input-group-lg .input-group-text {
    height: var(--unified-height);
    font-size: var(--unified-font-size);
    padding: var(--unified-padding-y) var(--unified-padding-x);
    border-width: var(--unified-border-width);
    line-height: 1.5;
}

/* 渠道选择器尺寸现在由 .channel-selector-with-arrow 类控制 */

/* 渠道信息显示框样式 */
.channel-info-display {
    position: relative;
    display: inline-block;
    width: 100%;
}

.channel-info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    color: #495057;
    font-weight: 600;
    text-align: center;
    cursor: default;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.channel-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.channel-info-box:hover::before {
    left: 100%;
}

.channel-info-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* 渠道选择器包装器 */
.channel-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* 带箭头的渠道选择器 */
.channel-selector-with-arrow {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    height: var(--unified-height);
    font-size: var(--unified-font-size);
    padding: var(--unified-padding-y) 2rem var(--unified-padding-y) var(--unified-padding-x) !important;
    border-width: var(--unified-border-width);
    line-height: 1.5;
}

.channel-selector-with-arrow:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.channel-selector-with-arrow:focus {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15), 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
    transform: translateY(-1px);
}

/* 渠道下拉箭头样式 */
.channel-dropdown-arrow {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 0.9rem;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1;
}

/* 悬停时渠道箭头颜色变化 */
.channel-select-wrapper:hover .channel-dropdown-arrow {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* 焦点时渠道箭头颜色变化 */
.channel-selector-with-arrow:focus + .channel-dropdown-arrow {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* 统一网盘类型选择器尺寸 */
.netdisk-selector-with-arrow.form-select-lg {
    height: var(--unified-height);
    font-size: var(--unified-font-size);
    padding: var(--unified-padding-y) 2.5rem var(--unified-padding-y) var(--unified-padding-x) !important;
    border-width: var(--unified-border-width);
    line-height: 1.5;
}

/* 统一搜索按钮尺寸 */
#searchBtn.btn-lg {
    height: var(--unified-height);
    font-size: var(--unified-font-size);
    padding: var(--unified-padding-y) var(--unified-padding-x);
    border-width: var(--unified-border-width);
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 确保按钮文本垂直居中 */
#searchBtn .btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 调整下拉箭头位置以适应统一高度 */
.netdisk-dropdown-arrow {
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
}

/* ===== 加载状态优化 ===== */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    pointer-events: none;
}

/* 正在获取资源中按钮样式 */
.btn-loading-background {
    background: linear-gradient(135deg, #4a6bff 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2) !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* 确保按钮内所有文字都是白色且清晰可见 */
.btn-loading-background,
.btn-loading-background *,
.btn-loading-background i,
.btn-loading-background span {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    font-weight: 600 !important;
    z-index: 2;
    position: relative;
}

.btn-loading-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0) 100%);
    animation: loading-shine 1.5s infinite;
    z-index: 1;
}

.loading-text {
    font-weight: 600 !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    z-index: 2;
    position: relative;
}

@keyframes loading-shine {
    to {
        left: 100%;
    }
}

/* ===== 切换渠道提示样式 ===== */
#channelSwitchTip {
    animation: slideInDown 0.3s ease-out;
}

#channelSwitchTip .alert {
    border: 1px solid #b3d9ff;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    transition: all 0.2s ease;
}

#channelSwitchTip .alert:hover {
    background: linear-gradient(135deg, #e6f3ff 0%, #d9edff 100%);
    border-color: #80c7ff;
}

#switchChannelBtn {
    transition: all 0.2s ease;
    font-size: 0.8rem;
    min-width: 60px;
}

#switchChannelBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
}

#switchChannelBtn:active {
    transform: translateY(0);
}

/* 可点击文字样式 */
.clickable-text {
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
    border-radius: 4px;
    padding: 2px 4px;
}

.clickable-text:hover {
    background-color: rgba(13, 110, 253, 0.1);
    text-decoration-color: currentColor;
    transform: translateY(-1px);
}

.clickable-text:active {
    transform: translateY(0);
    background-color: rgba(13, 110, 253, 0.2);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 成功动画 ===== */
@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-animation {
    animation: checkmark 0.6s ease-out;
}

/* ===== 错误动画 ===== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-animation {
    animation: shake 0.5s ease-in-out;
}

/* ===== 工具提示样式 ===== */
.tooltip-custom {
    position: relative;
    cursor: help;
}

.tooltip-custom::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
}

.tooltip-custom:hover::after {
    opacity: 1;
}

/* ===== 快速跳转按钮样式 ===== */
.quick-nav-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.quick-nav-btn {
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-width: 1.5px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.quick-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.quick-nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .quick-nav-buttons {
        gap: 8px;
        max-width: 100%;
        padding: 0;
    }

    .quick-nav-btn {
        padding: 10px 8px;
        font-size: 12px;
        border-radius: 10px;
    }

    .quick-nav-btn i {
        font-size: 12px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .quick-nav-buttons {
        gap: 6px;
    }

    .quick-nav-btn {
        padding: 9px 6px;
        font-size: 11.5px;
        border-radius: 10px;
    }

    .quick-nav-btn i {
        font-size: 11px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .quick-nav-btn:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .quick-nav-btn:active {
        transform: scale(0.98);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    }

    .quick-nav-btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* ===== 热门电影榜单样式 ===== */
#hotMovies {
    margin-top: 3rem;
}

/* 自定义3列布局 - 每行显示3个卡片 */
.col-2-4,
.col-sm-2-4,
.col-md-2-4,
.col-lg-2-4,
.col-xl-2-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    width: 33.333333%;
}

.movie-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.movie-poster {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* 图片加载状态样式 - 适用于所有卡片类型 */
.movie-poster .image-loading,
.tv-poster .image-loading,
.variety-poster .image-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #6c757d;
    font-size: 14px;
    z-index: 1;
}

.movie-poster .image-loading .loading-spinner,
.tv-poster .image-loading .loading-spinner,
.variety-poster .image-loading .loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.movie-poster img.loaded,
.tv-poster img.loaded,
.variety-poster img.loaded {
    opacity: 1;
}

.movie-poster img.loading,
.tv-poster img.loading,
.variety-poster img.loading {
    opacity: 0;
}

/* ===== 加载卡片样式 ===== */
.loading-card {
    opacity: 0.7;
    pointer-events: none;
}

.loading-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    border-radius: 8px;
}

.loading-placeholder .loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 8px;
}

.loading-text {
    background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffc107;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
}

.movie-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.movie-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6rem;
}

.movie-year {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.movie-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.movie-genre {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.movie-directors {
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: auto;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .movie-poster {
        height: 240px;
    }

    .movie-info {
        padding: 0.8rem;
    }

    .movie-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* 手机端使用电脑端相同的5列布局，等比例缩小 */
    .movie-poster {
        height: 160px; /* 适应5列布局的海报高度 */
    }

    .movie-info {
        padding: 0.5rem; /* 适应5列布局的内边距 */
    }

    .movie-title {
        font-size: 0.8rem; /* 适应5列布局的标题字体 */
        min-height: 2.0rem; /* 适应5列布局的最小高度 */
        line-height: 1.2;
    }

    .movie-year {
        font-size: 0.75rem; /* 适应5列布局的年份字体 */
        margin-bottom: 0.3rem;
    }

    .movie-genres {
        gap: 3px; /* 适应5列布局的类型标签间距 */
        margin-bottom: 0.3rem;
    }

    .movie-genre {
        font-size: 0.65rem; /* 适应5列布局的类型标签字体 */
        padding: 1px 4px; /* 适应5列布局的类型标签内边距 */
    }

    .movie-directors {
        font-size: 0.75rem; /* 适应5列布局的导演字体 */
    }

    /* 手机端年份导演合并显示样式 */
    .movie-year-director {
        font-size: 0.7rem;
        color: var(--muted-color);
        margin-bottom: 0.3rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .movie-rating {
        font-size: 0.75rem; /* 适应5列布局的评分字体 */
        padding: 2px 5px; /* 适应5列布局的评分标签内边距 */
        top: 5px;
        right: 5px;
    }

    /* 确保卡片高度适应5列布局 */
    .movie-card {
        min-height: 240px; /* 适应5列布局的最小高度 */
    }

    #hotMovies {
        margin-top: 1.5rem; /* 增加间距避免被遮挡 */
        padding-top: 1rem; /* 添加内边距 */
    }
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), #004085);
}

/* ===== 选择文本样式 ===== */
::selection {
    background: rgba(0, 123, 255, 0.2);
    color: var(--dark-color);
}

::-moz-selection {
    background: rgba(0, 123, 255, 0.2);
    color: var(--dark-color);
}

/* ===== 自定义提示消息样式 ===== */
.custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 250px;
    max-width: 400px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.custom-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.custom-toast.toast-info {
    border-left: 4px solid #17a2b8;
    color: #0c5460;
}

.custom-toast.toast-info i {
    color: #17a2b8;
}

.custom-toast.toast-warning {
    border-left: 4px solid #ffc107;
    color: #856404;
}

.custom-toast.toast-warning i {
    color: #ffc107;
}

.custom-toast.toast-success {
    border-left: 4px solid #28a745;
    color: #155724;
}

.custom-toast.toast-success i {
    color: #28a745;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .custom-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
}

/* ===== 焦点可见性 ===== */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== 打印样式 ===== */
@media print {
    .navbar,
    .footer,
    .btn,
    #searchLoading,
    #progressModal {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ===== 电影和电视剧卡片样式 ===== */

/* 电影卡片悬停效果 */
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.movie-card:hover img {
    transform: scale(1.05);
}

.movie-card:hover .position-absolute.top-0.start-0.w-100.h-100 {
    opacity: 1;
}

/* 电视剧卡片样式 - 完全照抄电影卡片样式 */
#tvList .col-2-4 {
    margin-bottom: 1.5rem;
}

/* 确保电视剧卡片高度一致 - 适应5列布局 */
.tv-card {
    min-height: 320px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.tv-poster {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
}

.tv-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.tv-card:hover .tv-poster img {
    transform: scale(1.05);
}

.tv-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffc107;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
}

.tv-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tv-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tv-year {
    font-size: 0.85rem;
    color: var(--muted-color);
    margin-bottom: 0.5rem;
}

.tv-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.tv-genre {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.tv-directors {
    font-size: 0.8rem;
    color: var(--muted-color);
    margin-top: auto;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tv-poster {
        height: 240px;
    }

    .tv-info {
        padding: 0.8rem;
    }

    .tv-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* 手机端使用电脑端相同的5列布局，等比例缩小 */
    .tv-poster {
        height: 160px; /* 适应5列布局的海报高度 */
    }

    .tv-info {
        padding: 0.5rem; /* 适应5列布局的内边距 */
    }

    .tv-title {
        font-size: 0.8rem; /* 适应5列布局的标题字体 */
        line-height: 1.2;
        -webkit-line-clamp: 2;
    }

    .tv-year {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .tv-genre {
        font-size: 0.6rem;
        padding: 1px 4px;
    }

    .tv-directors {
        font-size: 0.7rem;
    }

    /* 手机端年份导演合并显示样式 */
    .tv-year-director {
        font-size: 0.7rem;
        color: var(--muted-color);
        margin-bottom: 0.3rem;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tv-rating {
        font-size: 0.65rem;
        padding: 2px 6px;
        top: 5px;
        right: 5px;
    }

    /* 确保卡片高度适应5列布局 */
    .tv-card {
        min-height: 240px; /* 适应5列布局的最小高度 */
    }

    #hotTV {
        margin-top: 1.5rem; /* 增加间距避免被遮挡 */
        padding-top: 1rem; /* 添加内边距 */
    }
}

/* ===== 综艺卡片样式 - 完全照抄电影卡片样式 ===== */
#varietyList .col-2-4 {
    margin-bottom: 1.5rem;
}

/* 确保综艺卡片高度一致 - 适应5列布局 */
.variety-card {
    min-height: 320px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.variety-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.variety-poster {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.variety-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.variety-card:hover .variety-poster img {
    transform: scale(1.05);
}

.variety-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 193, 7, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.variety-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.variety-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 6px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.variety-year, .variety-directors {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 4px;
}

.variety-year-director {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 4px;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .variety-poster {
        height: 180px;
    }

    .variety-info {
        padding: 8px;
    }

    .variety-title {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }

    .variety-year, .variety-directors, .variety-year-director {
        font-size: 0.7rem;
    }

    .variety-rating {
        top: 5px;
        right: 5px;
    }

    /* 确保卡片高度适应5列布局 */
    .variety-card {
        min-height: 240px; /* 适应5列布局的最小高度 */
    }

    #hotVariety {
        margin-top: 1.5rem; /* 增加间距避免被遮挡 */
        padding-top: 1rem; /* 添加内边距 */
    }

    /* 缩小热门榜单标题的下方间距 */
    .d-flex.justify-content-between.align-items-center.mb-4 {
        margin-bottom: 0.75rem !important;
    }

    /* 缩小热门榜单标题字体 */
    .d-flex.justify-content-between.align-items-center h4 {
        font-size: 1rem !important;
    }

    /* 缩小热门榜单提示文字 */
    .d-flex.justify-content-between.align-items-center small {
        font-size: 0.7rem !important;
    }
}

/* ===== 每日热门资源按钮 - 极简重构版（零闪烁） ===== */

/* 
 * 设计理念：
 * 1. 完全移除所有动画、过渡、变换效果
 * 2. 使用最基础的CSS属性，避免渲染问题
 * 3. 扁平化设计，简洁明了
 * 4. 适配所有设备，性能优先
 */

/* 容器样式 - 紧凑设计 */
.daily-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem;
    margin-bottom: 1.2rem;
    /* 透明背景 */
    background-color: transparent;
    /* 圆角边框 */
    border-radius: 25px;
    /* 无边框 */
    border: none;
}

/* 按钮基础样式 - 更大尺寸 */
.daily-tab-btn {
    /* 布局 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    min-width: 220px;
    /* 文字 */
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    /* 背景和边框 */
    background-color: transparent;
    border: none;
    border-radius: 30px;
    /* 光标 */
    cursor: pointer;
    /* 禁用用户选择 */
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.3s ease;
}

/* 悬停状态 - 简单变色 */
.daily-tab-btn:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* 激活状态 - 清晰对比 */
.daily-tab-btn.active {
    color: #2d3748 !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

/* 图标样式 */
.daily-tab-btn i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* 文字样式 */
.tab-text {
    display: inline-block;
    white-space: nowrap;
}

/* 移动端适配 - 768px 以下 */
@media (max-width: 768px) {
    .daily-tabs {
        gap: 0.5rem;
        padding: 0.6rem;
        border-radius: 10px;
    }
    
    .daily-tab-btn {
        padding: 0.6rem 1rem;
        min-width: 130px;
        font-size: 0.9rem;
    }
    
    .daily-tab-btn i {
        font-size: 1rem;
        margin-right: 0.4rem;
    }
    
    .tab-text {
        font-size: 0.9rem;
    }
}

/* 小屏幕适配 - 480px 以下 */
@media (max-width: 480px) {
    .daily-tabs {
        gap: 0.4rem;
        padding: 0.5rem;
    }
    
    .daily-tab-btn {
        padding: 0.5rem 0.8rem;
        min-width: 110px;
        font-size: 0.85rem;
    }
    
    .daily-tab-btn i {
        font-size: 0.9rem;
    }
    
    .tab-text {
        font-size: 0.85rem;
    }
}

/* 强制覆盖所有可能的Bootstrap和其他框架样式 */
.daily-tabs,
.daily-tabs *,
.daily-tab-btn,
.daily-tab-btn * {
    /* 彻底禁用所有动画和过渡 */
    transition: none !important;
    animation: none !important;
    transform: none !important;
    /* 禁用所有浏览器前缀的动画 */
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    -webkit-animation: none !important;
    -moz-animation: none !important;
    -o-animation: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -o-transform: none !important;
    /* 禁用硬件加速 */
    -webkit-backface-visibility: visible !important;
    backface-visibility: visible !important;
    will-change: auto !important;
}

/* 移除Bootstrap nav-pills的默认样式 */
.daily-tabs.nav-pills {
    background-color: transparent !important;
    border: none !important;
}

.daily-tab-btn.nav-link {
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.daily-tab-btn.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.daily-tab-btn.nav-link.active {
    background-color: #007bff !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
    font-weight: 700 !important;
}

/* 移除伪元素 */
.daily-tab-btn::before,
.daily-tab-btn::after,
.daily-tabs::before,
.daily-tabs::after {
    display: none !important;
    content: none !important;
}

/* ===== 重复的样式定义已删除，使用上方的简化版定义 ===== */
/* 重复的移动端适配也已删除，使用上方的定义 */

/* ===== 搜索结果收起/展开按钮样式 ===== */
#toggleResultsBtn {
    /* 已在HTML中内联样式，这里只保留hover效果 */
}

#toggleResultsBtn:hover {
    background-color: #0056b3 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3) !important;
}

#toggleResultsBtn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0, 86, 179, 0.2) !important;
}

#toggleResultsBtn i {
    transition: transform 0.3s ease;
}

/* 移动端优化 */
@media (max-width: 768px) {
    #toggleResultsBtn {
        padding: 0.35rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    
    /* 移动端隐藏提示文字，只显示按钮 */
    #searchResults .d-flex.align-items-center.gap-3 small {
        display: none;
    }
}
