@import url('https://fonts.googleapis.com/css2?family=Calistoga:ital@0;1&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  --green:#00ff80;
  --blue:#0000ff;
  --ink:#000000;
  --paper:#f2fff8;
  --dim:#9fd9bb;
  --line:#12301f;
}

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

html{
  background:var(--ink);
  color:var(--paper);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:17px;
  line-height:1.65;
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
}

body{
  margin:0;
  padding-bottom:108px;
  overflow-x:hidden;
  background:var(--ink);
}

h1,h2,h3{
  font-family:Calistoga,"Songti SC",Georgia,serif;
  font-weight:700;
  line-height:1.1;
  letter-spacing:-.015em;
  margin:0 0 .55em;
}
h1{font-size:clamp(2.05rem,7vw,4.3rem)}
h2{font-size:clamp(1.45rem,3.4vw,2.1rem)}
h3{font-size:1.2rem}
p{margin:0 0 1em}
img{max-width:100%;height:auto;display:block}
a{color:var(--green)}
ul,ol{margin:0 0 1em;padding-left:1.2em}
li{margin:0 0 .4em}
time{font-variant-numeric:tabular-nums;font-weight:600;letter-spacing:.02em}
code,pre{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:.95em}
pre{overflow-x:auto;padding:14px;border:4px solid var(--green);border-radius:0}
blockquote{margin:0 0 1em;padding:2px 0 2px 16px;border-left:8px solid var(--green)}
hr{border:0;border-top:4px solid var(--green);margin:14px 0 22px}

:focus-visible{outline:4px solid var(--green);outline-offset:2px}

