/**
 * 前台样式 - 现代化搜索界面
 */

/* CSS变量定义 */
:root {
    --cs-primary: #3b82f6;
    --cs-primary-hover: #2563eb;
    --cs-primary-light: #eff6ff;
    --cs-secondary: #64748b;
    --cs-success: #10b981;
    --cs-warning: #f59e0b;
    --cs-danger: #ef4444;
    --cs-bg: #ffffff;
    --cs-bg-secondary: #f8fafc;
    --cs-bg-tertiary: #f1f5f9;
    --cs-border: #e2e8f0;
    --cs-border-hover: #cbd5e1;
    --cs-text: #1e293b;
    --cs-text-secondary: #64748b;
    --cs-text-muted: #94a3b8;
    --cs-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --cs-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --cs-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --cs-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --cs-radius-sm: 6px;
    --cs-radius: 12px;
    --cs-radius-lg: 16px;
    --cs-radius-full: 9999px;
    --cs-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 搜索容器 */
.cloud-search-container {
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 登录提示 */
.cloud-search-login-required {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--cs-primary-light);
    border-left: 3px solid var(--cs-primary);
    border-radius: var(--cs-radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cloud-search-login-message {
    color: var(--cs-text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.cloud-search-login-button {
    background: var(--cs-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--cs-radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--cs-transition);
}

.cloud-search-login-button:hover {
    background: var(--cs-primary-hover);
    color: #fff;
    text-decoration: none;
}

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

.cloud-search-input-wrapper {
    display: flex;
    max-width: 100%;
    align-items: center;
    border-radius: var(--cs-radius);
    overflow: hidden;
    background: var(--cs-bg);
    border: 1px solid var(--cs-border);
    transition: var(--cs-transition);
}

.cloud-search-input-wrapper:focus-within {
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* API选择下拉框 */
.cloud-search-api-select {
    padding: 14px 16px;
    border: none;
    border-right: 1px solid var(--cs-border);
    background-color: var(--cs-bg-secondary);
    font-size: 14px;
    font-weight: 500;
    color: var(--cs-text);
    min-width: 110px;
    height: 100%;
    outline: none;
    cursor: pointer;
    transition: var(--cs-transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.cloud-search-api-select:hover {
    background-color: var(--cs-bg-tertiary);
}

.cloud-search-api-select:focus {
    background-color: var(--cs-primary-light);
}

.cloud-search-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 0;
    font-size: 16px;
    min-width: 0;
    outline: none;
    background: transparent;
    color: var(--cs-text);
    font-weight: 400;
}

.cloud-search-input::placeholder {
    color: var(--cs-text-muted);
}

.cloud-search-button {
    padding: 14px 24px;
    background: var(--cs-primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: var(--cs-transition);
    white-space: nowrap;
}

.cloud-search-button:hover {
    background: var(--cs-primary-hover);
}

.cloud-search-button:active {
    background: #1d4ed8;
}

.cloud-search-button:disabled {
    background: var(--cs-text-muted);
    cursor: not-allowed;
    transform: none;
}

.cloud-search-button:disabled::before {
    display: none;
}

/* 取消搜索按钮 */
.cloud-search-cancel-button {
    padding: 10px 20px;
    background: var(--cs-danger);
    color: white;
    border: none;
    border-radius: var(--cs-radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-left: 12px;
    transition: var(--cs-transition);
    white-space: nowrap;
}

.cloud-search-cancel-button:hover {
    background: #dc2626;
}

/* 加载状态 */
.cloud-search-loading {
    padding: 24px;
    background: var(--cs-bg-secondary);
    border-radius: var(--cs-radius);
    margin: 16px 0;
    border: 1px solid var(--cs-border);
}

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

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

.cloud-search-loading .spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--cs-primary-light);
    border-radius: 50%;
    border-top-color: var(--cs-primary);
    animation: spin 0.8s ease-in-out infinite;
}

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

.cloud-search-status-text {
    font-size: 15px;
    color: var(--cs-text);
    font-weight: 600;
    transition: var(--cs-transition);
}

/* 进度条 */
.cloud-search-progress-bar {
    width: 100%;
    max-width: 320px;
    height: 10px;
    background-color: var(--cs-bg);
    border-radius: var(--cs-radius-full);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.cloud-search-progress-fill {
    height: 100%;
    background: var(--cs-primary);
    border-radius: var(--cs-radius-full);
    width: 0%;
    transition: width 0.3s ease;
}

/* 进度百分比 */
.cloud-search-progress-percentage {
    font-size: 14px;
    color: var(--cs-primary);
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    background: var(--cs-primary-light);
    padding: 4px 12px;
    border-radius: var(--cs-radius-full);
}

/* 结果容器 */
.cloud-search-results-wrapper {
    margin-top: 20px;
    border-radius: var(--cs-radius);
    background: var(--cs-bg);
    padding: 20px;
    border: 1px solid var(--cs-border);
}

/* 结果标题区 */
.cloud-search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--cs-bg-tertiary);
}

.cloud-search-results-header h3 {
    font-size: 20px;
    margin: 0;
    color: var(--cs-text);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cloud-search-results-header h3::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 18px;
    background: var(--cs-primary);
    border-radius: 2px;
}

.cloud-search-results-count {
    background: var(--cs-primary-light);
    padding: 4px 12px;
    border-radius: var(--cs-radius-sm);
    font-size: 13px;
    color: var(--cs-primary);
    font-weight: 500;
}

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

/* 单个卡片样式 */
.cloud-search-result-item {
    background: var(--cs-bg);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-sm);
    padding: 16px;
    transition: var(--cs-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cloud-search-result-item:hover {
    border-color: var(--cs-primary);
    box-shadow: var(--cs-shadow);
}

/* 可点击卡片样式 */
.cloud-search-result-item.clickable {
    cursor: pointer;
}

.cloud-search-result-item.clickable:hover {
    transform: translateY(-2px);
    box-shadow: var(--cs-shadow-lg);
}

.cloud-search-result-item.clickable:active {
    transform: translateY(0);
    box-shadow: var(--cs-shadow);
}

/* 卡片顶部信息栏 */
.cloud-search-result-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cs-bg-tertiary);
}

/* API来源标签 */
.cloud-search-result-api {
    font-size: 11px;
    color: var(--cs-text-secondary);
    background: var(--cs-bg-tertiary);
    padding: 4px 10px;
    border-radius: var(--cs-radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* 网盘类型标签 */
.cloud-search-disk-type {
    padding: 3px 8px;
    border-radius: var(--cs-radius-sm);
    font-size: 10px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}

.cloud-search-disk-type.baidu {
    background: #3b82f6;
}

.cloud-search-disk-type.quark {
    background: #22c55e;
}

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

.cloud-search-disk-type.lanzou {
    background: #60a5fa;
}

.cloud-search-disk-type.onedrive {
    background: #0ea5e9;
}

.cloud-search-disk-type.weiyun {
    background: #38bdf8;
}

.cloud-search-disk-type.xunlei {
    background: #06b6d4;
}

.cloud-search-disk-type.tianyi {
    background: #f43f5e;
}

.cloud-search-disk-type.pan115 {
    background: #14b8a6;
}

.cloud-search-disk-type.ctfile {
    background: #fb923c;
}

.cloud-search-disk-type.uc {
    background: #fbbf24;
}

.cloud-search-disk-type.caiyun {
    background: #10b981;
}

.cloud-search-disk-type.pan123 {
    background: #8b5cf6;
}

.cloud-search-disk-type.pikpak {
    background: #06b6d4;
}

.cloud-search-disk-type.magnet {
    background: #93c5fd;
}

/* 标题样式 */
.cloud-search-result-title {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--cs-text);
    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: var(--cs-transition);
}

.cloud-search-result-title a:hover {
    color: var(--cs-primary);
}

/* 确保资源标题中的锁图标正确显示 */
.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: var(--cs-text-secondary);
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    flex-grow: 1;
}


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

.cloud-search-result-pwd .pwd-text {
    background: var(--cs-bg-secondary);
    border: 1px solid var(--cs-border);
    padding: 3px 8px;
    border-radius: var(--cs-radius-sm);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--cs-transition);
    display: inline-flex;
    align-items: center;
    color: var(--cs-text-secondary);
    font-family: monospace;
    gap: 4px;
}

.cloud-search-result-pwd .pwd-text:hover {
    background: var(--cs-primary-light);
    border-color: var(--cs-primary);
    color: var(--cs-primary);
}

.cloud-search-result-pwd .pwd-text.copied {
    background: #dcfce7;
    border-color: var(--cs-success);
    color: var(--cs-success);
}

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

/* 筛选器样式 */
.cloud-search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--cs-bg-secondary);
    border-radius: var(--cs-radius-sm);
    border: 1px solid var(--cs-border);
    align-items: center;
}

.cloud-search-filter-label {
    font-size: 14px;
    font-weight: 600;
    margin-right: 8px;
    color: var(--cs-text);
}

.cloud-search-filter-btn {
    background-color: var(--cs-bg);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-sm);
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--cs-transition);
    color: var(--cs-text-secondary);
}

