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

:root {
  --sand: #f5e6c8;
  --tan: #d4a574;
  --ink: #262117;
  --paper: #fbf3e1;
  --line: rgba(38, 33, 23, 0.18);
  --deep: #8a5a24;
  --disp: 'Space Grotesk', 'DM Sans', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --text: 'DM Sans', 'Space Grotesk', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-bottom: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 78px;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.78;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.17;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/></filter><rect width='150' height='150' filter='url(%23g)' opacity='.6'/></svg>");
  background-size: 150px 150px;
}

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

menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

/* ---------- 固定底栏 ---------- */
.dock {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem clamp(0.9rem, 3vw, 2rem);
  background: rgba(38, 33, 23, 0.95);
  border-top: 1px solid rgba(212, 165, 116, 0.45);
  color: #f7ecd6;
}

.dock__drawer {
  display: contents;
}

.dock__key {
  display: none;
}

.dock__set {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.4rem, 1.8vw, 1.4rem);
}

.dock__set--lead {
  grid-column: 1;
  justify-content: flex-end;
}

.dock__set--tail {
  grid-column: 3;
  justify-content: flex-start;
}

.dock__set a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.45rem;
  color: #f2e4cc;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.22s ease, border-color 0.22s ease;
}

.dock__set a:hover {
  color: #fff8e9;
  border-bottom-color: var(--tan);
}

.dock__brand {
  grid-column: 2;
  justify-self: center;
  padding: 0.55rem 0.4rem;
  font-family: var(--disp);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--sand);
  text-decoration: none;
  white-space: nowrap;
}

.dock a:focus-visible {
  outline-color: var(--sand);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(2.2rem, 7vw, 4.5rem) clamp(1.1rem, 5vw, 4rem) clamp(6rem, 13vw, 8rem);
  overflow: hidden;
  background:
    radial-gradient(120% 85% at 8% -10%, rgba(212, 165, 116, 0.5), transparent 62%),
    linear-gradient(180deg, #f8eedb, var(--sand) 64%, #eed9b5);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: screen;
  background:
    radial-gradient(38% 52% at 88% 10%, rgba(255, 190, 112, 0.85), transparent 72%),
    radial-gradient(28% 38% at 2% 84%, rgba(226, 126, 84, 0.55), transparent 74%);
  animation: leak 15s ease-in-out infinite alternate;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
}

.hero__kicker {
  margin: 0 0 0.9rem;
  font-family: var(--disp);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  color: var(--deep);
  animation: rise 0.7s ease both;
}

.hero__title {
  margin: 0;
  font-family: var(--disp);
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
  animation: rise 0.7s 0.06s ease both;
}

.hero__lede {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(38, 33, 23, 0.78);
  animation: rise 0.7s 0.14s ease both;
}

.hero__collage {
  position: relative;
  z-index: 1;
  height: min(64vh, 500px);
}

.shot {
  position: absolute;
  margin: 0;
  padding: 12px 12px 36px;
  background: #fdf8ec;
  border-radius: 2px;
  box-shadow: 0 22px 38px -20px rgba(38, 33, 23, 0.65);
}

.shot--a {
  top: 1%;
  left: 0;
  width: min(66%, 272px);
  rotate: -4.5deg;
  animation: sway 9s ease-in-out infinite alternate;
}

.shot--b {
  right: 0;
  bottom: 1%;
  width: min(58%, 238px);
  rotate: 5deg;
  animation: sway 11s 0.6s ease-in-out infinite alternate-reverse;
}

.shot__img {
  display: block;
  width: 100%;
  border-radius: 1px;
  filter: sepia(0.34) contrast(1.06) saturate(0.82);
}

/* ---------- 正文骨架 ---------- */
main {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 198px) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.4rem);
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(1.9rem, 6vw, 3.6rem) clamp(1.1rem, 5vw, 2.6rem) clamp(3rem, 8vw, 5rem);
}

.side {
  position: sticky;
  top: 1.5rem;
  align-self: start;
  font-size: 0.95rem;
}

