/* 基础布局 */
.dss-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* 主内容区 */
.dss-main-content {
    min-width: 0;
}

.dss-search-title {
    font-size: 2rem;
    margin: 0 0 2rem;
    color: #1a1a1a;
}

/* 搜索结果项 */
.dss-result-item {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.dss-result-item:hover {
    transform: translateY(-2px);
}

.entry-title {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

.entry-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0 0 1rem;
}

.entry-meta {
    font-size: 0.875rem;
    color: #999;
}

/* 侧边栏 */
.dss-sidebar {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.dss-search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dss-search-input {
    padding: 0.75rem;
    border: 2px solid #0073aa;
    border-radius: 4px;
    font-size: 1rem;
}

.dss-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #0073aa;
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.dss-search-submit:hover {
    opacity: 0.9;
}

/* 搜索建议 */
.dss-search-suggestions h3 {
    font-size: 1rem;
    margin: 0 0 1rem;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions-list li {
    margin: 0.5rem 0;
}

.suggestions-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.suggestions-list a:hover {
    color: #0073aa;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .dss-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .dss-sidebar {
        order: -1;
    }
}

/* 加载状态 */
.dss-loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.dss-loading.active {
    display: block;
}

.loader {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 错误提示 */
.dss-alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.dss-alert.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.dss-alert.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}