/**
 * 前台样式
 */

/* 搜索容器 */
.cloud-search-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* 登录提示 */
.cloud-search-login-required {
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #f8f8f8;
    border-left: 3px solid #0073aa;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cloud-search-login-message {
    color: #666;
    font-size: 13px;
}

.cloud-search-login-button {
    background-color: #0073aa;
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

.cloud-search-login-button:hover {
    background-color: #005f8b;
    color: #fff;
    text-decoration: none;
}

/* 搜索表单 */
.cloud-search-form {
    margin-bottom: 20px;
}

.cloud-search-input-wrapper {
    display: flex;
    max-width: 100%;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.cloud-search-input-wrapper:focus-within {
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    border-color: #d0d0d0;
}

/* API选择下拉框 */
.cloud-search-api-select {
    padding: 10px 12px;
    border: none;
    border-right: 1px solid #eaeaea;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    min-width: 100px;
    height: 100%;
    outline: none;
    cursor: pointer;
}

.cloud-search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 0;
    font-size: 15px;
    min-width: 0;
    outline: none;
}

.cloud-search-button {
    padding: 10px 20px;
    background: #2b5aed;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s;
    white-space: nowrap;
}

.cloud-search-button:hover {
    background: #1e48c8;
}

.cloud-search-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}


/* 加载状态 */
.cloud-search-loading {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 进度条容器 */
.cloud-search-progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* 进度条头部（图标+状态文字） */
.cloud-search-progress-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cloud-search-loading .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 115, 170, 0.3);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cloud-search-status-text {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* 进度条 */
.cloud-search-progress-bar {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.cloud-search-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005a87, #0073aa);
    background-size: 200% 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
    animation: progressShine 2s linear infinite;
}

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

/* 进度百分比 */
.cloud-search-progress-percentage {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    min-width: 35px;
    text-align: center;
}

/* 结果容器 */
.cloud-search-results-wrapper {
    margin-top: 20px;
    border-radius: 4px;
    overflow: hidden;
}

/* 结果标题区 */
.cloud-search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cloud-search-results-header h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
}

.cloud-search-results-count {
    background: #f1f1f1;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 14px;
    color: #666;
}

/* 卡片布局 */
.cloud-search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

/* 单个卡片样式 */
.cloud-search-result-item {
    background: #fff;
    border: 1px solid #e8e9ea;
    border-radius: 6px;
    padding: 16px;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cloud-search-result-item:hover {
    border-color: #0073aa;
    box-shadow: 0 3px 12px rgba(0, 115, 170, 0.12);
    transform: translateY(-2px);
}

/* 卡片顶部信息栏 */
.cloud-search-result-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f5f5f5;
}

