@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Crimson+Pro:wght@400;600;700&display=swap');

:root {
  --ink: #0F172A;
  --coral: #FF5A5F;
  --cream: #F2E9E1;
  --paper: #FFFCFA;
  --deep: #26303f;
  --link: #c8353a;
  --edge: rgba(15, 23, 42, .18);
  --r: 18px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Atkinson Hyperlegible', ui-sans-serif, system-ui, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ink);
  text-decoration: none;
}

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

h1,
h2,
h3 {
  font-family: 'Crimson Pro', Georgia, 'Songti SC', serif;
  line-height: 1.16;
  margin: 0;
}

p {
  margin: 0 0 1em;
}

/* 顶栏 */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: var(--ink);
  color: var(--cream);
  border-bottom: 3px solid var(--coral);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--coral);
  border: 2px solid var(--coral);
  color: var(--ink);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  overflow: hidden;
  transition: background .15s ease, border-color .15s ease;
}

.brand:hover {
  background: var(--cream);
  border-color: var(--cream);
}

.brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.bar nav {
  margin-left: auto;
  max-width: calc(100% - 56px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.bar nav p {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
}

.bar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1.5px solid rgba(242, 233, 225, .42);
  color: var(--cream);
  font-size: 16px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.bar nav a:hover,
.bar nav a:focus-visible {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--ink);
}

/* 首屏 */
.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 42px 20px 60px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: 40px;
}

.hero h1 {
  font-size: clamp(2.05rem, 5.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -.01em;
  max-width: 13ch;
  margin-bottom: .35em;
}

.lede {
  font-size: 1.02rem;
  color: var(--deep);
  max-width: 32em;
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--coral);
  background: var(--coral);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.collage {
  position: relative;
  min-height: min(62vh, 470px);
  height: 100%;
}

.collage::before {
  content: "";
  position: absolute;
  inset: 14% 8% 6% 8%;
  background: var(--coral);
  border-radius: var(--r);
}

.ph {
  position: absolute;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
}

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

.ph-a {
  top: 0;
  left: 0;
  width: 60%;
  aspect-ratio: 4 / 5;
}

.ph-b {
  bottom: 0;
  right: 0;
  width: 62%;
  aspect-ratio: 4 / 5;
}

.badge {
  position: absolute;
  z-index: 3;
  top: 4%;
  right: 0;
  transform: rotate(-5deg);
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 16px;
  font-weight: 700;
}

/* 主体 */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px 80px;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 78px;
  padding: 18px 16px 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: rgba(255, 252, 250, .62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rail-k {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: .08em;
  margin-bottom: .2em;
}

.rail-t {
  font-size: 1.45rem;
  margin-bottom: .55em;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1.5px solid var(--edge);
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 0;
  font-size: 16px;
  border-bottom: 1.5px solid var(--edge);
  transition: color .15s ease, padding-left .15s ease;
}

.rail-list a:hover {
  color: var(--coral);
  padding-left: 6px;
}

.rail-back {
  margin: 14px 0 0;
}

.rail-back a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  font-weight: 700;
  color: var(--coral);
}

.sheet {
  padding: clamp(20px, 3.2vw, 44px);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  background: rgba(255, 252, 250, .68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sheet section[id] {
  scroll-margin-top: 90px;
}

.sheet > section {
  padding: 4px 0 10px;
  animation: rise .42s ease both;
}

.sheet > section + section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1.5px solid var(--edge);
}

.sheet > section:nth-child(1) { animation-delay: .03s; }
.sheet > section:nth-child(2) { animation-delay: .07s; }
.sheet > section:nth-child(3) { animation-delay: .11s; }
.sheet > section:nth-child(4) { animation-delay: .15s; }
.sheet > section:nth-child(5) { animation-delay: .19s; }
.sheet > section:nth-child(6) { animation-delay: .23s; }
.sheet > section:nth-child(7) { animation-delay: .27s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sheet h2 {
  font-size: clamp(1.45rem, 2.7vw, 1.95rem);
  margin: 0 0 .5em;
}

.sheet h3 {
  font-size: 1.22rem;
  margin: 1.5em 0 .4em;
}

.sheet small {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: .06em;
  margin-bottom: .18em;
}

.sheet small + h2,
.sheet small + h3 {
  margin-top: 0;
}

.sheet ul,
.sheet ol {
  padding-left: 1.25em;
  margin: 0 0 1em;
}

.sheet li {
  margin: .38em 0;
}

.sheet a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s ease;
}

.sheet a:hover {
  color: var(--ink);
}

.sheet img {
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  margin: 1em 0;
}

.sheet figure {
  margin: 1.2em 0;
}

.sheet blockquote {
  margin: 1.3em 0;
  padding: .2em 0 .2em 1em;
  border-left: 4px solid var(--coral);
  color: var(--deep);
}

.sheet table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.sheet th,
.sheet td {
  border: 1.5px solid var(--edge);
  padding: 8px 10px;
  text-align: left;
}

.sheet code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
}

/* 页脚 */
footer {
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  padding: 56px 20px 34px;
  text-align: center;
}

.foot-cta {
  margin: 0;
}

.foot-cta a {
  display: inline-block;
  padding: 6px 10px;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 700;
  color: var(--cream);
  border-bottom: 3px solid var(--coral);
  transition: color .18s ease;
}

.foot-cta a:hover {
  color: var(--coral);
}

footer small {
  display: block;
  margin-top: 20px;
  font-size: 16px;
  color: rgba(242, 233, 225, .76);
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 28px 16px 44px;
    gap: 26px;
  }

  .hero h1 {
    max-width: none;
  }

  .collage {
    min-height: 330px;
  }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 16px 64px;
    gap: 22px;
  }

  .rail {
    position: static;
  }
}

@media (max-width: 520px) {
  .bar {
    padding: 8px 10px;
    gap: 8px;
  }

  .ph-a {
    width: 57%;
  }

  .ph-b {
    width: 59%;
  }

  .collage {
    min-height: 290px;
  }
}

@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}
