/* =========================================================
   BEGONIA 预售意向登记 — styles
   ========================================================= */
:root {
  --navy-950: #08111e;
  --navy-900: #0b1524;
  --navy-800: #0f1d31;
  --navy-700: #16273f;
  --navy-600: #1f3352;
  --gold-100: #f1e3c4;
  --gold-300: #e2c995;
  --gold-500: #d2b47c;
  --gold-700: #b08b52;
  --gold-line: rgba(210, 180, 124, 0.28);
  --cream: #f4ede1;
  --cream-2: #fbf8f2;
  --paper: #fffdf9;
  --ink: #16223a;
  --ink-2: #4a5468;
  --muted: #8a93a5;
  --line: #e7dfd1;
  --rose: #c8343a;
  --ok: #2f7a55;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-serif-zh: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-heading: var(--font-serif-zh);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --gutter: 20px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
[hidden] { display: none !important; }
html[data-lang="en"] { --font-heading: var(--font-display); }
html.i18n-pending body { opacity: 0; }
body.is-locked { overflow: hidden; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--gold-500);
  text-transform: uppercase;
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) 14px;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.topbar.is-solid {
  background: rgba(11, 21, 36, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gold-line);
  padding-top: calc(env(safe-area-inset-top, 0px) + 10px); padding-bottom: 10px;
}
.topbar-call {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--gold-line);
  background: rgba(11, 21, 36, 0.35);
  font-size: 13px; letter-spacing: .04em; text-decoration: none; color: var(--gold-100);
}
.topbar-call svg { font-size: 15px; color: var(--gold-500); }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--gold-line); background: rgba(11, 21, 36, 0.35);
  font-size: 13px; letter-spacing: .06em; color: var(--gold-100);
}
.lang-toggle svg { font-size: 15px; color: var(--gold-500); }
.lang-toggle:focus-visible, .topbar-call:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-bottom: 8px; }
.hero-media {
  position: relative;
  height: clamp(300px, 92vw, 560px);
  overflow: hidden;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 36% 50%;
  animation: heroZoom 18s ease-out both;
}
.hero-media::before, .hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero-media::before { background: linear-gradient(180deg, rgba(8,17,30,.55) 0%, rgba(8,17,30,0) 26%); }
.hero-media::after { background: linear-gradient(180deg, rgba(11,21,36,0) 45%, rgba(11,21,36,.75) 78%, var(--navy-900) 100%); }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero-body {
  position: relative; z-index: 2;
  margin-top: -58px;
  padding: 0 var(--gutter);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-body .eyebrow { margin-bottom: 14px; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.hero-logo { width: min(330px, 86vw); }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 4px 18px rgba(0,0,0,.45)); }
.hero-tag { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; text-wrap: balance; }
.hero-tag-main { font-family: var(--font-heading); font-size: 20px; letter-spacing: .2em; padding-left: .2em; color: var(--cream); }
.hero-tag-sub { margin-top: 2px; font-family: var(--font-serif-zh); font-size: 14px; letter-spacing: .1em; color: var(--gold-300); }
html[data-lang="en"] .hero-tag-main { font-size: 24px; letter-spacing: .01em; padding-left: 0; line-height: 1.2; }
html[data-lang="en"] .hero-tag-sub { font-family: var(--font-display); font-style: italic; font-size: 17px; letter-spacing: .01em; }

