/*
Theme Name: CMS1
Author: Custom
Version: 1.0
Description: 标准门户网站WordPress主题，头条大图+多栏目+自适应
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.8;
}
a {
    color: #0d6efd;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: #0a58ca;
    text-decoration: underline;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航 */
.portal-header {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 12px 0;
}
.portal-logo {
    font-size: 26px;
    font-weight: bold;
    color: #0d6efd;
}
.portal-nav {
    background: #0d6efd;
}
.portal-nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}
.portal-nav li {
    position: relative;
}
.portal-nav a {
    color: #fff;
    padding: 14px 22px;
    display: inline-block;
}
.portal-nav a:hover {
    background: #0a58ca;
    text-decoration: none;
}

/* 头条Banner区 */
.portal-banner {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 400px;
}
.portal-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portal-banner-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 30px 25px;
    color: #fff;
}
.portal-banner-title {
    font-size: 28px;
    margin-bottom: 10px;
}
.portal-banner-desc {
    font-size: 16px;
    opacity: 0.9;
}

/* 双栏内容区 */
.portal-row {
    display: flex;
    gap: 30px;
    margin: 35px 0;
}
@media (max-width: 992px) {
    .portal-row {
        flex-direction: column;
    }
    .portal-banner {
        height: 250px;
    }
}
.portal-main {
    flex: 3;
}
.portal-sub {
    flex: 1;
}
.portal-column {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.portal-column-title {
    font-size: 20px;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid #0d6efd;
}

/* 文章卡片 */
.portal-card {
    display: flex;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}
.portal-card:last-child {
    border-bottom: none;
}
.portal-thumb {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
}
.portal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portal-card-title {
    font-size: 17px;
    margin-bottom: 6px;
}
.portal-meta {
    font-size: 13px;
    color: #888;
}
.portal-summary {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* 分页 */
.portal-pagination {
    text-align: center;
    margin: 40px 0;
}
.portal-pagination a, .portal-pagination span {
    display: inline-block;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 3px;
}
.portal-pagination .current {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* 侧边栏 */
.portal-sidebar {
    width: 280px;
    flex-shrink: 0;
}
@media (max-width: 992px) {
    .portal-sidebar {
        width: 100%;
    }
}
.portal-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.portal-widget-title {
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}
.portal-side-item {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}
.portal-side-item:last-child {
    border-bottom: none;
}

/* 内容页 */
.portal-single {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.portal-single-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 25px;
}
.portal-single-content {
    font-size: 16px;
    line-height: 2.1;
    margin: 20px 0;
}
.portal-post-nav {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
}
.portal-post-nav a {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.portal-related {
    margin-top: 40px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
}
.portal-related-title {
    font-size: 18px;
    margin-bottom: 18px;
}
.portal-related-item {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

/* 页脚 */
.portal-footer {
    background: #212529;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}