/* 首页 Banner — 对齐 www.mail163.com */

.home-banner {
  position: relative;
  min-height: 480px;
  background: #f04b67 url("../images/banner/banner01.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.home-banner.is-slide-ai {
  background: linear-gradient(135deg, #002f81 0%, #1a56c9 52%, #3a7be8 100%);
}

.home-banner.is-slide-ai::before {
  opacity: 1;
}

.home-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 40%, rgba(255, 255, 255, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.08) 0%, transparent 36%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.home-banner-layout {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 480px;
  padding: 36px 24px 56px;
}

/* ---------- 试用表单 BOX ---------- */
.home-trial-box {
  position: absolute;
  top: 46px;
  right: 24px;
  z-index: 12;
  width: 350px;
  padding: 14px 16px 12px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(15, 35, 95, 0.22);
}

.home-trial-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #232d47;
  line-height: 1.3;
}

.home-trial-form {
  margin-top: 8px;
}

.home-trial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 8px;
}

.home-trial-optional {
  margin-bottom: 4px;
}

.home-trial-optional summary {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #7a8599;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.home-trial-optional summary::-webkit-details-marker {
  display: none;
}

.home-trial-optional summary::before {
  content: "+ ";
  color: #4c6aff;
  font-weight: 600;
}

.home-trial-optional[open] summary::before {
  content: "− ";
}

.home-trial-optional[open] .home-trial-field {
  margin-bottom: 4px;
}

.home-trial-field {
  margin-bottom: 4px;
}

.home-trial-field input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #e1e6ed;
  border-radius: 4px;
  font-size: 13px;
  color: #232d47;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.home-trial-field input:focus {
  border-color: #4c6aff;
}

.home-trial-field input::placeholder {
  color: #a9b2c2;
}

.home-trial-field-code {
  position: relative;
}

.home-trial-field-code input {
  padding-right: 92px;
}

.home-trial-code-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 34px;
  border: none;
  border-radius: 0 4px 4px 0;
  background: #7098fe;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.home-trial-code-btn:not(:disabled):hover {
  background: #5a86f5;
}

.home-trial-code-btn:disabled {
  background: #c2d3ff;
  cursor: not-allowed;
}

.home-trial-agree {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #7a8599;
  cursor: pointer;
}

.home-trial-agree input {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  accent-color: #4c6aff;
}

.home-trial-agree a {
  color: #1966ff;
  text-decoration: none;
}

.home-trial-agree a:hover {
  text-decoration: underline;
}

.home-trial-submit {
  width: 100%;
  height: 34px;
  border: none;
  border-radius: 4px;
  background: #4c6aff;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.home-trial-submit:not(:disabled):hover {
  background: #3d5ce6;
}

.home-trial-submit:disabled {
  background: #a8b8f5;
  cursor: not-allowed;
}

.home-trial-foot {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 0;
  font-size: 12px;
}

.home-trial-foot a {
  color: #1966ff;
  text-decoration: none;
}

.home-trial-foot a:hover {
  text-decoration: underline;
}

/* ---------- 轮播 ---------- */
.home-banner-slider-wrap {
  position: relative;
  min-height: 388px;
  padding-right: 390px;
}

.home-banner-slider {
  position: relative;
  height: 388px;
}

.home-banner-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.home-banner-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.home-banner-slide[data-theme="promo-image"] {
  background: transparent;
}

.home-banner-slide-inner--image {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 388px;
  padding: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-banner-slide[data-theme="ai"] {
  background:
    radial-gradient(circle at 72% 58%, rgba(255, 255, 255, 0.14) 0%, transparent 38%),
    linear-gradient(120deg, rgba(0, 47, 129, 0.15) 0%, transparent 55%);
}

.home-banner-slide-inner {
  max-width: 620px;
  padding: 24px 0 24px 8px;
}

.home-banner-kicker {
  margin: 0 0 12px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
}

.home-banner-title {
  margin: 0 0 20px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.home-banner-title-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.home-banner-title-split {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: rgba(255, 255, 255, 0.55);
}

.home-banner-desc {
  max-width: 560px;
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}

.home-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.home-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 44px;
  padding: 0 24px;
  border-radius: 22px;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.home-banner-btn-primary {
  background: #fff;
  color: #236def;
  box-shadow: 0 6px 24px rgba(15, 35, 95, 0.18);
}

.home-banner-btn-primary:hover {
  background: #f5f8ff;
}

.home-banner-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #fff;
}

.home-banner-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.home-banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 5;
}

.home-banner-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.home-banner-arrow-prev {
  left: 0;
}

.home-banner-arrow-next {
  right: 390px;
}

.home-banner-dots {
  position: absolute;
  left: 8px;
  bottom: 0;
  transform: none;
  display: flex;
  gap: 8px;
}

.home-banner-dots .slider-dot,
.home-banner-dots .slider-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.home-banner-dots .slider-dot.active,
.home-banner-dots .slider-indicator.active {
  width: 24px;
  border-radius: 4px;
  background: #fff;
}

@media (max-width: 1199px) {
  .home-banner-slider-wrap {
    padding-right: 370px;
  }

  .home-banner-arrow-next {
    right: 360px;
  }
}

@media (max-width: 991px) {
  .home-banner {
    min-height: auto;
  }

  .home-banner-layout {
    min-height: auto;
    padding: 24px 20px 32px;
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
  }

  .home-trial-box {
    position: static;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 18px 16px 14px;
  }

  .home-trial-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-banner-slider-wrap {
    padding-right: 0;
    min-height: 320px;
  }

  .home-banner-slider {
    height: 320px;
  }

  .home-banner-arrow {
    display: none;
  }

  .home-banner-dots {
    left: 50%;
    transform: translateX(-50%);
    bottom: 8px;
  }

  .home-banner-slide-inner {
    padding: 8px 0 40px;
    text-align: center;
    margin: 0 auto;
  }

  .home-banner-title-promo {
    justify-content: center;
  }

  .home-banner-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .home-banner-actions {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .home-trial-box {
    padding: 16px 14px 12px;
  }

  .home-banner-slider {
    height: 280px;
  }

  .home-banner-title {
    font-size: 24px;
  }

  .home-banner-desc {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .home-banner-btn {
    min-width: 120px;
    height: 40px;
    font-size: 14px;
  }
}
