:root {
  --violet-950: #250b35;
  --violet-900: #3a154d;
  --violet-800: #501f66;
  --violet-700: #6a2c82;
  --violet-500: #9d5cb5;
  --pink-500: #ff5ca8;
  --pink-300: #ff97d1;
  --blue-400: #41b3ff;
  --mint-300: #8ee9d7;
  --ink: #271236;
  --muted: #6f6078;
  --paper: #fff9fd;
  --line: rgba(58, 21, 77, 0.14);
  --shadow: 0 22px 52px rgba(43, 12, 61, 0.24);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(18px, 5vw, 72px);
  color: #fff;
  background: rgba(37, 11, 53, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  font-weight: 800;
  font-size: 21px;
}

.brand-icon {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 9px rgba(255, 92, 168, 0.86));
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 36px);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.76);
}

.main-nav a {
  padding: 26px 0;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
}

.nav-action,
.primary-action,
.secondary-action,
.method,
.product-card button {
  border: 0;
  border-radius: 8px;
}

.nav-action {
  min-width: 108px;
  padding: 11px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-500), #d849c9);
  box-shadow: 0 12px 28px rgba(255, 92, 168, 0.32);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(760px, calc(100svh - 34px));
  padding: clamp(74px, 10vw, 126px) clamp(18px, 5vw, 72px) 52px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, var(--violet-950) 0%, var(--violet-900) 34%, var(--violet-700) 70%, var(--violet-500) 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 14px;
  background: linear-gradient(90deg, var(--pink-500), var(--blue-400), var(--mint-300));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  max-width: 1180px;
  margin: 0 auto;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pink-300);
  font-size: 14px;
  font-weight: 800;
}

.eyebrow.dark {
  color: var(--violet-700);
}