.cloud-search-filter-btn:hover {
    border-color: var(--cs-primary);
    color: var(--cs-primary);
}

.cloud-search-filter-btn.active {
    background: var(--cs-primary);
    color: #fff;
    border-color: var(--cs-primary);
}

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

.cloud-search-pagination button {
    padding: 8px 20px;
    background: var(--cs-primary);
    color: white;
    border: none;
    border-radius: var(--cs-radius-sm);
    cursor: pointer;
    transition: var(--cs-transition);
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
}

.cloud-search-pagination button:hover:not(:disabled) {
    background: var(--cs-primary-hover);
}

.cloud-search-pagination button:disabled {
    background: var(--cs-bg-tertiary);
    color: var(--cs-text-muted);
    cursor: not-allowed;
}

.cloud-search-pagination-info {
    font-size: 14px;
    color: var(--cs-text-secondary);
    padding: 6px 12px;
}

/* 无结果和错误消息 */
.cloud-search-no-results,
.cloud-search-error {
    padding: 32px 24px;
    background: var(--cs-bg-secondary);
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-sm);
    text-align: center;
    margin-top: 20px;
    color: var(--cs-text-secondary);
}

.cloud-search-no-results p,
.cloud-search-error p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.cloud-search-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: var(--cs-danger);
}

