﻿/*
Theme Name: Twenty Sixteen Child
Description: Twenty Sixteen 子主题 - 自定义文章列表样式
Author: Your Name
Template: l6
Version: 1.0.0
*/

/* ========== 只在文章列表页面隐藏默认元素 ========== */
/* 首页、分类页、标签页、搜索页等列表页面 */
.blog .entry-content,
.blog .entry-footer,
.blog .post-thumbnail,
.blog .entry-header .entry-title,
.archive .entry-content,
.archive .entry-footer,
.archive .post-thumbnail,
.archive .entry-header .entry-title,
.search .entry-content,
.search .entry-footer,
.search .post-thumbnail,
.search .entry-header .entry-title {
    display: none !important;
}

/* 或者使用更精确的方式：只隐藏自定义文章列表内的默认元素 */
.custom-excerpt .entry-content,
.custom-excerpt .entry-footer,
.custom-excerpt .post-thumbnail,
.custom-excerpt .entry-header .entry-title {
    display: none !important;
}

/* ========== 文章列表容器 ========== */
.site-main {
    max-width: 100%;
    padding: 0 15px;
}

/* ========== 自定义文章样式 ========== */
.custom-excerpt {
    margin-bottom: 0 !important;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

/* 头部区域 - 独立于左右布局 */
.custom-excerpt .article-header {
    margin-bottom: 10px;
    line-height: 1.4;
    width: 100%;
}

/* 分类标签样式 */
.custom-excerpt .label {
    display: inline-block;
    padding: 0 8px;
    height: 24px;
    line-height: 24px;
    background-color: #4CAF50;
    color: #fff;
    font-size: 12px;
    font-weight: normal;
    text-decoration: none;
    position: relative;
    margin-right: 12px;
    vertical-align: middle;
}

/* 分类标签箭头 */
.custom-excerpt .label-arrow {
    position: absolute;
    right: -8px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 8px solid #4CAF50;
}

/* 不同分类颜色 */
.custom-excerpt .label-important {
    background-color: #d9534f;
}
.custom-excerpt .label-important .label-arrow {
    border-left-color: #d9534f;
}

.custom-excerpt .label-warning {
    background-color: #f0ad4e;
}
.custom-excerpt .label-warning .label-arrow {
    border-left-color: #f0ad4e;
}

.custom-excerpt .label-success {
    background-color: #5cb85c;
}
.custom-excerpt .label-success .label-arrow {
    border-left-color: #5cb85c;
}

.custom-excerpt .label-info {
    background-color: #5bc0de;
}
.custom-excerpt .label-info .label-arrow {
    border-left-color: #5bc0de;
}

/* 标题样式 */
.custom-excerpt .article-header h2 {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
    border: none;
}

.custom-excerpt .article-header h2 a {
    color: #333;
    text-decoration: none;
}

.custom-excerpt .article-header h2 a:hover {
    color: #d9534f;
    text-decoration: underline;
}

/* 左右内容区域容器 */
.custom-excerpt .article-content-wrapper {
    display: flex;
    width: 100%;
}

/* 左侧缩略图区域 */
.custom-excerpt .focus {
    flex: 0 0 260px;
    width: 260px;
    height: 160px;
    margin-right: 15px;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
}

.custom-excerpt .focus a {
    display: block;
    width: 100%;
    height: 100%;
}

.custom-excerpt .focus img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.custom-excerpt .focus img:hover {
    transform: scale(1.05);
}

/* 右侧内容区域 - 使用flex列布局 */
.custom-excerpt .content-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 160px; /* 与缩略图同高 */
}

/* 摘要文字区域 - 占据剩余空间 */
.custom-excerpt .note {
    flex: 1;
    overflow-y: auto;
    line-height: 1.6;
    color: #666;
    font-size: 14px;
    word-wrap: break-word;
    margin-bottom: 5px;
    padding-right: 5px;
}

