/* 文件描述：全局服务申请弹窗样式（下划线表单 + fade-in 滑入，前缀 sa-） */

.sa-module-card {
  position: relative;
  overflow: hidden;
}

.sa-module-card__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 83, 145, 0.88);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.sa-module-card:hover .sa-module-card__hover,
.sa-module-card:focus-within .sa-module-card__hover {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

@media (hover: none) {
  .sa-module-card__hover {
    position: static;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    padding: 0 20px 20px;
    justify-content: flex-start;
  }

  .sa-module-card__hover-btn {
    border-color: var(--primary, #115391);
  }
}

.sa-module-card__hover-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  background: #fff;
  color: var(--primary, #115391);
  font: inherit;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.sa-modal[hidden] {
  display: none !important;
}

.sa-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sa-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.sa-modal.is-open .sa-modal__mask {
  opacity: 1;
}

.sa-modal__box {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  background: #fff;
  border-radius: 4px;
  padding: 32px 28px 28px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.sa-modal.is-open .sa-modal__box {
  opacity: 1;
  transform: translateY(0);
}

.sa-modal__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #1a2736;
  text-align: center;
}

.sa-modal__sub {
  margin: 0 0 22px;
  font-size: 14px;
  color: #97a4b6;
  text-align: center;
  min-height: 1.2em;
}

.sa-form__err {
  margin: 0 0 10px;
  color: #dc2626;
  font-size: 13px;
  min-height: 1.2em;
  text-align: center;
}

/* 下划线输入行：聚焦时蓝色高亮线自左展开 */
.sa-form__line {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e5eaf0;
  padding: 14px 0 12px;
  transition: border-color 0.2s ease;
}

.sa-form__line::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  background: var(--blue, var(--primary, #115391));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.sa-form__line:hover {
  border-bottom-color: #c5ced9;
}

.sa-form__line:focus-within {
  border-bottom-color: transparent;
}

.sa-form__line:focus-within::after {
  transform: scaleX(1);
}

.sa-form__line:focus-within label {
  color: var(--blue, var(--primary, #115391));
}

.sa-form__line label {
  flex: 0 0 56px;
  margin: 0;
  font-size: 14px;
  color: #97a4b6;
  transition: color 0.2s ease;
}

.sa-form__line input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 0;
  font: inherit;
  font-size: 15px;
  color: #1a2736;
  background: transparent;
}

.sa-form__line input::placeholder {
  color: #c5ced9;
}

/* 产品下拉：与输入行同款下划线风 + 自定义箭头 */
.sa-form__select {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  padding: 0 28px 0 0;
  font: inherit;
  font-size: 15px;
  color: #1a2736;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2397a4b6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px 8px;
  cursor: pointer;
}

.sa-form__select:focus {
  outline: none;
}

.sa-form__sms-btn {
  flex: 0 0 auto;
  appearance: none;
  border: none;
  border-left: 1px solid #e5eaf0;
  background: transparent;
  color: var(--blue, var(--primary, #115391));
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 0 0 14px;
  margin-left: 4px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.sa-form__sms-btn:hover:not(:disabled) {
  color: var(--blue-dk, #0c3d6b);
}

.sa-form__sms-btn:disabled {
  color: #97a4b6;
  cursor: not-allowed;
}

.sa-form__captcha-img {
  height: 40px;
  width: auto;
  border-radius: 6px;
  border: 1px solid #e5eaf0;
  cursor: pointer;
  flex: 0 0 auto;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.sa-form__captcha-img:hover {
  opacity: 0.88;
  border-color: #c5ced9;
}

.sa-form__textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 96px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #e5eaf0;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  color: #1a2736;
  resize: vertical;
  line-height: 1.6;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sa-form__textarea::placeholder {
  color: #c5ced9;
}

.sa-form__textarea:hover {
  border-color: #c5ced9;
}

.sa-form__textarea:focus {
  outline: none;
  border-color: var(--blue, var(--primary, #115391));
  box-shadow: 0 0 0 3px rgba(17, 83, 145, 0.1);
}

.sa-form__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 20px;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  cursor: pointer;
}

/* 自定义勾选框 */
.sa-form__agree input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  border: 1.5px solid #c5ced9;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sa-form__agree input:hover {
  border-color: var(--blue, var(--primary, #115391));
}

.sa-form__agree input:checked {
  background: var(--blue, var(--primary, #115391));
  border-color: var(--blue, var(--primary, #115391));
}

.sa-form__agree input:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.sa-form__agree a {
  color: var(--blue, var(--primary, #115391));
  text-decoration: none;
}

.sa-form__agree a:hover {
  color: var(--blue-dk, #0c3d6b);
  text-decoration: underline;
}

.sa-form__actions {
  margin-top: 4px;
}

.sa-form__submit {
  appearance: none;
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 14px 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  background: var(--blue, var(--primary, #115391));
  color: #fff;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sa-form__submit:disabled {
  background: #c5ced9;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.sa-form__submit:not(:disabled):hover {
  background: var(--blue-dk, #0c3d6b);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(17, 83, 145, 0.28);
}

.sa-form__submit:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(17, 83, 145, 0.18);
}

.sa-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  appearance: none;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #97a4b6;
  cursor: pointer;
  padding: 4px 8px;
}

/* ── 服务申请落地页（双栏：左表单 + 右联系我们） ── */
.sa-page {
  min-height: 60vh;
  background: #f5f7fa;
}

.sa-page__body {
  padding: 0 0 48px;
  position: relative;
  top: -40px;
  z-index: 2;
}

.sa-page__panel {
  width: min(1100px, 100%);
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.sa-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 24px;
  align-items: start;
}

.sa-page__card {
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(17, 83, 145, 0.08);
}

.sa-page__card--form {
  padding: 36px 40px 32px;
}

.sa-page__card--contact {
  padding: 36px 28px;
  background: linear-gradient(165deg, #f7fbff 0%, #ffffff 55%);
  /* 右侧联系卡随滚动钉死在导航下方 */
  position: sticky;
  top: calc(var(--nav-height, 72px) + 16px);
  align-self: start;
  z-index: 1;
}

/* ── 落地页加载骨架屏 ── */
@keyframes sa-sk-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.sa-page__skeleton {
  pointer-events: none;
  user-select: none;
}

.sa-sk {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef2f6 25%, #f7f9fb 50%, #eef2f6 75%);
  background-size: 200% 100%;
  animation: sa-sk-shimmer 1.2s ease-in-out infinite;
}

.sa-sk--title {
  width: 42%;
  height: 32px;
  margin-bottom: 12px;
}

.sa-sk--sub {
  width: 88%;
  height: 16px;
  margin-bottom: 28px;
}

.sa-sk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 24px;
}

.sa-sk--field {
  height: 40px;
}

.sa-sk--block {
  width: 100%;
  height: 72px;
  margin-bottom: 16px;
}

.sa-sk--block-sm {
  height: 48px;
}

.sa-sk--textarea {
  width: 100%;
  height: 96px;
  margin-bottom: 18px;
}

.sa-sk--agree {
  width: 70%;
  height: 16px;
  margin-bottom: 24px;
}

.sa-sk--btn {
  width: 120px;
  height: 44px;
  border-radius: 8px;
  margin-left: auto;
}

.sa-page__skeleton .sa-page__card--contact .sa-sk--contact-title {
  width: 40%;
  height: 22px;
  margin-bottom: 20px;
}

.sa-page__skeleton .sa-sk--contact-label {
  width: 28%;
  height: 14px;
  margin-bottom: 10px;
}

.sa-page__skeleton .sa-sk--contact-phone {
  width: 70%;
  height: 28px;
  margin-bottom: 22px;
}

.sa-page__skeleton .sa-sk--contact-item {
  width: 100%;
  height: 36px;
  margin-bottom: 12px;
}

.sa-page__skeleton .sa-sk--contact-item:last-child {
  margin-bottom: 0;
}

.sa-page__form-title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  color: #1a2736;
  text-align: left;
  line-height: 1.3;
}

.sa-page__form-title-em {
  color: var(--primary, #115391);
}

.sa-page__form-sub {
  margin: 0 0 28px;
  font-size: 14px;
  color: #6b7a90;
  text-align: left;
  line-height: 1.6;
}

.sa-req {
  color: #dc2626;
  margin-left: 2px;
}

.sa-form--page .sa-form__line label {
  flex: 0 0 72px;
  white-space: nowrap;
  color: #1a2736;
}

.sa-form--page .sa-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  row-gap: 4px;
}

.sa-form--page .sa-form__line--captcha,
.sa-form--page .sa-form__line--sms {
  grid-column: 1 / -1;
}

.sa-field-block {
  margin: 18px 0 8px;
}

.sa-field-block__label {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1a2736;
}

.sa-check-grid,
.sa-radio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
}

.sa-check,
.sa-radio {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
  line-height: 1.4;
}

.sa-check input,
.sa-radio input {
  margin-top: 2px;
  flex-shrink: 0;
}

.sa-form--page .sa-form__line--remark {
  margin-top: 12px;
}

.sa-form--page .sa-form__line--other {
  margin-top: 8px;
}

/* 覆盖 .sa-form__line 的 display:flex，避免 hidden 失效 */
.sa-form--page .sa-form__line--other[hidden] {
  display: none !important;
}

.sa-form--page .sa-form__line--remark label {
  flex: 0 0 auto;
  display: block;
  margin-bottom: 8px;
  width: 100%;
  color: #1a2736;
}

.sa-form--page .sa-form__line--remark {
  display: block;
  border-bottom: none;
  padding: 8px 0 0;
}

.sa-form--page .sa-form__line--remark::after {
  display: none;
}

.sa-form--page .sa-form__textarea {
  margin-top: 0;
}

.sa-page__contact-title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  color: #1a2736;
}

.sa-page__contact-label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1a2736;
}

.sa-page__contact-phone {
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sa-page__contact-phone-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background: var(--primary, #115391);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.2 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.4 21 3 13.6 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1L6.6 10.8z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.2 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.4 21 3 13.6 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1L6.6 10.8z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sa-page__contact-phone a {
  color: var(--primary, #115391);
  text-decoration: none;
}

.sa-page__contact-phone a:hover {
  text-decoration: underline;
}

.sa-page__contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.sa-page__contact-list li {
  padding: 12px 0;
  border-top: 1px solid #eef2f6;
}

.sa-page__contact-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.sa-page__contact-item-name {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #1a2736;
}

.sa-page__contact-item-name small {
  display: inline;
  margin-left: 2px;
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
}

.sa-page__contact-item-tel {
  color: var(--primary, #115391);
  text-decoration: none;
  white-space: nowrap;
}

.sa-page__contact-item-tel:hover {
  text-decoration: underline;
}

.sa-page__contact-list strong {
  color: #1a2736;
}

.sa-page__success {
  margin: 24px 0 0;
  padding: 28px 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #0f766e;
  background: #ecfdf5;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sa-page__success::before {
  content: '';
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f766e;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='16' viewBox='0 0 20 16' fill='none'%3E%3Cpath d='M2 8L7.5 13.5L18 2' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 16px;
  flex-shrink: 0;
}

.sa-page__success[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .sa-page__layout {
    grid-template-columns: 1fr;
  }

  .sa-page__skeleton .sa-page__card--contact {
    position: static;
  }

  .sa-sk-grid {
    grid-template-columns: 1fr;
  }

  .sa-sk--title {
    width: 56%;
  }

  .sa-sk--btn {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .sa-trial-page .inner-topbanner-slide {
    height: auto;
    min-height: 200px;
  }

  .sa-trial-page .inner-topbanner-content {
    margin-top: 0;
  }

  .sa-page {
    overflow-x: hidden;
  }

  .sa-page__body {
    padding: 20px 0 48px;
    top: 0;
  }

  .sa-page__body > .container {
    max-width: 100%;
    overflow: hidden;
  }

  .sa-page__card--form {
    padding: 28px 20px 24px;
  }

  .sa-page__form-title {
    font-size: 22px;
  }

  .sa-page__form-sub {
    margin-bottom: 20px;
    font-size: 13px;
  }

  .sa-form--page .sa-form__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sa-check-grid,
  .sa-radio-grid {
    grid-template-columns: 1fr;
  }

  .sa-form--page .sa-form__line,
  .sa-form--page .sa-form__grid > * {
    min-width: 0;
    max-width: 100%;
  }

  .sa-page__card--form .sa-form__captcha-img {
    max-width: 110px;
    height: 36px;
  }

  .sa-page__card--form .sa-form__sms-btn {
    flex: 0 1 auto;
    padding-left: 10px;
    font-size: 13px;
  }
}