/* 搜索建议区域 */
.cloud-search-suggestions {
    margin-top: 12px;
    margin-bottom: 12px;
    background: var(--cs-bg);
    border-radius: var(--cs-radius-sm);
    padding: 12px 16px;
    border: 1px solid var(--cs-border);
}

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

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

.cloud-search-suggestion-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--cs-text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

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

.cloud-search-suggestion-title i {
    margin-right: 6px;
    font-size: 14px;
    color: var(--cs-text-muted);
}

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

.cloud-search-suggestion-tag {
    background: var(--cs-bg-secondary);
    border-radius: var(--cs-radius-sm);
    padding: 6px 14px;
    font-size: 14px;
    color: var(--cs-text-secondary);
    cursor: pointer;
    transition: var(--cs-transition);
}

.cloud-search-suggestion-tag:hover {
    background: var(--cs-bg-tertiary);
    color: var(--cs-text);
}

.cloud-search-suggestion-tag.hot {
    background: #fff7ed;
    color: #ea580c;
}

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

.cloud-search-suggestion-tag.new {
    background: var(--cs-primary-light);
    color: var(--cs-primary);
}

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

.cloud-search-tag-time {
    font-size: 11px;
    color: var(--cs-text-muted);
    margin-left: 6px;
}

.cloud-search-suggestion-tag.history {
    background: #ecfdf5;
    color: #059669;
}

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

.cloud-search-suggestion-clear {
    font-size: 12px;
    color: var(--cs-text-muted);
    cursor: pointer;
    margin-left: auto;
    padding: 2px 8px;
    border-radius: var(--cs-radius-sm);
    transition: var(--cs-transition);
}

.cloud-search-suggestion-clear:hover {
    color: var(--cs-danger);
    background: #fef2f2;
}

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

.login-required-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='%233b82f6' 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: var(--cs-primary-hover);
}

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


/* 文章底部资源搜索结果样式 */
.cloud-search-resource-results {
    padding: 16px !important;
    margin: 20px 0 !important;
    background: var(--cs-bg) !important;
    border-radius: var(--cs-radius-sm) !important;
    border: 1px solid var(--cs-border) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    position: relative !important;
}

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

