        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        
        body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: #f5f7fb;
            color: #111;
        }
        .banner-slide-item{
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
        .dynamic-empty{width:100%; height:90px;}
        .dynamic-block-item img {
    max-width: 100%;
    width: 100%;
    height: auto;  /* 高度自动按比例缩放，防止图片压扁拉伸 */
    display:block;
}
        .img-input-wrap input { min-width:220px; }
        .upload-trigger-btn {
            padding:4px 10px;
            border:1px solid #409eff;
            background:#ecf5ff;
            color:#409eff;
            border-radius:4px;
            cursor:pointer;
        }
        .upload-trigger-btn:hover {
            background:#409eff;
            color:#fff;
        }
        /* 顶部保存栏 */
        .editor-top-bar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background: #ffffff;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            z-index: 9999;
        }
        
        .editor-top-bar .title {
            font-size: 18px;
            font-weight: 700;
            color: #111827;
        }
        .editor-top-bar .actions {
            display: flex;
            gap: 12px;
            align-items:center;
        }
        .btn {
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
        }
        .btn-secondary {
            background: #f3f4f6;
            color: #374151;
        }
        .btn-primary {
            background: #098838;
            color: #fff;
        }
        .btn-primary:hover {
            background: #07702e;
        }


        
        /* ==========新增：下拉菜单样式 ========== */
        .dropdown-wrap {
            position:relative;
        }
        .dropdown-menu {
            position:absolute;
            top:calc(100% + 6px);
            right:0;
            min-width:220px;
            background:#fff;
            border-radius:6px;
            box-shadow:0 4px 16px rgba(0,0,0,0.12);
            border:1px solid #e5e7eb;
            display:none;
            z-index:99999;
        }
        .dropdown-menu.show{
            display:block;
        }
        .dropdown-item{
            padding:10px 14px;
            cursor:pointer;
            font-size:14px;
        }
        .dropdown-item:hover{
            background:#f3f4f6;
        }
        /* 页面编辑预览区 */
        .editor-page-wrapper {
            margin-top: 56px;
            width: 100%;
            min-height: calc(100vh - 56px);
            background: #ffffff;
            /* 新增下面3行 */
            display: flex;
            flex-direction: column;
        }
        /* 每个可编辑区块的外壳 */
        .edit-block {
            position: relative;
            overflow: visible !important; /*强制溢出可见*/
        }
        /* 鼠标经过时的遮罩 */
        .edit-block-hover-mask {
            position: absolute;
            inset: 0;
            background: rgba(9, 136, 56, 0.08);
            border: 2px solid #098838;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.25s ease;
            z-index: 10;
        }
        .edit-block:hover .edit-block-hover-mask {
            opacity: 1;
        }
        /* 右上角编辑按钮 */
        .edit-block-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            z-index: 11;
            background: #098838;
            color: #fff;
            border: none;
            padding: 8px 14px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            opacity: 0;
            transform: translateY(-4px);
            transition: all 0.25s ease;
        }
        .edit-block:hover .edit-block-btn {
            opacity: 1;
            transform: translateY(0);
        }
        .edit-block-btn:hover {
            background: #07702e;
        }
        /* 弹窗样式 */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.45);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 99999;
            padding: 12px;
        }
        .modal {
            width: 100%;
            max-width: 640px;
            max-height: 85vh;
            overflow: auto;
            background: #fff;
            padding: 24px;
            border-radius: 10px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        }
        .modal-title {
            margin-bottom: 18px;
            font-size: 20px;
            font-weight: 700;
        }
        .form-item {
            margin-bottom: 14px;
        }
        .form-item label {
            display: block;
            margin-bottom: 6px;
            font-size: 14px;
            font-weight: 600;
            color: #374151;
        }
        .form-item input,
        .form-item textarea,
        .form-item select {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 15px;
            background: #fff;
        }
        .form-item textarea {
            min-height: 100px;
            resize: vertical;
        }
        .array-editor-item {
            border: 1px solid #e5e7eb;
            padding: 12px;
            margin-bottom: 10px;
            border-radius: 6px;
            position: relative;
            background: #f9fafb;
        }
        .del-row {
            position: absolute;
            right: 8px;
            top: 8px;
            color: #ef4444;
            border: none;
            background: none;
            cursor: pointer;
            font-size: 18px;
            line-height: 1;
        }
        .modal-footer {
            margin-top: 22px;
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }
        .btn-del {
            background: #fef2f2;
            color: #dc2626;
        }
        .btn-del:hover {
            background: #fee2e2;
        }
 /* ==========【替换】首页顶部导航 tpl-home-nav 美化+浏览器兼容 ========== */
