@charset "utf-8";

/* =========================================
   1. 设计系统 (Design Tokens - 仅用于右侧美化)
   ========================================= */
:root {
    /* 用户指定的商务主题色 */
    --article-primary: #1d4ed8;       /* 品牌主色 (深蓝) */
    --article-primary-light: #3b82f6;       /* 亮蓝 (Hover态) */
    --article-secondary: #eff6ff;     /* 极浅蓝 (背景装饰) */
    --article-bg: #f8fafc;    /* 页面底色 (灰白) */
    --article-accent: #f59e0b;        /* 强调色 (橙色/星级) */
    --article-text: #0f172a;          /* 主要文字 (深邃黑) */
    --article-muted: #64748b;          /* 次要文字 (灰) */
    --article-border: #e2e8f0;        /* 边框色 */

    /* 阴影系统 */
    --article-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --article-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --article-shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* 动画曲线 */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置 (仅针对详情页容器) */
.ny {
    background-color: var(--article-bg);
    padding-bottom: 60px;
}

/* =========================================
   2. 主体布局 (CSS Grid)
   ========================================= */
.ny .container {
    display: grid;
    /* 保持左侧栏原有宽度 300px，右侧自适应 */
    grid-template-columns: 300px 1fr; 
    gap: 20px; /* 原有间距 margin-right: 20px */
    align-items: start;
    position: relative;
    padding-top: 30px;
}

/* 重置浮动，适配 Grid */
.ny .fl, .ny .fr { 
    float: none !important; 
    width: auto !important; 
    margin: 0 !important; 
}
.ny .fr { min-width: 0; } 

/* =========================================
   3. 右侧内容美化 (Strictly Reference)
   ========================================= */

/* --- 面包屑导航 --- */
.breadcrumb-wrapper { 
    margin-bottom: 20px; 
    font-size: 13px; 
    color: var(--article-muted);
    background: transparent;
    padding: 0;
}
.breadcrumb a { color: var(--article-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--article-primary); }
.breadcrumb .current { color: var(--article-primary); font-weight: 600; }
.breadcrumb .separator { margin: 0 8px; color: #cbd5e1; }

/* --- 文章详情卡片 --- */
.article-detail {
    background: #fff; 
    padding: 50px; 
    border-radius: 16px; 
    box-shadow: var(--article-shadow-sm); 
    border: 1px solid var(--article-border);
}

/* 头部 */
.article-header { border-bottom: 1px solid var(--article-border); padding-bottom: 25px; margin-bottom: 30px; }
.article-header h1 { font-size: 26px; margin-bottom: 20px; color: var(--article-text); line-height: 1.4; font-weight: 700; }
.article-header .tit-s { 
    background: var(--article-secondary); color: var(--article-primary); 
    font-size: 12px; padding: 4px 10px; margin-left: 15px; 
    border-radius: 20px; vertical-align: middle; font-weight: 600;
}
.article-meta { 
    color: var(--article-muted);
    font-size: 13px;
    display: flex !important;
    align-items: center;
    flex-direction: row;
    gap: 22px;
    flex-wrap: nowrap;
    padding: 8px 14px;
    margin: 10px 0 0;
    background: #f8fafc;
    border: none;
    border-radius: 8px;
    box-shadow: none;
}
.article-meta::before { content: none; display: none; }
.article-meta .meta-item { 
    display: inline-flex; 
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    width: auto;
    padding: 0;
    background: transparent;
    border: none;
    border-left: 0;
    border-radius: 0;
    line-height: 1.2;
    transform: none;
}
.article-meta .meta-item:hover { background: transparent; transform: none; }
.article-meta i { margin-right: 6px; color: var(--article-primary-light); }
.article-meta strong { font-weight: 600; color: var(--article-text); }

/* 核心摘要 */
.article-summary {
    background: var(--article-secondary);
    border-left: 5px solid var(--article-primary);
    padding: 20px 25px;
    margin: 30px 0;
    color: var(--article-text);
    border-radius: 0 8px 8px 0;
}
.article-summary p { margin: 0; font-size: 15px; font-style: italic; }
.article-summary strong { color: var(--article-primary); font-style: normal; }

/* 文章目录 (TOC) */
.article-toc {
    background: #f8fafc;
    border: 1px solid var(--article-border);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 0 0 30px;
}
.toc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--article-text);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--article-border);
}
.toc-title i { color: var(--article-primary); margin-right: 6px; }
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc-counter;
}
.toc-list li {
    margin-bottom: 6px;
    line-height: 1.6;
}
.toc-list li a {
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: inline-block;
    padding: 2px 0;
}
.toc-list li a:hover { color: var(--article-primary); }
.toc-list li.toc-h3 { padding-left: 20px; }
.toc-list li.toc-h3 a { font-size: 13px; color: #64748b; }

/* 正文 */
.article-content {
    font-size: 16px;
    line-height: 2;
    color: #334155;
    margin-bottom: 50px;
    text-align: justify;
    word-break: break-word;
    overflow-wrap: break-word;
}
.article-content p { margin-bottom: 22px; }

/* 正文 - 标题层级 */
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5 {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.4;
    margin: 36px 0 16px;
}
.article-content h2 {
    font-size: 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--article-primary);
    position: relative;
}
.article-content h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--article-primary);
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: text-bottom;
}
.article-content h3 {
    font-size: 19px;
    padding-left: 14px;
    border-left: 4px solid var(--article-primary);
}
.article-content h4 {
    font-size: 17px;
    color: #1e293b;
    padding-left: 12px;
    border-left: 3px solid #93c5fd;
}
.article-content h5 {
    font-size: 15px;
    color: #475569;
}

