/* =========================================================
   Soul Connect · 墨尔本 · 华语心境空间
   Shared design system
   ========================================================= */

:root {
  /* palette */
  --bg: #fdf6f3;
  --bg-soft: #ffffff;
  --bg-tint: #fff1ec;
  --ink: #3a2e3f;
  --ink-soft: #7c6a78;
  --ink-faint: #a99aa4;

  --rose: #ff6f91;
  --rose-deep: #ef4f78;
  --coral: #ff9a76;
  --lav: #b287d8;
  --lav-deep: #8a5fc7;
  --gold: #f3b95f;
  --mint: #54c8a8;

  --line: rgba(58, 46, 63, 0.10);
  --line-soft: rgba(58, 46, 63, 0.06);

  --grad: linear-gradient(125deg, #ff9a8b 0%, #ff6f91 48%, #b287d8 100%);
  --grad-soft: linear-gradient(125deg, #ffe9e3 0%, #ffe4ec 50%, #efe6fb 100%);

  --shadow-sm: 0 2px 10px rgba(120, 60, 90, 0.06);
  --shadow: 0 14px 40px rgba(120, 60, 90, 0.12);
  --shadow-lg: 0 24px 70px rgba(120, 60, 90, 0.18);

  --radius: 18px;
  --radius-lg: 26px;
  --radius-sm: 12px;

  --container: 1120px;
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", Georgia, serif;
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

::selection { background: rgba(255, 111, 145, 0.25); }

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--rose-deep);
  background: var(--bg-tint);
  border: 1px solid rgba(239, 79, 120, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 14px;
}
.section-lead {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 620px;
}
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 246, 243, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-size: 20px;
  border-radius: 13px;
  background: var(--grad);
  box-shadow: var(--shadow-sm);
}
.brand-text {
  display: flex; flex-direction: column;
  font-weight: 800; font-size: 18px; letter-spacing: -.01em;
}
.brand-text small {
  font-weight: 500; font-size: 11.5px; letter-spacing: .04em;
  color: var(--ink-soft);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) {
  font-weight: 500; color: var(--ink-soft);
  transition: color .2s;
}
.nav-links a:not(.btn):hover,
.nav-links a.active { color: var(--ink); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  width: 42px; height: 42px; border-radius: 12px;
  font-size: 18px; cursor: pointer; color: var(--ink);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 600; font-size: 15.5px;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  color: #fff; background: var(--grad);
  box-shadow: 0 10px 26px rgba(239, 79, 120, 0.32);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(239, 79, 120, 0.42); transform: translateY(-1px); }
.btn-ghost {
  background: var(--bg-soft); color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose-deep); }
.btn-light {
  background: rgba(255,255,255,.9); color: var(--rose-deep);
}
.btn-light:hover { background:#fff; transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(125deg, #ffe9e3 0%, #ffe4ec 48%, #efe6fb 100%);
  background-size: 200% 200%;
  animation: hero-pan 20s ease-in-out infinite;
  padding: 76px 0 96px;
}
@keyframes hero-pan {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 50% at 85% 10%, rgba(178,135,216,.30), transparent 60%),
              radial-gradient(50% 50% at 10% 90%, rgba(255,154,118,.28), transparent 60%);
  pointer-events: none;
  animation: glow-breathe 9s ease-in-out infinite;
}
@keyframes glow-breathe { 0%,100% { opacity:.8; } 50% { opacity:1; } }

/* soft moving color blobs */
.hero-bg { position:absolute; inset:0; z-index:0; pointer-events:none; }
.hero-bg .blob { position:absolute; border-radius:50%; filter: blur(42px); opacity:.5; }
.blob-1 { width:300px; height:300px; left:-70px;  top:-60px;
  background: radial-gradient(circle, rgba(255,154,118,.9), transparent 70%);
  animation: blob-move 17s ease-in-out infinite; }