.cloud-search-resource-results h4 {
    margin: 0 !important;
    font-size: 16px !important;
    color: var(--cs-text) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

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

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

/* 补充资源按钮样式 */
.cloud-search-supplement-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--cs-success);
    color: white;
    border: none;
    border-radius: var(--cs-radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

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

/* 刷新按钮样式 */
.cloud-search-refresh-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--cs-primary);
    color: white;
    border: none;
    border-radius: var(--cs-radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.cloud-search-refresh-btn.disabled {
    background: var(--cs-bg-tertiary);
    color: var(--cs-text-muted);
    cursor: not-allowed;
}

.cloud-search-refresh-btn.loading {
    cursor: not-allowed;
    opacity: 0.8;
}

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

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

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

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

.cloud-search-loading-placeholder .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 !important;
    color: #777 !important;
    margin-bottom: 10px !important;
    font-style: italic !important;
}

/* 空结果提示样式 - 桌面端 */
.cloud-search-no-results-notice {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    background: linear-gradient(135deg, var(--cs-bg-secondary) 0%, var(--cs-bg-tertiary) 100%);
    border-radius: var(--cs-radius);
    margin: 20px 0;
    gap: 12px;
    border: 1px solid var(--cs-border);
}

.no-results-icon {
    color: var(--cs-text-muted);
    opacity: 0.7;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    line-height: 1;
}

.no-results-icon svg {
    display: block;
}

.no-results-text p {
    font-size: 15px;
    color: var(--cs-text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* 折叠面板容器 */
.cloud-search-accordion {
    border-radius: var(--cs-radius);
    overflow: hidden;
}

/* 面板样式 */
.cloud-search-panel {
    margin-bottom: 8px;
    border: 1px solid var(--cs-border);
    border-radius: var(--cs-radius-sm);
    background-color: var(--cs-bg);
    overflow: hidden;
}

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

/* 面板按钮 */
.cloud-search-panel-button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: var(--cs-bg);
    color: var(--cs-text);
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    position: relative;
}

.cloud-search-panel-button:hover {
    background: var(--cs-bg-secondary);
}

.cloud-search-panel-button.expanded {
    background: var(--cs-bg-secondary);
    border-bottom: 1px solid var(--cs-border);
}

/* 计数标签 */
.cloud-search-panel-count {
    opacity: 0.7;
    font-weight: 500;
    color: var(--cs-primary);
}

/* 展开/折叠箭头图标 */
.cloud-search-panel-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    transition: var(--cs-transition);
}

.cloud-search-panel-icon:before,
.cloud-search-panel-icon:after {
    content: "";
    position: absolute;
    background-color: var(--cs-primary);
    transition: var(--cs-transition);
    border-radius: 1px;
}

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

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

.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: 16px 18px;
    background-color: var(--cs-bg);
}

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

/* 紧凑资源项 */
.resource-compact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--cs-bg-tertiary);
    transition: var(--cs-transition);
}

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

.resource-compact-item:hover {
    background: var(--cs-bg-secondary);
}

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

/* 默认情况下保持单行省略 */
.resource-compact-link a {
    color: var(--cs-primary);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    display: block;
    font-size: 14px;
    line-height: 1.5;
    transition: var(--cs-transition);
}

.resource-compact-link a:hover {
    color: var(--cs-primary-hover);
}

/* 确保资源链接中的锁图标正确显示 */
.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: linear-gradient(135deg, var(--cs-bg-secondary) 0%, var(--cs-bg-tertiary) 100%);
    border: 1px solid var(--cs-border);
    color: var(--cs-text-secondary);
    padding: 4px 10px;
    border-radius: var(--cs-radius-sm);
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--cs-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.resource-compact-pwd:before {
    content: "🔑";
    font-size: 10px;
}

