:root {
  --paper: #fffbf4;
  --card: #fffefa;
  --ink: #22201e;
  --muted: #625e59;
  --blue: #4a69b3;
  --blue-deep: #36559c;
  --blue-soft: #e8edfa;
  --red: #ba3801;
  --red-deep: #992d02;
  --yellow: #ffec89;
  --yellow-soft: #fff6c9;
  --line: #d9deeb;
  --shadow: 0 18px 48px rgba(55, 49, 39, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 7% 4%, rgba(255, 236, 137, .5), transparent 24rem),
    var(--paper);
  color: var(--ink);
  font: 16px/1.65 Nunito, ui-rounded, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
a { color: var(--blue-deep); text-underline-offset: 3px; }
.wrap { width: min(calc(100% - 2rem), 1080px); margin-inline: auto; }

nav, .sitenav {
  width: min(calc(100% - 2rem), 1080px);
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink) !important;
  font-size: 1.08rem;
  font-weight: 900;
  text-decoration: none;
}
.brand img { width: 42px; height: 42px; border-radius: 13px; }
.links, .navlinks { display: flex; align-items: center; gap: 1.2rem; }
.links a, .navlinks a { color: var(--muted); font-size: .92rem; text-decoration: none; }
.links a:hover, .navlinks a:hover { color: var(--red); }

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 72%;
  height: 4px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--yellow);
  transform: rotate(-1.5deg);
}

/* Marketing page */
.hero {
  min-height: 680px;
  padding: 4.5rem 0 6rem;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}
.hero h1 {
  max-width: 720px;
  margin: .8rem 0 1.4rem;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: .96;
  letter-spacing: -.055em;
}
.hero h1 span { color: var(--blue); }
.lead { max-width: 640px; color: var(--muted); font-size: clamp(1.04rem, 2vw, 1.22rem); }
.cta, .contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: .88rem 1.25rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 9px 0 rgba(153, 45, 2, .12);
}
.small { display: block; margin-top: .8rem; color: var(--muted); font-size: .84rem; }
.phone {
  width: min(100%, 330px);
  margin: auto;
  padding: 12px;
  border: 3px solid var(--blue);
  border-radius: 45px 42px 48px 40px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}
.screen {
  min-height: 540px;
  padding: 30px 20px;
  overflow: hidden;
  border-radius: 33px 29px 35px 30px;
  background: var(--yellow);
  color: var(--ink);
  position: relative;
}
.screen::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 38%;
  width: 80px;
  height: 18px;
  background: rgba(104, 126, 174, .72);
  transform: rotate(-4deg);
}
.hello { margin-top: 20px; color: var(--blue-deep); font-size: .78rem; font-weight: 900; }
.catname { margin: .1rem 0 1.5rem; font-size: 1.75rem; font-weight: 900; }
.taste { padding: 20px; border-radius: 24px 30px 22px 28px; background: var(--blue); color: #fff; }
.taste strong { font-size: 1.22rem; }
.bar { height: 9px; margin: 12px 0; border-radius: 8px; background: rgba(255,255,255,.25); }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--yellow); }
.bar:nth-of-type(2) i { width: 72%; }
.bar:nth-of-type(3) i { width: 58%; }
.tin {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 16px;
  padding: 16px;
  border: 2px solid var(--blue);
  border-radius: 18px 22px 17px 21px;
  background: var(--card);
}
.can { width: 48px; height: 58px; border-radius: 8px; background: linear-gradient(#ffcf48 0 28%,#7f2619 28% 55%,#c93400 55% 75%,#4a69b3 75%); }
.match { margin-left: auto; color: var(--red); font-weight: 900; }
section { padding: 5.5rem 0; }
.section-title { max-width: 680px; margin-bottom: 2.5rem; }
.section-title h2 { margin: .55rem 0; font-size: clamp(2rem, 5vw, 3.35rem); line-height: 1.05; letter-spacing: -.04em; }
.section-title p, .feature p { color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature {
  min-height: 230px;
  padding: 1.5rem;
  border: 2px solid var(--blue);
  border-radius: 22px 28px 20px 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.feature:nth-child(even) { transform: translateY(14px) rotate(.5deg); background: var(--yellow-soft); }
.icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--red); font-size: 1.25rem; font-weight: 900; }
.feature h3 { margin: 1rem 0 .45rem; }
.feature p { margin: 0; font-size: .93rem; }
.promise {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(2rem, 6vw, 4.5rem);
  overflow: hidden;
  border-radius: 35px 45px 32px 42px;
  background: var(--blue);
  color: #fff;
}
.promise::after { content: "♡"; position: absolute; right: 28px; top: 13px; color: var(--yellow); font-size: 3rem; transform: rotate(12deg); }
.promise h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.04; letter-spacing: -.045em; }
.promise p { color: #edf1ff; }
.points { display: grid; gap: .8rem; }
.point { padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,.32); border-radius: 14px 19px 15px 18px; background: rgba(255,255,255,.12); font-weight: 800; }

/* Support and policy pages */
body:not(.marketing) main.wrap, body:not(.marketing) main:not(.wrap) { width: min(calc(100% - 2rem), 760px); margin-inline: auto; }
body:not(.marketing) section { padding: 1.5rem 0 3rem; }
header { padding: 4rem 0 2.5rem; }
header h1, main > h1 { margin: .45rem 0 1rem; font-size: clamp(2.35rem, 7vw, 4.2rem); line-height: 1; letter-spacing: -.045em; }
.zh, details p, main > p, main li { color: var(--muted); }
.zh { margin-top: .55rem; }
details { padding: 1.15rem .2rem; border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; color: var(--blue-deep); font-weight: 850; }
details p { margin: .75rem 0 .15rem; }
.note, .card {
  position: relative;
  margin: 1.25rem 0;
  padding: 1.25rem 1.4rem;
  border: 2px solid var(--blue);
  border-radius: 20px 27px 19px 25px;
  background: var(--yellow-soft);
  box-shadow: var(--shadow);
}
.note h2 { color: var(--blue-deep); }
.lang { display: flex; gap: .75rem; margin: 2rem 0; font-size: .9rem; }
.updated { margin: 0 0 2rem; color: var(--muted); font-size: .875rem; }
main > h1 { color: var(--blue-deep); }
main > h1::after { content: ""; display: block; width: 95px; height: 5px; margin-top: 10px; border-radius: 99px; background: var(--red); transform: rotate(-1deg); }
main > h2 { margin: 2.6rem 0 .6rem; font-size: 1.2rem; color: var(--blue-deep); }
main > h3 { margin: 1.6rem 0 .35rem; font-size: 1rem; }
main ul { padding-left: 1.3rem; }
main li { margin: .4rem 0; }
code { padding: .1rem .35rem; border: 1px solid var(--line); border-radius: 5px; background: var(--card); }
hr { margin: 4.5rem 0; border: 0; border-top: 3px dashed var(--line); }

footer { margin-top: 3rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem 1.5rem; }
footer p { margin: .2rem 0; }
footer a { color: var(--muted); }
/* The 小红书 handle is a name, not a link — see CONTACT in build-store-pages.mjs.
   Dimming it keeps it from reading as a link that does not work. */
footer .social span { color: var(--faint, var(--muted)); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .phone { margin-top: 1rem; }
  .features { grid-template-columns: 1fr 1fr; }
  .promise { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .links a:first-child, .navlinks a:first-child { display: none; }
  .hero { padding-bottom: 4rem; }
  .phone { width: 285px; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(even) { transform: none; }
  section { padding: 4rem 0; }
  header { padding-top: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
