/* ==========================================================
   Tag page styles  v5
   - 所有样式限定在 .tag-page-container 内，不污染全站导航/页脚
   - 左侧吸顶目录导航 .tag-nav：列出各编辑器的标题，点击跳转，滚动自动高亮
   - 编辑器内容完整显示，不限高、不内部滚动
   - 文末 “smt- 内容主题桥接” 用 !important 把编辑器里带内联样式的内容统一成站点绿色主题
   可调参数在 :root：--nav-w（导航栏宽度）、--sticky-top（吸顶距离）
   ========================================================== */

:root {
    --primary-color: #3d7a1c;
    --primary-dark: #2a5a12;
    --secondary-color: #86bc25;
    --accent-color: #f5a623;
    --light-bg: #f3f7ef;
    --card-bg: #ffffff;
    --text-color: #222;
    --body-color: #3b4a5c;
    --muted-color: #6b7a8c;
    --soft-border: #e3e8ef;
    --green-tint: #f4f9ec;
    --green-tint-2: #eaf4d8;
    --shadow-sm: 0 2px 8px rgba(20, 50, 20, 0.06);
    --shadow-elevation: 0 6px 22px rgba(20, 50, 20, 0.08);
    --shadow-hover: 0 14px 32px rgba(20, 50, 20, 0.16);
    --radius: 14px;

    /* 布局参数 */
    --nav-w: 290px;
    --sticky-top: 24px;
}

html { scroll-behavior: smooth; }

/* ---------- 页面容器 ---------- */
.tag-page-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 32px 30px 70px;
    color: var(--text-color);
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    line-height: 1.7;
    background:
        radial-gradient(900px 380px at 100% 0, rgba(134, 188, 37, .10), transparent 70%),
        var(--light-bg);
}
.tag-page-container *,
.tag-page-container *::before,
.tag-page-container *::after {
    box-sizing: border-box;
}
.tag-page-container a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color .25s, background-color .25s, box-shadow .25s, transform .25s, border-color .25s;
}
.tag-page-container a:hover {
    color: var(--secondary-color);
}
.tag-page-container img {
    max-width: 100%;
}
.tag-page-container :focus-visible {
    outline: 3px solid rgba(134, 188, 37, .55);
    outline-offset: 2px;
}

/* 锚点跳转时给顶部留空 */
#tag-intro, #tag-products, #tag-det1, #tag-det2, #tag-det3, #tag-det4, #tag-det5,
#tag-det6, #tag-det7, #tag-det8, #tag-det9, #tag-det10 {
    scroll-margin-top: 24px;
}

/* ---------- Hero ---------- */
.tag-hero-section {
    position: relative;
    margin-bottom: 32px;
    padding: 52px 40px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #eef6e0 100%);
    border: 1px solid rgba(134, 188, 37, .25);
    border-radius: 22px;
    box-shadow: var(--shadow-elevation);
    overflow: hidden;
}
.tag-hero-section::before {
    content: '';
    position: absolute;
    top: -110px;
    right: -90px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(134, 188, 37, .22), transparent 70%);
    pointer-events: none;
}
.tag-hero-section::after {
    content: '';
    position: absolute;
    left: -70px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 122, 28, .10), transparent 70%);
    pointer-events: none;
}
.tag-title {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.5px;
    text-align: center;
    color: var(--primary-dark);
}
.tag-hero-section .hero-section-p {
    position: relative;
    z-index: 1;
    display: table;
    margin: 0 auto 28px;
    padding: 6px 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(61, 122, 28, .09);
    border: 1px solid rgba(61, 122, 28, .18);
    border-radius: 999px;
}
.editor-content-1 {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 30px;
    font-size: 16px;
    line-height: 1.9;
    color: #4a5a6c;
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--soft-border);
    border-left: 5px solid var(--secondary-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
/* 简介里放的是自带卡片样式的 HTML 时，外框让位，避免“卡片套卡片” */
.editor-content-1:has(> [class^="smt-"]) {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.editor-content-1 p { margin: 0 0 12px; }
.editor-content-1 p:last-child { margin-bottom: 0; }
.editor-content-1 strong { color: var(--primary-dark); }

/* ==========================================================
   布局：左侧目录 + 右侧内容（产品分类 + 编辑器）
   ========================================================== */
.tag-layout {
    display: grid;
    grid-template-columns: var(--nav-w) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.tag-main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

/* ---------- 左侧目录导航（编辑器标题） ---------- */
.tag-nav {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: var(--sticky-top);
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--soft-border);
    border-radius: 18px;
    box-shadow: var(--shadow-elevation);
}
.tag-nav-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding: 18px 22px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}
.tag-nav-head i {
    font-size: 18px;
    opacity: .9;
}
.tag-nav-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
}
.tag-nav-body::-webkit-scrollbar { width: 8px; }
.tag-nav-body::-webkit-scrollbar-thumb {
    background: rgba(134, 188, 37, .75);
    border-radius: 8px;
}
.tag-nav-body::-webkit-scrollbar-track { background: transparent; }