/* API来源标签 */
.cloud-search-result-api {
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

/* 右侧信息区域 */
.cloud-search-result-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 网盘类型标签 */
.cloud-search-disk-type {
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.cloud-search-disk-type.baidu {
    background-color: #2b5aed;
}

.cloud-search-disk-type.quark {
    background-color: #19ad19;
}

.cloud-search-disk-type.aliyun {
    background-color: #ff6a00;
}

.cloud-search-disk-type.lanzou {
    background-color: #6f42c1;
}

.cloud-search-disk-type.onedrive {
    background-color: #0078d4;
}

.cloud-search-disk-type.weiyun {
    background-color: #2d8cf0;
}

.cloud-search-disk-type.xunlei {
    background-color: #0088cc;
}

.cloud-search-disk-type.tianyi {
    background-color: #e74c3c;
}
.cloud-search-disk-type.pan115 {
    background-color: #0099CC;
}
.cloud-search-disk-type.ctfile {
    background-color: #FF6600;
}
.cloud-search-disk-type.uc {
    background-color: #FF9900;
}
.cloud-search-disk-type.magnet {
    background-color: #993399;
}

/* 标题样式 */
.cloud-search-result-title {
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.cloud-search-result-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cloud-search-result-title a:hover {
    color: #0073aa;
}

/* 确保资源标题中的锁图标正确显示 */
.cloud-search-result-title .resource-link-password-required {
    line-height: 1.5;
    display: inline;
    padding-left: 20px;
}

/* 描述样式 */
.cloud-search-result-description {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    flex-grow: 1;
}


/* 提取码样式 */
.cloud-search-result-pwd {
    display: inline-flex;
    align-items: center;
}

.cloud-search-result-pwd .pwd-text {
    background-color: #f1f3f4;
    border: 1px solid #dadce0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    color: #5f6368;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
    min-width: 32px;
    justify-content: center;
}

.cloud-search-result-pwd .pwd-text:before {
    content: "🔑";
    margin-right: 2px;
    font-size: 8px;
}

.cloud-search-result-pwd .pwd-text:hover {
    background-color: #e8eaed;
    border-color: #bdc1c6;
    transform: scale(1.05);
}

.cloud-search-result-pwd .pwd-text.copied {
    background-color: #e8f5e8;
    border-color: #c3e6c3;
    color: #1e7e34;
}

.cloud-search-result-pwd .pwd-text.copied:before {
    content: "✓";
    color: #1e7e34;
}

.cloud-search-copy-btn {
    display: none; /* 隐藏原来的复制按钮 */
}

/* 筛选器样式 */
.cloud-search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.cloud-search-filter-label {
    font-size: 14px;
    font-weight: 500;
    margin-right: 10px;
    color: #333;
}

.cloud-search-filter-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.cloud-search-filter-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.cloud-search-filter-btn.active {
    background-color: #1890ff;
    color: #fff;
    border-color: #1890ff;
}

/* 分页 */
.cloud-search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

.cloud-search-pagination button {
    padding: 8px 16px;
    background: #2b5aed;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cloud-search-pagination button:hover:not(:disabled) {
    background: #1e48c8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cloud-search-pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.cloud-search-pagination-info {
    font-size: 14px;
    color: #666;
    background: #f1f1f1;
    padding: 6px 12px;
    border-radius: 15px;
}

/* 无结果和错误消息 */
.cloud-search-no-results,
.cloud-search-error {
    padding: 30px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

.cloud-search-error {
    border-color: #ffdddd;
    background: #fff8f8;
    color: #d8000c;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .cloud-search-results {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    .cloud-search-results {
        grid-template-columns: 1fr;
    }
    
    /* 超小屏幕下的额外调整 - 更加紧凑 */
    .cloud-search-resource-results {
        padding: 12px;
        font-size: 13px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
    
    .cloud-search-resource-results:hover {
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
        transform: translateY(-1px);
    }
    
    .cloud-search-resource-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-bottom: 8px;
        margin-bottom: 12px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .cloud-search-resource-header h4 {
        margin: 0;
        font-size: 16px;
        line-height: 1.3;
        text-align: center;
        margin-bottom: 6px;
        font-weight: 600;
        color: #2c3e50;
    }
    
    /* 超小屏幕按钮容器 */
    .cloud-search-buttons-container {
        justify-content: center;
        gap: 6px;
    }
    
    /* 超小屏幕补充资源按钮 */
    .cloud-search-supplement-btn {
        font-size: 10px;
        padding: 3px 6px;
        gap: 3px;
    }
    
    .cloud-search-supplement-btn svg {
        width: 12px;
        height: 12px;
    }
    
    /* 超小屏幕刷新按钮 */
    .cloud-search-refresh-btn {
        font-size: 10px;
        padding: 3px 6px;
        gap: 3px;
    }
    
    .cloud-search-refresh-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .cloud-search-keyword {
        font-size: 11px;
        margin-bottom: 8px;
    }
    
    /* 折叠面板进一步紧凑 */
    .cloud-search-panel {
        margin-bottom: 4px;
    }
    
    .cloud-search-panel-button {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .cloud-search-panel-body {
        padding: 4px;
    }
    
    /* 资源项目进一步紧凑 - 超小屏幕单行布局 */
    .resource-compact-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 6px 8px;
        gap: 8px;
    }
    
    .resource-compact-link {
        flex: 1;
        overflow: hidden;
        padding-right: 6px;
    }
    
    .resource-compact-link a {
        font-size: 12px;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }
    
    .resource-compact-info {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        gap: 6px;
    }
    
    .resource-compact-pwd {
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 3px;
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        color: #495057;
        white-space: nowrap;
    }
    
    .resource-compact-pwd:before {
        margin-right: 2px;
        font-size: 9px;
    }
    
    /* 超小屏幕也隐藏资源来源 */
    .resource-compact-source {
        display: none;
    }
    
    /* 其他区域进一步紧凑 */
    .cloud-search-refresh-message {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .cloud-search-loading-placeholder {
        padding: 15px 8px;
    }
    
    .loading-spinner {
        width: 24px;
        height: 24px;
        margin-bottom: 8px;
    }
    
    .loading-text {
        font-size: 11px;
    }
    
    .lazy-load-trigger {
        padding: 15px 8px;
    }
    
    .lazy-load-text {
        font-size: 13px;
    }
    
    .lazy-load-hint {
        font-size: 11px;
    }
    
    .cloud-search-password-notice {
        margin-top: 10px;
        padding: 8px;
        gap: 8px;
    }
    
    .cloud-search-password-notice-content h4 {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .cloud-search-password-notice-content p {
        font-size: 11px;
        margin-bottom: 6px;
    }
}

/* 搜索建议区域 */
.cloud-search-suggestions {
    margin-top: 10px;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.cloud-search-suggestion-section {
    margin-bottom: 10px;
}

.cloud-search-suggestion-section:last-child {
    margin-bottom: 0;
}

.cloud-search-suggestion-title {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.cloud-search-icon {
    margin-right: 5px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cloud-search-suggestion-title i {
    margin-right: 5px;
    font-size: 14px;
    color: #888;
}

.cloud-search-suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cloud-search-suggestion-tag {
    background-color: #f7f7f7;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cloud-search-suggestion-tag:hover {
    background-color: #efefef;
    color: #333;
}

.cloud-search-suggestion-tag.hot {
    background-color: #fff5f0;
    color: #e05e00;
}

.cloud-search-suggestion-tag.hot:hover {
    background-color: #ffe8db;
}

.cloud-search-suggestion-tag.new {
    background-color: #f0f7ff;
    color: #0066cc;
}

.cloud-search-suggestion-tag.new:hover {
    background-color: #e0eeff;
}

.cloud-search-suggestion-tag.history {
    background-color: #f5fff0;
    color: #3d8c00;
}

.cloud-search-suggestion-tag.history:hover {
    background-color: #e8ffdb;
}

.cloud-search-suggestion-clear {
    font-size: 12px;
    color: #999;
    cursor: pointer;
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 4px;
}

.cloud-search-suggestion-clear:hover {
    color: #666;
    background-color: #f0f0f0;
}

/* 登录需要的链接样式 */
.login-required-link {
    position: relative;
    color: #2196f3;
    text-decoration: none;
    cursor: pointer;
    padding-left: 20px;
    padding-right: 0;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.login-required-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14' fill='none' stroke='%232196f3' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
}

.login-required-link:hover {
    color: #1976d2;
}

.login-required-link:hover::after {
    opacity: 1;
}


/* 文章底部资源搜索结果样式 */
.cloud-search-resource-results {
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    position: relative;
    transition: all 0.3s ease;
}

.cloud-search-resource-results:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* 资源头部区域 */
.cloud-search-resource-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 10px;
}

.cloud-search-resource-results h4 {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    text-shadow: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 资源标题图标样式 */
.resource-title-icon {
    flex-shrink: 0;
    color: #3498db;
    vertical-align: middle;
    margin-top: -1px;
    display: inline-block;
}

/* 按钮容器 */
.cloud-search-buttons-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* 补充资源按钮样式 */
.cloud-search-supplement-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.2);
    position: relative;
    overflow: hidden;
}

.cloud-search-supplement-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;
}

.cloud-search-supplement-btn:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.cloud-search-supplement-btn:hover:before {
    left: 100%;
}

.cloud-search-supplement-btn svg {
    flex-shrink: 0;
}

/* 刷新按钮样式 */
.cloud-search-refresh-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.2);
    position: relative;
    overflow: hidden;
}

.cloud-search-refresh-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;
}

.cloud-search-refresh-btn:hover:not(.disabled) {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.3);
}

.cloud-search-refresh-btn:hover:not(.disabled):before {
    left: 100%;
}

.cloud-search-refresh-btn.disabled {
    background: #bdbdbd;
    cursor: not-allowed;
    box-shadow: 0 1px 3px rgba(189, 189, 189, 0.3);
    opacity: 0.8;
    transform: none;
}

.cloud-search-refresh-btn.loading {
    background: #1976d2;
    cursor: not-allowed;
}

.cloud-search-refresh-btn svg {
    flex-shrink: 0;
}

/* 刷新按钮加载动画 */
.cloud-search-refresh-btn .spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 刷新消息提示 */
.cloud-search-refresh-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    animation: slideInDown 0.3s ease;
}

.cloud-search-refresh-message.success {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

.cloud-search-refresh-message.error {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    color: #d32f2f;
}

.cloud-search-refresh-message .message-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloud-search-refresh-message .message-text {
    flex: 1;
    font-weight: 500;
}

.cloud-search-refresh-message .message-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cloud-search-refresh-message .message-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
}

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

/* 懒加载占位符 */
.cloud-search-lazy-placeholder {
    margin: 15px 0;
}

.lazy-load-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
    margin: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.lazy-load-trigger:hover {
    background-color: #e9ecef;
    border-color: #2196f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

.lazy-load-icon {
    margin-bottom: 12px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.lazy-load-trigger:hover .lazy-load-icon {
    color: #2196f3;
}

.lazy-load-text {
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

.lazy-load-hint {
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
}

/* 异步加载占位符 */
.cloud-search-loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin: 15px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e3e3e3;
    border-top: 3px solid #2196f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.loading-error {
    color: #d32f2f;
    font-size: 14px;
    text-align: center;
    padding: 20px;
    background-color: #ffebee;
    border-radius: 4px;
    border: 1px solid #ffcdd2;
}

.loading-success {
    color: #2e7d32;
    font-size: 14px;
    text-align: center;
    padding: 20px;
    background-color: #e8f5e9;
    border-radius: 4px;
    border: 1px solid #c8e6c9;
    animation: fadeIn 0.3s ease;
}

.cloud-search-resource-results .cloud-search-keyword {
    font-size: 12px;
    color: #777;
    margin-bottom: 10px;
    font-style: italic;
}

/* 折叠面板容器 */
.cloud-search-accordion {
    border-radius: 3px;
    overflow: hidden;
}

/* 面板样式 */
.cloud-search-panel {
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    overflow: hidden;
}

.cloud-search-panel:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

/* 面板头部 */
.cloud-search-panel-header {
    position: relative;
}

/* 面板按钮 */
.cloud-search-panel-button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    text-align: left;
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 0;
}

.cloud-search-panel-button:hover {
    background-color: #e8f4f8;
}

.cloud-search-panel-button.expanded {
    background-color: #e3f2fd;
    border-bottom: 1px solid #e0e0e0;
}

/* 计数标签 */
.cloud-search-panel-count {
    opacity: 0.7;
    font-weight: normal;
}

/* 展开/折叠箭头图标 */
.cloud-search-panel-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    transition: transform 0.3s ease;
}

.cloud-search-panel-icon:before,
.cloud-search-panel-icon:after {
    content: "";
    position: absolute;
    background-color: #666;
    transition: transform 0.3s ease;
}

.cloud-search-panel-icon:before {
    width: 10px;
    height: 2px;
    top: 4px;
    left: 0;
}

.cloud-search-panel-icon:after {
    width: 2px;
    height: 10px;
    top: 0;
    left: 4px;
}

.cloud-search-panel-button.expanded .cloud-search-panel-icon:after {
    transform: rotate(90deg);
    opacity: 0;
}

/* 折叠面板内容 */
.cloud-search-panel-collapse {
    display: none;
}

.cloud-search-panel-collapse.show {
    display: block;
}

.cloud-search-panel-body {
    padding: 10px 15px;
    background-color: #ffffff;
}

/* 紧凑资源列表 */
.resource-compact-list {
    width: 100%;
}

/* 紧凑资源项 */
.resource-compact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

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

.resource-compact-item:hover {
    background-color: #f8f9fa;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 4px;
}

/* 资源链接 */
.resource-compact-link {
    flex: 1;
    overflow: hidden;
    padding-right: 8px;
}

/* 默认情况下保持单行省略 */
.resource-compact-link a {
    color: #0073aa;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    font-size: 14px;
    line-height: 1.4;
}

.resource-compact-link a:hover {
    color: #00a0d2;
    text-decoration: underline;
}

/* 确保资源链接中的锁图标正确显示 */
.resource-compact-link .resource-link-password-required {
    display: inline-block;
    white-space: nowrap;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 右侧信息区 */
.resource-compact-info {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 6px;
}

/* 提取码样式 */
.resource-compact-pwd {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.resource-compact-pwd:before {
    content: "\f112";
    font-family: dashicons;
    display: inline-block;
    margin-right: 4px;
    font-size: 12px;
    color: #6c757d;
}

.resource-compact-pwd:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.resource-compact-pwd.copied {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.resource-compact-pwd.copied:before {
    content: "\f147";
    color: #0c5460;
}

/* 来源标签 */
.resource-compact-source {
    color: #6c757d;
    font-size: 10px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.resource-compact-source:before {
    content: "\f318";
    font-family: dashicons;
    display: inline-block;
    margin-right: 3px;
    font-size: 11px;
    color: #6c757d;
}

.resource-compact-source:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

/* 中等屏幕响应式调整 */
@media (max-width: 768px) and (min-width: 577px) {
    .cloud-search-resource-results {
        padding: 13px;
        border-radius: 7px;
    }
    
    .cloud-search-resource-header {
        gap: 9px;
        padding: 8px;
    }
    
    .cloud-search-resource-header h4 {
        font-size: 15px;
    }
    
    .cloud-search-buttons-container {
        gap: 7px;
    }
    
    .cloud-search-supplement-btn {
        font-size: 12px;
        padding: 5px 9px;
    }
    
    .cloud-search-refresh-btn {
        font-size: 12px;
        padding: 5px 9px;
    }
    
    .cloud-search-panel-button {
        padding: 9px 12px;
        font-size: 13px;
    }
    
    .resource-compact-item {
        padding: 7px 8px;
    }
    
    .resource-compact-link a {
        font-size: 13px;
    }
}

/* 响应式调整 - 移动端优化 */
@media (max-width: 576px) {
    /* 整体资源区域优化 */
    .cloud-search-resource-results {
        padding: 12px;
        font-size: 13px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }
    
    .cloud-search-resource-results:hover {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-1px);
    }
    
    .cloud-search-resource-results h3 {
        font-size: 15px;
        margin: 0;
        font-weight: 600;
        color: #2c3e50;
    }
    
    .cloud-search-keyword {
        font-size: 11px;
        margin-bottom: 8px;
        color: #666;
        font-style: italic;
    }
    
    /* 移动设备上头部区域优化 - 水平对齐 */
    .cloud-search-resource-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding-bottom: 8px;
        margin-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
        flex-wrap: wrap;
    }
    
    .cloud-search-resource-header h4 {
        flex: 1;
        margin: 0;
        font-size: 14px;
        line-height: 1.2;
        text-align: left;
        min-width: 0;
    }
    
    /* 移动设备上按钮容器优化 - 水平对齐 */
    .cloud-search-buttons-container {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    
    /* 移动设备上补充资源按钮优化 */
    .cloud-search-supplement-btn {
        font-size: 11px;
        padding: 4px 8px;
        gap: 3px;
        border-radius: 4px;
        font-weight: 500;
        box-shadow: 0 1px 3px rgba(40, 167, 69, 0.2);
        transition: all 0.3s ease;
    }
    
    .cloud-search-supplement-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
    }
    
    .cloud-search-supplement-btn svg {
        width: 12px;
        height: 12px;
    }
    
    /* 移动设备上刷新按钮优化 */
    .cloud-search-refresh-btn {
        font-size: 11px;
        padding: 4px 8px;
        gap: 3px;
        border-radius: 4px;
        font-weight: 500;
        box-shadow: 0 1px 3px rgba(33, 150, 243, 0.2);
        transition: all 0.3s ease;
    }
    
    .cloud-search-refresh-btn:hover:not(.disabled) {
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
    }
    
    .cloud-search-refresh-btn svg {
        width: 12px;
        height: 12px;
    }
    
    /* 折叠面板优化 */
    .cloud-search-panel {
        margin-bottom: 6px;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    }
    
    .cloud-search-panel:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transform: translateY(-1px);
    }
    
    .cloud-search-panel-button {
        padding: 8px 12px;
        font-size: 13px;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .cloud-search-panel-button:hover {
        background-color: #e8f4f8;
    }
    
    .cloud-search-panel-body {
        padding: 8px 12px;
        background-color: #ffffff;
    }
    
    /* 资源项目优化 - 手机端单行布局 */
    .resource-compact-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        gap: 8px;
        transition: all 0.2s ease;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .resource-compact-item:last-child {
        border-bottom: none;
    }
    
    .resource-compact-item:hover {
        background-color: #f8f9fa;
        padding-left: 6px;
        padding-right: 6px;
        margin-left: -6px;
        margin-right: -6px;
        border-radius: 4px;
    }
    
    .resource-compact-link {
        flex: 1;
        margin-bottom: 0;
        overflow: hidden;
        padding-right: 6px;
    }
    
    .resource-compact-link a {
        font-size: 13px;
        line-height: 1.3;
        font-weight: 500;
        color: #2980b9;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .resource-compact-link a:hover {
        color: #1abc9c;
    }
    
    .resource-compact-info {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        gap: 4px;
    }
    
    .resource-compact-pwd {
        font-size: 10px;
        padding: 1px 4px;
        border-radius: 3px;
        font-weight: 500;
        background-color: #f8f9fa;
        border: 1px solid #e9ecef;
        color: #495057;
        white-space: nowrap;
    }
    
    .resource-compact-pwd:before {
        margin-right: 2px;
        font-size: 9px;
    }
    
    .resource-compact-pwd:hover {
        background-color: #e9ecef;
        border-color: #adb5bd;
    }
    
    /* 手机端隐藏资源来源 */
    .resource-compact-source {
        display: none;
    }
    
    /* 消息提示在移动设备上的调整 */
    .cloud-search-refresh-message {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    /* 加载占位符在移动设备上的调整 */
    .cloud-search-loading-placeholder {
        padding: 15px 8px;
    }
    
    .loading-spinner {
        width: 24px;
        height: 24px;
        margin-bottom: 8px;
    }
    
    .loading-text {
        font-size: 11px;
    }
    
    /* 懒加载在移动设备上的调整 */
    .lazy-load-trigger {
        padding: 15px 8px;
    }
    
    .lazy-load-text {
        font-size: 13px;
    }
    
    .lazy-load-hint {
        font-size: 11px;
    }
    
    /* 卡密提示区域紧凑化 */
    .cloud-search-password-notice {
        margin-top: 8px;
        padding: 8px;
        gap: 6px;
    }
    
    .cloud-search-password-notice-content h4 {
        font-size: 13px;
        margin-bottom: 4px;
    }
    
    .cloud-search-password-notice-content p {
        font-size: 11px;
        margin-bottom: 6px;
    }
}

/* 卡密验证对话框样式 */
.cloud-search-password-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.cloud-search-password-dialog-content {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 480px;
    overflow: hidden;
    animation: dialogFadeIn 0.3s ease;
}

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

.cloud-search-password-dialog-header {
    background-color: #f7f7f7;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eaeaea;
}

.cloud-search-password-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.cloud-search-password-dialog-close {
    background: transparent;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    line-height: 0;
}

.cloud-search-password-dialog-close:hover {
    color: #e53935;
}

.cloud-search-password-dialog-body {
    padding: 20px;
}

.cloud-search-password-resource-info {
    margin-bottom: 15px;
    padding: 12px 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    border-left: 3px solid #2196f3;
}

.cloud-search-password-input-group {
    display: flex;
    margin-bottom: 15px;
    gap: 10px;
}

.cloud-search-password-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.cloud-search-password-input:focus {
    border-color: #2196f3;
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.25);
}

.cloud-search-password-submit {
    padding: 10px 20px;
    background-color: #2196f3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.cloud-search-password-submit:hover {
    background-color: #1976d2;
}

.cloud-search-password-submit:disabled {
    background-color: #bdbdbd;
    cursor: not-allowed;
}

.cloud-search-password-result {
    min-height: 24px;
    margin-bottom: 15px;
}

.cloud-search-password-result .error {
    color: #e53935;
    padding: 8px 12px;
    background-color: #ffebee;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.cloud-search-password-result .success {
    color: #2e7d32;
    padding: 8px 12px;
    background-color: #e8f5e9;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.cloud-search-password-result .loading {
    color: #555;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.cloud-search-password-tips {
    background-color: #f9f9f9;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 13px;
    color: #757575;
    margin-top: 10px;
}

.cloud-search-password-tips p {
    margin: 0 0 8px 0;
    font-weight: 500;
}

.cloud-search-password-tips ul {
    margin: 0;
    padding-left: 20px;
}

.cloud-search-password-tips li {
    margin-bottom: 5px;
}

.cloud-search-password-tips li:last-child {
    margin-bottom: 0;
}

/* 需要卡密验证的资源链接样式 */
.resource-link-password-required {
    position: relative;
    color: #2196f3;
    text-decoration: none;
    cursor: pointer;
    padding-left: 20px;
    padding-right: 0;
    display: inline-block;
}

.resource-link-password-required::after {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14' fill='none' stroke='%232196f3' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
}

.resource-link-password-required:hover {
    color: #1976d2;
}

.resource-link-password-required:hover::after {
    opacity: 1;
}

/* 卡密提示区域样式 */
.cloud-search-password-notice {
    margin-top: 20px;
    padding: 15px;
    background-color: #e8f5e9;
    border-radius: 8px;
    border: 1px solid #c8e6c9;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cloud-search-password-notice-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background-color: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 8px;
}

.cloud-search-password-notice-content {
    flex: 1;
}

.cloud-search-password-notice-content h4 {
    margin: 0 0 8px 0;
    color: #2e7d32;
    font-size: 16px;
}

.cloud-search-password-notice-content p {
    margin: 0 0 12px 0;
    color: #424242;
    font-size: 14px;
    line-height: 1.5;
}

.cloud-search-password-page-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: #4caf50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.cloud-search-password-page-link:hover {
    background-color: #388e3c;
    color: white;
    text-decoration: none;
}

/* 卡密验证提示对话框 */
.cloud-search-password-prompt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    animation: fadeIn 0.2s ease;
}

.cloud-search-password-prompt-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.2s ease;
}

