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

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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --g: 1rem;
  --pad: clamp(1rem, 4vw, 3rem);
  --max: 1360px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Barlow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.06;
  margin: 0;
  letter-spacing: 0.02em;
}

p { margin: 0 0 1rem; }

a { color: inherit; }

hr {
  border: 0;
  border-top: 2px solid var(--ink);
  margin: 0.5rem 0 1rem;
}

/* ---------- 页头 ---------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 27px);
  letter-spacing: 0.07em;
  line-height: 1.1;
}

.brand__mark {
  display: block;
  height: 30px;
  width: auto;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.2rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.cta:hover,
.cta:focus-visible {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

/* ---------- 粘性锚点条 ---------- */
.rail {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ink);
  border-bottom: 2px solid var(--ink);
}

.rail nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem var(--pad);
}

.rail ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.rail ul::-webkit-scrollbar { display: none; }

.rail li { flex: 0 0 auto; }

.rail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.15rem;
  border: 1px solid #6b6b6b;
  border-radius: 999px;
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

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

/* ---------- 主栅格 ---------- */
main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--g);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 3rem;
}

article {
  grid-column: 1 / span 9;
  min-width: 0;
}

.side {
  grid-column: 10 / span 3;
  min-width: 0;
  padding-top: 1.4rem;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 2rem;
  min-height: 100vh;
  min-height: 100svh;
}

.hero__copy { max-width: 40ch; }

.hero__h1 {
  font-size: clamp(38px, 7.4vw, 88px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 1.1rem;
}

.hero__lede {
  font-size: clamp(17px, 1.5vw, 20px);
  max-width: 34ch;
  margin: 0 0 1.6rem;
  border-left: 5px solid var(--ink);
  padding-left: 1rem;
  line-height: 1.55;
}

.hero__go {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hero__go:hover,
.hero__go:focus-visible {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.hero__media {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  min-height: 34vh;
  clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 100%);
}

.hero__img {
  display: block;
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.05);
  will-change: transform;
}

/* ---------- 正文 ---------- */
article > div {
  padding: clamp(2rem, 4.5vw, 3.6rem) 0;
  border-bottom: 1px solid var(--ink);
}

article > div.hero {
  padding: clamp(1.2rem, 4vw, 2.6rem) 0 0;
  border-bottom: 2px solid var(--ink);
}

article div[id] { scroll-margin-top: 78px; }

article :is(h2, h3) { margin: 0 0 0.6rem; }

article h2 { font-size: clamp(27px, 3.8vw, 42px); }
article h3 { font-size: clamp(21px, 2.6vw, 29px); }

article p { max-width: 66ch; }

article ul,
article ol {
  padding-left: 1.25em;
  max-width: 66ch;
}

article li { margin-bottom: 0.45rem; }

article a {
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

article img {
  height: auto;
  display: block;
  margin: 1.2rem 0;
}

article blockquote {
  margin: 1.4rem 0;
  padding-left: 1rem;
  border-left: 5px solid var(--ink);
  font-size: 18px;
}

/* ---------- 右侧栏 ---------- */
.side h2 {
  font-size: 24px;
  letter-spacing: 0.06em;
}

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

.side li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0;
  border-bottom: 1px solid #d4d4d4;
  text-decoration: none;
  font-size: 16px;
}

.side li a:hover,
.side li a:focus-visible { text-decoration: underline; }

/* ---------- 页脚 ---------- */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2rem, 4vw, 3rem) 0 1.4rem;
}

.foot__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.6rem var(--g);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.foot__col {
  grid-column: span 3;
  min-width: 0;
}

.foot__brand {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.06em;
  margin: 0;
}

.foot h2 {
  font-size: 20px;
  letter-spacing: 0.07em;
  color: var(--paper);
}

.foot hr {
  border-top: 2px solid var(--paper);
  margin: 0.5rem 0 0.9rem;
}

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

.foot__links li a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.4rem 0;
  border-bottom: 1px solid #343434;
  color: var(--paper);
  text-decoration: none;
  font-size: 16px;
}

.foot__links li a:hover,
.foot__links li a:focus-visible { text-decoration: underline; }

.foot address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
  word-break: break-word;
}

.sub {
  display: grid;
  gap: 0.6rem;
  max-width: 230px;
}

.sub__label { font-size: 16px; }

.sub__input {
  width: 100%;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--paper);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-size: 16px;
}

.sub__input:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

.sub__btn {
  min-height: 44px;
  padding: 0.45rem 1rem;
  border: 1px solid var(--paper);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
}

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

.foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 2.4rem auto 0;
  padding: 1.1rem var(--pad) 0;
  border-top: 1px solid #4a4a4a;
  font-size: 16px;
}

.foot__copy { margin: 0; }

.foot__mini {
  display: flex;
  gap: 1.2rem;
}

.foot__mini a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid #666;
}

.foot__mini a:hover,
.foot__mini a:focus-visible { border-bottom-color: var(--paper); }

/* ---------- 动效 ---------- */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 940px) {
  article,
  .side { grid-column: 1 / -1; }

  .side {
    border-top: 2px solid var(--ink);
    padding: 1.8rem 0 0.5rem;
  }

  .hero { min-height: 88svh; }
  .hero__media { min-height: 30vh; }
}

@media (max-width: 760px) {
  .foot__col { grid-column: span 12; }
  .hero__lede { max-width: 30ch; }
  .foot__base { justify-content: flex-start; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .hero__h1 { font-size: clamp(34px, 10vw, 46px); }
  .hero__media { clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__img { transform: none !important; }
}

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