/* ========================================
   PC端样式 (Desktop Styles)
   ======================================== */

/* Projects Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 100px 0 60px;
    margin-top: 80px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
    content: ">";
}

/* Projects Section */
.projects-section {
    padding:  0;
}

/* Advanced Search Form */
.search-form-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    /*margin-bottom: 40px;*/
}

.advanced-search-form {
    width: 100%;
}

.search-row {
    margin-bottom: 25px;
}

.search-row:last-child {
    margin-bottom: 0;
}

/* Radio Buttons Row */
.radio-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.radio-group {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    margin: 0;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #007bff;
    background: #007bff;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.radio-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.search-btn-container {
    margin-left: auto;
}

.search-btn {
    background: var(--main-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.search-btn:hover {
    background: #A0522D;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* Dropdowns Row */
.dropdowns-row {
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.dropdown-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.form-select option {
    padding: 8px;
}

/* Property Cards Grid */
.property-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.property-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-content {
    padding: 20px;
}

.property-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.property-price {
    font-size: 20px;
    font-weight: 700;
    color: #8B0000;
    margin-bottom: 8px;
}

.property-area {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.property-location {
    font-size: 14px;
    line-height: 20px;
    color: #888;
    display: flex;
    gap: 5px;
}
.property-location span{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 40px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.property-location i {
    color: #8B0000;
    font-size: 12px;
    padding-top: 4px;
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 123, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-actions {
    display: flex;
    gap: 15px;
    flex-direction: column;
    align-items: center;
}

.project-actions .btn {
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
}

.project-actions .btn-primary {
    background: white;
    color: #007bff;
    border: 2px solid white;
}

.project-actions .btn-primary:hover {
    background: transparent;
    color: white;
}

.project-actions .btn-outline-primary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.project-actions .btn-outline-primary:hover {
    background: white;
    color: #007bff;
}

/* Projects Grid */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
}

.project-item {
    transition: all 0.3s ease;
}

.project-item.hidden {
    display: none;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Project Image */
.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Project Content */
.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.project-location {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.project-location i {
    color: #007bff;
    margin-right: 5px;
}

.project-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 15px;
}

/* Project Features */
.project-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature {
    background: #f8f9fa;
    color: #495057;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}


/* ========================================
   手机端样式 (Mobile Styles)
   ======================================== */

/* 平板端样式 (Tablet - max-width: 992px) */
@media (max-width: 992px) {
    .property-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 手机端样式 (Mobile - max-width: 768px) */
@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 40px;
        margin-top: 60px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .search-form-container {
        padding: 20px;
    }
    
    .radio-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 0;
    }
    
    .radio-group {
        gap: 20px;
    }
    
    .search-btn-container {
        margin-left: 0;
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .dropdown-group {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .projects-section {
        padding: 20px 0;
    }
    
    .project-actions {
        flex-direction: row;
        gap: 10px;
    }
    
    .project-actions .btn {
        min-width: 100px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* 小屏手机端样式 (Small Mobile - max-width: 576px) */
@media (max-width: 576px) {
    .property-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 0;
    }
    
    .radio-group {
        flex-direction: row;
        gap: 15px;
        align-items: flex-start;
    }
    
    .project-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
}