/* 全局布局：三栏布局，中间自适应 */
.page-wrapper {
    display: flex;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    min-height: calc(100vh - 120px);
    gap: 0;
}

/* 左侧折叠树：固定宽度，靠左 */
.left-sidebar {
    width: 240px;
    flex-shrink: 0;
    border-right: 1px solid #eaeef5;
    padding: 20px 12px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    position: sticky;
    top: 20px;
    background: #fff;
    box-shadow: 2px 0 8px rgba(66, 153, 255, 0.05);
    z-index: 10;
}
.left-sidebar .title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #4299FF;
    border-bottom: 2px solid #f0f5ff;
    padding-bottom: 10px;
}

/* 折叠树样式 */
.category-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}
/* 一级：类别 */
.category-node {
    margin: 6px 0;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.category-node:hover {
    background: #f8fbff;
}
.category-name {
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    color: #2c3e50;
    transition: all 0.3s ease;
    font-size: 14px;
}
.category-name:hover {
    color: #4299FF;
    background: #f0f7ff;
}
.category-name .icon {
    font-size: 10px;
    color: #4299FF;
    transition: transform 0.3s ease;
    min-width: 10px;
}
.category-name .icon.expanded {
    transform: rotate(90deg);
}
/* 二级：日期 */
.date-list {
    list-style: none;
    padding-left: 8px;
    margin: 4px 0;
}
.date-node {
    margin: 5px 0;
    border-radius: 4px;
    overflow: hidden;
}
.date-str {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #5a6c7d;
    padding: 6px 10px 6px 26px;
    font-size: 13px;
    transition: all 0.2s ease;
}
.date-str:hover {
    color: #4299FF;
    background: #f8fbff;
}
.date-str .icon {
    font-size: 9px;
    color: #4299FF;
    transition: transform 0.3s ease;
    min-width: 9px;
}
.date-str .icon.expanded {
    transform: rotate(90deg);
}
/* 三级：文章 */
.article-list {
    list-style: none;
    padding-left: 18px;
    margin: 4px 0;
}
.article-node {
    margin: 3px 0;
    padding: 5px 10px 5px 40px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.article-node:hover {
    background: #f0f7ff;
}
.article-node a {
    color: #5a6c7d;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    display: block;
    transition: all 0.2s ease;
}
.article-node.active {
    background: #f0f7ff;
    border-left: 3px solid #4299FF;
}
.article-node.active a {
    color: #4299FF;
    font-weight: 500;
}
.article-node a:hover {
    color: #4299FF;
}

/* 加载中/空/错误样式（复用通用JS的样式） */
.article-loading, .article-empty, .article-error {
    padding: 8px 10px 8px 40px;
    font-size: 13px;
    color: #5a6c7d;
}
.article-loading .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #4299FF;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.article-error {
    color: #e53e3e;
}
.article-error .retry {
    color: #4299FF;
    cursor: pointer;
    margin-left: 8px;
    text-decoration: underline;
}
.article-error .retry:hover {
    color: #2563eb;
}

/* 中间文章内容：更宽的区域 */
.main-content {
    flex: 1;
    min-width: 0;
    padding: 0 50px;
    /*max-width: 1200px; !* 大幅增加最大宽度 *!*/
    /*margin: 0 auto;*/
    width: 100%;
}

/* 文章标题样式 */
.article-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a365d;
    margin: 25px 0 20px 0;
    line-height: 1.3;
    padding-top: 10px;
}

