@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Crimson+Pro:wght@400;500;600;700&display=swap');

:root{
  --ink:#192617;
  --ink2:#101a10;
  --green:#87ff71;
  --yellow:#ffce5c;
  --paper:#eaf6e4;
  --muted:#b7d4ac;
  --glass:rgba(234,246,228,.07);
  --line:rgba(135,255,113,.3);
  --serif:"Crimson Pro",Georgia,"Songti SC","Noto Serif SC",serif;
  --sans:"Atkinson Hyperlegible",system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
}

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

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

body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.72;
  color:var(--paper);
  background-color:var(--ink);
  background-image:
    radial-gradient(circle at 10% 0%,rgba(255,206,92,.18),transparent 40%),
    radial-gradient(circle at 92% 6%,rgba(135,255,113,.16),transparent 44%),
    radial-gradient(rgba(234,246,228,.10) 1px,transparent 1px);
  background-size:auto,auto,20px 20px;
  overflow-x:clip;
}

img{max-width:100%;height:auto;display:block}
a{color:var(--green)}
p{margin:0 0 1em}
h1,h2,h3,h4{font-family:var(--serif);font-weight:600;line-height:1.24;margin:0 0 .5em}

hr{
  border:0;
  border-top:2px dashed var(--yellow);
  margin:.45rem 0 1rem;
}
h2 + hr{margin-top:.1rem}

::selection{background:var(--yellow);color:var(--ink)}

:focus-visible{
  outline:3px solid var(--yellow);
  outline-offset:2px;
}

@media (min-width:900px){
  body{font-size:18px}
}

/* ---------- 顶部细条 ---------- */
.topstrip{
  display:flex;
  align-items:center;
  gap:.7rem;
  padding:.3rem 1rem;
  background:var(--yellow);
  color:var(--ink);
  border-bottom:2px solid var(--ink);
  font-size:.9rem;
  letter-spacing:.16em;
  min-height:32px;
}
.squig{
  flex:0 0 48px;
  height:10px;
  background-repeat:repeat-x;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='10' viewBox='0 0 48 10'%3E%3Cpath d='M0 5q6-6 12 0t12 0t12 0t12 0' fill='none' stroke='%23192617' stroke-width='2'/%3E%3C/svg%3E");
}
.stripword{font-weight:700;text-transform:uppercase}
.striptri{
  width:0;height:0;
  margin-left:auto;
  border-left:7px solid transparent;
  border-right:7px solid transparent;
  border-bottom:11px solid var(--ink);
  transform:rotate(18deg);
}

/* ---------- 页头 ---------- */
.masthead{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(16,26,16,.92);
  backdrop-filter:blur(10px);
  border-bottom:2px solid var(--green);
}
.brandrow{
  display:flex;
  align-items:center;
  padding:.35rem 1rem .1rem;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  min-height:44px;
  padding:.2rem .3rem;
  font-family:var(--serif);
  font-size:1.35rem;
  font-weight:700;
  letter-spacing:.05em;
  color:var(--paper);
  text-decoration:none;
}
.brand .mark{
  width:34px;
  height:34px;
  border:2px solid var(--ink);
  border-radius:4px;
  background:var(--green);
  object-fit:cover;
}
.brand:hover span{color:var(--green)}

