@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;1,9..144,400&family=Noto+Serif+SC:wght@400;500;700&display=swap");
@import url("https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.7.0/style.css");

:root {
  --cream: #F5F0E6;
  --cream-deep: #EBE2D0;
  --cream-warm: #E2D4B8;
  --ink: #3A2E1F;
  --ink-soft: #5A4830;
  --ink-mist: #8A7557;
  --ochre: #B8804A;
  --ochre-deep: #935E2D;
  --sage: #6E8870;
  --sage-deep: #4E6552;
  --terracotta: #B05A3C;
  --rust: #8C3D1F;

  --hand: "Caveat", "LXGW WenKai", cursive;
  --wen: "LXGW WenKai", "Noto Serif SC", serif;
  --serif: "Fraunces", "Noto Serif SC", serif;
  --serif-cn: "Noto Serif SC", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--wen);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.3  0 0 0 0 0.15  0 0 0 0.3 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main, header, footer { position: relative; z-index: 2; }
a { color: inherit; }

/* ========================================================= */
/* Header                                                    */
/* ========================================================= */
.site-header {
  padding: 28px clamp(24px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand__stamp {
  width: 48px;
  height: 48px;
  background: var(--ochre);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif-cn);
  font-weight: 700;
  font-size: 22px;
  color: var(--cream);
  transform: rotate(-5deg);
  box-shadow: 3px 3px 0 var(--ochre-deep);
  transition: transform 0.5s ease;
  flex-shrink: 0;
}

.brand:hover .brand__stamp { transform: rotate(5deg) scale(1.05); }

.brand__name {
  font-family: var(--serif-cn);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.25em;
  color: var(--ink);
}

.brand__sub {
  display: block;
  font-family: var(--hand);
  font-size: 15px;
  color: var(--ink-mist);
  letter-spacing: 0.05em;
  margin-top: -2px;
  transform: rotate(-1deg);
  transform-origin: left;
}

.site-nav {
  display: flex;
  gap: 36px;
  font-family: var(--hand);
  font-size: 22px;
}

.site-nav a { text-decoration: none; color: var(--ink-soft); position: relative; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 3px;
  background: var(--sage);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.site-nav a:hover { color: var(--sage-deep); }
.site-nav a:hover::after { transform: scaleX(1); }

.back-home {
  font-family: var(--hand);
  font-size: 20px;
  color: var(--sage-deep);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-home::before { content: "←"; transition: transform 0.3s ease; display: inline-block; }
.back-home:hover { color: var(--rust); }
.back-home:hover::before { transform: translateX(-4px); }

@media (max-width: 720px) { .site-nav { display: none; } }

/* ========================================================= */
/* Hero                                                      */
/* ========================================================= */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 96px) clamp(24px, 4vw, 64px) clamp(80px, 10vw, 140px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  position: relative;
}

.hero__leaves { position: absolute; pointer-events: none; opacity: 0.8; }
.hero__leaves--1 { top: 20px; right: 8%; width: 140px; animation: sway 6s ease-in-out infinite; }
.hero__leaves--2 { bottom: 30px; left: 6%; width: 100px; animation: sway 7s ease-in-out infinite reverse; }

@keyframes sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.hero__main { max-width: 720px; position: relative; z-index: 2; }

.hero__hand {
  font-family: var(--hand);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--terracotta);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  display: inline-block;
  transform: rotate(-2deg);
  opacity: 0;
  animation: rise 1s ease 0.2s forwards;
}

.hero__title {
  font-family: var(--serif-cn);
  font-weight: 700;
  font-size: clamp(72px, 13vw, 180px);
  line-height: 0.95;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 28px;
  position: relative;
  opacity: 0;
  animation: rise 1.2s ease 0.4s forwards;
}

.hero__title::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 180px;
  height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 18'><path d='M2,10 Q30,2 58,10 T114,10 T170,10' fill='none' stroke='%23B8804A' stroke-width='3' stroke-linecap='round'/></svg>") no-repeat;
  opacity: 0;
  animation: rise 1s ease 1.1s forwards;
}

