/* ========================================
   内页通用样式 (article / case / page / tag)
   与首页 index.css 风格统一
   主色: #2e75be  辅助色: #e94a16
   ======================================== */

/* ===== Banner ===== */
.inner-banner {
    width: 100%;
    height: 60px;
    background-size: cover;
    background-position: center;
    background-color: #2e75be;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.inner-banner .banner-text {
    text-align: center;
    color: #fff;
    z-index: 1;
}
.inner-banner .banner-text h2 {
    font-size: 18px;
    font-weight: normal;
    margin: 0;
    color: #fff;
}
.inner-banner .banner-text p {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin: 0;
}
.inner-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.25);
}

/* ===== 面包屑 ===== */
.inner-breadcrumb {
    padding: 15px 0;
    font-size: 13px;
    color: #888;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}
.inner-breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}
.inner-breadcrumb a:hover {
    color: #2e75be;
}
.inner-breadcrumb .bc-sep {
    margin: 0 6px;
    color: #ccc;
}
.inner-breadcrumb .bc-current {
    color: #2e75be;
}

/* ===== 主布局 (左侧内容 + 右侧侧边栏) ===== */
.inner-layout {
    display: flex;
    gap: 25px;
    padding-bottom: 60px;
}
.inner-main {
    flex: 1;
    min-width: 0;
}
.inner-sidebar {
    width: 260px;
    flex-shrink: 0;
}

/* ===== 分类标签栏 ===== */
.inner-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.inner-tabs a {
    display: inline-block;
    padding: 8px 22px;
    font-size: 14px;
    color: #555;
    background: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s;
}
.inner-tabs a:hover {
    color: #2e75be;
    background: #e0ecf5;
}
.inner-tabs a.on,
.inner-tabs a.active {
    background: #2e75be;
    color: #fff;
}

/* ===== 列表卡片样式 ===== */
.card-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.card-list > li {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
}
.card-list > li:last-child {
    border-bottom: none;
}
.card-list > li:hover {
    background: #fafcff;
    padding-left: 10px;
}
.card-list .card-img {
    width: 220px;
    height: 160px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}
.card-list .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.card-list > li:hover .card-img img {
    transform: scale(1.05);
}
.card-list .card-img a {
    display: block;
    width: 100%;
    height: 100%;
}
.card-list .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}
.card-list .card-body h3 {
    font-size: 18px;
    font-weight: normal;
    color: #333;
    margin: 0 0 12px;
    line-height: 1.4;
    transition: color 0.2s;
}
.card-list .card-body h3 a {
    color: inherit;
    text-decoration: none;
}
.card-list > li:hover .card-body h3 a {
    color: #2e75be;
}
.card-list .card-body p {
    font-size: 14px;
    color: #888;
    line-height: 1.7;
    margin: 0 0 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-list .card-more {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #2e75be;
    text-decoration: none;
    transition: all 0.2s;
}
.card-list .card-more:hover {
    color: #1a5fa0;
}
.card-list .card-more::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
}

/* ===== 文章列表(无图) ===== */
.text-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.text-list li {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed #eee;
    transition: all 0.25s;
}
.text-list li:last-child {
    border-bottom: none;
}
.text-list li:hover {
    padding-left: 10px;
}
.text-list li:hover a {
    color: #2e75be;
}
.text-list .time {
    flex-shrink: 0;
    width: 90px;
    font-size: 14px;
    color: #999;
}
.text-list li a {
    flex: 1;
    font-size: 15px;
    color: #444;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
}

/* ===== 网格列表 (案例等) ===== */
.grid-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.grid-list li {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}
.grid-list li:hover {
    border-color: #2e75be;
    box-shadow: 0 8px 25px rgba(46,117,190,0.12);
    transform: translateY(-3px);
}
.grid-list .grid-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}
.grid-list .grid-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.grid-list li:hover .grid-img img {
    transform: scale(1.05);
}
.grid-list .grid-img a {
    display: block;
    width: 100%;
    height: 100%;
}
.grid-list .grid-body {
    padding: 15px 18px 20px;
}
.grid-list .grid-body h3 {
    font-size: 16px;
    font-weight: normal;
    color: #333;
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.grid-list .grid-body h3 a {
    color: inherit;
    text-decoration: none;
}
.grid-list li:hover .grid-body h3 a {
    color: #2e75be;
}
.grid-list .grid-body p {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 详情页 ===== */
.detail-header {
    padding: 20px 0 30px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 30px;
}
.detail-header h1 {
    font-size: 28px;
    font-weight: normal;
    color: #333;
    margin: 0 0 15px;
    line-height: 1.4;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #999;
}
.detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.detail-meta a {
    color: #2e75be;
    text-decoration: none;
}

/* 文章内容 */
.detail-content {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
    padding-bottom: 30px;
}
.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.detail-content p {
    margin-bottom: 16px;
}
.detail-content h2,
.detail-content h3,
.detail-content h4 {
    color: #333;
    margin: 25px 0 12px;
}

/* 标签 */
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 18px 0;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 10px;
}
.detail-tags .tags-label {
    font-size: 14px;
    color: #888;
}
.detail-tags a {
    display: inline-block;
    padding: 4px 14px;
    background: #f5f5f5;
    color: #666;
    font-size: 13px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
}
.detail-tags a:hover {
    background: #2e75be;
    color: #fff;
}

/* 上下篇导航 */
.detail-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    margin-bottom: 30px;
}
.detail-nav p {
    font-size: 14px;
    color: #888;
    margin: 0;
}
.detail-nav a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}
.detail-nav a:hover {
    color: #2e75be;
}

