/* =========================================================
 * 新闻详情页样式
 * ========================================================= */

/* ============ 内容容器（1440px） ============ */
.ns-page .ns-wrap {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    box-sizing: border-box;
}
@media (max-width: 1600px) { .ns-page .ns-wrap { max-width: 1400px; } }
@media (max-width: 1400px) { .ns-page .ns-wrap { max-width: 1280px; padding: 0 28px; } }
@media (max-width: 1200px) { .ns-page .ns-wrap { max-width: 100%; padding: 0 24px; } }
@media (max-width: 768px)  { .ns-page .ns-wrap { padding: 0 16px; } }

/* ============ 主体布局 ============ */
.ns-main { background: #f5f8fb; padding: 36px 0 70px; }
.ns-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }

/* ============ 面包屑 ============ */
.ns-breadcrumb-bar {
    font-size: 0.98rem;
    color: #8a9aae;
    padding: 0 0 24px;
    border-bottom: 1px solid transparent;
}
.ns-breadcrumb-bar a { color: #8a9aae; text-decoration: none; transition: color 0.3s; }
.ns-breadcrumb-bar a:hover { color: #1a2a6c; }
.ns-breadcrumb-bar span { margin: 0 8px; opacity: 0.6; }
.ns-breadcrumb-bar .current { color: #1a2a6c; font-weight: 500; }

/* ============ 主内容 ============ */
.ns-content {
    background: #fff;
    border-radius: 18px;
    padding: 48px 52px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(10,26,58,.05);
    min-width: 0;
}

/* 文章头部 */
.ns-header { padding-bottom: 30px; margin-bottom: 36px; border-bottom: 1px solid #eef2f6; }
.ns-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0a1a3a;
    line-height: 1.35;
    margin: 0 0 18px;
    letter-spacing: -0.4px;
}
.ns-summary {
    font-size: 1.1rem;
    color: #6a7a8a;
    line-height: 1.8;
    margin: 0 0 22px;
    padding-left: 16px;
    border-left: 4px solid #4facfe;
}
.ns-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.95rem; color: #8a9aae; align-items: center; }
.ns-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.ns-meta-item i { color: #4facfe; }
.ns-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(26,42,108,.08);
    color: #1a2a6c;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.ns-cat:hover { background: linear-gradient(135deg, #1a2a6c, #4facfe); color: #fff; }
.ns-cat i { color: inherit; }

/* 正文 */
.ns-body { font-size: 1.1rem; line-height: 2; color: #3a4a5a; }
.ns-body p { margin: 0 0 22px; }
.ns-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 26px auto; display: block; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.ns-body h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0a1a3a;
    margin: 40px 0 20px;
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}
.ns-body h2::before {
    content: '';
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 5px;
    background: linear-gradient(180deg, #1a2a6c, #4facfe);
    border-radius: 2px;
}
.ns-body h3 { font-size: 1.35rem; font-weight: 700; color: #0a1a3a; margin: 30px 0 14px; }
.ns-body ul, .ns-body ol { padding-left: 26px; margin: 0 0 22px; }
.ns-body li { margin-bottom: 10px; line-height: 1.95; }
.ns-body a { color: #1a2a6c; border-bottom: 1px solid rgba(26,42,108,.3); text-decoration: none; transition: all 0.3s; }
.ns-body a:hover { color: #4facfe; border-color: #4facfe; }
.ns-body blockquote { padding: 20px 26px; background: #f5f8fb; border-left: 4px solid #4facfe; border-radius: 10px; margin: 24px 0; color: #4a5a6a; font-style: italic; font-size: 1.05rem; }
.ns-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 1rem; }
.ns-body th, .ns-body td { padding: 12px 16px; border: 1px solid #e2e8f0; text-align: left; }
.ns-body th { background: #f5f8fb; font-weight: 700; color: #0a1a3a; }

/* 业务引导 */
.ns-service-guide {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #f0f7ff, #e0ebff);
    border-radius: 16px;
    margin: 40px 0;
    border-left: 5px solid #4facfe;
}
.ns-service-guide-text { flex: 1; min-width: 0; }
.ns-service-guide-label { display: inline-block; font-size: 0.85rem; color: #4facfe; font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.ns-service-guide h4 { font-size: 1.35rem; font-weight: 800; color: #0a1a3a; margin: 0 0 6px; }
.ns-service-guide p { font-size: 0.95rem; color: #6a7a8a; margin: 0; }
.ns-service-guide-btn {
    flex-shrink: 0;
    padding: 14px 28px;
    background: linear-gradient(135deg, #1a2a6c, #4facfe);
    color: #fff;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(26,42,108,.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ns-service-guide-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26,42,108,.35); color: #fff; }
.ns-service-guide-btn i { font-size: 0.9rem; }

/* 标签 */
.ns-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px dashed #eef2f6;
    margin-top: 24px;
}
.ns-tags-label { font-size: 0.98rem; color: #8a9aae; font-weight: 600; }
.ns-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f5f8fb;
    color: #4a5a6a;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}
.ns-tag:hover { background: linear-gradient(135deg, #1a2a6c, #4facfe); color: #fff; border-color: transparent; }
.ns-tags-empty { font-size: 0.9rem; color: #b0b8c2; }

/* 分享 */
.share-buttons-enhanced {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 24px 0 36px;
    flex-wrap: wrap;
    padding: 22px 26px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #eef2f6;
}
.share-buttons-enhanced .share-label { font-weight: 700; color: #0a1a3a; font-size: 1rem; flex-shrink: 0; }
.share-buttons-enhanced .share-buttons-list { display: flex; gap: 12px; flex-wrap: wrap; }
.share-buttons-enhanced .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #4a5a6a;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-weight: 500;
}
.share-buttons-enhanced .share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.share-buttons-enhanced .share-wechat:hover { color: #07c160; border-color: #07c160; }
.share-buttons-enhanced .share-weibo:hover  { color: #e6162d; border-color: #e6162d; }
.share-buttons-enhanced .share-qq:hover     { color: #12b7f5; border-color: #12b7f5; }
.share-buttons-enhanced .share-copy:hover   { color: #1a2a6c; border-color: #1a2a6c; }

/* 微信弹层 */
.wechat-qrcode-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.wechat-qrcode-popup.show { display: flex; animation: fadeIn 0.3s ease; }
.wechat-qrcode-inner {
    background: #fff;
    border-radius: 20px;
    padding: 34px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.wechat-qrcode-inner h4 { margin: 0 0 22px; color: #0a1a3a; font-size: 1.35rem; }
.wechat-qrcode-inner #wechatQrcode {
    display: inline-block;
    margin: 10px auto 18px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}
.wechat-qrcode-inner #wechatQrcode img,
.wechat-qrcode-inner #wechatQrcode canvas { display: block; }
.wechat-qrcode-inner p { color: #6a7a8a; font-size: 1rem; margin: 0 0 18px; }
.wechat-popup-close {
    padding: 10px 28px;
    border-radius: 30px;
    border: none;
    background: #1a2a6c;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.wechat-popup-close:hover { background: #0d1b4a; transform: translateY(-2px); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 上一篇 / 下一篇 */
.ns-nav-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid #eef2f6;
    margin-top: 10px;
}
.ns-nav-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: #0a1a3a;
    transition: all 0.3s ease;
}
.ns-nav-btn:hover { background: #fff; border-color: #4facfe; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(26,42,108,.08); }
.ns-nav-btn.next { flex-direction: row-reverse; text-align: right; }
.ns-nav-icon { color: #4facfe; font-size: 1.3rem; flex-shrink: 0; }
.ns-nav-content { flex: 1; min-width: 0; }
.ns-nav-label { display: block; font-size: 0.82rem; color: #8a9aae; margin-bottom: 4px; }
.ns-nav-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #0a1a3a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============ 侧边栏 ============ */
.ns-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }
.ns-side-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(10,26,58,.05);
}
.ns-side-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0a1a3a;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ns-side-title i { color: #4facfe; font-size: 1rem; }

.ns-side-list { list-style: none; padding: 0; margin: 0; }
.ns-side-list li { padding: 12px 0; border-bottom: 1px dashed #eef2f6; }
.ns-side-list li:last-child { border-bottom: none; padding-bottom: 0; }
.ns-side-list a { display: flex; gap: 14px; text-decoration: none; color: inherit; }
.ns-side-list img, .ns-side-list .img-ph {
    width: 84px; height: 84px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.ns-side-list .img-ph {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #d5dee8, #c1cbd6);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.ns-side-list .img-ph::before {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
    background-size: 14px 14px; opacity: 0.5;
}
.ns-side-list .img-ph::after {
    content: '图'; position: relative; z-index: 1;
    font-size: 0.8rem; color: #6a7a8a; font-weight: 600;
}
.ns-side-list-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.ns-side-list-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0a1a3a;
    margin: 0 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ns-side-list-info span { font-size: 0.82rem; color: #8a9aae; display: flex; align-items: center; gap: 4px; }
.ns-side-list a:hover .ns-side-list-info h5 { color: #1a2a6c; }

.ns-side-services { list-style: none; padding: 0; margin: 0; }
.ns-side-services li { border-bottom: 1px dashed #eef2f6; }
.ns-side-services li:last-child { border-bottom: none; }
.ns-side-services a {
    display: block;
    padding: 12px 0;
    color: #4a5a6a;
    text-decoration: none;
    font-size: 0.98rem;
    transition: all 0.3s ease;
    padding-left: 0;
}
.ns-side-services a::before {
    content: '▸';
    color: #4facfe;
    margin-right: 10px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}
.ns-side-services a:hover { color: #1a2a6c; padding-left: 4px; }

.ns-side-cta { background: linear-gradient(135deg, #1a2a6c, #3a5a9a); color: #fff; border: none; }
.ns-side-cta h4 { font-size: 1.1rem; font-weight: 800; color: #fff; margin: 0 0 10px; }
.ns-side-cta p { font-size: 0.95rem; color: rgba(255,255,255,.8); margin: 0 0 20px; line-height: 1.6; }
.ns-side-btn {
    width: 100%;
    padding: 14px 22px;
    background: #fff;
    color: #1a2a6c;
    border: none;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}
.ns-side-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,255,255,.25); }
.ns-side-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 0.98rem;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 60px;
    transition: all 0.3s ease;
}
.ns-side-phone:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.ns-side-phone i { font-size: 0.9rem; }

/* ============ 响应式 ============ */
@media (max-width: 992px) {
    .ns-layout { grid-template-columns: 1fr; gap: 24px; }
    .ns-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .ns-sidebar .ns-side-card { flex: 1; min-width: 300px; }
    .ns-content { padding: 36px; }
    .ns-title { font-size: 1.7rem; }
    .ns-service-guide { flex-direction: column; align-items: flex-start; gap: 18px; }
}
@media (max-width: 576px) {
    .ns-content { padding: 24px; border-radius: 14px; }
    .ns-title { font-size: 1.35rem; }
    .ns-summary { font-size: 1rem; padding-left: 12px; }
    .ns-meta { gap: 12px; font-size: 0.86rem; }
    .ns-body { font-size: 1rem; }
    .ns-body h2 { font-size: 1.3rem; }
    .ns-service-guide { padding: 22px 24px; }
    .ns-service-guide-btn { width: 100%; justify-content: center; }
    .ns-nav-buttons { grid-template-columns: 1fr; }
    .ns-sidebar { flex-direction: column; }
    .ns-sidebar .ns-side-card { min-width: 0; flex: none; width: 100%; }
    .share-buttons-enhanced { flex-direction: column; align-items: flex-start; }
}