/* 搜索页面特定样式 */

/* 页面标题样式 */
.page-header {
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 搜索区域样式 */
.search-section {
    padding: 3rem 0;
    background-color: white;
}

.search-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 1rem;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 搜索结果区域样式 */
.results-section {
    padding: 3rem 0;
    background-color: #f9f9f9;
    min-height: 400px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h2 {
    font-size: 2rem;
    color: #333;
}

.results-count {
    background-color: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* 搜索结果卡片样式 */
.result-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.result-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #007bff 0%, #28a745 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    position: relative;
}

.result-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255,255,255,0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.result-status.upcoming {
    background-color: #e3f2fd;
    color: #1976d2;
}

.result-status.ongoing {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.result-status.past {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.result-status.cancelled {
    background-color: #ffebee;
    color: #c62828;
}

.result-content {
    padding: 1.5rem;
}

.result-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: #333;
    line-height: 1.4;
}

.result-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.result-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.result-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.result-category {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.result-organizer {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* 无结果样式 */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.no-results p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 加载状态样式 */
.loading-results {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    font-size: 1.2rem;
    color: #666;
}

.loading-results::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #007bff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

/* 错误状态样式 */
.error-message {
    background-color: #ffe6e6;
    color: #d63031;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
    border-left: 4px solid #d63031;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
    
    .search-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-meta {
        grid-template-columns: 1fr;
    }
    
    .result-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}
