/* 颜色样式 */
:root {
  --fs-tkcs-default: #81bbcd;
  --fs-tkcs-nav-font-color: 158, 204, 218;
}

/* 头部模块 */
.fs-tkcs-header-module {
  position: relative;
  width: 100%;
  /* height: 90px; */
}

.fs-tkcs-header.nav-scrolled {
  --fs-tkcs-nav-font-color: 255, 255, 255;
  backdrop-filter: blur(10px);
  filter: drop-shadow(0px 5px 14px rgba(0, 0, 0, 0.3));
}

.fs-tkcs-header.nav-scrolled::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '';
  background: var(--fs-tkcs-default);
  opacity: 0.5;
  z-index: 0;
}

.fs-tkcs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px calc((100% - min(1440px, 96%)) / 2);
  z-index: 100;
}

.fs-tkcs-header::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translate(-50%, 0) scale(1);
  width: min(1440px, 96%);
  height: 50%;
  border: 2px solid rgba(var(--fs-tkcs-nav-font-color), 0.5);
  border-top: none;
  transition: all 0.5s ease;
  z-index: -1;
}

.fs-tkcs-header.nav-scrolled::after {
  opacity: 0;
  transform: translate(-50%, 0) scale(1.1);
}

.fs-tkcs-links-box {
  position: relative;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
  font-family: Rubik;
  font-size: 20px;
  /* font-style: italic; */
  font-weight: 300;
  line-height: normal;
  height: 43px;
  padding: 0px 24px;
  margin: 0;
}

.fs-tkcs-links-box-li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(var(--fs-tkcs-nav-font-color), 1) !important;
  text-decoration: none !important;
  height: 100%;
  cursor: pointer;
}

.fs-tkcs-links-box-li::after {
  display: block;
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  opacity: 0;
  bottom: -3px;
  background-color: #ffffffba;
  transition: 0.3s;
}
.fs-tkcs-links-box-li-active::after {
  opacity: 1 !important;
}
.fs-tkcs-links-box-li:hover::after {
  opacity: 1;
}

.fs-tkcs-links-box .fstk-icon svg {
  fill: rgba(var(--fs-tkcs-nav-font-color), 1);
  width: 24px;
  height: 24px;
}

/* fstk-hover-phone */
.fstk-bubble {
  position: absolute;
  background: #fff;
  color: #000 !important;
  border-radius: 8px;
  padding: 20px 30px;
  font-size: 24px;
  font-family: 'Rubik';
  line-height: 1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  text-decoration: none !important;
}

.fstk-bubble-fade-in-top {
  top: calc(100% + 9px);
  right: 0;
  transform: translate(0, -30px);
}

.fstk-bubble-fade-in-right {
  top: 0%;
  right: 76px;
  transform: translate(50px, 0);
}

/* 上方箭头 */
.fstk-bubble::before {
  content: '';
  position: absolute;
  border-style: solid;
  width: 0;
  height: 0;
  z-index: 2;
}

.fstk-bubble-fade-in-top::before {
  top: -12px;
  right: 30px;
  transform: translateX(-50%);
  border-width: 0 10px 12px 10px;
  border-color: transparent transparent #fff transparent;
}

.fstk-bubble-fade-in-right::before {
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  border-width: 10px 0 10px 12px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

/* 上方箭头阴影 */
.fstk-bubble-fade-in-top::after {
  top: -14px;
  /* 比 before 稍高一点 */
  right: 30px;
  transform: translateX(-50%);
  border-width: 0 11px 14px 11px;
  /* 比 before 稍大一点 */
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  /* 阴影色 */
}

/* 右侧箭头本体 */
.fstk-bubble-fade-in-right::before {
  top: 50%;
  right: -12px;
  transform: translateY(-50%);
  border-width: 10px 0 10px 12px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

/* 右侧箭头阴影 */
.fstk-bubble-fade-in-right::after {
  top: 50%;
  right: -14px;
  transform: translateY(-50%);
  border-width: 11px 0 11px 14px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(0, 0, 0, 0.1);
}

/* 表单 */
.fstk-form-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 99999;
  overflow-y: auto;
  padding: 20px 0;
}

.fstk-form-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 420px;
  max-height: 90vh;
  padding: 24px;
  border-radius: 16px;
  background: #efefef;
  animation-duration: 200ms;
  overflow-y: auto;
  margin: auto;
}

