#home {
  width: 100%;
  /* max-width: 19.2rem; */
  margin: 0 auto;
  overflow-x: hidden;
  /* height: 7.05rem; */
}

/* 锚点区域样式 */
.section {
  /* height: 7.05rem; */
  /* margin-top: 0.8rem; */
  /* margin: 0.2rem 0; */
  /* background-color: #f5f5f5; */
  /* border-radius: 0.08rem; */
}
#home .top {
  width: 100%;
  height: 6.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  padding: 0.55rem 2.6rem 0.65rem;
  max-width: 19.2rem;
  margin: 0 auto;
  box-sizing: border-box;
  background-image: url("../image/top3.png");
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, cover;
}
#home .top-content {
  height: 100%;
}
#home .top-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
#home .top-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 3.9rem;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}
#home .top-visual:hover {
  transform: translateY(-0.08rem) scale(1.03);
  filter: drop-shadow(0 0.15rem 0.3rem rgba(0, 110, 255, 0.4)) brightness(1.05);
}
#home .top-content-item img {
  margin-right: 0.16rem;
}
#home .top-text3 {
  /* width: 6.93rem; */
  height: 0.9rem;
  font-size: 0.64rem;
  font-weight: bold;
  line-height: normal;
  letter-spacing: 0em;
  color: #ffffff;
}
#home .top-text4 {
  width: 6.51rem;
  height: 0.32rem;
  font-size: 0.18rem;
  font-weight: bold;
  line-height: normal;
  letter-spacing: 0em;
  color: #c5e1ff;
}
#home .top-flex {
  margin-top: 0.21rem;
  display: flex;
  /* justify-content: center; */
  align-items: center;
  gap: 0.09rem;
  /* height: 100%; */
}
#home .hero-actions {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin-top: 0.58rem;
  margin-bottom: 0.65rem;
}
#home .hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  width: 2rem;
  height: 0.7rem;
  border-radius: 0.18rem;
  font-size: 0.24rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease,
    filter 0.3s ease;
}

#home .hero-action span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}

#home .hero-action img {
  display: block;
  flex-shrink: 0;
}
#home .hero-action::after {
  content: "";
  position: absolute;
  top: 0;
  left: -42%;
  width: 36%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.42s ease;
}
#home .hero-action-light {
  background: linear-gradient(180deg, #c9dbff 0%, #eaf1ff 100%);

  box-shadow: inset 0 0 0.03rem 0 rgba(255, 255, 255, 0.3);
  font-size: 0.18rem;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0em;

  font-variation-settings: "opsz" auto;
  color: #1c63fe;
}
#home .hero-action-primary {
  background: linear-gradient(270deg, #0182ff 0%, #006eff 100%);
  box-shadow: inset 0 0 0.03rem 0 rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.18rem;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0em;
}
#home .hero-action:hover {
  transform: translateY(-0.04rem) scale(1.02);
}
#home .hero-action:hover::after {
  left: 118%;
}
#home .hero-action-light:hover {
  background: linear-gradient(180deg, #d9e6ff 0%, #f6f9ff 100%);
  box-shadow:
    0 0.16rem 0.32rem rgba(28, 99, 254, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  filter: brightness(1.02);
}
#home .hero-action-primary:hover {
  background: linear-gradient(270deg, #1791ff 0%, #1677ff 100%);
  box-shadow:
    0 0.18rem 0.36rem rgba(20, 103, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  filter: brightness(1.04);
}
#home .hero-action-primary::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  top: -0.19rem;
  width: 100%;
  height: 50%;
  background-image: url("../image/btn-bg.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
  mix-blend-mode: screen; /* 让光效更好地融入蓝色背景 */
}
#home .hero-action:active {
  transform: translateY(-1px) scale(0.99);
}
#home .bottom {
  /* width: 100%; */
  height: 1.5rem;
  background: linear-gradient(90deg, #3c76e8 0%, #1a49bb 100%);
  padding: 0 0.2rem;
}
#home .bottom-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  max-width: 14rem;
  margin: 0 auto;
}
#home .bottom-content .item {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 2.07rem;
  height: 0.72rem;
}
#home .bottom-content .item img {
  margin-right: 0.12rem;
}
#home .bottom-content .item p {
  margin: 0;
}
#home .bottom-content .item p.title {
  font-size: 0.2rem;
  font-weight: bold;
  line-height: normal;
  letter-spacing: 0em;
  font-variation-settings: "opsz" auto;
  font-feature-settings: "kern" on;
  color: #fff;
  margin-bottom: 0.04rem;
}
#home .bottom-content .item p.desc {
  font-size: 0.14rem;
  font-weight: normal;
  line-height: normal;
  letter-spacing: 0em;
  color: #ffffff;
}

