/*
Theme Name: My Clean Theme
Theme URI: https://example.com/
Description: 贝联生态专属优化主题，全端兼容
Version: 1.4
Author: 自定义
Author URI: https://example.com/
License: GPLv2 or later
Text Domain: my-clean-theme
*/

/* 全局重置 */
*{margin:0;padding:0;box-sizing:border-box;}
body{
    font-family: 'Source Han Sans CN', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
.container{
    max-width: 1400px; /* 电脑端内容最大宽度调到1400px，更舒展 */
    margin:0 auto;
    padding:0 20px;
}
a{text-decoration:none;color:inherit;transition:all 0.25s ease;}
ul{list-style:none;}
img{max-width:100%;height:auto;}

/* 按钮通用样式 */
.btn{
    display:inline-block;
    padding:12px 28px;
    border-radius:8px;
    font-weight:500;
    border:none;
    cursor:pointer;
    transition:all 0.25s ease;
    font-size:14px;
}
.btn-primary{
    background: linear-gradient(135deg, #165DFF 0%, #0E42C9 100%);
    color:#fff;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
}
.btn-primary:hover{
    transform:translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.3);
}
.btn-outline{
    background:transparent;
    color:#165DFF;
    border:1px solid #165DFF;
}
.btn-outline:hover{
    background:#165DFF;
    color:#fff;
}
.btn-sm{padding:8px 20px;font-size:13px;}

/* 头部导航 - 电脑端靠左对齐 */
.site-header{
    background:#fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position:sticky;
    top:0;
    z-index:999;
}
.site-header .container{
    display:flex;
    align-items:center;
    justify-content: flex-start; /* 电脑端导航靠左对齐 */
    height:70px;
}
.nav-menu{
    display:flex;
    gap:40px; /* 电脑端导航间距加大，更舒展 */
}
.nav-menu li a{
    font-size:15px;
    color:#4e5969;
    font-weight:500;
}
.nav-menu li a:hover{
    color:#165DFF;
}

/* 首页Banner（通栏） */
.home-banner{
    width:100%;
    margin:0;
    padding:60px 20px;
    background: linear-gradient(135deg, #165DFF 0%, #0FC6C2 100%);
    color:#fff;
    text-align:center;
}
.banner-content{
    max-width:800px;
    margin:0 auto;
}
.banner-content h1{
    font-size:40px; /* 电脑端标题加大，更有冲击力 */
    margin-bottom:16px;
    font-weight:700;
}
.banner-content p{
    font-size:18px;
    margin-bottom:32px;
    opacity:0.95;
}
.banner-btns{
    display:flex;
    gap:16px;
    justify-content:center;
}
.banner-btns .btn{
    font-size:16px;
}
.banner-btns .btn-outline{
    border-color:#fff;
    color:#fff;
}
.banner-btns .btn-outline:hover{
    background:#fff;
    color:#165DFF;
}

/* 核心入口卡片 */
.feature-cards{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:32px; /* 电脑端卡片间距加大，不挤 */
    margin:48px 0;
}
.feature-card{
    background:#fff;
    padding:36px;
    border-radius:12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition:all 0.25s ease;
    text-align:center;
}
.feature-card:hover{
    transform:translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.feature-icon{
    width:60px;
    height:60px;
    margin:0 auto 16px;
    background: rgba(22, 93, 255, 0.1);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#165DFF;
    font-size:24px;
}
.feature-card h3{
    font-size:20px;
    margin-bottom:12px;
    color:#1d2129;
}
.feature-card p{
    font-size:15px;
    color:#86909c;
    margin-bottom:16px;
}
.feature-card .link{
    font-size:14px;
    color:#165DFF;
    font-weight:500;
}
.feature-card .link:hover{
    opacity:0.8;
}

/* 文章列表 - 电脑端两列，避免行太长 */
.post-list{
    margin-bottom:60px;
}
.list-title{
    font-size:22px;
    margin-bottom:24px;
    color:#1d2129;
    padding-bottom:12px;
    border-bottom:1px solid #e5e6eb;
}
.posts{
    display:grid;
    grid-template-columns:repeat(2, 1fr); /* 电脑端两列布局 */
    gap:32px;
}
.post-card{
    background:#fff;
    padding:32px;
    border-radius:12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition:all 0.25s ease;
}
.post-card:hover{
    transform:translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.post-title{
    font-size:20px;
    margin-bottom:12px;
}
.post-title a{
    color:#1d2129;
}
.post-title a:hover{
    color:#165DFF;
}
.post-meta{
    font-size:14px;
    color:#86909c;
    margin-bottom:16px;
    padding-bottom:12px;
    border-bottom:1px solid #f2f3f5;
}
.post-meta i{
    margin-right:4px;
}
.meta-sep{
    margin:0 8px;
}
.post-excerpt{
    font-size:15px;
    color:#4e5969;
    margin-bottom:20px;
    line-height:1.7;
}
.pagination{
    text-align:center;
    margin-top:24px;
    grid-column: 1 / -1; /* 分页通栏 */
}
.no-posts{
    text-align:center;
    color:#86909c;
    padding:40px;
    grid-column: 1 / -1;
}

/* 文章详情页样式 - 修复标题太大的问题 */
.single .post-title{
    font-size:22px; /* 把详情页的标题改小，刚好合适 */
}
.single .post-content{
    font-size:16px;
    line-height:1.8;
    color:#333;
}

/* 底部Footer */
.site-footer{
    background:#2c3e50;
    color:#cbd5e0;
    padding:48px 0 24px;
}
.footer-content{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:40px;
    margin-bottom:32px;
}
.footer-brand h3{
    font-size:20px;
    color:#fff;
    margin-bottom:16px;
}
.footer-brand p{
    font-size:14px;
    line-height:1.7;
    margin-bottom:16px;
}
.social-links{
    display:flex;
    gap:16px;
}
.social-links a{
    width:36px;
    height:36px;
    background:rgba(255,255,255,0.1);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
}
.social-links a:hover{
    background:#165DFF;
}
.footer-links h4, .footer-contact h4{
    font-size:16px;
    color:#fff;
    margin-bottom:16px;
}
.footer-links ul li{
    margin-bottom:10px;
}
.footer-links ul li a{
    font-size:14px;
    color:#cbd5e0;
}
.footer-links ul li a:hover{
    color:#165DFF;
}
.footer-contact .qrcode{
    width:100px;
    height:100px;
    border-radius:6px;
    margin-bottom:12px;
}
.footer-contact p{
    font-size:13px;
}
.footer-bottom{
    text-align:center;
    padding-top:24px;
    border-top:1px solid rgba(255,255,255,0.08);
    font-size:13px;
    color:#94a3b8;
}

/* 回到顶部 */
.back-to-top{
    position:fixed;
    bottom:30px;
    right:30px;
    width:44px;
    height:44px;
    background:#165DFF;
    color:#fff;
    border-radius:50%;
    display:none;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.3);
    z-index:999;
    transition:all 0.25s ease;
}
.back-to-top:hover{
    background:#0E42C9;
    transform:translateY(-2px);
}

/* 移动端适配 - 完全保留你之前舒服的手机端布局 */
@media(max-width: 768px){
    .site-header .container{
        height:60px;
        justify-content: center; /* 手机端导航改回居中，不影响手机体验 */
    }
    .nav-menu{
        gap:16px;
    }
    .nav-menu li a{
        font-size:14px;
    }
    .home-banner{
        padding:40px 20px;
    }
    .banner-content h1{
        font-size:24px;
    }
    .banner-content p{
        font-size:14px;
    }
    .banner-btns{
        flex-direction:column;
    }
    .feature-cards{
        grid-template-columns:1fr;
        gap:20px;
        margin:30px 0;
    }
    .feature-card{
        padding:28px;
    }
    .posts{
        grid-template-columns:1fr; /* 手机端回到单列 */
        gap:20px;
    }
    .post-card{
        padding:24px;
    }
    .post-title{
        font-size:18px;
    }
    .single .post-title{
        font-size:20px; /* 手机端详情页标题也适配 */
    }
    .footer-content{
        grid-template-columns:1fr;
        gap:32px;
        text-align:center;
    }
    .social-links{
        justify-content:center;
    }
    .footer-contact .qrcode{
        margin:0 auto 12px;
    }
}