.cloud-search-password-prompt-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

.cloud-search-password-prompt-close:hover {
    color: #333;
}

.cloud-search-password-prompt h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
    font-weight: 500;
}

.cloud-search-password-prompt p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

.cloud-search-password-prompt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.cloud-search-password-prompt-cancel {
    padding: 8px 15px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: background-color 0.2s;
}

.cloud-search-password-prompt-cancel:hover {
    background-color: #e0e0e0;
}

/* 登录提示对话框 - 与卡密弹窗样式保持一致 */
.cloud-search-login-prompt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    animation: fadeIn 0.2s ease;
}

.cloud-search-login-prompt-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.2s ease;
}

.cloud-search-login-prompt-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

.cloud-search-login-prompt-close:hover {
    color: #333;
}

.cloud-search-login-prompt h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
    font-weight: 500;
}

.cloud-search-login-prompt p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

.cloud-search-login-prompt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.cloud-search-login-prompt-cancel {
    padding: 8px 15px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: background-color 0.2s;
}

.cloud-search-login-prompt-cancel:hover {
    background-color: #e0e0e0;
}

.cloud-search-login-prompt-login {
    padding: 8px 15px;
    background-color: #2196f3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    display: inline-block;
}

.cloud-search-login-prompt-login:hover {
    background-color: #1976d2;
    color: white;
    text-decoration: none;
}

