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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --line: rgba(0, 0, 0, 0.14);
  --line-strong: rgba(0, 0, 0, 0.55);
  --dot: rgba(0, 0, 0, 0.13);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-soft: rgba(255, 255, 255, 0.76);
  --r: 18px;
  --rail: 0px;
  --dock: 76px;
  --serif: "Playfair Display", "Songti SC", "Noto Serif SC", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.78;
  padding-bottom: calc(var(--dock) + 1.5rem);
  overflow-x: hidden;
}

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

a {
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

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

/* ---------- 角落品牌图标 ---------- */
.rail {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  width: 60px;
  padding-top: 14px;
  pointer-events: none;
}

.rail-mark {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.rail-mark:hover {
  transform: rotate(-12deg);
}

.mark {
  display: block;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2.5rem;
  min-height: 100vh;
  min-height: 100svh;
  padding: 6rem 1.25rem 4rem calc(1.25rem + 42px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.3) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(180deg, #000 5%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 5%, transparent 72%);
  pointer-events: none;
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 1;
}

.hero-copy {
  flex: 0 1 auto;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  max-width: 14ch;
  word-break: break-word;
}

.hero-art {
  margin: 0;
  width: 100%;
  max-width: 340px;
  height: clamp(230px, 34vh, 320px);
  align-self: flex-end;
}

.hero-art:empty {
  display: none;
}

.shot {
  position: absolute;
  display: block;
  object-fit: cover;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  background: #f1f1f1;
  box-shadow: 0 34px 60px -34px rgba(0, 0, 0, 0.55);
  animation: settle 0.9s cubic-bezier(0.16, 0.7, 0.24, 1) both;
}

.shot-1 {
  width: 72%;
  height: 84%;
  top: 0;
  left: 0;
  z-index: 2;
  transform: rotate(-3.5deg);
  animation-delay: 0.1s;
}

.shot-2 {
  width: 58%;
  height: 66%;
  right: 0;
  bottom: 0;
  transform: rotate(4deg);
  animation-delay: 0.22s;
}

@keyframes settle {
  from {
    opacity: 0;
    translate: 0 26px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ---------- 正文骨架 ---------- */
.wrap {
  display: grid;
  gap: 2rem;
  padding: 4rem 1.25rem 2rem;
}

.side {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.side-h {
  margin: 0 0 0.55rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.78);
}

.sheet {
  min-width: 0;
}

.prose {
  padding: 1.75rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--glass-soft);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.prose > article {
  padding-block: 2.6rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 2rem;
  scroll-margin-bottom: calc(var(--dock) + 3rem);
}

.prose > article:first-child {
  padding-top: 0.4rem;
  border-top: 0;
}

.prose > article:last-child {
  padding-bottom: 0.6rem;
}

.prose h2 {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.prose h3 {
  margin: 2rem 0 0.6rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

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

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

.prose ul,
.prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

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

.prose a:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.prose img {
  border-radius: var(--r);
  border: 1px solid var(--line);
}

.prose blockquote {
  margin: 0 0 1.15rem;
  padding: 0.3rem 0 0.3rem 1.1rem;
  border-left: 2px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.prose strong {
  font-weight: 700;
}

/* ---------- 页脚 ---------- */
footer {
  padding: 3.5rem 1.25rem 3rem;
}

.f-grid {
  display: grid;
  gap: 1.6rem 1.25rem;
  grid-template-columns: 1fr 1fr;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ink);
}

.f-cell {
  font-size: 0.92rem;
  line-height: 1.6;
  min-width: 0;
}

.f-cell ul {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.f-cell a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding-right: 0.4rem;
  text-decoration: none;
}

.f-cell a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.f-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.f-brand a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}

.f-top {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1.05rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.86rem;
}

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

.f-base {
  margin-top: 2.5rem;
  text-align: center;
}

.f-base p {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.7rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

.dock-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.dock-nav ul {
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dock-nav li {
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.dock-nav li:nth-child(1) { animation-delay: 0.04s; }
.dock-nav li:nth-child(2) { animation-delay: 0.08s; }
.dock-nav li:nth-child(3) { animation-delay: 0.12s; }
.dock-nav li:nth-child(4) { animation-delay: 0.16s; }
.dock-nav li:nth-child(5) { animation-delay: 0.2s; }
.dock-nav li:nth-child(6) { animation-delay: 0.24s; }
.dock-nav li:nth-child(7) { animation-delay: 0.28s; }

.dock-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  white-space: nowrap;
  text-decoration: none;
}

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

.dock-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 14px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ---------- 滚动显现 ---------- */
.reveal .prose > article {
  opacity: 0;
  translate: 0 30px;
  transition: opacity 0.8s ease, translate 0.8s cubic-bezier(0.16, 0.7, 0.24, 1);
}

.reveal .prose > article.in {
  opacity: 1;
  translate: 0 0;
}

/* ---------- 中等屏 ---------- */
@media (min-width: 640px) {
  .prose {
    padding: 2.2rem 1.8rem;
  }
  .f-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 900px) {
  :root {
    --rail: 88px;
  }

  body {
    font-size: 18px;
    padding-bottom: calc(var(--dock) + 3rem);
  }

  .rail {
    bottom: 0;
    width: var(--rail);
    padding-top: 22px;
    height: auto;
  }

  .hero {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3.5rem;
    padding: 8rem 3rem 5rem calc(var(--rail) + 3rem);
  }

  .hero-art {
    flex: 0 0 auto;
    width: min(38vw, 400px);
    height: clamp(320px, 44vh, 420px);
    max-width: none;
  }

  .wrap {
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
    padding: 6rem 3rem 3rem calc(var(--rail) + 3rem);
  }

  .side {
    position: sticky;
    top: 2.5rem;
    padding: 1.8rem;
  }

  .prose {
    padding: 3rem 2.75rem;
  }

  .prose > article {
    padding-block: 3.4rem;
  }

  footer {
    padding: 5rem 3rem 4rem calc(var(--rail) + 3rem);
  }

  .f-grid {
    grid-template-columns: 1.4fr 1fr 1fr 0.9fr;
    gap: 2rem;
  }
}

@media (min-width: 1280px) {
  .hero {
    padding-right: 4.5rem;
  }
  .prose {
    padding: 3.4rem 3.4rem;
  }
  .wrap {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 5rem;
  }
}

/* ---------- 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal .prose > article {
    opacity: 1;
    translate: 0 0;
  }
}

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