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

:root {
  --paper: #f5e6c8;
  --paper-lift: #fbf3e2;
  --tan: #d4a574;
  --ink: #262117;
  --mute: #4a3f2c;
  --faint: #8a7452;
  --line: rgba(38, 33, 23, 0.16);
  --shadow: 0 22px 46px -28px rgba(38, 33, 23, 0.62);
  --radius: 28px;
}

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

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

body {
  margin: 0;
  padding: 0 0 calc(150px + env(safe-area-inset-bottom));
  background: var(--paper);
  color: var(--ink);
  font-family: 'Exo', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(58vw 38vh at 90% -10%, rgba(255, 248, 220, 0.85), transparent 62%),
    radial-gradient(48vw 55vh at -12% 112%, rgba(212, 165, 116, 0.55), transparent 66%);
  animation: leak 20s ease-in-out infinite alternate;
}

@keyframes leak {
  from {
    opacity: 0.62;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.06);
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #8a5a1f;
  outline-offset: 3px;
}

/* 底部固定导航条 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  color: var(--paper);
  background: linear-gradient(180deg, rgba(38, 33, 23, 0.94), rgba(38, 33, 23, 0.99));
  border-top: 1px solid rgba(245, 230, 200, 0.26);
  box-shadow: 0 -22px 46px -30px rgba(38, 33, 23, 0.95);
}

.dock-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.dock-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  text-decoration: none;
}

.dock-mark {
  font-family: 'Roboto Mono', monospace;
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--tan);
}

.dock-logo-img {
  display: block;
  height: 26px;
  width: auto;
}

.dock-name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--paper);
}

.dock-nav p {
  display: flex;
  gap: 6px;
  margin: 0;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.dock-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  font-family: 'Roboto Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #f2e4c9;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(245, 230, 200, 0.22);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

/* 版心 */
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  column-gap: 46px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

[id] {
  scroll-margin-top: 28px;
}

.hero {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(54px, 9vh, 112px) 0 36px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  text-align: right;
}

.badge {
  margin: 0;
  display: inline-block;
  padding: 8px 20px;
  font-family: 'Roboto Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  transform: rotate(-2.5deg);
  box-shadow: var(--shadow);
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(38px, 8.4vw, 82px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0;
  max-width: 54ch;
  color: var(--mute);
  font-size: 17px;
}

.hero-frame {
  position: relative;
  align-self: flex-start;
  width: min(520px, 100%);
  margin: 0;
  padding: 14px 14px 54px;
  background: #fcf6e7;
  border-radius: 6px;
  box-shadow: 0 34px 62px -36px rgba(38, 33, 23, 0.85);
  transform: rotate(-1.6deg);
  will-change: transform;
}

.hero-frame::after {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 94px;
  height: 26px;
  background: rgba(212, 165, 116, 0.72);
  transform: translateX(-50%) rotate(1.2deg);
  box-shadow: 0 3px 8px rgba(38, 33, 23, 0.22);
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  filter: sepia(0.34) contrast(1.05) saturate(0.82);
}

.hero-blank {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  background: linear-gradient(135deg, #ecd8b2, #c9ad86);
}

/* 正文 */
.feed {
  grid-column: 1;
  min-width: 0;
  counter-reset: sec;
}

.feed > section {
  position: relative;
  counter-increment: sec;
  margin-bottom: 26px;
  padding: clamp(22px, 3.6vw, 42px);
  background: rgba(253, 248, 236, 0.78);
  border: 1px solid rgba(38, 33, 23, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feed > section::before {
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: 'Roboto Mono', monospace;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: rgba(212, 165, 116, 0.95);
}

.feed h2 {
  margin: 0.1em 0 0.7em;
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feed h3 {
  margin: 1.5em 0 0.5em;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

.feed p {
  margin: 0 0 1.1em;
  color: #3b3225;
}

.feed p:last-child,
.feed ul:last-child,
.feed ol:last-child {
  margin-bottom: 0;
}

.feed ul,
.feed ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.feed li {
  margin: 0.35em 0;
}

.feed a {
  color: #8a5a1f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feed blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  background: rgba(212, 165, 116, 0.18);
  border-left: 3px solid var(--tan);
  border-radius: 0 16px 16px 0;
}

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

.feed img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.feed figure {
  margin: 1.4em 0;
}

.feed time {
  font-family: 'Roboto Mono', monospace;
  font-size: 16px;
  color: var(--faint);
}

/* 右侧浮卡 */
.rail {
  grid-column: 2;
  min-width: 0;
}

.rail-card {
  position: sticky;
  top: 26px;
  padding: 22px;
  background: rgba(253, 248, 236, 0.86);
  border: 1px solid rgba(38, 33, 23, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rail-card small {
  display: block;
  margin-bottom: 6px;
  font-family: 'Roboto Mono', monospace;
  font-size: 15px;
  letter-spacing: 0.28em;
  color: var(--faint);
}

.rail-card h2 {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.32;
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rail;
}

.rail-list li {
  counter-increment: rail;
  border-top: 1px dashed var(--line);
}

.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  color: var(--tan);
}

.rail-list a:hover,
.rail-list a:focus-visible {
  color: #8a5a1f;
  transform: translateX(3px);
}

/* 页脚 */
.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px 40px;
}

.foot-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5.4vw, 60px);
  text-align: right;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.foot-cta::after {
  content: '';
  position: absolute;
  inset: -30% -10% auto auto;
  width: 46%;
  height: 160%;
  background: radial-gradient(closest-side, rgba(212, 165, 116, 0.5), transparent 72%);
  pointer-events: none;
}

.foot-cta small {
  display: block;
  margin-bottom: 10px;
  font-family: 'Roboto Mono', monospace;
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--tan);
}

.foot-cta h2 {
  margin: 0 0 24px;
  font-size: clamp(26px, 5vw, 46px);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.foot-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 32px;
  font-family: 'Roboto Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--ink);
  background: var(--tan);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.foot-btn:hover,
.foot-btn:focus-visible {
  background: var(--paper);
  transform: translateY(-2px);
}

.foot-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 22px;
  padding: 32px 0 22px;
  border-bottom: 1px solid var(--line);
}

.foot address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mute);
}

.foot address span {
  font-family: 'Roboto Mono', monospace;
  font-size: 15px;
  color: var(--faint);
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 20px;
  max-width: 62%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot ul a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  color: var(--mute);
  text-decoration: none;
}

.foot ul a:hover,
.foot ul a:focus-visible {
  color: #8a5a1f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  font-size: 15px;
  color: var(--faint);
}

.foot-base p {
  margin: 0;
}

.foot-base a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-family: 'Roboto Mono', monospace;
  color: inherit;
  text-decoration: none;
}

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

/* 入场 */
.js .feed > article,
.js .rail-card,
.js .foot-cta {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.js .is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  main {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    padding: 0 18px 18px;
  }

  .hero {
    grid-column: 1;
    padding-top: 58px;
    gap: 26px;
  }

  .hero-frame {
    align-self: stretch;
    width: 100%;
    transform: none;
  }

  .rail {
    grid-column: 1;
    order: 1;
    margin-bottom: 26px;
  }

  .rail-card {
    position: static;
  }

  .feed {
    grid-column: 1;
    order: 2;
  }

  .foot {
    padding: 20px 18px 34px;
  }

  .foot ul {
    max-width: 100%;
  }

  .foot-cols {
    flex-direction: column;
  }
}

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

  body::after {
    animation: none;
  }

  .js .feed > article,
  .js .rail-card,
  .js .foot-cta {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-frame {
    will-change: auto;
  }
}

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