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

:root{
  --ink:#000000;
  --fg:#f2f2f2;
  --green:#00ff80;
  --blue:#0000ff;
  --line:#1d1d1d;
  --max:1180px;
}

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

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

body{
  margin:0;
  background:var(--ink);
  color:var(--fg);
  font-family:Inter,system-ui,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.7;
  overflow-x:hidden;
}

a{color:var(--green)}
a:focus-visible,button:focus-visible{outline:3px solid #fff;outline-offset:3px}

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

/* ---------- 顶部两行 ---------- */
.top{
  position:sticky;
  top:0;
  z-index:60;
  background:#000;
  border-bottom:3px solid var(--green);
}

.brandline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 16px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  text-decoration:none;
  color:#fff;
  font-weight:800;
  letter-spacing:.06em;
  font-size:17px;
}

.brandmark{
  width:34px;
  height:34px;
  display:inline-block;
  background:var(--green);
  border:3px solid var(--green);
  flex:0 0 auto;
}

.brand-txt{color:#fff}

.brand-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.contact{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  border:3px solid #363636;
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:16px;
}

.contact:hover{border-color:var(--green);color:var(--green)}

.menubtn{
  min-height:44px;
  padding:0 16px;
  font-family:inherit;
  font-size:16px;
  font-weight:800;
  letter-spacing:.08em;
  color:#000;
  background:var(--green);
  border:3px solid var(--green);
  border-radius:0;
  cursor:pointer;
}

.menubtn:hover{background:#000;color:var(--green)}

/* 菜单：桌面为第二行条状；点击后全屏遮罩 */
.menu{
  border-top:3px solid var(--line);
  background:#000;
}

.menu ol{
  display:flex;
  flex-wrap:wrap;
  margin:0;
  padding:0;
  list-style:none;
}

.menu li a{
  display:flex;
  align-items:center;
  min-height:48px;
  padding:0 16px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.02em;
  color:var(--green);
  text-decoration:none;
  border-right:2px solid #141414;
}

.menu li a:hover,
.menu li a:focus-visible{
  background:var(--green);
  color:#000;
}

body.menu-open{overflow:hidden}

body.menu-open .menu{
  position:fixed;
  inset:0;
  z-index:70;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:88px 16px;
  overflow:auto;
  border:0;
  background-color:#000;
  background-image:radial-gradient(rgba(0,255,128,.22) 1px,transparent 1px);
  background-size:22px 22px;
}

body.menu-open .menu ol{
  flex-direction:column;
  width:100%;
  max-width:620px;
  border-top:3px solid var(--green);
  background:#000;
}

body.menu-open .menu li a{
  font-size:clamp(1.35rem,5.6vw,2.2rem);
  padding:14px 12px;
  border-right:0;
  border-bottom:2px solid #1c1c1c;
}

body.menu-open .menubtn{
  position:fixed;
  top:14px;
  right:16px;
  z-index:80;
  background:#000;
  color:var(--green);
  border-color:var(--green);
}

/* ---------- 首屏 ---------- */
.hero{
  min-height:100vh;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:stretch;
  overflow:hidden;
  border-bottom:3px solid var(--green);
  background-image:radial-gradient(rgba(0,255,128,.18) 1px,transparent 1px);
  background-size:22px 22px;
}

.hero-media{
  position:relative;
  display:flex;
  min-height:340px;
  overflow:hidden;
  border-right:3px solid var(--green);
  will-change:transform;
}

.hero-img,
.hero-fallback{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-fallback{
  background:var(--blue);
  background-image:radial-gradient(rgba(0,255,128,.5) 2px,transparent 2px);
  background-size:26px 26px;
}

.hero-copy{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:20px;
  padding:56px 28px;
  text-align:center;
}

h1{
  margin:0;
  font-size:clamp(2rem,5.2vw,3.6rem);
  line-height:1.08;
  font-weight:800;
  letter-spacing:-.015em;
  max-width:16ch;
}

.lead{
  margin:0;
  max-width:36ch;
  color:#d7d7d7;
  font-size:17px;
}

.hero-cta{margin:0}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 30px;
  background:var(--green);
  border:3px solid var(--green);
  color:#000;
  font-weight:800;
  font-size:17px;
  letter-spacing:.08em;
  text-decoration:none;
}

.cta:hover{background:#000;color:var(--green)}

/* ---------- 正文骨架 ---------- */
.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 16px;
}

.sheet{
  display:grid;
  grid-template-columns:minmax(0,1fr) 286px;
  align-items:start;
  border-left:3px solid var(--line);
  border-right:3px solid var(--line);
}

.prose{
  min-width:0;
  padding:34px 26px 44px;
  border-right:3px solid var(--line);
}

article > section{
  margin:0 0 30px;
  padding:24px 20px 26px;
  background:#080808;
  border:3px solid var(--line);
  border-bottom:8px solid var(--green);
  border-radius:18px;
  scroll-margin-top:132px;
}

article > section:last-child{margin-bottom:0}

article h2{
  margin:0 0 .45em;
  font-size:clamp(1.3rem,3vw,1.85rem);
  line-height:1.22;
  font-weight:800;
  letter-spacing:-.01em;
  color:#fff;
}

article h2 + p,
article p.subtitle{
  color:var(--green);
  font-weight:700;
}

article h3{
  margin:1.5em 0 .4em;
  font-size:1.1rem;
  font-weight:800;
  color:#fff;
}

article p{margin:0 0 1em;color:#dbdbdb}
article p:last-child{margin-bottom:0}
article strong{color:#fff}
article a{color:var(--green);text-decoration:underline;text-underline-offset:3px}
article ul,article ol{padding-left:1.3em;margin:0 0 1em}
article li{margin:.35em 0}
article blockquote{
  margin:0 0 1em;
  padding:12px 16px;
  border-left:8px solid var(--blue);
  background:#0c0c16;
}
article img{margin:0 0 1em;border:3px solid var(--line);border-radius:18px}
article hr{border:0;border-top:3px solid var(--line);margin:1.4em 0}

/* ---------- 侧栏 ---------- */
.side{
  position:sticky;
  top:132px;
  max-height:calc(100vh - 160px);
  overflow:auto;
  padding:28px 16px 34px;
  background:#050505;
}

.side h2{
  margin:0;
  font-size:16px;
  font-weight:800;
  letter-spacing:.16em;
  color:var(--green);
}

.side .subtitle{
  margin:2px 0 14px;
  font-size:16px;
  font-weight:600;
  color:#8e8e8e;
}

.side ol{
  margin:0;
  padding:0;
  list-style:none;
  border-top:3px solid var(--green);
}

.side li a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:4px 2px;
  font-size:16px;
  font-weight:600;
  color:#cfcfcf;
  text-decoration:none;
  border-bottom:2px solid #161616;
}

.side li a:hover{color:var(--green);background:#0b0b0b}

.side-top{margin:18px 0 0}

.side-top a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 14px;
  border:3px solid #383838;
  color:#fff;
  font-weight:700;
  font-size:16px;
  text-decoration:none;
}

.side-top a:hover{border-color:var(--green);color:var(--green)}

/* ---------- 页脚 ---------- */
.bottom{
  margin-top:56px;
  border-top:3px solid var(--green);
  background:#000;
}

.bottom section{padding:24px 16px}

.foot-mark{overflow:hidden}

.foot-brand{
  display:block;
  font-weight:800;
  font-size:clamp(2.1rem,9.5vw,5.6rem);
  line-height:.96;
  letter-spacing:-.035em;
  color:var(--green);
  word-break:break-word;
}

.foot-line{border-top:3px solid var(--line)}

.foot-line p{
  margin:0;
  font-size:16px;
  letter-spacing:.05em;
  color:#9c9c9c;
}

/* ---------- 动效 ---------- */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .32s steps(4),transform .32s steps(4);
  transition-delay:calc(var(--i,0) * 24ms);
}

.reveal.in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .hero-media{will-change:auto;transform:none!important}
}

/* ---------- 移动端 ---------- */
@media (max-width:860px){
  .sheet{grid-template-columns:1fr}
  .prose{border-right:0}
  .side{
    position:static;
    max-height:none;
    border-top:3px solid var(--line);
    padding:22px 16px 30px;
  }
}

@media (max-width:760px){
  body{font-size:16px}

  .hero{
    grid-template-columns:1fr;
    min-height:100svh;
    align-content:start;
  }

  .hero-copy{order:1;padding:34px 18px 30px;gap:16px}
  .hero-media{order:2;min-height:42vh;border-right:0;border-top:3px solid var(--green)}

  h1{font-size:clamp(1.85rem,8.6vw,2.6rem);max-width:none}

  .menu{display:none}
  body.menu-open .menu{display:flex}

  .wrap{padding:0 12px}
  .sheet{border-left:0;border-right:0}
  .prose{padding:24px 12px 34px}
  article > section{padding:20px 15px 22px;border-radius:14px;scroll-margin-top:96px}
  article h2 + p,article p.subtitle{font-size:16px}
  .bottom{margin-top:36px}
  .foot-line p{font-size:16px}
}

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