/* 全局弹窗样式 */
.global-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.global-modal.is-active {
  visibility: visible;
  opacity: 1;
}

.global-modal .modal-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(0.04rem);
  backdrop-filter: blur(0.04rem);
}

.global-modal .modal-container {
  position: relative;
  width: 8rem;
  height: 5.2rem;
  background: #ffffff;
  border-radius: 0.12rem;
  display: flex;
  overflow: hidden;
  box-shadow: 0 0.24rem 0.48rem rgba(0, 0, 0, 0.2);
  transform: translateY(0.2rem) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-modal.is-active .modal-container {
  transform: translateY(0) scale(1);
}

.global-modal .modal-left {
  flex: 0 0 3.4rem;
  background: #0d2546;
  position: relative;
}

.global-modal .modal-left-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.global-modal .modal-right {
  flex: 1;
  padding: 0.37rem 0.4rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.global-modal .modal-close {
  position: absolute;
  top: 0.24rem;
  right: 0.24rem;
  cursor: pointer;
  padding: 0.04rem;
  border-radius: 0.04rem;
  transition: background 0.2s ease;
}

.global-modal .modal-close:hover {
  background: #f0f0f0;
}

.global-modal .modal-header {
  margin-bottom: 0.32rem;
}

.global-modal .modal-title {
  font-size: 0.3rem;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0em;

  font-variation-settings: "opsz" auto;
  line-height: 1.4;
  margin: 0 0 0.08rem 0;
}

.global-modal .modal-desc {
  font-size: 0.14rem;
  font-weight: normal;
  line-height: normal;
  letter-spacing: 0em;

  font-variation-settings: "opsz" auto;
  /* 辅助文字色 */
  color: #61646f;
  margin: 0;
}
.global-modal .modal-title-2 {
  font-size: 0.2rem;
  /* font-weight: 600; */
  line-height: normal;
  letter-spacing: 0em;

  font-variation-settings: "opsz" auto;
  line-height: 1.4;
  margin: 0 0 0.08rem 0;
}
.global-modal .modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.global-modal .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.global-modal .form-group label {
  font-size: 0.14rem;
  font-weight: 500;
  color: #1a1a1a;
}

.global-modal .form-group input {
  height: 0.44rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.04rem;
  padding: 0 0.16rem;
  font-size: 0.14rem;
  color: #1a1a1a;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  outline: none;
}

.global-modal .form-group input::placeholder {
  color: #cccccc;
}

.global-modal .form-group input:focus {
  border-color: #3662ec;
  box-shadow: 0 0 0 0.03rem rgba(54, 98, 236, 0.1);
}

.global-modal .submit-btn {
  /* margin-top: 0.12rem; */
  height: 0.48rem;
  background: linear-gradient(90deg, #ff4d00 0%, #ff1a00 100%);
  border: none;
  border-radius: 0.04rem;
  color: #ffffff;
  font-size: 0.16rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.global-modal .submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.global-modal .submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.08rem 0.16rem rgba(255, 50, 0, 0.25);
}

.global-modal .submit-btn:active {
  transform: translateY(0);
}

.global-modal .modal-feedback {
  /* min-height: 0.2rem;
  margin-top: -0.08rem;
  font-size: 0.14rem;
  line-height: 0.2rem; */
}

.global-modal .modal-feedback.is-error {
  color: #ff4d4f;
}

.global-modal .modal-feedback.is-success {
  color: #1f9d55;
}

.message-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.message-modal.is-active {
  visibility: visible;
  opacity: 1;
}

.message-modal .message-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.message-modal .message-container {
  position: relative;
  width: 4.2rem;
  background: #ffffff;
  border-radius: 0.12rem;
  padding: 0.2rem 0.2rem 0.16rem;
  box-shadow: 0 0.24rem 0.48rem rgba(0, 0, 0, 0.2);
  transform: translateY(0.1rem) scale(0.98);
  transition: transform 0.25s ease;
}

.message-modal.is-active .message-container {
  transform: translateY(0) scale(1);
}

.message-modal .message-title {
  font-size: 0.18rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.1rem 0;
}

.message-modal .message-content {
  font-size: 0.14rem;
  line-height: 0.22rem;
  color: #444444;
  margin: 0;
}

.message-modal .message-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.18rem;
}

.message-modal .message-ok {
  height: 0.36rem;
  padding: 0 0.16rem;
  border: none;
  border-radius: 0.06rem;
  background: #1677ff;
  color: #ffffff;
  font-size: 0.14rem;
  font-weight: 600;
  cursor: pointer;
}

.message-modal .message-ok:active {
  transform: translateY(1px);
}

/* 页脚样式 */
.footer {
  background-color: #212429;
  padding: 0.32rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  font-size: 0.14rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  white-space: nowrap;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #3662ec;
}

.footer .divider {
  color: rgba(255, 255, 255, 0.2);
}

.footer-copyright {
  text-align: center;
}

.footer-icp {
  display: flex;
  align-items: center;
  gap: 0.16rem;
  white-space: nowrap;
}

/* 全局滚动动效基础类 */
.reveal-up {
  opacity: 0;
  transform: translateY(0.4rem);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-up.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 延迟动效 (用于同一模块内不同元素的阶梯式入场) */
.reveal-delay-100 {
  transition-delay: 100ms;
}
.reveal-delay-200 {
  transition-delay: 200ms;
}
.reveal-delay-300 {
  transition-delay: 300ms;
}
.reveal-delay-400 {
  transition-delay: 400ms;
}
.reveal-delay-500 {
  transition-delay: 500ms;
}
.reveal-delay-600 {
  transition-delay: 600ms;
}
.reveal-delay-700 {
  transition-delay: 700ms;
}
.reveal-delay-800 {
  transition-delay: 800ms;
}
.reveal-delay-900 {
  transition-delay: 900ms;
}
.reveal-delay-1000 {
  transition-delay: 1000ms;
}

/* 侧边悬浮客服 */
.floating-service {
  position: fixed;
  right: calc(0.2rem + env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  width: 1.4rem;
  background-color: #dbe7fb;
  border-radius: 0.12rem;
  padding: 0.2rem 0.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0.04rem 0.16rem rgba(0, 0, 0, 0.08);
  z-index: 999;
  font-family: "Alibaba PuHuiTi", sans-serif;
}

.floating-service .service-title {
  color: #1a3c94;
  font-size: 0.18rem;
  font-weight: 700;
  margin-bottom: 0.08rem;
}

.floating-service .service-phone {
  background-color: #1c3b8b;
  color: #ffffff;
  border-radius: 0.2rem;
  padding: 0.06rem 0.1rem;
  font-size: 0.14rem;
  font-weight: 600;
  margin-bottom: 0.16rem;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.floating-service .service-subtitle {
  color: #1a3c94;
  font-size: 0.16rem;
  font-weight: 700;
  margin-bottom: 0.06rem;
}

.floating-service .service-desc {
  color: #4b6bc6;
  font-size: 0.12rem;
  margin-bottom: 0.12rem;
  white-space: nowrap;
}

.floating-service .service-qr {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.04rem;
  object-fit: cover;
}