/* ---------- Countdown ---------- */
.countdown {
  width: 100%; max-width: 440px;
  margin-top: 26px; padding: 18px 16px 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(31,51,82,.75), rgba(15,29,49,.85));
  border: 1px solid var(--gold-line);
  box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05);
}
.countdown-head {
  display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.countdown-head svg { font-size: 17px; color: var(--gold-500); align-self: center; }
.countdown-title { font-family: var(--font-heading); font-weight: 700; font-size: 18px; letter-spacing: .1em; color: var(--gold-100); }
html[data-lang="en"] .countdown-title { font-weight: 600; font-size: 21px; letter-spacing: .02em; }
.countdown-sub { margin-top: 4px; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.countdown-grid {
  margin-top: 14px;
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: start; gap: 4px;
}
.cd-cell {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.cd-num {
  display: block; width: 100%;
  padding: 8px 0 6px;
  border-radius: 10px;
  background: var(--navy-950);
  border: 1px solid rgba(210,180,124,.18);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 9vw, 42px); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  color: var(--cream);
  text-align: center;
}
.cd-num.tick { animation: tick .45s ease; }
@keyframes tick { 0% { color: var(--gold-300); transform: translateY(-2px); } 100% { color: var(--cream); transform: none; } }
.cd-lab { font-size: 10.5px; letter-spacing: .12em; color: var(--muted); white-space: nowrap; }
.cd-sep { font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--gold-700); padding-top: 10px; }

/* ---------- CTA button ---------- */
.btn-cta {
  position: relative; overflow: hidden;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; max-width: 440px; min-height: 68px;
  margin-top: 18px; padding: 10px 24px;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #f0dcae 0%, var(--gold-500) 45%, var(--gold-700) 100%);
  color: #1a2236;
  box-shadow: 0 14px 34px rgba(210,180,124,.32), inset 0 1px 0 rgba(255,255,255,.55);
  transition: transform .15s ease, box-shadow .2s ease;
  animation: ctaGlow 2.8s ease-in-out infinite;
}
.btn-cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  animation: shimmer 3.6s ease-in-out infinite;
}
.btn-cta:hover { transform: translateY(-1px); }
.btn-cta:active { transform: scale(.98); }
.btn-cta:focus-visible { outline: 2px solid var(--gold-100); outline-offset: 3px; }
.btn-cta-main { font-family: var(--font-heading); font-weight: 700; font-size: 22px; letter-spacing: .28em; padding-left: .28em; line-height: 1.25; }
.btn-cta-sub { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; letter-spacing: .16em; opacity: .78; }
.btn-cta-sub svg { font-size: 14px; stroke-width: 2; }
html[data-lang="en"] .btn-cta-main { font-weight: 600; font-size: 25px; letter-spacing: .04em; padding-left: 0; }
html[data-lang="en"] .btn-cta-sub { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.btn-cta--wide { margin-top: 26px; }
.btn-cta--sm { width: auto; min-height: 46px; margin: 0; padding: 0 22px; flex: none; animation: none; }
.btn-cta--sm .btn-cta-main { font-size: 16px; letter-spacing: .16em; padding-left: .16em; }
html[data-lang="en"] .btn-cta--sm .btn-cta-main { font-size: 19px; letter-spacing: .02em; padding-left: 0; }
@keyframes shimmer { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes ctaGlow { 0%, 100% { box-shadow: 0 14px 34px rgba(210,180,124,.28), inset 0 1px 0 rgba(255,255,255,.55); } 50% { box-shadow: 0 14px 44px rgba(210,180,124,.5), inset 0 1px 0 rgba(255,255,255,.55); } }
.cta-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section-head { text-align: center; padding: 0 var(--gutter); }
.section-head h2 { margin-top: 8px; font-family: var(--font-heading); font-size: 24px; letter-spacing: .12em; color: var(--cream); }
html[data-lang="en"] .section-head h2 { font-size: 31px; letter-spacing: .01em; line-height: 1.2; }
.section-sub { margin-top: 6px; font-size: 13px; color: var(--muted); letter-spacing: .08em; }

/* ---------- Gallery marquee ---------- */
.gallery { padding: 56px 0 8px; }
.marquee {
  margin-top: 24px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.marquee::-webkit-scrollbar { display: none; }
.marquee-track { list-style: none; margin: 0; padding: 4px 0 4px var(--gutter); display: flex; gap: 12px; width: max-content; }
.marquee-item { flex: none; }
.marquee-card {
  position: relative; display: block;
  width: clamp(200px, 56vw, 280px); aspect-ratio: 3 / 2;
  padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  background: var(--navy-700);
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
}
.marquee-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.marquee-card:hover img { transform: scale(1.04); }
.marquee-card:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.marquee-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 12px 9px;
  background: linear-gradient(180deg, transparent, rgba(8,17,30,.85));
  display: flex; flex-direction: column; gap: 0; text-align: left; line-height: 1.3;
}
.marquee-cap b { font-weight: 600; font-size: 14px; color: #fff; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-lang="en"] .marquee-cap b { letter-spacing: .02em; }
.gallery-hint { margin-top: 12px; text-align: center; font-size: 12px; color: var(--muted); letter-spacing: .1em; }

/* ---------- Steps ---------- */
.steps { padding: 56px var(--gutter) 64px; display: flex; flex-direction: column; align-items: center; }
.steps-list { list-style: none; margin: 26px 0 0; padding: 0; width: 100%; max-width: 440px; display: grid; gap: 10px; }
.steps-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(22,39,63,.6);
  border: 1px solid rgba(210,180,124,.14);
}
.steps-num { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1; color: var(--gold-500); font-feature-settings: "lnum" 1; min-width: 36px; }
.steps-list h3 { font-size: 16px; letter-spacing: .06em; color: var(--cream); }
.steps-list p { font-size: 13px; color: var(--muted); }
.steps-note { margin-top: 16px; max-width: 440px; font-size: 12.5px; line-height: 1.7; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.footer {
  padding: 44px var(--gutter) calc(110px + var(--safe-b));
  border-top: 1px solid rgba(210,180,124,.14);
  background: var(--navy-950);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.footer-logo { width: 220px; height: auto; }
.footer-date { margin-top: 16px; font-family: var(--font-display); font-size: 18px; letter-spacing: .3em; color: var(--cream); }
.footer-contact {
  width: 100%; max-width: 440px;
  margin: 14px 0 0; padding-top: 18px;
  border-top: 1px solid rgba(200,52,58,.6);
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px;
}
.fc-row { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.fc-row--half { grid-column: auto; }
.footer-contact dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.footer-contact dd { margin: 0; max-width: 100%; font-size: 14px; letter-spacing: .03em; color: var(--cream); overflow-wrap: anywhere; }
.footer-contact a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--gold-300); }
.footer-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-contact svg { font-size: 15px; color: var(--gold-500); }
.fc-agent { font-family: var(--font-display); font-size: 18px !important; font-weight: 600; letter-spacing: .24em !important; text-transform: uppercase; }
@media (max-width: 380px) { .fc-row--half { grid-column: 1 / -1; } }
.footer-legal { margin-top: 28px; max-width: 420px; font-size: 11px; line-height: 1.7; color: #5f6a7e; }

/* ---------- Sticky bar ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + var(--safe-b));
  background: rgba(8,17,30,.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--gold-line);
  transform: translateY(110%);
  transition: transform .35s ease;
}
.stickybar.is-visible { transform: none; }
.stickybar-time { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.stickybar-label { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.stickybar-clock { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--gold-100); font-feature-settings: "lnum" 1, "tnum" 1; white-space: nowrap; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,10,18,.96);
  animation: fadeIn .25s ease;
}
.lb-figure { margin: 0; width: 100%; max-width: 1200px; padding: 0 0 20px; }
.lb-figure img { width: 100%; max-height: 76vh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-figure figcaption { display: flex; align-items: baseline; gap: 10px; padding: 14px var(--gutter) 0; }
#lb-cap { font-size: 16px; letter-spacing: .06em; color: #fff; }
.lb-count { margin-left: auto; font-family: var(--font-display); font-size: 15px; color: var(--muted); font-feature-settings: "lnum" 1; }
.lb-btn {
  position: absolute; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
  font-size: 22px; color: #fff;
}
.lb-close { top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Registration sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5,10,18,.6); animation: fadeIn .25s ease; }
.sheet-panel {
  position: relative;
  width: 100%; height: 100%; max-height: 100%;
  display: flex; flex-direction: column;
  background: var(--cream-2); color: var(--ink);
  animation: sheetUp .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-head {
  display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) 12px;
  background: var(--navy-900); color: var(--cream);
}
.sheet-rose { width: 38px; height: 38px; }
.sheet-titles { flex: 1; min-width: 0; }
.sheet-titles h2 { font-family: var(--font-heading); font-size: 18px; letter-spacing: .14em; }
html[data-lang="en"] .sheet-titles h2 { font-size: 22px; letter-spacing: .01em; line-height: 1.2; }
.sheet-titles p { font-family: var(--font-display); font-size: 13px; letter-spacing: .12em; color: var(--gold-500); text-transform: uppercase; }
.sheet-close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); background: transparent; font-size: 20px; color: var(--cream); }

.sheet-progress { padding: 14px var(--gutter) 6px; background: var(--cream-2); }
.sheet-progress-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.sheet-progress-bar span { display: block; height: 100%; width: 33%; border-radius: 4px; background: linear-gradient(90deg, var(--gold-500), var(--gold-700)); transition: width .35s ease; }
.sheet-progress-text { margin-top: 8px; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); letter-spacing: .06em; }
.sheet-progress-text #step-label { color: var(--gold-700); font-weight: 600; }

.sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px var(--gutter) 24px; overscroll-behavior: contain; }
.scroll-spacer { height: 0; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.step { display: none; }
.step.is-active { display: block; animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.q { margin: 0; padding: 16px 0 6px; border: 0; min-width: 0; }
.q + .q { border-top: 1px dashed var(--line); }
.q-label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; padding: 0; margin: 0 0 10px; width: 100%; }
legend.q-label { float: left; }
.q > legend + * { clear: both; }
.q-text { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: .04em; }
html[data-lang="en"] .q-text { letter-spacing: 0; }
.tag { margin-left: auto; padding: 1px 8px; border-radius: 999px; font-size: 11px; letter-spacing: .06em; color: var(--muted); background: #f0ebe1; }
.tag-req { color: #8a5a1c; background: #f6ead2; }
.q-hint { margin: -4px 0 10px; font-size: 12.5px; color: var(--muted); }

.field {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field::placeholder { color: #a9afbb; }
.field:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(210,180,124,.25); }
.field-icon { position: relative; }
.field-icon + .field-icon { margin-top: 10px; }
.field-icon svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--gold-700); pointer-events: none; }
.field-icon .field { padding-left: 42px; }

.chips { display: grid; gap: 8px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chip { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 50px; padding: 8px 6px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper);
  font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.3;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .1s;
}
.chip:active span { transform: scale(.97); }
.chip input:checked + span {
  border-color: var(--gold-700);
  background: linear-gradient(180deg, #fbf3e2, #f5e6c8);
  box-shadow: 0 0 0 1px var(--gold-700) inset, 0 4px 12px rgba(176,139,82,.18);
  color: #3d2c12;
}
.chip input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 2px; }

.reveal { margin-top: 10px; display: grid; gap: 10px; animation: stepIn .25s ease; }
fieldset.reveal { display: block; margin-top: 0; }

.q-err { display: none; margin-top: 8px; font-size: 12.5px; color: var(--rose); }
.q.has-error .q-err { display: block; }
.q.has-error .field, .q.has-error .chip span { border-color: rgba(200,52,58,.55); }
.q.has-error { animation: shake .35s ease; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider + .q { border-top: 0; }

/* 上传批复函 / 资金证明 */
.upload { margin-top: 12px; }
.upload-drop {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 16px 12px;
  border: 1.5px dashed #d6c39b; border-radius: 12px;
  background: #fffaf0; text-align: center; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.upload-drop:hover { background: #fdf3df; border-color: var(--gold-700); }
.upload-drop:focus-within { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.upload-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-drop svg { margin-bottom: 4px; font-size: 24px; color: var(--gold-700); }
.upload-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.upload-hint { font-size: 12px; color: var(--muted); }
.upload-err { font-size: 12.5px; color: var(--rose); }
.upload-title .tag { margin-left: 6px; vertical-align: 2px; }
.upload-required { display: none; font-size: 12.5px; color: var(--rose); }
.upload.has-error .upload-required { display: block; }
.upload.has-error .upload-drop { border-color: var(--rose); background: #fdf3f3; animation: shake .35s ease; }
.upload-note { font-size: 12px; color: var(--muted); }
.upload-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.upload-list:empty { display: none; }
.up-item { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.up-thumb {
  flex: none; width: 48px; height: 48px; border-radius: 8px; overflow: hidden;
  display: grid; place-items: center;
  background: #f3ece0; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #a0522d;
}
.up-thumb img { width: 100%; height: 100%; object-fit: cover; }
.up-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.up-name { max-width: 100%; font-size: 13.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-status { padding: 0; border: 0; background: none; font-size: 12px; color: var(--muted); text-align: left; }
.up-status:disabled { cursor: default; }
.up-item.is-done .up-status { color: var(--ok); }
.up-item.is-error .up-status { color: var(--rose); }
.up-item.is-error .up-status:not(:disabled) { text-decoration: underline; text-underline-offset: 2px; }
.up-bar { width: 100%; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.up-bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--gold-500), var(--gold-700)); transition: width .2s; }
.up-item.is-done .up-bar, .up-item.is-error .up-bar { display: none; }
.up-remove { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; font-size: 16px; color: var(--muted); }
.up-remove:hover { background: #f0ebe1; color: var(--ink); }

.form-error { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fbe9e9; color: #8e2329; font-size: 13.5px; }
.form-error a { color: inherit; font-weight: 600; }

.sheet-foot {
  display: flex; gap: 10px;
  padding: 12px var(--gutter) calc(12px + var(--safe-b));
  background: var(--cream-2);
  border-top: 1px solid var(--line);
}
.btn-ghost, .btn-gold {
  min-height: 52px; border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: .1em;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-ghost { flex: 0 0 34%; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); }
.btn-gold {
  flex: 1; border: 0; color: #1a2236;
  background: linear-gradient(135deg, #f0dcae 0%, var(--gold-500) 45%, var(--gold-700) 100%);
  box-shadow: 0 8px 20px rgba(176,139,82,.3);
}
.btn-gold svg { font-size: 17px; stroke-width: 2; }
.btn-gold:disabled { opacity: .7; cursor: progress; }
.btn-gold.is-loading svg { display: none; }
.btn-gold.is-loading::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(26,34,54,.3); border-top-color: #1a2236; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.step-done { text-align: center; padding: 40px 6px 20px; }
.step-done.is-active { display: flex; flex-direction: column; align-items: center; }
.done-mark {
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #f0dcae, var(--gold-700));
  color: #1a2236; font-size: 38px;
  box-shadow: 0 12px 30px rgba(176,139,82,.35);
  animation: pop .5s cubic-bezier(.2,1.4,.4,1);
}
.done-mark svg { stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.step-done h3 { margin-top: 22px; font-family: var(--font-heading); font-size: 26px; letter-spacing: .2em; padding-left: .2em; color: var(--ink); }
.done-sub { margin-top: 2px; font-size: 14.5px; letter-spacing: .1em; color: var(--gold-700); }
html[data-lang="en"] .step-done h3 { font-size: 32px; letter-spacing: .02em; padding-left: 0; }
html[data-lang="en"] .done-sub { font-family: var(--font-display); font-style: italic; font-size: 18px; letter-spacing: .01em; }
.done-text { margin-top: 16px; max-width: 320px; font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.done-text a { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--gold-700); text-decoration: none; letter-spacing: .06em; }
.done-text a.done-email { font-family: var(--font-sans); font-weight: 500; font-size: 14.5px; letter-spacing: 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero-media { height: min(78vh, 720px); }
  .hero-media img { object-position: 50% 55%; }
  .hero-body { margin-top: -64px; }
  .hero-logo { width: 440px; }
  .hero-tag-main { font-size: 22px; }
  .hero-tag-sub { font-size: 15px; }
  html[data-lang="en"] .hero-tag-main { font-size: 28px; }
  html[data-lang="en"] .hero-tag-sub { font-size: 19px; }
  .countdown { max-width: 520px; padding: 22px 26px 20px; }
  .btn-cta { max-width: 520px; min-height: 74px; }
  .marquee-card { width: 320px; }
  .marquee-track { padding-left: 32px; gap: 16px; }
  .steps-list { max-width: 820px; grid-template-columns: repeat(3, 1fr); }
  .steps-list li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; }
  .steps-note { max-width: 620px; }
  .footer { padding-bottom: 120px; }

  .sheet { align-items: center; padding: 24px; }
  .sheet-panel { width: 560px; height: auto; max-height: min(860px, 92vh); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
  .sheet-head { padding-top: 16px; }
  .sheet-body { padding: 8px 28px 24px; }
  .sheet-progress, .sheet-foot { padding-left: 28px; padding-right: 28px; }
  .sheet-foot { padding-bottom: 16px; }

  .lb-prev { left: 24px; } .lb-next { right: 24px; }
  .lb-btn { width: 52px; height: 52px; }
}
@media (min-width: 1000px) {
  .hero {
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(400px, 1fr);
    gap: 56px; align-items: center;
    max-width: 1480px; min-height: 100vh; margin: 0 auto;
    padding: 96px 48px 48px;
  }
  .hero-media {
    height: min(calc(100vh - 150px), 780px); min-height: 520px;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(210,180,124,.16);
  }
  .hero-media img { object-position: 42% 50%; }
  .hero-media::before { background: linear-gradient(180deg, rgba(8,17,30,.25), rgba(8,17,30,0) 30%); }
  .hero-media::after { background: linear-gradient(180deg, rgba(11,21,36,0) 70%, rgba(11,21,36,.35) 100%); }
  .hero-body { margin-top: 0; }
  .hero-logo { width: 420px; }
  .countdown, .btn-cta { max-width: 460px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .btn-cta::after { display: none; }
}
