/* ponytail: 首页只用光影和草地，不画树叶蘑菇。要丛林实景时，给 .hero 换一张背景图。 */
:root {
  --canopy: #12351c;
  --leaf: #1f7a38;
  --sun: #ffd15a;
  --sun-deep: #e09412;
  --cream: #fff3d4;
  --paper: #fffaf0;
  --ink: #4a3018;
  --muted: #6d5340;
  --wood: #c4893f;
  --wood-dark: #7a4e22;
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans SC", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  background-color: var(--cream);
  background-image:
    radial-gradient(rgba(176, 112, 42, .16) 1.1px, transparent 1.3px),
    radial-gradient(rgba(210, 150, 70, .12) 1px, transparent 1.2px);
  background-size: 26px 26px, 15px 15px;
  background-position: 0 0, 7px 11px;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; font-family: "ZCOOL KuaiLe", "Noto Sans SC", cursive; font-weight: 400; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

.skip-link {
  position: fixed; z-index: 200; left: 12px; top: -80px;
  padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--ink);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header);
}
.site-header.is-stuck {
  position: fixed;
  background: var(--canopy);
  border-bottom: 4px solid var(--sun);
  box-shadow: 0 8px 20px rgba(8, 30, 14, .25);
}
.nav-wrap {
  width: min(1120px, calc(100% - 36px));
  height: 100%; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff8e8; font-weight: 900; font-size: 1.12rem; white-space: nowrap;
}
.brand b { font-family: Fredoka, "Noto Sans SC", sans-serif; font-weight: 700; letter-spacing: .02em; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 16px; object-fit: cover;
  border: 3px solid #fff3c4;
  box-shadow: 0 4px 0 var(--wood-dark);
}
.site-nav { display: flex; gap: 6px; }
.site-nav a {
  padding: 8px 14px; border-radius: 999px;
  color: #f4ffe8; font-weight: 700; font-size: 15px;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active {
  color: var(--ink); background: var(--sun);
}
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 14px;
  background: rgba(255, 243, 212, .16); padding: 12px; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 3px; margin: 5px 0; border-radius: 3px; background: #fff8e8;
  transition: transform .2s, opacity .2s;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  padding: 120px 20px 210px;
  background:
    radial-gradient(ellipse at 50% 36%, rgba(8, 32, 16, .08), rgba(8, 32, 16, .42) 62%),
    linear-gradient(180deg, #79c4ea 0%, #8fce86 26%, #2d8a40 58%, #166534 100%);
  overflow: hidden;
}
.jungle { position: absolute; inset: 0; pointer-events: none; }
.hill {
  position: absolute; left: -12%; right: -12%; bottom: -28%; height: 58%;
  border-radius: 50%;
  background: linear-gradient(#7bc85a, #2f8a38 55%, #1f6b30);
}
.hill-far {
  left: -20%; right: 18%; bottom: -8%; height: 46%;
  background: linear-gradient(#2f8a38, #166534);
  opacity: .9;
}

.hero-copy { position: relative; z-index: 1; max-width: 740px; }
.eyebrow {
  margin: 0 0 10px; color: var(--sun);
  font-weight: 800; letter-spacing: .12em; font-size: 14px;
}
.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5rem);
  text-shadow: 0 3px 0 rgba(20, 60, 24, .35), 0 16px 30px rgba(8, 30, 14, .35);
}
.hero h1 b { font-family: Fredoka, "Noto Sans SC", sans-serif; font-weight: 700; }
.hero-lead {
  margin: 16px auto 0; max-width: 18em;
  color: #f4ffe8; font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 500;
  text-shadow: 0 2px 10px rgba(8, 30, 14, .35);
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 26px; border-radius: 18px;
  font-weight: 800; border: 0; cursor: pointer;
}
.btn-sun {
  color: #5a3208;
  background: linear-gradient(#ffe27a, #f0b01a);
  box-shadow: 0 5px 0 #c47d0d;
}
.btn-sun:hover, .btn-sun:focus-visible { transform: translateY(-2px); }
.btn-ghost {
  color: #fff8e8;
  background: rgba(8, 30, 14, .28);
  box-shadow: inset 0 0 0 3px rgba(255, 243, 212, .7);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(8, 30, 14, .42); }
.hero-dino {
  position: absolute; z-index: 2;
  width: min(460px, 36vw); height: auto;
  right: 12px; bottom: -8px;
  background: transparent; pointer-events: none;
}

.band { position: relative; padding: 88px 0 20px; }
.wrap { width: min(1080px, calc(100% - 40px)); margin: auto; }
.section-heading { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.section-heading p:last-child, .stop > p, .farewell-card p:last-child { color: var(--muted); }
.band .eyebrow { color: #c47d0d; }

.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.skill {
  padding: 26px 20px 22px; border-radius: 28px;
  background: var(--paper);
  border: 3px solid #f3e0b8;
  box-shadow: 0 8px 0 #e4c48a;
}
.skill:hover { transform: translateY(-6px); }
.skill-icon {
  display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 16px;
  border-radius: 20px; color: #5a3208;
  background: linear-gradient(#ffe27a, #f0b01a);
  box-shadow: 0 4px 0 #e09412;
}
.skill h3 { margin-bottom: 8px; font-size: 1.45rem; }
.skill p { color: var(--muted); font-size: 15px; }

.trail { padding-bottom: 36px; }
.peek {
  position: absolute; right: 0; bottom: 80px; width: 118px;
  border-radius: 40px 0 0 40px; border: 5px solid #fff3c4; border-right: 0;
  box-shadow: -6px 8px 0 rgba(90, 50, 8, .12);
}
.trail-wrap { max-width: 820px; }
.stop { margin: 0 auto 54px; text-align: center; }
.stop > p { max-width: 36em; margin: 16px auto 0; }
.plaque {
  display: inline-block; margin: 0 auto 16px; padding: 10px 34px;
  border-radius: 16px; color: #5a3208;
  background: linear-gradient(#ffe27a, #f0b01a);
  box-shadow: 0 5px 0 #c47d0d;
  font-size: 1.45rem;
}
.wood {
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .28), transparent 28%),
    repeating-linear-gradient(90deg, #e2b56a 0 18px, #d09a45 18px 20px, #c4893f 20px 38px);
  box-shadow:
    inset 0 0 0 3px #a86d32,
    inset 0 0 0 7px #f0d7a4,
    0 12px 0 var(--wood-dark),
    0 20px 24px rgba(80, 42, 10, .18);
}
.wood img {
  width: 100%; aspect-ratio: 1024 / 473; object-fit: cover;
  border-radius: 4px; background: #fff;
}
.level-row {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin: 16px 0 0; padding: 0; list-style: none;
}
.level-row li {
  min-width: 42px; padding: 6px 10px; border-radius: 999px;
  background: #fffaf0; border: 2px solid #e4c48a;
  font-family: Fredoka, "Noto Sans SC", sans-serif; font-weight: 700;
}

.farewell { padding: 24px 0 8px; }
.farewell-card {
  width: min(1080px, calc(100% - 40px)); margin: auto;
  display: grid; grid-template-columns: 168px 1fr; gap: 22px; align-items: center;
  padding: 22px 32px; border-radius: 36px; color: #f4ffe8;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 229, 106, .35), transparent 36%),
    linear-gradient(135deg, #1f7a38, #0f3d22);
  box-shadow: 0 12px 0 #0c2e18;
}
.farewell-card img {
  width: 168px; height: 168px; object-fit: cover; border-radius: 32px;
  border: 5px solid #fff3c4;
}
.farewell-card h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 8px; }
.farewell-card p:last-child { color: #e5f6d8; max-width: 40em; }
.farewell .eyebrow { color: var(--sun); }

.site-footer {
  margin-top: 48px; padding: 36px 0 18px;
  background: var(--canopy); color: #d7ecc8;
}
.footer-inner, .copyright {
  width: min(1080px, calc(100% - 40px)); margin: auto;
}
.footer-inner { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 22px; }
.footer-brand p { margin-top: 10px; max-width: 28em; color: #b7d7b0; font-size: 14px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { color: #fff; font-weight: 700; }
.footer-contact a:hover, .copyright a:hover { color: var(--sun); }
.copyright {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid rgba(255, 243, 212, .16);
  color: #9ec49a; font-size: 13px;
}

.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--sun); color: #5a3208; font-size: 20px; font-weight: 800;
  box-shadow: 0 4px 0 #c47d0d; cursor: pointer;
  opacity: 0; visibility: hidden;
}
.to-top.is-on { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-2px); }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .peek { display: none; }
}
@media (max-width: 980px) {
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .hero-dino { width: min(400px, 44vw); right: 8px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-8px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: calc(100% + 8px); left: 16px; right: 16px;
    display: grid; padding: 8px; border-radius: 18px;
    background: #fffaf0; border: 3px solid #f3e0b8;
    box-shadow: 0 10px 0 #e4c48a;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { color: var(--ink); padding: 12px 14px; }
  .site-nav a.is-active, .site-nav a:hover { background: var(--sun); }
  .hero { min-height: auto; padding: 118px 18px 36px; }
  .hero-dino {
    position: relative; right: auto; bottom: auto;
    align-self: flex-end;
    width: min(300px, 72vw); margin: 12px 4px 0 0;
  }
  .skill-grid { grid-template-columns: 1fr; }
  .farewell-card { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px 18px; }
  .footer-inner, .copyright { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