.hero__sub {
  font-family: var(--wen);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: 520px;
  font-weight: 400;
  opacity: 0;
  animation: rise 1s ease 0.7s forwards;
}

.hero__sub em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--cream-warm) 62%);
  padding: 0 4px;
  color: var(--ochre-deep);
  font-weight: 500;
}

.hero__signature {
  font-family: var(--hand);
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--sage-deep);
  margin-top: 32px;
  transform: rotate(-2deg);
  display: inline-block;
  opacity: 0;
  animation: rise 1s ease 1s forwards;
}

.hero__signature::before { content: "—— "; color: var(--ink-mist); }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__card {
  background: var(--cream-deep);
  padding: 24px 28px;
  border-radius: 4px;
  max-width: 260px;
  transform: rotate(2deg);
  box-shadow: inset 0 0 0 1px rgba(58, 46, 31, 0.1), 6px 6px 0 rgba(58, 46, 31, 0.08);
  font-family: var(--hand);
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.5;
  position: relative;
  opacity: 0;
  animation: rise 1s ease 1.2s forwards;
}

.hero__card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 30px;
  width: 60px;
  height: 20px;
  background: rgba(176, 90, 60, 0.35);
  transform: rotate(-3deg);
  border-radius: 2px;
}

.hero__card strong {
  font-family: var(--serif-cn);
  font-weight: 500;
  color: var(--rust);
  letter-spacing: 0.1em;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero__card { justify-self: start; }
}

/* ========================================================= */
/* Divider                                                   */
/* ========================================================= */
.divider {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--ochre);
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%25' height='2'><path d='M0,1 Q25,-2 50,1 T100,1' fill='none' stroke='%23B8804A' stroke-width='1.5'/></svg>");
  background-size: 80px 2px;
  background-repeat: repeat-x;
  opacity: 0.6;
}

.divider__leaf { width: 32px; height: 32px; }

/* ========================================================= */
/* Product (homepage)                                        */
/* ========================================================= */
.product {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) clamp(24px, 4vw, 64px);
  position: relative;
  scroll-margin-top: 40px;
}

.product__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.product__index {
  width: 88px;
  height: 88px;
  color: var(--cream);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif-cn);
  font-weight: 700;
  font-size: 36px;
  transform: rotate(-4deg);
  position: relative;
}

.product__index::after {
  position: absolute;
  top: -8px;
  right: -12px;
  width: 32px;
  height: 32px;
  color: var(--cream);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  transform: rotate(8deg);
}

.product--suisuian .product__index { background: var(--sage); box-shadow: 4px 4px 0 var(--sage-deep); }
.product--suisuian .product__index::after { content: "壹"; background: var(--terracotta); box-shadow: 2px 2px 0 var(--rust); }
.product--suisuian .story__kicker { color: var(--terracotta); }
.product--suisuian .features__kicker { color: var(--sage-deep); }

.product--youxuezhi .product__index { background: var(--ochre); box-shadow: 4px 4px 0 var(--ochre-deep); }
.product--youxuezhi .product__index::after { content: "贰"; background: var(--sage); box-shadow: 2px 2px 0 var(--sage-deep); }
.product--youxuezhi .story__kicker { color: var(--sage-deep); }
.product--youxuezhi .features__kicker { color: var(--rust); }

.product__name-block { min-width: 0; }

.product__label {
  font-family: var(--hand);
  font-size: 22px;
  color: var(--ochre-deep);
  margin-bottom: 4px;
  display: block;
  transform: rotate(-1deg);
  transform-origin: left;
}

.product__name {
  font-family: var(--serif-cn);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.product__en {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--ink-mist);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.product__platforms {
  font-family: var(--hand);
  font-size: 20px;
  color: var(--ink-soft);
  background: var(--cream-deep);
  padding: 10px 20px;
  border-radius: 999px;
  transform: rotate(2deg);
  box-shadow: 2px 2px 0 rgba(58, 46, 31, 0.1);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .product__header { grid-template-columns: auto 1fr; gap: 20px; }
  .product__platforms { grid-column: 1 / -1; justify-self: start; }
}

.product__body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.product--youxuezhi .product__body { grid-template-columns: 1fr 1.2fr; }
.product--youxuezhi .product__right { order: -1; }

@media (max-width: 900px) {
  .product__body,
  .product--youxuezhi .product__body { grid-template-columns: 1fr; }
  .product--youxuezhi .product__right { order: 0; }
}

.product__left > * + * { margin-top: clamp(48px, 6vw, 72px); }

.story__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--hand);
  font-size: 24px;
  margin-bottom: 18px;
  transform: rotate(-1deg);
}