.tpl-home-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 18px 24px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    -webkit-backface-visibility: hidden;
}

.logo-area {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
}
.logo-title {
    font-size: 24px;
    font-weight: 800;
}
.logo-title .red {
    color: #ed333b;
}
.logo-title .green {
    color: #098838;
}
.logo-sub {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.menu-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 28px;
}
/* 导航链接：大写粗体 + 兼容前缀 + hover微动效 */
.tpl-home-nav .menu-list a {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: color 0.22s ease, transform 0.22s ease;
    -webkit-transition: color 0.22s ease, transform 0.22s ease;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap:6px;
}
/* 下拉红色小三角 */
.tpl-home-nav .menu-list a[data-has-sub="true"]::after{
    content:"";
    font-size:10px;
    color:#ed333b;
}
.tpl-home-nav .menu-list a:hover {
    color:#098838;
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
}

.nav-right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 16px;
}
.nav-right span {
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
}
.nav-right span:hover {
    color:#098838;
}
.btn-quote {
    background: #098838;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    -webkit-transition: all 0.22s ease;
    box-shadow: 0 3px 8px rgba(9,136,56,0.2);
}
.btn-quote:hover {
    background: #07702e;
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(9,136,56,0.25);
}

@media (max-width:768px) {
    .tpl-home-nav {
        flex-direction: column;
        padding: 14px 16px;
        gap:14px;
    }
    /* logo区域占满一行，居中 */
    .logo-area {
        width:100%;
        justify-content: center;
    }
    /* 导航菜单：自动换行，居中，调整间距，不会挤字 */
    .menu-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px; /* 上下间距12px，左右18px */
    }
    .tpl-home-nav .menu-list a {
        font-size:14px;
    }
    /* 右侧图标+按钮单独一行，居中对齐 */
    .nav-right {
        width:100%;
        justify-content: center;
        gap:14px;
    }
    /* 手机端请求报价按钮缩小一点，防止太宽 */
    .btn-quote {
        padding:8px 14px;
        font-size:13px;
    }
}
        .logo-area {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .logo-title {
            font-size: 24px;
            font-weight: 800;
        }
        .logo-title .red {
            color: #ed333b;
        }
        .logo-title .green {
            color: #098838;
        }
        .logo-sub {
            font-size: 12px;
            color: #6b7280;
            margin-top: 2px;
        }
        .menu-list {
            display: flex;
            gap: 24px;
        }
        .menu-list a {
            text-decoration: none;
            color: #374151;
            font-size: 14px;
            font-weight: 500;
        }
        .menu-list a:hover {
            color: #098838;
        }
        .nav-right {
            display: flex;
            align-items: center;
            gap: 16px;
        }
        .nav-right span {
            font-size: 18px;
            cursor: pointer;
        }
        .btn-quote {
            background: #098838;
            color: #fff;
            border: none;
            padding: 10px 18px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
        }
        .btn-quote:hover {
            background: #07702e;
        }

        /* ==========轮播Banner【修改美化+多图轮播】========== */
        .tpl-home-banner {
            width: 100%;
            min-height: 120px;
            position: relative;
            overflow: hidden;
        }
        .banner-slide-item {
            position:absolute;
            inset:0;
            background-size: cover;
            background-position: center;
            display:flex;
            align-items:center;
            padding:0 48px;
            color:#fff;
            opacity:0;
            transition: opacity 0.8s ease;
        }
        .banner-slide-item.active {
            opacity:1;
            z-index:2;
        }
        /* 背景遮罩：减弱图片，突出文字 */
        .banner-slide-item::before{
           display: none;
        }
        .banner-text {
            position:relative;
            z-index:3;
            background: rgba(0, 0, 0, 0.35);
            padding: 28px 32px;
            border-radius: 8px;
            max-width: 460px;
            backdrop-filter: blur(4px);
        }
        .banner-text h2 {
            font-size: 48px;
            line-height: 1.2;
            margin-bottom: 12px;
        }
        .banner-text h2 .red {
            color: #ed333b;
        }
        .banner-text h2 .green {
            color: #098838;
        }
        .banner-text .sub-title {
            font-size: 22px;
            color: #098838;
            margin-bottom: 12px;
            font-weight: 700;
        }
        .banner-text p {
            font-size: 16px;
            line-height: 1.6;
            color: #e5e7eb;
        }
        /* 轮播指示器 */
        .banner-dots{
            position:absolute;
            bottom:24px;
            left:0;
            right:0;
            display:flex;
            gap:10px;
            justify-content:center;
            z-index:5;
        }
        .banner-dot{
            width:12px;
            height:12px;
            border-radius:50%;
            background:rgba(255,255,255,0.4);
            cursor:pointer;
        }
        .banner-dot.active{
            background:#ffffff;
        }

        .tpl-static-text {
            padding: 32px 24px;
            background: #fff;
        }
        .tpl-static-text h2 {
            font-size: 28px;
            margin-bottom: 12px;
        }
        .tpl-static-text p {
            color: #4b5563;
            line-height: 1.7;
        }
        .tpl-dynamic-card-grid {
            padding: 32px 24px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            background: #f9fafb;
        }
        .card-item {
            border: 1px solid #e5e7eb;
            padding: 16px;
            border-radius: 8px;
            background: #fff;
        }
        /* ============新增区块样式============ */
        /* 统计图标卡片区块 */
        .tpl-stats-icon-card-wrap {
            padding:40px 24px;
            background:#f0f7f4;
        }
        .tpl-stats-icon-card-wrap .section-title{
            text-align:center;
            font-size:28px;
            margin-bottom:28px;
        }
        .stats-card-grid{
            display:grid;
            grid-template-columns: repeat(5,1fr);
            gap:18px;
        }
        .stats-card{
            background:#ffffff;
            border-radius:8px;
            padding:24px 16px;
            text-align:center;
        }
        .stats-card .icon-img{
            margin-bottom:12px;
            min-height:64px;
        }
        .stats-card h4{
            font-size:18px;
            line-height:1.4;
        }
        .stats-card .num{
            font-size:22px;
            font-weight:700;
            color:#098838;
            margin-top:6px;
        }
        /* 产品展示网格 */
        .tpl-product-show-wrap{
            padding:40px 24px;
            background:#fff;
        }
        .tpl-product-show-wrap .section-title{
            font-size:32px;
            text-align:center;
            margin-bottom:24px;
        }
        .product-show-grid{
            display:grid;
            grid-template-columns: repeat(4,1fr);
            gap:20px;
        }
        .product-card{
            border:1px solid #eee;
            border-radius:8px;
            overflow:hidden;
        }
        .product-card img{
            width:100%;
            height:220px;
            object-fit:cover;
        }
        .product-card .p-body{
            padding:14px;
        }
        .product-card .p-title{
            font-weight:600;
            font-size:15px;
        }
        /* 应用场景网格 */
        .tpl-application-wrap{
            padding:40px 24px;
            background:#f9fafb;
        }
        .tpl-application-wrap .section-title{
            text-align:center;
            font-size:32px;
            margin-bottom:24px;
        }
        .app-grid{
            display:grid;
            grid-template-columns: repeat(4,1fr);
            gap:18px;
        }
        .app-card{
            border-radius:8px;
            overflow:hidden;
            position:relative;
            height:240px;
        }
        .app-card img{
            width:100%;
            height:100%;
            object-fit:cover;
        }
        .app-card .app-text{
            position:absolute;
            left:0;right:0;bottom:0;
            padding:16px;
            background:linear-gradient(transparent,rgba(0,0,0,0.65));
            color:#fff;
            font-size:18px;
            font-weight:bold;
        }
        /*新闻网格*/
        .tpl-news-wrap{
            padding:40px 24px;
            background:#ffffff;
        }
        .tpl-news-wrap .section-title{
            text-align:center;
            font-size:32px;
            margin-bottom:24px;
        }
        .news-grid{
            display:grid;
            grid-template-columns: repeat(2,1fr);
            gap:24px;
        }
        .news-card{
            border:1px solid #eee;
            border-radius:8px;
            overflow:hidden;
        }
        .news-card img{
            width:100%;
            height:240px;
            object-fit:cover;
        }
        .news-card .n-body{
            padding:16px;
        }
        .news-card .n-title{
            font-size:18px;
            font-weight:600;
            margin-bottom:8px;
        }
        .news-card .n-date{
            font-size:13px;
            color:#777;
        }
        /* ==========Footer页脚区块 参考截图6列布局========== */
        .tpl-footer-wrap{
            background:#ffffff;
            padding:48px 24px 24px;
            border-top:1px solid #e5e7eb;
        }
        .footer {
  /* 原有定位 */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  /* 关键：适配手机底部手势条 */
  padding-bottom: env(safe-area-inset-bottom);
}
        .footer-grid{
            display:grid;
            grid-template-columns: repeat(6,1fr);
            gap:24px;
            margin-bottom:32px;
        }
        .footer-col h4{
            font-size:20px;
            font-weight:700;
            margin-bottom:16px;
        }
        .footer-col ul{
            list-style:none;
        }
        .footer-col li{
            margin-bottom:10px;
        }
        .footer-col li a{
            color:#444;
            text-decoration:none;
            font-size:15px;
        }
        .footer-col li a:hover{
            color:#098838;
        }
        .footer-contact-text{
            line-height:1.7;
            color:#444;
        }
        .footer-pay-icons{
            display:flex;
            gap:12px;
            margin:20px 0;
        }
        .footer-pay-icons img{
            height:28px;
        }
        .footer-bottom{
            border-top:1px solid #e5e7eb;
            padding-top:20px;
            color:#666;
            font-size:14px;
        }
        .footer-bottom-links a{
            color:#444;
            text-decoration:none;
            margin-right:12px;
        }
        .footer-bottom-links a:hover{
            color:#098838;
        }

/* ===== 手机端页脚网格适配 ===== */
@media (max-width:768px) {
  .footer-grid {
    /* 小屏幕改成2列，不会太挤；如果想单列就改成 repeat(1,1fr) */
    grid-template-columns: repeat(2,1fr);
    gap:20px;
  }
  .tpl-footer-wrap{
    padding:32px 16px 20px;
  }
  .footer-col h4{
    font-size:18px;
    margin-bottom:12px;
  }
  .footer-col li a{
    font-size:14px;
  }
  .footer-bottom{
    font-size:13px;
  }
}
        
/* 全局：清除a标签默认蓝色下划线，全部链接统一控制 */
a {
    text-decoration: none;
}
a:link,
a:visited {
    color: inherit;
}

/* 全局所有卡片内图片hover放大效果，统一过渡；父容器自动做overflow:hidden */
.product-card,
.news-card,
.app-card,
.dynamic-block-item,
.stats-card,
.card-item {
    overflow: hidden;
}

.product-card img,
.news-card img,
.app-card img,
.dynamic-block-item img,
.stats-card img,
.card-item img {
    transition: transform 0.26s ease;
}

.product-card:hover img,
.news-card:hover img,
.app-card:hover img,
.dynamic-block-item:hover img,
.stats-card:hover img,
.card-item:hover img {
    transform: scale(1.05);
}

        @media (max-width: 768px) {
            .tpl-home-nav {
                flex-direction: column;
                gap: 12px;
            }
            .menu-list {
                flex-wrap: wrap;
                justify-content: center;
            }
            .tpl-home-banner {
                min-height: 120px;
            }
            .banner-slide-item{
                padding:24px;
            }
            .banner-text h2 {
                font-size: 32px;
            }
            .tpl-dynamic-card-grid {
                grid-template-columns: 1fr;
            }
            .stats-card-grid{
                grid-template-columns: repeat(2,1fr);
            }
            .product-show-grid{
                grid-template-columns: repeat(2,1fr);
            }
            .app-grid{
                grid-template-columns: repeat(2,1fr);
            }
            .news-grid{
                grid-template-columns: 1fr;
            }
        }

