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

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

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

body{
  margin:0;
  background:#f5f5f5;
  color:#1f1f1f;
  font-family:'Space Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,"Courier New",monospace;
  font-size:17px;
  line-height:1.72;
  -webkit-font-smoothing:antialiased;
}

a{color:inherit}
a:focus-visible{outline:2px solid #1f1f1f;outline-offset:3px;border-radius:6px}

.skip{
  position:absolute;
  left:12px;top:-60px;
  z-index:60;
  display:inline-flex;align-items:center;
  min-height:44px;padding:0 16px;
  border-radius:12px;
  background:#1f1f1f;color:#fff;
  text-decoration:none;font-size:16px;
  transition:top .18s ease;
}
.skip:focus{top:12px}

/* ---------- 左侧竖排导航 ---------- */
.rail{
  position:fixed;
  inset:0 auto 0 0;
  width:236px;
  z-index:40;
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:24px 14px 20px;
  background:#ffffff;
  border-right:1px solid #ececec;
}

.brandmark{
  display:inline-flex;align-items:center;justify-content:center;
  width:48px;height:48px;
  flex:none;
  border-radius:14px;
  background:#1f1f1f;color:#ffffff;
  text-decoration:none;
  font-size:20px;font-weight:700;
  transition:border-radius .2s ease,transform .2s ease;
}
.brandmark:hover{border-radius:50%;transform:scale(1.04)}
.mark-img{display:block;width:48px;height:48px;border-radius:14px;object-fit:cover}

.rail-nav{flex:1;min-height:0;overflow-y:auto}
.rail-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.rail-nav a{
  display:flex;align-items:center;gap:10px;
  min-height:44px;
  padding:10px 12px;
  border-radius:12px;
  color:#1f1f1f;
  font-size:16px;line-height:1.3;
  text-decoration:none;
  transition:background .18s ease,color .18s ease,padding-left .18s ease;
}
.rail-nav a:hover,
.rail-nav a[aria-current="true"]{background:#1f1f1f;color:#ffffff;padding-left:16px}
.dot{width:7px;height:7px;flex:none;border-radius:2px;background:currentColor}

.rail-contact{
  display:flex;align-items:center;justify-content:center;
  min-height:44px;
  border-radius:12px;
  background:#f5f5f5;
  border:1px solid #e6e6e6;
  color:#1f1f1f;
  font-size:16px;
  text-decoration:none;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.rail-contact:hover{background:#1f1f1f;color:#ffffff;border-color:#1f1f1f}

/* ---------- 主区 ---------- */
.stage{margin-left:236px;display:flex;flex-direction:column;min-height:100vh}

.hero{
  position:relative;
  margin:18px 18px 0;
  min-height:45vh;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  padding:32px 36px 52px;
  overflow:hidden;
  background:#1f1f1f;
  color:#ffffff;
  border-radius:18px 18px 50% 50% / 18px 18px 68px 68px;
}
.hero-media{position:absolute;inset:0;z-index:0}
.hero-img{display:block;width:100%;height:100%;object-fit:cover}
.hero::after{
  content:"";
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(0,0,0,.18) 0%,rgba(0,0,0,.74) 100%);
}
.hero-copy{position:relative;z-index:2;max-width:660px;text-align:right}
.hero h1{
  margin:0 0 12px;
  font-size:clamp(28px,4.4vw,52px);
  line-height:1.16;
  letter-spacing:-.02em;
  font-weight:700;
}

.ticker{position:relative;height:38px;margin:0;font-size:16px}
.ticker a{
  position:absolute;right:0;top:0;
  padding:6px 0;
  color:#ffffff;
  text-decoration:none;
  opacity:0;
  border-bottom:1px solid rgba(255,255,255,.55);
  transition:opacity .45s ease;
}
.ticker a.on{opacity:1}

.wrap{width:100%;max-width:1180px;margin:0 auto;padding:40px 18px 84px}
.board-title{margin:0 0 6px;font-size:20px;line-height:1.4;letter-spacing:.06em;font-weight:700}
.subtitle{margin:0 0 24px;max-width:64ch;color:#6b6b6b;font-size:16px;line-height:1.7}

/* ---------- Bento 网格 ---------- */
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.grid > article{
  grid-column:span 2;
  padding:26px 26px 22px;
  background:#ffffff;
  border-radius:18px;
  box-shadow:0 4px 6px rgba(0,0,0,.05);
  overflow:hidden;
  scroll-margin-top:20px;
  transition:transform .24s ease,box-shadow .24s ease,background .24s ease;
}
.grid > article:hover{transform:scale(1.012);box-shadow:0 12px 24px rgba(0,0,0,.09)}
.grid > article:nth-child(1){grid-column:span 3}
.grid > article:nth-child(2){grid-column:span 1;background:#f5f5f5}
.grid > article:nth-child(3){grid-column:span 2;background:#1f1f1f;color:#f5f5f5}
.grid > article:nth-child(4){grid-column:span 2;background:#f5f5f5}
.grid > article:nth-child(5){grid-column:span 4}
.grid > article:nth-child(6){grid-column:span 2}
.grid > article:nth-child(7){grid-column:span 2}

.grid > article h2{
  margin:0 0 12px;
  font-size:23px;line-height:1.3;letter-spacing:-.01em;font-weight:700;
}
.grid > article h3{margin:22px 0 8px;font-size:19px;line-height:1.4}
.grid > article p{margin:0 0 14px}
.grid > article p:last-child{margin-bottom:0}
.grid > article .subtitle{margin:-6px 0 16px;color:#6b6b6b}
.grid > article:nth-child(3) .subtitle{color:#a9a9a9}
.grid > article ul,
.grid > article ol{margin:0 0 14px;padding-left:1.3em}
.grid > article li{margin:0 0 8px}
.grid > article li:last-child{margin-bottom:0}
.grid > article a{color:#1f1f1f;text-decoration:underline;text-underline-offset:3px}
.grid > article a:hover{text-decoration-thickness:2px}
.grid > article:nth-child(3) a{color:#ffffff}
.grid > article blockquote{margin:0 0 14px;padding-left:16px;border-left:3px solid #d8d8d8}
.grid > article:nth-child(3) blockquote{border-left-color:#4a4a4a}
.grid > article img{max-width:100%;height:auto;border-radius:12px}
.grid > article code{
  font-family:inherit;
  background:#f0f0f0;
  border-radius:6px;
  padding:1px 6px;
  font-size:.94em;
}
.grid > article:nth-child(3) code{background:#333333}
.grid > article table{width:100%;border-collapse:collapse;font-size:16px}

/* ---------- 页脚 ---------- */
.foot{margin-top:auto;background:#ffffff;border-top:1px solid #ececec;padding:44px 18px 22px}
.foot-mega{
  margin:0 0 30px;
  font-size:clamp(38px,9vw,104px);
  line-height:.94;
  letter-spacing:-.04em;
  font-weight:700;
}
.foot-cols{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  padding-bottom:26px;
}
.foot-addr{font-style:normal;font-size:16px;line-height:1.7;color:#6b6b6b}
.foot-col ul{list-style:none;margin:0;padding:0}
.foot-col a{
  display:inline-flex;align-items:center;
  min-height:40px;
  color:#1f1f1f;
  font-size:16px;
  text-decoration:none;
}
.foot-col a:hover{text-decoration:underline;text-underline-offset:4px}
.foot-col-end{display:flex;align-items:flex-start;justify-content:flex-end}
.foot-col .to-top{
  min-height:44px;
  padding:0 18px;
  border-radius:12px;
  background:#1f1f1f;
  color:#ffffff;
  transition:border-radius .2s ease,transform .2s ease;
}
.foot-col .to-top:hover{text-decoration:none;border-radius:20px;transform:translateY(-2px)}
.foot-copy{
  margin:0;
  padding-top:18px;
  border-top:1px solid #ececec;
  color:#6b6b6b;
  font-size:16px;
}

/* ---------- 移动端 ---------- */
@media (max-width:900px){
  .rail{
    position:sticky;
    inset:auto;
    top:0;
    width:100%;
    flex-direction:row;
    align-items:center;
    gap:12px;
    padding:8px 12px;
    border-right:0;
    border-bottom:1px solid #ececec;
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(10px);
  }
  .brandmark{width:44px;height:44px}
  .mark-img{width:44px;height:44px}
  .rail-nav{overflow-x:auto;overflow-y:hidden;padding-bottom:2px}
  .rail-nav ul{flex-direction:row;gap:6px}
  .rail-nav a{white-space:nowrap;padding:10px 12px}
  .rail-nav a:hover,
  .rail-nav a[aria-current="true"]{padding-left:12px}
  .dot{display:none}
  .rail-contact{flex:none;padding:0 14px}

  .stage{margin-left:0}
  .hero{
    margin:12px 12px 0;
    min-height:42vh;
    padding:24px 18px 38px;
    border-radius:14px 14px 50% 50% / 14px 14px 48px 48px;
  }
  .ticker{height:34px}
  .wrap{padding:26px 12px 56px}
  .subtitle{margin-bottom:18px}
  .grid{grid-template-columns:1fr;gap:12px}
  .grid > article,
  .grid > article:nth-child(n){grid-column:auto;padding:22px 18px 18px;scroll-margin-top:88px}
  .grid > article:hover{transform:none;box-shadow:0 4px 6px rgba(0,0,0,.05)}
  .foot{padding:34px 12px 20px}
  .foot-cols{grid-template-columns:repeat(2,1fr);gap:18px}
  .foot-col-end{grid-column:span 2;justify-content:flex-start}
}

@media (max-width:420px){
  .foot-cols{grid-template-columns:1fr}
  .foot-col-end{grid-column:auto}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition-duration:.001ms !important;animation-duration:.001ms !important}
  .grid > article:hover{transform:none}
  .brandmark:hover{transform:none}
  .ticker{height:auto}
  .ticker a{position:static;display:inline-block;opacity:1;margin-left:16px}
  .ticker a:first-child{margin-left:0}
}

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