/*
Theme Name: portal10
Author: Custom
Version: 1.0
Description: 大红大紫瀑布流SEO主题
*/
* { margin:0; padding:0; box-sizing:border-box }
body {
    font-family: "Microsoft YaHei", sans-serif;
    font-size:15px;
    color:#222;
    background:#f9f9f9;
    line-height:1.7;
}
a { color:#222; text-decoration:none }
a:hover { color:#993399 }
img { max-width:100%; height:auto; display:block; border-radius:6px }
ul { list-style:none }

.rp-container { max-width:1200px; margin:0 auto; padding:0 15px }

/* 头部 大红 */
.rp-header {
    background:#cc0033;
    padding:22px 0;
    margin-bottom:20px;
}
.rp-logo {
    font-size:24px;
    font-weight:bold;
    color:#000;
}
.rp-logo a { color:#000 }

/* 面包屑 大紫 */
.rp-bread {
    background:#fff;
    padding:12px 18px;
    border-radius:8px;
    font-size:13px;
    color:#777;
    margin-bottom:20px;
    border-left:3px solid #993399;
}

/* 布局 */
.rp-row { display:flex; gap:25px; margin-bottom:30px }
.rp-main { flex:1 }
.rp-side { width:300px }
@media(max-width:900px) {
    .rp-row{flex-direction:column}
    .rp-side{width:100%}
}

/* 瀑布流 */
.rp-masonry {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}
@media(max-width:768px) {
    .rp-masonry{grid-template-columns:1fr}
}

.rp-card {
    background:#fff;
    padding:20px;
    border-radius:10px;
    box-shadow:0 1px 3px rgba(0,0,0,.05);
    break-inside:avoid;
    margin-bottom:10px;
}
.rp-thumb { border-radius:6px; overflow:hidden; margin-bottom:12px }
.rp-thumb img { width:100%; object-fit:cover; border-radius:6px }
.rp-title { font-size:17px; font-weight:500; margin-bottom:6px }
.rp-meta { font-size:12px; color:#999; margin-bottom:8px }
.rp-desc { font-size:14px; color:#555 }

/* 分页 */
.rp-pager { text-align:center; margin:30px 0 }
.rp-pager a,.rp-pager span {
    display:inline-block; padding:8px 15px;
    background:#fff; border:1px solid #eee;
    border-radius:6px; margin:0 3px;
}
.rp-pager .current { background:#993399; color:#fff; border-color:#993399 }

/* 侧边栏 */
.rp-widget {
    background:#fff;
    padding:20px;
    border-radius:10px;
    margin-bottom:20px;
}
.rp-widget h3 {
    font-size:16px;
    padding-bottom:10px;
    border-bottom:2px solid #cc0033;
    margin-bottom:15px;
}
.rp-side-item {
    display:flex;
    gap:10px;
    padding:8px 0;
    border-bottom:1px dashed #eee;
}
.rp-side-img {
    width:50px;
    height:50px;
    flex-shrink:0;
}
.rp-side-title { font-size:14px; line-height:1.4 }

/* 内容页 */
.rp-single { background:#fff; padding:40px; border-radius:10px }
.rp-single h1 { font-size:24px; text-align:center; margin-bottom:20px }
.rp-content { font-size:16px; line-height:2 }

.rp-postnav {
    display:flex;
    justify-content:space-between;
    margin:30px 0;
}
.rp-postnav a {
    background:#fff;
    padding:12px 18px;
    border-radius:8px;
    border:1px solid #eee;
}

/* 相关文章 */
.rp-related { background:#fff; padding:25px; border-radius:10px; margin-top:20px }
.rp-text-list a {
    display:block;
    padding:6px 0;
    font-size:14px;
    border-bottom:1px dashed #eee;
}

/* 底部 大红 */
.rp-footer {
    background:#cc0033;
    color:#fff;
    text-align:center;
    padding:25px 0;
    margin-top:30px;
    font-size:13px;
}