/* ======= Premium Hero =======
   All breakpoints: stacked layout (poster on top, centered copy below) —
   formerly the mobile-only treatment; desktop overlay/popup layout removed. */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(17, 56, 212, 0.08), transparent 60%),
    linear-gradient(180deg, #f6f8ff 0%, #ffffff 100%);
}

/* ASI logo watermarks — kept faint behind the section; the white copy band
   covers the middle, so marks mainly read in the top/side margins on wide screens. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  aspect-ratio: 758 / 227;
  background: url('../assets/asi-logo.svg') no-repeat center / contain;
  filter: grayscale(35%) blur(0.4px);
  pointer-events: none;
}
.hero::before {
  right: -6%;
  top: -8%;
  width: 78%;
  opacity: 0.07;
  -webkit-mask-image: linear-gradient(115deg, transparent 8%, rgba(0, 0, 0, 0.55) 40%, #000 75%);
  mask-image: linear-gradient(115deg, transparent 8%, rgba(0, 0, 0, 0.55) 40%, #000 75%);
}
.hero::after {
  left: -7%;
  bottom: -9%;
  width: 52%;
  opacity: 0.1;
  transform: rotate(-6deg);
  transform-origin: left bottom;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, #000 30%, #000 60%, transparent 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, #000 30%, #000 60%, transparent 100%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

/* Hero Image — full-bleed poster on top (links to Contact) */
a.hero-image-wrap {
  position: relative;
  width: 100%;
  height: auto;
  line-height: 0;
  order: 1;
  border-radius: 0;
  box-shadow: none;
  border: none;
  display: block;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease;
}
a.hero-image-wrap:hover { opacity: 0.94; }
a.hero-image-wrap:focus-visible {
  outline: 3px solid var(--accent, #0057b7);
  outline-offset: -3px;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-image-overlay,
.hero-scroll {
  display: none;
}

/* Copy band below the poster */
.hero-content-wrap {
  position: relative;
  inset: auto;
  width: 100%;
  background: #fff;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  order: 2;
}

.hero-container {
  width: 100%;
  max-width: 720px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* ==========================================================================
   HERO CARD — stacked layout (all breakpoints)
   Transparent card on white band; dark type. On PC, left building image +
   right copy. Legacy v1 white/blue look kept in the comment further below.
   ========================================================================== */
.hero-card {
  position: relative;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  border: none;
  transform: none;
  animation: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #333;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  gap: 0;
}
/* Faint ASI logo watermark behind card content */
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('../assets/asi-logo.svg') no-repeat center / min(72%, 520px) auto;
  opacity: 0.06;
  filter: grayscale(40%) blur(0.3px);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 55% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 55% 50%, #000 20%, transparent 75%);
}
.hero-card::after { display: none; }
.hero-card-media,
.hero-card-copy {
  position: relative;
  z-index: 1;
}

/* Building photo: PC only (left column) */
.hero-card-media {
  display: none;
}
.hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}

.hero-card-copy {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 961px) {
  .hero-container {
    max-width: 1080px;
  }
  .hero-content-wrap {
    text-align: left;
  }
  .hero-card {
    flex-direction: row;
    align-items: stretch;
    gap: clamp(1.75rem, 3vw, 2.75rem);
  }
  .hero-card-media {
    display: block;
    flex: 0 0 clamp(360px, 42%, 480px);
    width: clamp(360px, 42%, 480px);
    max-width: 480px;
    height: 320px;
    align-self: center;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    background: #e8eef5;
  }
  .hero-card-copy {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  margin: 0 auto 0.5rem;
  width: fit-content;
  background: rgba(30, 41, 59, 0.06);
  border: 1px solid rgba(30, 41, 59, 0.15);
  border-radius: 50px;
  color: #334155;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.hero-badge a { color: #1e293b; }
.hero-badge svg { color: #d4b05a; }

.hero-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 1.25rem 0;
  color: #1e293b;
  text-align: center;
}
.hero-headline .highlight {
  display: block;
  font-weight: 600;
  font-size: 0.72em;
  
  margin-top: 0.35rem;
  background: linear-gradient(90deg, #475569 0%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.85;
  color: #666;
  margin-bottom: 0;
  max-width: 520px;
  text-align: center;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  width: 100%;
  margin-bottom:20px;
}
.hero-actions .btn {
  padding: 0.8rem 1.5rem;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  border-radius: 12px;
}
.hero-card .btn-primary {
  background: #1e293b;
  border: 1px solid #1e293b;
  color: #fff;
  box-shadow: none;
}
.hero-card .btn-primary:hover {
  background: #334155;
  border-color: #334155;
  color: #fff;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(30, 41, 59, 0.1);
  position: relative;
}
.hero-trust::before { display: none; }
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  color: #475569;
  transition: color 0.3s ease, transform 0.3s ease;
}
.hero-trust-item:hover { color: #1e293b; transform: translateY(-2px); }
.hero-trust-item svg { color: #64748b; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   LEGACY v1 look (white card, bright blue headline, orange highlight) — kept
   for reference. Remove this block once the v2 design is signed off.
   --------------------------------------------------------------------------
/* White card * /
.hero-card {
  background: #ffffff;
  border: 1px solid rgba(17, 56, 212, 0.08);
  border-radius: 20px;
  padding: clamp(2rem, 3vw, 3rem);
  box-shadow:
    0 20px 50px rgba(17, 56, 212, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: var(--text-primary, #1d1d1f);
  position: relative;
  overflow: hidden;
}

/* Decorative inner glow/top gradient for hero-card * /
.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(17, 56, 212, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  color: #ffffff; /* 关键：强制设置文字颜色为白色 * /
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  width: fit-content;
  /* Subtle shadow for depth * /
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.hero-badge:hover::before {
  transform: translateX(100%);
}

.hero-badge svg {
  color: #ffd700;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
}

.hero-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 1000;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
  color: rgb(17, 56, 212);
}

.hero-headline .highlight {
  display: block;
  /* 从浅金到琥珀色的跨度 * /
  background:rgb(252, 137, 29);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  
  font-weight: 800; /* 加粗字体会让颜色更明显 * /
  /* 提升 1.5 倍饱和度，让色彩更鲜艳 * /
  filter: saturate(2) contrast(1.2);
  
    /* 添加微弱的深色投影，让浅色文字在浅色背景下也能看清 * /
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
  }


.hero-desc {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--text-secondary, #555);
  margin-bottom: 1.25rem;
}

/* CTA Buttons * /
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-actions .btn {
  padding: 0.875rem 1.75rem;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
}

/* Trust Badges * /
.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 56, 212, 0.1);
  position: relative;
}

/* Subtle top decorative line * /
.hero-trust::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.6), transparent);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  opacity: 0.85;
  color: rgb(40, 36, 106);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-trust-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.hero-trust-item svg {
  color: rgb(17, 56, 212);
  opacity: 0.85;
  flex-shrink: 0;
}
*/


/* Discount Mini Card */
.hero-discount-mini {
  background: linear-gradient(
    135deg,
    rgba(0, 50, 120, 0.4) 0%,
    rgba(0, 87, 183, 0.3) 100%
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-discount-mini-title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-discount-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-discount-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}

.hero-discount-tag.gold {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 184, 0, 0.25));
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
}

.hero-discount-tag.orange {
  background: linear-gradient(135deg, rgba(255, 169, 77, 0.3), rgba(255, 146, 43, 0.25));
  border: 1px solid rgba(255, 169, 77, 0.4);
  color: #ffa94d;
}

.hero-discount-tag.red {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(238, 90, 90, 0.25));
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #ff6b6b;
}

.hero-discount-year {
  font-weight: var(--fw-semibold);
  opacity: 0.85;
}

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(0, 113, 227, 0.7);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  z-index: 5;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* Responsive — small phones only (stacked layout is default at all widths) */
@media (max-width: 576px) {
  .hero-headline {
    font-size: 1.5rem;
  }

  .hero-discount-row {
    gap: 0.375rem;
  }

  .hero-discount-tag {
    padding: 0.3rem 0.625rem;
    font-size: 0.65rem;
  }

  .hero-discount-mini {
    width: 100%;
    max-width: 400px;
    background: rgba(17, 56, 212, 0.03);
    border: 1px solid rgba(17, 56, 212, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-discount-row {
    justify-content: center;
  }
}