.skip{position:fixed;left:-9999px;top:12px;background:var(--green);color:#000;padding:12px 16px;font-weight:700;text-decoration:none;z-index:99}
.skip:focus{left:12px}

[id]{scroll-margin-top:24px;scroll-margin-bottom:118px}

/* 底部固定条 */
.bar{
  position:fixed;
  inset:auto 0 0 0;
  z-index:60;
  display:flex;
  align-items:stretch;
  gap:6px;
  min-height:64px;
  padding:6px 10px;
  background:#000;
  border-top:4px solid var(--green);
}
.bar-brand{
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 8px;
  color:var(--paper);
  text-decoration:none;
  font-family:Calistoga,serif;
  font-weight:700;
  font-size:1rem;
  white-space:nowrap;
  border:2px solid transparent;
}
.bar-brand:hover{border-color:var(--green)}
.dotmark{width:14px;height:14px;background:var(--green);flex:none}
.bar-name{max-width:9em;overflow:hidden;text-overflow:ellipsis}
.bar-strip{
  display:flex;
  align-items:stretch;
  gap:4px;
  flex:1;
  min-width:0;
  overflow-x:auto;
  scrollbar-width:none;
}
.bar-strip::-webkit-scrollbar{display:none}
.bar-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:44px;
  padding:0 12px;
  color:var(--paper);
  text-decoration:none;
  font-size:.95rem;
  white-space:nowrap;
  border:2px solid transparent;
}
.bar-dot{width:8px;height:8px;fill:var(--green);flex:none}
.bar-link:hover,.bar-link:focus-visible{background:var(--green);color:#000;border-color:var(--green)}
.bar-link:hover .bar-dot,.bar-link:focus-visible .bar-dot{fill:#000}
.bar-cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 18px;
  background:var(--blue);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  white-space:nowrap;
}
.bar-cta:hover,.bar-cta:focus-visible{background:var(--green);color:#000}

/* 版心 */
.shell{
  max-width:1240px;
  margin:0 auto;
  padding:20px 18px 0;
  display:grid;
  gap:36px;
}
@media(min-width:920px){
  .shell{grid-template-columns:minmax(0,1fr) 300px;gap:48px;padding-top:28px}
}

main{min-width:0}
section{min-width:0}

/* 首屏 */
.hero{
  min-height:70vh;
  display:grid;
  gap:24px;
  align-content:center;
  padding:8px 0 44px;
  border-bottom:6px solid var(--green);
}
@media(min-width:820px){
  .hero{grid-template-columns:1.2fr .8fr;align-items:center;min-height:70vh}
}
.hero h1{margin:0 0 18px}
.hero-copy p{max-width:44ch;margin:0;color:#c3ffdf;font-size:1.05rem}
.hero-art{
  margin:0;
  display:grid;
  place-items:center;
  aspect-ratio:5/4;
  background:var(--blue);
  border-radius:28px;
  overflow:hidden;
}
.hero-img{width:100%;height:100%;object-fit:cover}
.hero-plate{
  display:block;
  width:100%;
  height:100%;
  background:repeating-linear-gradient(135deg,#0000ff 0 20px,#00ff80 20px 26px);
}

/* 正文章节 */
section > article:not(.hero){
  padding:34px 0;
  border-top:4px solid var(--line);
}
section > article:not(.hero) h2{color:inherit;margin-top:0}
section > article:not(.hero) a{color:inherit;text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:3px}
section > article:not(.hero) hr{border-top-color:currentColor;opacity:.9}
section > article:not(.hero):nth-of-type(2n){
  background:var(--blue);
  color:#fff;
  border-top:0;
  border-radius:28px;
  padding:34px 22px;
}
section > article:not(.hero):nth-of-type(3n){
  background:var(--green);
  color:#000;
  border-top:0;
  border-radius:28px;
  padding:34px 22px;
}

/* 右栏 */
.rail{
  align-self:start;
  background:var(--green);
  color:#000;
  border-radius:28px;
  padding:22px 20px;
}
@media(min-width:920px){
  .rail{position:sticky;top:24px}
}
.rail h2{margin:0 0 10px;font-size:1.3rem;color:#000}
.rail hr{border:0;border-top:4px solid #000;margin:0 0 12px}
.rail-nav{display:grid}
.rail-nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 0;
  color:#000;
  text-decoration:none;
  font-weight:600;
  border-bottom:2px solid rgba(0,0,0,.22);
}
.rail-nav a:last-child{border-bottom:0}
.rail-nav a:hover,.rail-nav a:focus-visible{background:#000;color:var(--green);padding-left:8px}

/* 页脚 */
.foot{
  max-width:1240px;
  margin:56px auto 0;
  padding:28px 18px 44px;
  display:grid;
  gap:24px;
  border-top:6px solid var(--green);
}
@media(min-width:760px){
  .foot{grid-template-columns:1.05fr .95fr;align-items:start;gap:28px}
  .foot-bar,.foot-sub{grid-column:1 / -1}
}
.foot article{margin:0}
.foot-brand{
  display:grid;
  gap:12px;
  align-content:start;
  padding:24px 22px;
  background:var(--blue);
  color:#fff;
  border-radius:28px;
}
.foot-chip{display:block;width:26px;height:26px;background:var(--green)}
.foot-name{
  font-family:Calistoga,serif;
  font-weight:700;
  font-size:1.4rem;
  margin:0;
  color:#fff;
  word-break:break-word;
}
.foot-nav dl{margin:0}
.foot-nav dt{font-weight:700;font-size:.9rem;letter-spacing:.14em;margin-bottom:6px;color:var(--green)}
.foot-nav dd{margin:0}
.foot-nav a{
  display:flex;
  align-items:center;
  min-height:44px;
  color:var(--paper);
  text-decoration:none;
  border-bottom:2px solid var(--line);
}
.foot-nav a:hover,.foot-nav a:focus-visible{color:var(--green)}
.foot-sub{background:#0a0a0a;border-radius:28px;padding:20px}
.sub-row{display:flex;flex-wrap:wrap;gap:0}
.sub input{
  flex:1 1 160px;
  min-width:0;
  min-height:48px;
  padding:0 12px;
  border:4px solid var(--green);
  border-radius:0;
  background:#000;
  color:var(--paper);
  font:inherit;
}
.sub input::placeholder{color:#84caa8}
.sub button{
  min-height:48px;
  padding:0 22px;
  border:4px solid var(--green);
  border-radius:0;
  background:var(--green);
  color:#000;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.sub button:hover,.sub button:focus-visible{background:#000;color:var(--green)}
.foot-bar{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:12px;
  padding-top:16px;
  border-top:4px solid var(--line);
  font-size:.95rem;
}
.copy{margin:0;color:var(--dim)}
.to-top{margin:0}
.foot-bar a{display:inline-flex;align-items:center;min-height:44px;color:var(--green);text-decoration:none;font-weight:600}
.foot-bar a:hover{background:var(--green);color:#000;padding:0 8px}

/* 滚动显现 */
.js .rv{opacity:0;transform:translateY(18px);transition:opacity .18s linear,transform .18s linear}
.js .rv.in{opacity:1;transform:none}

@media(max-width:600px){
  body{font-size:16.5px}
  .bar-name{display:none}
  .bar-cta{padding:0 12px;font-size:.9rem}
  .hero{padding-bottom:34px}
  .hero-copy p{font-size:1rem}
  section > article:not(.hero),section > article:not(.hero):nth-of-type(2n),section > article:not(.hero):nth-of-type(3n){padding:28px 18px;border-radius:24px}
  .foot-sub{padding:16px}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .js .rv{opacity:1;transform:none;transition:none}
}

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