/* ============================================================
 * 前端扩展样式（不修改原 style.css）
 * 涵盖：子页面 banner、产品网格、新闻列表、分页、详情页布局、
 *       侧栏、表单、面包屑、案例网格、搜索结果、轮播修饰、富文本
 * ============================================================ */

/* ---------- 全局重置：默认去掉 li/ul/ol 前面的点/编号 ----------
 * 需要保留编号样式的列表（如关于我们 .tab-about .rich-text ol）
 * 已在各自作用域内显式设置 list-style: none + 自定义 counter，不受影响
 */
ul, ol, li {
    list-style: none;
}

/* ---------- 全局容器 ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-main {
    min-height: 60vh;
}

/* ---------- 子页面 banner ---------- */
/* 首页用 .hero，子页面用 .page-banner。子页面高度缩小一半，节省首屏空间 */
.page-banner {
    position: relative;
    height: 30vh;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30,58,138,.7), rgba(59,130,246,.5));
}
.page-banner-inner {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}
.page-banner h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
@media (max-width: 768px) {
    .page-banner { height: 20vh; min-height: 110px; }
    .page-banner h1 { font-size: 22px; }
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    padding: 16px 0;
    color: #6b7280;
    font-size: 14px;
}
.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span + span { margin-left: 8px; }
.breadcrumb > a + span,
.breadcrumb > span + span { margin-left: 8px; }

/* ---------- 简洁的页面标题区（无大 banner 时使用） ---------- */
.page-header {
    text-align: center;
    padding: 30px 0 36px;
    margin: 0 auto;
}
.page-header-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-header-desc {
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}
/* 紧凑变体：只有描述，无大标题（与 banner 配合使用） */
.page-header-compact {
    padding: 24px 0 8px;
    text-align: center;
    max-width: 720px;
}
@media (max-width: 768px) {
    .page-header { padding: 20px 16px 28px; }
    .page-header-title { font-size: 24px; }
    .page-header-desc { font-size: 14px; }
}