.blob-2 { width:360px; height:360px; right:-90px; top:18%;
  background: radial-gradient(circle, rgba(178,135,216,.85), transparent 70%);
  animation: blob-move 22s ease-in-out infinite reverse; }
.blob-3 { width:280px; height:280px; left:32%;  bottom:-120px;
  background: radial-gradient(circle, rgba(255,111,145,.8), transparent 70%);
  animation: blob-move 19s ease-in-out infinite; }
@keyframes blob-move {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(36px,28px) scale(1.14); }
  66%     { transform: translate(-28px,18px) scale(.92); }
}

/* floating hearts & sparkles */
.hero-particles { position:absolute; inset:0; z-index:1; pointer-events:none; overflow:hidden; }
.particle {
  position:absolute; bottom:-6%;
  font-size: var(--size,18px); line-height:1; opacity:0;
  animation: rise var(--dur,12s) linear var(--delay,0s) infinite;
  will-change: transform, opacity;
}
@keyframes rise {
  0%   { transform: translate(0,0) rotate(0deg) scale(.5); opacity:0; }
  8%   { opacity: var(--op,.7); }
  90%  { opacity: var(--op,.7); }
  100% { transform: translate(var(--drift,20px), -94vh) rotate(220deg) scale(1); opacity:0; }
}

