/* t203_1 layout · 科技蓝·顶栏横版 */

body.tpl-t203.var-v1 .container,
body.tpl-t203.var-v1 .width-1200,
body.tpl-t203.var-v1 .c-container,
body.tpl-t203.var-v1 .warp,
body.tpl-t203.var-v1 .warp2 {
  max-width: var(--tpl-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* banner layouts */
body.ban-full-bleed .tpl-banner, body.ban-full-bleed .banner,
body.ban-full-bleed .c-layer--banner {
  width: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
body.ban-inset-rounded .tpl-banner, body.ban-inset-rounded .banner,
body.ban-inset-rounded .c-layer--banner {
  margin: 24px auto !important;
  max-width: calc(var(--tpl-max) - 32px) !important;
  border-radius: var(--tpl-radius) !important;
  overflow: hidden !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.14) !important;
}
body.ban-contained-overlay .tpl-banner, body.ban-contained-overlay .banner,
body.ban-contained-overlay .c-layer--banner {
  max-width: var(--tpl-max) !important;
  margin: 20px auto !important;
  border-radius: var(--tpl-radius) !important;
  overflow: hidden !important;
  position: relative !important;
}
body.ban-contained-overlay .swiper-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(76,29,149,.35));
  pointer-events: none;
}

/* section layouts */
body.sec-alternating-rows .tpl-sec:nth-child(even),
body.sec-alternating-rows .c-layer.tpl-sec:nth-child(even) {
  background: var(--tpl-bg) !important;
  padding-top: 48px !important;
  padding-bottom: 48px !important;
}
body.sec-card-shadow .tpl-card-wrap {
  margin: 20px auto;
  max-width: var(--tpl-max);
  padding: 0 16px;
}
body.sec-card-shadow .tpl-card-wrap .tpl-sec {
  background: #fff !important;
  border-radius: var(--tpl-radius) !important;
  box-shadow: 0 6px 28px rgba(0,0,0,.08) !important;
  margin-bottom: 24px !important;
  padding: 32px 24px !important;
  overflow: hidden;
}
body.sec-single-column .tpl-main-v3 .tpl-sec,
body.sec-single-column .tpl-main-v3 .c-layer {
  max-width: var(--tpl-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 40px 24px !important;
}
body.sec-single-column .tpl-main-v3 h2 {
  text-align: center;
}

/* band / panel wrappers */
body.var-v1 .tpl-band-v1 {
  padding: 48px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
body.var-v1 .tpl-band-v1:nth-child(even) { background: var(--tpl-bg); }
body.var-v1 .tpl-band-inner {
  max-width: var(--tpl-max);
  margin: 0 auto;
  padding: 0 20px;
}
body.var-v3 .tpl-panel-v3 {
  max-width: var(--tpl-max);
  margin: 0 auto 24px;
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--tpl-radius);
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
}

/* grid systems per variant */
body.var-v1 .c-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
}
body.var-v1 .banner-ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  justify-content: center !important;
}
body.var-v1 .banner-ul li {
  flex: 1 1 220px;
  max-width: 280px;
  text-align: center;
  padding: 20px;
  border-top: 3px solid var(--tpl-primary);
  background: #fff;
}

body.var-v2 .c-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 20px !important;
}
body.var-v2 .banner-ul li {
  background: #fff !important;
  border-radius: var(--tpl-radius) !important;
  padding: 24px 16px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.07) !important;
  text-align: center;
  transition: transform .2s;
}
body.var-v2 .banner-ul li:hover { transform: translateY(-4px); }

body.var-v3 .c-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  max-width: 640px !important;
  margin: 0 auto !important;
}
body.var-v3 .c-grid > * {
  border-left: 4px solid var(--tpl-primary) !important;
  padding: 16px 20px !important;
  background: #fff !important;
  border-radius: 0 var(--tpl-radius) var(--tpl-radius) 0 !important;
}
body.var-v3 .banner-ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  max-width: 560px !important;
  margin: 0 auto !important;
}

/* section reorder v2 */
body.var-v2 .c-layer--function { order: 3; }
body.var-v2 .c-layer--hhshop-solution { order: 1; }
body.var-v2 .c-layer--fast-build { order: 2; }
body.var-v2 .c-layer--partner { order: 4; }
body.var-v2 .c-layer--contact { order: 5; }
body.var-v2 .tpl-main-v3, body.var-v2 body {
  display: flex;
  flex-direction: column;
}

/* news list */
body.var-v1 .news-list, body.var-v1 .n-list {
  display: grid !important;
  gap: 20px !important;
}
body.var-v1 .news-list, body.var-v1 .n-list {
  grid-template-columns: repeat(2, 1fr) !important;
}
body.var-v1 .news-list .dot, body.var-v1 .n-list .dot {
  border-left: 4px solid var(--tpl-primary) !important;
  padding: 16px 16px 16px 20px !important;
  background: var(--tpl-bg) !important;
  border-radius: 0 8px 8px 0 !important;
}
body.var-v2 .news-list, body.var-v2 .n-list {
  grid-template-columns: 1fr !important;
}
body.var-v2 .news-list .dot, body.var-v2 .n-list .dot {
  border: none !important;
  border-radius: var(--tpl-radius) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.08) !important;
  padding: 20px !important;
  background: #fff !important;
}
body.var-v3 .news-list .dot, body.var-v3 .n-list .dot {
  max-width: 720px !important;
  margin: 0 auto 16px !important;
  text-align: left !important;
  border-bottom: 2px solid var(--tpl-accent) !important;
  padding-bottom: 16px !important;
}

/* inner pages */
body.var-v1 .banner-bottom, body.var-v1 .ab1, body.var-v1 .page-title {
  background: var(--tpl-bg) !important;
  border-bottom: 2px solid var(--tpl-accent) !important;
  padding: 24px 0 !important;
}
body.var-v1 .banner-bottom h1, body.var-v1 .page-title {
  border-left: 5px solid var(--tpl-primary);
  padding-left: 16px;
}
body.var-v2 .banner-bottom { text-align: center; border-radius: var(--tpl-radius); margin: 16px; }
body.var-v3 .banner-bottom { max-width: var(--tpl-max); margin: 0 auto; }

/* t200 header flex */
body.var-v1 .boxb.header { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; }
body.var-v2 .boxb.header { padding: 20px 32px; }
body.var-v3 .boxb.header .header_r ul { flex-direction: column !important; }

@media (max-width: 768px) {
  body.var-v1 .c-grid { grid-template-columns: repeat(2, 1fr) !important; }
  body.var-v2 .banner-ul { grid-template-columns: 1fr !important; }
  body.ban-inset-rounded .banner { margin: 12px !important; max-width: none !important; }
  body.var-v1 .news-list, body.var-v1 .n-list { grid-template-columns: 1fr !important; }
}
