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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --rule: rgba(0, 0, 0, 0.14);
  --soft: 0 26px 60px -34px rgba(0, 0, 0, 0.55);
  --r: 28px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* 页头 */
.masthead {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand img {
  height: 26px;
  width: auto;
}

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

.anchorbar ol {
  display: flex;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchorbar ol::-webkit-scrollbar {
  display: none;
}

.anchorbar a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.42rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

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

/* 首屏 */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.6rem;
  min-height: 100vh;
  min-height: 100svh;
  padding: 4rem 1.25rem 0;
  overflow: hidden;
}

.hero-kicker {
  align-self: flex-end;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-title {
  align-self: stretch;
  text-align: right;
  font-size: clamp(3rem, 12vw, 10rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.hero-figure {
  width: 100%;
}

.hero-figure img {
  width: 100%;
  max-height: 42vh;
  object-fit: cover;
}

.slash {
  display: block;
  height: clamp(56px, 9vh, 112px);
  background: var(--ink);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* 版心 */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 3.5rem;
  align-items: start;
  padding: 2.5rem 0 5.5rem;
}

/* 正文 */
.prose {
  min-width: 0;
  font-size: 1.06rem;
  line-height: 1.85;
}

.prose > div {
  scroll-margin-top: 6.5rem;
  padding: 3rem 0;
  border-top: 2px solid var(--rule);
}

.prose > div:first-child {
  border-top: 0;
  padding-top: 0.5rem;
}

.prose h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.prose h3 {
  margin: 2rem 0 0.7rem;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.prose p {
  margin: 0 0 1.15rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.3rem;
}

.prose li {
  position: relative;
  padding-left: 1.5rem;
}

.prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.65rem;
  height: 2px;
  background: var(--ink);
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  font-weight: 700;
}

.prose blockquote {
  margin: 0 0 1.3rem;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 4px solid var(--ink);
  font-size: 1.1rem;
}

/* 右侧栏 */
.rail {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: 1rem;
}

.rail-card {
  padding: 1.15rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: var(--soft);
}

.rail-title {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.rail-title span {
  display: inline-block;
  padding-bottom: 0.18rem;
  border-bottom: 2px solid var(--ink);
}

.rail-card a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0;
  font-size: 1rem;
  line-height: 1.4;
  border-bottom: 1px dashed var(--rule);
}

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

.rail-card a:hover,
.rail-card a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 页脚 */
.foot {
  padding: 0 1.25rem;
  border-top: 4px solid var(--ink);
}

.foot div {
  max-width: 1180px;
  margin: 0 auto;
}

.foot-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  margin-top: 3.5rem;
  padding: clamp(2rem, 6vw, 3.5rem);
  border-radius: var(--r);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--soft);
}

.foot-big {
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.pill-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55rem 1.25rem;
  border: 2px solid var(--paper);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}

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

.foot-cta a:focus-visible {
  outline-color: var(--paper);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 3.5rem 0 1.5rem;
}

.foot-cols ul {
  display: grid;
  gap: 0.15rem;
}

.foot-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.15rem 0;
  font-size: 1rem;
  line-height: 1.4;
}

.foot-cols a:hover,
.foot-cols a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.foot-base {
  padding: 1.6rem 0 2.8rem;
  border-top: 2px solid var(--rule);
  text-align: center;
}

.foot-base p {
  font-size: 1rem;
  line-height: 1.6;
}

.foot-note {
  letter-spacing: 0.02em;
}

/* 滚动揭示 */
.js .prose > div,
.js .rail-card,
.js .foot div {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

  .js .prose > div,
  .js .rail-card,
  .js .foot div {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 断点 */
@media (min-width: 900px) {
  .anchorbar ol {
    justify-content: center;
  }

  .hero {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (max-width: 899px) {
  .body {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    padding-bottom: 4rem;
  }

  .rail {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .foot-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
    padding-top: 2.5rem;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .foot-cta {
    gap: 1.2rem;
  }
}

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