/* ===============================
   侧边栏公共样式
=============================== */
.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}
.widget-more {
    display: block;
    text-align: center;
    padding: 10px 16px;
    margin-top: 16px;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.widget-more:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* ===============================
   辅助阅读 assist-reading
=============================== */
.assist-reading {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.assist-reading-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.assist-reading-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}
.qr-reading {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e0e0e0;
    margin-bottom: 20px;
}
.qr-reading-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: block;
}
.qr-code {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    background: white;
}
.qr-code img {
    width: 100%;
    height: 100%;
    display: block;
}
.qr-tip {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}
.share-section {
    text-align: center;
}
.share-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: block;
}
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}
.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.share-btn:hover {
    transform: translateY(-2px);
}
.share-btn-weixin {
    background: #07c160;
    color: white;
}
.share-btn-weixin:hover {
    background: #06ad56;
}
.share-btn-weibo {
    background: #e6162d;
    color: white;
}
.share-btn-weibo:hover {
    background: #cf1428;
}
.share-btn-qqzone {
    background: #f7c600;
    color: white;
}
.share-btn-qqzone:hover {
    background: #e6b700;
}
.share-btn-qq {
    background: #12b7f5;
    color: white;
}
.share-btn-qq:hover {
    background: #0fa5de;
}
.share-btn-weixin .weixin-qr-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    display: none;
    z-index: 100;
    width: 140px;
}
.share-btn-weixin:hover .weixin-qr-popup {
    display: block;
}
.share-btn-weixin .weixin-qr-popup img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}
.share-btn-weixin .weixin-qr-popup p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

/* ===============================
   相关产品 product-list
=============================== */
.product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}
.product-item:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}
.product-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}
.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    width: 100%;
}
.product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.product-desc {
    font-size: 11px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===============================
   成功案例 case-list
=============================== */
.case-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.case-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.case-item:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}
.case-thumb {
    width: 100px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}
.case-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.case-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.case-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.case-industry {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

/* ===============================
   最新动态 news-list
=============================== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.news-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.news-item:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}
.news-date-box {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: var(--primary-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}
.news-day {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}
.news-month {
    font-size: 11px;
    opacity: 0.9;
}
.news-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-category {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===============================
   响应式适配
=============================== */
@media (max-width: 992px) {
    .sidebar-content {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .sidebar-content {
        grid-template-columns: 1fr;
    }
    .product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-item {
        padding: 10px 6px;
    }
    .product-thumb {
        width: 50px;
        height: 50px;
        margin-bottom: 6px;
    }
    .product-name {
        font-size: 12px;
    }
    .product-desc {
        font-size: 10px;
    }
}

/* ===============================
   页面布局容器
=============================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.page-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
}

/* ===============================
   主体内容区
=============================== */
.main-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* ===============================
   标题样式
=============================== */
.detail-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

/* ===============================
   文章信息（作者/日期）
=============================== */
.detail-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}
.detail-author,
.detail-date {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===============================
   文章正文内容
=============================== */
.detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}
.detail-content p {
    margin-bottom: 20px;
    text-align: justify;
}
.detail-content p[style] {
    line-height: 1.75em !important;
}
.detail-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}
.detail-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 16px;
    line-height: 1.4;
}
.detail-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 16px;
    line-height: 1.4;
}
.detail-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* ===============================
   文章上下篇导航
=============================== */
.article-nav {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.article-nav-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.article-nav-item:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}
.article-nav-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-nav-next {
    align-items: flex-end;
    text-align: right;
}
.article-nav-next .article-nav-label {
    flex-direction: row-reverse;
}

/* ===============================
   响应式适配
=============================== */
@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .main-content {
        padding: 20px;
    }
    .detail-title {
        font-size: 24px;
    }
    .detail-content h2 {
        font-size: 22px;
    }
    .detail-content h3 {
        font-size: 18px;
    }
    .article-nav {
        grid-template-columns: 1fr;
        margin-top: 32px;
        padding-top: 24px;
    }
    .article-nav-next {
        align-items: flex-start;
        text-align: left;
    }
    .article-nav-next .article-nav-label {
        flex-direction: row;
    }
}