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

:root{
  --paper:#fafaf8;
  --gray:#4a4a4a;
  --ink:#1a1a1a;
  --line:#cdc9bd;
  --tape:#e7e1cb;
  --serif:'Playfair Display SC',Georgia,'Times New Roman',serif;
  --sans:Karla,system-ui,-apple-system,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
}

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

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

body{
  margin:0;
  color:var(--ink);
  background-color:var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E"),
    repeating-linear-gradient(90deg, rgba(26,26,26,.03) 0 1px, transparent 1px 27px);
  background-size:140px 140px, auto;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.72;
  font-weight:400;
  overflow-x:clip;
}

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

.wrap{
  max-width:1220px;
  margin:0 auto;
  padding:0 22px 0;
}

/* ————— 顶部：角标与动作 ————— */
.masthead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 0 14px;
  border-bottom:2px solid var(--ink);
}

.brandmark{
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  min-height:44px;
  border:1.5px dashed var(--ink);
  border-radius:14px 5px 15px 6px / 6px 15px 5px 14px;
  background:#fff;
  transform:rotate(-2.2deg);
  text-decoration:none;
  color:var(--ink);
  box-shadow:3px 3px 0 rgba(26,26,26,.16);
}

.brandmark-img{width:100%;height:100%;object-fit:cover;border-radius:inherit;filter:grayscale(1) contrast(1.15)}
.brandmark-glyph{font-family:var(--serif);font-size:1.45rem;line-height:1}

.cta{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:11px 18px;
  background:var(--ink);
  color:var(--paper);
  font-size:1rem;
  letter-spacing:.06em;
  text-decoration:none;
  border-radius:11px 4px 13px 5px / 5px 13px 4px 11px;
  transform:rotate(1deg);
  box-shadow:4px 4px 0 rgba(26,26,26,.28);
}

.cta:hover{background:var(--gray)}

/* ————— 粘性锚点条 ————— */
.rail{
  position:sticky;
  top:0;
  z-index:30;
  margin:0;
  padding:2px 0 1px;
  background:rgba(250,250,248,.96);
  border-bottom:1.5px dashed var(--line);
  backdrop-filter:blur(3px);
}

.rail-list{
  display:flex;
  align-items:stretch;
  gap:0;
  margin:0;
  padding:0;
  list-style:none;
  overflow-x:auto;
  scrollbar-width:thin;
}

.rail-list li{flex:0 0 auto}

.rail-list a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 15px;
  font-size:1rem;
  color:var(--gray);
  text-decoration:none;
  white-space:nowrap;
  border-right:1px dashed var(--line);
}

.rail-list li:first-child a{border-left:1px dashed var(--line)}
.rail-list a:hover{color:var(--ink);background:var(--tape)}

/* ————— 版面骨架 ————— */
.spread{
  display:grid;
  grid-template-columns:minmax(0,1fr) 264px;
  gap:54px;
  align-items:start;
  padding-bottom:88px;
}

.sheet{min-width:0}
.note{padding-top:6px}

/* ————— 首屏 ————— */
.hero{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:22px;
  min-height:100vh;
  padding:44px 0 92px;
  overflow:hidden;
  clip-path:polygon(0 0, 100% 0, 100% 93%, 0 100%);
  scroll-margin-top:96px;
}

.hero-photo{
  position:absolute;
  inset:0 0 0 auto;
  width:58%;
  height:100%;
  object-fit:cover;
  z-index:0;
  opacity:.3;
  filter:grayscale(1) contrast(1.25);
  mix-blend-mode:multiply;
  border-radius:0 0 0 32%;
}

.hero > *:not(.hero-photo){position:relative;z-index:1}

.badge{
  display:inline-block;
  padding:6px 13px;
  background:var(--tape);
  border:1.5px solid var(--ink);
  border-radius:13px 4px 14px 5px / 5px 14px 4px 13px;
  font-size:1rem;
  letter-spacing:.14em;
  transform:rotate(-2.4deg);
  box-shadow:3px 3px 0 rgba(26,26,26,.16);
}

h1{
  margin:0;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(2.05rem, 7.2vw, 4.3rem);
  line-height:1.1;
  letter-spacing:.01em;
  max-width:20ch;
  transform:rotate(-.7deg);
  text-wrap:balance;
}

.lede{
  margin:0;
  max-width:44ch;
  padding-left:16px;
  border-left:3px solid var(--ink);
  color:var(--gray);
  font-size:1.06rem;
  line-height:1.72;
}

/* ————— 正文 ————— */
.note section{scroll-margin-top:98px}

.note > section + section{
  margin-top:66px;
  padding-top:56px;
  border-top:1.5px dashed var(--line);
}

.note small{
  display:block;
  margin:0 0 6px;
  font-size:1rem;
  letter-spacing:.2em;
  color:var(--gray);
}

.note h2{
  margin:0 0 18px;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(1.55rem, 3.6vw, 2.15rem);
  line-height:1.24;
  letter-spacing:.01em;
  transform:rotate(-.35deg);
}