.fstk-form-main .error {
  font-size: 12px;
  color: var(--fs-tkcs-default);
}

.fstk-form-main p {
  padding: 0;
  margin: 0 0 8px 0;
  color: #000;
  text-align: center;
  font-family: 'Urbanist', sans-serif;
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.fstk-form-main form {
  display: flex;
  flex-direction: column;
  align-items: self-start;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.fstk-form-main form .col-form-label {
  display: none;
}

.fstk-form-main form .form-group {
  width: 100%;
  margin: 0;
}

.fstk-form-main form .form-group .col-sm-8 {
  padding: 0;
  flex: 1;
  max-width: 100%;
}

.fstk-form-main form .form-group .form-control {
  display: flex;
  height: 48px;
  padding: 12px 16px;
  align-items: center;
  align-self: stretch;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  color: #000;
}

.fstk-form-main form .form-group textarea.form-control {
  height: 100px;
}

.fstk-form-main form .form-group .form-control::placeholder,
.fstk-form-main form .form-group textarea.form-control::placeholder {
  font-family: 'Roboto Condensed', sans-serif;
  color: #000;
  opacity: 0.5;
}

.fstk-form-main button {
  display: flex;
  width: 100%;
  height: 48px;
  border: none;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 8px;
  color: #fff;
  font-family: 'Urbanist', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  background: var(--fs-tkcs-default);
  cursor: pointer;
}

.fstk-form-main button:disabled {
  opacity: 0.5;
}

.fstk-form-modal-close {
  width: 100%;
  text-align: end;
  cursor: pointer;
}

.fstk-form-modal-close svg {
  width: 32px;
  height: 33px;
}

/* PC hover */
@media (min-width: 1001px) {
  /* .fs-tkcs-left-links a:hover {
    font-size: 30px;
  } */

  .fs-tkcs-links-box-li:hover .fstk-bubble {
    transform: translate(0, 0);
    opacity: 1;
    pointer-events: auto;
  }

  /* 图标跳动动画 */
  .fstk-icon-hover-anim:hover .fstk-icon {
    animation: iconBounce 0.5s ease infinite;
  }

  @keyframes iconBounce {
    0%,
    100% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-5px);
    }
  }
}

/* Media Query */
@media (max-width: 1000px) {
  .fs-tkcs-header {
    width: 100%;
    height: auto;
    padding: 1.5rem 2rem;
  }

  .fs-tkcs-header::after {
    bottom: 15%;
  }

  .fs-tkcs-links-box {
    font-size: 1.75rem;
    gap: 2.5rem;
    padding: 0.75rem 1rem;
    height: auto;
  }

  .fs-tkcs-links-box-li {
    font-size: 1.75rem;
    gap: 0.25rem;
  }

  .fs-tkcs-links-box .fstk-icon svg {
    width: 1.875rem;
    height: 1.875rem;
  }

  /* 表单 */
  .fstk-form-modal {
    gap: 3rem;
  }

  .fstk-form-main {
    gap: 2.5rem;
    width: 40rem;
    padding: 4rem 4.5rem;
    border-radius: 2rem;
  }

  .fstk-form-main p {
    font-size: 3rem;
    /* letter-spacing: 1px; */
  }

  .fstk-form-main form {
    gap: 1rem;
  }

  .fstk-form-main form .form-group .form-control {
    height: 5.5rem;
    padding: 0.5rem 1rem;
    font-size: 2rem;
  }

  .fstk-form-main form .form-group textarea.form-control {
    height: 11.25rem;
  }

  .fstk-form-main button {
    width: 100%;
    height: 5.25rem;
    border-radius: 0.5rem;
    font-size: 3rem;
    line-height: 1.5;
  }

  .fstk-form-modal-close svg {
    width: 4rem;
    height: 4rem;
  }
}

/* Message Modal Styles */
.fstk-message-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  justify-content: center;
  align-items: center;
}

.fstk-message-modal.active {
  display: flex;
}

.fstk-message-main {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.fstk-message-main p {
  margin-bottom: 20px;
  font-size: 16px;
  color: #333;
  line-height: 1.5;
  font-family: 'Urbanist', sans-serif;
}

.fstk-message-btn {
  background: var(--fs-tkcs-default, #81BBCD);
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Urbanist', sans-serif;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

.fstk-message-btn:hover {
  background: #6aa8bc;
}
