:root {
  --ink: #4a3426;
  --ink-soft: #715744;
  --cream: #fffaf0;
  --cream-strong: #fff1d2;
  --orange: #f28a17;
  --orange-dark: #bf5f08;
  --pink: #f7a6ad;
  --green: #65b96f;
  --sky: #86dbe9;
  --line: rgba(116, 76, 43, 0.16);
  --shadow: 0 18px 50px rgba(119, 76, 33, 0.14);
  --radius-lg: 32px;
  --radius-md: 20px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Nunito", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

a {
  color: var(--orange-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: #8f4305;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #087e92;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand img {
  width: 54px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 800;
  text-decoration: none;
}

.lang-toggle {
  min-width: 48px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.lang-toggle:hover {
  background: var(--cream-strong);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,250,240,.94)),
    url("assets/bg-home.png") center 42% / cover no-repeat;
}

.hero-inner {
  position: relative;
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 44px;
  padding: 72px 0 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 7px 13px;
  border: 1px solid rgba(242, 138, 23, .24);
  border-radius: 999px;
  color: #8b470d;
  background: rgba(255, 246, 221, .9);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.hero-logo {
  width: min(510px, 92%);
  filter: drop-shadow(0 12px 18px rgba(148, 86, 17, .16));
}

.hero h1 {
  max-width: 620px;
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--orange);
  border-radius: 16px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 8px 0 #c9690d;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 0 #c9690d;
}

.button.secondary {
  border-color: rgba(74, 52, 38, .12);
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 0 rgba(129, 88, 52, .16);
}

.pig-stage {
  position: relative;
  min-height: 500px;
}

.pig-stage::before {
  content: "";
  position: absolute;
  inset: 16% 3% 4%;
  border: 3px solid rgba(255,255,255,.62);
  border-radius: 48% 52% 42% 58%;
  background: rgba(255,255,255,.42);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.pig {
  position: absolute;
  z-index: 2;
  width: 42%;
  filter: drop-shadow(0 14px 12px rgba(84, 63, 33, .16));
}

.pig-tiger {
  left: 0;
  bottom: 7%;
  transform: rotate(-5deg);
}

.pig-nurse {
  left: 31%;
  bottom: 19%;
  z-index: 3;
}

.pig-dress {
  right: 0;
  bottom: 6%;
  transform: rotate(5deg);
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: #fff3dc;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
}

.section-heading p {
  margin: 0;
  color: var(--ink-soft);
}

.feature-grid,
.character-grid,
.support-grid {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.character-grid {
  grid-template-columns: repeat(4, 1fr);
}

.support-grid {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 30px rgba(114, 76, 38, .08);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

.feature-number {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
}

.character-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.84);
  box-shadow: var(--shadow);
}

.character-card img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: contain;
  padding: 12px;
}

.character-card p {
  margin: 0;
  padding: 12px 16px 16px;
  color: var(--ink-soft);
  font-weight: 800;
  text-align: center;
}

.legal-hero {
  padding: 76px 0 54px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 25%, rgba(134,219,233,.28), transparent 28%),
    radial-gradient(circle at 10% 80%, rgba(247,166,173,.24), transparent 30%),
    var(--cream-strong);
}

.legal-hero h1 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.08;
}

.legal-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
}

.legal-layout {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 88px;
}

.legal-layout h2 {
  margin: 42px 0 10px;
  padding-top: 8px;
  font-size: 1.55rem;
  line-height: 1.3;
}

.legal-layout h3 {
  margin: 24px 0 8px;
  font-size: 1.15rem;
}

.legal-layout p,
.legal-layout li {
  color: #59473b;
}

.legal-layout li + li {
  margin-top: 8px;
}

.notice {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--orange);
  border-radius: 12px;
  background: #fff3dc;
}

.meta-list {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 10px 18px;
  margin: 30px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.meta-list dt {
  font-weight: 900;
}

.meta-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.faq details {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.faq summary {
  min-height: 52px;
  padding: 14px 18px;
  font-weight: 900;
  cursor: pointer;
}

.faq details p {
  margin: 0;
  padding: 0 18px 18px;
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: #4a3426;
  color: #fff8e9;
}

.footer-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-inner p {
  margin: 0;
  color: rgba(255,248,233,.76);
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff8e9;
}

[data-lang="zh"] {
  display: none;
}

html.lang-zh [data-lang="en"] {
  display: none;
}

html.lang-zh [data-lang="zh"] {
  display: revert;
}

@media (max-width: 820px) {
  .nav {
    min-height: 64px;
  }

  .nav-links a:not(.always) {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 56px;
    text-align: center;
  }

  .hero-logo {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .pig-stage {
    min-height: 390px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .character-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .brand span {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .pig-stage {
    min-height: 320px;
  }

  .section {
    padding: 64px 0;
  }

  .character-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .character-card {
    max-width: 300px;
    margin-inline: auto;
  }

  .meta-list {
    grid-template-columns: 1fr;
  }

  .meta-list dd + dt {
    margin-top: 8px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
