/* ============================================
   QuickWebCMS - 统一公用样式文件
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  background: #f5f6f8;
  min-width: 1024px;
}
a { color: #333; text-decoration: none; transition: color .25s; }
a:hover { color: #01a338; }
img { max-width: 100%; height: auto; display: block; border: 0; }
ul, ol { list-style: none; }
input, textarea, button, select { font-family: inherit; font-size: inherit; outline: none; }
table { border-collapse: collapse; border-spacing: 0; }

/* ---- Layout ---- */
.wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}
.clearfix::after { content: ""; display: table; clear: both; }

/* ---- TOP BAR ---- */
.top-bar {
  background: #01a338;
  color: #fff;
  font-size: 13px;
  line-height: 36px;
}
.top-bar .wrap { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,.9); }
.top-bar a:hover { color: #fff; }

/* ---- HEADER ---- */
.header { background: #fff; padding: 20px 0; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.header .wrap { display: flex; justify-content: space-between; align-items: center; }
.header .logo img { height: 76px; width: auto; }
.header .hotline {
  display: flex; align-items: center; gap: 12px;
}
.hotline-icon {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: #eafaf0; flex-shrink: 0;
}
.hotline-icon svg { display: block; }
.hotline-text {
  display: flex; flex-direction: column; line-height: 1.4;
}
.hotline-label {
  font-size: 13px; color: #999;
}
.header .hotline .tel {
  font-size: 24px; font-weight: 700; color: #01a338;
  letter-spacing: 1px;
}

/* ---- NAV ---- */
.nav { background: #fff; border-top: 2px solid #01a338; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 999; }
.nav .wrap { max-width: 1300px; margin: 0 auto; padding: 0 10px; }

/* 导航列表 - 平均分配宽度 */
.nav-list {
  display: flex; width: 100%; list-style: none;
}
.nav-item {
  flex: 1; text-align: center; position: relative;
}
.nav-item > a {
  display: block; padding: 16px 8px; font-size: 15px; font-weight: 500;
  color: #333; position: relative; white-space: nowrap; transition: color .3s;
}
.nav-item > a::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; background: #01a338; transition: width .3s;
}
.nav-item:hover > a::after,
.nav-item.active > a::after { width: 70%; }
.nav-item:hover > a,
.nav-item.active > a { color: #01a338; }

/* 下拉箭头指示 */
.nav-item > a.has-dropdown::after {
  /* 保留底部指示线 */;
}
.nav-item .dropdown-indicator {
  display: inline-block; margin-left: 4px; vertical-align: middle; transition: transform .3s;
}
.nav-item:hover .dropdown-indicator { transform: rotate(180deg); }

/* ---- 下拉二级菜单 ---- */
.dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 150px; background: #fff; list-style: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden;
  transform-origin: top center;
  transition: opacity .25s, visibility .25s, transform .25s;
  padding: 6px 0; z-index: 100;
}
.nav-item:hover .dropdown-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu::before {
  content: ""; position: absolute; top: -6px; left: 0; width: 100%; height: 6px; background: transparent;
}
.dropdown-menu li { border-bottom: 1px solid #f0f0f0; }
.dropdown-menu li:last-child { border-bottom: 0; }
.dropdown-menu li a {
  display: block; padding: 10px 24px; font-size: 14px; color: #555;
  text-align: center; white-space: nowrap; transition: all .25s;
}
.dropdown-menu li a:hover {
  color: #01a338; background: #eafaf0; padding-left: 28px;
}

/* 二级菜单离底边太近时向上弹出 */
@media screen and (max-height: 700px) {
  .nav-item:last-child .dropdown-menu,
  .nav-item:nth-last-child(2) .dropdown-menu {
    bottom: 100%; top: auto;
    border-radius: 6px 6px 0 0;
  }
}

/* ---- BANNER / SLIDER ---- */
.banner{position:relative;overflow:hidden;max-height:520px}
.banner .bd ul{display:flex;transition:transform .6s ease}
.banner .bd li{flex-shrink:0;width:100%;height:480px;background-size:cover!important;background-position:center!important}
.banner .hd{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);z-index:10;display:flex;align-items:center;justify-content:center;gap:10px;padding:8px 16px;background:rgba(0,0,0,.2);border-radius:20px;backdrop-filter:blur(4px)}
.banner .hd ul{display:flex;gap:10px;align-items:center;list-style:none;margin:0;padding:0}
.banner .hd li{width:12px;height:12px;border-radius:50%;background:#fff;cursor:pointer;transition:var(--transition);flex-shrink:0}
.banner .hd li.on{background:#01a338;transform:scale(1.3);/*box-shadow:0 0 0 3px rgba(255,255,255,.3)*/}
.banner .prev,.banner .next{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:10;transition:var(--transition);border:none;color:var(--white)}
.banner .prev:hover,.banner .next:hover{background:#01a338; color:#fff;}
.banner .prev{left:30px}
.banner .next{right:30px}

/* ---- MAIN CONTENT AREA ---- */
.main-content { padding: 30px 0; }
.main-content .wrap { display: flex; gap: 30px; }

/* ---- LEFT SIDEBAR ---- */
.sidebar { width: 260px; flex-shrink: 0; }
.sidebar .side-box {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05); margin-bottom: 20px;
}
.sidebar .side-title {
  background: #01a338; color: #fff; font-size: 16px; font-weight: 700;
  padding: 14px 20px; letter-spacing: 1px;
}
.sidebar .side-menu { padding: 10px 0; }
.sidebar .side-menu li { border-bottom: 1px solid #f0f0f0; }
.sidebar .side-menu li:last-child { border-bottom: 0; }
.sidebar .side-menu a {
  display: block; padding: 12px 20px 12px 28px; font-size: 14px;
  position: relative; transition: all .25s;
}
.sidebar .side-menu a::before {
  content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; background: #01a338; border-radius: 50%;
}
.sidebar .side-menu a:hover, .sidebar .side-menu a.active {
  background: #eafaf0; color: #01a338; padding-left: 36px;
}
.sidebar .side-contact { padding: 14px 20px; font-size: 13px; line-height: 2; color: #555; }
.sidebar .side-contact strong { color: #01a338;font-size:18px;}
.prod-sidebar .side-contact { padding: 14px 20px; font-size: 13px; line-height: 2; color: #555; }
.prod-sidebar .side-contact strong { color: #01a338; font-size:18px;}
/* ---- RIGHT CONTENT ---- */
.content { flex: 1; min-width: 0; }
.content-box {
  background: #fff; border-radius: 8px; padding: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05); min-height: 400px;
}

/* ---- BREADCRUMB ---- */
.breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 24px;
  border-bottom: 1px dashed #e0e0e0; font-size: 13px; color: #999;
}
.breadcrumb h2 { font-size: 18px; color: #01a338; margin-right: 12px; font-weight: 700; }
.breadcrumb span { color: #999; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #01a338; }

/* ---- SECTION TITLE ---- */
.sec-title {
  text-align: center; margin-bottom: 40px; padding-top: 10px;
}
.sec-title h2 {
  font-size: 30px; font-weight: 700; color: #222; margin-bottom: 10px;
}
.sec-title h2 span { color: #01a338; }
.sec-title .sub {
  font-size: 15px; color: #888; letter-spacing: 2px;
}
.sec-title .sub::after {
  content: ""; display: block; width: 60px; height: 3px;
  background: #01a338; margin: 14px auto 0; border-radius: 2px;
}

/* ---- PRODUCT GRID (4:3 image ratio) ---- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.prod-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s;
}
.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(1,163,56,.15);
}
.prod-card .img-wrap {
  display: block;
  position: relative; width: 100%;
  /* 4:3 aspect ratio (兼容旧浏览器) */
  padding-bottom: 75%;
  overflow: hidden;
}
.prod-card .img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
@supports (aspect-ratio: 4 / 3) {
  .prod-card .img-wrap {
    aspect-ratio: 4 / 3;
    padding-bottom: 0;
  }
}
.prod-card .info {
  padding: 14px; text-align: center;
  background: #fff; border-top: 1px solid #f0f0f0;
}
.prod-card .info h4 {
  font-size: 15px; font-weight: 600; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prod-card .info h4 a { color: #333; }
.prod-card .info h4 a:hover { color: #01a338; }

/* ---- HOME PRODUCT SECTION ---- */
.home-prod { background: #fff; padding: 60px 0; padding-top: 40px;}
.home-prod .wrap { display: flex; gap: 30px; }
.home-prod .prod-sidebar {
  width: 260px; flex-shrink: 0;
  background: #f9fafb; border-radius: 8px; overflow: hidden;
}
.home-prod .prod-sidebar .s-title {
  background: #01a338; color: #fff; font-size: 17px; font-weight: 700;
  padding: 16px 20px; text-align: center;
}
.home-prod .prod-sidebar .s-menu { padding: 8px 0; }
.home-prod .prod-sidebar .s-menu a {
  display: block; padding: 11px 20px 11px 24px; font-size: 14px;
  border-bottom: 1px solid #eee; transition: all .25s; font-weight: 500;
}
.home-prod .prod-sidebar .s-menu a:hover {
  background: #eafaf0; color: #01a338;
}
.home-prod .prod-main { flex: 1; min-width: 0; }
.home-prod .prod-main .m-title {
  font-size: 18px; font-weight: 700; color: #222;
  padding-bottom: 14px; margin-bottom: 20px;
  border-bottom: 2px solid #01a338;
  display: flex; justify-content: space-between; align-items: center;
}
.home-prod .prod-main .m-title a { font-size: 13px; font-weight: 400; color: #999; }
.home-prod .prod-main .m-title a:hover { color: #01a338; }
.home-prod .prod-main .prod-grid { grid-template-columns: repeat(3, 1fr); }

/* ---- ADVANTAGES SECTION ---- */
.adv-section { background: #f9fafb; padding: 60px 0; }
.adv-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.adv-card {
  background: #fff; border-radius: 10px; padding: 30px 24px; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.04); transition: all .3s;
  border: 1px solid transparent;
}
.adv-card:hover {
  border-color: #01a338;
  box-shadow: 0 6px 24px rgba(1,163,56,.1);
  transform: translateY(-4px);
}
.adv-card .icon-svg {
  width: 56px; height: 56px; margin: 0 auto 16px; color: #01a338;
}
.adv-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: #222; }
.adv-card p { font-size: 13px; color: #777; line-height: 1.7; }

/* ---- ABOUT SECTION (Home) ---- */
.about-sec { background: #fff; padding: 60px 0; }
.about-sec .inner { display: flex; gap: 40px; align-items: center; }
.about-sec .about-img { width: 360px; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.about-sec .about-img img { width: 100%; /*aspect-ratio: 4/3;*/ object-fit: cover; }
.about-sec .about-txt { flex: 1; }
.about-sec .about-txt h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; color: #222; }
.about-sec .about-txt p {
  font-size: 14px; color: #666; line-height: 2; text-indent: 2em; text-align: justify;
}
.about-sec .about-txt .btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding: 10px 30px;
  background: #01a338; color: #fff; border-radius: 25px;
  font-size: 14px; font-weight: 500; transition: all .3s;
}
.about-sec .about-txt .btn-link:hover {
  background: #018a2f; box-shadow: 0 4px 16px rgba(1,163,56,.4); color: #fff;
}

/* ---- FACILITY/GALLERY ---- */
.gallery-sec { background: #f9fafb; padding: 60px 0; }
.gallery-wrap { position: relative; overflow: hidden; }
.gallery-track {
  display: flex; gap: 20px;
  padding: 10px 0;
}
.gallery-item {
  flex: 0 0 calc((100% - 100px) / 6);  /* 6 列，gap 20px */
  min-width: 160px; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .3s;
  background: #fff;
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: 0 8px 24px rgba(1,163,56,.15); }
.gallery-item a { display: block; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.gallery-item span {
  display: block; text-align: center; padding: 10px; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333;
}

/* ---- NEWS SECTION ---- */
.news-sec { background: #fff; padding: 60px 0; }
.news-sec .inner { display: flex; gap: 30px; }
.news-col { flex: 1; }
.news-col .col-title {
  font-size: 17px; font-weight: 700; color: #222;
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 2px solid #01a338;
  display: flex; justify-content: space-between; align-items: center;
}
.news-col .col-title a { font-size: 13px; font-weight: 400; color: #999; }
.news-col .col-title a:hover { color: #01a338; }

/* News featured */
.news-featured {
  display: flex; gap: 16px; margin-bottom: 3px;
  padding: 14px; background: #f9fafb; border-radius: 8px;
}
.news-featured .nf-img {
  width: 200px; flex-shrink: 0; border-radius: 6px; overflow: hidden;
}
.news-featured .nf-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.news-featured .nf-info { flex: 1; }
.news-featured .nf-info h4 {
  font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.5;
}
.news-featured .nf-info p {
  font-size: 13px; color: #888; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-featured .nf-info .detail-link {
  display: inline-block; margin-top: 8px; font-size: 13px; color: #01a338;
}

/* News list */
.news-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 6px;
  border-bottom: 1px solid #f0f0f0;
  transition: all .25s;
}
.news-list li:last-child { border-bottom: 0; }
.news-list li:hover {
  background: #fafffc;
  box-shadow: 0 2px 12px rgba(1,163,56,.06);
  transform: translateX(4px);
}
.news-list li > a.news-title, .news-list .news-body h3 a {
  flex: 1; font-size: 14px; color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .25s;
}
.news-list li > a.news-title:hover,
.news-list .news-body h3 a:hover { color: #01a338; }
.news-list .news-body { flex: 1; min-width: 0; }
.news-list .news-body h3 {
  font-size: 16px; font-weight: 600; line-height: 1.5; margin-bottom: 8px;
}
.news-list .news-body h3 a {
  color: #333; transition: color .25s;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list .news-body h3 a:hover { color: #01a338; }
.news-list .news-desc {
  font-size: 13px; color: #999; line-height: 1.7; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list .news-meta { display: flex; align-items: center; gap: 6px; }
.news-list .date {
  display: flex; align-items: center; gap: 4px;
  color: #bbb; font-size: 12px; flex-shrink: 0;
}
.news-list .news-arrow {
  flex-shrink: 0; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #f5f5f5;
  transition: all .25s;
}
.news-list li:hover .news-arrow { background: #01a338; }
.news-list li:hover .news-arrow svg { stroke: #fff; }
.news-list .news-arrow svg { transition: stroke .25s; }

/* ---- FOOTER ---- */
.footer { background: #1a1f2b; color: #b0b8c8; margin-top: 50px; }
.footer a { text-decoration: none; }

.footer-main { padding: 55px 0 45px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr .8fr .9fr;
  gap: 40px;
}
.footer-col h4 {
  font-size: 16px; font-weight: 600; color: #fff;
  margin-bottom: 22px; position: relative; padding-bottom: 12px;
}
.footer-col h4::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 34px; height: 3px; border-radius: 2px; background: #01a338;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { font-size: 13px; line-height: 1.7; }

.footer-intro .footer-logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 18px; font-weight: 700; color: #fff;
  margin-bottom: 16px;
}
.footer-logo svg { flex-shrink: 0; }
.footer-about {
  font-size: 13px; line-height: 1.9; color: #9aa3b2;
  margin-bottom: 20px; text-align: justify;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #222833; color: #8a94a6; transition: all .25s;
}
.footer-social a:hover { background: #01a338; color: #fff; }

.footer-contact li {
  display: flex; align-items: flex-start; gap: 10px;
  color: #9aa3b2; margin-bottom: 12px;
}
.footer-contact svg {
  flex-shrink: 0; margin-top: 3px; color: #01a338;
}

.footer-links li { margin-bottom: 8px; }
.footer-links a, .service-tags a {
  color: #9aa3b2; font-size: 13px;
  display: inline-flex; align-items: center;
  transition: color .25s, transform .25s;
}
.footer-links a::before, .service-tags a::before {
  content: ''; width: 0; height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #01a338;
  margin-right: 8px; transition: transform .25s;
}
.footer-links a:hover, .service-tags a:hover {
  color: #01a338; transform: translateX(4px);
}
.footer-links a:hover::before, .service-tags a:hover::before {
  transform: translateX(3px);
}

.service-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px;
}
.service-tags li { margin-bottom: 0; }
.service-tags a {
  background: #222833; padding: 5px 10px; border-radius: 4px;
  border: 1px solid #2a3442;
}
.service-tags a::before { margin-right: 6px; }
.service-tags a:hover { background: #01a338; color: #fff; border-color: #01a338; }

.footer-qrcode {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: #222833; border-radius: 8px;
  border: 1px solid #2a3442;
}
.footer-qrcode img { width: 72px; height: 72px; border-radius: 6px; object-fit: cover; }
.footer-qrcode span {
  font-size: 12px; line-height: 1.6; color: #9aa3b2;
}

.footer .links-bar {
  background: #222833; padding: 14px 0; text-align: center;
  border-top: 1px solid #2a3442;
}
.footer .links-bar a { color: #8a94a6; font-size: 13px; margin: 0 12px; }
.footer .links-bar a:hover { color: #01a338; }
.footer .links-bar span { color: #555; }
.footer .copy-bar {
  text-align: center; padding: 20px 0; font-size: 13px; line-height: 2;
  background: #141821; color: #6b7280;
}
.footer .copy-bar a { color: #8a94a6; }
.footer .copy-bar a:hover { color: #01a338; }

/* ---- SEARCH BAR (Home) ---- */
.search-section {
  background: linear-gradient(135deg, #01a338, #02c745);
  padding: 20px 0; margin-bottom: 0;
}
.search-section .wrap { text-align: center; }
.search-section .hot-keys { color: rgba(255,255,255,.85); font-size: 13px; margin-bottom: 14px; }
.search-section .hot-keys a { color: #fff; margin: 0 8px; }
.search-section .hot-keys a:hover { text-decoration: underline; }
.search-section .search-form {
  display: inline-flex; width: 520px; max-width: 100%;
  border-radius: 30px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.search-section .search-form input[type="text"] {
  flex: 1; border: 0; padding: 12px 22px; font-size: 14px;
}
.search-section .search-form button {
  border: 0; padding: 12px 30px; background: #222; color: #fff;
  font-size: 14px; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background .25s;
}
.search-section .search-form button:hover { background: #000; }

/* ---- PAGINATION ---- */
.pagination {
  text-align: center; margin-top: 30px; display: flex;
  justify-content: center; gap: 6px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-block; padding: 8px 14px; border-radius: 4px;
  font-size: 13px; background: #f5f6f8; color: #666; border: 1px solid #e0e0e0;
  transition: all .25s; margin:0 2px;
}
.pagination a:hover, .pagination .fcur {
  background: #01a338; color: #fff; border-color: #01a338;
}

/* ---- DETAIL PAGE ---- */
.detail-title {
  font-size: 22px; font-weight: 700; color: #222;
  text-align: center; margin-bottom: 12px; line-height: 1.4;
}
.detail-meta {
  text-align: center; font-size: 13px; color: #999;
  padding-bottom: 16px; margin-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.detail-body {
  font-size: 15px; line-height: 2; color: #444;
  padding: 10px 0 20px;
}
.detail-body img { max-width: 100%; height: auto; margin: 10px auto; border-radius: 4px; }
.detail-nav {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid #eee;
}
.dnav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 8px;
  background: #f8f9fb; border: 1px solid #eef0f3;
  transition: all .3s ease;
}
.dnav-item:hover {
  background: #eefdf2; border-color: #b8e6c8;
  transform: translateX(2px);
}
.dnav-arrow {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #e8e9ed; color: #999;
  transition: all .3s ease;
}
.dnav-item:hover .dnav-arrow {
  background: #01a338; color: #fff;
}
.dnav-next { justify-content: space-between; }
.dnav-next .dnav-body { text-align: right; }
.dnav-body { flex: 1; min-width: 0; }
.dnav-label {
  display: block; font-size: 11px; color: #777;
  letter-spacing: 1px; margin-bottom: 4px;
  text-transform: uppercase;
}
.dnav-link, .dnav-link a {
  font-size: 14px; color: #444; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
}
.dnav-item:hover .dnav-link a { color: #01a338; }
.dnav-link a { text-decoration: none; color: #444; }

/* Related items */
.related-sec {
  margin-top: 30px; padding-top: 24px; border-top: 1px solid #eee;
}
.related-sec h3 {
  font-size: 17px; font-weight: 700; color: #333; margin-bottom: 16px;
  position: relative; padding-left: 14px;
}
.related-sec h3::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 4px; height: 18px; background: #01a338; border-radius: 2px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.rel-prod-card {
  border: 1px solid #eee; border-radius: 6px; overflow: hidden; transition: all .25s;
}
.rel-prod-card:hover { border-color: #01a338; box-shadow: 0 4px 12px rgba(1,163,56,.12); }
.rel-prod-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.rel-prod-card span {
  display: block; text-align: center; padding: 10px; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.related-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px dotted #e8e8e8; font-size: 13px;
}
.related-list a .rel-date { color: #bbb; font-size: 12px; }
.related-list a:hover { color: #01a338; }

/* ---- CONTACT / MESSAGE FORM ---- */
.form-table { width: 100%; }
.form-table th, .form-table td { padding: 12px 10px; vertical-align: top; }
.form-table th {
  width: 100px; text-align: right; color: #555; font-weight: 600;
  padding-top: 16px;
}
.form-table .inp {
  width: 100%; padding: 10px 14px; border: 1px solid #ddd;
  border-radius: 4px; font-size: 14px; transition: border-color .25s;
}
.form-table .inp:focus { border-color: #01a338; }
.form-table textarea.inp {
  height: 140px; resize: vertical;
}
.btn-submit {
  display: inline-block; padding: 10px 36px;
  background: #01a338; color: #fff; border: 0; border-radius: 25px;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all .3s;
  margin-right: 12px;
}
.btn-submit:hover { background: #018a2f; box-shadow: 0 4px 16px rgba(1,163,56,.4); }
.btn-reset {
  display: inline-block; padding: 10px 36px;
  background: #f0f0f0; color: #666; border: 0; border-radius: 25px;
  font-size: 14px; cursor: pointer; transition: all .3s;
}
.btn-reset:hover { background: #ddd; }

/* ---- SEARCH RESULT SUMMARY ---- */
.search-summary {
  background: #01a338; color: #fff; text-align: center;
  padding: 14px; border-radius: 6px; margin-bottom: 20px; font-size: 14px;
}

/* ---- BACK BUTTON ---- */
.btn-back {
  display: inline-block; padding: 8px 20px;
  background: #f5f6f8; color: #666; border-radius: 20px;
  font-size: 13px; margin-top: 10px; transition: all .25s;
}
.btn-back:hover { background: #01a338; color: #fff; }

/* ---- SCROLL TO TOP ---- */
.back2top {
  position: fixed; right: 30px; bottom: 100px; z-index: 9999;
  width: 44px; height: 44px; background: #01a338; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 12px rgba(1,163,56,.3);
  transition: all .3s; opacity: 0; visibility: hidden;
}
.back2top.show { opacity: 1; visibility: visible; }
.back2top:hover { background: #018a2f; transform: translateY(-3px); }

/* ---- ABOUT PAGE ---- */
.about-content { font-size: 15px; line-height: 2; color: #444; }
.about-content img { max-width: 100%; height: auto; border-radius: 4px; }

/* ---- H5 Compatibility ---- */
@media screen and (max-width: 1300px) {
  .wrap { max-width: 100%; padding: 0 20px; }
}
@media screen and (max-width: 1024px) {
  body { min-width: auto; }
  .wrap { padding: 0 16px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .home-prod .prod-main .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .home-prod .wrap { flex-direction: column; }
  .home-prod .prod-sidebar { width: 100%; }
  .about-sec .inner { flex-direction: column; }
  .about-sec .about-img { width: 100%; max-width: 400px; }
  .news-sec .inner { flex-direction: column; }
  .news-featured { flex-direction: column; }
  .news-featured .nf-img { width: 100%; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item { flex: 0 0 calc((100% - 60px) / 4); }  /* 平板 4 列 */
}
@media screen and (max-width: 640px) {
  .gallery-item { flex: 0 0 calc((100% - 40px) / 3); }  /* 手机 3 列 */
}
@media screen and (max-width: 420px) {
  .gallery-item { flex: 0 0 calc((100% - 20px) / 2); }  /* 超小屏 2 列 */
}

/* ---- FOOTER FLOAT WIDGET ---- */
.footer-float {
  position: fixed; right: 30px; top: 50%; z-index: 9999;
}
.footer-float img { width: 120px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }

/* ---- FOOTER RESPONSIVE ---- */
@media screen and (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}
@media screen and (max-width: 640px) {
  .footer-main { padding: 40px 0 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-col h4 { margin-bottom: 16px; }
  .footer-intro .footer-logo { font-size: 16px; }
  .service-tags { margin-bottom: 14px; }
  .footer .links-bar a { display: inline-block; margin: 4px 8px; }
}
@media screen and (max-width: 640px) {
  .nav-item { padding: 12px 14px; gap: 10px; }
  .nav-arrow { width: 34px; height: 34px; }
  .nav-arrow svg { width: 16px; height: 16px; }
  .nav-link, .nav-link a { font-size: 13px; }
}
@media screen and (max-width: 420px) {
  .footer-grid { gap: 22px; }
  .footer-social a { width: 32px; height: 32px; }
  .footer-qrcode { flex-direction: column; text-align: center; }
  .footer-qrcode img { width: 90px; height: 90px; }
}