/* ---------- 筛选条 ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 30px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 10px;
}
.filter-item {
    display: inline-block;
    padding: 6px 18px;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    transition: all .2s;
}
.filter-item:hover { color: #2563eb; border-color: #2563eb; }
.filter-item.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* ---------- 产品网格 ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; }
}
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
.product-cover {
    display: block;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    overflow: hidden;
}
.product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info { padding: 18px 20px 22px; }
.product-tag {
    display: inline-block;
    font-size: 12px;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.product-info h3 {
    font-size: 18px;
    margin: 4px 0 8px;
    color: #1e293b;
}
.product-info h3 a {
    color: inherit;
    text-decoration: none;
}
.product-info h3 a:hover { color: #2563eb; }
.product-subtitle {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 6px;
}
.product-summary {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ---------- 案例网格 ---------- */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 992px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .case-grid { grid-template-columns: 1fr; } }
.case-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 16px rgba(0,0,0,.05);
    transition: transform .25s, box-shadow .25s;
    display: block;
}
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
.case-cover {
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    overflow: hidden;
}
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-info { padding: 18px 20px 22px; }
.case-industry {
    display: inline-block;
    font-size: 12px;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.case-info h3 { font-size: 18px; margin: 4px 0 8px; color: #1e293b; }
.case-info p { color: #475569; font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- 新闻列表 ---------- */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-list-item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    transition: box-shadow .2s;
}
.news-list-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.news-list-cover {
    flex: 0 0 220px;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
}
.news-list-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-list-body { flex: 1; }
.news-list-body h3 { font-size: 18px; margin: 0 0 8px; }
.news-list-body h3 a { color: #1e293b; text-decoration: none; }
.news-list-body h3 a:hover { color: #2563eb; }
.news-meta { color: #94a3b8; font-size: 13px; display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.news-summary { color: #475569; font-size: 14px; line-height: 1.7; margin: 0; }
@media (max-width: 600px) {
    .news-list-item { flex-direction: column; }
    .news-list-cover { flex: none; width: 100%; }
}

/* ---------- 分页 ---------- */
.pagination {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    justify-content: center;
}
.pagination a,
.pagination span {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    padding: 0 10px;
    font-size: 14px;
    background: #fff;
}
.pagination a:hover { color: #2563eb; border-color: #2563eb; }
.pagination .active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.pagination .disabled { color: #cbd5e1; cursor: not-allowed; }
.pagination .total {
    margin-left: 10px;
    color: #94a3b8;
    border: none;
    background: transparent;
}

/* ---------- 详情页布局 ---------- */
.detail-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 60px;
}
.detail-main { flex: 1; min-width: 0; }
.detail-sidebar { flex: 0 0 240px; min-width: 0; }
@media (max-width: 992px) {
    .detail-layout { flex-direction: column; }
    .detail-sidebar { width: 100%; flex: none; }
}
.sidebar-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.sidebar-card h3 {
    font-size: 16px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2563eb;
    color: #1e293b;
}
.sidebar-card p { font-size: 14px; color: #475569; line-height: 1.8; margin: 0 0 4px; }
.sidebar-card .btn { display: inline-block; margin-top: 10px; }

/* 推荐产品列表 */
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { border-bottom: 1px dashed #e2e8f0; }
.related-list li:last-child { border-bottom: none; }
.related-list a {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    color: #334155;
    align-items: center;
}
.related-list a:hover .related-name { color: #2563eb; }
.related-cover {
    width: 56px;
    height: 56px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
    flex: 0 0 56px;
}
.related-cover img { width: 100%; height: 100%; object-fit: cover; }
.related-info { flex: 1; min-width: 0; }
.related-name { font-size: 14px; }
.related-sub { font-size: 12px; color: #94a3b8; margin-top: 2px; }

/* 热门排行 */
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
    min-width: 0;
}
.rank-list li:last-child { border-bottom: none; }
.rank-num {
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: #cbd5e1;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    flex: 0 0 22px;
}
.rank-1 { background: #ef4444; }
.rank-2 { background: #f97316; }
.rank-3 { background: #eab308; }
.rank-list a {
    flex: 1;
    min-width: 0;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.rank-list a:hover,
.rank-list a.active { color: #2563eb; }

/* ---------- 图集 ---------- */
.product-gallery,
.case-gallery {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    margin-bottom: 24px;
}
.gallery-main {
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #f1f5f9;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: #2563eb; }

/* ---------- 产品详情头部 ---------- */
.product-header {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    margin-bottom: 24px;
}
.product-title { font-size: 28px; color: #1e293b; margin-bottom: 6px; }
.product-subtitle { color: #2563eb; font-size: 16px; margin-bottom: 12px; }
.product-summary { color: #475569; line-height: 1.8; font-size: 15px; margin: 0; }

/* ---------- 参数表 ---------- */
.param-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.param-table th,
.param-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    font-size: 14px;
}
.param-table th {
    background: #f8fafc;
    color: #475569;
    width: 140px;
    font-weight: 600;
}
.param-table tr:last-child th,
.param-table tr:last-child td { border-bottom: none; }

/* ---------- 详情块 ---------- */
.detail-block {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    margin-bottom: 24px;
}
.block-title {
    font-size: 20px;
    color: #1e293b;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

/* ---------- 上一篇 / 下一篇 ---------- */
.prev-next {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.pn-item { flex: 1; min-width: 0; }
.pn-next { text-align: right; }
.pn-item a {
    color: #334155;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pn-item a:hover .pn-title { color: #2563eb; }
.pn-label { color: #94a3b8; font-size: 13px; }
.pn-title { font-size: 14px; }
.pn-empty { color: #cbd5e1; font-size: 14px; }

/* ---------- 文章页（2026-07-19 升级版：精致杂志风） ---------- */
.article {
    position: relative;
    background: #fff;
    padding: 48px 56px 56px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .06);
}

/* 装饰角标 */
.article-deco {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    height: 4px;
    pointer-events: none;
    display: flex;
    gap: 6px;
}
.article-deco-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    border-radius: 2px;
    opacity: .55;
}

.article-title {
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin: 12px 0 22px;
    line-height: 1.4;
    letter-spacing: .3px;
}

.article-meta {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 18px;
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}
.article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.article-meta-icon {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    flex-shrink: 0;
}

/* 主图：杂志风配图 */
.article-cover {
    margin: 0 0 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(15, 23, 42, .12);
    text-align: center;
    background: #f1f5f9;
}
.article-cover img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s ease;
}
.article-cover:hover img { transform: scale(1.02); }
.article-cover figcaption {
    margin-top: 10px;
    padding: 0 10px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    font-style: italic;
}

/* 文章正文：排版优化 */
.article-content {
    color: #334155;
    font-size: 16px;
    line-height: 1.95;
    word-break: break-word;
}
.article-content h2 {
    position: relative;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 40px 0 16px;
    padding: 6px 0 6px 16px;
    border-left: 5px solid #2563eb;
    background: linear-gradient(90deg, rgba(37, 99, 235, .06), transparent 60%);
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
}
.article-content h2:first-child { margin-top: 8px; }
.article-content h3 {
    position: relative;
    font-size: 18px;
    font-weight: 600;
    color: #1d4ed8;
    margin: 30px 0 12px;
    padding-left: 12px;
}
.article-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 18px;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
    border-radius: 2px;
}
.article-content p {
    margin: 0 0 16px;
    text-align: justify;
    text-justify: inter-ideograph;
}
.article-content strong {
    color: #0f172a;
    font-weight: 600;
    background: linear-gradient(transparent 60%, rgba(250, 204, 21, .35) 60%);
    padding: 0 2px;
}
.article-content em { color: #475569; font-style: italic; }

.article-content ul,
.article-content ol {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}
.article-content ul li,
.article-content ol li {
    position: relative;
    padding: 8px 0 8px 26px;
    line-height: 1.85;
    border-bottom: 1px dashed #f1f5f9;
}
.article-content ul li:last-child,
.article-content ol li:last-child { border-bottom: none; }
.article-content ul li::before {
    content: "▸";
    position: absolute;
    left: 6px;
    top: 8px;
    color: #2563eb;
    font-size: 14px;
    line-height: 1.85;
}
.article-content ol {
    counter-reset: hlz-ol;
}
.article-content ol li {
    counter-increment: hlz-ol;
    padding-left: 32px;
}
.article-content ol li::before {
    content: counter(hlz-ol);
    position: absolute;
    left: 0;
    top: 8px;
    width: 22px;
    height: 22px;
    background: #2563eb;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
}

/* 引用块 */
.article-content blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border-left: 4px solid #2563eb;
    border-radius: 0 10px 10px 0;
    color: #334155;
    font-size: 15px;
    line-height: 1.9;
    position: relative;
    box-shadow: 0 2px 10px rgba(37, 99, 235, .06);
}
.article-content blockquote p { margin: 0 0 6px; }
.article-content blockquote p:last-child { margin: 0; }
.article-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 8px;
    font-size: 56px;
    color: #2563eb;
    opacity: .15;
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

/* 行内代码 */
.article-content code {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 1px 6px;
    color: #be185d;
    font-size: 14px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* 链接 */
.article-content a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, .35);
    transition: all .2s;
}
.article-content a:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
    background: rgba(37, 99, 235, .06);
}

/* 文章内图片 */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

/* 文末来源声明 */
.article-footer-tip {
    margin-top: 36px;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.article-footer-tip strong { color: #2563eb; }

/* 阅读进度条 */
.read-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 200;
    pointer-events: none;
}
.read-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2563eb, #06b6d4, #8b5cf6);
    transition: width .1s linear;
    box-shadow: 0 0 8px rgba(37, 99, 235, .6);
}

/* 响应式 */
@media (max-width: 768px) {
    .article { padding: 32px 22px 38px; }
    .article-title { font-size: 22px; margin: 8px 0 16px; }
    .article-meta { gap: 10px; font-size: 12px; padding-bottom: 14px; margin-bottom: 22px; }
    .article-content { font-size: 15px; line-height: 1.85; }
    .article-content h2 { font-size: 19px; margin: 30px 0 12px; }
    .article-content h3 { font-size: 16px; margin: 22px 0 10px; }
    .article-deco { top: 16px; left: 16px; right: 16px; }
}

/* ---------- 表单 ---------- */
.contact-form .form-row {
    display: flex;
    gap: 16px;
}
.contact-form .form-row .form-group { flex: 1; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 14px;
    color: #334155;
    margin-bottom: 6px;
}
.required { color: #ef4444; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.form-card h3 { font-size: 20px; margin-bottom: 6px; color: #1e293b; }
.form-desc { color: #94a3b8; font-size: 14px; margin-bottom: 18px; }

.map-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.map-card h3 { font-size: 18px; margin-bottom: 12px; color: #1e293b; }
.map-placeholder {
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}
.map-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.map-tip {
    margin: 10px 0 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
}
.map-coord {
    display: inline-block;
    padding: 1px 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12px;
    color: #334155;
    margin: 0 2px;
}
.map-nav-btn {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 12px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all .2s;
    box-shadow: 0 2px 6px rgba(59, 130, 246, .25);
}
.map-nav-btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, .35);
}

/* 公司位置动态地图（Leaflet） */
.contact-map {
    width: 100%;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
    transition: border-color .2s, box-shadow .2s;
}
.contact-map:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 14px rgba(59, 130, 246, .15);
}
@media (max-width: 768px) {
    .contact-map { height: 260px; }
}

.contact-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 30px 0 50px;
}
@media (max-width: 768px) {
    .contact-grid-2 { grid-template-columns: 1fr; }
    .contact-form .form-row { flex-direction: column; gap: 0; }
}

/* ============================================================
 * 联系页 / 招聘模块（contact.php）专用样式
 * ============================================================ */
.contact-section,
.recruit-section {
    margin: 30px 0 40px;
}

.section-head {
    text-align: center;
    margin-bottom: 28px;
}
.section-title {
    font-size: 28px;
    color: #1e293b;
    font-weight: 700;
    margin: 0 0 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.section-icon {
    font-size: 28px;
}
.section-sub {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}
@media (max-width: 768px) {
    .section-title { font-size: 22px; }
    .section-sub { font-size: 13px; }
}

/* ---------- 联系卡（白底增强版：每张卡独立主题色） ---------- */
/* 4 列 → 2 列 → 1 列 响应式（前台 contact.php 专用，
   主页 .contact .contact-grid 在 style.css 中定义为深色版本，不冲突） */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 10px 0 30px;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== 卡片容器：左大图标 + 右内容（两栏式） ===== */
.contact-card {
    /* 默认主题色（蓝色），由 .theme-* 覆盖 */
    --card-color:        #2563eb;
    --card-color-2:      #06b6d4;
    --card-icon-bg-1:    rgba(37, 99, 235, 0.10);
    --card-icon-bg-2:    rgba(6, 182, 212, 0.10);
    --card-icon-border:  rgba(37, 99, 235, 0.18);
    --card-icon-color:   #2563eb;

    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 26px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1),
                box-shadow .3s,
                border-color .3s;
    overflow: hidden;
}

/* 卡片左侧色条（细竖线） */
.contact-card::before {
    content: "";
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--card-color), var(--card-color-2));
    border-radius: 0 4px 4px 0;
    transition: width .3s;
}
.contact-card:hover::before { width: 6px; }

.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-color);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
}

/* ===== 左侧大图标（圆形渐变背景） ===== */
.contact-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--card-icon-bg-1), var(--card-icon-bg-2));
    border: 1px solid var(--card-icon-border);
    border-radius: 16px;
    color: var(--card-icon-color);
    transition: transform .3s, background .3s, border-color .3s, box-shadow .3s, color .3s;
}
.contact-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 2;
    transition: transform .3s;
}
.contact-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin: 0;
    transition: transform .3s, filter .3s;
}

/* 悬停：图标变实色渐变 + 反白 */
.contact-card:hover .contact-icon {
    background: linear-gradient(135deg, var(--card-color), var(--card-color-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .25);
    transform: scale(1.05);
}
.contact-card:hover .contact-icon svg { transform: scale(1.08); }
.contact-card:hover .contact-icon img { filter: brightness(0) invert(1); transform: scale(1.08); }

/* ===== 右侧内容区 ===== */
.contact-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-card h3 {
    font-size: 17px;
    color: #0f172a;
    margin: 0 0 4px;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1.3;
    display: block;
}
/* 移除原 h3::after 色点（改用左侧竖色条） */
.contact-card h3::after { display: none; }

.contact-card p {
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
    word-break: break-all;
}
.contact-sub {
    color: #94a3b8 !important;
    font-size: 13px !important;
    margin-top: 2px !important;
}

/* ===== 行动按钮（链接） ===== */
.contact-action {
    margin-top: 10px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 13px;
    color: var(--card-color);
    background: var(--card-icon-bg-1);
    border: 1px solid var(--card-icon-border);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.contact-action:hover {
    background: linear-gradient(135deg, var(--card-color), var(--card-color-2));
    color: #fff;
    border-color: transparent;
    transform: translateX(2px);
}

/* ===== 工作时间在线状态徽标 ===== */
.contact-status {
    margin-top: 10px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 12.5px;
    color: #10b981;
    background: rgba(16, 185, 129, 0.10);
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 999px;
    font-weight: 500;
}
.contact-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .6);
    animation: hlz-pulse 1.8s ease-out infinite;
}
@keyframes hlz-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); }
    70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ---------- 主题色变体 ---------- */
.contact-card.theme-blue {
    --card-color:        #2563eb;
    --card-color-2:      #06b6d4;
    --card-icon-bg-1:    rgba(37, 99, 235, 0.10);
    --card-icon-bg-2:    rgba(6, 182, 212, 0.10);
    --card-icon-border:  rgba(37, 99, 235, 0.18);
}
.contact-card.theme-green {
    --card-color:        #10b981;
    --card-color-2:      #14b8a6;
    --card-icon-bg-1:    rgba(16, 185, 129, 0.10);
    --card-icon-bg-2:    rgba(20, 184, 166, 0.10);
    --card-icon-border:  rgba(16, 185, 129, 0.18);
}
.contact-card.theme-orange {
    --card-color:        #f97316;
    --card-color-2:      #f59e0b;
    --card-icon-bg-1:    rgba(249, 115, 22, 0.10);
    --card-icon-bg-2:    rgba(245, 158, 11, 0.10);
    --card-icon-border:  rgba(249, 115, 22, 0.18);
}
.contact-card.theme-purple {
    --card-color:        #8b5cf6;
    --card-color-2:      #ec4899;
    --card-icon-bg-1:    rgba(139, 92, 246, 0.10);
    --card-icon-bg-2:    rgba(236, 72, 153, 0.10);
    --card-icon-border:  rgba(139, 92, 246, 0.18);
}

/* ---------- 招聘列表 ---------- */
.recruit-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.recruit-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: box-shadow .25s, transform .25s;
    border-left: 4px solid #2563eb;
}
.recruit-card:hover {
    box-shadow: 0 8px 24px rgba(37,99,235,.12);
    transform: translateY(-2px);
}
.recruit-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.recruit-title-wrap {
    flex: 1;
    min-width: 0;
}
.recruit-title {
    font-size: 20px;
    color: #1e293b;
    margin: 0 0 10px;
    font-weight: 700;
}
.recruit-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.recruit-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    border-radius: 999px;
}
.recruit-tag-salary {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    font-weight: 600;
}
.recruit-toggle {
    flex-shrink: 0;
    padding: 8px 18px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .2s, transform .2s;
    font-family: inherit;
}
.recruit-toggle:hover { background: #1d4ed8; }
.recruit-toggle:active { transform: scale(0.96); }
.recruit-toggle-icon {
    font-size: 10px;
    transition: transform .3s;
}
.recruit-card.expanded .recruit-toggle-icon {
    transform: rotate(180deg);
}
.recruit-meta {
    color: #94a3b8;
    font-size: 12px;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}
.recruit-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding-top .3s ease, margin-top .3s ease;
    padding-top: 0;
    margin-top: 0;
}
.recruit-card.expanded .recruit-body {
    max-height: 3000px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px dashed #e2e8f0;
}
.recruit-block {
    margin-bottom: 16px;
}
.recruit-block:last-child { margin-bottom: 0; }
.recruit-block h4 {
    color: #1e293b;
    font-size: 15px;
    margin: 0 0 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.recruit-block h4::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 14px;
    background: #2563eb;
    border-radius: 2px;
}
.recruit-block .rich-text {
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
    padding-left: 10px;
}
.recruit-block .rich-text h3 {
    font-size: 15px;
    color: #1e293b;
    margin: 0 0 8px;
}
.recruit-block .rich-text ul,
.recruit-block .rich-text ol {
    padding-left: 22px;
    margin: 6px 0;
}
.recruit-block .rich-text li {
    margin: 3px 0;
}
.recruit-block .rich-text img {
    max-width: 100%;
    border-radius: 6px;
    margin: 8px 0;
}

.recruit-cta {
    text-align: center;
    margin-top: 30px;
    padding: 24px;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border-radius: 12px;
    color: #475569;
    font-size: 15px;
}
.recruit-cta a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.recruit-cta a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .recruit-card { padding: 18px 20px; }
    .recruit-head { flex-direction: column; align-items: stretch; }
    .recruit-toggle { align-self: flex-start; }
    .recruit-title { font-size: 17px; }
    .recruit-tags { gap: 6px; }
    .recruit-tag { font-size: 12px; padding: 2px 8px; }
}

/* ---------- 新闻搜索 ---------- */
.news-search {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.news-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

/* ---------- 搜索结果 ---------- */
.search-form {
    display: flex;
    gap: 8px;
    max-width: 600px;
    margin: 20px auto 30px;
}
.search-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
}
.search-form input:focus {
    outline: none;
    border-color: #2563eb;
}
.search-summary {
    color: #475569;
    margin: 0 0 20px;
    font-size: 14px;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
}
.search-summary em { color: #2563eb; font-style: normal; }
.search-result-list { list-style: none; padding: 0; margin: 0; }
.search-result-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.result-type {
    display: inline-block;
    font-size: 12px;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.search-result-item h3 { font-size: 17px; margin: 0 0 6px; }
.search-result-item h3 a { color: #1e293b; text-decoration: none; }
.search-result-item h3 a:hover { color: #2563eb; }
.search-result-item h3 em,
.result-summary em {
    color: #ef4444;
    font-style: normal;
    font-weight: 700;
}
.result-summary { color: #475569; font-size: 14px; line-height: 1.7; margin: 0; }

/* ---------- 通用 ---------- */
.page-wrap { padding: 30px 0; background: #f9fafb; }
/* 子页面内容区域：显式声明浅色背景，避免浏览器暗色模式穿透到透明 body */
.site-main { background: #f9fafb; min-height: 60vh; }
body, html { background: #f9fafb; }
.section-more { text-align: center; margin: 30px 0 0; }
.empty-state {
    text-align: center;
    color: #94a3b8;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.empty-tip {
    text-align: center;
    color: #94a3b8;
    padding: 40px 0;
}

/* 关于我们 */
.about-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    margin-bottom: 24px;
}

/* 合作伙伴 */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    align-items: center;
}
@media (max-width: 768px) { .partners-grid { grid-template-columns: repeat(3, 1fr); } }
.partner-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.partner-item img { max-width: 100%; max-height: 50px; }

/* 提示条 */
.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
}
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ---------- 新闻首页网格 ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 992px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.news-cover { aspect-ratio: 16 / 9; background: #f1f5f9; overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-info { padding: 18px 20px 22px; }
.news-info h3 { font-size: 17px; margin: 0 0 8px; line-height: 1.5; }
.news-info h3 a { color: #1e293b; text-decoration: none; }
.news-info h3 a:hover { color: #2563eb; }
.news-info .news-meta { margin-bottom: 8px; }
.news-info .news-cat {
    color: #2563eb;
    background: #eff6ff;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 12px;
}
.news-card .news-summary { font-size: 13px; color: #64748b; line-height: 1.7; margin: 0; }

/* 新闻、案例的 .section 间距 + 底色与产品中心保持一致（区别于 .about 的白色） */
.news, .partners {
    padding: 100px 5%;
    background: #f9fafb;
}
@media (max-width: 768px) { .news, .partners { padding: 60px 16px; } }

/* ============================================================
 * 顶部公告条（hlz_config.top_announcement）
 * ============================================================ */
.top-announcement {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 40px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 14px;
    text-align: center;
    z-index: 100;
}
.top-announcement-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
}
.top-announcement-icon { font-size: 16px; }
.top-announcement-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top-announcement-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    opacity: 0.8;
    transition: opacity 0.15s;
}
.top-announcement-close:hover { opacity: 1; }
@media (max-width: 600px) {
    .top-announcement { font-size: 12px; padding: 6px 32px; }
    .top-announcement-text {
        white-space: normal;
        text-align: center;
    }
}

/* ============================================================
 * 悬浮客服（hlz_config.qr_wechat / kefu_text）
 * ============================================================ */
.float-kefu {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    font-family: inherit;
}
.float-kefu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 24px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.15s, box-shadow 0.15s;
}
.float-kefu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
}
.float-kefu-icon { font-size: 16px; }
.float-kefu-label { white-space: nowrap; }
.float-kefu-popup {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: 180px;
    padding: 14px 12px 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    text-align: center;
}
.float-kefu-arrow {
    position: absolute;
    right: 24px;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.04);
}
.float-kefu-qr {
    width: 150px;
    height: 150px;
    margin: 0 auto 8px;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}
.float-kefu-qr img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}
.float-kefu-tip {
    margin: 0;
    font-size: 12px;
    color: #4b5563;
}
@media (max-width: 600px) {
    .float-kefu { right: 12px; bottom: 80px; }
    .float-kefu-label { display: none; }
    .float-kefu-btn { padding: 10px 12px; }
}

/* ============================================================
 * LOGO 副标题
 * ============================================================ */
.logo-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}
.logo-name {
    font-size: 16px;
    font-weight: 600;
}
.logo-subtitle {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* ============================================================
 * 产品下载栏目（download.php / download_info.php）专用样式
 * ============================================================ */

/* ---------- 列表页：统计 + 空状态 ---------- */
.dlw-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}
.dlw-stat-num {
    font-size: 18px;
    font-weight: 700;
    color: #1e40af;
}
.dlw-stat-label { font-size: 12px; }

.dlw-empty {
    background: #fff;
    border-radius: 16px;
    padding: 80px 20px;
    text-align: center;
    color: #6b7280;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}
.dlw-empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: .4;
}
.dlw-empty h3 { color: #1f2937; margin: 0 0 8px; }
.dlw-empty p { margin: 0; }

/* ---------- 列表页：卡片网格 ---------- */
.dlw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 30px 0;
}
@media (max-width: 992px) { .dlw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dlw-grid { grid-template-columns: 1fr; } }

.dlw-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: all .25s;
}
.dlw-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
    text-decoration: none;
}
.dlw-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    overflow: hidden;
}
.dlw-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.dlw-card:hover .dlw-cover img { transform: scale(1.05); }
.dlw-cover-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 60px;
}
.dlw-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(8px);
}
.dlw-type {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, .95);
    color: #1f2937;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.dlw-type-url  { color: #3b82f6; }
