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

:root{
  --paper:#fafaf8;
  --mid:#4a4a4a;
  --ink:#1a1a1a;
  --line:rgba(26,26,26,.16);
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='0.42'/%3E%3C/svg%3E");
}

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

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Exo',system-ui,-apple-system,'Segoe UI','Noto Sans SC',sans-serif;
  font-size:17px;
  line-height:1.78;
  letter-spacing:.012em;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:9;
  background-image:var(--grain);
  opacity:.4;
  mix-blend-mode:multiply;
  pointer-events:none;
}

img{max-width:100%;height:auto;display:block}
h1,h2,h3{font-weight:600;line-height:1.28;letter-spacing:-.012em}
p{margin:0 0 14px}
ul,ol{padding-left:22px}
li{margin:0 0 8px}

a{
  color:inherit;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  transition:background-color 110ms steps(2,end),color 110ms steps(2,end);
}
a:hover,a:focus-visible{background:var(--ink);color:var(--paper);text-decoration:none}
:focus-visible{outline:2px dashed var(--mid);outline-offset:3px}

hr{
  border:0;
  border-top:2px dashed var(--mid);
  opacity:.45;
  margin:10px 0 18px;
}

/* ---------- 页头：品牌行 + 菜单行 ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:var(--paper);
  border-bottom:2px solid var(--ink);
  padding:9px 20px 12px;
}

.brandrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  max-width:1240px;
  margin:0 auto;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:11px;
  padding:5px 0;
  font-family:'Roboto Mono',monospace;
  font-size:19px;
  font-weight:700;
  letter-spacing:.015em;
  text-decoration:none;
}
.brand:hover,.brand:focus-visible{background:none;color:var(--ink)}
.brand:hover .mark{transform:rotate(6deg)}
.brand .mark{
  flex:none;
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:2px solid var(--ink);
  border-radius:50%;
  font-size:14px;
  overflow:hidden;
  transform:rotate(-6deg);
  transition:transform 120ms steps(2,end);
}
.brand .mark img{width:100%;height:100%;object-fit:cover;border-radius:50%}

.contact{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:11px 17px;
  border:2px solid var(--ink);
  border-radius:999px;
  font-family:'Roboto Mono',monospace;
  font-size:14px;
  letter-spacing:.06em;
  text-decoration:none;
  flex:none;
}

.navrow{max-width:1240px;margin:9px auto 0}

.navdd{position:relative}
.navdd>summary{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:9px;
  width:max-content;
  min-height:44px;
  padding:10px 18px;
  border:2px solid var(--ink);
  border-radius:999px;
  background:var(--paper);
  font-family:'Roboto Mono',monospace;
  font-size:14px;
  letter-spacing:.16em;
}
.navdd>summary::-webkit-details-marker{display:none}
.navdd>summary::after{content:"＋";font-size:15px;letter-spacing:0}
.navdd[open]>summary::after{content:"－"}

.navdd>menu{
  list-style:none;
  margin:11px 0 0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.navdd>menu li{margin:0}
.navdd>menu a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 15px;
  border:1px solid var(--ink);
  border-radius:999px;
  background:var(--paper);
  font-size:16px;
  text-decoration:none;
}

/* ---------- 版面 ---------- */
main{
  max-width:1240px;
  margin:0 auto;
  padding:0 20px 64px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:34px;
  align-items:start;
}

/* ---------- 首屏 ---------- */
.hero{
  grid-column:1 / -1;
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  min-height:100vh;
  margin-bottom:36px;
  padding:clamp(88px,14vh,150px) clamp(18px,4vw,54px) clamp(38px,7vh,76px);
  overflow:hidden;
  background:var(--ink);
  border-bottom:2px dashed var(--ink);
  border-radius:0 0 28px 28px;
}

.hero-media{position:absolute;inset:0;z-index:-2}
.hero-media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:grayscale(1) contrast(1.16) brightness(.96);
  opacity:0;
  transition:opacity 260ms steps(4,end);
}
.hero-media img.on{opacity:.6}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(256deg,rgba(26,26,26,.92) 6%,rgba(26,26,26,.5) 52%,rgba(26,26,26,.22));
}

.hero-inner{
  max-width:min(100%,760px);
  margin-left:auto;
  text-align:right;
  color:var(--paper);
}

.stamp{
  display:inline-block;
  margin:0 0 20px;
  padding:6px 13px;
  background:var(--paper);
  color:var(--ink);
  border:2px solid var(--ink);
  border-radius:4px;
  font-family:'Roboto Mono',monospace;
  font-size:13px;
  letter-spacing:.16em;
  transform:rotate(-3.5deg);
  box-shadow:4px 4px 0 rgba(26,26,26,.45);
}

.hero h1{
  margin:0 0 14px;
  font-size:clamp(30px,5.6vw,60px);
  line-height:1.22;
  text-shadow:0 2px 0 rgba(26,26,26,.35);
}

.hero-lead{
  margin:0 0 0 auto;
  max-width:52ch;
  font-size:16px;
  line-height:1.7;
  color:#eeece8;
}

/* ---------- 正文 ---------- */
.sheet{min-width:0;max-width:800px}

.sheet>section{
  --rot:-.22deg;
  position:relative;
  margin:0 0 26px;
  padding:clamp(19px,3.1vw,34px);
  background:var(--paper);
  border:1px solid var(--line);
  border-bottom:3px solid var(--ink);
  border-radius:28px;
  transform:rotate(var(--rot));
  scroll-margin-top:132px;
}
.sheet>section:nth-of-type(even){--rot:.18deg}