.tag-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: navno;
}
.tag-nav-list li {
    margin: 0 0 4px;
    padding: 0;
}
.tag-nav-list li[hidden] { display: none; }
.tag-nav-list li a {
    counter-increment: navno;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--body-color);
    border: 1px solid transparent;
    border-left: 4px solid transparent;
    border-radius: 10px;
}
.tag-nav-list li a::before {
    content: counter(navno);
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    color: var(--primary-dark);
    background: var(--green-tint-2);
    border-radius: 50%;
    transition: background-color .25s, color .25s;
}
.tag-nav-list li a:hover {
    color: var(--primary-dark);
    background: var(--green-tint);
}
.tag-nav-list li a.is-active {
    color: var(--primary-dark);
    background: var(--green-tint);
    border-left-color: var(--secondary-color);
}
.tag-nav-list li a.is-active::before {
    color: #fff;
    background: var(--primary-color);
}
.tag-nav-foot {
    flex: 0 0 auto;
    padding: 14px 16px 16px;
    background: var(--green-tint);
    border-top: 1px solid var(--soft-border);
}
.tag-page-container a.tag-nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(61, 122, 28, .28);
}
.tag-page-container a.tag-nav-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(61, 122, 28, .36);
}

/* ---------- 内容矩阵：主列 + 侧列 ---------- */
.content-matrix {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}
.main-content-column,
.sidebar-content-column {
    min-width: 0;
}

/* ==========================================================
   编辑器模块（内容完整显示，不限高）
   ========================================================== */
.editor-module,
.editor-module1,
.editor-module-faq {
    font-size: 15px;
}

.editor-module {
    margin-bottom: 26px;
    padding: 26px;
    background: var(--card-bg);
    border: 1px solid var(--soft-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-elevation);
    transition: box-shadow .3s, border-color .3s;
}
.editor-module:hover {
    border-color: rgba(134, 188, 37, .45);
    box-shadow: var(--shadow-hover);
}
/* 编辑器里放的是自带卡片样式的 HTML：外框只保留一圈细边，避免双层厚重 */
.editor-module:has(> [class^="smt-"]),
.editor-module-faq:has([class^="smt-"]) {
    padding: 12px;
}
.editor-module p { margin: 0 0 14px; }
.editor-module strong { font-weight: 700; color: var(--primary-dark); }

.editor-module h2 {
    margin: 0 0 22px;
    padding-bottom: 12px;
    font-size: 1.7em;
    font-weight: 700;
    color: var(--text-color);
    border-bottom: 3px solid var(--secondary-color);
}
.editor-module h3,
.editor-module h4 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
}

/* 普通列表（编辑器里的 ul/li 才加对勾；带 smt- 类的列表由内联样式自行控制，见文末桥接） */
.editor-module ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.editor-module li {
    position: relative;
    padding: 8px 0 8px 30px;
    line-height: 1.8;
    border-bottom: 1px dashed var(--soft-border);
}
.editor-module li:last-child { border-bottom: 0; }
.editor-module li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--secondary-color);
    border-radius: 50%;
}