.dlw-type-file { color: #10b981; }

.dlw-info { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.dlw-title {
    margin: 0 0 8px;
    font-size: 16px;
    color: #1e293b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}
.dlw-summary {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}
.dlw-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}
.dlw-meta-item {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
}
.dlw-action { margin-top: auto; }
.dlw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s;
}
.dlw-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
}
.dlw-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}
.dlw-btn-url {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 4px 12px rgba(245, 158, 11, .25);
}

/* ---------- 详情页：双栏布局 ---------- */
.dli-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 20px 0 60px;
}
.dli-main { flex: 1; min-width: 0; }
.dli-side { flex: 0 0 280px; }
@media (max-width: 992px) {
    .dli-layout { flex-direction: column; }
    .dli-side { width: 100%; flex: none; }
}

.dli-cover {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    margin-bottom: 24px;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.dli-cover img { width: 100%; height: 100%; object-fit: contain; }
.dli-cover-empty {
    color: #cbd5e1;
    text-align: center;
}
.dli-cover-empty span { font-size: 80px; display: block; }
.dli-cover-empty p { margin: 8px 0 0; font-size: 14px; }

.dli-header { margin-bottom: 20px; }
.dli-title {
    font-size: 28px;
    color: #1e293b;
    margin: 0 0 10px;
    line-height: 1.4;
}
.dli-tag {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    color: #1d4ed8;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 14px;
}
.dli-summary {
    color: #475569;
    line-height: 1.8;
    font-size: 15px;
    margin: 0;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
}

.dli-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    margin-bottom: 24px;
}
@media (max-width: 600px) { .dli-meta { grid-template-columns: repeat(2, 1fr); } }
.dli-meta-item { text-align: center; }
.dli-meta-label {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 6px;
}
.dli-meta-value {
    display: block;
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
}

.dli-download-box {
    background: linear-gradient(135deg, #fff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 24px;
    transition: all .2s;
}
.dli-download-box:hover { border-color: #3b82f6; }
.dli-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.dli-dl-btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
}
.dli-dl-btn-primary:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, .35);
    text-decoration: none;
    color: #fff;
}
.dli-dl-btn-url {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
}
.dli-dl-btn-url:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, .35);
    text-decoration: none;
    color: #fff;
}
.dli-dl-btn-disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}
.dli-dl-icon { font-size: 24px; }
.dli-dl-tip {
    color: #6b7280;
    font-size: 13px;
    margin: 16px 0 0;
}

.dli-tips {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 18px 22px;
}
.dli-tips h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: #92400e;
}
.dli-tips ul {
    margin: 0;
    padding: 0 0 0 20px;
    color: #78350f;
    font-size: 13px;
    line-height: 1.8;
}
.dli-tips a { color: #1d4ed8; text-decoration: underline; }

/* ============================================================
 * 联系页（contact.php）左菜单 + 右内容布局
 *  - 桌面：左 240px sticky 菜单 + 右 1fr 内容
 *  - 移动（≤992px）：单列，左菜单转横向 tab 条
 * ============================================================ */
.contact-tabs {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin: 30px 0 50px;
    align-items: flex-start;
}

/* 左侧菜单容器（sticky） */
.contact-side {
    position: sticky;
    top: 90px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 菜单卡片 */
.side-menu {
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid #e2e8f0;
}

/* 菜单卡顶部小标题 */
.side-menu-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 10px;
    margin-bottom: 4px;
    color: #1e293b;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px dashed #e2e8f0;
    letter-spacing: .5px;
}
.side-menu-head svg { color: #2563eb; flex-shrink: 0; }

.side-menu-item {
    position: relative;            /* 用于 ::before 左侧色条 */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
/* 左侧色条（默认隐藏） */
.side-menu-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
    border-radius: 0 3px 3px 0;
    transition: transform .25s ease;
    transform-origin: center;
}
.side-menu-item:hover {
    background: #f1f5f9;
    color: #2563eb;
    text-decoration: none;
}
.side-menu-item:hover::before { transform: translateY(-50%) scaleY(1); }

.side-menu-item.active {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .08);
    text-decoration: none;
    font-weight: 600;
}
.side-menu-item.active::before { transform: translateY(-50%) scaleY(1); }

/* 左侧图标方块（统一尺寸，完美对齐） */
.side-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: #f1f5f9;
    color: #2563eb;
    border-radius: 8px;
    transition: background .2s, color .2s;
}
.side-menu-item.active .side-menu-icon {
    background: #2563eb;
    color: #fff;
}
.side-menu-item:hover .side-menu-icon {
    background: #dbeafe;
}

.side-menu-text { flex: 1; line-height: 1.2; }