.side__title {
  margin: 0 0 0.9rem;
  font-family: var(--disp);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.side__title span {
  padding-bottom: 0.2rem;
  border-bottom: 2px solid var(--tan);
}

.side li {
  animation: rise 0.5s ease both;
}

.side li:nth-child(2) { animation-delay: 0.05s; }
.side li:nth-child(3) { animation-delay: 0.1s; }
.side li:nth-child(4) { animation-delay: 0.15s; }
.side li:nth-child(5) { animation-delay: 0.2s; }
.side li:nth-child(6) { animation-delay: 0.25s; }
.side li:nth-child(7) { animation-delay: 0.3s; }

.side li a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0.3rem 0.2rem;
  color: rgba(38, 33, 23, 0.86);
  text-decoration: none;
  border-top: 1px dashed var(--line);
  transition: transform 0.24s ease, color 0.24s ease;
}

.side li:last-child a {
  border-bottom: 1px dashed var(--line);
}

.side li a:hover {
  transform: translateX(4px);
  color: var(--deep);
}

.sheet {
  min-width: 0;
}

.sheet__body {
  max-width: 70ch;
}

.sheet__body > article {
  padding: clamp(1.5rem, 4vw, 2.4rem) 0;
}

.sheet__body > article + article {
  border-top: 1px solid var(--line);
}

.sheet__body > article:first-child {
  padding-top: 0;
}

.sheet__body h2 {
  margin: 0 0 1rem;
  font-family: var(--disp);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.36;
  letter-spacing: -0.01em;
}

.sheet__body h2 > span {
  box-shadow: inset 0 -0.32em 0 rgba(212, 165, 116, 0.55);
}

.sheet__body h3 {
  margin: 1.6rem 0 0.6rem;
  font-family: var(--disp);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
}

.sheet__body h3 > span {
  border-bottom: 1px solid rgba(212, 165, 116, 0.9);
}

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

.sheet__body ul,
.sheet__body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
}

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

.sheet__body a {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.sheet__body blockquote {
  margin: 1.4rem 0;
  padding: 0.85rem 1.1rem;
  background: rgba(212, 165, 116, 0.18);
  border-left: 3px solid var(--tan);
}

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

.sheet__body figure {
  margin: 1.4rem 0;
}

.sheet__body img {
  border-radius: 2px;
  filter: sepia(0.2) contrast(1.03) saturate(0.9);
}

.sheet__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.sheet__body th,
.sheet__body td {
  padding: 0.5rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

/* ---------- 页脚 ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.6rem;
  padding: 1rem clamp(1.1rem, 5vw, 2.6rem) 5.4rem;
  background: var(--sand);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.foot article {
  min-width: 0;
}

.foot__brand {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-family: var(--disp);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
}

.foot__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.9rem;
}

.foot__list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: rgba(38, 33, 23, 0.76);
  text-decoration: none;
}

.foot__list a:hover {
  color: var(--deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.foot__legal p {
  margin: 0;
  color: rgba(38, 33, 23, 0.6);
}

/* ---------- 动效 ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sway {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-9px);
  }
}

@keyframes leak {
  from {
    opacity: 0.32;
  }
  to {
    opacity: 0.68;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 760px) {
  body {
    padding-bottom: 70px;
    font-size: 16px;
  }

  .dock {
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
  }

  .dock__brand {
    justify-self: center;
    font-size: 0.98rem;
  }

  .dock__drawer {
    display: block;
  }

  .dock__key {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.8rem;
    border: 1px solid rgba(245, 230, 200, 0.42);
    border-radius: 4px;
    font-size: 0.92rem;
    cursor: pointer;
    list-style: none;
  }

  .dock__key::-webkit-details-marker {
    display: none;
  }

  .dock__set {
    display: none;
  }

  .dock__drawer[open] {
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: calc(100% + 0.5rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.1rem 1rem;
    padding: 0.7rem;
    background: rgba(38, 33, 23, 0.98);
    border: 1px solid rgba(212, 165, 116, 0.45);
    border-radius: 6px;
  }

  .dock__drawer[open] .dock__key {
    grid-column: 1 / -1;
    padding-left: 0.3rem;
    border-color: transparent;
  }

  .dock__drawer[open] .dock__set {
    display: grid;
    gap: 0.1rem;
  }

  .dock__drawer[open] .dock__set a {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    min-height: 100vh;
    min-height: 100svh;
    padding: 2rem 1.1rem 6rem;
  }

  .hero__collage {
    height: 36vh;
    min-height: 220px;
    margin-top: 1.5rem;
  }

  .hero__title {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }

  .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.7rem;
    padding-top: 1.6rem;
  }

  .side {
    position: static;
  }

  .side__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
  }

  .side li a {
    border-top: 0;
    border-bottom: 0;
    min-height: 40px;
  }

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

  .foot {
    padding-bottom: 5.2rem;
  }
}

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