.cloud-search-password-prompt-verify {
    padding: 8px 15px;
    background-color: #2196f3;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.cloud-search-password-prompt-verify:hover {
    background-color: #1976d2;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 缓存状态提示 */
.cloud-search-cache-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    border: 1px solid #e0e0e0;
}

.cloud-search-cache-notice.expired {
    background-color: #fff3e0;
    border-color: #ffb74d;
    color: #e65100;
}

.cloud-search-cache-notice .cache-notice-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cloud-search-cache-notice.expired .cache-notice-icon svg {
    color: #ff9800;
}

.cloud-search-cache-notice span {
    flex: 1;
}

/* 评论区高亮效果 */
.cloud-search-highlight-comments {
    position: relative;
    animation: highlightPulse 2s ease;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* 补充资源弹窗样式 */
.cloud-search-supplement-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    animation: fadeIn 0.3s ease;
}

.cloud-search-supplement-dialog-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: scaleIn 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.cloud-search-supplement-dialog-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
    background: none;
    border: none;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloud-search-supplement-dialog-close:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
}

.cloud-search-supplement-dialog-header {
    text-align: center;
    margin-bottom: 20px;
}

.cloud-search-supplement-dialog-header h3 {
    margin: 0;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.cloud-search-supplement-dialog-body {
    margin-bottom: 25px;
}

.cloud-search-supplement-dialog-body p {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

.cloud-search-supplement-tips {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #28a745;
}

.cloud-search-supplement-tips p {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.cloud-search-supplement-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #666;
}

.cloud-search-supplement-tips li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.cloud-search-supplement-tips li:last-child {
    margin-bottom: 0;
}

.cloud-search-supplement-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.cloud-search-supplement-dialog-cancel {
    padding: 10px 20px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.cloud-search-supplement-dialog-cancel:hover {
    background-color: #e0e0e0;
}

.cloud-search-supplement-dialog-goto {
    padding: 10px 20px;
    background-color: #28a745;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.cloud-search-supplement-dialog-goto:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

/* 移动设备上的弹窗调整 */
@media (max-width: 576px) {
    .cloud-search-supplement-dialog-content {
        padding: 20px;
        margin: 20px;
        max-height: 90vh;
    }
    
    .cloud-search-supplement-dialog-header h3 {
        font-size: 20px;
    }
    
    .cloud-search-supplement-dialog-body p {
        font-size: 15px;
    }
    
    .cloud-search-supplement-tips {
        padding: 12px;
    }
    
    .cloud-search-supplement-tips li {
        font-size: 13px;
    }
    
    .cloud-search-supplement-dialog-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .cloud-search-supplement-dialog-cancel,
    .cloud-search-supplement-dialog-goto {
        width: 100%;
        padding: 12px 20px;
    }
} 