/* ==========================================================
   WOWM! — base styles (tokens, fonts, header, footer, shared)
   ========================================================== */

/* Brand font: 阿里妈妈方圆体 VF (Alimama FangYuanTi VF) © 阿里妈妈 — free for commercial use under Alimama's licence.
   Official package from iconfont.cn, used unmodified (the licence forbids converting/subsetting).
   Axes: wght 200–700, BEVL 1 (Square) – 100 (Round). Falls back to Outfit until the file is present. */
@font-face {
  font-family: "Alimama FangYuanTi";
  src: url("../fonts/AlimamaFangYuanTiVF.woff2") format("woff2-variations"),
       url("../fonts/AlimamaFangYuanTiVF.woff2") format("woff2"),
       url("../fonts/AlimamaFangYuanTiVF.woff") format("woff");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --lime: #C5D506;
  --lime-deep: #A9B800;
  --olive: #608A5D;
  --olive-deep: #48704A;
  --ink: #111111;
  --ink-2: #3B3B36;
  --mute: #8C8A80;
  --cream: #F7F4EC;
  --paper: #FFFFFF;
  --wood: #EADFCB;
  --yellow: #EFED80;
  --orange: #F6AD48;
  --lilac: #BBAAD2;
  --mint: #DCE8D5;

  --cat-nuts: #F3EFB8;
  --cat-dried: #FBE2C0;
  --cat-pastry: #E6DDF0;
  --cat-candy: #DDEBD6;

  --font: "Alimama FangYuanTi", "Outfit", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 84px;
  --gutter: clamp(32px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variation-settings: "BEVL" 100; /* Round for body copy */
}
/* Square cut for display type, per the brand book */
h1, h2, h3, .t-main, .cat-name strong, .stats strong { font-variation-settings: "BEVL" 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

/* ---------- shared atoms ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }

.burst { width: 46px; height: 30px; color: var(--lime); flex: none; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 28px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-size: 16px; font-weight: 600; letter-spacing: .02em;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateX(-101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: none; }
.btn .arrow { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime::before { background: var(--ink); }
.btn--lime:hover { color: var(--lime); }

.btn--glass {
  color: #fff; border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn--glass::before { background: var(--lime); }
.btn--glass:hover { color: var(--ink); border-color: var(--lime); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink::before { background: var(--lime); }
.btn--ink:hover { color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  color: #fff;
  transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease), height .5s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(247, 244, 236, .72);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(17, 17, 17, .06);
  transition: opacity .5s var(--ease);
}
.site-header.is-solid { color: var(--ink); --header-h: 72px; }
.site-header.is-solid::before { opacity: 1; }

.brand { position: relative; display: block; height: 38px; width: 112px; }
.brand img { position: absolute; inset: 0; height: 100%; width: auto; transition: opacity .4s var(--ease); }
.brand .logo-color { opacity: 0; }
.site-header.is-solid .brand .logo-white { opacity: 0; }
.site-header.is-solid .brand .logo-color { opacity: 1; }

.nav { display: flex; gap: clamp(20px, 3vw, 48px); }
.nav a {
  position: relative; font-size: 15px; font-weight: 500; letter-spacing: .03em; padding: 6px 0; opacity: .88;
  transition: opacity .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav a:hover, .nav a.is-current { opacity: 1; }
.nav a:hover::after, .nav a.is-current::after { transform: none; }

.lang {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background-color .4s, border-color .4s;
}
.site-header.is-solid .lang { background: rgba(17,17,17,.05); border-color: rgba(17,17,17,.12); }
.lang button {
  min-width: 44px; height: 32px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; opacity: .7;
  transition: background-color .35s var(--ease), color .35s var(--ease), opacity .35s;
}
.lang button.is-active { background: var(--lime); color: var(--ink); opacity: 1; }

/* ---------- footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--ink); color: rgba(255,255,255,.72);
  padding: 56px var(--gutter) 32px;
}
.site-footer .burst-bg {
  position: absolute; right: -40px; bottom: -70px; width: 360px; height: 240px; color: rgba(197,213,6,.08);
}
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-brand img.mark { height: 44px; width: auto; }
.footer-brand img.tag { height: 16px; width: auto; margin-top: 12px; opacity: .8; }
.footer-brand p { margin-top: 18px; max-width: 320px; font-size: 14px; line-height: 1.7; }
.footer-col h4 { margin: 0 0 16px; color: #fff; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.footer-col a, .footer-col span { display: block; font-size: 14px; line-height: 2.1; transition: color .3s; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px; color: rgba(255,255,255,.45);
}
.socials { display: flex; gap: 10px; }
.socials a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18); color: #fff;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s, transform .35s var(--ease);
}
.socials a:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

/* ---------- entrance animation (driven by .is-active on a parent) ---------- */
[data-anim] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms + 250ms);
}
[data-anim="fade"] { transform: none; }
[data-anim="left"] { transform: translateX(-40px); }
.is-active [data-anim] { opacity: 1; transform: none; }

/* links whose pages are not built yet: visible, but not clickable */
a.is-soon { cursor: default; }
.nav a.is-soon:hover { opacity: .88; }
.nav a.is-soon:hover::after { transform: scaleX(0); }
.footer-col a.is-soon:hover { color: inherit; }
