/* t206_3 aggressive overrides · 典雅紫·左侧导航 */

/* global spacing reset */
body.tpl-t206.var-v3 .tpl-sec { position: relative; }
body.tpl-t206.var-v3 .tpl-sec::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--tpl-accent);
  margin-bottom: 16px;
}
body.tpl-t206.var-v3 .c-layer--nav::before,
body.tpl-t206.var-v3 .tpl-header::before,
body.tpl-t206.var-v3 .tpl-banner::before,
body.tpl-t206.var-v3 .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; }

/* swiper / slider tint */
body.var-v3 .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-v3 .tabs .tab.is-active,
body.var-v3 .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.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;
}

/* form / contact blocks */
body.var-v3 .c-layer--contact,
body.var-v3 .contact-box, body.var-v3 .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-v3 .product-list, body.var-v3 .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;
}

/* breadcrumb / subpage */
body.var-v3 .sub-menu, body.var-v3 .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-v3 .c-layer--copyright {
  background: #0f172a !important;
  font-size: 12px !important;
  text-align: center !important;
  padding: 12px !important;
}
/* t206 family overrides · 典雅紫·左侧导航 */
body.tpl-t206.layout-sidebar .tpl-aside-v3 .header, .nav, .tpl-header,
body.tpl-t206.layout-sidebar .tpl-aside-v3 .mheader,
body.tpl-t206.layout-sidebar .tpl-aside-v3 .webHead,
body.tpl-t206.layout-sidebar .tpl-aside-v3 header {
  background: transparent !important; box-shadow: none !important; position: static !important;
}
body.tpl-t206 .header, .nav, .tpl-header nav, body.tpl-t206 .header, .nav, .tpl-header ul, body.tpl-t206 .header, .nav, .tpl-header dl,
body.tpl-t206 .tpl-aside-v3 .header-nav {
  display: flex !important; flex-direction: column !important; gap: 4px !important;
}
body.tpl-t206 .header, .nav, .tpl-header a, body.tpl-t206 .header, .nav, .tpl-header dd, body.tpl-t206 .tpl-aside-v3 .link {
  display: block !important; padding: 10px 16px !important; border-radius: 8px !important;
  color: rgba(255,255,255,.92) !important;
}
body.tpl-t206 .banner, .swiper {
  max-width: var(--tpl-max) !important; margin: 20px auto !important;
  border-radius: var(--tpl-radius) !important; overflow: hidden !important;
}
body.tpl-t206 section, .section {
  max-width: var(--tpl-max) !important; margin: 0 auto !important; padding: 36px 24px !important;
}
body.tpl-t206 .row, .list, body.tpl-t206 .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-t206 .row, .list > *, body.tpl-t206 .tpl-zig-row {
  border-left: 4px solid var(--tpl-primary) !important; padding: 14px 18px !important;
  background: #fff !important; border-radius: 0 var(--tpl-radius) var(--tpl-radius) 0 !important;
}
body.tpl-t206 .footer, footer {
  text-align: center !important; background: var(--tpl-bg) !important;
  color: var(--tpl-secondary) !important; padding: 40px 20px !important;
}
body.var-v3 .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);
}

/* tpl-nav-contrast · universal menu readability for transformed templates */

