/* ============================================================
   草莓时光 · Strawberry Moments — marketing landing page
   ============================================================ */

/* Display face — subset of ZCOOL KuaiLe covering this page's glyphs only
   (regen: pyftsubset, see website/deploy/README.html). Single weight 400. */
@font-face {
  font-family: "ZCOOL KuaiLe";
  src: url("assets/fonts/zcool-kuaile-subset-3.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #FAF6EE;
  --lemon: #E8C56A;
  --lemon-shadow: #C9A04A;
  --terracotta: #D9A574;
  --sage: #9CAF88;
  --ink: #5C5346;
  --ink-soft: #8A7E6C;
  --card: #FFFFFF;

  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --shadow-soft: 0 8px 28px rgba(92, 83, 70, 0.08);
  --shadow-card: 0 10px 32px rgba(92, 83, 70, 0.10);
  --shadow-lift: 0 16px 40px rgba(92, 83, 70, 0.14);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC",
          "Helvetica Neue", sans-serif;
  --font-display: "ZCOOL KuaiLe", "PingFang SC", "Hiragino Sans GB", sans-serif;

  --maxw: 1080px;
}

/* ---------- reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 48px);
  background: rgba(250, 246, 238, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(92, 83, 70, 0.07);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo {
  width: 36px;
  height: 36px;
}

.nav-wordmark {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lang-toggle {
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid rgba(92, 83, 70, 0.12);
  border-radius: 999px;
  min-width: 56px;
  min-height: 44px;
  padding: 0 18px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.lang-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.lang-toggle:active { transform: translateY(0); }
.lang-toggle:focus-visible {
  outline: 2px solid var(--lemon-shadow);
  outline-offset: 2px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(56px, 11vw, 116px) clamp(20px, 6vw, 48px) clamp(48px, 9vw, 92px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  height: 620px;
  max-width: 130vw;
  background: radial-gradient(circle,
    rgba(232, 197, 106, 0.34) 0%,
    rgba(232, 197, 106, 0.12) 42%,
    rgba(232, 197, 106, 0) 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

/* App-icon tile: mascot on the brand cream→sage gradient, per the DS kit */
.hero-tile {
  width: clamp(112px, 24vw, 148px);
  height: clamp(112px, 24vw, 148px);
  margin: 0 auto 26px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  background: linear-gradient(180deg, #EEF3E5 0%, #FBF7EC 100%);
  box-shadow: var(--shadow-lift);
  animation: floaty 6s ease-in-out infinite;
}

.hero-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 62%, rgba(127, 199, 156, 0.30), transparent 60%);
}