.story__kicker::before {
  content: "";
  width: 30px;
  height: 20px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'><path d='M2,10 Q10,2 18,10 T28,10' fill='none' stroke='%23B05A3C' stroke-width='2' stroke-linecap='round'/></svg>") no-repeat center;
}

.story__text {
  font-family: var(--wen);
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 2;
  color: var(--ink-soft);
  max-width: 560px;
}

.story__text p + p { margin-top: 14px; }

.story__text em {
  font-style: normal;
  background: linear-gradient(transparent 60%, rgba(184, 128, 74, 0.25) 60%);
  padding: 0 3px;
  color: var(--rust);
  font-weight: 500;
}

.features__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--hand);
  font-size: 24px;
  margin-bottom: 24px;
  transform: rotate(-1deg);
}

.features__kicker::before { content: "🌿"; font-size: 22px; }
.product--youxuezhi .features__kicker::before { content: "🗺️"; }

.features__list { list-style: none; display: grid; gap: 18px; }

.features__list li {
  background: var(--cream-deep);
  padding: 20px 24px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 3px 3px 0 rgba(58, 46, 31, 0.08);
  position: relative;
}

.features__list li:nth-child(1) { transform: rotate(-0.8deg); }
.features__list li:nth-child(2) { transform: rotate(0.6deg); }
.features__list li:nth-child(3) { transform: rotate(-0.4deg); }
.features__list li:nth-child(4) { transform: rotate(0.8deg); }

.features__list li:hover {
  transform: rotate(0deg) translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(58, 46, 31, 0.12);
}

.features__icon {
  width: 48px;
  height: 48px;
  background: var(--ochre);
  color: var(--cream);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif-cn);
  font-weight: 500;
  font-size: 22px;
  flex-shrink: 0;
}

.product--suisuian .features__list li:nth-child(1) .features__icon { background: var(--ochre); }
.product--suisuian .features__list li:nth-child(2) .features__icon { background: var(--sage); }
.product--suisuian .features__list li:nth-child(3) .features__icon { background: var(--terracotta); }
.product--suisuian .features__list li:nth-child(4) .features__icon { background: var(--rust); }

.product--youxuezhi .features__list li:nth-child(1) .features__icon { background: var(--sage); }
.product--youxuezhi .features__list li:nth-child(2) .features__icon { background: var(--terracotta); }
.product--youxuezhi .features__list li:nth-child(3) .features__icon { background: var(--ochre); }
.product--youxuezhi .features__list li:nth-child(4) .features__icon { background: var(--sage-deep); }

.features__body h3 {
  font-family: var(--serif-cn);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
  color: var(--ink);
}

.features__body p {
  font-family: var(--wen);
  font-size: 15px;
  color: var(--ink-mist);
  line-height: 1.7;
}

.product__right { position: sticky; top: 40px; }
@media (max-width: 900px) { .product__right { position: static; } }

.phone-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}

.product--youxuezhi .phone-wrap { transform: rotate(3deg); }
.phone-wrap:hover { transform: rotate(1deg); }
.product--youxuezhi .phone-wrap:hover { transform: rotate(-1deg); }

.phone-wrap::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: radial-gradient(ellipse, var(--cream-warm), transparent 70%);
  opacity: 0.6;
  z-index: -1;
}

.phone {
  width: 100%;
  aspect-ratio: 9 / 19;
  background: var(--cream);
  border-radius: 36px;
  padding: 10px;
  position: relative;
  box-shadow: inset 0 0 0 3px var(--ink), 10px 14px 30px rgba(58, 46, 31, 0.15);
}

