/* ==================== 重置样式 ==================== */

* {
  margin: 0;

  padding: 0;

  box-sizing: border-box;
}

.pic img {
  display: block;
  border: none;
  width: 100%;
  max-width: 100%;
}
html.act {
  overflow: hidden;

  /* 隐藏溢出内容 */

  width: 100%;

  /* 宽度撑满视口 */

  height: 100vh;

  /* 高度等于视口高度 */
}

/* 表单元素默认样式重置 */

input,
textarea,
button,
select {
  font-family: inherit;

  font-size: inherit;

  line-height: inherit;

  color: inherit;

  background: transparent;

  border: none;

  outline: none;

  appearance: none;

  -webkit-appearance: none;

  -moz-appearance: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;

  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

textarea {
  resize: none;

  overflow: auto;
}

/* ==================== 字体定义 ==================== */

@font-face {
  font-family: "PingFang SC";

  src: local("PingFang SC"), local("苹方-简");
}

@font-face {
  font-family: "Montserrat";

  src: url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap");
}

@font-face {
  font-family: "DINPro";

  src: local("DINPro"), local("DIN Pro");
}

@font-face {
  font-family: "Open Sans";

  src: url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400&display=swap");
}

/* ==================== 基础样式 ==================== */

body {
  font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;

  background-color: #efefef;

  color: #000000;

  overflow-x: hidden;

  /* 移动端点击高亮色（透明） */

  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

  /* 布局控制 */

  margin: 0 auto;

  /* 上下边距为0，左右自动居中（需配合宽度） */

  overflow-x: hidden;

  /* 隐藏横向滚动条 */

  position: relative;

  /* 为子元素的绝对定位提供基准 */

  padding: 0;

  /* 清除内边距 */

  width: 100%;

  /* 撑满视口宽度 */
}

a {
  text-decoration: none;

  color: inherit;
}

/* ==================公共样式========== */

@media screen and (min-width: 768px) {
  .tech-cta {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0.521vw 2.083vw;

    border: 0.1042vw solid transparent;

    border-radius: 5.208vw;

    background: linear-gradient(#000, #000) padding-box,
      linear-gradient(90deg, #d038ff 0%, #462dff 100%) border-box;

    color: #ffffff;

    font-size: 1.042vw;

    font-weight: 500;

    line-height: 1.8;

    text-decoration: none;

    transition: all 0.3s ease;

    margin-top: 2.031vw;

    width: fit-content;
  }

  .tech-cta:hover {
    transform: translateY(-0.104vw);

    box-shadow: 0 0.26vw 1.042vw rgba(208, 56, 255, 0.3);

    background: linear-gradient(90deg, #d038ff 0%, #462dff 100%) padding-box,
      linear-gradient(90deg, #d038ff 0%, #462dff 100%) border-box;
  }

  /* ==================== 顶部导航 ==================== */

  .navbar {
    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    background-color: #000000;

    padding: 1.198vw 10.417vw;

    width: 100vw !important;

    z-index: 1000;

    height: 4.479vw;
  }

  .navbar-container {
    display: flex;

    align-items: center;

    justify-content: space-between;

    height: 100%;
  }

  .navbar-logo img {
    width: 5.313vw;

    height: 1.935vw;
  }

  .navbar-menu {
    display: flex;

    gap: 3.125vw;

    align-items: center;
  }

  .navbar-item {
    color: #ffffff;

    text-decoration: none;

    font-size: 0.833vw;

    font-weight: 600;

    line-height: 1.4;

    position: relative;

    transition: all 0.3s ease;

    display: inline-flex;

    align-items: center;
  }

  .navbar-item:hover {
    opacity: 0.8;
  }

  .navbar-item.with-dropdown {
    gap: 0.677vw;
  }

  .navbar-dropdown-icon {
    width: 0.729vw;

    height: 0.729vw;

    display: flex;

    align-items: center;

    justify-content: center;
  }

  .navbar-dropdown-icon img {
    width: 0.589vw;

    height: 0.589vw;

    object-fit: contain;
  }

  /* ==================== 下拉菜单样式 ==================== */

  .navbar-dropdown {
    position: absolute;

    top: 100%;

    left: 0;

    margin-top: 0.521vw;

    background: rgba(0, 0, 0, 0.12);

    backdrop-filter: blur(0.521vw);

    -webkit-backdrop-filter: blur(0.521vw);

    border-radius: 0.521vw;

    padding: 1.042vw 1.5vw;

    opacity: 0;

    visibility: hidden;

    transform: translateY(-0.521vw);

    transition: all 0.3s ease;

    min-width: 10vw;

    z-index: 1001;

    background-color: #bfbfbf;
  }

  .navbar-item.with-dropdown {
    position: relative;
  }

  .navbar-item.with-dropdown:hover .navbar-dropdown {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
  }

  .navbar-dropdown-link {
    display: block;

    font-family: "PingFang SC", sans-serif;

    font-weight: 600;

    font-size: 0.729vw;

    line-height: 1.4;

    color: #ffffff;

    text-decoration: none;

    padding: 0.417vw 0;

    transition: opacity 0.3s ease;
  }

  .navbar-dropdown-link:hover {
    opacity: 0.8;

    color: #000;
  }

  .navbar-dropdown-link:not(:last-child) {
    margin-bottom: 0.833vw;
  }

  .navbar-toggle {
    background: none;

    border: none;

    cursor: pointer;

    padding: 0.104vw;

    width: 1.25vw;

    height: 1.25vw;

    display: none;
  }

  .hamburger-line {
    display: none;
  }

  /* ==================== 底部 ==================== */

  .footer {
    background-color: #000000;

    padding: 2.083vw 0 0.521vw;
  }

  .footer-container {
    max-width: 79.167vw;

    margin: 0 auto;

    /* padding: 0 10.417vw; */
  }

  .footer-content {
    display: flex;

    justify-content: space-between;

    gap: 2.865vw;

    padding-bottom: 2.083vw;
  }

  .footer-info {
    width: 40.833vw;

    display: flex;

    flex-direction: column;

    gap: 4.792vw;
  }

  .footer-logo-section {
    display: flex;

    flex-direction: column;

    gap: 1.563vw;
  }

  .footer-logo-wrapper {
    display: flex;

    flex-direction: column;

    gap: 0.313vw;

    width: 12.5vw;
  }

  .footer-logo-wrapper img {
    width: 11.719vw;

    height: 4.236vw;
  }

  .footer-logo-title {
    font-size: 0.938vw;

    font-weight: 600;

    line-height: 1.44;

    color: #ffffff;

    margin-top: 0.521vw;
  }

  .footer-contact {
    display: flex;

    flex-direction: column;

    gap: 1.146vw;

    padding: 0 0.469vw;
  }

  .footer-contact p {
    font-size: 0.833vw;

    font-weight: 400;

    line-height: 1.7;

    color: #ffffff;
  }

  .footer-links {
    display: flex;

    align-items: center;

    gap: 1.042vw;

    padding: 0 0.469vw;
  }

  .footer-links a {
    color: #9d9fa2;

    text-decoration: none;

    font-size: 0.729vw;

    font-weight: 400;

    line-height: 1.43;
  }

  .footer-links span {
    color: #9d9fa2;

    font-family: "Open Sans", sans-serif;

    font-size: 0.833vw;

    line-height: 1.5;
  }

  .footer-nav {
    display: flex;

    gap: 4.844vw;

    padding: 5.104vw 0;
  }

  .footer-nav-column {
    color: #fff;

    font-size: 0.7292vw;

    margin-top: 0.7292vw;
  }

  .footer-nav-column h5 {
    font-size: 0.833vw;

    font-weight: 500;

    line-height: 1.7;

    color: #cd38ff;
  }

  .footer-nav-column a {
    text-decoration: none;

    color: inherit;

    display: block;

    cursor: pointer;

    transition: opacity 0.3s ease;
  }

  .footer-nav-column a:hover {
    opacity: 0.8;
  }

  .footer-divider {
    height: 0.052vw;

    background: linear-gradient(
      90deg,
      rgba(68, 68, 68, 0) 0%,

      #444444 50.5%,

      rgba(68, 68, 68, 0) 100%
    );

    margin: 0.521vw;
  }

  .footer-decoration {
    display: flex;

    gap: 0.521vw;

    align-items: center;

    position: relative;
  }

  .footer-line {
    flex: 1;

    height: 0.208vw;

    background: #444444;
  }

  .footer-gradient-line {
    width: 6.563vw;

    height: 0.208vw;

    background: linear-gradient(90deg, #d038ff 0%, #462dff 100%);

    position: absolute;

    left: 0;

    bottom: 0;
  }
}

/* ==================== 移动端响应式样式 ==================== */

@media screen and (max-width: 768px) {
  /* 顶部导航移动端样式 */

  .navbar {
    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    background-color: #000000;

    padding: 12px 20px;

    width: 100vw !important;

    z-index: 1001;

    height: 60px;
  }

  .navbar-container {
    display: flex;

    align-items: center;

    justify-content: space-between;

    height: 100%;
  }

  .navbar-logo img {
    width: 80px;

    height: 29px;
  }

  .navbar-menu {
    position: fixed;

    top: 60px;

    left: 0;

    right: 0;

    background-color: #000000;

    flex-direction: column;

    gap: 0;

    padding: 20px 0;

    transform: translateY(-100%);

    opacity: 0;

    visibility: hidden;

    transition: all 0.3s ease;

    z-index: 999;
  }

  .navbar-menu.active {
    transform: translateY(0);

    opacity: 1;

    visibility: visible;
  }

  .navbar-item {
    color: #ffffff;

    text-decoration: none;

    font-size: 16px;

    font-weight: 600;

    line-height: 1.4;

    position: relative;

    transition: all 0.3s ease;

    display: inline-flex;

    align-items: center;

    padding: 15px 20px;

    width: 100%;

    justify-content: center;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-item:last-child {
    border-bottom: none;
  }

  .navbar-item.with-dropdown {
    gap: 8px;
  }

  .navbar-dropdown-icon {
    width: 12px;

    height: 12px;
  }

  .navbar-dropdown-icon img {
    width: 10px;

    height: 10px;
  }

  .navbar-dropdown {
    position: static;

    margin-top: 0;

    background-color: rgba(255, 255, 255, 0.05);

    backdrop-filter: none;

    border-radius: 0;

    padding: 10px 20px;

    opacity: 1;

    visibility: visible;

    transform: none;

    min-width: auto;

    margin-left: 20px;
  }

  .navbar-item.with-dropdown:hover .navbar-dropdown {
    transform: none;
  }

  .navbar-dropdown-link {
    display: block;

    font-family: "PingFang SC", sans-serif;

    font-weight: 600;

    font-size: 14px;

    line-height: 1.4;

    color: #ffffff;

    text-decoration: none;

    padding: 8px 0;

    transition: opacity 0.3s ease;
  }

  .navbar-dropdown-link:not(:last-child) {
    margin-bottom: 8px;
  }

  .navbar-toggle {
    display: block;

    padding: 4px;

    width: 24px;

    height: 24px;

    background: none;

    border: none;

    cursor: pointer;

    flex-direction: column;

    justify-content: space-between;
  }

  .hamburger-line {
    display: block;

    width: 20px;

    height: 2px;

    background-color: #ffffff;

    border-radius: 1px;

    transition: all 0.3s ease;

    margin-bottom: 2px;
  }

  /* 底部移动端样式 */

  .footer {
    background-color: #000000;

    padding: 40px 0 10px;

    color: #fff;
  }

  .footer-container {
    max-width: 100%;

    padding: 0 20px;
  }

  .footer-content {
    display: flex;

    flex-direction: column;

    gap: 30px;

    padding-bottom: 40px;
  }

  .footer-info {
    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 30px;
  }

  .footer-logo-wrapper {
    width: 100%;

    max-width: 200px;
  }

  .footer-logo-wrapper img {
    width: 180px;

    height: 65px;
  }

  .footer-logo-title {
    font-size: 16px;

    margin-top: 8px;

    margin-bottom: 12px;
  }

  .footer-contact {
    gap: 12px;

    padding: 0;
  }

  .footer-contact p {
    font-size: 14px;
  }

  .footer-links {
    gap: 12px;

    padding: 0;

    flex-wrap: wrap;
  }

  .footer-links a {
    font-size: 12px;
  }

  .footer-links span {
    font-size: 12px;
  }

  .footer-nav {
    display: flex;

    flex-direction: column;

    gap: 20px;

    padding: 20px 0;

    display: none;
  }

  .footer-nav-column {
    width: 100%;

    text-align: center;
  }

  .footer-nav-column h5 {
    font-size: 16px;
  }

  .footer-nav-column a {
    text-decoration: none;

    color: inherit;

    display: block;

    cursor: pointer;

    transition: opacity 0.3s ease;
  }

  .footer-nav-column a:hover {
    opacity: 0.8;
  }

  .footer-divider {
    height: 1px;

    background: linear-gradient(
      90deg,
      rgba(68, 68, 68, 0) 0%,

      #444444 50.5%,

      rgba(68, 68, 68, 0) 100%
    );

    margin: 10px 0;
  }

  .footer-line {
    height: 4px;
  }

  .footer-decoration {
    display: flex;

    gap: 2.667vw;

    align-items: center;

    position: relative;
  }

  .footer-line {
    flex: 1;

    height: 4px;

    background: #444444;
  }

  .footer-gradient-line {
    width: 100%;

    height: 4px;

    background: linear-gradient(90deg, #d038ff 0%, #462dff 100%);

    position: absolute;

    left: 0;

    bottom: 0;
  }

  /* 公共按钮移动端样式 */

  .tech-cta {
    padding: 8px 20px;

    border: 1px solid transparent;

    border-radius: 50px;

    font-size: 14px;

    margin-top: 20px;
  }
}
