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

:root {
  --paper: #f5e6c8;
  --paper-2: #efd9b3;
  --tan: #d4a574;
  --tan-deep: #a9763f;
  --ink: #262117;
  --line: rgba(38, 33, 23, 0.18);
  --soft: rgba(38, 33, 23, 0.62);
  --cond: "Barlow Condensed", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --body: "Barlow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --shadow: 0 22px 44px -26px rgba(38, 33, 23, 0.7);
}

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

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

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

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

a {
  color: inherit;
}

body::after {
  content: "";
  position: fixed;
  inset: -8%;
  z-index: 30;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain 5.5s steps(5) infinite;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.5%); }
  50% { transform: translate(1.5%, -2%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 70vh;
  padding: clamp(26px, 6vw, 66px);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
  background: linear-gradient(158deg, #ecd6b1 0%, var(--tan) 58%, #bb8a4d 100%);
}

.hero-shot {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.36) contrast(1.06) saturate(0.78);
  animation: vhs 11s ease-in-out infinite;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(92deg, rgba(38, 33, 23, 0.7) 0%, rgba(38, 33, 23, 0.24) 55%, rgba(38, 33, 23, 0.52) 100%),
    radial-gradient(70% 60% at 78% 20%, rgba(245, 230, 200, 0.3), transparent 70%);
}

.hero-ghost {
  position: absolute;
  left: 1%;
  bottom: -0.16em;
  z-index: 2;
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(86px, 22vw, 260px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: rgba(245, 230, 200, 0.22);
  white-space: nowrap;
  pointer-events: none;
}

.leak {
  position: absolute;
  z-index: 2;
  top: -12%;
  right: -14%;
  width: 62%;
  height: 130%;
  background: radial-gradient(closest-side, rgba(255, 219, 168, 0.55), rgba(255, 219, 168, 0));
  mix-blend-mode: screen;
  animation: leak 9s ease-in-out infinite alternate;
}

@keyframes leak {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.55; }
  to { transform: translate3d(-9%, 4%, 0) scale(1.16); opacity: 0.95; }
}

@keyframes vhs {
  0%, 92%, 100% { transform: none; filter: sepia(0.36) contrast(1.06) saturate(0.78); }
  94% { transform: skewX(-0.6deg) translateX(2px); filter: sepia(0.5) contrast(1.12) saturate(0.7); }
  96% { transform: skewX(0.5deg) translateX(-2px); }
}

.hero-copy {
  position: relative;
  z-index: 3;
  text-align: right;
  color: var(--paper);
  max-width: 22ch;
}

.kicker {
  margin: 0 0 10px;
  font-family: var(--cond);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--paper-2);
}

.hero h1 {
  margin: 0;
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(34px, 7.4vw, 78px);
  line-height: 1.02;
  letter-spacing: 0.012em;
  text-shadow: 0 10px 30px rgba(38, 33, 23, 0.45);
}

/* ---------- 布局骨架 ---------- */

.grid {
  display: grid;
  gap: 30px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 58px) clamp(18px, 4vw, 40px);
}

@media (min-width: 940px) {
  .grid {
    grid-template-columns: 218px minmax(0, 1fr);
    gap: 54px;
  }
}

/* ---------- 侧栏 ---------- */

.rail {
  order: 0;
}

.rail-in {
  border-top: 3px solid var(--ink);
  padding-top: 16px;
}

@media (min-width: 940px) {
  .rail-in {
    position: sticky;
    top: 26px;
  }
}

.rail-title {
  margin: 0;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.16em;
  line-height: 1.3;
}

.subtitle {
  margin: 10px 0 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--soft);
}

.rail-list {
  display: flex;
  flex-direction: column;
  border-top: 1px dashed var(--line);
}

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 2px;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.18s ease, padding-left 0.18s ease;
}

.rail-list a:hover,
.rail-list a[aria-current] {
  color: var(--tan-deep);
  padding-left: 8px;
}

/* ---------- 正文 ---------- */

.prose {
  min-width: 0;
}