.pillnav{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  padding:0 1rem .6rem;
}
.pill{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:.4rem .85rem;
  border:1.5px dashed var(--line);
  border-radius:999px;
  background:rgba(135,255,113,.06);
  color:var(--paper);
  font-size:.94rem;
  text-decoration:none;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.pill:hover,
.pill:focus-visible{
  background:var(--green);
  color:var(--ink);
  border-style:solid;
  border-color:var(--green);
  transform:rotate(-1.8deg);
}

/* ---------- 首屏 ---------- */
.hero{
  position:relative;
  overflow:hidden;
  min-height:70vh;
  display:grid;
  grid-template-columns:1fr;
  align-content:center;
  gap:1.4rem;
  padding:2rem 1rem 2.6rem;
  border-bottom:3px dashed var(--line);
}
.bigword{
  position:absolute;
  left:-.04em;
  bottom:2%;
  margin:0;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(2.6rem,12vw,10rem);
  line-height:.8;
  letter-spacing:.01em;
  white-space:nowrap;
  color:transparent;
  -webkit-text-stroke:2px rgba(135,255,113,.32);
  pointer-events:none;
  mix-blend-mode:screen;
}
.collage{
  position:relative;
  min-height:32vh;
}
.collage::before{
  content:"";
  position:absolute;
  left:5%;
  top:6%;
  width:54%;
  height:74%;
  background:var(--yellow);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  opacity:.82;
}
.collage::after{
  content:"";
  position:absolute;
  right:6%;
  bottom:4%;
  width:33%;
  height:33%;
  border-radius:50%;
  background:var(--green);
  mix-blend-mode:screen;
}
.collage img{
  position:absolute;
  object-fit:cover;
  border:3px solid var(--ink2);
  border-radius:4px;
  box-shadow:9px 9px 0 rgba(135,255,113,.3);
}
.collage .a{left:0;top:4%;width:58%;transform:rotate(-4deg);z-index:2}
.collage .b{right:0;bottom:0;width:52%;transform:rotate(5deg);z-index:3}

.herocopy{text-align:right}
.hero h1{
  display:inline-block;
  margin:0;
  padding:.18em .35em;
  font-size:clamp(1.85rem,6.4vw,3.4rem);
  color:var(--paper);
  border-right:6px solid var(--yellow);
  background:linear-gradient(100deg,transparent 0 9%,rgba(255,206,92,.24) 9% 100%);
  border-radius:4px 0 0 4px;
}

@media (min-width:860px){
  .hero{
    grid-template-columns:1.02fr .98fr;
    align-items:center;
    padding:2.6rem 2rem 3rem;
    max-width:1180px;
    margin:0 auto;
  }
  .collage{order:1;min-height:46vh}
  .herocopy{order:2}
  .bigword{left:-2%;bottom:-2%}
}

/* ---------- 正文 ---------- */
.wrap{
  display:grid;
  grid-template-columns:1fr;
  gap:1.4rem;
  max-width:1180px;
  margin:0 auto;
  padding:1.3rem 1rem 2.2rem;
}
@media (min-width:960px){
  .wrap{grid-template-columns:minmax(0,1fr) 17rem;gap:2rem;align-items:start}
}

article[id]{scroll-margin-top:160px}

.content{min-width:0}
div{min-width:0}

div > article{
  position:relative;
  padding:1.5rem 1.15rem;
  margin:0 0 1.6rem;
  background:var(--glass);
  border:1px solid var(--line);
  border-radius:4px;
  backdrop-filter:blur(8px);
  box-shadow:inset 0 1px 0 rgba(234,246,228,.07);
}
div > article:nth-child(odd){border-left:4px solid var(--green)}
div > article:nth-child(even){border-left:4px solid var(--yellow)}
div > article::after{
  content:"";
  position:absolute;
  right:.75rem;
  top:.75rem;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--yellow);
  mix-blend-mode:screen;
}
div > article:nth-child(3n)::after{
  width:0;height:0;
  border-radius:0;
  background:none;
  border-left:8px solid transparent;
  border-right:8px solid transparent;
  border-bottom:13px solid var(--green);
}