/* ===== 页面内容 ===== */
.page-content-box {
    padding: 30px 0 50px;
}
.page-content-box .page-title {
    font-size: 28px;
    font-weight: normal;
    color: #333;
    text-align: center;
    margin: 0 0 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}
.page-content-body {
    font-size: 15px;
    color: #444;
    line-height: 1.9;
}
.page-content-body img {
    max-width: 100%;
    height: auto;
}

/* 子页面列表 */
.page-sub-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #f0f0f0;
}
.page-sub-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}
.page-sub-item:hover {
    border-color: #2e75be;
    box-shadow: 0 5px 20px rgba(46,117,190,0.1);
    transform: translateY(-3px);
}
.page-sub-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}
.page-sub-item a {
    display: block;
    padding: 15px;
    font-size: 15px;
    color: #333;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s;
}
.page-sub-item:hover a {
    color: #2e75be;
}

/* ===== 标签云 ===== */
.tag-cloud-section {
    padding: 30px 0 10px;
}
.tag-cloud-section .section-title {
    text-align: center;
    padding: 30px 0 25px;
}
.tag-cloud-section .section-title h2 {
    font-size: 28px;
    color: #2e75be;
    font-weight: normal;
    margin: 0 0 10px;
}
.tag-cloud-section .section-title p {
    font-size: 14px;
    color: #888;
    margin: 0;
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 20px 0;
}
.tag-cloud a {
    display: inline-block;
    padding: 8px 20px;
    background: #f5f5f5;
    color: #555;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s;
}
.tag-cloud a:hover {
    background: #2e75be;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46,117,190,0.25);
}

/* 标签列表(网格) */
.tag-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px 0 40px;
}
.tag-grid a {
    display: block;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s;
}
.tag-grid a:hover {
    border-color: #2e75be;
    box-shadow: 0 4px 12px rgba(46,117,190,0.12);
    transform: translateY(-2px);
}
.tag-grid a .tag-name {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}
.tag-grid a:hover .tag-name {
    color: #2e75be;
}
.tag-grid a .tag-count {
    font-size: 12px;
    color: #999;
}

/* ===== 侧边栏 ===== */
.inner-sidebar .side-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.inner-sidebar .side-title {
    background: #2e75be;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 13px 18px;
}
.inner-sidebar .side-body {
    padding: 15px;
}
/* 侧边栏分类 */
.side-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.side-nav-list li a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: all 0.2s;
}
.side-nav-list li:last-child a {
    border-bottom: none;
}
.side-nav-list li a:hover,
.side-nav-list li a.on {
    color: #2e75be;
    background: #fafcff;
    padding-left: 20px;
}
/* 侧边栏推荐产品 */
.side-pro-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.side-pro-list li {
    margin-bottom: 15px;
}
.side-pro-list li:last-child {
    margin-bottom: 0;
}
.side-pro-list li a {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.side-pro-list .side-pro-img {
    width: 70px;
    height: 55px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}
.side-pro-list .side-pro-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.side-pro-list .side-pro-name {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.side-pro-list li:hover .side-pro-name {
    color: #2e75be;
}
/* 侧边栏热门文章 */
.side-article-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.side-article-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.side-article-list li:last-child {
    border-bottom: none;
}
.side-article-list li a {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.side-article-list li a:hover {
    color: #2e75be;
}
/* 侧边栏联系 */
.side-contact p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}
.side-contact strong {
    color: #333;
    font-size: 14px;
}

/* ===== 分页 ===== */
.pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 30px 0 10px;
}
.pagination-bar a,
.pagination-bar span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}
.pagination-bar a:hover {
    border-color: #2e75be;
    color: #2e75be;
}
.pagination-bar .current {
    background: #2e75be;
    color: #fff;
    border-color: #2e75be;
}

/* ===== 相关产品 ===== */
.related-section {
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
    margin-top: 10px;
}
.related-section .related-heading {
    font-size: 20px;
    font-weight: normal;
    color: #333;
    margin: 0 0 25px;
    padding-left: 14px;
    border-left: 3px solid #2e75be;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ===== 响应式 ===== */
@media screen and (max-width: 1024px) {
    .inner-sidebar {
        width: 240px;
    }
    .grid-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .tag-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .card-list .card-img {
        width: 180px;
        height: 130px;
    }
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .inner-tabs a {
        padding: 6px 16px;
        font-size: 13px;
    }
    .text-list li a {
        font-size: 14px;
    }
    .detail-content {
        font-size: 14px;
    }
}

/* iPad Pro / MacBook Air 1025-1440px */
@media screen and (min-width: 1025px) and (max-width: 1440px) {
    .inner-sidebar {
        width: 250px;
    }
    .inner-layout {
        gap: 22px;
    }
    .card-list .card-img {
        width: 200px;
        height: 145px;
    }
    .grid-list .grid-img {
        height: 180px;
    }
}

@media screen and (max-width: 768px) {
    .Contain {
        padding: 0 15px;
    }

    .inner-banner {
        height: 60px;
    }
    .inner-banner .banner-text h2 {
        font-size: 16px;
    }
    .inner-layout {
        flex-direction: column;
    }
    .inner-sidebar {
        width: 100%;
    }
    .grid-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .grid-list .grid-img {
        height: 150px;
    }
    .card-list > li {
        flex-direction: column;
        gap: 15px;
    }
    .card-list .card-img {
        width: 100%;
        height: 200px;
    }
    .tag-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-sub-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-header h1 {
        font-size: 22px;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media screen and (max-width: 480px) {
    .inner-banner {
        height: 60px;
    }

    .inner-banner .banner-text h2 {
        font-size: 15px;
    }

    .grid-list {
        grid-template-columns: 1fr;
    }
    .tag-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-sub-list {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
