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

:root {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --ash: #f5f5f5;
  --soft: #e9e9e9;
  --mute: #4f4f4f;
  --line: 2px solid var(--ink);
  --sh-1: 0 1px 2px rgba(31, 31, 31, .10), 0 2px 6px rgba(31, 31, 31, .06);
  --sh-2: 0 4px 10px rgba(31, 31, 31, .10), 0 12px 26px rgba(31, 31, 31, .08);
  --sh-3: 0 8px 20px rgba(31, 31, 31, .13), 0 22px 50px rgba(31, 31, 31, .13);
  --sh-4: 0 16px 40px rgba(31, 31, 31, .18), 0 42px 92px rgba(31, 31, 31, .16);
  --dock-h: 74px;
  --head: 'Amatic SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --body: 'Cabin', '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;
  padding-bottom: calc(var(--dock-h) + 18px);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, var(--ash) 0 42%, transparent 42%) 0 0 / 100% 640px no-repeat,
    var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--body);
  -webkit-tap-highlight-color: rgba(0, 0, 0, .08);
}

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: .03em;
  margin: 0 0 .5em;
}

a { color: var(--ink); }

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

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

/* ---------- 底部胶囊导航 ---------- */
.dock {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-top: var(--line);
  box-shadow: 0 -14px 34px rgba(31, 31, 31, .14);
}

.dock-brand {
  flex: 0 1 auto;
  max-width: 32vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--ink);
}

.dock-brand img { height: 30px; width: auto; }

.dock-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.dock-nav ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: var(--sh-1);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.pill:hover,
.pill:focus-visible,
.pill.is-on {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  z-index: 0;
  overflow: hidden;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: 84px max(20px, calc((100% - 1100px) / 2)) 64px;
  border-bottom: var(--line);
  background: linear-gradient(180deg, #fff 0%, var(--ash) 100%);
}

.hero-ghost {
  position: absolute;
  left: 50%;
  bottom: 4%;
  z-index: 0;
  transform: translateX(-50%);
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(4.5rem, 19vw, 15rem);
  line-height: .8;
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--ink);
  opacity: .07;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 .9rem;
  font-family: var(--head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .34em;
  color: var(--mute);
}

.hero h1 {
  font-size: clamp(2.2rem, 6.4vw, 4rem);
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0 0 .6rem;
  text-shadow: 0 2px 0 #fff, 0 12px 30px rgba(31, 31, 31, .12);
}

.hero-lede {
  margin: 0 auto 1.6rem;
  max-width: 30em;
  font-size: 1.02rem;
  color: var(--mute);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--sh-2);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.btn--solid {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--sh-3);
}

.btn--line { background: var(--paper); }

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--sh-4);
}

.btn--solid:hover,
.btn--solid:focus-visible { background: #000; color: #fff; }

/* 立体叠卡 */
.hero-art {
  position: relative;
  z-index: 1;
  width: min(78%, 380px);
  height: clamp(180px, 34vw, 320px);
  margin: 6px auto 0;
}

.art-card {
  position: absolute;
  inset: 0;
  display: block;
  border: var(--line);
  background: var(--paper);
  box-shadow: var(--sh-3);
}

.art-card--1 {
  z-index: 3;
  overflow: hidden;
  transform: rotate(-4deg);
  box-shadow: var(--sh-4);
}

.art-card--2 {
  z-index: 2;
  background: var(--ash);
  transform: rotate(5deg) translate(12px, 10px);
}

.art-card--3 {
  z-index: 1;
  background: var(--soft);
  transform: rotate(-10deg) translate(-14px, 18px);
}

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

/* ---------- 正文与右栏 ---------- */
.row {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px max(18px, calc((100% - 1104px) / 2)) 56px;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
}

.prose { min-width: 0; }

.prose > article {
  position: relative;
  margin: 0 0 26px;
  padding: 26px 20px;
  background: var(--paper);
  border: var(--line);
  box-shadow: var(--sh-2);
  scroll-margin-top: 24px;
  overflow-wrap: break-word;
  animation: rise .68s cubic-bezier(.2, .7, .3, 1) both;
  transition: box-shadow .22s ease, transform .22s ease;
}

.prose > article:nth-child(2n) { background: var(--ash); }

.prose > article:nth-child(1) { animation-delay: .04s; }
.prose > article:nth-child(2) { animation-delay: .1s; }
.prose > article:nth-child(3) { animation-delay: .16s; }
.prose > article:nth-child(4) { animation-delay: .22s; }
.prose > article:nth-child(5) { animation-delay: .28s; }
.prose > article:nth-child(6) { animation-delay: .34s; }
.prose > article:nth-child(7) { animation-delay: .4s; }
.prose > article:nth-child(8) { animation-delay: .46s; }

.prose > article:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
}

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

