* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background: #ffffff;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 顶部区域 */
.header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-radius: 0 0 20px 20px;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo-icon i {
    font-size: 28px;
    color: #2575fc;
}

.site-name {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
}

.site-desc {
    font-size: 16px;
    margin-top: 8px;
    opacity: 0.9;
    max-width: 600px;
    margin: 10px auto 0;
}

.main-content {
    display: flex;
    gap: 30px;
    padding: 0 20px;
    margin-bottom: 40px;
    justify-content: space-between;
}

.search-section {
    flex: 1;
    max-width: 900px;
    min-width: 0;
}

/* 排行榜样式调整 */
.rankings-section {
    width: 380px;
    margin-left: 20px;
}

/* 搜索区域 */
.search-main-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

.search-main-box {
    position: relative;
    margin-bottom: 20px;
}

.search-main-box input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    border: none;
    border-radius: 50px;
    background: #f5f7fa;
    font-size: 16px;
    color: #333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-main-box input:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.2);
}

.search-main-box button {
    position: absolute;
    right: 8px;
    top: 8px;
    bottom: 8px;
    width: 45px;
    border: none;
    border-radius: 50%;
    background: #2575fc;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-main-box button:hover {
    background: #1a67e8;
    transform: scale(1.05);
}

.search-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.search-tip {
    background: #eef4ff;
    color: #2575fc;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-tip:hover {
    background: #2575fc;
    color: white;
}

/* 加入群聊按钮 */
.group-button {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #2575fc;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.group-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
    background: white;
}

.group-button i {
    font-size: 20px;
}

/* 原有的列表样式 */
.listBox {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notice-bar {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}

.notice-text span {
    display: block;
    color: #856404;
    font-size: 14px;
    margin-bottom: 5px;
}

.search-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    margin-bottom: 15px;
    position: relative;
}

#noticeSearchInput {
    flex: 1;
    padding: 12px 16px;
    padding-right: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

#noticeSearchInput:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2), 
                inset 0 1px 2px rgba(0,0,0,0.05);
}

.search-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: #1890ff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #0c7ae8;
    transform: translateY(-1px);
}

.search-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    margin-right: 6px;
}

/* 网盘筛选器 */
.pan-filter-container {
    display: flex;
    align-items: center;
    padding: 12px 0 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 15px;
}