/* ── v1: sticky light header (white bg → dark text) ── */
body.hdr-sticky-light .c-layer--nav,
body.hdr-sticky-light .c-layer--nav .nav,
body.hdr-sticky-light .tpl-header,
body.hdr-sticky-light .tpl-nav,
body.hdr-sticky-light .boxb.header,
body.hdr-sticky-light header.mheader,
body.hdr-sticky-light .head-box,
body.hdr-sticky-light .header,
body.hdr-sticky-light .nav-box {
  background: #fff !important;
}
body.hdr-sticky-light .menu-item,
body.hdr-sticky-light .nav-list a,
body.hdr-sticky-light .nav-menu a,
body.hdr-sticky-light .header_r a,
body.hdr-sticky-light .header_r li a,
body.hdr-sticky-light .mheader nav a,
body.hdr-sticky-light .mheader nav a.upper,
body.hdr-sticky-light .mheader nav a.btn,
body.hdr-sticky-light .header nav a,
body.hdr-sticky-light .nav-box a,
body.hdr-sticky-light .main-menu a,
body.hdr-sticky-light .nav-logo,
body.hdr-sticky-light .nav-logo__text,
body.hdr-sticky-light .header-logo,
body.hdr-sticky-light .boxb.header > a {
  color: #334155 !important;
}
body.hdr-sticky-light .menu-item.is-active,
body.hdr-sticky-light .nav-list li.active a,
body.hdr-sticky-light .nav-list a:hover,
body.hdr-sticky-light .header_r a.tv,
body.hdr-sticky-light .header_r a:hover,
body.hdr-sticky-light .mheader nav .curb a.upper,
body.hdr-sticky-light .mheader nav .curb a.upper span,
body.hdr-sticky-light .menu-item:hover {
  color: var(--tpl-primary, #1d5deb) !important;
}

/* hhshop home: cancel transparent nav + white text */
body.hdr-sticky-light.c-hhshop-page .c-layer--nav,
body.hdr-sticky-light.c-hhshop-page .c-layer--nav .nav {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: 64px;
  background: #fff !important;
  box-shadow: 0 2px 16px rgba(0,0,0,.1) !important;
}
body.hdr-sticky-light.c-hhshop-page .menu-item,
body.hdr-sticky-light.c-hhshop-page .nav-logo,
body.hdr-sticky-light.c-hhshop-page .nav-logo__text {
  color: #334155 !important;
}
body.hdr-sticky-light.c-hhshop-page .menu-item.is-active,
body.hdr-sticky-light.c-hhshop-page .menu-item:hover {
  color: var(--tpl-primary, #1d5deb) !important;
}
body.hdr-sticky-light.c-hhshop-page--home .c-layer--banner {
  padding-top: 35% !important;
}

/* ── v2: gradient round header (gradient bg → white text) ── */
body.hdr-gradient-round .c-layer--nav,
body.hdr-gradient-round .c-layer--nav .nav,
body.hdr-gradient-round .tpl-header,
body.hdr-gradient-round .tpl-nav,
body.hdr-gradient-round .boxb.header,
body.hdr-gradient-round header.mheader,
body.hdr-gradient-round .head-box,
body.hdr-gradient-round .header {
  background: linear-gradient(
    135deg,
    var(--tpl-secondary, #19368a),
    var(--tpl-primary, #1d5deb)
  ) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.15) !important;
}
body.hdr-gradient-round .menu-item,
body.hdr-gradient-round .nav-list a,
body.hdr-gradient-round .nav-menu a,
body.hdr-gradient-round .header_r a,
body.hdr-gradient-round .header_r li a,
body.hdr-gradient-round .mheader nav a,
body.hdr-gradient-round .mheader nav a.upper,
body.hdr-gradient-round .mheader nav a.btn,
body.hdr-gradient-round .nav-logo,
body.hdr-gradient-round .nav-logo__text,
body.hdr-gradient-round .header-logo,
body.hdr-gradient-round .boxb.header > a {
  color: #fff !important;
}
body.hdr-gradient-round .menu-item.is-active,
body.hdr-gradient-round .nav-list li.active a {
  color: #fff !important;
  opacity: 1;
}
body.hdr-gradient-round.c-hhshop-page .c-layer--nav,
body.hdr-gradient-round.c-hhshop-page .c-layer--nav .nav {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
}

/* ── v4: dark stripe header ── */
body.hdr-dark-stripe .c-layer--nav,
body.hdr-dark-stripe .c-layer--nav .nav,
body.hdr-dark-stripe .tpl-header,
body.hdr-dark-stripe .boxb.header,
body.hdr-dark-stripe header.mheader,
body.hdr-dark-stripe .head-box,
body.hdr-dark-stripe .header {
  background: #1a1a2e !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.25) !important;
  border-top: 4px solid var(--tpl-primary, #ea5203);
}
body.hdr-dark-stripe .menu-item,
body.hdr-dark-stripe .nav-list a,
body.hdr-dark-stripe .nav-menu a,
body.hdr-dark-stripe .header_r a,
body.hdr-dark-stripe .mheader nav a,
body.hdr-dark-stripe .nav-logo,
body.hdr-dark-stripe .nav-logo__text,
body.hdr-dark-stripe .header-logo {
  color: #f1f5f9 !important;
}
body.hdr-dark-stripe .menu-item.is-active,
body.hdr-dark-stripe .nav-list li.active a,
body.hdr-dark-stripe .nav-list a:hover,
body.hdr-dark-stripe .menu-item:hover {
  color: var(--tpl-accent, #fdb76e) !important;
}
body.hdr-dark-stripe.c-hhshop-page .c-layer--nav,
body.hdr-dark-stripe.c-hhshop-page .c-layer--nav .nav {
  position: sticky !important;
  background: #1a1a2e !important;
}

/* ── v3: sidebar layout (dark sidebar → light text) ── */
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .menu-item,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .nav-list a,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .header_r a,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .header_r li a,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .mheader nav a,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .mheader nav a.upper,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .mheader nav a.btn,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .header nav a,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .nav-box a,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .nav-box dd a,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .nav-logo,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .header-logo,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .boxb.header > a {
  color: rgba(255,255,255,.92) !important;
}
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .menu-item.is-active,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .menu-item.is-active:hover,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .nav-list li.active a,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .header_r a.tv,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .mheader nav .curb a.upper span {
  background: var(--tpl-primary) !important;
  color: #fff !important;
}
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .menu-item:hover,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .mheader nav a.upper:hover span,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .nav-list a:hover {
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
}
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .nav-logo,
body.layout-sidebar.hdr-sidebar-fixed .tpl-aside-v3 .header-logo {
  color: #fff !important;
}

/* pill buttons on light headers */
body.nav-pill-buttons.hdr-sticky-light .nav-list li a,
body.nav-pill-buttons.hdr-sticky-light .menu-item,
body.nav-pill-buttons.hdr-sticky-light .header_r li a {
  background: rgba(0,0,0,.06) !important;
  color: #334155 !important;
}
body.nav-pill-buttons.hdr-sticky-light .nav-list li.active a,
body.nav-pill-buttons.hdr-sticky-light .menu-item.is-active,
body.nav-pill-buttons.hdr-sticky-light .header_r a.tv {
  background: var(--tpl-primary) !important;
  color: #fff !important;
}