/* 右侧 chevron 箭头 */
.side-menu-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    transition: color .2s, transform .2s;
    flex-shrink: 0;
}
.side-menu-item:hover .side-menu-arrow { color: #2563eb; transform: translateX(2px); }
.side-menu-item.active .side-menu-arrow { color: #2563eb; }

/* 菜单为空时（所有 tab 都禁用）的提示 */
.side-menu-empty {
    padding: 30px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 8px;
}

/* 菜单下方的辅助卡（服务热线） */
.side-extra {
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #dbeafe;
}
.side-extra-title {
    color: #64748b;
    font-size: 13px;
    margin: 0 0 6px;
}
.side-extra-tel {
    display: block;
    color: #2563eb;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 6px;
    line-height: 1.3;
    word-break: break-all;
}
.side-extra-tel:hover { text-decoration: none; color: #1d4ed8; }
.side-extra-tip {
    color: #94a3b8;
    font-size: 12px;
    margin: 0;
}

/* 右侧内容容器 */
.contact-content { min-width: 0; }
.tab-pane { min-width: 0; }

/* 模块小标题（替代原 .section-head 居中样式） */
.tab-pane .pane-head {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #2563eb;
}
.tab-pane .pane-head h2 {
    font-size: 22px;
    color: #1e293b;
    font-weight: 700;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tab-pane .pane-head p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* 移动端：单列堆叠 + 左菜单转横向 tab 条 */
@media (max-width: 992px) {
    .contact-tabs { grid-template-columns: 1fr; }
    .contact-side {
        position: static;
        top: auto;
    }
    .side-menu {
        flex-direction: row;
        overflow-x: auto;
        padding: 6px;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .side-menu-item {
        flex: 0 0 auto;
        padding: 10px 16px;
        font-size: 14px;
    }
    .side-extra { display: none; } /* 移动端隐藏辅助卡（与底部客服 / 悬浮客服重复） */
}
@media (max-width: 600px) {
    .contact-tabs { gap: 20px; }
    .tab-pane .pane-head h2 { font-size: 20px; }
}

/* ============================================================
 * AJAX 提交用的 Toast 弹窗（contact.php 在线留言）
 * ============================================================ */
.hlz-toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translate(-50%, -20px);
    min-width: 280px;
    max-width: 90%;
    padding: 14px 24px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
    z-index: 9999;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.hlz-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}
.hlz-toast-success { background: linear-gradient(135deg, #10b981, #14b8a6); }
.hlz-toast-error   { background: linear-gradient(135deg, #ef4444, #f59e0b); }
@media (max-width: 600px) {
    .hlz-toast { min-width: auto; width: calc(100% - 32px); padding: 12px 18px; font-size: 13px; }
}

/* ============================================================
 * 发展历程时间轴（hlz-timeline）
 *  - 经典左侧时间 / 右侧卡片布局
 *  - 中间竖线 + 圆点 + 阴影卡片
 *  - 移动端：单列堆叠，时间显示在卡片顶部
 * ============================================================ */
.hlz-timeline {
    list-style: none;
    margin: 20px 0;
    padding: 0;
    position: relative;
}
.hlz-timeline::before {
    content: "";
    position: absolute;
    left: 110px;            /* 与时间标签右对齐 */
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg, #2563eb, #06b6d4);
    border-radius: 2px;
}
.hlz-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 110px 36px 1fr;  /* 时间 / 圆点 / 卡片 */
    gap: 16px;
    padding: 14px 0;
    align-items: flex-start;
}
.hlz-timeline-time {
    text-align: right;
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
    padding-top: 12px;
    line-height: 1.2;
    word-break: keep-all;
}
.hlz-timeline-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
    z-index: 1;
    margin-top: 4px;
}
.hlz-timeline-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
    border: 1px solid #e2e8f0;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.hlz-timeline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    border-color: #93c5fd;
}
.hlz-timeline-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #1e293b;
    font-weight: 600;
}
.hlz-timeline-card p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

/* 空状态（共用） */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}
.empty-state-icon { font-size: 56px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; margin: 0; }

/* 移动端：单列堆叠 */
@media (max-width: 768px) {
    .hlz-timeline::before { left: 18px; }
    .hlz-timeline-item {
        grid-template-columns: 36px 1fr;
        gap: 12px;
    }
    .hlz-timeline-time {
        grid-column: 2 / 3;
        text-align: left;
        font-size: 15px;
        padding-top: 0;
        margin-bottom: 4px;
    }
    .hlz-timeline-dot { margin-top: 0; }
    .hlz-timeline-card { grid-column: 2 / 3; }
}

/* ============================================================
 * 关于我们 / 企业文化 页排版
 * 适用 .tab-about 容器内的 .rich-text
 * 结构：h3（带左边色条）/ p / ul / ol / table（核心价值观）
 *       .hlz-quote（使命愿景引言）/ .hlz-slogan（经营理念）
 *       .hlz-spirit-grid + .hlz-spirit-card（莲之四品）
 * ============================================================ */
.tab-about .rich-text {
    color: #334155;
    line-height: 1.85;
    font-size: 15px;
    word-break: break-word;
}

/* 段落基础 */
.tab-about .rich-text p {
    margin: 0 0 14px;
    color: #475569;
}
.tab-about .rich-text p:last-child { margin-bottom: 0; }

/* 小节标题 h3：蓝色左边条 */
.tab-about .rich-text h3 {
    position: relative;
    margin: 36px 0 18px;
    padding: 6px 0 6px 14px;
    color: #1e293b;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    border-bottom: 1px dashed #e2e8f0;
}
.tab-about .rich-text h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}
.tab-about .rich-text h3:first-child { margin-top: 0; }

/* 强调引言（使命/愿景等） */
.tab-about .rich-text .hlz-quote {
    margin: 20px 0 24px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-left: 4px solid #2563eb;
    border-radius: 0 8px 8px 0;
    color: #1e40af;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.7;
    text-align: center;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

/* 经营理念 / Slogan */
.tab-about .rich-text .hlz-slogan {
    display: block;
    margin: 24px 0;
    padding: 16px 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 8px;
    letter-spacing: 2px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}

/* 列表 */
.tab-about .rich-text ul,
.tab-about .rich-text ol {
    margin: 0 0 18px;
    padding-left: 0;
    list-style: none;
}
.tab-about .rich-text > ul > li,
.tab-about .rich-text > ol > li {
    position: relative;
    margin: 0 0 10px;
    padding: 10px 14px 10px 32px;
    background: #f8fafc;
    border-radius: 6px;
    color: #475569;
    line-height: 1.7;
    font-size: 14.5px;
}
/* 默认 marker：蓝色圆点（只作用在最外层 ul，避免嵌套列表被叠满 marker） */
.tab-about .rich-text > ul:not(.product-box ul):not(.hlz-spirit-grid) > li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.tab-about .rich-text ol {
    counter-reset: hlz-ol;
}
.tab-about .rich-text ol li {
    counter-increment: hlz-ol;
}
.tab-about .rich-text ol li::before {
    content: counter(hlz-ol);
    position: absolute;
    left: 12px;
    top: 10px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.tab-about .rich-text li strong { color: #1e293b; margin-right: 4px; }

/* 核心价值观对比表 */
.tab-about .rich-text .hlz-values-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    font-size: 14px;
}
.tab-about .rich-text .hlz-values-table th,
.tab-about .rich-text .hlz-values-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    line-height: 1.6;
}
.tab-about .rich-text .hlz-values-table thead th {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-bottom: none;
}
.tab-about .rich-text .hlz-values-table tbody tr:hover { background: #f8fafc; }
.tab-about .rich-text .hlz-values-table tbody tr:last-child td { border-bottom: none; }
.tab-about .rich-text .hlz-values-table td:first-child {
    color: #1e293b;
    font-weight: 600;
    background: #f8fafc;
    width: 18%;
}
.tab-about .rich-text .hlz-values-table td:nth-child(2) {
    color: #1e40af;
    background: rgba(37, 99, 235, 0.04);
    width: 41%;
}
.tab-about .rich-text .hlz-values-table td:last-child {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.04);
    width: 41%;
}

/* 莲之四品 网格 */
.tab-about .rich-text .hlz-spirit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 24px 0;
}
.tab-about .rich-text .hlz-spirit-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 24px 22px 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    overflow: hidden;
}
.tab-about .rich-text .hlz-spirit-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}
.tab-about .rich-text .hlz-spirit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
    border-color: #93c5fd;
}
.tab-about .rich-text .hlz-spirit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 28px;
    line-height: 1;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 12px;
    margin-bottom: 12px;
}
.tab-about .rich-text .hlz-spirit-card h4 {
    margin: 0 0 4px;
    color: #1e293b;
    font-size: 17px;
    font-weight: 700;
}
.tab-about .rich-text .hlz-spirit-tagline {
    color: #2563eb;
    font-size: 13px;
    margin: 0 0 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.tab-about .rich-text .hlz-spirit-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.75;
}
.tab-about .rich-text .hlz-spirit-card p + p { margin-top: 8px; }

/* 行内强调 */
.tab-about .rich-text strong {
    color: #1e293b;
    font-weight: 700;
}

/* 段落里夹的 <strong>（经营理念三条） */
.tab-about .rich-text p strong {
    color: #2563eb;
    margin-right: 4px;
}

/* ============================================================
 * 关于我们 / 公司简介 页排版
 * 适用 .tab-about 容器内的 .rich-text
 * 结构：h1（页面主标题）/ h2（节标题）/ h3（产品卡 / 子节标题）
 *       .product-box（产品卡：莲信 / 莲会 / 莲播）
 *       普通段落 / 列表 / 行内 strong
 * ============================================================ */

/* 页面主标题 h1：渐变下划线 + 大字号 */
.tab-about .rich-text h1 {
    margin: 0 0 28px;
    padding-bottom: 18px;
    color: #1e293b;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    background: linear-gradient(90deg, transparent, #2563eb 20%, #3b82f6 50%, #2563eb 80%, transparent);
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 100% 3px;
    border: none;
}

/* 节标题 h2：蓝色左边条 + 虚线下划线（与 h3 区分：略大、加深底色） */
.tab-about .rich-text h2 {
    position: relative;
    margin: 38px 0 20px;
    padding: 8px 0 8px 16px;
    color: #0f172a;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
    border-bottom: 2px solid #e2e8f0;
}
.tab-about .rich-text h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 5px;
    border-radius: 5px;
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
}
.tab-about .rich-text h2:first-of-type { margin-top: 20px; }

/* 子节标题 h3（独立上下文，比如"安全可控""高效易用"）：小一号 */
.tab-about .rich-text h3 {
    margin: 24px 0 12px;
    padding: 4px 0 4px 12px;
    color: #1e40af;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    border-bottom: 1px dashed #dbeafe;
}
.tab-about .rich-text h3::before {
    background: linear-gradient(180deg, #60a5fa, #3b82f6);
    width: 3px;
    top: 6px;
    bottom: 6px;
}

/* ============================================================
 * 产品卡 .product-box（莲信 / 莲会 / 莲播）
 * 结构：div.product-box > h3 + ul
 * ============================================================ */
.tab-about .rich-text .product-box {
    position: relative;
    margin: 20px 0 24px;
    padding: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.tab-about .rich-text .product-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.10);
    border-color: #93c5fd;
}
.tab-about .rich-text .product-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

/* 产品卡内的 h3：作为卡片头部，重置为蓝渐变背景 + 白字 */
.tab-about .rich-text .product-box h3 {
    margin: 0;
    padding: 14px 22px 14px 26px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.3px;
}
.tab-about .rich-text .product-box h3::before {
    display: none;
}

/* 产品卡内的列表：去掉外边距，让 li 紧贴卡片 */
.tab-about .rich-text .product-box ul {
    margin: 0;
    padding: 12px 0;
    list-style: none;
}
.tab-about .rich-text .product-box ul li {
    position: relative;
    margin: 0 18px 8px;
    padding: 10px 12px 10px 32px;
    background: #f8fafc;
    border-radius: 6px;
    color: #475569;
    line-height: 1.7;
    font-size: 14px;
}
.tab-about .rich-text .product-box ul li:last-child { margin-bottom: 6px; }
.tab-about .rich-text .product-box ul li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ============================================================
 * 行业解决方案 列表
 * ul 中 li 以 <strong> 开头（金融行业 / 制造业 / 政府机构）
 * ============================================================ */
.tab-about .rich-text > ul:not(.product-box ul) {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}
.tab-about .rich-text > ul:not(.product-box ul) > li {
    position: relative;
    margin: 0 0 12px;
    padding: 14px 16px 14px 50px;
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    color: #475569;
    line-height: 1.75;
    font-size: 14.5px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.tab-about .rich-text > ul:not(.product-box ul) > li:hover {
    transform: translateX(4px);
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}
.tab-about .rich-text > ul:not(.product-box ul) > li::before {
    content: "▍";
    position: absolute;
    left: 14px;
    top: 12px;
    color: #2563eb;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
}
.tab-about .rich-text > ul:not(.product-box ul) > li strong {
    display: inline-block;
    color: #1d4ed8;
    font-size: 15.5px;
    margin-right: 6px;
    font-weight: 700;
}

/* 行内强调（公司简介中混用的 strong 词） */
.tab-about .rich-text strong {
    color: #1e40af;
    font-weight: 700;
}

/* 移动端：公司介绍 h1/h2/卡片 适配 */
@media (max-width: 768px) {
    .tab-about .rich-text h1 {
        font-size: 20px;
        padding-bottom: 14px;
        margin-bottom: 22px;
    }
    .tab-about .rich-text h2 {
        font-size: 18px;
        margin: 30px 0 16px;
    }
    .tab-about .rich-text h3 {
        font-size: 16px;
    }
    .tab-about .rich-text .product-box h3 {
        font-size: 15.5px;
        padding: 12px 18px 12px 22px;
    }
    .tab-about .rich-text .product-box ul li {
        margin: 0 12px 8px;
        padding: 8px 10px 8px 30px;
        font-size: 13.5px;
    }
    .tab-about .rich-text > ul:not(.product-box ul) > li {
        padding: 12px 14px 12px 42px;
        font-size: 14px;
    }
    .tab-about .rich-text > ul:not(.product-box ul) > li::before {
        left: 12px;
        top: 10px;
        font-size: 20px;
    }
}

/* 移动端：表格转卡片式 / 莲之四品单列 */
@media (max-width: 768px) {
    .tab-about .rich-text h3 {
        font-size: 17px;
        margin: 28px 0 14px;
    }
    .tab-about .rich-text .hlz-quote {
        font-size: 15px;
        padding: 14px 16px;
    }
    .tab-about .rich-text .hlz-slogan {
        font-size: 16px;
        padding: 14px 16px;
        letter-spacing: 1px;
    }
    .tab-about .rich-text .hlz-spirit-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .tab-about .rich-text .hlz-spirit-card {
        padding: 20px 18px 18px;
    }

    /* 表格移动端：横向滚动 */
    .tab-about .rich-text .hlz-values-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .tab-about .rich-text .hlz-values-table th,
    .tab-about .rich-text .hlz-values-table td {
        white-space: normal;
        min-width: 110px;
    }
}

/* ============================================================
 * 产品详情页 9 大区块（2026-07-19 改造）
 * 区块：Hero / Highlights / Features / Params / Detail / Scenarios / FAQ / Compare / CTA
 * ============================================================ */

/* ---------- 1. 产品 Hero ---------- */
.product-hero {
    position: relative;
    min-height: 380px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    background: #1e3a8a;
}
.product-hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}
.product-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, .85), rgba(59, 130, 246, .6));
    z-index: 1;
}
.product-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 60px 40px;
    max-width: 720px;
}
.product-hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 16px;
}
.product-hero h1 {
    font-size: 36px;
    color: #fff;
    margin: 0 0 12px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}