.phone::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: var(--ink);
  border-radius: 999px;
  z-index: 2;
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: radial-gradient(ellipse at top, var(--cream-warm), var(--cream) 70%);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
  gap: 16px;
}

.phone__brand {
  font-family: var(--serif-cn);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  letter-spacing: 0.15em;
}

.phone__brand::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 16px;
  transform: rotate(-4deg);
}

.product--suisuian .phone__brand::before { background: var(--sage); box-shadow: 2px 2px 0 var(--sage-deep); }
.product--youxuezhi .phone__brand::before { background: var(--ochre); box-shadow: 2px 2px 0 var(--ochre-deep); }

.phone__tag {
  font-family: var(--hand);
  font-size: 18px;
  color: var(--ink-mist);
  transform: rotate(-2deg);
}

.phone__frame {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mist);
  letter-spacing: 0.1em;
  border: 1px dashed var(--ink-mist);
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 6px;
}

.product__cta-row {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 40px;
  border-top: 2px dashed rgba(184, 128, 74, 0.4);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.product__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif-cn);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--cream);
  background: var(--rust);
  padding: 16px 32px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  transition: all 0.3s ease;
  transform: rotate(-1deg);
}

.product__cta:hover {
  transform: rotate(1deg) translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.product__cta::after { content: "→"; }

.product__legal {
  display: flex;
  gap: 28px;
  font-family: var(--hand);
  font-size: 20px;
  flex-wrap: wrap;
}

.product__legal a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.product__legal a:hover { color: var(--sage-deep); }

/* ========================================================= */
/* About (homepage)                                          */
/* ========================================================= */
.about {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) clamp(24px, 4vw, 64px);
  scroll-margin-top: 40px;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

@media (max-width: 900px) { .about__inner { grid-template-columns: 1fr; } }

.about__kicker {
  font-family: var(--hand);
  font-size: 28px;
  color: var(--terracotta);
  display: inline-block;
  transform: rotate(-2deg);
  margin-bottom: 16px;
}

.about__title {
  font-family: var(--serif-cn);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.1;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 32px;
}

.about__title em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--cream-warm) 62%);
  color: var(--ochre-deep);
  padding: 0 6px;
}

.about__text {
  font-family: var(--wen);
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 2;
  color: var(--ink-soft);
  max-width: 680px;
}

.about__text p + p { margin-top: 18px; }

.about__text a {
  color: var(--rust);
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.about__card {
  background: var(--cream-deep);
  padding: 32px 28px;
  border-radius: 4px;
  transform: rotate(2deg);
  box-shadow: inset 0 0 0 1px rgba(58, 46, 31, 0.1), 6px 6px 0 rgba(58, 46, 31, 0.08);
  position: relative;
}

.about__card::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 40px;
  width: 80px;
  height: 24px;
  background: rgba(110, 136, 112, 0.35);
  transform: rotate(-3deg);
  border-radius: 2px;
}

.about__card strong {
  font-family: var(--serif-cn);
  font-weight: 500;
  color: var(--sage-deep);
  letter-spacing: 0.2em;
  font-size: 13px;
  display: block;
  margin-bottom: 12px;
}

.about__card p {
  font-family: var(--hand);
  font-size: 20px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.about__card p + p { margin-top: 8px; }

/* ========================================================= */
/* Footer                                                    */
/* ========================================================= */
.site-footer {
  margin-top: clamp(64px, 8vw, 96px);
  padding: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 64px) 32px;
  background: var(--cream-deep);
  border-top: 2px dashed rgba(184, 128, 74, 0.4);
  position: relative;
  scroll-margin-top: 40px;
}

.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 48px;
}

@media (max-width: 820px) {
  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
}

.footer-col__label {
  font-family: var(--hand);
  font-size: 22px;
  color: var(--ochre-deep);
  margin-bottom: 14px;
  display: inline-block;
  transform: rotate(-1deg);
}

.footer-brand__row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-brand__row .brand__stamp { width: 42px; height: 42px; font-size: 18px; box-shadow: 3px 3px 0 var(--ochre-deep); }

.footer-brand__name {
  font-family: var(--serif-cn);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.2em;
  line-height: 1.3;
}