.resource-compact-pwd:hover {
    background: var(--cs-primary-light);
    border-color: var(--cs-primary);
    color: var(--cs-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.resource-compact-pwd.copied {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: var(--cs-success);
    color: var(--cs-success);
}

.resource-compact-pwd.copied:before {
    content: "✓";
}

/* 来源标签 */
.resource-compact-source {
    color: var(--cs-text-secondary);
    font-size: 10px;
    background: var(--cs-bg-tertiary);
    border: 1px solid var(--cs-border);
    padding: 4px 8px;
    border-radius: var(--cs-radius-full);
    font-weight: 600;
    transition: var(--cs-transition);
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.resource-compact-source:before {
    content: "\f318";
    font-family: dashicons;
    display: inline-block;
    margin-right: 4px;
    font-size: 11px;
    color: var(--cs-text-muted);
}

.resource-compact-source:hover {
    background: var(--cs-primary-light);
    border-color: var(--cs-primary);
    color: var(--cs-primary);
}

/* 卡密验证对话框样式 */
.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);
}

/* ========================================
   响应式样式 - 移动端适配
   ======================================== */

/* 平板设备 (768px以下) */
@media (max-width: 768px) {
    .cloud-search-results {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .cloud-search-suggestion-tag {
        padding: 4px 10px;
        font-size: 13px;
    }
    
    .cloud-search-tag-time {
        font-size: 10px;
    }
    
    .cloud-search-resource-results {
        padding: 13px !important;
        border-radius: 7px !important;
    }
    
    .cloud-search-resource-header {
        gap: 9px !important;
        padding: 8px !important;
    }
    
    .cloud-search-resource-header h4 {
        font-size: 15px !important;
    }
    
    .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;
    }
}

/* 手机设备 (576px以下) */
@media (max-width: 576px) {
    /* 搜索表单 */
    .cloud-search-form {
        margin-bottom: 12px;
    }
    
    .cloud-search-input-wrapper {
        border-radius: var(--cs-radius-sm);
    }
    
    .cloud-search-api-select {
        padding: 8px 10px;
        padding-right: 26px;
        font-size: 13px;
        min-width: 85px;
    }
    
    .cloud-search-input {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .cloud-search-button {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    /* 搜索建议区域 */
    .cloud-search-suggestions {
        padding: 8px 10px;
        margin-top: 8px;
        margin-bottom: 8px;
    }
    
    .cloud-search-suggestion-section {
        margin-bottom: 8px;
    }
    
    .cloud-search-suggestion-title {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .cloud-search-icon {
        font-size: 12px;
    }
    
    /* 搜索结果容器 */
    .cloud-search-results-wrapper {
        margin-top: 12px;
        padding: 12px;
    }
    
    /* 搜索结果标题区 */
    .cloud-search-results-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .cloud-search-results-header h3 {
        font-size: 16px;
    }
    
    .cloud-search-results-count {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    /* 搜索结果网格 */
    .cloud-search-results {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 12px;
    }
    
    /* 单个卡片样式 - 更紧凑 */
    .cloud-search-result-item {
        padding: 10px;
    }
    
    /* 卡片顶部信息栏 */
    .cloud-search-result-top-bar {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    
    .cloud-search-result-api {
        font-size: 10px;
        padding: 3px 7px;
    }
    
    .cloud-search-disk-type {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    /* 标题样式 */
    .cloud-search-result-title {
        margin-bottom: 6px;
        font-size: 14px;
        -webkit-line-clamp: 2;
    }
    
    /* 描述样式 */
    .cloud-search-result-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    /* 提取码样式 */
    .cloud-search-result-pwd .pwd-text {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* 筛选器 */
    .cloud-search-filters {
        padding: 8px 10px;
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .cloud-search-filter-label {
        font-size: 12px;
    }
    
    .cloud-search-filter-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    /* 分页 */
    .cloud-search-pagination {
        padding: 12px 0 0;
        margin-top: 12px;
        gap: 8px;
    }
    
    .cloud-search-pagination button {
        padding: 6px 14px;
        font-size: 13px;
        min-width: 80px;
    }
    
    .cloud-search-pagination-info {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    /* 资源区域 */
    .cloud-search-resource-results {
        padding: 10px !important;
        margin: 10px 0 !important;
        font-size: 13px !important;
        border-radius: 6px !important;
    }
    
    .cloud-search-resource-results h4 {
        font-size: 14px !important;
        margin: 0 !important;
        font-weight: 600 !important;
    }
    
    /* 头部区域 */
    .cloud-search-resource-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 6px !important;
        padding-bottom: 6px !important;
        margin-bottom: 8px !important;
        border-bottom: 1px solid var(--cs-border) !important;
        flex-wrap: wrap !important;
    }
    
    .cloud-search-resource-header h4 {
        flex: 1 !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
        text-align: left !important;
        min-width: 0 !important;
    }
    
    /* 按钮容器 */
    .cloud-search-buttons-container {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
    }
    
    /* 补充资源按钮 */
    .cloud-search-supplement-btn {
        font-size: 10px;
        padding: 3px 6px;
        gap: 2px;
    }
    
    .cloud-search-supplement-btn svg {
        width: 11px;
        height: 11px;
    }
    
    /* 刷新按钮 */
    .cloud-search-refresh-btn {
        font-size: 10px;
        padding: 3px 6px;
        gap: 2px;
    }
    
    .cloud-search-refresh-btn svg {
        width: 11px;
        height: 11px;
    }
    
    /* 折叠面板 */
    .cloud-search-panel {
        margin-bottom: 5px;
    }
    
    .cloud-search-panel-button {
        padding: 7px 10px;
        font-size: 12px;
    }
    
    .cloud-search-panel-body {
        padding: 6px 10px;
    }
    
    /* 资源项目 - 更紧凑 */
    .resource-compact-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
        gap: 6px;
        border-bottom: 1px solid var(--cs-bg-tertiary);
    }
    
    .resource-compact-item:last-child {
        border-bottom: none;
    }
    
    .resource-compact-link {
        flex: 1;
        margin-bottom: 0;
        overflow: hidden;
        padding-right: 5px;
    }
    
    .resource-compact-link a {
        font-size: 12px;
        line-height: 1.3;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .resource-compact-info {
        display: flex;
        align-items: center;
        flex-shrink: 0;
        gap: 3px;
    }
    
    .resource-compact-pwd {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .resource-compact-pwd:before {
        font-size: 8px;
    }
    
    /* 隐藏资源来源 */
    .resource-compact-source {
        display: none;
    }
    
    /* 消息提示 */
    .cloud-search-refresh-message {
        font-size: 11px;
        padding: 5px 7px;
        gap: 8px;
    }
    
    /* 加载占位符 */
    .cloud-search-loading-placeholder {
        padding: 12px 8px;
    }
    
    .cloud-search-loading-placeholder .loading-spinner {
        width: 22px;
        height: 22px;
        margin-bottom: 6px;
    }
    
    .cloud-search-loading-placeholder .loading-text {
        font-size: 11px;
    }
    
    /* 无结果提示 */
    .cloud-search-no-results-notice {
        padding: 24px 16px;
        gap: 8px;
    }
    
    .no-results-text p {
        font-size: 13px;
    }
    
    /* 卡密提示 */
    .cloud-search-password-notice {
        margin-top: 8px;
        padding: 8px;
        gap: 6px;
    }
    
    .cloud-search-password-notice-content h4 {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .cloud-search-password-notice-content p {
        font-size: 11px;
        margin-bottom: 5px;
    }
    
    /* 补充资源弹窗 */
    .cloud-search-supplement-dialog-content {
        padding: 18px;
        margin: 16px;
        max-height: 90vh;
    }
    
    .cloud-search-supplement-dialog-header h3 {
        font-size: 18px;
    }
    
    .cloud-search-supplement-dialog-body p {
        font-size: 14px;
    }
    
    .cloud-search-supplement-tips {
        padding: 10px;
    }
    
    .cloud-search-supplement-tips li {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .cloud-search-supplement-dialog-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .cloud-search-supplement-dialog-cancel,
    .cloud-search-supplement-dialog-goto {
        width: 100%;
        padding: 10px 18px;
    }
    
    /* 加载状态 */
    .cloud-search-loading {
        padding: 16px;
        margin: 10px 0;
    }
    
    .cloud-search-progress-container {
        gap: 14px;
    }
    
    .cloud-search-status-text {
        font-size: 13px;
    }
    
    .cloud-search-progress-bar {
        max-width: 260px;
        height: 8px;
    }
    
    .cloud-search-progress-percentage {
        font-size: 12px;
        padding: 3px 10px;
    }
}
