/* 本文件只做 CMS 数据接入所需的少量补充，主要视觉仍由 template1 原始 style.css 与 responsive.css 承担。 */
/* 桌面端顶部导航防换行：避免 CMS 栏目过多时把原模板 100px 头部撑成两行，导致首页首屏出现大块白色空白。 */
@media (min-width: 992px) {
  .intelle-header-area .header-menu > ul.nav_scroll {
    white-space: nowrap;
    overflow: hidden;
  }
}

/* 首页拉链贪吃蛇互动层：保持在首屏背景之上、正文内容之下，只承接鼠标位置，不遮挡按钮点击。 */
.banner-section-one {
  overflow: hidden;
  padding-bottom: 92px;
}

.banner-section-one .banner-content-wrap {
  padding-bottom: 0;
}

.banner-section-one .container-fulid,
.banner-section-one .banner-container,
.banner-section-one .banner-thumb {
  display: none;
}

.tpl1-zipper-snake-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.banner-section-one .auto-container,
.banner-section-one .container-fulid {
  position: relative;
}

.banner-section-one #js-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.banner-section-one .auto-container,
.banner-section-one .container-fulid {
  z-index: 2;
}

.banner-section-one #js-particles {
  z-index: 0;
}

/* Sanhao 组合 logo：默认补上文字，具体文字优先读取站点或企业配置。 */
.tpl1-sanhao-logo {
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.tpl1-sanhao-logo img {
  width: 34px;
  height: 44px;
  object-fit: contain;
}

.intelle-header-area .header-logo .active_logo.tpl1-sanhao-logo {
  display: inline-flex;
}

.intelle-header-area .header-logo .logo_two.tpl1-sanhao-logo {
  display: none;
}

.intelle-header-area .sticky a.logo_two.tpl1-sanhao-logo {
  display: inline-flex;
}

.intelle-header-area .sticky a.active_logo.tpl1-sanhao-logo {
  display: none;
}

.intelle-header-area.sticky .header-logo .logo_two.tpl1-sanhao-logo {
  display: inline-flex;
}

.intelle-header-area.sticky .header-logo .active_logo.tpl1-sanhao-logo {
  display: none;
}

.mobile-logo .tpl1-sanhao-logo,
.offcanvas-header .tpl1-sanhao-logo,
.main-footer-one .tpl1-sanhao-logo {
  display: inline-flex;
  color: #ffffff;
}

.main-footer-one .tpl1-sanhao-logo {
  font-size: 28px;
}

.tpl1-original-contact-box input {
  cursor: default;
}

.tpl1-cms-empty {
  padding: 60px 30px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.74);
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
}

.tpl1-cms-rich-content {
  color: #566170;
  font-size: 18px;
  line-height: 1.8;
}

.tpl1-cms-rich-content img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
}

.tpl1-cms-rich-content h1,
.tpl1-cms-rich-content h2,
.tpl1-cms-rich-content h3,
.tpl1-cms-rich-content h4 {
  margin-top: 28px;
  color: #0f172a;
}

.tpl1-cms-page-body {
  padding: 110px 0;
}

.tpl1-cms-sidebar {
  padding: 32px;
  border-radius: 18px;
  background: #f7f8fc;
}

.tpl1-cms-sidebar h3 {
  margin-bottom: 18px;
}

.tpl1-cms-sidebar a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.10);
  color: #0f172a;
  font-weight: 600;
}

.tpl1-cms-article-cover {
  margin-bottom: 32px;
  overflow: hidden;
  border-radius: 24px;
}

.tpl1-cms-article-cover img {
  width: 100%;
  height: auto;
}

.tpl1-cms-blog-summary {
  margin-top: 12px;
  color: #6b7280;
  line-height: 1.7;
}

.tpl1-cms-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.tpl1-cms-feature-link {
  margin-top: 18px;
}

.tpl1-cms-feature-link a {
  color: inherit;
  font-weight: 700;
}

.tpl1-home-video-section {
  position: relative;
  padding: 120px 0;
  background: #050514;
  overflow: hidden;
}

.tpl1-home-video-section::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% 24%, rgba(103, 102, 255, 0.2), transparent 30%),
    radial-gradient(circle at 82% 80%, rgba(243, 189, 87, 0.14), transparent 30%);
  pointer-events: none;
}

.tpl1-home-video-section .auto-container {
  position: relative;
  z-index: 1;
}

.tpl1-home-video-section .sec-title {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 24px;
  padding-left: 24px;
}

.tpl1-home-video-box {
  position: relative;
  width: 100vw;
  max-height: 80vh;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  border: 1px solid rgba(103, 102, 255, 0.42);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: rgba(16, 16, 28, 0.76);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
  aspect-ratio: 16 / 9;
}

.tpl1-home-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050514;
}

.tpl1-home-video-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 360px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px;
  text-align: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(103, 102, 255, 0.18), rgba(5, 5, 20, 0.92)),
    url("../images/demo-img/banner-bg-1.png") center / cover no-repeat;
}

.tpl1-home-video-play {
  display: flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(243, 189, 87, 0.7);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(243, 189, 87, 0.18);
  box-shadow: 0 0 36px rgba(243, 189, 87, 0.28);
}

.tpl1-home-video-placeholder h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
}

