/* 重置样式防止主题冲突 */
.dsw-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dsw-main {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin: 1rem 0;
}

.dsw-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.dsw-title {
    color: #1a1a1a;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.dsw-desc {
    color: #666;
    font-size: 1.0rem;
}

.dsw-search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.dsw-input {
    width: 100%;
    padding: 12px 110px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dsw-input:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
    outline: none;
}

.dsw-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: #4F46E5;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dsw-button:hover {
    background: #4338CA;
}

.dsw-results {
    display: none;
    margin-top: 1rem;
}

.dsw-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #eee;
}

.dsw-item-title {
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.dsw-link {
    display: inline-block;
    color: #4F46E5;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(79, 70, 229, 0.1);
    transition: all 0.2s ease;
}

.dsw-link:hover {
    background: rgba(79, 70, 229, 0.15);
}

.dsw-time {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.dsw-loading {
    display: none;
    text-align: center;
    padding: 1rem;
}

.dsw-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4F46E5;
    border-radius: 50%;
    animation: dsw-spin 0.8s linear infinite;
}

.dsw-error {
    display: none;
    background: #fee2e2;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.footer {
    margin-top: 2rem;
    padding: 20px;
    text-align: center;
    color: #666;
    border-top: 1px solid #eee;
    font-family: system-ui, -apple-system, sans-serif;
}

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

@media (max-width: 480px) {
    .dsw-main {
        padding: 1rem;
    }
    .dsw-input {
        padding-right: 90px;
    }
    .dsw-button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}