:root {
  color-scheme: light;
  --bg: #f7f3ef;
  --ink: #17131f;
  --muted: #736b7e;
  --line: rgba(29, 20, 38, 0.12);
  --panel: rgba(255, 255, 255, 0.82);
  --primary: #6d43ed;
  --primary-dark: #4c26c5;
  --rose: #ff759d;
  --mint: #55cda6;
  --shadow: 0 28px 80px rgba(60, 38, 94, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 6%, rgba(255, 180, 205, 0.46), transparent 28%),
    radial-gradient(circle at 96% 4%, rgba(195, 181, 255, 0.5), transparent 31%),
    linear-gradient(145deg, #fffaf6 0%, var(--bg) 48%, #f0ecff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
button, input { font: inherit; }
a { color: inherit; }
button, label, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 20;
  width: min(1240px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; }
.brand img { border-radius: 13px; box-shadow: 0 8px 20px rgba(75, 36, 206, 0.15); }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a { color: #4d4658; font-size: 14px; font-weight: 750; text-decoration: none; }
.site-header nav a:hover { color: var(--primary); }
.site-header .nav-download {
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

main { overflow: hidden; }
.hero {
  width: min(1240px, calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  padding: 58px 20px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(42px, 6vw, 90px);
}
.eyebrow {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.eyebrow span { width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--rose)); }
.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}
.hero h1 em {
  display: inline-block;
  margin-top: 6px;
  background: linear-gradient(100deg, var(--primary-dark), var(--primary) 48%, var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}
.intro {
  max-width: 650px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), #9b50f4 56%, var(--rose));
  box-shadow: 0 16px 34px rgba(109, 67, 237, 0.25);
}
.button--ghost { color: #403649; border: 1px solid var(--line); background: rgba(255,255,255,.7); }
.trust-list { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 24px 0 0; padding: 0; list-style: none; }
.trust-list li { position: relative; padding-left: 17px; color: #655d70; font-size: 13px; font-weight: 700; }
.trust-list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(85, 205, 166, .13); }

.hero__visual { display: grid; place-items: center; }
.showcase { position: relative; width: min(408px, 100%); aspect-ratio: .82; }
.video-card {
  position: absolute;
  inset: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 42px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-video { width: 100%; height: 100%; display: block; border-radius: 33px; object-fit: cover; background: #eee8f4; }
.video-shade { position: absolute; inset: 10px; border-radius: 33px; pointer-events: none; background: linear-gradient(180deg, transparent 48%, rgba(18,13,27,.56)); }
.video-caption {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 29px;
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  color: white;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  background: rgba(20,15,29,.28);
  backdrop-filter: blur(14px);
}
.video-caption span { font-size: 10px; font-weight: 900; letter-spacing: .15em; opacity: .8; }
.video-caption strong { font-size: 17px; }
.floating-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 15px 36px rgba(42,25,70,.16);
  color: #51485d;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}
.floating-note b { color: var(--primary); font-size: 25px; }
.floating-note i { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(85,205,166,.16); }
.floating-note--top { top: 12%; left: -48px; }
.floating-note--bottom { right: -38px; bottom: 18%; }

.workbench, .result-panel {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 72px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 38px;
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2, .result-copy h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; }
.section-heading p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); }
.quota-badge { display: flex; align-items: center; gap: 9px; padding: 12px 16px; border: 1px solid rgba(109,67,237,.14); border-radius: 999px; background: #f4efff; color: var(--primary-dark); white-space: nowrap; }
.quota-badge strong { font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(85,205,166,.14); }

.try-form { display: grid; grid-template-columns: minmax(210px,.78fr) minmax(210px,.78fr) minmax(310px,1.2fr); gap: 18px; align-items: stretch; }
.upload-column { min-width: 0; }
.upload-card { position: relative; min-height: 410px; display: grid; place-items: center; overflow: hidden; border: 1.5px dashed rgba(109,67,237,.25); border-radius: 28px; background: linear-gradient(145deg,#fbf9ff,#f3effc); cursor: pointer; transition: border 180ms ease, transform 180ms ease, background 180ms ease; }
.upload-card:hover { border-color: var(--primary); transform: translateY(-2px); background: #f6f1ff; }
.upload-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.upload-placeholder { display: flex; max-width: 220px; flex-direction: column; align-items: center; padding: 24px; text-align: center; }
.upload-icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 18px; border-radius: 15px; color: white; background: var(--primary); font-size: 13px; font-weight: 900; box-shadow: 0 12px 25px rgba(109,67,237,.22); }
.upload-placeholder strong { font-size: 17px; }
.upload-placeholder small { margin-top: 8px; color: var(--muted); line-height: 1.55; }
.upload-placeholder b { margin-top: 20px; padding: 9px 15px; border-radius: 999px; color: var(--primary); background: white; font-size: 12px; box-shadow: 0 7px 20px rgba(70,40,110,.09); }
.replace-button { width: 100%; margin-top: 8px; padding: 8px; border: 0; background: transparent; color: var(--primary); cursor: pointer; font-weight: 800; }
.control-panel { min-width: 0; margin: 0; padding: 23px; border: 1px solid var(--line); border-radius: 28px; background: rgba(250,248,252,.8); }
.control-group + .control-group { margin-top: 22px; }
.control-label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 900; }
.segmented { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.segmented input, .quality-option input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: grid; min-height: 42px; place-items: center; padding: 7px 9px; border: 1px solid transparent; border-radius: 13px; background: white; color: #6a6175; text-align: center; font-size: 12px; font-weight: 800; cursor: pointer; }
.segmented input:checked + span { border-color: rgba(109,67,237,.35); background: #eee7ff; color: var(--primary-dark); }
.quality-grid { display: grid; gap: 8px; }
.quality-option { position: relative; }
.quality-option > span { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid transparent; border-radius: 15px; background: white; cursor: pointer; }
.quality-option b { font-size: 13px; }
.quality-option small { color: var(--muted); line-height: 1.45; }
.quality-option input:checked + span { border-color: rgba(109,67,237,.35); background: #f0eaff; }
.agreement-check { display: flex; gap: 9px; align-items: flex-start; margin-top: 20px; color: #6c6376; font-size: 11px; line-height: 1.55; }
.agreement-check input { margin: 2px 0 0; accent-color: var(--primary); }
.agreement-check a { color: var(--primary-dark); font-weight: 800; }
.form-error { margin: 12px 0 0; padding: 9px 11px; color: #a62a4e; border-radius: 11px; background: #fff0f4; font-size: 12px; line-height: 1.5; }
.generate-button { width: 100%; min-height: 64px; display: grid; gap: 2px; place-items: center; margin-top: 14px; padding: 10px 16px; border: 0; border-radius: 19px; color: white; background: linear-gradient(135deg,var(--primary),#9c51f4 58%,var(--rose)); cursor: pointer; box-shadow: 0 15px 30px rgba(109,67,237,.23); }
.generate-button span { font-weight: 900; }
.generate-button small { opacity: .78; font-size: 10px; }
.generate-button:disabled { cursor: wait; opacity: .65; }
.privacy-note { margin: 11px 0 0; color: #8b8393; font-size: 10px; line-height: 1.5; text-align: center; }

.result-panel { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(300px,1fr); gap: clamp(28px,5vw,70px); align-items: center; }
.result-media { min-height: 440px; overflow: hidden; border-radius: 28px; background: #eee9f2; }
.result-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.result-copy > p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.7; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.footer { width: min(1200px, calc(100% - 40px)); display: grid; grid-template-columns: 1.25fr .8fr .9fr 1fr; gap: 24px; margin: 0 auto 28px; padding: 25px 28px; border: 1px solid var(--line); border-radius: 28px; background: rgba(255,255,255,.6); backdrop-filter: blur(18px); }
.footer-brand { display: flex; gap: 11px; align-items: center; }
.footer img { border-radius: 12px; }
.footer strong { display: block; margin-bottom: 6px; font-size: 13px; }
.footer p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.footer a { color: var(--primary-dark); text-decoration: none; font-weight: 750; }

dialog {
  width: min(500px, calc(100% - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  padding: 0;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 100px rgba(25,15,42,.28);
}
dialog::backdrop { background: rgba(22,15,31,.48); backdrop-filter: blur(8px); }
.dialog-shell { padding: 28px; }
.dialog-icon { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 16px; border-radius: 19px; color: white; background: linear-gradient(135deg,var(--primary),var(--rose)); font-size: 20px; font-weight: 900; }
.dialog-shell h2 { margin: 0; text-align: center; font-size: 25px; }
.dialog-lead { margin: 11px 0 0; color: var(--muted); line-height: 1.65; text-align: center; }
.dialog-reward { display: flex; justify-content: center; gap: 10px; margin: 18px 0; padding: 13px; border-radius: 16px; background: #f3eeff; color: var(--primary-dark); font-weight: 900; }
.dialog-actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.dialog-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 18px 0; padding: 5px; border-radius: 14px; background: #f3f0f6; }
.dialog-tabs button { padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 800; }
.dialog-tabs button[aria-selected="true"] { color: var(--primary-dark); background: white; box-shadow: 0 5px 15px rgba(50,30,80,.08); }
.auth-form { display: grid; gap: 11px; }
.auth-form label { display: grid; gap: 6px; color: #554c60; font-size: 12px; font-weight: 800; }
.auth-form input { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 14px; outline: 0; background: #faf9fb; }
.auth-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109,67,237,.1); }
.sms-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.sms-row button { padding: 0 13px; border: 1px solid rgba(109,67,237,.18); border-radius: 13px; color: var(--primary); background: #f2edff; cursor: pointer; font-weight: 800; }
.auth-submit { min-height: 50px; border: 0; border-radius: 15px; color: white; background: var(--primary); cursor: pointer; font-weight: 900; }
.auth-switch, .wechat-disabled { border: 0; background: transparent; color: var(--primary); cursor: pointer; font-weight: 800; }
.wechat-disabled { width: 100%; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; color: #8a8390; cursor: not-allowed; }

.recharge-view { position: fixed; z-index: 80; inset: 0; overflow: auto; padding: 30px 20px; background: linear-gradient(145deg,#fffaf6,#f0ecff); }
.recharge-card { width: min(820px,100%); margin: 0 auto; padding: 30px; border: 1px solid white; border-radius: 30px; background: rgba(255,255,255,.86); box-shadow: var(--shadow); }
.recharge-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.recharge-head h1 { margin: 0; font-size: 34px; }
.plain-button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: white; cursor: pointer; }
.plan-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 24px 0; }
.plan-option input, .pay-option input { position: absolute; opacity: 0; }
.plan-option span { display: grid; gap: 5px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; cursor: pointer; }
.plan-option b { font-size: 22px; color: var(--primary); }
.plan-option input:checked + span, .pay-option input:checked + span { border-color: var(--primary); background: #f2edff; box-shadow: 0 0 0 3px rgba(109,67,237,.08); }
.custom-amount { display: grid; gap: 7px; margin-bottom: 18px; }
.custom-amount input { padding: 13px; border: 1px solid var(--line); border-radius: 14px; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-option span { display: grid; place-items: center; min-height: 50px; border: 1px solid var(--line); border-radius: 14px; background: white; cursor: pointer; font-weight: 800; }
.order-message { margin-top: 16px; padding: 13px; border-radius: 14px; color: #5d5367; background: #f4f0f6; }

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 40px; }
  .hero__copy { max-width: 780px; }
  .showcase { width: min(380px, 88vw); }
  .try-form { grid-template-columns: 1fr 1fr; }
  .control-panel { grid-column: 1 / -1; }
  .footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .site-header { width: calc(100% - 28px); height: 66px; }
  .brand span { font-size: 14px; }
  .site-header nav a:not(.nav-download) { display: none; }
  .site-header .nav-download { padding: 8px 13px; font-size: 12px; }
  .hero { width: calc(100% - 28px); padding: 32px 0 62px; }
  .hero h1 { font-size: clamp(32px, 9.5vw, 46px); line-height: 1.18; }
  .intro { font-size: 15px; }
  .hero-actions .button { width: 100%; }
  .floating-note--top { left: -8px; }
  .floating-note--bottom { right: -8px; }
  .workbench, .result-panel { width: calc(100% - 24px); margin-bottom: 44px; padding: 20px; border-radius: 28px; }
  .section-heading { display: grid; align-items: start; }
  .quota-badge { width: fit-content; }
  .try-form { grid-template-columns: 1fr; }
  .control-panel { grid-column: auto; }
  .upload-card { min-height: 330px; }
  .result-panel { grid-template-columns: 1fr; }
  .result-media { min-height: 390px; }
  .footer { width: calc(100% - 24px); grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  dialog { width: 100%; max-width: none; max-height: 88vh; margin: auto 0 0; border-radius: 28px 28px 0 0; }
}

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