@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

:root{
  --ink:#192617;
  --ink-0:#0c150c;
  --neon:#87ff71;
  --cyan:#01cdfe;
  --pink:#ff71ce;
  --violet:#b967ff;
  --text:#e6ffe9;
  --muted:#a9c7ad;
  --line:rgba(135,255,113,.22);
  --r:28px;
  --head:'Fredoka','Nunito',system-ui,-apple-system,'Segoe UI',sans-serif;
  --body:'Nunito',system-ui,-apple-system,'PingFang SC','Microsoft YaHei',sans-serif;
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}

body{
  margin:0;
  font-family:var(--body);
  font-size:17px;
  line-height:1.75;
  color:var(--text);
  background:
    radial-gradient(58vw 42vw at 88% -8%, rgba(185,103,255,.20), transparent 62%),
    radial-gradient(52vw 40vw at -6% 6%, rgba(1,205,254,.16), transparent 60%),
    linear-gradient(180deg,#0c150c,#192617 46%,#101a0e 100%);
  background-attachment:fixed;
  overflow-x:hidden;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:60;
  pointer-events:none;
  background:repeating-linear-gradient(180deg, rgba(255,255,255,.055) 0 1px, transparent 1px 3px);
  mix-blend-mode:overlay;
  opacity:.55;
}

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

a{color:var(--neon);text-decoration-thickness:1px;text-underline-offset:3px}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

.skip{
  position:absolute;left:-9999px;top:0;z-index:80;
  padding:10px 16px;border-radius:0 0 14px 0;
  background:var(--neon);color:var(--ink);font-weight:700;text-decoration:none;
}
.skip:focus{left:0}

.shell{
  display:grid;
  grid-template-columns:264px minmax(0,1fr);
  grid-template-areas:
    "rail main"
    "foot foot";
  min-height:100vh;
}

/* ---------- 侧栏 ---------- */
.rail{
  grid-area:rail;
  position:sticky;
  top:0;
  align-self:start;
  height:100vh;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding:20px 16px 22px;
  overflow:auto;
  border-right:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,113,206,.14), rgba(1,205,254,.08) 46%, rgba(12,21,12,.94));
  backdrop-filter:blur(6px);
}

.brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  padding:8px 0 16px;
  border-bottom:1px solid var(--line);
  text-align:center;
}

.brand .mark{
  width:44px;height:44px;border-radius:50%;
  border:2px solid var(--neon);
  box-shadow:0 0 20px rgba(135,255,113,.55);
}

.brand-txt{
  font-family:var(--head);
  font-weight:600;
  font-size:1.16rem;
  letter-spacing:.16em;
  color:var(--neon);
  text-decoration:none;
  text-shadow:0 0 14px rgba(135,255,113,.6), 2px 0 0 rgba(255,113,206,.8), -2px 0 0 rgba(1,205,254,.8);
  padding:6px 4px;
  min-height:40px;
  display:flex;
  align-items:center;
}

