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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --r: 18px;
  --gutter: clamp(1.05rem, 4vw, 3.4rem);
}

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

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

body {
  margin: 0;
  padding-bottom: 118px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: -0.011em;
  font-weight: 400;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--r) 0;
  z-index: 99;
  text-decoration: none;
}

.skip:focus {
  left: 0;
}

/* ---------- 顶栏 ---------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.4rem);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #000;
  margin-right: 0.55rem;
  flex: 0 0 auto;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(2rem, 6vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-ghost {
  position: absolute;
  left: 50%;
  bottom: -0.06em;
  transform: translateX(-50%);
  font-size: clamp(4rem, 21vw, 19rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.78;
  white-space: nowrap;
  color: #000;
  opacity: 0.06;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  min-width: 0;
}

.hero h1 {
  margin: 0 0 1.3rem;
  font-size: clamp(2.55rem, 8.6vw, 7rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.055em;
  word-break: break-word;
}

.hero-desc {
  margin: 0 auto;
  max-width: 32ch;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.62;
  opacity: 0.78;
}

.hero-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: var(--r);
  background: #000;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: grid;
  place-items: center;
  max-height: 74svh;
}

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

.hero-mark {
  color: #fff;
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

/* ---------- 正文 + 侧栏 ---------- */
.body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: clamp(1rem, 2.6vw, 2.2rem);
  align-items: start;
  padding: 0 var(--gutter) clamp(3rem, 8vw, 6rem);
}

.prose {
  min-width: 0;
}

.prose > article {
  scroll-margin-top: 1.4rem;
  padding: clamp(1.6rem, 4vw, 3.4rem);
  border: 1px solid #000;
  border-radius: var(--r);
  background: #fff;
  color: #000;
}

.prose > article + article {
  margin-top: clamp(0.9rem, 2.2vw, 1.6rem);
}

.prose > article:nth-of-type(even) {
  background: #000;
  color: #fff;
  border-color: #000;
}

.prose h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.prose h3 {
  margin: 1.7rem 0 0.6rem;
  font-size: clamp(1.12rem, 1.9vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

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

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.35rem 0;
}

.prose a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.prose > article:nth-of-type(even) a {
  color: #fff;
}

.prose blockquote {
  margin: 1.2rem 0;
  padding-left: 1rem;
  border-left: 3px solid currentColor;
  opacity: 0.9;
}

.prose img {
  border-radius: 12px;
  margin: 1.1rem 0;
}

.prose hr {
  border: 0;
  border-top: 1px solid currentColor;
  opacity: 0.28;
  margin: 1.3rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.prose th,
.prose td {
  border-bottom: 1px solid currentColor;
  padding: 0.55rem 0.4rem;
  text-align: left;
}

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 1.3rem;
  padding: 1.35rem 1.15rem 1.1rem;
  border-radius: var(--r);
  background: #000;
  color: #fff;
}

.side h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.side hr {
  border: 0;
  border-top: 1px solid #fff;
  opacity: 0.35;
  margin: 0.85rem 0 0.75rem;
}

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

.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.15rem 0;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

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

.side-list a:hover {
  opacity: 0.6;
}

/* ---------- 页脚 ---------- */
footer {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr;
  gap: clamp(1.1rem, 3vw, 2.4rem);
  border-top: 1px solid #000;
  padding: clamp(2rem, 5vw, 3.4rem) var(--gutter) 1.4rem;
}

footer article {
  min-width: 0;
}

.foot-brand {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.foot-desc {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  line-height: 1.62;
  max-width: 30ch;
  opacity: 0.75;
}

footer h3 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  opacity: 0.55;
}

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

.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 1rem;
  text-decoration: none;
}

.foot-list a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.foot-base {
  grid-column: 1 / -1;
  margin-top: 0.9rem;
  padding-top: 1.1rem;
  border-top: 1px solid #000;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.7;
}

/* ---------- 底部胶囊导航 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem clamp(0.8rem, 2vw, 1.4rem) calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid #000;
}

.dock-nav {
  min-width: 0;
  max-width: 100%;
}

.dock-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dock-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.4rem 0.85rem;
  border: 1px solid #000;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  background: #fff;
  color: #000;
}

.dock-nav a:hover {
  background: #000;
  color: #fff;
}

.dock-brand a {
  background: #000;
  color: #fff;
  font-weight: 800;
}

.dock-brand a:hover {
  background: #fff;
  color: #000;
}

.dock-search {
  position: absolute;
  right: clamp(0.8rem, 2vw, 1.4rem);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dock-input {
  width: 148px;
  min-width: 0;
  height: 42px;
  padding: 0 0.95rem;
  border: 1px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 1rem;
}

.dock-input::placeholder {
  color: #000;
  opacity: 0.5;
}

.dock-btn {
  height: 42px;
  min-width: 44px;
  padding: 0 0.75rem;
  border: 1px solid #000;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- 断点 ---------- */
@media (max-width: 1080px) {
  body {
    padding-bottom: 184px;
  }

  .dock {
    flex-direction: column;
    align-items: stretch;
    gap: 0.42rem;
  }

  .dock-nav {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .dock-nav::-webkit-scrollbar {
    display: none;
  }

  .dock-nav ul {
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
  }

  .dock-search {
    position: static;
    transform: none;
    width: 100%;
  }

  .dock-input {
    flex: 1 1 auto;
    width: auto;
  }
}

@media (max-width: 1000px) {
  .body-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
    order: 2;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  .foot-lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-top: 0.6rem;
  }

  .hero-copy {
    padding: 1.4rem 0 1.6rem;
  }

  .hero-figure {
    aspect-ratio: 16 / 10;
    max-height: none;
    margin-bottom: 1.6rem;
  }

  .hero-ghost {
    bottom: auto;
    top: 0.2em;
    font-size: clamp(3.4rem, 22vw, 8rem);
  }

  .prose h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  footer {
    grid-template-columns: 1fr;
  }

  .foot-lead {
    grid-column: auto;
  }

  .foot-list a {
    min-height: 44px;
  }
}

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

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

  .hero-ghost {
    will-change: auto;
  }
}

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