/* 正文 - 图片增强 */
.article-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 24px auto;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.article-content img:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.article-content p:has(> img:only-child) {
    text-align: center;
    margin-bottom: 8px;
    line-height: 0;
}

/* 正文 - 引用块 */
.article-content blockquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-left: 5px solid var(--article-primary);
    border-radius: 0 10px 10px 0;
    color: #1e40af;
    font-size: 15px;
    line-height: 1.8;
    font-style: italic;
    position: relative;
}
.article-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 12px;
    font-size: 48px;
    color: #93c5fd;
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.5;
}
.article-content blockquote p { margin-bottom: 8px; }
.article-content blockquote p:last-child { margin-bottom: 0; }

/* 正文 - 无序列表 */
.article-content ul {
    padding-left: 8px;
    margin: 20px 0;
    list-style: none;
}
.article-content ul > li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    line-height: 1.8;
}
.article-content ul > li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--article-primary);
}

/* 正文 - 有序列表 */
.article-content ol {
    counter-reset: ol-counter;
    padding-left: 8px;
    margin: 20px 0;
    list-style: none;
}
.article-content ol > li {
    counter-increment: ol-counter;
    position: relative;
    padding-left: 36px;
    margin-bottom: 12px;
    line-height: 1.8;
}
.article-content ol > li::before {
    content: counter(ol-counter);
    position: absolute;
    left: 0;
    top: 3px;
    width: 24px;
    height: 24px;
    background: var(--article-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 正文 - 表格 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}
.article-content table th {
    background: var(--article-primary);
    color: #fff;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
}
.article-content table td {
    padding: 13px 18px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 14px;
}
.article-content table tr:nth-child(even) { background: #f8fafc; }
.article-content table tr:hover { background: #eff6ff; }
.article-content table tr:last-child td { border-bottom: none; }

/* 正文 - 链接 */
.article-content a {
    color: var(--article-primary);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dashed #93c5fd;
    transition: all 0.2s;
}
.article-content a:hover {
    color: var(--article-primary-light);
    border-bottom-color: var(--article-primary-light);
    border-bottom-style: solid;
}

/* 正文 - 代码 */
.article-content code {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e11d48;
    font-family: 'Courier New', Courier, monospace;
}
.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.7;
    margin: 24px 0;
}
.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* 正文 - 分隔线 */
.article-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
    margin: 36px 0;
}

/* 正文 - 加粗与强调 */
.article-content strong {
    color: #0f172a;
    font-weight: 700;
}
.article-content em {
    color: #475569;
    font-style: italic;
}

/* 正文 - 富文本兜底 */
.article-content [style*="width"] { max-width: 100% !important; }
.article-content iframe,
.article-content video,
.article-content embed,
.article-content object {
    max-width: 100% !important;
}

/* 作者卡片 (商务风) */
.author-bio-box {
    background: #f0f7ff; 
    border: 1px solid #dbeafe;
    border-left: 5px solid #1d4ed8; 
    border-radius: 6px; 
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.author-bio-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    background: #eff6ff;
}
.author-avatar {
    width: 56px; height: 56px; background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #1d4ed8; font-size: 24px; box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #bfdbfe; flex-shrink: 0;
}
.author-info h4 {
    font-size: 16px; color: #0f172a; font-weight: 700; margin: 0 0 6px 0;
    display: flex; align-items: center; gap: 8px;
}
.author-info h4::after {
    content: '✓ 认证专家'; font-size: 11px; font-weight: 500;
    background: #dbeafe; color: #1e40af; padding: 2px 6px; border-radius: 4px;
}
.author-info p { font-size: 14px; color: #475569; margin: 0; line-height: 1.6; }

/* 版权声明 (徽章化) */
.entry-copyright {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 12px 20px;
    margin-top: 0; margin-bottom: 30px;
    font-size: 13px; color: #64748b;
    display: flex; align-items: center; gap: 10px;
}
.entry-copyright i { color: #f59e0b; }
.entry-copyright strong { color: #0f172a; font-weight: 600; }
.entry-copyright a { color: var(--article-primary); }

/* 标签 */
.tags { margin-top: 30px; margin-bottom: 0; border: none; padding: 0; }
.tags i { color: var(--article-primary); margin-right: 5px; }
.tags span { color: var(--article-text); font-weight: 600; font-size: 14px; }
.tags a { 
    display: inline-block; padding: 6px 16px; background: #fff; border: 1px solid var(--article-border);
    color: var(--article-muted); font-size: 13px; border-radius: 20px; margin-right: 8px; margin-bottom: 8px;
    text-decoration: none; transition: all 0.3s;
}
.tags a:hover { 
    border-color: var(--article-primary); color: var(--article-primary); background: #fff;
}

/* 上下篇导航 */
.article-nav { 
    display: flex; justify-content: space-between; margin-top: 40px; padding-top: 30px; 
    border-top: 1px solid var(--article-border); margin-bottom: 0;
}
.nav-item { width: 48%; background: none; border: none; padding: 0; }
.nav-item:hover { background: none; border: none; }
.nav-label { display: block; font-size: 12px; color: var(--article-muted); margin-bottom: 5px; }
.nav-label i { color: var(--article-primary); }
.nav-item a { 
    font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; 
    color: var(--article-text); font-size: 15px;
}
.nav-item a:hover { color: var(--article-primary); text-decoration: none; }

/* --- 相关产品 (Grid布局) --- */
.xg-pro { margin-top: 60px; }
.xg-pro .tit { 
    border-bottom: 2px solid var(--article-border); margin-bottom: 30px; 
    padding-bottom: 15px; position: relative;
    text-align: left;
}
.xg-pro .tit span { 
    font-size: 22px; font-weight: 800; color: var(--article-text); 
    position: relative; background: none; padding: 0;
}
.xg-pro .tit span::after {
    content: ''; position: absolute; bottom: -17px; left: 0; width: 100%; height: 2px;
    background: var(--article-primary);
}
.xg-pro ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    list-style: none;
    padding: 0;
}
.xg-pro ul li {
    float: none;
    display: block;
    background: #fff;
    border: 1px solid var(--article-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    margin: 0; width: auto; height: auto;
}
.xg-pro li:hover {
    transform: translateY(-8px);
    box-shadow: var(--article-shadow-float);
    border-color: var(--article-primary-light);
}
.xg-pro img { width: 100%; height: 180px; object-fit: cover; background: #f1f5f9; }
.xg-pro p { 
    padding: 15px; text-align: center; font-size: 15px; font-weight: 600; 
    color: var(--article-text); border-top: 1px solid #f1f5f9; margin: 0; height: auto; line-height: 1.5;
}
.xg-pro li:hover p { color: var(--article-primary); }

/* --- 客户评价模块 --- */
.review-section {
    margin-top: 60px; background: #fff; padding: 40px;
    border-radius: 16px; border: 1px solid var(--article-border);
}
.review-title {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 2px solid var(--article-border); padding-bottom: 12px; margin-bottom: 24px;
}
.review-title h3 {
    margin: 0; font-size: 22px; font-weight: 800; display: flex;
    align-items: center; gap: 8px; color: var(--article-text);
}
.review-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.review-card {
    background: var(--article-bg); border-radius: 12px;
    border: 1px solid var(--article-border); padding: 24px;
    transition: all 0.3s var(--ease-out);
}
.review-card:hover {
    box-shadow: var(--article-shadow-md); transform: translateY(-2px);
    background: #fff; border-color: var(--article-primary-light);
}
.review-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.reviewer-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 600; color: #fff; flex-shrink: 0;
}
.reviewer-info { flex: 1; }
.reviewer-name {
    font-size: 15px; font-weight: 600; color: var(--article-text);
    display: flex; align-items: center; gap: 6px;
}
.reviewer-company { font-size: 13px; color: var(--article-muted); margin-top: 2px; }
.verified-badge {
    display: inline-flex; align-items: center; gap: 3px; font-size: 11px;
    background: #dbeafe; color: #1d4ed8; padding: 2px 8px; border-radius: 10px; font-weight: 500;
}
.review-stars { color: var(--article-accent); font-size: 13px; letter-spacing: 1px; margin-bottom: 10px; }
.review-text { font-size: 14px; color: var(--article-muted); line-height: 1.7; }
.review-date { font-size: 12px; color: #94a3b8; margin-top: 12px; }

/* --- 预约动态模块 --- */
.booking-section {
    margin-top: 60px; background: #fff; padding: 40px;
    border-radius: 16px; border: 1px solid var(--article-border);
}
.booking-live-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #22c55e; animation: booking-blink 1.5s infinite;
}
@keyframes booking-blink { 0%,100%{ opacity:1; } 50%{ opacity:0.3; } }
.booking-scroll-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.booking-row {
    display: none; align-items: center; gap: 14px;
    padding: 16px 20px; border-radius: 10px;
    background: var(--article-bg); border: 1px solid transparent;
    transition: all 0.3s var(--ease-out);
}
.booking-row.active { display: flex; }
.booking-row:hover {
    background: #fff; border-color: var(--article-primary-light);
    box-shadow: var(--article-shadow-md); transform: translateY(-1px);
}
.booking-row-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px; flex-shrink: 0;
}
.booking-row-text {
    flex: 1; font-size: 14px; color: #475569; line-height: 1.6;
}
.booking-row-text strong { color: var(--article-primary); font-weight: 600; }
.booking-row-time {
    font-size: 11px; color: #94a3b8; white-space: nowrap; flex-shrink: 0;
    background: #f1f5f9; padding: 3px 10px; border-radius: 12px;
}

/* =========================================
   营销引导CTA模块
   ========================================= */
.article-cta-box {
    padding: 24px 28px;
    background: linear-gradient(135deg, #EFF6FF, #F0F9FF);
    border-radius: 12px;
    border: 1px solid #BFDBFE;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.article-cta-box .cta-text {
    font-size: 14px;
    color: #1E40AF;
    line-height: 1.8;
}
.article-cta-box .cta-text strong {
    font-size: 16px;
    color: #1E3A8A;
}
.article-cta-box .cta-btn {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.article-cta-box .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* 左侧分类导航美化 - 已移至全局 css.css */
