/* css/article.css */

/* =========================================
   1. 基础布局与背景
   ========================================= */

/* 给文章区域一个淡灰背景，突出白色的卡片 */
.article-section {
    background-color: #f4f6f9;
    padding: 2rem 0 4rem 0;
    min-height: 600px;
}

/* Flex 布局容器：左侧正文，右侧列表 */
.article-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 顶部对齐 */
    gap: 1.5rem; /* 左右间距 */
}

/* =========================================
   2. 左侧：文章主体 (Main Box)
   ========================================= */

.article-main-box {
    flex: 1; /* 占据剩余空间 */
    background-color: #ffffff;
    padding: 2.5rem; /* 内部大留白 */
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* 极轻微的投影 */
    min-width: 0; /* 防止内容撑破Flex容器 */
}

/* --- 面包屑导航 --- */
.breadcrumbs {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2rem;
}
.breadcrumbs span {
    margin: 0 0.3rem;
}
.breadcrumbs span:first-child { margin-left: 0; }

/* --- 头部信息 --- */
.article-header {
    text-align: center;
    margin-bottom: 2rem;
}

.art-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: normal;
}

.art-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1.5rem;
}
.art-meta span {
    margin: 0 1rem;
}

/* --- 文章内部的装饰线 (仿Banner风格) --- */
.art-separator-line {
    position: relative;
    width: 6rem; /* 总长度 */
    height: 1px;
    background-color: #eee; /* 底色改为浅灰 */
    margin: 0 auto; /* 居中 */
}
.art-separator-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: -1.5px;
    width: 2.5rem; /* 蓝线长度 */
    height: 4px;
    background-color: #3f8fe6;
    border-radius: 2px;
}

/* --- 正文内容 --- */
.article-body {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    padding-top: 1rem;
}
.article-body p { margin-bottom: 1.5rem; }
.article-body img { max-width: 100%; height: auto; margin: 1rem 0; }
.article-body h2 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ececec;
    padding-bottom: 1rem;
    gap: 0.5rem;
    text-indent:0 !important;
}
.article-body h2::before {
    content: '';
    display: block;
    width: 0.4rem;
    height: 2rem;
    background-color: #0087cb; /* 深圳首康的主色调 */
    margin-right: 0.15rem;
    border-radius: 0.04rem;
}

/* --- 底部上下篇 --- */
.article-footer-nav {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #666;
}
.article-footer-nav a:hover {
    color: #3f8fe6;
}


/* =========================================
   3. 右侧：侧边栏 (Sidebar)
   ========================================= */

.article-sidebar {
    width: 20rem; /* 固定宽度 */
    flex-shrink: 0; /* 不允许压缩 */
}

/* 栏目盒子 */
.sidebar-widget {
    background-color: transparent; /* 右侧背景整体透明，列表项独立白底 */
}

/* 蓝色标题头 */
.widget-header {
    background-color: #3f8fe6;
    color: #fff;
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px 4px 0 0; /* 顶部圆角 */
}

.widget-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.widget-header .more-link {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* 列表容器 */
.widget-content {
    margin-top: 0.5rem;
}

.news-list-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* 卡片间距 */
}

/* 单个列表项 (卡片风格) */
.news-list-sidebar li {
    background-color: #fff;
    padding: 1rem;
    border-left: 4px solid transparent; /* 预留左侧边框位置 */
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.news-list-sidebar li a {
    display: block;
}

.news-list-sidebar .date {
    display: block;
    color: #3f8fe6; /* 日期也是蓝色 */
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.4rem;
}

.news-list-sidebar .title {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
    /* 限制显示两行，超出省略 (可选) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hover 效果：整体上浮，左侧边框变蓝 */
.news-list-sidebar li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.news-list-sidebar li:hover .title {
    color: #3f8fe6;
}

/* 当前高亮项 (Current) */
.news-list-sidebar li.current {
    border-left-color: #3f8fe6; /* 左侧亮出蓝线 */
}


/* =========================================
   4. 响应式适配
   ========================================= */

@media screen and (max-width: 1024px) {
    .article-layout {
        flex-direction: column; /* 小屏幕变单栏，侧边栏沉底 */
    }

    .article-sidebar {
        width: 100%;
    }

    .article-main-box {
        padding: 1.5rem;
    }
}