@charset "utf-8";
 body { background: #f0f4f8; }
        .page-wrap { max-width: 1480px; margin: 0 auto; padding: 0 5px; }
        @media(min-width:640px)  { .page-wrap { padding: 0 5px; } }
        @media(min-width:1024px) { .page-wrap { padding: 0 8px; } }
        /* ══════════════════════════════════════
      body { background: #f0f4f8; }

        .page-wrap { max-width: 1480px; margin: 0 auto; padding: 0 5px; }
        @media(min-width:640px)  { .page-wrap { padding: 0 5px; } }
        @media(min-width:1024px) { .page-wrap { padding: 0 8px; } }

        /* ══════════════════════════════════════
           TOC 目录样式
        ══════════════════════════════════════ */
        .article-body #ez-toc-container,
        .article-body #toc_container,
        .article-body .ez-toc-container-direction,
        .article-body [class*="toc-container"],
        .article-body [id*="toc_container"] {
            width: 100% !important;
            max-width: 100% !important;
            float: none !important;
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            box-sizing: border-box !important;
            background: #eff6ff !important;
            border: 1.5px solid #bfdbfe !important;
            border-radius: 12px !important;
            padding: 0 !important;
            margin: 0 0 2rem 0 !important;
            box-shadow: 0 2px 12px rgba(37,99,235,.06) !important;
            overflow: visible !important;
        }

        .article-body #ez-toc-container .ez-toc-title-container,
        .article-body #toc_container p.toc_title,
        .article-body [id*="toc_container"] p:first-child {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 8px !important;
            margin: 0 !important;
            padding: 13px 20px !important;
            background: #dbeafe !important;
            border-bottom: 1px solid #bfdbfe !important;
            border-radius: 10px 10px 0 0 !important;
            cursor: pointer !important;
            user-select: none !important;
        }

        .article-body .ez-toc-title,
        .article-body #toc_container .toc_title,
        .article-body [id*="toc"] .toc-title {
            font-size: 1rem !important;
            font-weight: 700 !important;
            color: #1e40af !important;
            text-decoration: none !important;
        }

        .article-body .ez-toc-toggle,
        .article-body #toc_container .toc_toggle,
        .toc-toggle-btn {
            display: inline-flex !important;
            align-items: center !important;
            font-size: .78rem !important;
            font-weight: 600 !important;
            color: #2563eb !important;
            background: #fff !important;
            border: 1px solid #93c5fd !important;
            border-radius: 4px !important;
            padding: 2px 10px !important;
            cursor: pointer !important;
            transition: background .15s !important;
            line-height: 1.6 !important;
            flex-shrink: 0 !important;
        }
        .toc-toggle-btn:hover { background: #dbeafe !important; }

        .article-body #ez-toc-container nav,
        .article-body #toc_container > ul,
        .article-body #toc_container > ol,
        .article-body [id*="toc_container"] > ul,
        .article-body [id*="toc_container"] > ol {
            display: block !important;
            visibility: visible !important;
            padding: 16px 22px 18px 22px !important;
            margin: 0 !important;
        }

        .article-body #ez-toc-container nav ol,
        .article-body #toc_container ol,
        .article-body [id*="toc_container"] ol {
            list-style: decimal !important;
            padding-left: 1.4rem !important;
            margin: 0 !important;
        }
        .article-body #ez-toc-container nav ul,
        .article-body #toc_container ul,
        .article-body [id*="toc_container"] ul {
            list-style: disc !important;
            padding-left: 1.4rem !important;
            margin: 0 !important;
        }

        .article-body #ez-toc-container nav li,
        .article-body #toc_container li,
        .article-body [id*="toc_container"] li {
            margin: 4px 0 !important;
            padding: 0 !important;
            line-height: 1.6 !important;
            color: #374151 !important;
        }

        .article-body #ez-toc-container nav ol ol,
        .article-body #ez-toc-container nav ul ul,
        .article-body #toc_container ol ol,
        .article-body #toc_container ul ul {
            padding-left: 1.3rem !important;
            margin-top: 3px !important;
        }

        .article-body #ez-toc-container nav a,
        .article-body #toc_container a,
        .article-body [id*="toc_container"] a {
            color: #2563eb !important;
            text-decoration: none !important;
            font-size: .9rem !important;
            line-height: 1.65 !important;
            transition: color .15s !important;
        }
        .article-body #ez-toc-container nav a:hover,
        .article-body #toc_container a:hover {
            color: #1d4ed8 !important;
            text-decoration: underline !important;
        }
        .article-body #ez-toc-container nav ol ol a,
        .article-body #toc_container ol ol a { color: #3b82f6 !important; font-size: .86rem !important; }
        .article-body #ez-toc-container nav ol ol ol a,
        .article-body #toc_container ol ol ol a { color: #60a5fa !important; font-size: .83rem !important; }

        /* ══════════════════════════════════════
           Article Body
        ══════════════════════════════════════ */
        .article-body { font-size: 1rem; line-height: 1.5; color: #374151; }
        .article-body h1,.article-body h2,.article-body h3,
        .article-body h4,.article-body h5,.article-body h6 {
            font-weight: 700; color: #111827; margin: 1.5rem 0 .9rem; line-height: 1.2;
        }
        .article-body h2 { font-size: 1.4rem; padding-left: .9rem; border-left: 3px solid #2563eb; }
        .article-body h3 { font-size: 1.15rem; }
        .article-body p  { margin-bottom: 0.8rem; }
        .article-body img {
            max-width: 100%; height: auto; display: block;
            margin: 1.5rem auto; border-radius: 10px;
            box-shadow: 0 4px 18px rgba(0,0,0,.08);
        }
        .article-body a { color: #2563eb; text-decoration: underline; }
        .article-body a:hover { color: #1d4ed8; }
        .article-body ul,.article-body ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
        .article-body li { margin-bottom: .45rem; }
        .article-body blockquote {
            margin: 1.5rem 0; padding: .9rem 1.4rem;
            border-left: 3px solid #2563eb;
            background: #eff6ff; border-radius: 0 8px 8px 0;
            color: #374151; font-style: italic;
        }

        /* ══════════════════════════════════════
           表格 - 响应式核心样式
        ══════════════════════════════════════ */

        /* 1. 包裹层：横向滚动容器 */
        .table-responsive-wrap {
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch; /* iOS 惯性滚动 */
            margin: 1.5rem 0;
            border-radius: 10px;
            border: 1px solid #e5e7eb;
            box-shadow: 0 2px 10px rgba(0,0,0,.04);
            /* 滚动条美化 */
            scrollbar-width: thin;
            scrollbar-color: #93c5fd #f1f5f9;
        }
        .table-responsive-wrap::-webkit-scrollbar {
            height: 5px;
        }
        .table-responsive-wrap::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 3px;
        }
        .table-responsive-wrap::-webkit-scrollbar-thumb {
            background: #93c5fd;
            border-radius: 3px;
        }
        .table-responsive-wrap::-webkit-scrollbar-thumb:hover {
            background: #2563eb;
        }

        /* 滑动提示渐变遮罩（右侧） */
        .table-responsive-outer {
            position: relative;
        }
        .table-responsive-outer::after {
            content: '';
            position: absolute;
            top: 0; right: 0; bottom: 0;
            width: 36px;
            background: linear-gradient(to right, transparent, rgba(255,255,255,.85));
            border-radius: 0 10px 10px 0;
            pointer-events: none;
            opacity: 1;
            transition: opacity .3s;
        }
        /* 完全滚动到底时隐藏渐变 */
        .table-responsive-outer.scrolled-end::after {
            opacity: 0;
        }

        /* 移动端才显示滑动提示标签 */
        .table-scroll-hint {
            display: none;
        }
        @media(max-width: 767px) {
            .table-scroll-hint {
                display: flex;
                align-items: center;
                gap: 5px;
                font-size: .7rem;
                color: #6b7280;
                padding: 5px 10px 7px;
                background: #f8fafc;
                border-bottom: 1px solid #f1f5f9;
            }
            .table-scroll-hint i {
                color: #93c5fd;
                animation: swipe-hint 1.5s ease-in-out infinite;
            }
            @keyframes swipe-hint {
                0%, 100% { transform: translateX(0); }
                50%       { transform: translateX(5px); }
            }
        }

        /* 2. 表格本体 */
        .article-body .table-responsive-wrap table {
            width: 100%;
            min-width: 480px; /* 保证内容不被压缩，触发滚动 */
            border-collapse: collapse;
            margin: 0;        /* 外层已有 margin */
            font-size: .9rem;
        }

        /* 表头 */
        .article-body .table-responsive-wrap table th {
            background: #eff6ff;
            color: #1e40af;
            font-weight: 600;
            white-space: nowrap; /* 表头不换行 */
        }

        .article-body .table-responsive-wrap table th,
        .article-body .table-responsive-wrap table td {
            border: 1px solid #e5e7eb;
            padding: .65rem .9rem;
            text-align: left;
            vertical-align: middle;
        }

        /* 斑马纹 */
        .article-body .table-responsive-wrap table tbody tr:nth-child(even) td {
            background: #f9fafb;
        }
        /* hover 行高亮 */
        .article-body .table-responsive-wrap table tbody tr:hover td {
            background: #eff6ff;
            transition: background .15s;
        }

        /* 3. 兜底：未被包裹的裸 table（防止旧内容溢出） */
        .article-body table {
            width: 100%;
            max-width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            font-size: .9rem;
            display: block;           /* 块级 + overflow 实现自滚动 */
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            white-space: nowrap;       /* 强制内容不换行，撑开宽度 */
        }
        /* 但若已被包裹则还原 display */
        .table-responsive-wrap table {
            display: table !important;
            white-space: normal !important;
        }
        /* td/th 内允许正常换行 */
        .table-responsive-wrap table td,
        .table-responsive-wrap table th {
            white-space: normal;
            word-break: break-word;
        }

        .article-body table th { background: #eff6ff; color: #1e40af; font-weight: 600; }
        .article-body table th,.article-body table td { border: 1px solid #e5e7eb; padding: .65rem .9rem; text-align: left; }
        .article-body strong,.article-body b { font-weight: 700; color: #111827; }

        /* === Author Bio === */
        .author-bio { font-size: .875rem; line-height: 1.75; color: #4b5563; }
        .author-bio p { margin-bottom: .6rem; }
        .author-bio a { color: #2563eb; text-decoration: underline; }
        .author-bio strong,.author-bio b { font-weight: 600; color: #374151; }
        .author-bio ul,.author-bio ol { padding-left: 1.2rem; margin-bottom: .6rem; }
        .author-bio li { margin-bottom: .25rem; }
        .author-bio img { max-width: 100%; border-radius: 6px; margin: .5rem 0; }

        /* === Product image 1:1 === */
        .ratio-box { position: relative; padding-bottom: 100%; overflow: hidden; }
        .ratio-box img {
            position: absolute; inset: 0; width: 100%; height: 100%;
            object-fit: cover; transition: transform .45s ease;
        }
        .prod-card:hover .ratio-box img { transform: scale(1.06); }

        /* === Sidebar sticky === */
        @media(min-width:1024px) { .sidebar-inner { position: sticky; top: 20px; } }

        /* ══════════════════════════════════════
           Sidebar 右侧栏
        ══════════════════════════════════════ */
        .sidebar-news-item {
            display: block;
            padding: 11px 0;
            border-bottom: 1px solid #f1f5f9;
            text-decoration: none !important;
            transition: all .18s;
        }
        .sidebar-news-item:last-child { border-bottom: none; }
        .sidebar-news-item span {
            display: block;
            font-size: .875rem;
            color: #4b5563;
            line-height: 1.55;
            transition: color .18s;
        }
        .sidebar-news-item:hover span { color: #2563eb; }

        /* === Form inputs === */
        .f-input {
            display: block; width: 100%; padding: .65rem .9rem;
            border: 1.5px solid #e5e7eb; border-radius: 8px;
            font-size: .875rem; color: #374151; background: #f8fafc;
            outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
        }
        .f-input:focus { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
        .f-input::placeholder { color: #9ca3af; }

        .card { background: #fff; border-radius: 16px; box-shadow: 0 2px 16px rgba(0,0,0,.05); }

        .share-btn {
            width: 32px; height: 32px; border-radius: 50%;
            display: inline-flex; align-items: center; justify-content: center;
            font-size: 11px; transition: background .2s, color .2s, transform .2s;
        }
        .share-btn:hover { transform: translateY(-2px); }

        .nav-card {
            display: flex; align-items: center; gap: 14px;
            background: #fff; border-radius: 12px;
            border: 1.5px solid #e5e7eb; padding: 16px 18px;
            transition: border-color .2s, box-shadow .2s;
        }
        .nav-card:hover { border-color: #93c5fd; box-shadow: 0 4px 18px rgba(37,99,235,.1); }
        .nav-icon {
            flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
            background: #eff6ff; color: #2563eb;
            display: flex; align-items: center; justify-content: center;
            font-size: 13px; transition: background .2s, color .2s;
        }
        .nav-card:hover .nav-icon { background: #2563eb; color: #fff; }

        ::-webkit-scrollbar { width: 5px; }
        ::-webkit-scrollbar-track { background: #f1f5f9; }
        ::-webkit-scrollbar-thumb { background: #93c5fd; border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: #2563eb; }
@media (max-width: 768px) {
    .section-rich-text table {
        background-image: linear-gradient(to right, white, white), 
                          linear-gradient(to right, white, white), 
                          linear-gradient(to right, rgba(0,0,0,0.1), rgba(255,255,255,0)), 
                          linear-gradient(to left, rgba(0,0,0,0.1), rgba(255,255,255,0));
        background-position: left center, right center, left center, right center;
        background-repeat: no-repeat;
        background-size: 20px 100%, 20px 100%, 10px 100%, 10px 100%;
        background-attachment: local, local, scroll, scroll;
    }
}