/*
Theme Name: portal11
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:#2d2d2d;
    background:#f7f5ff;
    line-height:1.7;
}
a { color:#2d2d2d; text-decoration:none }
a:hover { color:#7E22CE; }
img { max-width:100%; height:auto; display:block; border-radius:6px }
ul { list-style:none }

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

/* 头部 紫气东来 */
.pw-header {
    background:#7E22CE;
    padding:22px 0;
    margin-bottom:20px;
}
.pw-logo {
    font-size:24px;
    font-weight:bold;
    color:#ffffff;
}
.pw-logo a { color:#ffffff; }

/* 面包屑 */
.pw-bread {
    background:#fff;
    padding:12px 18px;
    border-radius:8px;
    font-size:13px;
    color:#6b6b6b;
    margin-bottom:20px;
    border-left:3px solid #7E22CE;
}

/* 电脑端布局 */
.pw-row { display:flex; gap:25px; margin-bottom:30px }
.pw-main { flex:1 }
.pw-side { width:300px }

/* 电脑端瀑布流 */
.pw-masonry {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

/* 文章卡片 */
.pw-card {
    background:#fff;
    padding:20px;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
    transition:all .3s;
}
.pw-card:hover { transform:translateY(-3px); }
.pw-thumb { border-radius:8px; overflow:hidden; margin-bottom:12px }
.pw-thumb img { width:100%; object-fit:cover; }
.pw-title { font-size:17px; font-weight:500; margin-bottom:6px }
.pw-meta { font-size:12px; color:#999; margin-bottom:8px }
.pw-desc { font-size:14px; color:#555 }

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

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

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

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

/* 文字列表 */
.pw-text-list a {
    display:block;
    padding:8px 0;
    font-size:14px;
    border-bottom:1px dashed #eee;
}
.pw-related { background:#fff; padding:25px; border-radius:12px; margin-top:20px }

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

/* =================================== */
/* 手机端全新独立布局 */
/* =================================== */
@media(max-width:900px) {
    .pw-row{flex-direction:column; gap:15px}
    .pw-side{width:100%}
    /* 手机端取消瀑布流 = 单列卡片 + 全新排版 */
    .pw-masonry{grid-template-columns:1fr; gap:15px}
    .pw-card{padding:15px; border-radius:10px}
    .pw-thumb{margin-bottom:10px}
    .pw-title{font-size:16px}
    /* 手机端侧边卡片紧凑 */
    .pw-widget{padding:15px}
    .pw-side-img{width:45px; height:45px}
}