/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

a:hover {
    color: #c00;
}

.clearfix:after {
    content: "";
    display: block;
    clear: both;
}

/* 布局容器 */
.header, .content-wrap, .footer {
    width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
.header-wrap {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header {
    padding: 15px 0;
    position: relative;
}

.logo {
    float: left;
    width: 180px;
}

.logo img {
    height: 50px;
    width: auto;
}

.date-wrap {
    float: left;
    margin-left: 30px;
    padding-top: 10px;
}

.date-one {
    font-size: 14px;
    color: #888;
}

.date-two {
    font-size: 12px;
    color: #888;
    font-weight: bold;
}

.nav {
    float: right;
    margin-top: 10px;
}

.nav ul {
    list-style: none;
    float: left;
}

.nav li {
    float: left;
    margin-left: 30px;
    font-size: 16px;
    line-height: 30px;
}

.nav li.active a {
    color: #c00;
    font-weight: bold;
}

.search-wrap {
    float: right;
    margin-left: 30px;
}

.search {
    position: relative;
    width: 200px;
}

.search-input {
    width: 100%;
    height: 30px;
    padding: 5px 30px 5px 10px;
    border: 1px solid #ddd;
    border-radius: 15px;
    outline: none;
    transition: border 0.3s;
}

.search-input:focus {
    border-color: #c00;
}

.search-ico {
    position: absolute;
    right: 10px;
    top: 7px;
    color: #999;
    cursor: pointer;
}

/* 7:3布局核心样式 */
.content-container {
    display: flex;
    width: 100%;
    gap: 20px;
    margin-bottom: 20px;
}

.content-main {
    flex: 7;
    min-width: 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    padding: 15px;
}

.content-sidebar {
    flex: 3;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 主版面内容 */
.page-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
}

.page-tag a {
    color: #fff;
}

.page {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.page img {
    width: 100%;
    height: auto;
    display: block;
}

.selectBox {
    position: absolute;
    border: 1px solid rgba(255,0,0,0.3);
    background-color: rgba(255,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.selectBox:hover {
    background-color: rgba(255,0,0,0.2);
}

.page-left, .page-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.page-left:hover, .page-right:hover {
    background: rgba(0,0,0,0.8);
}

.page-left {
    left: 10px;
}

.page-right {
    right: 10px;
}

/* 右边栏内容 */
.cover-wrap {
    background: #fff;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cover-tag {
    color: #c00;
    font-weight: bold;
    margin-bottom: 10px;
}

.swiper-container {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.swiper-slide {
    position: relative;
    cursor: pointer;
}

.ad-pic img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.ad-box-shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.ad-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5px 10px;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-title span {
    display: inline-block;
    padding: 0 5px;
    background: #c00;
    margin-right: 10px;
    font-size: 12px;
    border-radius: 2px;
}

.pagination {
    text-align: center;
    margin-top: 10px;
}

.cover-erweima {
    background: #fff;
    padding: 15px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.cover-cjwx img {
    width: 300px;
    height: 463px;
}

.cover-erweima img {
    width: 120px;
    height: 120px;
}

.cover-erweima p {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.title-wrap {
    background: #fff;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex-grow: 1;
    overflow-y: auto;
    max-height: 500px;
}

.page-title-item {
    margin-bottom: 20px;
}

.page-title {
    display: flex;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.title-arrow {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #c00;
    margin-right: 10px;
}

.title-text {
    flex: 1;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-text b {
    color: #c00;
    margin-left: 5px;
    font-weight: normal;
}

.pdf-ico {
    color: #c00;
    font-size: 18px;
}

.title-list {
    list-style: none;
    margin-top: 10px;
}

.title-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.title-list li:hover {
    background: #f9f9f9;
}

.title-list li b {
    color: #c00;
    margin-right: 5px;
}

.title-list li a {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 热门专栏 */
.hot-wrap {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.hot-tag {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.hot-tag-ico {
    color: #c00;
    margin-right: 10px;
    font-size: 18px;
}

.hot-tag-text {
    font-size: 16px;
    font-weight: bold;
    color: #c00;
}

.hot-content {
    padding: 15px;
    display: flex;
}

.hot-list {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    margin-right: 20px;
    gap: 15px;
}

.hot-list li {
    width: calc(33.33% - 10px);
    padding: 10px;
    background: #f9f9f9;
    border-radius: 3px;
    transition: transform 0.3s;
}

.hot-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.hot-pic img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 2px;
}

.hot-title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 10px;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hot-info {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-logo {
    padding: 0 5px;
    background: #f0f0f0;
    border-radius: 2px;
}

.hot-view {
    display: flex;
    align-items: center;
    gap: 3px;
}

.erweima-wrap {
    width: 120px;
    text-align: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 3px;
}

.erweima img {
    width: 100%;
    height: auto;
}

.erweima-text {
    margin-top: 10px;
}

.erweima-big {
    font-size: 16px;
    color: #c00;
    margin-bottom: 5px;
    font-weight: bold;
}

/* 页脚 */
.footer-wrap {
    background: #fff;
    border-top: 1px solid #eee;
    padding: 20px 0;
    margin-top: 30px;
}

.footer-link {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-link a {
    color: #666;
    position: relative;
    padding: 0 10px;
}

.footer-link a:not(:last-child):after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: #ddd;
}

.footer-info {
    color: #999;
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

.footer-info img {
    height: 16px;
    vertical-align: middle;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .header, .content-wrap, .footer {
        width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .content-container {
        flex-direction: column;
    }
    
    .content-main,
    .content-sidebar {
        width: 100%;
    }
    
    .content-sidebar {
        margin-top: 20px;
    }
    
    .hot-list li {
        width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .header {
        padding: 10px 0;
    }
    
    .logo {
        width: 120px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .date-wrap {
        margin-left: 15px;
    }
    
    .nav li {
        margin-left: 15px;
    }
    
    .search-wrap {
        margin-left: 15px;
    }
    
    .hot-list li {
        width: 100%;
    }
    
    .hot-content {
        flex-direction: column;
    }
    
    .erweima-wrap {
        width: 100%;
        margin-top: 20px;
    }
}