.eyebrow.light {
  color: #ffd3ea;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 9vw, 112px);
  line-height: 0.95;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.hero-lede {
  max-width: 590px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  padding: 0 22px;
  font-weight: 800;
}

.primary-action {
  color: #fff;
  background: linear-gradient(135deg, var(--pink-500), #b755f6);
  box-shadow: 0 16px 34px rgba(255, 92, 168, 0.36);
}

.secondary-action {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.wide {
  width: 100%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
}

.hero-metrics span {
  min-height: 72px;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.hero-metrics strong {
  display: block;
  color: #fff;
  font-size: 26px;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 390px);
}

.phone-shell {
  width: min(86vw, 321px);
  margin: 0 auto;
  padding: 8px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.phone-shell img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

.signal-panel {
  position: absolute;
  right: -4px;
  bottom: 42px;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  width: min(278px, 82vw);
  padding: 16px;
  color: #fff;
  background: rgba(37, 11, 53, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.signal-panel strong,
.signal-panel span {
  display: block;
}

.signal-panel span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.5;
}

.signal-dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--pink-500);
  box-shadow: 0 0 0 0 rgba(255, 92, 168, 0.55);
  animation: pulse 1.9s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 92, 168, 0.55);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(255, 92, 168, 0);
  }
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  color: #fff;
  background: var(--violet-950);
}

.strip-item {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 800;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.section-head {
  max-width: 780px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.compact {
  margin-bottom: 24px;
}

.feature-section {
  background: linear-gradient(180deg, #fff9fd 0%, #f2e7f8 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.feature-card {
  min-height: 260px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(58, 21, 77, 0.1);
}

.feature-card p {
  color: var(--muted);
  line-height: 1.75;
}

.feature-index {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 30px;
  color: #fff;
  border-radius: 8px;
  font-weight: 900;
}

.accent-pink .feature-index {
  background: var(--pink-500);
}

.accent-violet .feature-index {
  background: var(--violet-700);
}

.accent-blue .feature-index {
  background: var(--blue-400);
}

.accent-rose .feature-index {
  background: #ce4d8f;
}

.experience-section {
  color: #fff;
  background: var(--violet-900);
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 94px);
  max-width: 1180px;
  margin: 0 auto;
}

.scene-board {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-height: 430px;
  padding: 26px;
  background:
    linear-gradient(160deg, rgba(255, 92, 168, 0.22), rgba(65, 179, 255, 0.13)),
    var(--violet-800);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.scene-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.11);
  border-radius: 8px;
}

.scene-row span,
.experience-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.scene-row strong {
  text-align: right;
}

.chat-bubble {
  max-width: 74%;
  padding: 14px 16px;
  border-radius: 8px;
  line-height: 1.5;
}

.chat-bubble.left {
  align-self: flex-start;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.chat-bubble.right {
  align-self: flex-end;
  color: var(--violet-950);
  background: linear-gradient(135deg, var(--pink-300), #fff);
}

.heart-meter {
  height: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.heart-meter span {
  display: block;
  width: var(--level);
  height: 100%;
  background: linear-gradient(90deg, var(--pink-500), var(--blue-400));
  border-radius: 8px;
}

.experience-copy p {
  font-size: 18px;
  line-height: 1.85;
}

.mini-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.mini-list span {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.plans-section {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(65, 179, 255, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(145deg, var(--violet-950), var(--violet-800));
  background-size: 42px 42px, 42px 42px, auto;
}

.plans-section .section-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto 26px;
}

.method {
  min-height: 42px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.method.active {
  color: #fff;
  background: linear-gradient(135deg, #12b56b, #33d186);
  border-color: rgba(255, 255, 255, 0.28);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 238px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(22, 3, 34, 0.25);
}

.product-card.featured {
  border-color: var(--pink-300);
  box-shadow: 0 0 0 1px rgba(255, 151, 209, 0.34), 0 22px 48px rgba(255, 92, 168, 0.18);
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-group,
.product-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.product-group {
  color: var(--violet-950);
  background: var(--pink-300);
}

.product-badge {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.product-card h3 {
  margin-bottom: 2px;
}

.product-card p {
  min-height: 52px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.price-row strong {
  font-size: 32px;
}

.price-row span {
  color: rgba(255, 255, 255, 0.62);
}

.product-card button {
  min-height: 46px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink-500), #b755f6);
  font-weight: 900;
}

.safety-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(106, 44, 130, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(106, 44, 130, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #fff 0%, #fff7fc 52%, #f4eafa 100%);
  background-size: 44px 44px, 44px 44px, auto;
}

.safety-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
}

.safety-copy {
  position: sticky;
  top: 104px;
}

.safety-copy h2 {
  max-width: 430px;
  margin-bottom: 18px;
}

.safety-lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.safety-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.safety-tags span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--violet-800);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(58, 21, 77, 0.07);
}

.safety-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.safety-card {
  position: relative;
  min-height: 196px;
  padding: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(58, 21, 77, 0.1);
}

.safety-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--pink-500), var(--blue-400), var(--mint-300));
}

.safety-card.is-primary {
  grid-row: span 2;
  min-height: 406px;
  color: #fff;
  background:
    linear-gradient(150deg, rgba(255, 92, 168, 0.34), rgba(65, 179, 255, 0.14)),
    var(--violet-800);
  border-color: rgba(255, 255, 255, 0.18);
}

.safety-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.safety-card-head span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--violet-700);
  border-radius: 8px;
  font-weight: 900;
}

.safety-card.is-primary .safety-card-head span {
  color: var(--violet-950);
  background: var(--pink-300);
}

.safety-card-head small {
  color: var(--violet-500);
  font-size: 13px;
  font-weight: 900;
}

.safety-card.is-primary .safety-card-head small {
  color: rgba(255, 255, 255, 0.72);
}

.safety-card p {
  color: var(--muted);
  line-height: 1.75;
}

.safety-card.is-primary p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.safety-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.safety-reasons span {
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.report-flow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 8px;
  overflow: hidden;
  color: #fff;
  background: rgba(58, 21, 77, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(58, 21, 77, 0.11);
}

.report-flow span {
  min-height: 62px;
  display: grid;
  place-items: center;
  padding: 14px;
  background: var(--violet-900);
  font-weight: 900;
  text-align: center;
}

.report-flow span:nth-child(2) {
  background: var(--violet-800);
}

.report-flow span:nth-child(3) {
  background: var(--violet-700);
}

.report-flow span:nth-child(4) {
  color: var(--violet-950);
  background: linear-gradient(135deg, var(--pink-300), #ffffff);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.68);
  background: var(--violet-950);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 4, 26, 0.7);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 26px;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  font-size: 30px;
}

.icon-button {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--violet-800);
  background: #f2e7f8;
  border: 0;
  border-radius: 8px;
  font-size: 26px;
  line-height: 1;
}

.order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 14px 16px;
  background: #fff3fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-summary strong {
  color: var(--pink-500);
  font-size: 26px;
}

.qr-shell {
  display: grid;
  place-items: center;
  min-height: 298px;
  margin: 18px 0 10px;
  background:
    linear-gradient(90deg, rgba(106, 44, 130, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(106, 44, 130, 0.08) 1px, transparent 1px),
    #fff;
  background-size: 20px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qr-shell img {
  width: min(280px, 100%);
  height: auto;
  border-radius: 8px;
}

.loading-text,
.pay-status {
  color: var(--muted);
  text-align: center;
}

.pay-status.success {
  color: #0f9b5f;
  font-weight: 900;
}

.pay-status.error {
  color: #bf215c;
  font-weight: 900;
}

@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }

  .hero-grid,
  .experience-layout,
  .safety-wrap {
    grid-template-columns: 1fr;
  }

  .safety-copy {
    position: static;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-visual {
    width: 100%;
  }

  .signal-panel {
    right: calc(50% - 170px);
  }

  .feature-grid,
  .product-grid,
  .safety-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
    padding-inline: 16px;
  }

  .brand {
    min-width: auto;
    font-size: 19px;
  }

  .nav-action {
    min-width: 76px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
    padding-bottom: 26px;
  }

  .hero-grid {
    gap: 20px;
  }

  .hero-actions {
    margin-bottom: 20px;
  }

  .quick-strip,
  .feature-grid,
  .product-grid,
  .safety-stack,
  .mini-list {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-metrics span {
    min-height: 56px;
    padding: 10px;
    font-size: 12px;
  }

  .hero-metrics strong {
    font-size: 22px;
  }

  .quick-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strip-item {
    min-height: 58px;
  }

  .phone-shell {
    width: min(44vw, 170px);
    max-height: 238px;
    overflow: hidden;
  }

  .signal-panel {
    display: none;
  }

  .section {
    padding-block: 58px;
  }

  .scene-board {
    min-height: 360px;
    padding: 18px;
  }

  .product-card {
    min-height: 216px;
  }

  .safety-card.is-primary {
    grid-row: auto;
    min-height: 240px;
  }

  .report-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-panel {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .site-header {
    justify-content: center;
  }

  .nav-action {
    display: none;
  }

  h1 {
    font-size: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