.product-hero .hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, .9);
    margin: 0 0 16px;
}
.product-hero .hero-summary {
    font-size: 15px;
    color: rgba(255, 255, 255, .85);
    line-height: 1.7;
    margin: 0 0 24px;
}
.product-hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.product-hero-cta .btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.product-hero-cta .btn-primary {
    background: #fff;
    color: #2563eb;
}
.product-hero-cta .btn-primary:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    text-decoration: none;
}
.product-hero-cta .btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.product-hero-cta .btn-outline:hover {
    background: rgba(255, 255, 255, .15);
    text-decoration: none;
}
@media (max-width: 768px) {
    .product-hero { min-height: 280px; }
    .product-hero-content { padding: 40px 24px; }
    .product-hero h1 { font-size: 26px; }
    .product-hero .hero-subtitle { font-size: 15px; }
    .product-hero .hero-summary { font-size: 14px; }
}

/* ============================================================
   产品中心 - 通栏卡片列表（替代旧的 3 列网格）
   1 行 1 个产品：左 480px 图，右 1fr 详情
   ============================================================ */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.product-list-item {
    display: grid;
    grid-template-columns: 480px 1fr;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
    transition: transform .3s ease, box-shadow .3s ease;
}
.product-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
}
.product-list-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    overflow: hidden;
}
.product-list-cover img {
    max-width: calc(100% - 48px);
    max-height: calc(100% - 48px);
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform .5s ease;
}
.product-list-cover:hover img {
    transform: scale(1.05);
}
/* 偶数项：左文右图 — 通过 order 调换位置，让封面始终在 480px 列保持 16:9 高度一致 */
.product-list-item-reverse {
    grid-template-columns: 1fr 480px;
}
.product-list-item-reverse .product-list-cover { order: 2; }
.product-list-item-reverse .product-list-info { order: 1; }
/* 兜底：限制封面最大高度，避免被超宽图撑高 */
.product-list-cover { max-height: 320px; }
.product-list-video-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.product-list-info {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.product-list-meta { font-size: 13px; }
.product-list-cat {
    display: inline-block;
    color: #2563eb;
    background: #eff6ff;
    padding: 3px 12px;
    border-radius: 4px;
    font-weight: 500;
}
.product-list-name {
    font-size: 24px;
    font-weight: 700;
    margin: 4px 0 0;
    line-height: 1.3;
}
.product-list-name a {
    color: #1e293b;
    text-decoration: none;
    transition: color .2s;
}
.product-list-name a:hover { color: #2563eb; }
.product-list-subtitle {
    color: #64748b;
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}
.product-list-summary {
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
    margin: 6px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-list-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
    padding-top: 16px;
    flex-wrap: wrap;
}
.product-list-actions .btn { padding: 9px 22px; font-size: 14px; }

/* 通栏列表 - 响应式（≤ 900px 切换为上下结构） */
@media (max-width: 900px) {
    .product-list { gap: 18px; }
    .product-list-item,
    .product-list-item-reverse { grid-template-columns: 1fr; }
    .product-list-cover { min-height: 220px; }
    .product-list-info { padding: 22px 22px 24px; }
    .product-list-name { font-size: 20px; }
    .product-list-subtitle { font-size: 14px; }
    .product-list-summary { font-size: 13px; -webkit-line-clamp: 2; }
}
@media (max-width: 480px) {
    .product-list-info { padding: 18px 18px 20px; }
    .product-list-actions { gap: 8px; }
    .product-list-actions .btn { padding: 8px 16px; font-size: 13px; }
}

/* ============================================================
   产品详情 - 图集轮播（pd-* 前缀避免与旧 .product-gallery 冲突）
   ============================================================ */
.pd-gallery {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
}
.pd-gallery-main {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}
.pd-gallery-main img,
.pd-gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}
.pd-gallery-main .pd-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    z-index: 2;
}
.pd-gallery-main .pd-nav:hover { background: rgba(0, 0, 0, .85); }
.pd-gallery-main .pd-prev { left: 14px; }
.pd-gallery-main .pd-next { right: 14px; }
.pd-gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 14px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    z-index: 2;
}
.pd-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding: 4px 2px;
}
.pd-gallery-thumb {
    flex: 0 0 auto;
    width: 96px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color .2s, transform .2s;
}
.pd-gallery-thumb img,
.pd-gallery-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pd-gallery-thumb:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
}
.pd-gallery-thumb.active {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
}
.pd-gallery-thumb .pd-thumb-video-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(220, 38, 38, .92);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

@media (max-width: 600px) {
    .pd-gallery { padding: 12px; }
    .pd-gallery-main .pd-nav { width: 36px; height: 36px; font-size: 20px; }
    .pd-gallery-main .pd-prev { left: 8px; }
    .pd-gallery-main .pd-next { right: 8px; }
    .pd-gallery-thumb { width: 72px; height: 48px; }
}

/* ============================================================
   产品详情 - 独立视频播放区
   ============================================================ */
.pd-video-block {
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}
.pd-video-block video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
}
@media (max-width: 600px) {
    .pd-video-block { border-radius: 10px; }
}


/* ---------- 2. 亮点统计（动态 2-6 项） ---------- */
.product-highlights {
    background: #fff;
    padding: 32px 28px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    margin-bottom: 24px;
    display: grid;
    gap: 24px;
}
.product-highlights.cols-2 { grid-template-columns: repeat(2, 1fr); }
.product-highlights.cols-3 { grid-template-columns: repeat(3, 1fr); }
.product-highlights.cols-4 { grid-template-columns: repeat(4, 1fr); }
.product-highlights.cols-5 { grid-template-columns: repeat(5, 1fr); }
.product-highlights.cols-6 { grid-template-columns: repeat(3, 1fr); } /* 6 项时 3 列更舒展 */
@media (max-width: 992px) {
    .product-highlights.cols-4,
    .product-highlights.cols-5,
    .product-highlights.cols-6 { grid-template-columns: repeat(2, 1fr); }
    .product-highlights.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .product-highlights { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; padding: 20px 16px; }
}
.highlight-item {
    text-align: center;
    padding: 8px 4px;
}
.highlight-value {
    font-size: 30px;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.2;
}
.highlight-label {
    color: #64748b;
    font-size: 13px;
    margin-top: 6px;
}
@media (max-width: 600px) {
    .highlight-value { font-size: 22px; }
    .highlight-label { font-size: 12px; }
}

/* ---------- 3 & 6. 特性 / 场景 卡片网格（共享） ---------- */
.product-features-grid,
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 992px) {
    .product-features-grid,
    .scenarios-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .product-features-grid,
    .scenarios-grid { grid-template-columns: 1fr; }
}
.feature-card {
    background: #fff;
    padding: 28px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}
.feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1;
}
.feature-title {
    font-size: 17px;
    color: #1e293b;
    margin: 0 0 8px;
    font-weight: 600;
}
.feature-desc {
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}
/* 场景卡片：左侧蓝条差异化 */
.scenarios-grid .feature-card {
    border-left: 4px solid #2563eb;
    padding-left: 20px;
}

/* ---------- 7. FAQ 折叠列表（原生 details/summary） ---------- */
.faq-list {
    margin: 0;
    padding: 0;
}
.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    border: 1px solid #e2e8f0;
    transition: box-shadow .2s, border-color .2s;
}
.faq-item[open] {
    box-shadow: 0 2px 10px rgba(37, 99, 235, .08);
    border-color: #93c5fd;
}
.faq-question {
    padding: 16px 20px;
    padding-right: 50px;
    font-size: 15px;
    color: #1e293b;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #2563eb;
    transition: transform .2s;
    font-weight: 300;
    line-height: 1;
}
.faq-item[open] .faq-question::after {
    content: '−';
}
.faq-answer {
    padding: 0 20px 18px;
    color: #475569;
    font-size: 14px;
    line-height: 1.8;
}
.faq-answer p { margin: 0 0 8px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul, .faq-answer ol { padding-left: 20px; margin: 0 0 8px; }
.faq-answer li { list-style: disc; }

/* ---------- 8. 对比表 ---------- */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.compare-table th,
.compare-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.compare-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
}
.compare-table th.col-item { width: 30%; }
.compare-table th.col-ours,
.compare-table td.col-ours {
    background: #eff6ff;
    color: #1e40af;
    font-weight: 500;
}
.compare-table th.col-others,
.compare-table td.col-others {
    color: #64748b;
}
.compare-table tr:nth-child(even) td:not(.col-ours) { background: #fafbfc; }
.compare-table tr:last-child td { border-bottom: none; }
@media (max-width: 600px) {
    .compare-table { font-size: 12px; }
    .compare-table th, .compare-table td { padding: 10px 8px; }
}

/* ---------- 9. CTA Section ---------- */
.product-cta {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, .25);
}
.product-cta h3 {
    font-size: 26px;
    color: #fff;
    margin: 0 0 8px;
}
.product-cta p {
    color: rgba(255, 255, 255, .9);
    margin: 0 0 24px;
    font-size: 15px;
}
.product-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.product-cta .btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    text-decoration: none;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.product-cta .btn-primary {
    background: #fff;
    color: #2563eb;
}
.product-cta .btn-primary:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    text-decoration: none;
}
.product-cta .btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.product-cta .btn-outline:hover {
    background: rgba(255, 255, 255, .15);
    text-decoration: none;
}
@media (max-width: 768px) {
    .product-cta { padding: 36px 20px; }
    .product-cta h3 { font-size: 22px; }
    .product-cta p { font-size: 14px; }
}

/* ============================================================
 *  文档管理 - 前台样式
 *  .doc-grid                  旧版文档卡片列表（保留兼容）
 *  .doc-card                  旧版文档卡片
 *  .doc-card-cover            新版：渐变封面（与 case-card 视觉对齐）
 *  .doc-card-cover-emoji      新版：封面大图标
 *  .doc-card-cover-cat        新版：封面右上角分类标签
 *  .doc-card-meta             文档卡片底部元信息
 *  .doc-filter-cnt-inline     筛选条计数（行内）
 *  .doc-detail-header         详情页头部
 *  .doc-detail-wrap           详情页左右分栏
 *  .doc-anchor-toc            左侧目录
 *  .doc-toc-item              目录条目
 *  .doc-content               右侧正文
 * ============================================================ */

/* ---------- 文档卡片渐变封面（与 case.php 卡片视觉一致） ---------- */
.doc-card-cover {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--cov-from, #2563eb), var(--cov-to, #1d4ed8));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 装饰：双色光晕 + 网格点阵 */
.doc-card-cover-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(255,255,255,0.18), transparent 45%),
        radial-gradient(circle at 82% 80%, rgba(0,0,0,0.18), transparent 45%),
        radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: auto, auto, 14px 14px;
    background-position: 0 0, 0 0, 0 0;
    pointer-events: none;
}

/* 左上角：分类徽章（玻璃拟态） */
.doc-card-cover-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 7px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    line-height: 1;
}
.doc-card-cover-badge-emoji {
    font-size: 14px;
    line-height: 1;
    display: inline-block;
    /* 微调 emoji 垂直对齐 */
    transform: translateY(-0.5px);
}
.doc-card-cover-badge-label {
    font-size: 12px;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
}

