/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: 200px;
}

.search-box {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #007bff;
    border-radius: 25px;
    font-size: 16px;
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #007bff;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.post-button a {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

/* Navigation Styles */
nav {
    background-color: #343a40;
    padding: 0;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #007bff;
}

/* Main Content Styles */
main {
    margin: 20px 0;
}

/* Slideshow, News and Utilities Section */
.slideshow-news-utilities {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.slideshow {
    flex: 4;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    height: 300px;
}

.slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news {
    flex: 4.5;
    background-color: #fff;
    border-radius: 5px;
    padding: 15px;
}

.news h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.news ul {
    list-style: none;
}

.news ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.news ul li:last-child {
    border-bottom: none;
}

.news ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.news ul li a:hover {
    color: #007bff;
}

.utilities {
    flex: 1.5;
    background-color: #fff;
    border-radius: 5px;
    padding: 15px;
}

.utilities h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #28a745;
    padding-bottom: 5px;
}

.utility-item {
    text-align: center;
    margin-bottom: 15px;
}

.utility-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

.utility-item span {
    display: block;
    font-size: 14px;
}

/* House Info Section */
.house-info {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.house-info .tab-header {
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.house-info .tab-header h2 {
    color: #333;
}

.tab-content {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.info-item {
    flex: calc(16.666% - 15px);
    background-color: #f8f9fa;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.info-item:hover {
    transform: translateY(-5px);
}

.info-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.info-details {
    padding: 10px;
}

.info-details h4 {
    margin-bottom: 5px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-details p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    color: #dc3545;
    font-weight: bold;
    font-size: 14px;
}

/* Other Categories Section */
.other-categories {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.category-section {
    flex: 1;
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    height: 600px;
    overflow-y: auto;
}

.category-section h2 {
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #28a745;
    padding-bottom: 5px;
}

.category-section ul {
    list-style: none;
}

.category-section ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.category-section ul li:last-child {
    border-bottom: none;
}

.category-section ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.category-section ul li a:hover {
    color: #007bff;
}

/* Job Info Section */
.job-info {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.job-info .tab-header {
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.job-info .tab-header h2 {
    color: #333;
}

.job-item {
    flex: calc(12.5% - 15px);
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.job-item h4 {
    margin-bottom: 5px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-item p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.salary {
    color: #28a745;
    font-weight: bold;
    font-size: 14px;
}

/* Service Phones Section */
.service-phones {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.service-phones h2 {
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 5px;
}

.phone-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.phone-item {
    flex: calc(10% - 10px);
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Friendly Links Section */
.friendly-links {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.friendly-links h2 {
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #6f42c1;
    padding-bottom: 5px;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.links-list a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s;
}

.links-list a:hover {
    color: #0056b3;
}

/* Footer Styles */
footer {
    background-color: #343a40;
    color: white;
    padding: 30px 0;
    margin-top: 30px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright a,
.icp,
.contact {
    color: #ccc;
    text-decoration: none;
}

.copyright a:hover,
.contact a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .slideshow-news-utilities {
        flex-direction: column;
    }
    
    .slideshow, .news, .utilities {
        flex: 1;
    }
    
    .other-categories {
        flex-direction: column;
    }
    
    .info-item {
        flex: calc(33.333% - 15px);
    }
    
    .job-item {
        flex: calc(25% - 15px);
    }
    
    .phone-item {
        flex: calc(20% - 10px);
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .search-box {
        margin: 15px 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    .info-item {
        flex: calc(50% - 15px);
    }
    
    .job-item {
        flex: calc(33.333% - 15px);
    }
    
    .phone-item {
        flex: calc(33.333% - 10px);
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .info-item {
        flex: 100%;
    }
    
    .job-item {
        flex: calc(50% - 15px);
    }
    
    .phone-item {
        flex: calc(50% - 10px);
    }
}