﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* 广告位样式 */
.header-top-recommend {
    display: block;
    width: 100%;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
}

.top-recommend-box {
    width: 100%;
    text-align: center;
}

.top-recommend-box-img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.top-recommend-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #6c757d;
    cursor: pointer;
    font-size: 18px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

    .top-recommend-close:hover {
        color: #dc3545;
        background-color: white;
        transform: scale(1.1);
    }

/* 关闭后的状态 */
.header-top-recommend.hidden {
    height: 0;
    padding: 0;
    border: none;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        height: 50px;
        margin-right: 10px;
    }

    .logo h1 {
        margin: 0;
        font-size: 24px;
        color: #2c3e50;
    }

/* 导航栏样式 */
nav {
    background-color: #3498db;
}

.nav-menu {
    display: flex;
    list-style: none;
}

    .nav-menu li {
        position: relative;
    }

        .nav-menu li a {
            display: block;
            color: #fff;
            text-decoration: none;
            padding: 15px 25px;
            font-size: 16px;
            transition: all 0.3s;
        }

            .nav-menu li a:hover {
                background-color: #2980b9;
            }

/* 轮播图样式 */
.banner {
    height: 400px;
    background-color: #ddd;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

    .banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* 主要内容区 */
.main-content {
    display: flex;
    margin: 20px 0;
}

.content-left {
    flex: 3;
    margin-right: 20px;
}

.content-right {
    flex: 1;
}

/* 信息分类区块 */
.info-section {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.section-header {
    background-color: #3498db;
    color: #fff;
    padding: 12px 15px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .section-header a {
        color: #fff;
        font-size: 14px;
        text-decoration: none;
    }

.section-body {
    padding: 15px;
}

.info-list {
    list-style: none;
}

.info-item {
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
}

    .info-item:last-child {
        border-bottom: none;
    }

.info-img {
    width: 120px;
    height: 90px;
    margin-right: 15px;
    flex-shrink: 0;
}

    .info-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 3px;
    }

.info-content {
    flex: 1;
}

.info-title {
    font-size: 16px;
    margin-bottom: 8px;
}

    .info-title a {
        color: #333;
        text-decoration: none;
    }

        .info-title a:hover {
            color: #3498db;
        }

.info-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

/* 侧边栏样式 */
.side-box {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.side-header {
    background-color: #3498db;
    color: #fff;
    padding: 12px 15px;
    font-size: 16px;
}

.side-body {
    padding: 15px;
}

.hot-list {
    list-style: none;
}

.hot-item {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

    .hot-item:last-child {
        border-bottom: none;
    }

    .hot-item a {
        color: #333;
        text-decoration: none;
        font-size: 14px;
        display: block;
    }

        .hot-item a:hover {
            color: #3498db;
        }

    .hot-item span {
        float: right;
        color: #999;
        font-size: 12px;
    }

/* 发布信息按钮 */
.publish-btn {
    display: block;
    background-color: #e74c3c;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

    .publish-btn:hover {
        background-color: #c0392b;
    }

/* 底部样式 */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    margin-right: 30px;
}

    .footer-section:last-child {
        margin-right: 0;
    }

    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #3d566e;
    }

    .footer-section p, .footer-section a {
        color: #bdc3c7;
        font-size: 14px;
        margin-bottom: 10px;
        display: block;
        text-decoration: none;
    }

        .footer-section a:hover {
            color: #fff;
        }

.copyright {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #3d566e;
    font-size: 14px;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .content-left {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-section {
        margin-right: 0;
        margin-bottom: 20px;
    }
}