.prose h2 {
  font-size: clamp(1.7rem, 4.2vw, 2.25rem);
  margin: .1em 0 .7em;
}

.prose h2 > span {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 6px solid var(--ink);
}

.prose h3 {
  font-size: clamp(1.3rem, 3vw, 1.55rem);
  margin: 1.2em 0 .5em;
}

.prose h3 > span { display: inline-block; border-bottom: 4px solid var(--ink); }

.prose p {
  max-width: 64ch;
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
  max-width: 64ch;
}

.prose li { margin: .35em 0; }

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

.prose a:hover { background: var(--soft); }

.prose img,
.prose figure img {
  max-width: 100%;
  border: var(--line);
  box-shadow: var(--sh-2);
  margin: .4em 0 1em;
}

.prose figure { margin: 1em 0; }

.prose blockquote {
  margin: 1.1em 0;
  padding: 14px 18px;
  background: var(--paper);
  border-left: 6px solid var(--ink);
  box-shadow: var(--sh-1);
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 16px;
}

.prose th,
.prose td {
  border: 1px solid var(--ink);
  padding: 8px 10px;
  text-align: left;
}

.prose code {
  background: var(--soft);
  padding: .1em .35em;
  font-size: .95em;
}

/* 右栏 */
.rail {
  position: relative;
  z-index: 2;
  padding: 18px 16px 16px;
  background: var(--paper);
  border: var(--line);
  box-shadow: var(--sh-3);
}

.rail-h {
  font-size: 1.5rem;
  margin: 0 0 .8rem;
}

.rail-h > span {
  display: inline-block;
  padding-bottom: 1px;
  border-bottom: 5px solid var(--ink);
}

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

.rail-list li + li { margin-top: 5px; }

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px;
  border: 2px solid transparent;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  border-color: var(--ink);
  background: var(--ash);
  box-shadow: var(--sh-1);
}

.rail-num {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .12em;
  color: #8c8c8c;
}

.rail-txt { line-height: 1.35; }

.rail-back { margin: 0; }

.rail-back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: var(--line);
  background: var(--ash);
  font-size: 16px;
  text-decoration: none;
}

.rail-back a:hover { background: var(--ink); color: #fff; }

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  gap: 16px 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 34px max(18px, calc((100% - 1104px) / 2)) calc(26px + var(--dock-h));
  background: var(--ash);
  border-top: var(--line);
  box-shadow: inset 0 1px 0 #fff;
}

.foot p,
.foot small { margin: 0; font-size: 16px; }

.foot-name {
  font-family: var(--head);
  font-size: 1.35rem !important;
  font-weight: 700;
  letter-spacing: .08em;
}

.foot a {
  display: block;
  padding: 11px 0;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  line-height: 1.3;
}

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

.foot-copy { grid-column: 1 / 2; color: var(--mute); }

.foot-top {
  grid-column: 2 / 3;
  text-align: right;
}

.foot-top a { display: inline-block; }

/* ---------- 断点 ---------- */
@media (min-width: 760px) {
  .foot { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-copy { grid-column: 1 / 3; }
  .foot-top { grid-column: 4 / 5; }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 40px;
    min-height: 100vh;
    padding-top: 118px;
    padding-bottom: 88px;
  }
  .hero-copy { margin: 0; max-width: none; }
  .hero-art { margin: 0; width: 100%; height: clamp(240px, 26vw, 340px); }
  .hero-ghost { bottom: 8%; font-size: clamp(8rem, 17vw, 15rem); }
}

@media (min-width: 1000px) {
  .row {
    grid-template-columns: minmax(0, 1fr) 292px;
    align-items: start;
    padding-top: 64px;
  }
  .rail { position: sticky; top: 22px; }
  .prose > article { padding: 34px 32px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding-top: 68px; }
  .hero-ghost { font-size: 5rem; letter-spacing: .02em; }
  .prose > article { padding: 22px 16px; }
  .btn { flex: 1 1 100%; }
  .rail-list a { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
}

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