div h2{
  margin-top:0;
  font-size:1.5rem;
  color:var(--green);
  letter-spacing:.02em;
}
div h3{
  font-size:1.16rem;
  color:var(--yellow);
}
div p,
div li{max-width:66ch}
div ul,
div ol{padding-left:1.25rem;margin:0 0 1em}
div li{margin-bottom:.35rem}
div a{color:var(--yellow);text-decoration:underline dotted}
div a:hover{color:var(--green)}
div strong{color:var(--green)}
div blockquote{
  margin:1rem 0;
  padding:.6rem 1rem;
  border-left:3px solid var(--yellow);
  background:rgba(255,206,92,.08);
  font-family:var(--serif);
  font-size:1.06rem;
}
div blockquote p:last-child{margin-bottom:0}
div figure{margin:0 0 1rem}
div img{
  border:2px solid var(--line);
  border-radius:4px;
}
div table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 1rem;
  font-size:.98rem;
}
div th,
div td{
  border:1px dashed var(--line);
  padding:.4rem .55rem;
  text-align:left;
}
div th{color:var(--yellow)}

/* ---------- 侧栏 ---------- */
.rail{
  padding:1rem .9rem;
  background:rgba(255,206,92,.06);
  border:1px dashed var(--yellow);
  border-radius:4px;
}
@media (min-width:960px){
  .rail{position:sticky;top:160px}
}
.rail h2{
  margin:0 0 .2rem;
  font-size:1.05rem;
  letter-spacing:.2em;
  color:var(--yellow);
}
.rail ul{list-style:none;margin:0;padding:0}
.rail li a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:.25rem .1rem;
  border-bottom:1px dotted var(--line);
  color:var(--paper);
  font-size:.96rem;
  text-decoration:none;
  transition:padding .18s ease,color .18s ease;
}
.rail li:last-child a{border-bottom:0}
.rail li a:hover{
  padding-left:.5rem;
  color:var(--green);
}

/* ---------- 页脚 ---------- */
footer{
  margin-top:2rem;
  padding:1.7rem 1rem 1.3rem;
  border-top:3px solid var(--green);
  background:
    linear-gradient(180deg,rgba(135,255,113,.09),transparent 45%),
    var(--ink2);
}
.gigabrand{
  margin:0 0 1.1rem;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(1.9rem,9vw,4.3rem);
  line-height:.95;
  letter-spacing:.03em;
  text-align:center;
  color:transparent;
  -webkit-text-stroke:1.5px var(--green);
}
.fgrid{
  display:grid;
  grid-template-columns:1fr;
  gap:1.2rem;
  max-width:1180px;
  margin:0 auto;
}
.fnav{
  display:grid;
  grid-template-columns:1fr;
  gap:1.1rem;
}
@media (min-width:700px){
  .fgrid{grid-template-columns:repeat(4,1fr)}
  .fnav{grid-column:span 3;grid-template-columns:repeat(3,1fr)}
}
.fnav dt{
  font-family:var(--serif);
  font-size:1rem;
  letter-spacing:.2em;
  color:var(--yellow);
  padding-bottom:.3rem;
  margin-bottom:.35rem;
  border-bottom:1px dashed var(--line);
}
.fnav dd{margin:0}
.fnav dd a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:.2rem 0;
  color:var(--paper);
  font-size:.97rem;
  text-decoration:none;
}
.fnav dd a:hover{color:var(--green);text-decoration:underline dotted}
.fcol4 a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:.45rem .95rem;
  border:1.5px solid var(--yellow);
  border-radius:999px;
  color:var(--yellow);
  font-size:.95rem;
  text-decoration:none;
  transition:background .18s ease,color .18s ease;
}
.fcol4 a:hover{background:var(--yellow);color:var(--ink)}
.copy{
  margin:1.5rem 0 0;
  text-align:center;
  font-size:.9rem;
  letter-spacing:.1em;
  color:var(--muted);
}

/* ---------- 滚动显现 ---------- */
.reveal{
  opacity:0;
  transform:translateY(18px) rotate(.3deg);
}
.reveal.in{
  opacity:1;
  transform:none;
  transition:opacity .55s ease,transform .55s ease;
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .pill:hover,.pill:focus-visible{transform:none}
}

@media (min-width:700px){
  .topstrip{padding:.3rem 2rem}
  .brandrow,.pillnav{padding-left:2rem;padding-right:2rem}
  .hero{padding-left:2rem;padding-right:2rem}
}

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