        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        
        body {
            padding-top: 72px;
            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;
    /* 改动开始 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent; /* 默认透明，去掉原来固定#fff */
    border-bottom: none;
    box-shadow: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    -webkit-backface-visibility: hidden;
}
/* 滚动后添加的class样式，JS控制添加 */
.tpl-home-nav.scrolled {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
/* 导航hover阴影效果 */
.tpl-home-nav:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.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);
}

        .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: left center;
            background-repeat: no‑repeat;
            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;
        }

/* ========= JS加上 .mobile 类后自动启用手机布局 ========= */
.tpl-home-nav.mobile {
    flex-direction: column;
    padding: 14px 16px;
    gap: 16px;
}
.tpl-home-nav.mobile .logo-area {
    width: 100%;
    text-align: center;
}
.tpl-home-nav.mobile .menu-list {
    width:100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 36px;
}
.tpl-home-nav.mobile .nav-right {
    width:100%;
    text-align:center;
}
.tpl-home-nav.mobile .btn-quote {
    padding:12px 24px;
    font-size: 20px;
}

        /* =====手机banner适配===== */
@media (max-width: 768px) {
    .tpl-home-banner {
        height: 90vh;
        min-height: 400px;
    }
    .banner-slide-item {
        /* 手机：背景图片靠左，保证文字部分可见，右边插画自动裁切 */
        background-position: left center;
        padding: 0 16px;
        /* 手机垂直居中 */
        align-items: center;
        justify-content: flex-start;
    }
    .banner-text {
        /* 手机去掉最大宽度，占满屏幕留白 */
        max-width: 100%;
        padding: 20px 18px;
    }
    .banner-text h2 {
        font-size: 30px !important;
    }
    .banner-text .sub-title {
        font-size: 18px;
    }
}

        /* 轮播指示器 */
        .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);
}

/* ========== 全局通用 a 标签 放在这里 ========== */
a {
    color: #098838;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: #07702e;
    text-decoration: underline;
}
/* 取消点击后的虚线外框 */
a:focus {
    outline: none;
}
/* 键盘访问保留焦点样式，无障碍 */
a:focus-visible {
    outline: 2px solid #098838;
    outline-offset: 2px;
}
        .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) {
    body {
        padding-top: 62px; /* 移动端padding缩小，匹配14px上下padding */
    }
    .tpl-home-nav {
        position: fixed;  /* 手机也保持固定头部！不要改成relative */
        flex-wrap: wrap;
        padding: 14px 16px;
    }
    .logo-area {
        width: auto;
        justify-content: flex-start;
    }
    /* 汉堡按钮 */
    .hamburger {
        display: block;
        border: none;
        background: transparent;
        font-size: 28px;
        cursor: pointer;
        padding: 0 8px;
        color: inherit;
    }
    /* 手机默认隐藏菜单 */
 
.menu-list {
    position: absolute;
    left:0;
    top:100%;
    width:100%;
    background:#fff;
    flex-direction:column;
    padding:20px;
    gap:16px;
    display:none;
    z-index:9999;
  }


    .menu-list .mobile-open {
        display: flex;
    }
    .tpl-home-nav .menu-list a {
        font-size:16px;
        text-align:center;
    }
    /* checkbox选中，展开菜单 */
    #menuToggle:checked ~ .menu-list {
        display: flex;
    }
    .nav-right {
        width: auto;
        gap:12px;
    }
    .btn-quote {
        padding:8px 14px;
        font-size:13px;
    }
}
/* PC端隐藏汉堡 */
.hamburger {
    display: none;
}