.footer-brand__name small {
  display: block;
  font-family: var(--hand);
  font-size: 15px;
  color: var(--ink-mist);
  letter-spacing: 0;
  margin-top: 2px;
}

.footer-brand p {
  font-family: var(--wen);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--wen);
  font-size: 15px;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: "☘";
  color: var(--sage);
  font-size: 13px;
  transform: translateY(-1px);
  transition: transform 0.3s ease;
}

.footer-links a:hover { color: var(--sage-deep); }
.footer-links a:hover::before { transform: translateY(-1px) rotate(20deg) scale(1.2); }

.footer-contact a {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--rust);
  text-decoration: none;
  border-bottom: 2px solid var(--ochre);
  padding-bottom: 2px;
  transition: border-color 0.3s ease;
  word-break: break-all;
}

.footer-contact a:hover { border-color: var(--rust); }

.footer-contact p {
  font-family: var(--wen);
  color: var(--ink-mist);
  font-size: 14px;
  margin-top: 10px;
}

.site-footer__baseline {
  max-width: 1280px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(138, 117, 87, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--wen);
  font-size: 13px;
  color: var(--ink-mist);
  letter-spacing: 0.05em;
}

.site-footer__baseline .icp {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-mist);
}

.site-footer__leaf {
  position: absolute;
  right: 6%;
  top: -32px;
  width: 64px;
  height: 64px;
  opacity: 0.6;
  animation: sway 8s ease-in-out infinite;
}

.site-footer--simple { margin-top: clamp(48px, 6vw, 80px); padding: 40px clamp(24px, 4vw, 64px) 28px; }
.site-footer--simple .site-footer__baseline { margin-top: 0; padding-top: 0; border-top: none; }
.site-footer--simple .site-footer__baseline a {
  font-family: var(--serif);
  font-style: italic;
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid var(--ochre);
}

/* ========================================================= */
/* Sub-page: Container & Breadcrumb                          */
/* ========================================================= */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px) clamp(56px, 7vw, 96px);
}

.breadcrumb {
  font-family: var(--hand);
  font-size: 20px;
  color: var(--ink-mist);
  margin-bottom: clamp(24px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--sage-deep);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 1px;
  transition: border-color 0.3s ease;
}

.breadcrumb a:hover { border-bottom-color: var(--sage); }

.breadcrumb span {
  color: var(--ochre);
  font-family: var(--serif);
  font-style: italic;
}

/* ========================================================= */
/* Legal documents                                           */
/* ========================================================= */
.legal h1 {
  font-family: var(--serif-cn);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.legal__meta {
  background: var(--cream-deep);
  padding: 16px 22px;
  border-radius: 4px;
  margin-bottom: clamp(40px, 5vw, 56px);
  transform: rotate(-0.5deg);
  box-shadow: 3px 3px 0 rgba(58, 46, 31, 0.08);
  position: relative;
  display: inline-block;
}

.legal__meta::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 30px;
  width: 60px;
  height: 18px;
  background: rgba(176, 90, 60, 0.28);
  transform: rotate(-3deg);
  border-radius: 2px;
}