.prose section {
  scroll-margin-top: 22px;
  padding: clamp(28px, 5vw, 54px) 0;
  border-top: 1px dashed var(--line);
}

.prose section:first-child {
  border-top: 0;
  padding-top: 0;
}

.prose h2 {
  margin: 0 0 12px;
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.12;
  letter-spacing: 0.012em;
}

.prose h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 12px;
  background: var(--tan);
}

.prose h2 + p {
  margin-top: 16px;
  font-size: 16px;
  color: var(--soft);
}

.prose h3 {
  margin: 28px 0 10px;
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.24;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
  max-width: 66ch;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 7px;
}

.prose a {
  color: var(--tan-deep);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

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

.prose strong {
  font-weight: 600;
}

.prose blockquote {
  margin: 22px 0;
  padding: 4px 0 4px 18px;
  border-left: 4px solid var(--tan);
  color: rgba(38, 33, 23, 0.78);
}

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

.prose figure {
  margin: 24px 0;
}

.prose img {
  max-width: 100%;
  padding: 10px 10px 32px;
  background: #fdf7ea;
  border-radius: 2px;
  box-shadow: var(--shadow);
  filter: sepia(0.18) saturate(0.9);
}

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

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

.prose th {
  font-family: var(--cond);
  font-size: 17px;
  letter-spacing: 0.08em;
  background: rgba(212, 165, 116, 0.28);
}

.rev {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.7, 0.3, 1);
}

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

/* ---------- 页脚 ---------- */

.foot {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(30px, 5vw, 54px) clamp(20px, 5vw, 48px) 16px;
}

.foot-cols {
  display: grid;
  gap: 26px;
  max-width: 1100px;
  margin: 0 auto 26px;
}

@media (min-width: 760px) {
  .foot-cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}

.foot dl {
  margin: 0;
}

.foot dt {
  margin-bottom: 8px;
  font-family: var(--cond);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--tan);
}

.foot dd {
  margin: 0;
}

.foot dd a,
.foot .top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.foot dd a:hover,
.foot .top:hover,
.foot a[aria-current] {
  color: var(--tan);
  border-bottom-color: var(--tan);
}

.foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 12px;
  border-top: 1px solid rgba(245, 230, 200, 0.16);
  font-size: 14px;
  color: rgba(245, 230, 200, 0.68);
}

.foot-bar .copy {
  margin: 0;
}

.foot-bar .top {
  color: var(--tan);
}

/* ---------- 底部固定条 ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(38, 33, 23, 0.97);
  border-top: 2px solid var(--tan);
  box-shadow: 0 -14px 30px -22px rgba(0, 0, 0, 0.9);
}

.dock-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 4px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 7px 10px 9px;
}

.dock .dl,
.dock .dr {
  display: contents;
}

.dock a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 9px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  color: var(--paper);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.dock a:hover,
.dock a[aria-current] {
  background: rgba(212, 165, 116, 0.24);
  color: var(--tan);
}

.dock .mark {
  flex: 1 0 100%;
  order: -1;
  justify-content: center;
  padding: 5px 0 3px;
  font-family: var(--cond);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--paper);
}

.dock .cta {
  margin-top: 2px;
  background: var(--tan);
  color: var(--ink);
  font-weight: 600;
}

.dock .cta:hover {
  background: var(--paper);
  color: var(--ink);
}

@media (min-width: 900px) {
  body {
    padding-bottom: 96px;
  }

  .dock-inner {
    flex-wrap: nowrap;
    gap: 16px;
    padding: 9px 24px;
  }

  .dock .mark {
    flex: 0 0 auto;
    order: 0;
    padding: 6px 4px;
    font-size: 22px;
  }

  .dock .dl {
    display: flex;
    flex: 1;
    gap: 4px;
  }

  .dock .dr {
    display: flex;
    flex: 1;
    gap: 4px;
    justify-content: flex-end;
  }

  .dock .cta {
    margin-left: 6px;
  }
}

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

  body::after,
  .hero-shot img,
  .leak {
    animation: none;
  }

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

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