/* 右上角：密码保护徽标（与左上角分类徽标对称） */
.doc-card-cover-lock {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    background: rgba(239, 68, 68, .92);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(239, 68, 68, .35);
}
.doc-card-cover-lock svg { opacity: 0.95; }
.case-card:hover .doc-card-cover-lock {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, .5);
}

/* 中央：文档插画（白色纸张 + 文本行 + 锚点圆点） */
.doc-card-cover-art {
    position: relative;
    z-index: 2;
    width: 60%;
    max-width: 160px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
    transition: transform 0.4s ease;
}
.doc-card-cover-art svg {
    display: block;
    width: 100%;
    height: auto;
}
.case-card:hover .doc-card-cover-art {
    transform: translateY(-4px) rotate(-2deg);
}

/* 右下角：锚点徽章 */
.doc-card-cover-anchor {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.doc-card-cover-anchor svg { opacity: 0.9; }

/* 文档卡片 meta（行内） */
.doc-card-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 12px;
    flex-wrap: wrap;
}
.doc-card-arrow {
    margin-left: auto;
    color: #2563eb;
    font-weight: 500;
    transition: transform .2s;
}
.case-card:hover .doc-card-arrow {
    transform: translateX(4px);
}

/* 筛选条计数（行内小角标） */
.doc-filter-cnt-inline {
    display: inline-block;
    margin-left: 4px;
    font-size: 12px;
    opacity: 0.75;
    font-weight: normal;
}
.filter-item.active .doc-filter-cnt-inline { opacity: 0.9; }

/* ---------- 文档中心列表 ---------- */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}
.doc-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: all .25s;
    color: inherit;
    text-decoration: none;
}
.doc-card:hover {
    box-shadow: 0 8px 24px rgba(37, 99, 235, .12);
    border-color: #93c5fd;
    transform: translateY(-2px);
}
.doc-card-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.doc-card-body { flex: 1; min-width: 0; }
.doc-card-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.doc-card-summary {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.doc-card-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
    flex-wrap: wrap;
}
.doc-card-arrow {
    margin-left: auto;
    color: #2563eb;
    font-weight: 500;
}

/* ---------- 文档详情页：阅读进度条 ---------- */
.doc-read-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
    z-index: 9999;
    transition: width 0.1s ease-out;
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.4);
}

/* ====================================================================
 * 文档密码门 - 鉴权表单（私密 / 有密码文档的访问拦截页）
 * 设计：居中卡片，金色锁头 + 表单，提示"24 小时免输入"
 * ==================================================================== */
.doc-pwd-gate {
    max-width: 520px;
    margin: 60px auto 80px;
    padding: 40px 36px 32px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .08), 0 1px 3px rgba(15, 23, 42, .04);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: hlzDocPwdGateIn .35s cubic-bezier(.2, .8, .2, 1);
}
.doc-pwd-gate::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 50%, #f59e0b 100%);
}
@keyframes hlzDocPwdGateIn {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.doc-pwd-gate-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(245, 158, 11, .25));
}
.doc-pwd-gate-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}
.doc-pwd-gate-summary {
    margin: 0 auto 18px;
    max-width: 420px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}
.doc-pwd-gate-meta {
    margin: 0 auto 24px;
    font-size: 12.5px;
    color: #94a3b8;
}
.doc-pwd-gate-meta span {
    display: inline-block;
    padding: 3px 10px;
    background: #f1f5f9;
    border-radius: 999px;
}
.doc-pwd-gate-form {
    max-width: 380px;
    margin: 0 auto;
}
.doc-pwd-gate-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 10px;
}
.doc-pwd-gate-lock {
    font-size: 14px;
}
.doc-pwd-gate-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.doc-pwd-gate-input {
    flex: 1;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    transition: all .15s;
}
.doc-pwd-gate-input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, .12);
}
.doc-pwd-gate-input::placeholder {
    color: #cbd5e1;
    letter-spacing: 0;
}
.doc-pwd-gate-submit {
    height: 44px;
    padding: 0 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    box-shadow: 0 2px 6px rgba(245, 158, 11, .3);
    white-space: nowrap;
}
.doc-pwd-gate-submit:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, .45);
    transform: translateY(-1px);
}
.doc-pwd-gate-submit:active {
    transform: translateY(0);
}
.doc-pwd-gate-error {
    margin: 0 0 8px;
    padding: 8px 12px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 13px;
    animation: hlzDocPwdShake .35s ease-out;
}
@keyframes hlzDocPwdShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
.doc-pwd-gate-tip {
    margin-top: 14px;
    padding: 8px 10px;
    background: #f0f9ff;
    color: #0369a1;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
}
.doc-pwd-gate-tip b { color: #075985; }
.doc-pwd-gate-back {
    display: inline-block;
    margin-top: 22px;
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
    transition: color .15s;
}
.doc-pwd-gate-back:hover {
    color: #2563eb;
    text-decoration: underline;
}
@media (max-width: 600px) {
    .doc-pwd-gate { margin: 30px 16px 60px; padding: 30px 22px 26px; }
    .doc-pwd-gate-title { font-size: 19px; }
    .doc-pwd-gate-row { flex-direction: column; }
    .doc-pwd-gate-submit { width: 100%; }
}

/* ---------- 文档详情页头部 ----------
   注意：css/style.css 里有全局 `header { position: sticky }`，
   会让所有 <header> 标签吸顶。这里强制把文档详情页的标题区改回普通静态布局。 */
.doc-detail-header {
    position: static;
    top: auto;
    z-index: auto;
    background: transparent;
    box-shadow: none;
    padding: 28px 0 22px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 24px;
}
.doc-detail-header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.35;
    letter-spacing: -0.5px;
}
.doc-detail-summary {
    margin: 12px 0 16px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
    border-left: 3px solid #6366f1;
    border-radius: 0 8px 8px 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.75;
}
.doc-detail-meta {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    flex-wrap: wrap;
    align-items: center;
}
.doc-meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: linear-gradient(135deg, #eff6ff, #ede9fe);
    color: #4338ca;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #e0e7ff;
    margin-right: 4px;
}
.doc-meta-item {
    display: inline-flex;
    align-items: center;
    color: #94a3b8;
    font-size: 12.5px;
}
.doc-meta-item:not(:first-of-type)::before {
    content: "·";
    margin-right: 8px;
    color: #cbd5e1;
}

/* 文档操作按钮（导出 PDF 等） */
.doc-meta-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    margin-left: 8px;
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    color: #4f46e5;
    border: 1px solid #e0e7ff;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s, color .15s;
    font-family: inherit;
    line-height: 1.4;
}
.doc-meta-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.28);
    transform: translateY(-1px);
}
.doc-meta-btn:active { transform: translateY(0); }
.doc-meta-btn svg { display: inline-block; flex-shrink: 0; }

/* ---------- 文档详情页：左右分栏 ---------- */
.doc-detail-wrap {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin: 16px 0 80px;
}

