/* t217_4 aggressive overrides · 活力橙·侧栏分栏 */

/* global spacing reset */
body.tpl-t217.var-v4 .tpl-sec { position: relative; }
body.tpl-t217.var-v4 .tpl-sec::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--tpl-accent);
  margin-bottom: 16px;
}
body.tpl-t217.var-v4 .c-layer--nav::before,
body.tpl-t217.var-v4 .tpl-header::before,
body.tpl-t217.var-v4 .tpl-banner::before,
body.tpl-t217.var-v4 .tpl-footer::before { display: none; }

/* typography scale */
body.var-v1 { font-size: 15px; }
body.var-v1 h2 { font-size: 28px !important; font-weight: 700 !important; }
body.var-v2 { font-size: 14px; }
body.var-v2 h2 { font-size: 26px !important; font-weight: 600 !important; }
body.var-v3 { font-size: 15px; }
body.var-v3 h2 { font-size: 24px !important; letter-spacing: .05em !important; }
body.var-v4 { font-size: 15px; }
body.var-v4 h2 { font-size: 26px !important; font-weight: 700 !important; }

/* swiper / slider tint */
body.var-v4 .swiper-pagination-bullet-active {
  background: var(--tpl-primary) !important;
}
body.var-v2 .swiper-container {
  border-radius: var(--tpl-radius);
  overflow: hidden;
}