/* 自定义滚动条样式 */
.custom-excerpt .note::-webkit-scrollbar {
    width: 4px;
}
.custom-excerpt .note::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

/* 继续阅读链接 */
.custom-excerpt .more-link {
    color: #d9534f;
    text-decoration: none;
    font-size: 14px;
    margin-left: 5px;
    white-space: nowrap;
}

.custom-excerpt .more-link:hover {
    text-decoration: underline;
}

/* 作者和发布时间信息 - 放在底部靠右 */
.custom-excerpt .auth-span {
    flex-shrink: 0;
    text-align: right;
    padding: 5px 0 0;
    color: #999;
    font-size: 12px;
    border-top: 1px dashed #eee;
    width: 100%;
}

.custom-excerpt .auth-span span {
    margin-left: 15px;
    display: inline-block;
}

.custom-excerpt .auth-span i {
    margin-right: 3px;
    font-style: normal;
}

.custom-excerpt .auth-span a {
    color: #777;
    text-decoration: none;
}

.custom-excerpt .auth-span a:hover {
    color: #d9534f;
    text-decoration: underline;
}

/* 简单的图标样式（不使用Font Awesome） */
.fa-user:before {
    content: "👤";
    font-family: Arial;
    font-size: 12px;
}

.fa-clock-o:before {
    content: "🕒";
    font-family: Arial;
    font-size: 12px;
}

/* ========== 响应式调整 ========== */
@media (max-width: 768px) {
    .custom-excerpt .article-content-wrapper {
        flex-direction: column;
    }
    
    .custom-excerpt .focus {
        flex: none;
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .custom-excerpt .focus img {
        height: auto;
        max-width: 100%;
    }
    
    .custom-excerpt .content-right {
        height: auto;
    }
    
    .custom-excerpt .auth-span {
        text-align: left;
    }
    
    .custom-excerpt .auth-span span {
        margin-left: 0;
        margin-right: 15px;
    }
    
    .custom-excerpt .article-header h2 {
        display: block;
        margin-top: 8px;
    }
    
    .custom-excerpt {
        padding: 5px 0;
    }
}

/* ========== 辅助样式 ========== */
/* 清除浮动 */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* 让文章列表更紧凑 - 移除第一个文章的上边距 */
.site-main .custom-excerpt:first-child {
    padding-top: 0;
}

/* 移除最后一个文章的下边框 */
.site-main .custom-excerpt:last-child {
    border-bottom: none;
}


/* >>>> content-single.php */

/* ======================
   文章详情页修复 - 强制生效
====================== */

/* 1. 隐藏详情页左侧原来的 分类/作者/日期 冗余信息 */
.single-post .entry-footer {
    display: none !important;
}

/* 2. 文章内容强制靠左 + 去掉多余间距 */
.single-post .entry-content {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    float: none !important;
    width: 100% !important;
}

/* 3. 标题下方自定义信息行 强制靠左 */
.single-post .single-post-meta {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* 4. 全文所有内容强制靠左（终极方案） */
#primary .site-main,
#primary .post,
#primary .entry-content,
#primary .entry-header,
#primary .single-post-meta {
    float: none !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* ======================
   文章详情页标题样式（完全匹配你给的样式）
====================== */
.article-header {
    margin-bottom: 20px !important;
}
.article-title {
    font-size: 24px !important;
    font-weight: bold !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
}
.article-title a {
    color: #333 !important;
    text-decoration: none !important;
}
.article-title a:hover {
    color: #d9534f !important;
    text-decoration: underline !important;
}

/* meta 信息行 */
.meta {
    font-size: 13px !important;
    color: #999 !important;
    margin-bottom: 15px !important;
}
.muted {
    margin-right: 15px !important;
    color: #999 !important;
}
.muted a {
    color: #999 !important;
    text-decoration: none !important;
}
.muted a:hover {
    color: #d9534f !important;
    text-decoration: underline !important;
}

/* 图标间距 */
.muted i {
    margin-right: 4px !important;
}
/* >>>> <<<< content-single.php */
