/* ========================================= blogs页面独有Hero横幅 ========================================= */
.blogs-header{
    margin-top: 0;
    padding: 0 !important;
    background: transparent;
}
header {
    margin-bottom: 0;
}
.blogs-header .blogs-hero {
    position: relative;
    width: 100%;
    max-width: 1200px;
    min-height: 300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background-image: url('../images/blogs/mingkun-blogs-hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 5%;
    margin-bottom: 12px;
    overflow: hidden;
}
/* hero遮罩渐变层 */
.blogs-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}
/* hero内容容器，层级高于遮罩 */
.blogs-hero-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.blogs_hero-text h1 {
    color: #ffffff !important;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0.6);
    letter-spacing: 1px;
}
.blogs_hero-subtitle {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0.5);
}

/* ========================================= blogs页面私有标题（左对齐，不覆盖全局section‑title） ========================================= */
.blogs-section-title{
    font-size:2rem;
    margin-bottom:40px;
    position:relative;
}
.blogs-section-title:after{
    content:'';
    position:absolute;
    left:0;
    bottom:-12px;
    width:70px;
    height:3px;
    background:var(--primary-red);
}
.resource-title{
    font-size:1.8rem;
    font-weight:600;
    margin:50px 0 24px;
    padding-left:18px;
    border-left:5px solid var(--primary-red);
}

/* ========================================= Featured Guides 板块 ========================================= */
.featured-section.page-section-padding{
    padding-top: 8px;
    padding-bottom: 15px;
}
.featured-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}
.featured-card{
    border:1px solid var(--border-color);
    border-radius:12px;
    overflow:hidden;
}
.featured-image{
    height:240px;
    background:#ddd;
}
.featured-content{
    padding:25px;
}
.tag{
    display:inline-block;
    background:var(--primary-red);
    color:var(--white);
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    margin-bottom:10px;
}
/* resource 卡片的 tag 浮到缩略图左上角，不再占用信息区纵向空间，避免副标题撑高卡片 */
.resource-card{position:relative;}
.resource-info .tag{
    position:absolute;
    top:12px;
    left:12px;
    margin-bottom:0;
    z-index:2;
}

/* ========================================= 资源卡片模块 带hover悬浮整卡点击 ========================================= */
.resource-area.page-section-padding{
    background:var(--white);
    padding-top: 15px;
}
.news-area.page-section-padding{
    padding-top: 15px;
}
.resource-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}
.resource-card{
    display:flex;
    border:1px solid var(--border-color);
    border-radius:10px;
    overflow:hidden;
    background:var(--white);
    transition: all 0.3s ease;
    cursor:pointer;
    min-height:150px;
}
/* 卡片悬浮交互效果：上浮、阴影、边框变色 */
.resource-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(139, 0, 0, 0.15);
    border-color: var(--primary-red);
}
/* hover时标题变色 */
.resource-card:hover .resource-info h3{
    color:var(--primary-red);
}
.resource-thumb{
    width:220px;
    height:150px;
    background:#ddd;
    flex-shrink:0;
    overflow:hidden;
}
.resource-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    background:#fff;
}
.resource-info{
    padding:18px;
}
.resource-info h3{
    margin:10px 0;
    transition:color 0.3s ease;
}

/* ========================================= 更多文章展开组件 details ========================================= */
.more-articles{
    margin-top:20px;
}
.more-articles summary{
    cursor:pointer;
    color:var(--primary-red);
    font-weight:600;
    list-style:none;
}
.more-articles summary::-webkit-details-marker{
    display:none;
}

/* ========================================= CTA联系引导板块 ========================================= */
.cta{
    background:var(--primary-red);
    color:var(--white);
    border-radius:14px;
    padding:50px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}
.cta-btn{
    background:var(--white);
    color:var(--primary-red);
    padding:14px 24px;
    border-radius:6px;
    font-weight:bold;
}

/* 本页面板块上下间距，不写到全局section，防止污染其他页面 */
.page-section-padding{
    padding:70px 0;
}

/* ========================================= 移动端响应式 900px断点 ========================================= */
@media(max-width:900px){
    .featured-grid,.resource-grid{
        grid-template-columns:1fr;
    }
    .resource-card{
        flex-direction:column;
    }
    .resource-thumb{
        width:100%;
    }
    .cta{
        flex-direction:column;
        text-align:center;
    }
    .blogs-hero .blogs_hero-text h1{
        font-size:32px;
    }
}
