/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/* 全局基础样式 */
body {
    background-color: #fff;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 隐藏 GeneratePress 原生网站标题、Logo */
.site-header .site-branding,
.site-header .site-logo,
.site-header .site-title,
.site-header .site-description {
    display: none !important;
}
.site-header {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

/* 顶部固定导航 */
.homepage-nav {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 999;
    padding: 10px 0;
    width: 100%;
}
.homepage-nav ul {
    list-style: none;
    margin: 0;
    padding: 0 20px;
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}
.homepage-nav a {
    color: #2196F3;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.1);
    padding: 5px 10px;
}
.homepage-nav a:hover {
    text-decoration: underline;
}

/* 首页模块通用样式 */
.homepage-section {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}
.inside-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 左右分栏布局 */
.section-row {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 120px;
}
.section-title {
    flex: 0 0 220px;
    font-weight: bold;
}
.section-content {
    flex: 1;
}

/* 标题样式 */
.section-title h1 {
    font-size: 32px;
    color: #21409a;
    margin: 0;
    line-height: 1.3;
}
.section-title h2 {
    font-size: 28px;
    color: #222;
    margin: 0;
    line-height: 1.3;
}

/* 正文样式 */
.homepage-section p,
.homepage-section li {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin: 0 0 10px 0;
}

/* 列表样式 */
.vendor-list,
.free-list,
.price-list {
    list-style: decimal;
    padding-left: 20px;
    margin: 0;
}

/* 文章模块 */
#articles .articles-header {
    margin-bottom: 30px;
}
#articles .articles-header h2 {
    font-size: 28px;
    color: #222;
    margin: 0;
    line-height: 1.3;
    text-align: center;
}

#articles .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.article-channel .channel-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #222;
    font-weight: 600;
}
.article-channel ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}
.article-channel a {
    color: #2196F3;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}
.article-channel a:hover {
    text-decoration: underline;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .section-row {
        flex-direction: column;
        gap: 20px;
    }
    .section-title {
        flex: none;
    }
}

/* 顶部LOGO + SLOGAN 样式 */
.top-banner {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    width: 100%;
}
.banner-flex {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    flex-wrap: nowrap;
}
.logo-left img {
    width: 500px;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: block;
}
.slogan-right {
    font-size: 26px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .banner-flex {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .slogan-right {
        white-space: normal;
    }
}

/* 首页全屏宽度 */
.full-width-homepage {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
}
.top-banner {
    clear: both;
    width: 100%;
}

/* 嘉立创产业线模块 */
.section-title-block {
    margin-bottom: 30px;
    text-align: center;
}
.section-title-block h2 {
    font-size: 28px;
    color: #222;
    margin: 0 0 10px;
}
.section-desc {
    font-size: 16px;
    color: #666;
    margin: 0;
}
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.knowledge-col h3 {
    text-align: center;
    font-size: 20px;
    color: #21409a;
    margin-bottom: 15px;
}
.knowledge-col ul {
    list-style: none;
    padding-left: 20px;
    margin: 0;
    text-align: center;
}
.knowledge-col li {
    margin-bottom: 10px;
}
.knowledge-col a {
    color: #2196F3;
    text-decoration: none;
}
.knowledge-col a:hover {
    text-decoration: underline;
}

/* 嘉立创软件模块（修改后） */
.copy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}
.copy-left,
.copy-right {
    display: flex;
}
.copy-block {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}
.copy-block h3 {
    margin-top: 0;
    font-size: 20px;
    color: #222;
}

/* 产业园模块样式 */
.process-banner {
    background: #1E3A8A;
    max-width: 600px;
    margin: 0 auto 30px auto;
    padding: 20px 20px;
    border-radius: 6px;
}
.process-banner p {
    margin: 0;
    text-align: center;
    font-size: 16px;
    color: #FFFFFF !important;
    line-height: 1.6;
}
.process-slider {
    overflow-x: auto;
    padding-bottom: 10px;
}
.process-images {
    display: flex;
    gap: 20px;
}
.process-images img {
    height: 300px;
    width: auto;
    border-radius: 4px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .knowledge-grid {
        grid-template-columns: 1fr;
    }
    .copy-grid {
        grid-template-columns: 1fr;
    }
    .process-banner .inside-section {
        max-width: 100%;
    }
}

/* ==================== ✅ 频道页 + 详情页 布局样式（修复挤到下方问题） ==================== */
.site-content {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}
.category-row,
.single-post-row {
    display: flex !important;
    gap: 30px !important;
    box-sizing: border-box;
}
.category-main,
.single-post-main {
    flex: 1 !important;
    min-width: 0 !important;
}
.category-sidebar,
.single-post-sidebar {
    width: 320px !important;
    min-width: 320px !important;
}

/* 频道头部 */
.category-header h1 {
    font-size: 24px;
    margin: 0 0 10px;
}
.category-header h2 {
    font-size: 16px;
    font-weight: normal;
    color: #666;
    margin: 0 0 20px;
}

/* 频道大图 */
.category-banner-section {
    margin-bottom: 20px;
}
.category-banner-item a {
    display: block;
    position: relative;
}
.category-banner-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}
.category-banner-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 18px;
    border-radius: 0 0 6px 6px;
}

/* 频道文章列表 */
.category-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-post-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}
.category-post-list li a {
    font-size: 16px;
    color: #222;
    text-decoration: none;
}
.category-post-list li a:hover {
    color: #2196F3;
}

/* 侧边栏 */
.sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 20px;
}
.sidebar-widget-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}
.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-widget li {
    padding: 6px 0;
    border-bottom: 1px dashed #f1f1f1;
}
.sidebar-widget li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.sidebar-widget li a:hover {
    color: #2196F3;
}

/* 详情页 */
.single-post-main h1 {
    font-size: 26px;
    margin: 0 0 20px;
    line-height: 1.4;
}
.single-post-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}
.breadcrumbs {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}
.breadcrumbs a {
    color: #2196F3;
    text-decoration: none;
}

/* 平板/手机响应 */
@media(max-width: 992px){
    .category-row, .single-post-row {
        flex-direction: column !important;
    }
    .category-sidebar, .single-post-sidebar {
        width: 100% !important;
        min-width: auto !important;
    }
}
/* ====================== 新增：统一小标题样式（替代所有h3） ====================== */
.section-subtitle {
    font-size: 18px;           /* 比正文16px大一号 */
    font-weight: 600;
    color: #21409a;
    margin: 28px 0 16px 0;
    line-height: 1.4;
}

/* 服务模块编号修正 */
.vendor-list {
    list-style: decimal;
    padding-left: 25px;
    margin: 0;
}

.vendor-list li {
    margin-bottom: 22px;
}

.vendor-list li:last-child {
    margin-bottom: 0;
}

/* 兼容原有知识网格和软件模块 */
.knowledge-col .section-subtitle {
    text-align: center;
    font-size: 20px;
    color: #21409a;
}