.sheet>section::before{
  content:"";
  position:absolute;
  top:-9px;
  left:clamp(18px,4vw,40px);
  width:78px;
  height:16px;
  background:rgba(74,74,74,.13);
  border-left:1px dashed rgba(74,74,74,.4);
  border-right:1px dashed rgba(74,74,74,.4);
  transform:rotate(-2.6deg);
  pointer-events:none;
}

.sheet h2{
  margin:0 0 4px;
  font-size:clamp(21px,2.6vw,27px);
}
.sheet h2::before{
  content:"";
  display:inline-block;
  width:11px;
  height:11px;
  margin-right:10px;
  background:var(--ink);
  transform:translateY(-1px) rotate(8deg);
}
.sheet h3{margin:20px 0 6px;font-size:19px}
.sheet blockquote{
  margin:16px 0;
  padding:10px 0 10px 16px;
  border-left:3px solid var(--ink);
  color:var(--mid);
  font-style:normal;
}
.sheet figure{margin:18px 0}
.sheet figcaption{
  font-family:'Roboto Mono',monospace;
  font-size:13px;
  color:var(--mid);
  margin-top:6px;
}
.sheet table{width:100%;border-collapse:collapse;font-size:16px}
.sheet th,.sheet td{border-bottom:1px dashed var(--line);padding:9px 8px;text-align:left}

body.reveal .sheet>section{
  opacity:0;
  transform:translateY(15px) rotate(var(--rot));
  transition:opacity 190ms steps(3,end),transform 190ms steps(3,end);
}
body.reveal .sheet>section.in{opacity:1;transform:translateY(0) rotate(var(--rot))}

/* ---------- 侧栏 ---------- */
.rail{
  position:sticky;
  top:136px;
  align-self:start;
  padding:18px 18px 22px;
  background:var(--paper);
  border:1px dashed var(--mid);
  border-radius:28px;
  transform:rotate(.4deg);
}
.rail h2{
  margin:0 0 4px;
  font-family:'Roboto Mono',monospace;
  font-size:16px;
  letter-spacing:.2em;
}
.rail ul{list-style:none;margin:0;padding:0;counter-reset:rail}
.rail li{counter-increment:rail;border-bottom:1px dashed var(--line)}
.rail li:last-child{border-bottom:0}
.rail a{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-height:44px;
  padding:11px 2px;
  font-size:16px;
  text-decoration:none;
}
.rail a::before{
  content:counter(rail,decimal-leading-zero);
  flex:none;
  font-family:'Roboto Mono',monospace;
  font-size:12px;
  color:var(--mid);
}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:36px;
  padding:clamp(28px,5vw,56px) 20px 26px;
  background:var(--ink);
  color:var(--paper);
  border-top:3px solid var(--ink);
}
.foot-in{max-width:1240px;margin:0 auto}
.foot a:hover,.foot a:focus-visible{background:var(--paper);color:var(--ink)}

.foot-top{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
  padding-bottom:22px;
  border-bottom:2px dashed var(--mid);
}

.subs{flex:1 1 320px;max-width:430px}
.subs h2{
  margin:0 0 4px;
  font-family:'Roboto Mono',monospace;
  font-size:20px;
  letter-spacing:.14em;
}
.subs hr{border-top-color:var(--mid);opacity:.7}
.subs-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.subs input{
  flex:1 1 150px;
  min-height:46px;
  padding:11px 16px;
  border:1px solid var(--mid);
  border-radius:999px;
  background:transparent;
  color:var(--paper);
  font-family:inherit;
  font-size:16px;
}
.subs input::placeholder{color:#b9b9b5}
.subs button{
  min-height:46px;
  padding:11px 22px;
  border:1px solid var(--paper);
  border-radius:999px;
  background:var(--paper);
  color:var(--ink);
  font-family:'Roboto Mono',monospace;
  font-size:15px;
  letter-spacing:.1em;
  cursor:pointer;
}

.foot-contact{margin:0;align-self:flex-end}
.foot-contact a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:11px 18px;
  border:1px solid var(--paper);
  border-radius:999px;
  font-family:'Roboto Mono',monospace;
  font-size:14px;
  letter-spacing:.08em;
  text-decoration:none;
}

.foot-cols{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  padding:26px 0;
  border-bottom:1px solid var(--mid);
}
.foot-cols dl{margin:0}
.foot-cols dt{
  margin-bottom:8px;
  font-family:'Roboto Mono',monospace;
  font-size:13px;
  letter-spacing:.2em;
  color:#b9b9b5;
}
.foot-cols dd{margin:0}
.foot-cols a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  font-size:16px;
  text-decoration:none;
}

.foot-base{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:18px;
  font-size:14px;
}
.foot-base p{margin:0}
.foot-base p:first-child{font-family:'Roboto Mono',monospace;letter-spacing:.06em}
.foot-base a{display:inline-flex;align-items:center;min-height:40px;padding:0 4px}

/* ---------- 断点 ---------- */
@media (min-width:901px){
  .navdd[open]>summary{display:none}
  .navdd>menu{margin-top:0}
}

@media (max-width:900px){
  main{grid-template-columns:minmax(0,1fr);gap:26px}
  .sheet{max-width:none}
  .rail{position:static;transform:none}
  .hero{min-height:88vh;justify-content:flex-end}
  .foot-cols{grid-template-columns:1fr 1fr}
}

@media (max-width:520px){
  body{font-size:17px}
  .topbar{padding:8px 14px 10px}
  main{padding:0 14px 52px}
  .hero{border-radius:0 0 20px 20px}
  .foot-base p:first-child{width:100%}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none !important}
  body.reveal .sheet>section{opacity:1;transform:rotate(var(--rot))}
}

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