/* ---------- 参数表格（det1） ---------- */
.info-column1 table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--soft-border);
    border-radius: 10px;
}
.info-column1 table th,
.info-column1 table td {
    width: 50%;
    padding: 12px 16px;
    font-size: 14.5px;
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--soft-border);
}
.info-column1 table th {
    font-weight: 700;
    color: #fff;
    background: var(--primary-color);
}
.info-column1 table tbody tr:nth-child(even) td { background: var(--green-tint); }
.info-column1 table tbody tr:hover td { background: var(--green-tint-2); }
.info-column1 table tbody tr:last-child td { border-bottom: 0; }
.info-column1 table tbody tr td:first-of-type {
    font-weight: 700;
    color: var(--primary-dark);
}

.spec-table {
    width: 100%;
    margin-top: 15px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
}
.spec-table th,
.spec-table td {
    padding: 14px 16px;
    font-size: .95em;
    text-align: left;
    border-bottom: 1px solid var(--soft-border);
}
.spec-table th {
    font-weight: 500;
    text-transform: uppercase;
    color: #fff;
    background: var(--primary-color);
}
.spec-table tr:last-child td { border-bottom: 0; }

/* ---------- 优势卡片（det2） ---------- */
.editor-module1 { margin: 0 0 26px; }
.editor-module1 h3,
.editor-module1 h4,
.editor-module-faq h4 {
    position: relative;
    margin: 0 0 24px;
    padding: 10px 0;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
}
.editor-module1 h3::after,
.editor-module1 h4::after,
.editor-module-faq h4::after {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    margin: 10px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}
.jinfeng-ul-1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 0 0 6px;
    list-style: none;
}
.jinfeng-ul-1 li {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 18px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--soft-border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.jinfeng-ul-1 li:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-hover);
}
.jinfeng-ul-1 li::before {
    content: '⭐';
    margin-right: 12px;
    font-size: 30px;
    line-height: 1;
    color: var(--accent-color);
}
.jinfeng-ul-1 li span {
    display: inline;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* ---------- 服务模块（det4） ---------- */
.editor-module-service h3 {
    margin: 0 0 20px;
    padding-bottom: 10px;
    font-size: 1.5em;
    font-weight: 700;
    text-align: left;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* ==========================================================
   FAQ 手风琴：.editor-module-faq（站点原 JS）与 ul.smt-faq-ul（tag-page.js）共用
   ========================================================== */
.editor-module-faq {
    margin: 0 0 26px;
    padding: 22px 18px;
    background: var(--card-bg);
    border: 1px solid var(--soft-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-elevation);
}
.editor-module-faq:empty { display: none; }
.editor-module-faq h3 {
    margin: 0 0 20px;
    padding-bottom: 10px;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}
.editor-module-faq ul,
.tag-main ul.smt-faq-ul {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
    overflow: hidden;
    border: 1px solid var(--soft-border);
    border-radius: 12px;
    transition: box-shadow .3s;
}
.editor-module-faq ul:hover,
.tag-main ul.smt-faq-ul:hover { box-shadow: var(--shadow-sm); }
.editor-module-faq li,
.tag-main ul.smt-faq-ul > li {
    padding: 15px 46px 15px 16px;
    transition: background-color .3s;
}
.editor-module-faq li:first-child,
.tag-main ul.smt-faq-ul > li:first-child {
    position: relative;
    font-weight: 700;
    cursor: pointer;
    color: #333;
    background: var(--green-tint);
    border-bottom: 1px solid var(--soft-border);
}
.editor-module-faq li:first-child:hover,
.tag-main ul.smt-faq-ul > li:first-child:hover { background: var(--green-tint-2); }
.editor-module-faq li:first-child::after,
.tag-main ul.smt-faq-ul > li:first-child::after {
    content: '+';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4em;
    line-height: 1;
    color: var(--secondary-color);
}
.editor-module-faq li:first-child.expanded::after,
.tag-main ul.smt-faq-ul > li:first-child.expanded::after { content: '−'; }
.editor-module-faq li:last-child,
.tag-main ul.smt-faq-ul > li:last-child {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    opacity: 0;
    color: #555;
    background: #fff;
    transition: max-height .4s ease-out, padding .4s ease-out, opacity .3s ease;
}
.editor-module-faq li:last-child.active,
.tag-main ul.smt-faq-ul > li:last-child.active {
    max-height: 520px;
    padding: 15px 46px 15px 16px;
    opacity: 1;
}
/* FAQ 里不要对勾图标 */
.editor-module-faq li::before,
.tag-main ul.smt-faq-ul > li::before { display: none; }

/* ---------- 通用：空编辑器隐藏、媒体自适应、表格、引用 ---------- */
.editor-module:empty,
.editor-module1:empty,
.editor-module-wide:empty {
    display: none;
}
.editor-module-wide {
    margin: 6px 0 0;
    padding: 30px 34px;
}
.editor-module img,
.editor-module video,
.editor-module iframe {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.editor-module table {
    width: 100%;
    margin-bottom: 16px;
    border-collapse: collapse;
}
.editor-module table th,
.editor-module table td {
    padding: 10px 14px;
    border: 1px solid var(--soft-border);
}
.editor-module table th {
    color: #fff;
    background: var(--primary-color);
}
.editor-module blockquote {
    margin: 16px 0;
    padding: 12px 18px;
    color: #4a5a6c;
    background: var(--green-tint-2);
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 8px 8px 0;
}

/* ==========================================================
   smt- 内容主题桥接
   编辑器里的 HTML 带内联样式（蓝/深蓝色系）。下面用 !important 统一成站点绿色主题。
   只改颜色，不改布局；想换色只改这一段（或 :root 里的变量）。
   ========================================================== */
.tag-page-container .smt-h4 {
    border-left-color: var(--secondary-color) !important;
    color: var(--primary-dark) !important;
    font-size: 18px !important;
    margin-bottom: 14px !important;
}
.tag-page-container .smt-p { color: #3f4d5c !important; }
.tag-page-container .smt-strong { color: var(--primary-dark) !important; }

/* 表格：绿色表头 + 斑马纹 */
.tag-page-container .smt-table { border-radius: 10px; overflow: hidden; }
.tag-page-container .smt-th {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}
.tag-page-container .smt-table .smt-tr:nth-child(odd) .smt-td { background: #fff !important; }
.tag-page-container .smt-table .smt-tr:nth-child(even) .smt-td { background: var(--green-tint) !important; }
.tag-page-container .smt-table .smt-tr:hover .smt-td { background: var(--green-tint-2) !important; }
.tag-page-container .smt-td { border-color: #dfe8d2 !important; }
.tag-page-container .smt-table .smt-tr .smt-td:first-child { color: var(--primary-dark) !important; }

/* 列表：圆点/编号用绿色；防止站点的 ✓ 和 28px 缩进叠加到带内联样式的列表上 */
.tag-page-container li.smt-li::before { display: none !important; }
.tag-page-container li.smt-li { border-bottom-color: #e3ecd6; }
.tag-page-container .smt-dot { background: var(--secondary-color) !important; }
.tag-page-container .smt-num { background: var(--primary-color) !important; }
.editor-module li.smt-li { padding-left: 0; }

/* FAQ（带内联样式的版本）：交给上面的手风琴样式，去掉内联的内边距/左边框 */
.tag-main ul.smt-faq-ul {
    padding: 0 !important;
    margin: 0 0 12px !important;
    background: #fff !important;
    border: 1px solid var(--soft-border) !important;
    border-left: 4px solid var(--secondary-color) !important;
    border-radius: 12px !important;
}
.tag-main ul.smt-faq-ul > li.smt-li {
    margin: 0 !important;
    padding: 15px 46px 15px 16px !important;
    color: #333 !important;
    line-height: 1.7 !important;
}
.tag-main ul.smt-faq-ul > li.smt-li:last-child:not(.active) { padding-top: 0 !important; padding-bottom: 0 !important; }
.tag-main ul.smt-faq-ul > li.smt-li:first-child { color: var(--primary-dark) !important; }

/* 相关标签胶囊（内链） */
.tag-page-container ul.smt-related-ul { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-page-container ul.smt-related-ul li.smt-li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.tag-page-container a.smt-a {
    background: var(--green-tint-2) !important;
    color: var(--primary-dark) !important;
    border: 1px solid #cfe5a8 !important;
    padding: 8px 16px !important;
    font-size: 13.5px !important;
}
.tag-page-container a.smt-a:hover {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(134, 188, 37, .35);
}

/* ---------- 底部推荐链接 ---------- */
.more-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-top: 40px;
    padding: 24px 30px;
    font-weight: 700;
    color: var(--text-color);
    background: #fff;
    border: 1px solid var(--soft-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.more-info a {
    display: inline-block;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    color: #3d7a1c;
    background: #eef6e0;
    border: 1px solid #d3e8b4;
    border-radius: 999px;
}
.more-info a:hover {
    color: #fff;
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(134, 188, 37, .3);
    transform: translateY(-2px);
}

/* ---------- 产品预览（保留原有） ---------- */
.product-preview-section {
    margin-bottom: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--soft-border);
}
.product-preview-section h2 {
    margin-bottom: 30px;
    font-size: 2.2em;
    text-align: center;
    color: var(--primary-color);
}
.product-preview-section .list { margin-top: 50px; }
.product-preview-section .list span.swiper-notification { display: none; }
.product-preview-section .list .box { max-width: 480px; margin: 0 auto; text-align: center; }
.product-preview-section .list .newbox1 { padding: 10px; background: #eee; }
.product-preview-section .box .img img { width: 100%; height: 100%; object-fit: cover; }
.product-preview-section .list .box .con { margin-top: 20px; }
.product-preview-section .list .box .con p { font-size: 14px; }
.product-preview-section .list .box .con h6 {
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-transform: capitalize;
    color: #111;
}
.product-preview-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.preview-card {
    width: 300px;
    padding: 20px;
    text-align: center;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-elevation);
    transition: box-shadow .3s, transform .3s;
}
.preview-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.preview-card img { border-radius: 4px; transition: opacity .3s; }
.preview-card:hover img { opacity: .9; }
.preview-card h3 { margin: 15px 0 5px; font-size: 1.2em; color: var(--text-color); }
.preview-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    color: #fff;
    background: var(--secondary-color);
    border-radius: 6px;
}
.preview-card a:hover { color: #fff; background: var(--primary-color); }


/* ==========================================================
   v5 新增：产品分类区 + 模块视觉强化
   ========================================================== */

/* 区块标题（左侧色条 + 右侧延伸线） */
.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    font-size: 1.7em;
    font-weight: 800;
    line-height: 1.3;
    color: var(--primary-dark);
}
.section-heading::before {
    content: '';
    flex: 0 0 6px;
    align-self: stretch;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}
.section-heading::after {
    content: '';
    flex: 1 1 auto;
    height: 2px;
    background: linear-gradient(90deg, rgba(134, 188, 37, .5), transparent);
}

/* 产品分类 */
.product-catalog { margin: 0 0 32px; }
ul.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
ul.category-list > li {
    position: relative;
    margin: 0 0 24px;
    padding: 24px 26px 28px;
    background: var(--card-bg);
    border: 1px solid var(--soft-border);
    border-radius: 16px;
    box-shadow: var(--shadow-elevation);
    overflow: hidden;
}
ul.category-list > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}
ul.category-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--primary-dark);
}
ul.category-list > li > a::after {
    content: '→';
    font-size: 18px;
    color: var(--secondary-color);
    transition: transform .25s;
}
ul.category-list > li > a:hover { color: var(--primary-color); }
ul.category-list > li > a:hover::after { transform: translateX(5px); }

ul.sub-category {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
ul.sub-category li {
    margin: 0;
    padding: 0;
    text-align: center;
}
ul.sub-category li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 14px 10px 16px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--body-color);
    background: #fff;
    border: 1px solid var(--soft-border);
    border-radius: 12px;
}
ul.sub-category li a:hover {
    color: var(--primary-dark);
    border-color: rgba(134, 188, 37, .55);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}
ul.sub-category li img {
    display: block;
    width: 100%;
    max-width: 150px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto 12px;
    padding: 8px;
    object-fit: contain;
    background: linear-gradient(180deg, #f7f9fc, var(--green-tint));
    border-radius: 10px;
    transition: transform .4s;
}
ul.sub-category li a:hover img { transform: scale(1.07); }

/* 编辑器卡片顶部色条，增强层次 */
.editor-module,
.editor-module-faq {
    position: relative;
    border-top: 4px solid var(--secondary-color);
}
/* 编辑器 2（.editor-module1）原来没有外框：补成和其它编辑器一样的卡片 */
.editor-module1 {
    position: relative;
    margin: 0 0 26px;
    padding: 26px;
    background: var(--card-bg);
    border: 1px solid var(--soft-border);
    border-top: 4px solid var(--secondary-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-elevation);
    transition: box-shadow .3s, border-color .3s;
}
.editor-module1:hover {
    border-color: rgba(134, 188, 37, .45);
    border-top-color: var(--secondary-color);
    box-shadow: var(--shadow-hover);
}
.editor-module1:has(> [class^="smt-"]) { padding: 12px; }
.editor-module1 p { margin: 0 0 14px; }
.editor-module1 strong { font-weight: 700; color: var(--primary-dark); }
.editor-module1 img,
.editor-module1 video,
.editor-module1 iframe { max-width: 100%; height: auto; border-radius: 8px; }
.editor-module1 > :last-child { margin-bottom: 0; }

/* 编辑器 2 里的普通列表：与其它编辑器一样加对勾（.jinfeng-ul-1 星标卡片、smt- 列表除外） */
.editor-module1 ul:not(.jinfeng-ul-1) { list-style: none; margin: 0; padding: 0; }
.editor-module1 ul:not(.jinfeng-ul-1) li {
    position: relative;
    padding: 8px 0 8px 30px;
    line-height: 1.8;
    border-bottom: 1px dashed var(--soft-border);
}
.editor-module1 ul:not(.jinfeng-ul-1) li:last-child { border-bottom: 0; }
.editor-module1 ul:not(.jinfeng-ul-1) li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--secondary-color);
    border-radius: 50%;
}
.editor-module1 li.smt-li { padding-left: 0; }


/* ==========================================================
   响应式
   ========================================================== */
/* 中等屏：内容区改单列，目录仍在左侧 */
@media (max-width: 1300px) {
    :root { --nav-w: 260px; }
    .content-matrix { grid-template-columns: minmax(0, 1fr); }
}

/* 平板/手机：目录变成顶部横向胶囊（排到内容前面），不再吸顶 */
@media (max-width: 960px) {
    .tag-page-container { padding: 20px 15px 50px; }
    .tag-hero-section { padding: 38px 20px 26px; border-radius: 16px; }
    .tag-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .tag-nav, .tag-main { grid-column: auto; grid-row: auto; }
    .tag-nav { position: static; max-height: none; order: -1; }
    ul.category-list > li { padding: 20px 16px 22px; }
    ul.category-list > li > a { font-size: 20px; }
    .tag-nav-body { overflow: visible; }
    .tag-nav-list { display: flex; flex-wrap: wrap; gap: 8px; }
    .tag-nav-list li { margin: 0; }
    .tag-nav-list li a {
        padding: 7px 12px;
        font-size: 13.5px;
        border-radius: 999px;
        background: var(--green-tint);
    }
    .tag-nav-list li a, .tag-nav-list li a.is-active { border-left-width: 1px; }
    .tag-nav-list li a.is-active { border-color: var(--secondary-color); }
    .editor-module, .editor-module1 { margin-bottom: 20px; padding: 18px; }
    .editor-module:has(> [class^="smt-"]), .editor-module1:has(> [class^="smt-"]) { padding: 8px; }
    .editor-module-wide { padding: 22px 18px; }
}
@media (max-width: 768px) {
    .jinfeng-ul-1 { flex-direction: column; gap: 14px; }
    .jinfeng-ul-1 li { width: 100%; justify-content: flex-start; padding: 15px; }
    .info-column1 table { display: block; overflow-x: auto; }
    .more-info { padding: 18px; }
}
@media (max-width: 520px) {
    .editor-content-1 { padding: 18px; font-size: 15px; }
    ul.sub-category { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    ul.sub-category li a { padding: 10px 8px 12px; font-size: 13.5px; }
    .section-heading { font-size: 1.4em; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tag-page-container * { transition: none !important; }
}