:root {
  --bg: #07131d;
  --text: #eaf2ff;
  --muted: rgba(234, 242, 255, 0.75);
  --shadow: rgba(0, 0, 0, 0.35);
  --wechat: #22b141;
  --whatsapp: #128c7e;
  --chat: #0b6cff;
  --card: rgba(7, 19, 29, 0.75);
  --radius: 18px;
  --floating-space: 260px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, system-ui, Segoe UI, Roboto, Helvetica, Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(900px 450px at 50% -10%, rgba(59, 140, 255, 0.18), transparent 60%),
    radial-gradient(700px 380px at 10% 20%, rgba(34, 177, 65, 0.12), transparent 55%),
    radial-gradient(700px 380px at 90% 35%, rgba(18, 140, 126, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  padding-bottom: calc(var(--floating-space) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-modal-open {
  overflow: hidden;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.page {
  padding-bottom: 0;
}

.hero-copy {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 12px 10px;
}

.hero-copy__inner {
  border-radius: 22px;
  padding: 14px 14px 16px;
  background: rgba(7, 19, 29, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.hero-copy__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.35px;
  color: rgba(234, 242, 255, 0.88);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(234, 242, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-copy__title {
  margin: 10px 0 6px;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: 0.2px;
}

.hero-copy__desc {
  margin: 0;
  color: rgba(234, 242, 255, 0.78);
  font-size: 13px;
  line-height: 1.6;
}

.hero-copy__badges {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.badge {
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: rgba(234, 242, 255, 0.9);
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

.hero-copy__cta {
  margin-top: 14px;
  width: 100%;
  height: 50px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #3b8cff 0%, #0b6cff 100%);
  color: #fff;
  font-weight: 950;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(11, 108, 255, 0.25);
}

.hero-copy__cta:active {
  transform: translateY(1px);
  filter: brightness(0.97);
}

.carousel {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
}

.carousel__viewport {
  width: 100%;
  overflow: hidden;
  transition: height 160ms ease;
  background: transparent;
  will-change: height;
}

.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: transparent;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.carousel__img {
  width: 100%;
  height: auto;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 2px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(234, 242, 255, 0.35);
}

.dot.is-active {
  width: 18px;
  background: rgba(234, 242, 255, 0.9);
}

.carousel__hint {
  margin: 4px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(234, 242, 255, 0.65);
}

.features {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 12px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.feature {
  padding: 12px 12px 13px;
  border-radius: 18px;
  background: rgba(7, 19, 29, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.feature__title {
  font-weight: 950;
  letter-spacing: 0.2px;
  font-size: 14px;
}

.feature__desc {
  margin-top: 4px;
  color: rgba(234, 242, 255, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

.notice {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 12px 4px;
}

.notice__card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(7, 19, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.notice__label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2px;
  color: rgba(234, 242, 255, 0.9);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(234, 242, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.notice__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.notice__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  color: rgba(234, 242, 255, 0.8);
  transition: opacity 180ms ease, transform 180ms ease;
}

.notice__text.is-out {
  opacity: 0;
  transform: translateY(-6px);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(520px, 100%);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(7, 19, 29, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
  will-change: transform, opacity;
}

.modal.is-open .modal__panel {
  animation: modal-in 180ms ease;
}

@keyframes modal-in {
  from {
    transform: translateY(10px) scale(0.985);
    opacity: 0.85;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 19, 29, 0.55);
  color: rgba(234, 242, 255, 0.95);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.modal__close:active {
  transform: translateY(1px);
}

.modal__media {
  background: rgba(0, 0, 0, 0.15);
}

.modal__img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
}

.modal__actions {
  padding: 12px;
  display: flex;
  justify-content: center;
}

.modal__primary {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(234, 242, 255, 0.1);
  color: rgba(234, 242, 255, 0.95);
  font-weight: 900;
  letter-spacing: 0.2px;
  cursor: pointer;
}

.modal__primary:active {
  transform: translateY(1px);
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
  transition: transform 0.12s ease, filter 0.12s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: translateY(2px);
  filter: brightness(0.96);
}

.btn--wechat {
  background: linear-gradient(180deg, #39d45d 0%, var(--wechat) 100%);
}

.btn--whatsapp {
  background: linear-gradient(180deg, #28e06d 0%, var(--whatsapp) 100%);
}

.btn--chat {
  background: linear-gradient(180deg, #3b8cff 0%, var(--chat) 100%);
}

.btn--ghost {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  box-shadow: none;
  font-weight: 800;
}

.copy-wrap {
  margin-top: 10px;
}

.copy-tip {
  margin: 8px 6px 0;
  font-size: 12px;
  color: var(--muted);
  min-height: 16px;
}

.section {
  position: relative;
}

.section__cta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.section--last {
  margin-bottom: 10px;
}

.footer {
  padding: 18px 14px 18px;
  text-align: center;
}

.footer__nav {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 12px;
}

.footer__nav a {
  color: rgba(234, 242, 255, 0.86);
  text-decoration: none;
}

.footer__sep {
  color: rgba(234, 242, 255, 0.35);
}

.footer__note {
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(234, 242, 255, 0.65);
}

.floating-contact {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  background: transparent;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.floating-contact::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: linear-gradient(
    180deg,
    rgba(7, 19, 29, 0),
    rgba(7, 19, 29, 0.72) 30%,
    rgba(7, 19, 29, 0.92)
  );
  pointer-events: none;
}

.floating-contact__card {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto;
  background: rgba(7, 19, 29, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  will-change: transform;
}

.floating-contact__card.is-attention {
  animation: attention-pulse 900ms ease;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 0 2px rgba(59, 140, 255, 0.32),
    0 0 26px rgba(59, 140, 255, 0.22);
}

@keyframes attention-pulse {
  0% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.floating-contact__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 6px 10px;
  text-align: center;
}

.floating-contact__head > div {
  width: 100%;
}

.floating-contact__title {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.floating-contact__sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.cta-row--floating {
  gap: 12px;
}

@media (min-width: 520px) {
  .cta-row {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .features {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
