/* --- 模板页专属样式 (修正版) --- */

/* 1. 顶部大 Banner */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 60vh; /* 保持大高度 */
    padding-top: 56px;
    
    /* 基础背景设置 */
    background-color: #343a40; /* 图片加载失败时的底色 */
    background-size: cover;    /* 强制铺满 */
    background-position: center;
    background-repeat: no-repeat;
    
    /* 文字设置 */
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* 2. 黑色遮罩层 (修正透明度) */
.hero-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 修改：从 0.6 改为 0.4，让背景图能透出来 */
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

/* 3. 侧边栏卡片 */
.sidebar-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.sidebar-sticky {
    position: sticky;
    top: 80px;
}

/* 4. 内容区域 */
.content-area {
    min-height: 300px;
}
.content-area h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 0.5rem;
}
.content-area p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}
