:root {
  --ink: #000000;
  --paper: #ffffff;
  --tint: #f2f2f2;
  --line: #d7d7d7;
  --pad: clamp(16px, 4vw, 44px);
  --rad: 18px;
}

*,
*::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: "IBM Plex Sans", "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

p {
  margin: 0 0 1.1em;
}

/* ---------- 顶部细条 ---------- */
.stripe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px var(--pad);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.stripe-k,
.stripe-b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stripe-b {
  font-weight: 600;
}

/* ---------- 品牌行 ---------- */
.mast {
  padding: 20px var(--pad) 12px;
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  min-height: 44px;
  text-decoration: none;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

/* ---------- 菜单行 ---------- */
.menu {
  display: flex;
  flex-wrap: wrap;
  padding: 0 var(--pad);
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}

.menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px 10px 0;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

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

@media (min-width: 900px) {
  .menu {
    position: sticky;
    top: 0;
    z-index: 40;
  }
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 45vh;
  padding: clamp(28px, 6vw, 64px) var(--pad);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: grayscale(1) contrast(1.15);
  transform: scale(1.08);
  will-change: transform;
}

.hero-deco {
  position: absolute;
  right: clamp(6px, 2vw, 26px);
  bottom: -0.1em;
  z-index: 1;
  font-size: clamp(7rem, 28vw, 20rem);
  font-weight: 700;
  line-height: 0.72;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.14);
  pointer-events: none;
  user-select: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 22ch;
}

.hero h1 {
  font-size: clamp(1.9rem, 6vw, 3.4rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

/* ---------- 正文骨架 ---------- */
main {
  padding: 0 var(--pad) clamp(40px, 8vw, 80px);
}

div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin: 0 auto;
  counter-reset: sec;
}

div > article {
  position: relative;
  grid-column: 1;
  padding: clamp(26px, 5vw, 56px) 0 clamp(18px, 3vw, 32px);
  border-top: 1px solid var(--line);
  counter-increment: sec;
  scroll-margin-top: 96px;
}

div > article::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: 0.32em;
  font-size: clamp(2rem, 6vw, 3.1rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
}

div > article:first-of-type {
  border-top: 0;
}

div > article:first-of-type > p:first-of-type::first-letter {
  float: left;
  padding: 0.06em 0.1em 0 0;
  font-size: 3.3em;
  font-weight: 700;
  line-height: 0.78;
}

div h2 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  margin-bottom: 0.45em;
  max-width: 30ch;
}

div h2 + hr {
  width: 68px;
  margin: 0 0 1.4rem;
  border: 0;
  border-top: 3px solid var(--ink);
}

div hr {
  margin: 1.7rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

div h3 {
  margin: 1.7em 0 0.5em;
  font-size: 1.2rem;
}

div ul,
div ol {
  margin: 0 0 1.1em;
  padding-left: 1.25em;
}

div li {
  margin: 0.32em 0;
}

div blockquote {
  margin: clamp(24px, 4vw, 40px) 0;
  padding: 0.2rem 0 0.2rem 1.3rem;
  border-left: 4px solid var(--ink);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

div blockquote p:last-child {
  margin-bottom: 0;
}

div figure {
  margin: clamp(24px, 4vw, 40px) 0;
}

div img {
  border-radius: var(--rad);
}

div figcaption {
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

div strong {
  font-weight: 700;
}

/* ---------- 侧栏 ---------- */
.rail {
  margin: 2.4rem 0 1rem;
  padding: 20px;
  background: var(--tint);
  border-radius: var(--rad);
}

.rail h2 {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.35em;
}

.rail hr {
  margin: 0 0 0.9rem;
  border: 0;
  border-top: 2px solid var(--ink);
}

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.rail-list li:last-child a {
  border-bottom: 0;
}

.rail-list a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 940px) {
  div {
    grid-template-columns: minmax(0, 1fr) 278px;
    column-gap: clamp(30px, 4vw, 66px);
  }

  .rail {
    grid-column: 2;
    grid-row: 1 / span 40;
    align-self: start;
    position: sticky;
    top: 112px;
    margin-top: clamp(26px, 5vw, 56px);
  }
}

/* ---------- 页脚 ---------- */
footer {
  margin-top: clamp(32px, 6vw, 64px);
  padding: 0 var(--pad) 2rem;
  background: var(--ink);
  color: var(--paper);
}

.cta {
  padding: clamp(30px, 7vw, 62px) 0 clamp(24px, 4vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
}

.cta-brand {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 9vw, 4.4rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 99px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.cta-link:hover {
  background: var(--tint);
}

.foot-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
}

@media (min-width: 700px) {
  .foot-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.foot-nav dl {
  margin: 0;
}

.foot-nav dt {
  margin-bottom: 0.5rem;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.62);
}

.foot-nav dd {
  margin: 0;
}

.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

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

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.4rem;
  padding-top: 1.4rem;
  font-size: 14px;
}

.copy {
  margin: 0;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.foot-bottom .links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.foot-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

/* ---------- 动效 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

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

  .hero-img {
    transform: none !important;
  }

  .menu a {
    transition: none;
  }
}

/* ---------- 窄屏微调 ---------- */
@media (max-width: 479px) {
  .stripe {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .menu a {
    padding-right: 13px;
    font-size: 14px;
  }

  div > article:first-of-type > p:first-of-type::first-letter {
    font-size: 2.9em;
  }
}

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