.hero-mascot {
  width: 74%;
  height: 74%;
  object-fit: contain;
  position: relative;
  filter: drop-shadow(0 8px 12px rgba(120, 70, 60, 0.18));
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.hero-title-zh {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-title-sub {
  font-size: clamp(0.86rem, 3vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-tagline {
  font-size: clamp(1.12rem, 3.6vw, 1.42rem);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: clamp(0.98rem, 2.8vw, 1.08rem);
  color: var(--ink-soft);
  max-width: 30em;
  margin: 0 auto 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, #F3DD9C, var(--lemon));
  color: #6B5526;
  font-size: 0.96rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(201, 160, 74, 0.32);
}

.pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #6B5526;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.78); }
}

.hero-platform {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- generic section ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(54px, 9vw, 92px) clamp(20px, 6vw, 48px);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 400;
  text-align: center;
  letter-spacing: 0.01em;
}

.section-lead {
  text-align: center;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 2.8vw, 1.08rem);
  margin: 12px auto 0;
  max-width: 30em;
}

/* ---------- feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 20px;
  margin-top: clamp(34px, 6vw, 52px);
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(92, 83, 70, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.card-glyph {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.card-glyph img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(120, 70, 60, 0.16));
}

.card-glyph--lemon      { background: rgba(232, 197, 106, 0.22); }
.card-glyph--sage       { background: rgba(156, 175, 136, 0.22); }
.card-glyph--terracotta { background: rgba(217, 165, 116, 0.22); }

.card-title {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.card-text {
  font-size: 0.97rem;
  color: var(--ink-soft);
}

/* ---------- how it works ---------- */
.section--steps { padding-top: clamp(28px, 5vw, 48px); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 20px;
  margin-top: clamp(34px, 6vw, 52px);
}

.step {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 34px 26px 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(92, 83, 70, 0.05);
}

.step-num {
  position: absolute;
  top: -22px;
  left: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: #6B5526;
  background: linear-gradient(135deg, #F3DD9C, var(--lemon));
  box-shadow: 0 8px 20px rgba(201, 160, 74, 0.34);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 400;
  margin: 10px 0 8px;
}

.step-text {
  font-size: 0.97rem;
  color: var(--ink-soft);
}

/* ---------- privacy ---------- */
.section--privacy { padding-top: clamp(28px, 5vw, 48px); }

.privacy-card {
  background: linear-gradient(160deg, #FFFFFF 0%, #FBF4E2 100%);
  border-radius: var(--radius-lg);
  padding: clamp(38px, 7vw, 64px) clamp(24px, 6vw, 58px);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(232, 197, 106, 0.28);
  text-align: center;
}

.privacy-glyph {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  background: rgba(156, 175, 136, 0.24);
}

.privacy-glyph img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(120, 70, 60, 0.16));
}

.privacy-lead {
  color: var(--ink-soft);
  font-size: clamp(1rem, 2.9vw, 1.12rem);
  max-width: 34em;
  margin: 14px auto 0;
}

.privacy-list {
  list-style: none;
  max-width: 32em;
  margin: 30px auto 0;
  text-align: left;
  display: grid;
  gap: 14px;
}

.privacy-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.99rem;
  color: var(--ink);
}

.privacy-tick {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ---------- faq ---------- */
.section--faq { padding-top: clamp(28px, 5vw, 48px); }

.faq-list {
  max-width: 720px;
  margin: clamp(34px, 6vw, 52px) auto 0;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(92, 83, 70, 0.05);
}

.faq-q {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 400;
  margin-bottom: 6px;
}

.faq-a {
  font-size: 0.97rem;
  color: var(--ink-soft);
}

/* ---------- guide hub & article ---------- */
.guide-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.guide-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sage);
}

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 6vw, 48px) clamp(54px, 9vw, 92px);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.breadcrumb a { color: inherit; }

.article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5.4vw, 2.3rem);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 10px;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.article h2 {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 400;
  margin: 36px 0 12px;
}

.article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 24px 0 8px;
}

.article p { margin: 11px 0; }

.article ul,
.article ol {
  padding-left: 24px;
  margin: 11px 0;
}

.article li { margin: 8px 0; }

.article .tip {
  background: rgba(156, 175, 136, 0.16);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 13px 17px;
  margin: 18px 0;
  font-size: 0.95rem;
}

.disclaimer {
  margin-top: 36px;
  padding: 14px 18px;
  border: 1px dashed rgba(92, 83, 70, 0.22);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.related {
  margin-top: 30px;
  padding: 18px 22px;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.related h2 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 7px 0; }
.related a { color: var(--sage); font-weight: 600; }

.article-cta {
  margin-top: 34px;
  text-align: center;
  background: linear-gradient(160deg, #FFFFFF 0%, #FBF4E2 100%);
  border: 1px solid rgba(232, 197, 106, 0.28);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
}

.article-cta .cta-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.article-cta p { color: var(--ink-soft); font-size: 0.95rem; }

.article-cta a.cta-pill {
  display: inline-flex;
  margin-top: 14px;
  background: linear-gradient(135deg, #F3DD9C, var(--lemon));
  color: #6B5526;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(201, 160, 74, 0.32);
}

/* ---------- footer ---------- */
.footer {
  text-align: center;
  padding: clamp(46px, 8vw, 72px) 24px clamp(40px, 7vw, 58px);
  border-top: 1px solid rgba(92, 83, 70, 0.08);
  margin-top: 12px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  margin: 0 auto 14px;
  opacity: 0.92;
}

.footer-line {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

.footer-copy {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 8px;
}

/* ---------- motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- mobile fine-tuning ---------- */
@media (max-width: 420px) {
  .card { padding: 26px 22px; }
  .step { padding: 32px 22px 26px; }
  .privacy-item { padding: 13px 15px; }
  .hero-title-sub { letter-spacing: 0.26em; }
}
