@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --ink: #000000;
  --paper: #ffffff;
  --wash: #f5f5f5;
  --line: rgba(0, 0, 0, 0.16);
  --line-soft: rgba(0, 0, 0, 0.08);
  --r: 4px;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --serif: Georgia, 'Songti SC', 'Noto Serif SC', 'Times New Roman', 'STSong', serif;
  --soft: 0 22px 44px -26px rgba(0, 0, 0, 0.42), 0 2px 6px rgba(0, 0, 0, 0.06);
  --pad: clamp(18px, 4vw, 56px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--ink); }

h1, h2, h3, h4, nav, .brand, .contact, summary, footer, small, figcaption {
  font-family: var(--sans);
}

h1, h2, h3 {
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- 页头 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  padding: 10px var(--pad) 12px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  object-fit: cover;
}

.brand-word {
  font-size: clamp(20px, 4vw, 27px);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.contact:hover { background: var(--ink); color: var(--paper); }

.menu-row { margin-top: 8px; }

.nav { position: relative; }

.dd { display: block; }

.dd summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
  background: var(--paper);
}

.dd summary::-webkit-details-marker { display: none; }

.dd summary::after {
  content: '＋';
  font-size: 0.8em;
  line-height: 1;
}

.dd[open] summary::after { content: '－'; }

.menu {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r);
  text-decoration: none;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.menu a:hover,
.menu a:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- 主区 ---------- */
main { display: block; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(22px, 5vw, 52px);
  min-height: 70vh;
  padding: clamp(26px, 6vw, 66px) var(--pad) clamp(22px, 4vw, 44px);
  border-bottom: 4px solid var(--ink);
}

.hero-ghost {
  position: absolute;
  right: -0.06em;
  bottom: -0.14em;
  z-index: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(4.2rem, 21vw, 15rem);
  letter-spacing: -0.06em;
  line-height: 0.82;
  color: rgba(0, 0, 0, 0.055);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero-in {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 8.6vw, 6.2rem);
  letter-spacing: -0.05em;
  line-height: 0.94;
  margin: 0 0 0.32em;
  max-width: 16em;
}

.hero-stand {
  max-width: 34em;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.6;
  color: #1a1a1a;
  border-left: 3px solid var(--ink);
  padding-left: 14px;
}

.hero-fig {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
}

.hero-fig img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: var(--soft);
  filter: grayscale(1) contrast(1.04);
  will-change: transform;
}

.hero-cap {
  margin-top: 10px;
  font-size: 0.94rem;
  letter-spacing: 0.14em;
  color: #3a3a3a;
}

/* ---------- 正文 + 右栏 ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 19rem);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 64px) var(--pad) clamp(46px, 7vw, 90px);
}

.layout > * { min-width: 0; }

.layout > article {
  grid-column: 1;
  padding-top: clamp(26px, 4vw, 46px);
  border-top: 2px solid var(--ink);
  scroll-margin-top: 128px;
}

.layout > article + article { margin-top: clamp(26px, 4vw, 48px); }

.layout > article > h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  margin: 0 0 0.55em;
}

.layout > article > h2::before {
  content: '';
  display: block;
  width: 46px;
  height: 4px;
  background: var(--ink);
  margin-bottom: 0.6em;
}

.layout > article p { max-width: 40em; }

.layout > article p:first-of-type::first-letter {
  float: left;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 3.5em;
  line-height: 0.84;
  padding: 0.06em 0.12em 0 0;
}

.layout > article > figure {
  margin: 1.6em 0;
}

.layout > article > figure img {
  width: 100%;
  border-radius: var(--r);
  box-shadow: var(--soft);
}

.layout > article figcaption {
  margin-top: 8px;
  font-size: 0.94rem;
  color: #3a3a3a;
  letter-spacing: 0.03em;
}

.layout > article blockquote {
  margin: 1.7em 0;
  padding: 0.3em 0 0.3em 20px;
  border-left: 4px solid var(--ink);
  font-size: 1.16em;
  line-height: 1.55;
}

.layout > article blockquote p:last-child { margin-bottom: 0; }

.layout > article h3 {
  font-size: 1.2rem;
  margin: 1.6em 0 0.5em;
}

.layout > article ul,
.layout > article ol {
  padding-left: 1.25em;
  max-width: 40em;
}

.layout > article li { margin-bottom: 0.45em; }

.layout > article a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ---------- 右栏 ---------- */
.rail {
  grid-column: 2;
  grid-row: 1 / -1;
  position: sticky;
  top: 132px;
  align-self: start;
  padding: 20px 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--soft);
}

.rail-title {
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
}

.rail-sub {
  margin: 0 0 14px;
  font-size: 0.94rem;
  color: #555;
  letter-spacing: 0.04em;
}

.rail-list {
  list-style: none;
  counter-reset: rail;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.rail-list li {
  counter-increment: rail;
  border-bottom: 1px solid var(--line-soft);
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 2px;
  text-decoration: none;
  font-size: 0.94rem;
  line-height: 1.35;
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #777;
  flex: none;
}

.rail-list a:hover { background: var(--wash); }

/* ---------- 页脚 ---------- */
.site-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px clamp(20px, 4vw, 48px);
  border-top: 4px solid var(--ink);
  padding: clamp(28px, 5vw, 56px) var(--pad) clamp(22px, 3vw, 34px);
  max-width: 1180px;
  margin: 0 auto;
}

.foot-cta {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.foot-brand {
  margin: 0;
  font-size: 0.97rem;
  color: #333;
  align-self: start;
}

.foot-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-self: start;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.94rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

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

.foot-copy {
  grid-column: 1 / -1;
  display: block;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
  letter-spacing: 0.05em;
  color: #555;
}

/* ---------- 动效 ---------- */
html.js .rv {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.js .rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rv { opacity: 1; transform: none; transition: none; }
  .hero-fig img { transform: none !important; }
  .contact, .menu a { transition: none; }
}

/* ---------- 断点 ---------- */
@media (max-width: 899px) {
  .layout {
    display: block;
    padding-top: 26px;
  }

  .layout > article { scroll-margin-top: 150px; }

  .rail {
    position: static;
    margin-top: 34px;
  }

  .menu {
    display: block;
    margin-top: 10px;
    border-top: 1px solid var(--line);
  }

  .menu a {
    padding: 0 4px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }

  .menu a:hover { background: var(--wash); color: var(--ink); }

  .site-foot { grid-template-columns: minmax(0, 1fr); }

  .foot-brand, .foot-links { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .menu-row { border-top: 1px solid var(--line); padding-top: 8px; }
}

@media (max-width: 420px) {
  .hero-title { font-size: clamp(2.1rem, 10.5vw, 3rem); }
  .hero-fig img { aspect-ratio: 4 / 3; }
  .layout > article p:first-of-type::first-letter { font-size: 3em; }
}

@media (min-width: 1100px) {
  .layout > article > p { max-width: 38em; }
}

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