/* tabs restyle */
body.var-v4 .tabs .tab.is-active,
body.var-v4 .tab.active {
  color: var(--tpl-primary) !important;
  border-color: var(--tpl-primary) !important;
}
body.var-v2 .tabs .tab {
  border-radius: 20px 20px 0 0 !important;
  padding: 8px 20px !important;
}
body.var-v3 .tabs {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
body.layout-sidebar .tpl-main-v3 .tabs,
body.layout-sidebar .tpl-main-v3 .nav-tabs {
  display: block !important;
  flex-direction: row !important;
}
body.var-v3 .tabs .tab {
  text-align: left !important;
  border-left: 3px solid transparent !important;
  padding-left: 12px !important;
}
body.var-v3 .tabs .tab.is-active {
  border-left-color: var(--tpl-primary) !important;
  background: var(--tpl-bg) !important;
}
body.var-v4 .tabs .tab.is-active {
  border-left-color: var(--tpl-primary) !important;
  background: #fff !important;
}

/* form / contact blocks */
body.var-v4 .c-layer--contact,
body.var-v4 .contact-box, body.var-v4 .msg-form {
  background: linear-gradient(135deg, var(--tpl-bg), #fff) !important;
  border-radius: var(--tpl-radius) !important;
  padding: 32px !important;
}
body.var-v1 .c-layer--contact {
  border-top: 4px solid var(--tpl-primary);
}
body.var-v2 .c-layer--contact {
  box-shadow: 0 8px 32px rgba(0,0,0,.1) !important;
  margin: 24px !important;
}
body.var-v3 .c-layer--contact {
  max-width: 640px !important;
  margin: 32px auto !important;
}

/* partner / logo rows */
body.var-v1 .c-layer--partner .c-grid {
  grid-template-columns: repeat(6, 1fr) !important;
}
body.var-v2 .c-layer--partner img {
  filter: grayscale(20%);
  transition: .2s;
}
body.var-v2 .c-layer--partner img:hover { filter: none; transform: scale(1.05); }
body.var-v3 .c-layer--partner .c-grid {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  max-width: 100% !important;
}

/* product grids */
body.var-v4 .product-list, body.var-v4 .pro-list {
  display: grid !important;
  gap: 20px !important;
}
body.var-v1 .product-list, body.var-v1 .pro-list {
  grid-template-columns: repeat(3, 1fr) !important;
}
body.var-v2 .product-list, body.var-v2 .pro-list {
  grid-template-columns: repeat(2, 1fr) !important;
}
body.var-v2 .product-list li, body.var-v2 .pro-list li {
  border-radius: var(--tpl-radius) !important;
  overflow: hidden !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.08) !important;
}
body.var-v3 .product-list, body.var-v3 .pro-list {
  grid-template-columns: 1fr !important;
  max-width: 720px !important;
  margin: 0 auto !important;
}

/* hide mobile dup in sidebar mode */
body.layout-sidebar .tpl-aside-v3 .mobile-menu-mask,
body.layout-sidebar .tpl-aside-v3 .icon-menu {
  display: none !important;
}

/* page hero zone v1 */
body.var-v1 .tpl-hero-zone {
  background: linear-gradient(180deg, var(--tpl-bg) 0%, #fff 100%);
  padding-bottom: 24px;
}

/* service blocks t200 */
body.var-v1 .service_container {
  border-left: 4px solid var(--tpl-primary) !important;
  padding-left: 20px !important;
  margin-bottom: 24px !important;
}
body.var-v2 .service_container {
  background: #fff !important;
  border-radius: var(--tpl-radius) !important;
  padding: 24px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.06) !important;
  margin-bottom: 16px !important;
}
body.var-v3 .service_container {
  max-width: 680px !important;
  margin: 0 auto 20px !important;
  padding: 20px !important;
  border-bottom: 1px solid var(--tpl-accent) !important;
}
body.var-v4 .service_container {
  max-width: 960px !important;
  margin: 0 auto 24px !important;
  padding: 24px !important;
  border-left: 6px solid var(--tpl-primary) !important;
  background: #fff !important;
}

/* breadcrumb / subpage */
body.var-v4 .sub-menu, body.var-v4 .left-nav {
  background: var(--tpl-bg) !important;
  border-radius: var(--tpl-radius) !important;
  padding: 16px !important;
}
body.var-v3 .sub-menu, body.var-v3 .left-nav {
  max-width: 220px !important;
  border-left: 3px solid var(--tpl-primary) !important;
}

/* copyright bar */
body.var-v4 .c-layer--copyright {
  background: #0f172a !important;
  font-size: 12px !important;
  text-align: center !important;
  padding: 12px !important;
}

/* sidebar grid · t217 */
body.tpl-t217.layout-sidebar .tpl-shell-v3 {
  display: grid !important;
  grid-template-columns: var(--tpl-sidebar) minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: start !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
}
body.tpl-t217.layout-sidebar .tpl-aside-v3 {
  grid-column: 1 !important;
  grid-row: 1 !important;
  position: sticky !important;
  top: 0 !important;
  align-self: start !important;
  width: 100% !important;
  min-height: 100vh !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  z-index: 100 !important;
}
body.tpl-t217.layout-sidebar .tpl-main-v3 {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
body.tpl-t217.layout-sidebar {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
}
body.tpl-t217.layout-sidebar #header {
  overflow: visible !important;
  height: auto !important;
}
body.tpl-t217.layout-sidebar .tpl-shell-v3 > footer,
body.tpl-t217.layout-sidebar .tpl-shell-v3 > .footer,
body.tpl-t217.layout-sidebar .tpl-shell-v3 > #footer,
body.tpl-t217.layout-sidebar .tpl-shell-v3 > section.footer {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
body.tpl-t217.layout-sidebar .tpl-main-v3 .content,
body.tpl-t217.layout-sidebar .tpl-main-v3 .w1200,
body.tpl-t217.layout-sidebar .tpl-main-v3 .warp,
body.tpl-t217.layout-sidebar .tpl-main-v3 .container {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
@media (max-width: 992px) {
  body.tpl-t217.layout-sidebar .tpl-shell-v3 {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr auto !important;
  }
  body.tpl-t217.layout-sidebar .tpl-aside-v3 {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: auto !important;
    position: relative !important;
  }
  body.tpl-t217.layout-sidebar .tpl-main-v3 {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  body.tpl-t217.layout-sidebar .tpl-shell-v3 > footer,
  body.tpl-t217.layout-sidebar .tpl-shell-v3 > .footer,
  body.tpl-t217.layout-sidebar .tpl-shell-v3 > #footer,
  body.tpl-t217.layout-sidebar .tpl-shell-v3 > section.footer {
    grid-row: 3 !important;
  }
}
/* t217 family overrides · 活力橙·侧栏分栏 */
body.tpl-t217.layout-sidebar { padding-top: 0 !important; }
body.tpl-t217.layout-sidebar .tpl-aside-v3 {
  background: linear-gradient(180deg, var(--tpl-secondary), #292524) !important;
}
body.tpl-t217.layout-sidebar .tpl-aside-v3 .header, body.tpl-t217.layout-sidebar .tpl-aside-v3 .navbar, body.tpl-t217.layout-sidebar .tpl-aside-v3 header, body.tpl-t217.layout-sidebar .tpl-aside-v3 section.nav, body.tpl-t217.layout-sidebar .tpl-aside-v3 .mheader, body.tpl-t217.layout-sidebar .tpl-aside-v3 .webHead {
  background: transparent !important; box-shadow: none !important; position: static !important;
  width: 100% !important; max-width: none !important; margin: 0 !important; float: none !important;
}
body.tpl-t217.layout-sidebar .tpl-aside-v3 nav, body.tpl-t217.layout-sidebar .tpl-aside-v3 ul, body.tpl-t217.layout-sidebar .tpl-aside-v3 dl, body.tpl-t217.layout-sidebar .tpl-aside-v3 .navbar .collapse, body.tpl-t217.layout-sidebar .tpl-aside-v3 .navbar .navbar-collap, body.tpl-t217.layout-sidebar .tpl-aside-v3 .navbar-nav, body.tpl-t217.layout-sidebar .tpl-aside-v3 .mune, body.tpl-t217.layout-sidebar .tpl-aside-v3 .primary-nav, body.tpl-t217.layout-sidebar .tpl-aside-v3 .head-nav-mod, body.tpl-t217.layout-sidebar .tpl-aside-v3 .header-nav {
  display: flex !important; flex-direction: column !important; gap: 4px !important;
  float: none !important; width: 100% !important; height: auto !important; overflow: visible !important;
}
body.tpl-t217.layout-sidebar .tpl-aside-v3 a, body.tpl-t217.layout-sidebar .tpl-aside-v3 li, body.tpl-t217.layout-sidebar .tpl-aside-v3 dd, body.tpl-t217.layout-sidebar .tpl-aside-v3 .m-list > a {
  display: block !important; width: 100% !important; float: none !important;
  padding: 10px 16px !important; border-radius: 8px !important;
  color: rgba(255,255,255,.92) !important;
  white-space: normal !important; word-break: keep-all !important;
  writing-mode: horizontal-tb !important; text-align: left !important;
}
body.tpl-t217.layout-sidebar .tpl-aside-v3 a:hover, body.tpl-t217.layout-sidebar .tpl-aside-v3 .m-list > a:hover {
  background: var(--tpl-primary) !important; color: #fff !important;
}
body.tpl-t217.layout-sidebar .tpl-aside-v3 .navbar-header .navbar-toggle { display: none !important; }
body.tpl-t217.layout-sidebar .tpl-aside-v3 .web-hd { display: none !important; }
body.tpl-t217.layout-sidebar .tpl-main-v3 .empty { display: none !important; }
body.tpl-t217.layout-sidebar .container {
  width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important;
}
body.tpl-t217.layout-sidebar .tpl-main-v3 .row {
  display: block !important; max-width: none !important; margin-left: -15px !important; margin-right: -15px !important;
}
body.tpl-t217.layout-sidebar .tpl-main-v3 .row::before, body.tpl-t217.layout-sidebar .tpl-main-v3 .row::after {
  display: table !important; content: ' ' !important;
}
body.tpl-t217.layout-sidebar .tpl-main-v3 [class*="col-"] {
  display: block !important; float: left !important; position: relative !important;
  min-height: 1px !important; border-left: none !important; background: transparent !important;
}
body.tpl-t217.layout-sidebar .tpl-main-v3 .banner, body.tpl-t217.layout-sidebar .tpl-main-v3 .banner-slider, body.tpl-t217.layout-sidebar .tpl-main-v3 .swiper-container {
  width: 100% !important; margin: 0 !important; border-radius: 0 !important;
}
body.tpl-t217.layout-sidebar .tpl-main-v3 .iab, body.tpl-t217.layout-sidebar .tpl-main-v3 .ip, body.tpl-t217.layout-sidebar .tpl-main-v3 .idots, body.tpl-t217.layout-sidebar .tpl-main-v3 .inews, body.tpl-t217.layout-sidebar .tpl-main-v3 section, body.tpl-t217.layout-sidebar .tpl-main-v3 .box {
  max-width: var(--tpl-max) !important; margin: 0 auto !important; padding: 36px 24px !important;
}
body.tpl-t217.layout-sidebar .tpl-main-v3 .tpl-zig-list .c-grid {
  display: flex !important; flex-direction: column !important; gap: 12px !important;
  max-width: 640px !important; margin: 0 auto !important;
}
body.tpl-t217 .footer, body.tpl-t217 footer {
  text-align: center !important; padding: 40px 20px !important; background: var(--tpl-secondary) !important; color: #fff !important; border-top: 4px solid var(--tpl-primary) !important;
}
body.tpl-t217.layout-sidebar .tpl-main-v3 {
  flex: none !important; align-self: start !important;
}
body.tpl-t217.layout-sidebar .tpl-aside-v3 .mune {
  display: flex !important; flex-direction: column !important; gap: 4px !important;
  width: 100% !important; float: none !important; padding: 0 8px 16px !important;
}
body.tpl-t217.layout-sidebar .tpl-aside-v3 .m-list {
  display: block !important; width: 100% !important; float: none !important;
}
body.tpl-t217.layout-sidebar .tpl-aside-v3 .m-list > a {
  display: block !important; padding: 10px 12px !important; border-radius: 8px !important;
  color: rgba(255,255,255,.92) !important;
}
body.tpl-t217.layout-sidebar .tpl-aside-v3 .m-list > a:hover {
  background: var(--tpl-primary) !important; color: #fff !important;
}
body.tpl-t217.layout-sidebar .tpl-aside-v3 .logo a {
  display: block !important; padding: 16px !important; color: #fff !important;
  font-weight: 700 !important; border-bottom: 1px solid rgba(255,255,255,.15);
}
body.tpl-t217.layout-sidebar .tpl-shell-v3 > .footer,
body.tpl-t217.layout-sidebar .tpl-shell-v3 > .tpl-footer {
  grid-column: 1 / -1 !important; grid-row: 2 !important; width: 100% !important;
}
body.tpl-t217.layout-sidebar .tpl-shell-v3 > .bottomlist {
  grid-column: 1 / -1 !important; grid-row: 3 !important; width: 100% !important;
}
body.var-v4 .tpl-chip-item {
  background: #fff; border-top: 3px solid var(--tpl-primary); padding: 16px; text-align: center;
  border-radius: 0 0 8px 8px; box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