/* 文章元信息 */
.article-meta {
    color: #718096;
    font-size: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

/* 企业宣传语样式 - 新增 */
.company-slogan {
    background: linear-gradient(135deg, #fff5f5, #fff0f0);
    border: 2px solid #fed7d7;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0 25px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(254, 215, 215, 0.2);
    animation: pulse 2s infinite;
}
.company-slogan .slogan-text {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    padding-block: 10px;
}
.company-slogan .slogan-text .red-text {
    color: #e53e3e;
}
.company-slogan .slogan-text .black-text {
    color: #2d3748;
    font-weight: 700;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.keywords {
    margin-bottom: 30px;
    padding: 18px;
    background: #f8fbff;
    border-radius: 10px;
    border-left: 4px solid #4299FF;
}

.keywords span {
    display: inline-block;
    background: #e6f2ff;
    color: #4299FF;
    padding: 5px 14px;
    margin: 0 10px 10px 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

/* 右侧目录：固定宽度，字体更小 */
.right-sidebar {
    width: 220px; /* 稍微缩小宽度 */
    flex-shrink: 0;
    border-left: 1px solid #eaeef5;
    padding: 20px 12px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    position: sticky;
    top: 20px;
    background: #fff;
    box-shadow: -2px 0 8px rgba(66, 153, 255, 0.05);
    z-index: 10;
}
.right-sidebar .title {
    font-size: 16px; /* 缩小标题字体 */
    font-weight: 600;
    margin-bottom: 15px;
    color: #4299FF;
    border-bottom: 2px solid #f0f5ff;
    padding-bottom: 10px;
}
.level-wrapper {
    padding: 5px 0;
}
.level-item {
    margin: 6px 0;
    padding: 4px 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}
.level-item.level-2 {
    margin-left: 0;
    padding-left: 10px;
    color: #2c3e50;
    font-size: 13px; /* 缩小字体 */
    font-weight: 500;
}
.level-item.level-3 {
    margin-left: 0;
    padding-left: 20px;
    color: #4a5568;
    font-size: 12px; /* 缩小字体 */
    border-left: 2px solid #e2e8f0;
}
.level-item.level-4 {
    margin-left: 0;
    padding-left: 30px;
    color: #718096;
    font-size: 11px; /* 缩小字体 */
    border-left: 2px solid #e2e8f0;
}
.level-item a {
    color: #4a5568;
    text-decoration: none;
    display: block;
    padding: 1px 0;
    transition: all 0.2s ease;
    font-size: 12px; /* 继承父级字体大小 */
}
.level-item a:hover {
    color: #4299FF;
    transform: translateX(3px);
}
.level-item a.active {
    color: #4299FF;
    font-weight: 500; /* 稍微减小加粗程度 */
    border-left: 3px solid #4299FF;
    padding-left: 8px;
    margin-left: -8px;
    background: linear-gradient(90deg, rgba(66, 153, 255, 0.1), transparent);
}

/* 手机扫码开通试用样式 - 新增 */
.mobile-scan {
    background: linear-gradient(135deg, #f0f9ff, #e6f7ff);
    border: 2px solid #90cdf4;
    border-radius: 15px;
    padding: 25px;
    margin: 40px 0 30px 0;
    text-align: center;
    box-shadow: 0 6px 20px rgba(144, 205, 244, 0.2);
    position: relative;
    overflow: hidden;
}
.mobile-scan::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(66, 153, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}
.mobile-scan .scan-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c5282;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.mobile-scan .qr-codes {
    display: flex;
    justify-content: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}
.mobile-scan .qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}
.mobile-scan .qr-item:hover {
    transform: translateY(-5px);
}
.mobile-scan .qr-image {
    width: 160px;
    height: 160px;
    border: 3px solid #4299FF;
    border-radius: 10px;
    padding: 5px;
    background: white;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(66, 153, 255, 0.2);
}
.mobile-scan .qr-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin-top: 5px;
}

/* 翻页按钮 */
.page-nav {
    margin: 50px 0 40px;
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.page-nav a {
    padding: 14px 24px;
    background: #f8fbff;
    color: #4299FF;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e6f2ff;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
}
.page-nav a:hover {
    background: #4299FF;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 153, 255, 0.3);
}

/* 文章内容区域 */
.article-content {
    line-height: 1.9;
    color: #2d3748;
    font-size: 16px; /* 增大正文字体 */
    margin: 40px 0;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    position: relative;
    padding-top: 15px;
    /*margin-top: -70px;*/
    color: #1a365d;
    font-weight: 600;
}

.article-content h1 {
    font-size: 32px;
    border-bottom: 2px solid #f0f5ff;
    padding-bottom: 12px;
}

.article-content h2 {
    font-size: 28px;
    margin-top: 3px;
    border-left: 5px solid #4299FF;
    padding-left: 18px;
}

.article-content h3 {
    font-size: 24px;
    color: #2c5282;
    margin-top: 30px;
}

.article-content h4 {
    font-size: 20px;
    color: #4299FF;
    margin-top: 25px;
}

.article-content p {
    margin: 25px 0;
    text-align: justify;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin: 8px 0;
    line-height: 1.7;
}

/* 代码块样式 */
.article-content pre {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 15px;
    line-height: 1.6;
}

.article-content code {
    background: #f0f7ff;
    color: #4299FF;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 15px;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* 引用块样式 */
.article-content blockquote {
    border-left: 4px solid #4299FF;
    background: #f8fbff;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4a5568;
}

/* 表格样式 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.article-content table th {
    background: #f0f7ff;
    color: #2c5282;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.article-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.article-content table tr:hover {
    background: #f8fbff;
}

/* 为锚点添加悬停效果 */
.article-content h1:hover::before,
.article-content h2:hover::before,
.article-content h3:hover::before,
.article-content h4:hover::before,
.article-content h5:hover::before,
.article-content h6:hover::before {
    visibility: visible;
}

/* 平滑滚动设置 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

/* 响应式调整 */
@media (max-width: 1600px) {
    .page-wrapper {
        max-width: 100%;
        padding: 0 20px;
    }

    .main-content {
        max-width: 1000px;
        padding: 0 40px;
    }
}

@media (max-width: 1400px) {
    .left-sidebar,
    .right-sidebar {
        width: 200px;
    }

    .main-content {
        max-width: 900px;
        padding: 0 35px;
    }
}

@media (max-width: 1200px) {
    .page-wrapper {
        padding: 0 15px;
    }

    .left-sidebar,
    .right-sidebar {
        width: 180px;
        padding: 15px 8px;
    }

    .main-content {
        max-width: 800px;
        padding: 0 30px;
    }

    .article-title {
        font-size: 32px;
    }
}

/* 移动端适配 */
@media (max-width: 1024px) {
    .page-wrapper {
        flex-direction: column;
        padding: 0;
    }

    .left-sidebar,
    .right-sidebar {
        width: 100%;
        height: auto;
        position: static;
        margin-bottom: 20px;
        padding: 15px 20px;
    }

    .main-content {
        max-width: 100%;
        padding: 0 25px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0 20px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-content {
        font-size: 16px;
    }

    .company-slogan .slogan-text {
        font-size: 16px;
    }

    .mobile-scan .qr-codes {
        flex-direction: column;
        gap: 20px;
    }

    .mobile-scan .qr-image {
        width: 100px;
        height: 100px;
    }

    .mobile-scan .scan-title {
        font-size: 18px;
    }
}



/* 免费试用按钮样式 */
.trial-btn {
    text-decoration: none; /* 去掉链接默认下划线 */
    background-color:  #4299FF; /* 红色背景，与宣传语配色统一 */
    color: white; /* 黑色文字 */
    padding: 8px 20px; /* 内边距，控制按钮大小 */
    border-radius: 20px; /* 大圆角实现圆润效果 */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer; /* 鼠标悬浮显示手型 */
    border: none;
    transition: background-color 0.2s ease; /*  hover 过渡动画 */
}
