* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #fb0808 0%, #fabd07 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.search-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#search-input {
    width: 70%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

#search-input:focus {
    border-color: #207cca;
}

#search-btn {
    padding: 12px 25px;
    background-color: #f98204;
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#search-btn:hover {
    background-color: #ff0202;
}

.properties-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.property-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-info {
    padding: 20px;
}

.property-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1e5799;
}

.property-details {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.property-price {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
}

.countdown-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.status {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}

.status-ongoing {
    background-color: #e8f5e9;
    color: #2e7d32;
    animation: blink 2s infinite;
}

.status-ended {
    background-color: #ffebee;
    color: #c62828;
}

.countdown {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.highlight {
    background-color: #fff9c4;
    padding: 2px 4px;
    border-radius: 3px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
    grid-column: 1 / -1;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
    grid-column: 1 / -1;
}

.error {
    text-align: center;
    padding: 40px;
    color: #c62828;
    font-size: 18px;
    grid-column: 1 / -1;
    background: #ffebee;
    border-radius: 10px;
}

/* 分页样式 */
.pagination-container {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-controls button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-controls button:hover:not(:disabled) {
    background: #f0f0f0;
    border-color: #207cca;
}

.pagination-controls button:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.pagination-controls button.active {
    background: #207cca;
    color: white;
    border-color: #207cca;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    background: #f0f0f0;
    border-color: #207cca;
}

.page-btn.active {
    background: #207cca;
    color: white;
    border-color: #207cca;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-size-selector label {
    font-size: 14px;
    color: #666;
}

.page-size-selector select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

@media (max-width: 768px) {
    .properties-container {
        grid-template-columns: 1fr;
    }
    
    #search-input {
        width: 60%;
    }
    
    .pagination-container {
        padding: 15px;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}