.tpl1-home-video-placeholder p,
.tpl1-home-video-placeholder span,
.tpl1-home-video-desc {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.tpl1-home-video-placeholder span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

.tpl1-home-video-desc {
  max-width: 760px;
  margin: 22px auto 0;
  padding-right: 24px;
  padding-left: 24px;
  text-align: center;
}

.tpl1-trace-login-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 150px 0 110px;
  background-color: #050514;
  background-position: center;
  background-size: cover;
}

.tpl1-trace-login-section::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(120deg, rgba(5, 5, 20, 0.95) 0%, rgba(8, 12, 30, 0.86) 48%, rgba(15, 118, 110, 0.42) 100%),
    linear-gradient(180deg, rgba(5, 5, 20, 0.28), rgba(5, 5, 20, 0.95));
  pointer-events: none;
}

.tpl1-trace-login-section .auto-container {
  position: relative;
  z-index: 2;
}

.tpl1-trace-login-section #js-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tpl1-trace-login-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 4;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  padding: 22px max(28px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(5, 5, 20, 0.36);
  backdrop-filter: blur(14px);
}

.tpl1-trace-login-logo {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.tpl1-trace-login-logo:hover {
  color: #ffffff;
}

.tpl1-trace-login-logo img {
  width: 34px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
}

.tpl1-trace-login-logo span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tpl1-trace-login-home {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid rgba(243, 189, 87, 0.36);
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.tpl1-trace-login-home:hover {
  color: #ffffff;
  background: rgba(243, 189, 87, 0.16);
}

.tpl1-trace-login-copy {
  max-width: 680px;
  color: #ffffff;
}

.tpl1-trace-login-copy h1 {
  margin: 18px 0 20px;
  color: #ffffff;
  font-size: 72px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.tpl1-trace-login-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.9;
}

.tpl1-trace-login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.tpl1-trace-login-points span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(243, 189, 87, 0.34);
  border-radius: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.tpl1-trace-login-points i {
  color: #f3bd57;
}

.tpl1-trace-login-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.tpl1-trace-login-card-head {
  margin-bottom: 28px;
}

.tpl1-trace-login-card-head span {
  display: block;
  margin-bottom: 9px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.tpl1-trace-login-card-head h2 {
  margin: 0;
  color: #101828;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
}

.tpl1-trace-login-card-head p {
  margin: 10px 0 0;
  color: #64748b;
  line-height: 1.7;
}

.tpl1-trace-login-field {
  margin-bottom: 18px;
}

.tpl1-trace-login-field label {
  display: block;
  margin-bottom: 8px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.tpl1-trace-login-field input {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  border: 1px solid #d9e1ec;
  border-radius: 6px;
  padding: 0 14px;
  color: #101828;
  font-size: 15px;
  outline: none;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tpl1-trace-login-field input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.tpl1-trace-login-captcha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
  align-items: center;
}

.tpl1-trace-login-captcha img {
  display: block;
  width: 120px;
  height: 48px;
  border: 1px solid #d9e1ec;
  border-radius: 6px;
  object-fit: cover;
  background: #f8fafc;
  cursor: pointer;
}

.tpl1-trace-login-error {
  min-height: 22px;
  margin: 2px 0 14px;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.5;
}

.tpl1-trace-login-submit {
  display: inline-flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  background: #0f766e;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.tpl1-trace-login-submit:hover {
  transform: translateY(-1px);
  background: #0b615a;
}

.tpl1-trace-login-submit:disabled {
  opacity: 0.68;
  cursor: not-allowed;
  transform: none;
}

.tpl1-trace-login-back {
  display: block;
  margin-top: 18px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 767.98px) {
  .tpl1-home-video-section {
    padding: 80px 0;
  }

  .tpl1-home-video-box {
    aspect-ratio: 4 / 3;
  }

  .tpl1-home-video-placeholder {
    min-height: 280px;
    padding: 28px;
  }

  .tpl1-home-video-placeholder h3 {
    font-size: 24px;
  }
}

@media (max-width: 991.98px) {
  .tpl1-trace-login-section {
    padding: 132px 0 80px;
  }

  .tpl1-trace-login-copy {
    margin-bottom: 42px;
  }

  .tpl1-trace-login-copy h1 {
    font-size: 48px;
  }

  .tpl1-trace-login-card {
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .tpl1-trace-login-section {
    padding: 116px 0 64px;
  }

  .tpl1-trace-login-header {
    min-height: 76px;
    padding: 16px 18px;
  }

  .tpl1-trace-login-logo {
    max-width: calc(100vw - 164px);
    gap: 9px;
    font-size: 20px;
  }

  .tpl1-trace-login-logo img {
    width: 29px;
    height: 38px;
  }

  .tpl1-trace-login-home {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .tpl1-trace-login-copy h1 {
    font-size: 38px;
  }

  .tpl1-trace-login-copy p {
    font-size: 16px;
  }

  .tpl1-trace-login-card {
    padding: 28px 22px;
  }

  .tpl1-trace-login-captcha {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 8px;
  }

  .tpl1-trace-login-captcha img {
    width: 104px;
    height: 46px;
  }
}

@media (max-width: 359.98px) {
  .tpl1-trace-login-captcha {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .tpl1-trace-login-captcha img {
    width: 96px;
  }
}