.legal__meta p {
  font-family: var(--hand);
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

.legal__meta p + p { margin-top: 4px; }

.legal h2 {
  font-family: var(--serif-cn);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.3;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-top: clamp(40px, 5vw, 56px);
  margin-bottom: 16px;
  padding-left: 20px;
  border-left: 4px solid var(--ochre);
  position: relative;
}

.legal h3 {
  font-family: var(--serif-cn);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-top: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal h3::before {
  content: "☘";
  color: var(--sage);
  font-size: 0.85em;
}

.legal p {
  font-family: var(--wen);
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-soft);
  margin-bottom: 12px;
  max-width: 680px;
}

.legal ul, .legal ol {
  margin: 12px 0 16px 0;
  padding-left: 24px;
  max-width: 680px;
}

.legal li {
  font-family: var(--wen);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 6px;
  padding-left: 8px;
}

.legal ul li { list-style: none; position: relative; }
.legal ul li::before {
  content: "▸";
  position: absolute;
  left: -16px;
  color: var(--ochre);
  font-weight: 700;
}

.legal ol li { list-style-type: decimal; }
.legal ol li::marker { color: var(--ochre); font-weight: 700; }

.legal strong {
  color: var(--rust);
  font-weight: 500;
  font-family: var(--serif-cn);
}

.legal a {
  color: var(--rust);
  text-decoration: underline;
  text-decoration-color: var(--ochre);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}

.legal a:hover { color: var(--sage-deep); text-decoration-color: var(--sage); }

.legal hr {
  border: none;
  height: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%25' height='2'><path d='M0,1 Q25,-2 50,1 T100,1' fill='none' stroke='%23B8804A' stroke-width='1.5'/></svg>");
  background-size: 80px 2px;
  background-repeat: repeat-x;
  opacity: 0.5;
  margin: clamp(40px, 5vw, 56px) 0;
}

/* Tables */
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 24px;
  font-family: var(--wen);
  font-size: 15px;
  background: var(--cream);
  border: 2px dashed rgba(184, 128, 74, 0.5);
  border-radius: 8px;
  overflow: hidden;
}

.legal thead { background: var(--cream-deep); }

.legal th {
  font-family: var(--serif-cn);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--sage-deep);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px dashed rgba(184, 128, 74, 0.4);
}

.legal td {
  padding: 12px 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  border-bottom: 1px dashed rgba(184, 128, 74, 0.25);
  vertical-align: top;
}

.legal tbody tr:last-child td { border-bottom: none; }
.legal tbody tr:hover { background: rgba(184, 128, 74, 0.06); }

@media (max-width: 640px) {
  .legal table { font-size: 13px; }
  .legal th, .legal td { padding: 10px 12px; }
}

/* Legal Indicator dots */
.legal-indicator {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 2px currentColor;
}

.legal-indicator--suisuian { background: var(--sage); color: var(--sage-deep); }
.legal-indicator--youxuezhi { background: var(--ochre); color: var(--ochre-deep); }
.legal-indicator--wenmai { background: var(--rust); color: var(--ink); }
.legal-indicator--qiyu { background: var(--terracotta); color: var(--rust); }

/* ========================================================= */
/* Support page                                              */
/* ========================================================= */
.contact-email {
  background: var(--cream-deep);
  padding: 32px 32px 28px;
  border-radius: 6px;
  text-align: center;
  margin: 32px 0 16px;
  transform: rotate(-0.5deg);
  box-shadow: 4px 4px 0 rgba(58, 46, 31, 0.1);
  position: relative;
}

.contact-email::before {
  content: "✉";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%) rotate(-8deg);
  width: 40px;
  height: 40px;
  background: var(--rust);
  color: var(--cream);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 2px 2px 0 rgba(58, 46, 31, 0.15);
}

.contact-email a {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--rust);
  text-decoration: none;
  border-bottom: 2px solid var(--ochre);
  padding-bottom: 2px;
  word-break: break-all;
  display: inline-block;
}

.contact-email a:hover { border-bottom-color: var(--rust); }

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0 48px;
}

.support-card {
  background: var(--cream-deep);
  padding: 24px 26px;
  border-radius: 14px;
  box-shadow: 3px 3px 0 rgba(58, 46, 31, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.support-card:nth-child(odd) { transform: rotate(-0.6deg); }
.support-card:nth-child(even) { transform: rotate(0.6deg); }

.support-card:hover {
  transform: rotate(0) translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(58, 46, 31, 0.12);
}

.support-card__title {
  font-family: var(--serif-cn);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-card p {
  font-family: var(--wen);
  font-size: 14px;
  color: var(--ink-mist);
  margin-bottom: 14px;
  max-width: 100%;
}

.support-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
}

.support-card li { margin: 0; padding: 0; }
.support-card li::before { display: none; }

.support-card a {
  font-family: var(--hand);
  font-size: 18px;
  color: var(--sage-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 1px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.support-card a::before { content: "→"; color: var(--ochre); }
.support-card a:hover { color: var(--rust); border-bottom-color: var(--sage); }

/* ========================================================= */
/* Reveal + reduced motion                                   */
/* ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}