.menu{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.menu ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.menu-set--b{padding-top:12px;border-top:1px dashed var(--line)}

.menu li{animation:slideIn .5s both}
.menu li:nth-child(1){animation-delay:.05s}
.menu li:nth-child(2){animation-delay:.1s}
.menu li:nth-child(3){animation-delay:.15s}
.menu li:nth-child(4){animation-delay:.2s}
.menu li:nth-child(5){animation-delay:.25s}

@keyframes slideIn{
  from{opacity:0;transform:translateX(-12px)}
  to{opacity:1;transform:none}
}

.menu a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:9px 13px;
  border-radius:14px;
  border:1px solid transparent;
  color:var(--text);
  font-size:1rem;
  text-decoration:none;
  transition:transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.menu a:hover,
.menu a:focus-visible{
  color:var(--neon);
  background:rgba(135,255,113,.12);
  border-color:var(--line);
  transform:translateX(6px);
  box-shadow:-4px 0 0 0 var(--neon), 0 0 22px -8px var(--neon);
}

.menu a.is-on{
  color:var(--neon);
  background:rgba(135,255,113,.15);
  border-color:var(--neon);
}

.search{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding-top:14px;
  border-top:1px dashed var(--line);
}

.search input{
  min-height:44px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(12,21,12,.75);
  color:var(--text);
  font:inherit;
  font-size:.95rem;
}

.search input:focus-visible{
  outline:2px solid var(--cyan);
  outline-offset:2px;
}

.search button{
  min-height:44px;
  border:0;
  border-radius:999px;
  font:inherit;
  font-weight:700;
  letter-spacing:.1em;
  color:var(--ink);
  background:linear-gradient(90deg,var(--neon),var(--cyan));
  box-shadow:0 0 20px rgba(1,205,254,.45);
  cursor:pointer;
  transition:filter .2s ease, transform .2s ease;
}

.search button:hover{filter:hue-rotate(-25deg);transform:translateY(-1px)}

/* ---------- 主体 ---------- */
main{grid-area:main;min-width:0;padding:22px 0 0}

.wrap{
  max-width:1060px;
  margin:0 auto;
  padding:0 28px 76px;
}

.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  min-height:min(70vh, 620px);
  padding:64px 26px;
  border-radius:var(--r);
  border:1px solid rgba(1,205,254,.28);
  background:
    radial-gradient(120% 92% at 50% 118%, rgba(255,113,206,.34), transparent 62%),
    radial-gradient(88% 70% at 16% -6%, rgba(1,205,254,.30), transparent 60%),
    linear-gradient(180deg, rgba(185,103,255,.26), rgba(25,38,23,.92) 58%, #192617);
  box-shadow:
    inset 0 0 0 1px rgba(135,255,113,.12),
    0 40px 90px -50px rgba(1,205,254,.85);
}

.hero-art{position:absolute;inset:0;z-index:-1;pointer-events:none}

.sun{
  position:absolute;
  left:50%;
  bottom:16%;
  width:min(340px, 74%);
  aspect-ratio:1;
  transform:translateX(-50%);
  border-radius:50%;
  opacity:.6;
  background:linear-gradient(180deg,#ffe4f6,#ff71ce 34%,#b967ff 68%,#01cdfe);
  -webkit-mask-image:repeating-linear-gradient(180deg,#000 0 15px,transparent 15px 20px);
  mask-image:repeating-linear-gradient(180deg,#000 0 15px,transparent 15px 20px);
}

.grid-floor{
  position:absolute;
  left:-25%;
  right:-25%;
  bottom:-14%;
  height:58%;
  opacity:.55;
  transform:perspective(340px) rotateX(66deg);
  transform-origin:bottom center;
  background:
    repeating-linear-gradient(90deg, rgba(1,205,254,.42) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, rgba(1,205,254,.42) 0 1px, transparent 1px 42px);
}

.hero-copy{
  position:relative;
  z-index:2;
  max-width:min(600px, 94%);
}

.badge{
  display:inline-block;
  margin:0 0 20px;
  padding:5px 18px;
  border-radius:999px;
  font-family:var(--head);
  font-size:.88rem;
  letter-spacing:.26em;
  color:var(--ink);
  background:linear-gradient(90deg,var(--neon),var(--cyan));
  box-shadow:0 0 26px rgba(135,255,113,.65);
}

.hero h1{
  margin:0;
  font-family:var(--head);
  font-weight:700;
  font-size:clamp(2.1rem, 5.6vw, 4.2rem);
  line-height:1.14;
  letter-spacing:.02em;
  color:#f5fff7;
  text-shadow:
    0 0 30px rgba(135,255,113,.6),
    3px 0 0 rgba(255,113,206,.8),
    -3px 0 0 rgba(1,205,254,.8);
  animation:glitch 6s steps(1) infinite;
}

@keyframes glitch{
  0%,90%,100%{transform:none}
  91%{transform:translate(2px,-2px)}
  93%{transform:translate(-3px,1px)}
  95%{transform:translate(1px,2px)}
}

.lede{
  margin:20px auto 0;
  max-width:34ch;
  font-size:1.02rem;
  color:#d9ecdd;
}

.hero-collage{position:absolute;inset:0;z-index:1;pointer-events:none}

.shot{
  position:absolute;
  margin:0;
  width:172px;
  aspect-ratio:3 / 4;
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(1,205,254,.55);
  background:linear-gradient(160deg, rgba(255,113,206,.55), rgba(1,205,254,.4));
  box-shadow:0 26px 54px -26px #000, 0 0 0 6px rgba(12,21,12,.55);
}

.shot-a{left:3.5%;top:11%;transform:rotate(-7deg)}
.shot-b{right:3.5%;bottom:11%;transform:rotate(6deg)}

.shot-img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:hue-rotate(-14deg) saturate(1.15) contrast(1.05);
}

/* ---------- 正文 ---------- */
.content{margin-top:36px}

.prose{
  max-width:820px;
  margin:0 auto;
  font-size:1.06rem;
  color:#dcf0e0;
}

.prose section{scroll-margin-top:24px}

.prose section + section{
  margin-top:64px;
  padding-top:44px;
  border-top:1px dashed var(--line);
}

.prose h2{
  margin:0 0 20px;
  font-family:var(--head);
  font-weight:600;
  font-size:clamp(1.5rem, 3.2vw, 2.1rem);
  line-height:1.3;
  color:var(--neon);
  text-shadow:0 0 18px rgba(135,255,113,.45), 2px 0 0 rgba(255,113,206,.5);
}

.prose h2 > span,
.prose h3 > span{display:inline-block;position:relative}

.prose h2 > span::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-7px;
  height:3px;
  border-radius:3px;
  background:linear-gradient(90deg, var(--neon), var(--cyan), transparent);
}

.prose h3{
  margin:38px 0 14px;
  font-family:var(--head);
  font-weight:600;
  font-size:clamp(1.2rem, 2.4vw, 1.45rem);
  color:#d6ffe0;
}

.prose h3 > span::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-4px;
  height:2px;
  background:linear-gradient(90deg, var(--cyan), transparent);
}

.prose p{margin:0 0 18px}

.prose ul,
.prose ol{margin:0 0 20px;padding-left:1.3em}

.prose li{margin:0 0 10px}

.prose li::marker{color:var(--neon)}

.prose strong{color:#f2fff5}

.prose a{border-bottom:1px solid rgba(135,255,113,.4)}

.prose blockquote{
  margin:26px 0;
  padding:20px 22px;
  border-radius:18px;
  border-left:4px solid var(--cyan);
  background:rgba(1,205,254,.09);
  color:#e9fff0;
}

.prose blockquote p:last-child{margin-bottom:0}

.prose figure{margin:26px 0}

.prose figcaption{
  margin-top:10px;
  font-size:.92rem;
  color:var(--muted);
}

.prose img{border-radius:18px}

.prose hr{
  margin:34px 0;
  border:0;
  border-top:1px dashed var(--line);
}

/* ---------- 页脚 ---------- */
.foot{
  grid-area:foot;
  border-top:1px solid var(--line);
  background:linear-gradient(90deg, rgba(255,113,206,.14), rgba(1,205,254,.12));
}

.foot-in{
  max-width:1060px;
  margin:0 auto;
  padding:12px 28px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  flex-wrap:wrap;
}

.foot-brand{
  font-family:var(--head);
  font-weight:600;
  letter-spacing:.14em;
  color:var(--neon);
  text-decoration:none;
  padding:8px 6px;
  min-height:40px;
  display:flex;
  align-items:center;
}

.foot-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:4px;
}

.foot-nav a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:6px 11px;
  border-radius:10px;
  color:var(--muted);
  font-size:.95rem;
  text-decoration:none;
  transition:color .2s ease, background .2s ease;
}