.note h3{
  margin:34px 0 12px;
  font-family:var(--serif);
  font-weight:400;
  font-size:1.32rem;
  line-height:1.35;
}

.note p{margin:0 0 18px;max-width:66ch}

.note ul,.note ol{margin:0 0 20px;padding-left:1.4em;max-width:66ch}
.note li{margin:0 0 8px}

.note blockquote{
  margin:26px 0;
  padding:6px 0 6px 18px;
  border-left:4px solid var(--tape);
  color:var(--gray);
  font-size:1.05rem;
}

.note a{
  color:var(--ink);
  text-decoration:underline;
  text-decoration-style:dotted;
  text-underline-offset:4px;
  text-decoration-thickness:1.5px;
}

.note a:hover{background:var(--tape)}

.note img{
  max-width:100%;
  height:auto;
  margin:10px 0 18px;
  border:1.5px solid var(--ink);
  border-radius:11px 4px 12px 5px / 5px 12px 4px 11px;
  filter:grayscale(1) contrast(1.12);
}

.note table{
  display:block;
  width:100%;
  overflow-x:auto;
  border-collapse:collapse;
  margin:0 0 22px;
  font-size:1rem;
}

.note th,.note td{
  border:1px dashed var(--line);
  padding:9px 12px;
  text-align:left;
  vertical-align:top;
}

.note code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.95em;
  background:var(--tape);
  padding:1px 5px;
  border-radius:3px;
}

/* ————— 右栏 ————— */
.sidebar{
  position:sticky;
  top:84px;
  align-self:start;
  margin-top:10px;
  padding:20px 18px 16px;
  background:#fff;
  border:1.5px solid var(--ink);
  border-radius:15px 5px 17px 6px / 6px 17px 5px 15px;
  box-shadow:6px 7px 0 rgba(26,26,26,.13);
  transform:rotate(.6deg);
}

.sidebar::before{
  content:"";
  position:absolute;
  top:-11px;
  left:50%;
  width:74px;
  height:20px;
  margin-left:-37px;
  background:var(--tape);
  opacity:.9;
  transform:rotate(-2.6deg);
}

.sidebar small{
  display:block;
  font-size:1rem;
  letter-spacing:.2em;
  color:var(--gray);
  margin-bottom:2px;
}

.sidebar h2{
  margin:0 0 12px;
  font-family:var(--serif);
  font-weight:700;
  font-size:1.32rem;
  line-height:1.25;
}

.side-list{margin:0;padding:0;list-style:none}

.side-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:9px 2px;
  color:var(--gray);
  font-size:1rem;
  text-decoration:none;
  border-bottom:1px dashed var(--line);
}

.side-list li:last-child a{border-bottom:0}
.side-list a:hover{color:var(--ink)}

/* ————— 页脚 ————— */
.colophon{
  border-top:2px solid var(--ink);
  padding:30px 0 34px;
}

.foot-addr{
  font-style:normal;
  font-size:1rem;
  letter-spacing:.28em;
  color:var(--gray);
}

.foot-logo{
  margin:10px 0 18px;
  font-family:var(--serif);
  font-weight:700;
  font-size:clamp(2.3rem, 11.5vw, 6.6rem);
  line-height:.95;
  letter-spacing:-.015em;
  opacity:.92;
  overflow-wrap:anywhere;
}

.foot-base{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 20px;
  border-top:1.5px dashed var(--line);
  padding-top:14px;
}

.foot-copy{margin:0;font-size:1rem;color:var(--gray)}

.foot-links{
  display:flex;
  flex-wrap:wrap;
  gap:2px 4px;
  margin:0;
  padding:0;
  list-style:none;
}

.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:8px 11px;
  font-size:1rem;
  color:var(--gray);
  text-decoration:none;
  border:1px dashed transparent;
  border-radius:9px 3px 10px 4px / 4px 10px 3px 9px;
}

.foot-links a:hover{color:var(--ink);border-color:var(--line);background:var(--tape)}

/* ————— 进场 ————— */
.js-reveal{opacity:0;transform:translateY(14px)}

.js-reveal.is-in{
  opacity:1;
  transform:translateY(0);
  transition:opacity .34s steps(6,end), transform .34s steps(6,end);
}

.hero-photo{will-change:transform}

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

/* ————— 窄屏 ————— */
@media (max-width:900px){
  .spread{grid-template-columns:minmax(0,1fr);gap:0}
  .sidebar{position:static;margin:48px 0 0;transform:none;top:auto}
  .hero{min-height:auto;padding:52px 0 72px}
  .hero-photo{width:70%;opacity:.22}
  .note > article + article{margin-top:52px;padding-top:44px}
}

@media (max-width:560px){
  body{font-size:17px}
  .wrap{padding:0 16px}
  .rail-list a{padding:10px 13px}
  h1{max-width:none}
  .foot-logo{letter-spacing:-.02em}
  .foot-base{flex-direction:column;align-items:flex-start}
}

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