.pan-filter-title {
    font-size: 14px;
    color: #666;
    margin-right: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.pan-filter-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pan-radio {
    position: relative;
    cursor: pointer;
    margin: 2px 0;
}

.pan-radio input {
    position: absolute;
    opacity: 0;
}

.pan-radio-button {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 16px;
    background: #f6f7f9;
    color: #666;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.pan-radio input:checked + .pan-radio-button {
    background: linear-gradient(135deg, #1890ff, #096dd9);
    color: #fff;
    border-color: #1890ff;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.2);
}

.pan-radio-button i {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

.platform-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    border-radius: 2px;
}

.pan-radio input:checked + .pan-radio-button i:before {
    color: white;
}

.pan-radio:hover .pan-radio-button {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.Qbtn {
    margin: 20px 0;
}

.Qbtn .btn {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.Qbtn .btn p {
    margin: 0;
    color: #1976d2;
    font-weight: 500;
}

.list .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.list .item:hover {
    background: #f8f9fa;
}

.list .item .title {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.list .item .btns2 {
    background: #2575fc;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.list .item .btns2:hover {
    background: #1a67e8;
    transform: translateY(-1px);
}

/* 夸克网盘按钮样式 - 黄色 */
.btns-quark {
    background: linear-gradient(135deg, #ffd700, #ffa500) !important;
    color: #333 !important;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btns-quark:hover {
    background: linear-gradient(135deg, #ffa500, #ff8c00) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

/* 百度网盘按钮样式 - 蓝色 */
.btns-baidu {
    background: linear-gradient(135deg, #2575fc, #1a67e8) !important;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btns-baidu:hover {
    background: linear-gradient(135deg, #1a67e8, #1557c0) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 117, 252, 0.3);
}

/* UC网盘按钮样式 - 橙色 */
.btns-uc {
    background: linear-gradient(135deg, #ff7900, #ff7900) !important;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btns-uc:hover {
    background: linear-gradient(135deg, #d06708, #d06708) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 121, 0, 0.3);
}

/* 默认按钮样式（保留原有样式） */
.btns2 {
    background: #2575fc;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btns2:hover {
    background: #1a67e8;
    transform: translateY(-1px);
}

/* 失效按钮样式 - 红色 */
.btns2:disabled,
.btns-baidu:disabled,
.btns-quark:disabled,
.btns-uc:disabled {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: not-allowed;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.8 !important;
}

/* 分页样式修复 */
.page {
    margin-top: 30px;
    text-align: center;
    padding: 20px 0;
}

.el-pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.btn-prev, .btn-next {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.btn-prev:hover:not(.disabled), .btn-next:hover:not(.disabled) {
    background: #2575fc;
    color: white;
    border-color: #2575fc;
    transform: translateY(-1px);
}

.btn-prev:disabled, .btn-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}

.el-pager {
    display: flex;
    gap: 4px;
}

.number {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    background: white;
    transition: all 0.3s ease;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.number:hover:not(.is-active) {
    background: #f8f9fa;
    border-color: #2575fc;
    transform: translateY(-1px);
}

.number.is-active {
    background: linear-gradient(135deg, #2575fc, #1a67e8);
    color: white;
    border-color: #2575fc;
    box-shadow: 0 2px 8px rgba(37, 117, 252, 0.3);
}

/* 分页信息显示 */
.pagination-info {
    text-align: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.pagination-info span {
    color: #2575fc;
    font-weight: 600;
}

.rankings-sidebar {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
    margin-left: 0;
    margin-right: 0;
}

.ranking-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #2575fc;
}

.ranking-category {
    margin-bottom: 25px;
}

.ranking-category .nav {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    padding-left: 8px;
    border-left: 3px solid #2575fc;
}

.ranking-category .item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

.ranking-category .item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.ranking-category .item p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-category .item span {
    background: #2575fc;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 20px;
}

.qrcode-image {
    text-align: center;
    margin: 20px 0;
}

.qrcode-image img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
}

/* 网盘链接弹窗样式 - 美化 */
.pan-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.pan-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalopen 0.3s ease-out;
    position: relative;
}

.pan-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pan-close:hover {
    color: #333;
    background: #f5f5f5;
}

.pan-modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.pan-loading, .pan-result, .pan-error {
    display: none;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2575fc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pan-loading p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.pan-result .notice-bar {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}

.pan-result .notice-text span {
    display: block;
    color: #1976d2;
    font-size: 13px;
    margin-bottom: 5px;
}

.link-container {
    display: flex;
    gap: 10px;
    margin: 25px 0;
    align-items: center;
}

/* 链接状态样式 */
.title-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.link-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    width: fit-content;
}

.status-valid {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.status-invalid {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.status-icon {
    font-weight: bold;
}

.check-time {
    color: #666;
    font-size: 11px;
}

#panLink {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

#panLink:focus {
    outline: none;
    border-color: #2575fc;
    background: white;
}

#copyBtn {
    background: linear-gradient(135deg, #2575fc, #1a67e8);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#copyBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.3);
}

.direct-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #2575fc;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 2px solid #2575fc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.direct-link:hover {
    background: #2575fc;
    color: white;
    transform: translateY(-2px);
}

.pan-error {
    padding: 20px 0;
}

.error-message {
    color: #f56c6c;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

#retryBtn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#retryBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

@keyframes modalopen {
    from {opacity: 0; transform: translateY(-50px) scale(0.9);}
    to {opacity: 1; transform: translateY(0) scale(1);}
}

/* 页脚 */
.footerBox {
    background: #f8f9fa;
    padding: 30px 20px;
    text-align: center;
    color: #666;
    border-top: 1px solid #eaeaea;
    margin-top: 40px;
}

.footerBox p {
    margin-bottom: 10px;
}

.footerBox a {
    color: #2575fc;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
    
    .rankings-section {
        width: 100%;
        margin-left: 0;
        order: -1;
    }
    
    .rankings-sidebar {
        position: static;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 30px 15px 20px;
    }
    
    .site-name {
        font-size: 26px;
    }
    
    .link-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .check-time {
        font-size: 10px;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .search-main-container {
        padding: 20px;
    }
    
    .group-button {
        font-size: 16px;
    }
    
    .pan-filter-container {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 15px;
    }
    
    .pan-filter-title {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    #noticeSearchInput {
        padding: 10px 14px;
        padding-right: 44px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 0 12px;
        font-size: 13px;
    }
    
    .pan-filter-options {
        gap: 6px;
    }
    
    .pan-radio-button {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .pan-modal-content {
        margin: 5% auto;
        padding: 20px;
    }
    
    .rankings-section {
        display: none;
    }
    
    .search-section {
        max-width: 100%;
    }
    
    .main-content {
        gap: 0;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 10px 15px;
    }
    
    .site-name {
        font-size: 22px;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo-icon {
        margin-right: 0;
    }
    
    .link-container {
        flex-direction: column;
    }
    
    #copyBtn {
        width: 100%;
    }

    .el-pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }

    .el-pager {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
}

/* ========== 优化后的加载状态样式 ========== */

/* 基础加载状态 - 使用旋转圆圈 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.loading::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2575fc;
    border-right: 4px solid #2575fc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 5px;
}

/* 搜索结果区域的加载状态 */
#searchResults .loading {
    min-height: 200px;
}

#searchResults .loading::before {
    width: 50px;
    height: 50px;
    border-width: 4px;
    border-top-color: #2575fc;
    border-right-color: #ff6b6b;
}

/* 排行榜加载状态 */
#rankingsContainer .loading {
    padding: 30px 10px;
}

#rankingsContainer .loading::before {
    width: 30px;
    height: 30px;
    border-width: 3px;
    border-top-color: #ff6b6b;
    border-right-color: #ff6b6b;
}

/* 文件树加载状态 */
.file-tree-container .loading {
    padding: 20px;
    min-height: auto;
}

.file-tree-container .loading::before {
    width: 30px;
    height: 30px;
    border-width: 3px;
}

/* 弹窗内的加载状态 */
.pan-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.pan-loading .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2575fc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.pan-loading p {
    color: #666;
    font-size: 16px;
    margin: 15px 0 0;
}

/* 搜索结果状态 - 带加载动画 */
.search-status {
    padding: 10px 15px;
    background: #e3f2fd;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #1976d2;
    border-left: 4px solid #2196f3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-status.modified {
    background: #fff3e0;
    color: #f57c00;
    border-left-color: #ff9800;
}

.search-status.loading {
    padding: 15px;
    flex-direction: row;
    justify-content: flex-start;
}

.search-status.loading::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0;
}

/* 分页加载状态 */
.pagination-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 20px;
    color: #666;
}

.pagination-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #2575fc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 按钮加载状态 */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 小加载图标（用于内联） */
.loading-small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.loading-small::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid #2575fc;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 页面初始加载 */
.initial-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.initial-loading .spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2575fc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 按钮组容器 */
.action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* 查看文件按钮 */
.file-tree-btn {
    padding: 8px 12px !important;
    font-size: 13px !important;
    background: #f0f0f0 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.file-tree-btn:hover {
    background: #e0e0e0 !important;
}

/* 文件树容器 */
.file-tree-container {
    margin: 10px 0 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 14px;
    max-height: 400px;
    overflow-y: auto;
    transition: all 0.2s ease;
}

/* 文件树列表样式 */
.file-tree {
    list-style: none;
    padding-left: 20px;
    margin: 0;
}

.file-tree li {
    margin: 5px 0;
    line-height: 1.6;
}

.file-tree .folder {
    color: #e6a017;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.file-tree .file {
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.file-tree .folder i, .file-tree .file i {
    width: 18px;
    font-size: 14px;
}

.file-tree .folder-contents {
    padding-left: 20px;
    list-style: none;
}

/* 文件大小 */
.file-size {
    color: #999;
    font-size: 12px;
    margin-left: 10px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .file-tree-btn {
        width: 100%;
        justify-content: center;
    }
    
    .loading::before {
        width: 35px;
        height: 35px;
        border-width: 3px;
    }
    
    #searchResults .loading::before {
        width: 45px;
        height: 45px;
    }
    
    .pan-loading .spinner {
        width: 40px;
        height: 40px;
    }
}