/*@import url('/css/header.css');*/
@import "header.css";
/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}


/* Content Container */
.content-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Main Content Two Column Layout */
.main-content {
    display: flex;
    gap: 20px;
}

/* Left Column - News Section */
.left-column {
    flex: 3;
}

.news-section {
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.news-header h2 {
    font-size: 1.5em;
    margin: 0;
}

.news-header a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}
.news-header a:hover {
    text-decoration: underline;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    background: #fff;
}

.news-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.news-item h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.news-item p {
    color: #777;
    font-size: 0.9em;
}


/* 主分类和子分类标签的样式 */
.categories-section {
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    /*background-color: #f9f9f9;*/
    border-bottom: 1px solid #e0e0e0;
}

.category-group {
    margin-bottom: 20px;
}

.main-category h2 {
    color: #ff7f50;  /* 使用网站主色调 */
    font-weight: bold;
    margin-bottom: 10px;
}

.sub-category a {
    display: inline-block;
    margin-right: 10px;
    padding: 5px 10px;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    background-color: #ffffff;
    transition: background-color 0.3s, color 0.3s;
}

.sub-category a:not(:last-child):hover {
    background-color: #ff7f50;  /* 使用网站主色调 */
    color: #ffffff;
}

.sub-category a:last-child {
    color: #ff7f50;
    font-weight: bold;
}
.sub-category a:last-child:hover {
    text-decoration: underline;
}


/* Right Column - Posts and Offers */
.right-column {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-buttons, .announcement-section, .posts-section, .offers-section {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.action-buttons h2, .announcement-section h2, .posts-section h2, .offers-section h2 {
    margin:0;
}


.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.free-post-button, .ad-cooperation-button {
    padding: 15px 25px;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.free-post-button {
    background-color: #ff7f50;
}

.free-post-button:hover {
    background-color: #e66b40;
}

.ad-cooperation-button {
    background-color: #0360c5;
}

.ad-cooperation-button:hover {
    background-color: #004289;
}



.posts-section h2, .offers-section h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.post-item, .offer-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.post-item a, .offer-item a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.section-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

/* Hot Categories Section */
.hot-categories, .local-services {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.categories-container, .services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.category, .service-category {
    flex: 1;
    min-width: 220px;
}

.category-title, .service-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.category-title i, .service-title i {
    margin-right: 8px;
    font-size: 18px;
}

.subcategory-list, .service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subcategory-list li, .service-list li {
    margin: 5px 0;
}

.subcategory-list a, .service-list a {
    text-decoration: none;
    color: #333;
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.subcategory-list a:hover, .service-list a:hover {
    background-color: #ff7f50;
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .categories-container, .services-container {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 0 10px;
    }
    .section-title {
        font-size: 20px;
    }
}






/* Yellow Pages Section */
.yellow-pages-section {
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.yellow-pages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.yellow-page-item {
    width: calc(14.28% - 10px);
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.yellow-page-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Real Estate Section - Two Columns */
.real-estate-main {
    display: flex;
    gap: 20px;
}

.real-estate-agents, .real-estate-properties {
    flex: 1;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.real-estate-agents h2, .real-estate-properties h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.agent-item, .property-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.agent-item img, .property-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.agent-item h3, .property-item h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.agent-item p, .property-item p {
    color: #777;
    font-size: 0.9em;
}

/* Cars Section - Three Columns */
.cars-main {
    display: flex;
    gap: 20px;
}

.car-agents, .cars-for-sale, .car-tips {
    flex: 1;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.car-agents h2, .cars-for-sale h2, .car-tips h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.car-agents .agent-item, .cars-for-sale .car-item, .car-tips .tip-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.car-agents .agent-item img, .cars-for-sale .car-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.car-agents .agent-item h3, .cars-for-sale .car-item h3, .car-tips .tip-item h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.car-agents .agent-item p, .cars-for-sale .car-item p, .car-tips .tip-item p {
    color: #777;
    font-size: 0.9em;
}

.car-tips .tip-item a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* Secondhand Section */
.secondhand-section {
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.secondhand-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.secondhand-header h2 {
    font-size: 1.5em;
    margin: 0;
}

.secondhand-header a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.secondhand-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.secondhand-categories button {
    padding: 8px 15px;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
    border-radius: 5px;
    font-size: 0.9em;
}

.secondhand-categories button:hover {
    background-color: #ddd;
}

.secondhand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.secondhand-item {
    width: calc(20% - 10px);
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    background: #fff;
}

.secondhand-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.secondhand-item p {
    margin: 10px 0;
    font-size: 1em;
    color: #333;
}

.secondhand-item span {
    font-weight: bold;
    color: #e60000;
    font-size: 1em;
}

