/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0
*/

/* --------------------------
   全局共用工具类
--------------------------- */
a {
    text-decoration: none;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --------------------------
   首页样式
--------------------------- */
.home-banner-section {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
}
.banner-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}
.banner-title {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 10px 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
}
.banner-item img {
    width: 100%;
    height: auto;
    display: block;
}
.channels-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.channels-section .channel-list {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.channel-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

/* --------------------------
   频道分类页
--------------------------- */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.category-row,
.single-post-row {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}
.category-main,
.single-post-main {
    width: 75%;
}
.category-sidebar,
.single-post-sidebar {
    width: 25%;
}

.category-header {
    margin-bottom: 30px;
}
.category-header h1 {
    font-size: 28px;
    margin: 0 0 10px;
}
.category-header h2 {
    font-size: 16px;
    font-weight: normal;
    color: #666;
    margin: 0;
}
.category-banner-section {
    margin-bottom: 30px;
}
.category-banner-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}
.category-banner-item img {
    width: 100%;
    height: auto;
    display: block;
}
.category-banner-title {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 12px 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
}
.category-post-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.category-post-list li:last-child {
    border-bottom: none;
}
.category-post-list a {
    color: #333;
    font-size: 15px;
}
.category-post-list a:hover {
    color: #007bff;
}

/* --------------------------
   侧边栏通用（全站统一）
--------------------------- */
.sidebar-widget {
    margin-bottom: 30px;
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.sidebar-widget-title {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: normal;
}
.sidebar-widget li {
    margin-bottom: 8px;
}
.sidebar-widget a {
    color: #333;
    font-size: 14px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-widget a:hover {
    color: #007bff;
}

/* --------------------------
   文章详情页
--------------------------- */
.single-post-main h1 {
    font-size: 28px;
    margin: 0 0 10px;
}
.single-post-content {
    line-height: 1.7;
    font-size: 16px;
}

/* --------------------------
   面包屑导航（最终规范版）
--------------------------- */
.breadcrumbs {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}
.breadcrumbs a {
    color: #007bff;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}