/* ========================================
   Theme 6 专用卡片式列表布局
   ======================================== */

/* themeName 和内容区之间的分隔线 */
.theme6-divider {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #4a90e2, rgba(74, 144, 226, 0));
    margin-top: -5px;
    margin-bottom: 10px;
}

/* 卡片容器 */
#part2-context.theme-6-layout {
    padding: 0;
    position: relative;
}

.card-list-container {
    width: 100%;
    padding: 20px 0;
}

/* 单个文章卡片 */
.article-card {
    display: flex;
    align-items: flex-start;
    padding: 20px 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.article-card:hover {
    background-color: #f8d9d9;
    border-radius: 12px;
}

.article-card:last-child {
    margin-bottom: 0;
}

/* 左侧图标链接 */
.card-icon-link {
    display: block;
    flex-shrink: 0;
    margin-right: 20px;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* 悬停在图标上 或 悬停在整个卡片上时，图标都有动画 */
.card-icon-link:hover,
.article-card:hover .card-icon-link {
    transform: scale(1.05);
    opacity: 0.9;
}

/* 左侧图标（圆角正方形） */
.card-icon {
    width: 120px;
    height: 120px;
    background-color: #c00000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

/* 图标底部的分支名称 */
.card-branch-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 5px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4));
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    transition: background 0.3s ease;
}

/* 悬停在图标上 或 悬停在整个卡片上时，branchName 背景变深 */
.card-icon-link:hover .card-branch-name,
.article-card:hover .card-branch-name {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.6));
}

/* 右侧内容区 */
.card-content {
    flex: 1;
    min-width: 0;
    position: relative;
}

/* 卡片头部 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

/* 标题 */
.card-title {
    flex: 1;
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    padding-right: 15px;
}

.card-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}
.card-icon-link:hover,
.article-card:hover .card-title a {
    color: #1f85fa;
}

/* 日期 */
.card-date {
    color: #c00000;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 20px;
    padding-right: 40px;
}

/* 摘要文本 */
.card-summary {
    margin: 0;
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-card {
        flex-direction: column;
    }
    
    .card-icon-link {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .card-icon {
        width: 100%;
        height: 150px;
    }
    
    .card-header {
        flex-direction: column;
    }
    
    .card-date {
        margin-top: 8px;
        align-self: flex-end;
    }
}
