/* Avanza Cred - 公共样式 */
@import url("font.css");

:root {
  --primary-dark: #004b30;
  --primary-medium: #015f4d;
  --lime-green: #b9ff7a;
  --magenta: #ed6cfd;
  --white: #ffffff;
  --gray-light: #f2f5f4;
  --gray-border: rgba(0, 61, 43, 0.05);
  --content-max-width: 1320px;
  --text-muted: #333333;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--primary-medium);
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  padding-top: 0;
  padding-bottom: 2rem;
}

/* 页面区块占位样式 */
.page-hero,
.page-section {
  padding: 3rem 0;
}

.page-hero h1,
.page-section h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-medium);
  margin: 0 0 1rem;
}

.page-hero p,
.page-section p {
  margin: 0;
  color: var(--primary-medium);
}

.page-hero-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 2rem;
  border-radius: 8px;
}

.page-content-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 1.5rem;
  border-radius: 8px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.page-title {
  font-weight: 600;
  font-size: 68px;
  line-height: 80px;
  color: var(--primary-medium);
  margin: 0 0 2.5rem;
  text-align: center;
  letter-spacing: 0;
}

.page-subtitle {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: var(--primary-medium);
  margin: 0 0 2.5rem;
  text-align: center;
}

.heading-display {
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 68px);
  line-height: 1.32;
  color: var(--primary-medium);
}

.heading-section {
  font-weight: 600;
  font-size: 48px;
  line-height: 60px;
  color: var(--primary-medium);
  margin: 0;
}

.heading-md {
  font-weight: 600;
  font-size: 24px;
  line-height: 30px;
}

.text-body-loose {
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
}

.text-body-loose p {
  margin: 0 0 1.25em;
}

.text-body-loose p:last-child {
  margin-bottom: 0;
}

.text-body-loose a {
  color: inherit;
  text-decoration: underline;
}

.text-body-loose a:hover {
  opacity: 0.8;
}

.text-body {
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
}

.text-lead {
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
}

.content-divider {
  height: 1px;
  background: var(--gray-border);
  margin: 2rem 0;
}

@media (prefers-reduced-motion: no-preference) {
  .sos-main.sos-anim-on .sos-reveal:not(.is-visible),
  .seg-security.seg-anim-on .seg-reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(28px);
  }

  .sos-main.sos-anim-on .sos-reveal.sos-reveal--hero:not(.is-visible) {
    transform: translateY(22px);
  }

  .sos-main.sos-anim-on .sos-reveal,
  .seg-security.seg-anim-on .seg-reveal {
    transition:
      opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--reveal-i, 0) * 0.08s);
  }

  .seg-security.seg-anim-on .seg-reveal {
    transition-delay: calc(var(--reveal-i, 0) * 0.12s);
  }

  .seg-security.seg-anim-on .seg-section-title.seg-reveal {
    transition-delay: 0s;
  }

  .seg-security.seg-anim-on .seg-section-title--center.seg-reveal {
    transition-delay: 0.05s;
  }

  .sos-main.sos-anim-on .sos-reveal.is-visible,
  .seg-security.seg-anim-on .seg-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .sos-main.sos-anim-on .sos-reveal.is-visible.sos-alerta-card:hover,
  .sos-main.sos-anim-on .sos-reveal.is-visible.sos-alerta-banner:hover {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sos-reveal,
  .seg-reveal {
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .container,
  .container-wide {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-title {
    font-size: 40px;
    line-height: 48px;
  }

  .page-subtitle {
    font-size: 18px;
  }

  .heading-md {
    font-size: 20px;
    line-height: 26px;
  }
}