.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero h1 .grad-text {
  background: linear-gradient(120deg, #ff9a8b 0%, #ff6f91 35%, #b287d8 65%, #ff6f91 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer 6s linear infinite;
}
@keyframes text-shimmer { to { background-position: 220% 0; } }
.eyebrow .wave { display:inline-block; transform-origin:70% 80%; animation: wave 2.6s ease-in-out infinite; }
@keyframes wave {
  0%,100% { transform: rotate(0); }
  25%     { transform: rotate(-16deg); }
  50%     { transform: rotate(10deg); }
  75%     { transform: rotate(-6deg); }
}

.hero-lead { font-size: 18.5px; color: var(--ink-soft); max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-cta .btn-primary { animation: cta-glow 2.6s ease-in-out infinite; }
@keyframes cta-glow {
  0%,100% { box-shadow: 0 10px 26px rgba(239,79,120,.32); }
  50%     { box-shadow: 0 14px 32px rgba(239,79,120,.5), 0 0 0 7px rgba(255,111,145,.12); }
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; color: var(--ink-soft); font-size: 14.5px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

/* entrance reveal */
.reveal { opacity:0; transform: translateY(26px); animation: reveal-up .85s cubic-bezier(.22,1,.36,1) var(--d,0s) both; }
@keyframes reveal-up { to { opacity:1; transform: translateY(0); } }

/* button shine sweep */
.btn-shine { position:relative; overflow:hidden; }
.btn-shine::after {
  content:""; position:absolute; top:0; left:-130%;
  width:55%; height:100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-22deg);
  animation: btn-shine 3.6s ease-in-out infinite;
  pointer-events:none;
}
@keyframes btn-shine { 0%{left:-130%;} 22%{left:160%;} 100%{left:160%;} }

/* ---------- hero art: orb + fruit cluster ---------- */
.hero-art { position: relative; min-height: 440px; }
.parallax { transition: translate .3s cubic-bezier(.22,1,.36,1); will-change: translate; }

/* central glowing orb */
.orb-wrap {
  position:absolute; top:50%; left:50%;
  width:210px; height:210px; margin:-105px 0 0 -105px;
  opacity:0; animation: soft-in 1s ease .25s both;
}
.hero-orb {
  position:absolute; inset:0; border-radius:50%;
  background: var(--grad);
  display:grid; place-items:center;
  box-shadow: 0 22px 55px rgba(239,79,120,.42), inset 0 -10px 30px rgba(138,95,199,.35);
  animation: orb-breathe 5s ease-in-out infinite;
}
@keyframes orb-breathe { 0%,100%{transform:scale(1);} 50%{transform:scale(1.06);} }
.orb-emoji {
  font-size:60px; line-height:1;
  filter: drop-shadow(0 5px 12px rgba(120,30,60,.28));
  animation: heart-beat 1.7s ease-in-out infinite;
}
@keyframes heart-beat {
  0%,100% { transform: scale(1); }
  12%     { transform: scale(1.2); }
  24%     { transform: scale(1); }
  36%     { transform: scale(1.14); }
  50%     { transform: scale(1); }
}

/* expanding pulse rings */
.orb-ring {
  position:absolute; inset:0; border-radius:50%;
  border:2px solid rgba(255,111,145,.55);
  animation: ring-pulse 3.2s ease-out infinite;
}
.orb-ring:nth-of-type(2){ animation-delay:1.05s; }
.orb-ring:nth-of-type(3){ animation-delay:2.1s; }
@keyframes ring-pulse {
  0%   { transform:scale(.82); opacity:.75; }
  100% { transform:scale(1.85); opacity:0; }
}

/* orbiting mini hearts */
.orbit { position:absolute; inset:0; animation: orbit-spin 14s linear infinite; }
.orbit span {
  position:absolute; top:-16px; left:50%; margin-left:-11px;
  font-size:22px; line-height:1;
  filter: drop-shadow(0 3px 6px rgba(120,30,60,.18));
}
.orbit.o2 { inset:-30px; animation-duration:19s; animation-direction:reverse; }
.orbit.o2 span { font-size:18px; }
.orbit.o3 { inset:-14px; animation-duration:11s; animation-delay:-5s; }
.orbit.o3 span { font-size:16px; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* floating fruit cards */
.fruit-bubble {
  position:absolute; z-index:3;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: 20px; padding: 14px 18px;
  box-shadow: var(--shadow);
  display:flex; align-items:center; gap:12px;
  font-weight:600; font-size:15px;
  border:1px solid rgba(255,255,255,.7);
  scale:1;
  animation-name: float, soft-in;
  animation-duration: var(--fdur,6s), .9s;
  animation-timing-function: ease-in-out, ease;
  animation-iteration-count: infinite, 1;
  animation-fill-mode: none, both;
  animation-delay: var(--fd,0s), var(--sd,.4s);
  transition: scale .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.fruit-bubble:hover { scale:1.12; box-shadow: var(--shadow-lg); z-index:6; }
.fruit-bubble .emoji {
  font-size:30px; line-height:1; display:inline-block;
  animation: wiggle 3.2s ease-in-out infinite;
}
.fruit-bubble:hover .emoji { animation: jiggle .55s ease; }
.fruit-bubble small { display:block; font-weight:500; color:var(--ink-faint); font-size:12px; }
.fruit-bubble.b1 { top:3%;    left:0;     --fd:0s;   --sd:.4s;  --fdur:6s; }
.fruit-bubble.b2 { top:28%;   right:-6px; --fd:1.1s; --sd:.55s; --fdur:7.2s; }
.fruit-bubble.b3 { bottom:20%; left:-6px; --fd:1.9s; --sd:.7s;  --fdur:6.6s; }
.fruit-bubble.b4 { bottom:1%;  right:14%; --fd:2.7s; --sd:.85s; --fdur:7.6s; }
@keyframes float {
  0%,100% { transform: translateY(0) rotate(-1.2deg); }
  50%     { transform: translateY(-14px) rotate(1.5deg); }
}
@keyframes wiggle { 0%,100%{transform:rotate(-9deg);} 50%{transform:rotate(9deg);} }
@keyframes jiggle {
  0%,100% { transform: rotate(0) scale(1); }
  25%     { transform: rotate(-15deg) scale(1.18); }
  50%     { transform: rotate(12deg) scale(1.18); }
  75%     { transform: rotate(-7deg) scale(1.1); }
}
@keyframes soft-in { from{opacity:0;} to{opacity:1;} }

/* twinkling sparkles */
.spark {
  position:absolute; color:#fff; font-size:18px; opacity:0;
  text-shadow: 0 0 10px rgba(255,196,120,.9), 0 0 4px rgba(255,255,255,.8);
  animation: twinkle 2.6s ease-in-out infinite;
}
@keyframes twinkle {
  0%,100% { opacity:0; transform: scale(.4) rotate(0); }
  50%     { opacity:1; transform: scale(1.1) rotate(90deg); }
}
.spark.s1 { top:10%; right:26%; animation-delay:.2s; }
.spark.s2 { bottom:24%; left:16%; animation-delay:1s; }
.spark.s3 { top:48%; right:4%; animation-delay:1.9s; font-size:14px; }

/* respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero, .hero::after, .hero-bg .blob, .grad-text, .eyebrow .wave,
  .hero-cta .btn-primary, .btn-shine::after, .reveal,
  .orb-wrap, .hero-orb, .orb-emoji, .orb-ring, .orbit,
  .fruit-bubble, .fruit-bubble .emoji, .spark {
    animation: none !important;
  }
  .reveal { opacity:1 !important; transform:none !important; }
  .orb-wrap, .fruit-bubble { opacity:1 !important; }
  .parallax { translate: none !important; transition:none !important; }
  .hero-particles { display:none !important; }
  .hero { background-position: 0% 50% !important; }
}

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; font-size: 24px;
  background: var(--bg-tint); margin-bottom: 16px;
}
.card h3 { font-size: 19px; }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

.tinted { background: var(--grad-soft); }

/* ---------- value list / steps ---------- */
.steps { counter-reset: step; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 0; }
.step-num {
  counter-increment: step;
  flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; color: #fff; background: var(--grad);
  box-shadow: var(--shadow-sm);
}
.step-num::before { content: counter(step); }
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15.5px; color: var(--ink);
}
.checklist li::before {
  content: "✓"; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  color: #fff; background: var(--mint); margin-top: 2px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--grad);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(50% 80% at 80% 0%, rgba(255,255,255,.22), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 12px; }
.cta-band p { opacity: .92; font-size: 17px; max-width: 560px; margin: 0 auto 26px; }

/* ---------- footer ---------- */
.site-footer {
  background: #2b2230;
  color: #cdbfca;
  padding: 60px 0 28px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: .02em; }
.site-footer a { color: #cdbfca; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-brand .brand-text { color: #fff; }
.footer-brand p { color: #9c8c98; margin-top: 14px; max-width: 280px; font-size: 13.5px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: space-between; align-items: center;
  padding-top: 22px; color: #9c8c98; font-size: 13px;
}
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- notices ---------- */
.notice {
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 14.5px;
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.notice .n-ico { font-size: 20px; flex: none; }
.notice-rose { background: var(--bg-tint); border-color: rgba(239,79,120,.2); color: #8a3a52; }
.notice-amber { background: #fff7e8; border-color: rgba(214,158,46,.25); color: #8a6320; }
.notice-violet { background: #f4eefc; border-color: rgba(138,95,199,.22); color: #5b3d8f; }
.notice strong { color: inherit; }

/* ---------- utilities ---------- */
.muted { color: var(--ink-soft); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 18px; }
.hide { display: none !important; }
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { min-height: 380px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 60px 0; }
  .hero-art { min-height: 340px; }
  .orb-wrap { width:170px; height:170px; margin:-85px 0 0 -85px; }
  .orb-emoji { font-size: 50px; }
  .fruit-bubble { font-size: 14px; padding: 12px 15px; }
  .fruit-bubble .emoji { font-size: 26px; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--bg-soft); padding: 16px 24px 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-140%);
    transition: transform .28s ease; z-index: 40;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a:not(.btn) { padding: 10px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: grid; place-items: center; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .container { padding: 0 18px; }
}