.foot-nav a:hover,
.foot-nav a:focus-visible{color:var(--neon);background:rgba(135,255,113,.12)}

.copy{
  font-size:.92rem;
  color:var(--muted);
  letter-spacing:.08em;
}

/* ---------- 窄屏 ---------- */
@media (max-width:900px){
  .shell{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:
      "rail"
      "main"
      "foot";
  }

  /* 导航压成顶部吸顶横条，保证 h1 进入首屏 */
  .rail{
    position:sticky;
    top:0;
    z-index:50;
    height:auto;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:6px 10px;
    padding:6px 12px 8px;
    overflow:visible;
    border-right:0;
    border-bottom:1px solid var(--line);
    background:linear-gradient(90deg, rgba(255,113,206,.22), rgba(1,205,254,.16) 52%, rgba(12,21,12,.96));
    backdrop-filter:blur(9px);
  }

  .brand{
    order:1;
    flex:0 0 auto;
    flex-direction:row;
    justify-content:flex-start;
    align-items:center;
    gap:7px;
    padding:0;
    border-bottom:0;
  }

  .brand .mark{width:30px;height:30px;border-width:1px}

  .brand-txt{
    font-size:1rem;
    letter-spacing:.08em;
    padding:0;
    min-height:40px;
    white-space:nowrap;
  }

  .menu{
    order:2;
    flex:1 1 120px;
    min-width:0;
    flex-direction:row;
    gap:8px;
    overflow-x:auto;
    scrollbar-width:none;
    padding:2px 0;
  }

  .menu::-webkit-scrollbar{display:none}

  .menu ul{
    flex:0 0 auto;
    flex-direction:row;
    gap:8px;
  }

  .menu-set--b{padding-top:0;border-top:0}

  .menu li{animation:none}

  .menu a{
    min-height:40px;
    padding:6px 12px;
    border-radius:999px;
    font-size:.95rem;
    white-space:nowrap;
    transform:none;
  }

  .menu a:hover,
  .menu a:focus-visible{transform:translateY(-2px);box-shadow:0 6px 18px -10px var(--neon)}

  .search{
    order:3;
    flex:1 0 100%;
    margin-top:0;
    flex-direction:row;
    gap:8px;
    padding-top:7px;
    border-top:1px dashed var(--line);
  }

  .search input{flex:1;min-width:0;min-height:40px}
  .search button{min-height:40px;padding:0 18px}

  main{padding-top:14px}

  .wrap{padding:0 16px 56px}

  /* 图上字下：文案先出现，拼贴图随其后 */
  .hero{
    min-height:0;
    justify-content:flex-start;
    padding:26px 18px 30px;
    border-radius:22px;
  }

  .hero-copy{order:1;max-width:100%}

  .badge{margin-bottom:12px;font-size:.8rem;letter-spacing:.2em}

  .hero h1{font-size:clamp(1.85rem, 8.4vw, 2.6rem)}

  .lede{margin-top:14px;max-width:30ch}

  .hero-collage{
    order:2;
    position:static;
    display:flex;
    justify-content:center;
    gap:14px;
    margin-top:24px;
  }

  .shot{
    position:static;
    width:112px;
    aspect-ratio:auto;
    height:140px;
    box-shadow:0 16px 32px -18px #000;
  }

  .shot-a{transform:rotate(-5deg)}
  .shot-b{transform:rotate(5deg)}

  .content{margin-top:28px}

  .prose{font-size:1.04rem}

  .prose section{scroll-margin-top:136px}

  .prose section + section{
    margin-top:48px;
    padding-top:34px;
  }

  .foot-in{padding:10px 16px;gap:8px}
}

@media (max-width:420px){
  .hero h1{font-size:1.8rem}
  .brand-txt{font-size:.98rem}
  .shot{width:98px;height:124px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