/* ---------- 左侧：锚点目录（按章节分组、可折叠） ---------- */
.doc-anchor-toc {
    width: 256px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.doc-toc-head {
    padding: 12px 16px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #fff;
    font-weight: 600;
    font-size: 13.5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.3px;
}
.doc-toc-head-title { display: inline-flex; align-items: center; gap: 4px; }
.doc-toc-toggle-all {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}
.doc-toc-toggle-all:hover { background: rgba(255,255,255,0.28); }
.doc-toc-toggle-all:hover svg { transform: rotate(180deg); }
.doc-toc-toggle-all svg { transition: transform 0.2s; }

.doc-toc-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.doc-toc-list::-webkit-scrollbar { width: 4px; }
.doc-toc-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
.doc-toc-list::-webkit-scrollbar-track { background: transparent; }

.doc-toc-empty {
    padding: 30px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* 章节分组 */
.doc-toc-group { margin: 0; }
.doc-toc-collapse {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: auto;
    padding: 0;
}
.doc-toc-collapse:hover { background: rgba(99, 102, 241, 0.1); color: #4f46e5; }
.doc-toc-collapse svg { transition: transform 0.25s; }
.doc-toc-group.collapsed > .doc-toc-item .doc-toc-collapse svg { transform: rotate(-90deg); }

/* 无子项分组：按钮为视觉占位（不响应点击，灰色低对比） */
.doc-toc-collapse.is-empty {
    cursor: default;
    opacity: 0.35;
    pointer-events: auto; /* 仍然响应 hover 但不切换状态 */
}
.doc-toc-collapse.is-empty:hover { background: transparent; color: #94a3b8; }

/* 子列表（L3 等）- 强化相对二级目录的缩进 */
.doc-toc-sublist {
    list-style: none;
    margin: 0;
    padding: 4px 0 4px 0;
    overflow: hidden;
    max-height: 1500px;
    transition: max-height 0.3s ease, opacity 0.25s;
    opacity: 1;
}
.doc-toc-group.collapsed > .doc-toc-sublist {
    max-height: 0;
    opacity: 0;
}

/* L1 - 文档主标题（最大、最粗、最显眼） */
.doc-toc-level-1 {
    background: linear-gradient(90deg, #eef2ff 0%, transparent 100%);
    border-left: 3px solid #4f46e5 !important;
}
.doc-toc-level-1 > a.doc-toc-item {
    font-size: 14px;
    font-weight: 700;
    color: #312e81 !important;
    padding: 11px 14px 11px 12px !important;
    border-left: none !important;
    letter-spacing: 0.2px;
}
.doc-toc-level-1 > a.doc-toc-item:hover { background: #e0e7ff; }
.doc-toc-level-1 > a.doc-toc-item .doc-toc-icon { color: #4f46e5; font-size: 8px; }
.doc-toc-level-1 > a.doc-toc-item.active {
    background: linear-gradient(90deg, #ddd6fe 0%, #ede9fe 100%);
    color: #312e81 !important;
    box-shadow: inset 3px 0 0 #4f46e5;
}

/* ============================================================
 *  一级锚点 vs 二级锚点 - 强化视觉差异
 *  - L1（一级）= 顶级章节：明显更大、加重、图标
 *  - L2（二级）= 子节：缩进、浅色、虚线
 *  - L1/L2 之间有明显视觉分割
 * ============================================================ */

/* 通用目录项（<a> 本身就是 doc-toc-item） */
a.doc-toc-item {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    border-left: 2px solid transparent;
    transition: all 0.15s;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
a.doc-toc-item:hover {
    background: #f5f3ff;
    color: #4f46e5;
    border-left-color: #c7d2fe;
}
a.doc-toc-item.active {
    background: linear-gradient(90deg, #eef2ff 0%, transparent 100%);
    color: #4338ca;
    border-left-color: #4f46e5;
    font-weight: 600;
}
.doc-toc-icon {
    color: #c7d2fe;
    font-size: 6px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}
a.doc-toc-item.active .doc-toc-icon { color: #4f46e5; }
.doc-toc-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========= 一级锚点 (L2 章节) ========= */
.doc-toc-group > a.doc-toc-item {
    position: relative;
    margin-top: 2px;
}
.doc-toc-group:first-child > a.doc-toc-item {
    margin-top: 4px;
}
/* 章节之间用细分隔线隔开 */
.doc-toc-group + .doc-toc-group > a.doc-toc-item {
    border-top: 1px solid #f1f5f9;
    padding-top: 9px;
    margin-top: 2px;
}

.doc-toc-level-2 > a.doc-toc-item {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b !important;
    padding: 9px 14px 9px 14px !important;
    border-left: none !important;
    background: linear-gradient(90deg, #f8fafc 0%, transparent 60%);
    letter-spacing: 0.1px;
}
.doc-toc-level-2 > a.doc-toc-item .doc-toc-icon {
    /* 隐藏原本的 ● 字符 */
    color: transparent;
    font-size: 0;
    width: 14px;
    height: 14px;
    background: #eef2ff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex-shrink: 0;
    transition: all 0.2s;
}
.doc-toc-level-2 > a.doc-toc-item .doc-toc-icon::before {
    content: "▸";
    color: #6366f1;
    font-size: 11px;
    line-height: 1;
    transition: color 0.2s;
}
.doc-toc-level-2 > a.doc-toc-item:hover {
    background: linear-gradient(90deg, #eef2ff 0%, #f5f3ff 100%) !important;
    color: #4f46e5 !important;
}
.doc-toc-level-2 > a.doc-toc-item:hover .doc-toc-icon {
    background: #4f46e5;
}
.doc-toc-level-2 > a.doc-toc-item:hover .doc-toc-icon::before {
    color: #fff;
}
.doc-toc-level-2 > a.doc-toc-item.active {
    background: linear-gradient(90deg, #e0e7ff 0%, #ede9fe 100%) !important;
    color: #312e81 !important;
    box-shadow: inset 3px 0 0 #4f46e5;
}
.doc-toc-level-2 > a.doc-toc-item.active .doc-toc-icon {
    background: #4f46e5;
}
.doc-toc-level-2 > a.doc-toc-item.active .doc-toc-icon::before {
    color: #fff;
}

/* ========= 二级锚点 (L3 子组) =========
 *  缩进规则（相对 L2 文本起始位置）：
 *    - .doc-toc-sublist margin-left: 32px   ← L3 容器外缩进
 *    - .doc-toc-level-3 padding-left: 14px  ← L3 链接文字相对子列表的留白
 *    - L3 文字实际位置 = 32 + 14 = 46px（vs L2 的 14px，差 32px）
 *  L3 现在是 sub-group：带 ▸ 小箭头图标 + 折叠按钮
 */
.doc-toc-sublist {
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    border-left: 1px dashed #e2e8f0;
    margin-left: 32px;
    margin-bottom: 4px;
    padding: 2px 0 2px 0;
    position: relative;
}
.doc-toc-sublist::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(180deg, #c7d2fe 0%, transparent 100%);
}
.doc-toc-level-3 > a.doc-toc-item {
    padding: 5px 14px 5px 12px !important;
    font-size: 12.5px;
    color: #475569 !important;
    font-weight: 500;
    border-left: none !important;
    position: relative;
    line-height: 1.55;
    background: transparent;
    border-radius: 4px;
    transition: all 0.15s;
}
.doc-toc-level-3 > a.doc-toc-item .doc-toc-icon {
    color: #94a3b8;
    font-size: 9px !important;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.15s;
    display: inline-block;
    margin-right: 4px;
}
.doc-toc-level-3 > a.doc-toc-item:hover {
    background: #f1f5f9 !important;
    color: #4f46e5 !important;
    padding-left: 14px !important;
}
.doc-toc-level-3 > a.doc-toc-item:hover .doc-toc-icon {
    color: #4f46e5;
    transform: translateX(1px);
}
.doc-toc-level-3 > a.doc-toc-item.active {
    background: linear-gradient(90deg, #eef2ff 0%, #f5f3ff 100%) !important;
    color: #312e81 !important;
    font-weight: 600;
    box-shadow: inset 2px 0 0 #4f46e5;
}
.doc-toc-level-3 > a.doc-toc-item.active .doc-toc-icon {
    color: #4f46e5;
}

/* ========= 子-子列表 (L4+ 项目) =========
 *  缩进规则（相对 L2 文本起始位置）：
 *    - L3 子组外层在 46px 处
 *    - .doc-toc-subsublist margin-left: 24px   ← L4+ 容器外缩进
 *    - .doc-toc-level-4 padding-left: 16px     ← L4 链接文字相对子-子列表的留白
 *    - L4 文字实际位置 = 32 + 24 + 16 = 72px（vs L3 的 46px，差 26px） */
.doc-toc-subsublist {
    list-style: none;
    margin: 0 0 0 24px;
    padding: 2px 0 4px 0;
    border-left: 1px dotted #e2e8f0;
    position: relative;
    overflow: hidden;
    max-height: 1500px;
    transition: max-height 0.3s ease, opacity 0.25s;
    opacity: 1;
}
.doc-toc-group.collapsed > .doc-toc-subsublist {
    max-height: 0;
    opacity: 0;
}
.doc-toc-subsublist::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 4px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, #e0e7ff 0%, transparent 100%);
}

.doc-toc-level-4 > a.doc-toc-item {
    padding: 4px 12px 4px 16px !important;
    font-size: 11.5px;
    color: #94a3b8 !important;
    font-weight: 400;
    border-left: none !important;
    line-height: 1.55;
    border-radius: 3px;
    position: relative;
}
.doc-toc-level-4 > a.doc-toc-item::before {
    content: "·";
    color: #cbd5e1;
    margin-right: 4px;
    font-weight: 700;
}
.doc-toc-level-4 > a.doc-toc-item:hover {
    background: #f8fafc !important;
    color: #4f46e5 !important;
    padding-left: 18px !important;
}
.doc-toc-level-4 > a.doc-toc-item:hover::before { color: #4f46e5; }
.doc-toc-level-4 > a.doc-toc-item.active {
    background: linear-gradient(90deg, #eef2ff 0%, #ffffff 100%) !important;
    color: #4f46e5 !important;
    font-weight: 500;
    box-shadow: inset 2px 0 0 #6366f1;
}
.doc-toc-level-4 > a.doc-toc-item.active::before { color: #4f46e5; }

.doc-toc-level-5 > a.doc-toc-item {
    padding: 3px 12px 3px 30px !important;
    font-size: 11px;
    color: #94a3b8 !important;
    border-left: none !important;
}
.doc-toc-level-5 > a.doc-toc-item::before { content: "·"; color: #cbd5e1; margin-right: 4px; }
.doc-toc-level-5 > a.doc-toc-item:hover { background: #f8fafc !important; color: #4f46e5 !important; }
.doc-toc-level-5 > a.doc-toc-item.active { background: #f8fafc !important; color: #4f46e5 !important; }

.doc-toc-level-6 > a.doc-toc-item {
    padding: 3px 12px 3px 44px !important;
    font-size: 11px;
    color: #cbd5e1 !important;
    border-left: none !important;
}
.doc-toc-level-6 > a.doc-toc-item::before { content: "·"; color: #cbd5e1; margin-right: 4px; }

/* ---------- 右侧：正文 ---------- */
.doc-content {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 36px 44px;
    border: 1px solid #e2e8f0;
    line-height: 1.85;
    font-size: 15px;
    color: #1e293b;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* 标题 */
.doc-content h1, .doc-content h2, .doc-content h3, .doc-content h4, .doc-content h5, .doc-content h6 {
    margin: 32px 0 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    letter-spacing: -0.2px;
    scroll-margin-top: 90px;
}
.doc-content h1:first-child, .doc-content h2:first-child { margin-top: 0; }
.doc-content h2 {
    font-size: 22px;
    padding: 0 0 10px;
    border-bottom: 2px solid #eef2ff;
    position: relative;
}
.doc-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #4f46e5, #8b5cf6);
    border-radius: 1px;
}
.doc-content h3 {
    font-size: 18px;
    color: #1e293b;
    padding-left: 12px;
    border-left: 3px solid #6366f1;
    line-height: 1.4;
    margin-left: -15px;
}
.doc-content h4 { font-size: 16px; color: #334155; }
.doc-content p { margin: 0 0 14px; color: #334155; }
.doc-content ul, .doc-content ol { margin: 0 0 16px; padding-left: 24px; }
.doc-content li { margin: 4px 0; }
.doc-content li::marker { color: #94a3b8; }

.doc-content strong { color: #0f172a; font-weight: 600; }

/* 引用 */
.doc-content blockquote {
    margin: 18px 0;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid #6366f1;
    color: #475569;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
}
.doc-content blockquote p:last-child { margin-bottom: 0; }

/* 图片 */
.doc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

/* 表格 - 现代化样式 */
.doc-content table.hlz-md-table, .doc-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    font-size: 14px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    display: table;
}
.doc-content table th, .doc-content table td {
    padding: 11px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}
.doc-content table th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 600;
    color: #334155;
    font-size: 13px;
}
.doc-content table tbody tr:last-child td { border-bottom: none; }
.doc-content table tbody tr:nth-child(even) td { background: #fafbfc; }
.doc-content table tbody tr:hover td { background: #f5f3ff; }

/* 代码 */
.doc-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.88em;
    color: #be185d;
    border: 1px solid #e2e8f0;
}
.doc-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 16px 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
    line-height: 1.6;
}
.doc-content pre code {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
}

/* ---------- 浮动操作按钮（FAB） ---------- */
.doc-fab {
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.doc-fab-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    padding: 0;
}
.doc-fab-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.doc-fab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}
.doc-fab-btn:active { transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .doc-content { padding: 28px 28px; }
    .doc-anchor-toc { width: 220px; }
}
@media (max-width: 900px) {
    .doc-toc-level-3 > a.doc-toc-item { padding-left: 10px !important; }
    .doc-toc-subsublist { margin-left: 16px; }
    .doc-toc-level-4 > a.doc-toc-item { padding-left: 12px !important; }
}
@media (max-width: 768px) {
    .doc-grid { grid-template-columns: 1fr; }
    .doc-detail-wrap { flex-direction: column; gap: 16px; }
    .doc-anchor-toc {
        width: 100%;
        position: static;
        max-height: 280px;
    }
    .doc-content { padding: 22px 18px; font-size: 14px; }
    .doc-content h1 { font-size: 22px; }
    .doc-content h2 { font-size: 18px; }
    .doc-content h3 { font-size: 16px; }
    .doc-detail-header h1 { font-size: 22px; }
    .doc-fab { right: 12px; bottom: 16px; }
    .doc-fab-btn { width: 40px; height: 40px; }
}

/* =====================================================================
 *  打印 / 导出 PDF 样式
 *  - 用户点击"导出 PDF"按钮时，JS 调用 window.print() 唤起浏览器打印
 *  - 浏览器目标选择"另存为 PDF"即可下载
 *  - 以下 @media print 规则仅在打印/PDF 导出时生效
 *  - 设计目标：干净、可读、节省纸张，不夹带站点装饰元素
 * =====================================================================*/
@page {
    size: A4;
    margin: 14mm 14mm 16mm 14mm;
}

@media print {
    /* 隐藏：顶栏、页脚、面包屑、进度条、左目录、浮动按钮、导出按钮本身 */
    .site-header,
    .top-bar,
    .site-footer,
    .breadcrumb,
    .doc-read-progress,
    .doc-anchor-toc,
    .doc-fab,
    .doc-meta-btn,
    .doc-meta-btn-pdf,
    .admin-bar,
    .navbar,
    .nav,
    .footer,
    header.header,
    footer.footer,
    .scroll-top,
    .back-to-top {
        display: none !important;
    }

    /* 详情头部：只保留标题 h1，副标题（简介）和元信息行一律不打印 */
    .doc-detail-header .doc-detail-summary,
    .doc-detail-header .doc-detail-meta {
        display: none !important;
    }

    /* 整页基础：白底黑字、无阴影、紧凑留白 */
    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 12pt;
        line-height: 1.7;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* 容器占满，去掉所有限制宽度 */
    .page-wrap,
    .container,
    .site-main {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    /* 左右分栏改为单列，去掉分栏 */
    .doc-detail-wrap {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 详情头：去掉阴影/背景/边框/圆角 */
    .doc-detail-header {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 0 16px !important;
        margin: 0 0 20px !important;
        page-break-after: avoid;
        break-after: avoid;
    }
    .doc-detail-header h1 {
        font-size: 22pt !important;
        color: #000 !important;
        margin: 0 0 8px !important;
    }
    .doc-detail-summary {
        color: #444 !important;
        font-size: 11pt !important;
        margin: 0 0 12px !important;
    }
    .doc-detail-meta {
        color: #666 !important;
        font-size: 10pt !important;
        border-top: 1px solid #ddd !important;
        border-bottom: 1px solid #ddd !important;
        padding: 6px 0 !important;
    }
    .doc-detail-meta .doc-meta-item,
    .doc-detail-meta .doc-meta-chip {
        color: #555 !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }

    /* 正文：去阴影/白底/边距舒展 */
    .doc-content {
        background: #fff !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #000 !important;
        font-size: 12pt !important;
        line-height: 1.8 !important;
    }

    /* 标题：分页友好 */
    .doc-content h1,
    .doc-content h2,
    .doc-content h3,
    .doc-content h4,
    .doc-content h5,
    .doc-content h6 {
        color: #000 !important;
        page-break-after: avoid;
        break-after: avoid;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .doc-content h1 { font-size: 18pt !important; margin: 18pt 0 8pt !important; }
    .doc-content h2 { font-size: 15pt !important; margin: 16pt 0 6pt !important; }
    .doc-content h3 { font-size: 13pt !important; margin: 12pt 0 4pt !important; }
    .doc-content h4 { font-size: 12pt !important; margin: 10pt 0 4pt !important; }
    /* 移除 h2/h3 装饰用 ::before 横线（屏幕视觉，打印不需要） */
    .doc-content h2::before,
    .doc-content h3::before { display: none !important; }

    /* 正文段落 */
    .doc-content p {
        color: #222 !important;
        margin: 0 0 8pt !important;
        orphans: 3;
        widows: 3;
    }
    .doc-content strong { color: #000 !important; }
    .doc-content a {
        color: #1e3a8a !important;
        text-decoration: underline !important;
        word-break: break-all;
    }
    .doc-content a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
        word-break: break-all;
    }
    /* 内部锚点链接不显示 url 后缀，避免重复 */
    .doc-content a[href^="#"]::after { content: "" !important; }

    /* 列表 */
    .doc-content ul,
    .doc-content ol {
        margin: 6pt 0 10pt !important;
        padding-left: 22pt !important;
        color: #222 !important;
    }
    .doc-content li { margin: 2pt 0 !important; }

    /* 引用块 */
    .doc-content blockquote {
        background: transparent !important;
        border-left: 3px solid #888 !important;
        padding: 4pt 12pt !important;
        margin: 8pt 0 !important;
        color: #333 !important;
        font-style: normal !important;
    }

    /* 表格：不被截断 */
    .doc-content table {
        width: 100% !important;
        border-collapse: collapse !important;
        page-break-inside: avoid;
        break-inside: avoid;
        margin: 10pt 0 !important;
    }
    .doc-content table th,
    .doc-content table td {
        border: 1px solid #999 !important;
        padding: 5pt 8pt !important;
        font-size: 10.5pt !important;
        color: #000 !important;
        background: transparent !important;
    }
    .doc-content table th {
        background: #eee !important;
        font-weight: 700 !important;
    }

    /* 代码块 */
    .doc-content pre,
    .doc-content code {
        background: #f4f4f4 !important;
        color: #111 !important;
        border: 1px solid #ddd !important;
        font-size: 10pt !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .doc-content pre {
        padding: 8pt 10pt !important;
        border-radius: 0 !important;
        white-space: pre-wrap !important;
        word-break: break-word;
    }
    .doc-content code { padding: 1pt 4pt !important; }

    /* 图片：黑白即可，不超页宽 */
    .doc-content img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
        break-inside: avoid;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    /* 链接 / 按钮等控件不打印本身 */
    a.button, button, .btn, .button { display: none !important; }

    /* 标记 is-printing 状态（防止某些浏览器渲染闪烁） */
    body.is-printing * {
        animation: none !important;
        transition: none !important;
    }

    /* 链接颜色在打印时加深，避免浅色看不清 */
    a, a:visited { color: #1e3a8a !important; }

    /* 避免孤行/寡行 */
    p, li, blockquote { page-break-inside: avoid; }
}

/* ============================================================
 * 二级导航下拉菜单（关于我们 → 联系/留言/招聘 等）
 *  - 桌面端（>768px）：父级 hover 显示子菜单
 *  - 移动端（≤768px）：点击箭头展开/折叠
 *  - Magic Line 横线指示器只跟踪顶级菜单（.nav-link），不影响子菜单
 * ============================================================ */

/* 父级有子菜单时的容器标记 */
.nav-item.has-children { position: relative; }

/* 父级链接里的箭头 */
.nav-item .nav-arrow {
    font-size: 10px;
    margin-left: 4px;
    opacity: .65;
    transition: transform .2s;
    display: inline-block;
    line-height: 1;
}
.nav-item.has-children:hover .nav-arrow,
.nav-item.has-children.is-open .nav-arrow { transform: rotate(180deg); }

/* 顶级菜单前的图标（emoji） */
.nav-link .nav-icon {
    font-size: 16px;
    margin-right: 4px;
    line-height: 1;
    vertical-align: -2px;
}

/* 子菜单容器（桌面端默认绝对定位 + 隐藏） */
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 180px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 1000;
    white-space: nowrap;
}

/* hover / focus / 手动展开时显示 */
.nav-item.has-children:hover .nav-submenu,
.nav-item.has-children:focus-within .nav-submenu,
.nav-item.has-children.is-open .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 子菜单链接 */
.nav-submenu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: #475569;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.nav-submenu-link:hover,
.nav-submenu-link.active {
    background: linear-gradient(90deg, #eff6ff, #f0f9ff);
    color: #2563eb;
}
.nav-submenu-icon {
    font-size: 16px;
    flex-shrink: 0;
    line-height: 1;
}
.nav-submenu-text { line-height: 1.4; }

/* 移动端：下拉改为点击展开（max-height 平滑动画） */
@media (max-width: 768px) {
    .nav-item.has-children { position: static; }
    .nav-submenu {
        position: static;
        transform: none;
        box-shadow: none;
        border: 0;
        background: transparent;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease, padding .25s ease;
    }
    .nav-item.has-children.is-open .nav-submenu {
        max-height: 500px;
        padding: 4px 0 8px 16px;
    }
    .nav-submenu-link {
        padding: 10px 0;
        font-size: 14px;
        border-bottom: 1px solid #f1f5f9;
        background: transparent;
    }
    .nav-submenu-link:hover,
    .nav-submenu-link.active {
        background: transparent;
        color: #2563eb;
    }
    .nav-item .nav-arrow {
        float: right;
        margin-top: 4px;
    }
    .nav-item.has-children:hover .nav-arrow { transform: none; }
    .nav-item.has-children.is-open .nav-arrow { transform: rotate(180deg); }
}

/* ============================================================
 *  文档多版本管理 — 前台样式
 *  - doc-history-banner      顶部黄色历史版本提示条
 *  - doc-meta-version        元数据中的版本 chip
 *  - doc-versions-panel      历史版本列表面板
 *  - doc-meta-btn-versions   「历史版本」按钮
 * ============================================================ */

/* ----- 历史版本 banner ----- */
.doc-history-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 10px;
    padding: 16px 20px;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}
.doc-history-banner-icon {
    font-size: 28px;
    flex-shrink: 0;
    line-height: 1;
}
.doc-history-banner-text {
    flex: 1;
    min-width: 0;
}
.doc-history-banner-title {
    font-size: 15px;
    color: #78350f;
    font-weight: 600;
    line-height: 1.5;
}
.doc-history-banner-title strong {
    color: #b91c1c;
    font-size: 17px;
    margin: 0 4px;
}
.doc-history-banner-date {
    color: #92400e;
    font-size: 12px;
    margin-left: 8px;
    font-weight: 400;
}
.doc-history-banner-note {
    color: #78350f;
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.5;
}
.doc-history-banner-back {
    background: #fff;
    color: #b45309;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid #f59e0b;
    flex-shrink: 0;
    transition: all .15s;
    white-space: nowrap;
}
.doc-history-banner-back:hover {
    background: #f59e0b;
    color: #fff;
}

/* ----- 元数据中的版本 chip + 按钮 ----- */
.doc-meta-version {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.doc-meta-version.is-current {
    background: #dbeafe;
    color: #1e40af;
}
.doc-meta-version.is-old {
    background: #fef3c7;
    color: #92400e;
}
.doc-meta-btn-versions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}
.doc-meta-btn-versions:hover {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}
.doc-meta-btn-versions .doc-meta-btn-count {
    background: #1e40af;
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

/* ----- 历史版本列表面板 ----- */
.doc-versions-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin: 0 0 24px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
    transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
}
.doc-versions-panel.is-open {
    max-height: 4000px;
    opacity: 1;
    padding: 20px;
}
.doc-versions-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.doc-versions-panel-title {
    font-size: 16px;
    color: #1e293b;
    font-weight: 700;
    margin: 0;
}
.doc-versions-panel-close {
    background: none;
    border: 0;
    color: #64748b;
    cursor: pointer;
    font-size: 20px;
    padding: 0 4px;
    line-height: 1;
    transition: color .15s;
}
.doc-versions-panel-close:hover {
    color: #1e293b;
}

.doc-versions-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.doc-versions-item {
    border-radius: 6px;
    transition: background .15s;
    position: relative;
}
.doc-versions-item + .doc-versions-item {
    border-top: 1px dashed #e2e8f0;
}
.doc-versions-item.is-current {
    background: linear-gradient(90deg, #fef9c3, transparent);
    border-left: 3px solid #f59e0b;
}
.doc-versions-item.is-active {
    background: #eff6ff;
}
.doc-versions-item.is-hidden {
    opacity: 0.6;
}
.doc-versions-link {
    display: block;
    padding: 12px 12px;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    transition: background .15s;
}
.doc-versions-link:hover {
    background: #f8fafc;
}
.doc-versions-row1 {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.doc-versions-v {
    font-weight: 700;
    color: #1e40af;
    font-size: 14px;
    background: #eff6ff;
    padding: 2px 8px;
    border-radius: 4px;
}
.doc-versions-item.is-current .doc-versions-v {
    background: #f59e0b;
    color: #fff;
}
.doc-versions-date {
    color: #94a3b8;
    font-size: 12px;
    margin-left: auto;
}
.doc-versions-row2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
}
.doc-versions-views {
    color: #64748b;
}
.doc-versions-note {
    color: #475569;
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.5;
    width: 100%;
}
.doc-versions-tags {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.doc-versions-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.doc-versions-tag-current {
    background: #dbeafe;
    color: #1e40af;
}
.doc-versions-tag-hidden {
    background: #fee2e2;
    color: #b91c1c;
}
.doc-versions-tag-private {
    background: #fef3c7;
    color: #92400e;
}
.doc-versions-tag-pwd {
    background: #ede9fe;
    color: #6d28d9;
}
.doc-versions-tag-public {
    background: #f1f5f9;
    color: #475569;
}
.doc-versions-empty {
    padding: 32px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

/* ----- 移动端适配 ----- */
@media (max-width: 768px) {
    .doc-history-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 16px;
    }
    .doc-history-banner-icon {
        font-size: 22px;
    }
    .doc-history-banner-back {
        align-self: stretch;
        text-align: center;
    }
    .doc-versions-panel.is-open {
        padding: 16px;
    }
    .doc-versions-row1 {
        font-size: 13px;
    }
    .doc-versions-date {
        margin-left: 0;
    }
    .doc-versions-link {
        padding: 10px 8px;
    }
}

/* ----- 文档卡上的版本数小角标 ----- */
.doc-card-versions-mini {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 500;
    vertical-align: middle;
}
