@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --ink: #0F1B2D;
  --clay: #E4572E;
  --cream: #F5F0E6;
  --line: rgba(245, 240, 230, 0.22);
  --glass: rgba(245, 240, 230, 0.06);
  --soft: rgba(245, 240, 230, 0.78);
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 116px;
  background: transparent;
  color: var(--cream);
  font-family: "Cormorant Garamond", "Libre Baskerville", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(245, 240, 230, 0.15) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.75;
}

header,
main,
footer,
.corner-mark {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: #ffffff;
}

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

img {
  max-width: 100%;
}

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

small {
  display: block;
  margin: 0 0 4px;
  color: var(--clay);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
}

small + h2 {
  margin-top: 0;
}

/* 角落标记 */
.corner-mark {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.corner-mark:hover,
.corner-mark:focus-visible {
  background: var(--clay);
  border-color: var(--clay);
  color: #ffffff;
}

.mark-img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* 底部固定条 */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px max(14px, calc((100vw - 1080px) / 2));
  background: var(--cream);
  color: var(--ink);
  border-top: 2px solid var(--clay);
}

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

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

.dock-nav p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dock-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

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

.dock-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 2px solid var(--clay);
  border-radius: 999px;
  background: var(--clay);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.dock-cta:hover,
.dock-cta:focus-visible {
  opacity: 0.82;
}

/* 主区域 */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.hero {
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 74px 0 30px;
  border-bottom: 2px solid var(--line);
  text-align: right;
}

.hero-copy {
  max-width: 780px;
  margin-left: auto;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 6vw, 54px);
  line-height: 1.12;
}

.hero-sub {
  margin: 0 0 0 auto;
  max-width: 660px;
  color: var(--soft);
  font-size: 17px;
}

.hero-art {
  margin: 0;
  display: block;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 28px;
  background: var(--glass);
  aspect-ratio: 16 / 6;
}

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

/* 双栏 */
.stage {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 42px 0 56px;
}

.rail {
  position: sticky;
  top: 24px;
  padding: 20px 18px;
  border: 2px solid var(--line);
  border-radius: 28px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.rail h2 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rail-list a {
  display: block;
  min-height: 40px;
  padding: 9px 12px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: var(--cream);
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible {
  border-color: var(--clay);
  background: rgba(228, 87, 46, 0.14);
}

/* 正文 */
.stage-body {
  min-width: 0;
  max-width: 760px;
}

.stage-body > section {
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 2px solid var(--line);
}

.stage-body > section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.stage-body h2 {
  margin: 34px 0 12px;
  font-size: clamp(22px, 3.4vw, 30px);
}

.stage-body h3 {
  margin: 26px 0 10px;
  font-size: 20px;
}

.stage-body p {
  margin: 0 0 16px;
}

.stage-body ul,
.stage-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.stage-body li {
  margin-bottom: 8px;
}

.stage-body a {
  text-underline-offset: 3px;
}

.stage-body figure {
  margin: 24px 0;
}

.stage-body figure img {
  display: block;
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 6px;
}

.stage-body figcaption {
  margin-top: 8px;
  color: var(--soft);
  font-size: 16px;
}

.stage-body blockquote {
  margin: 24px 0;
  padding: 6px 0 6px 18px;
  border-left: 4px solid var(--clay);
  color: var(--soft);
}

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

.stage-body table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  font-size: 16px;
}

.stage-body th,
.stage-body td {
  padding: 10px 12px;
  border: 2px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.stage-body th {
  background: var(--glass);
  color: #ffffff;
}

.stage-body code,
.stage-body pre {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 16px;
}

.stage-body pre {
  overflow-x: auto;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 6px;
}

.stage-body hr {
  height: 0;
  margin: 30px 0;
  border: 0;
  border-top: 2px solid var(--line);
}

/* 页脚 */
.foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  border-top: 2px solid var(--line);
}

.foot-cta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 28px 30px;
  border: 2px solid #ffffff;
  border-radius: 28px;
  background: var(--clay);
  color: #ffffff;
}

.foot-big {
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.1;
}

.btn-lg {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 24px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn-lg:hover,
.btn-lg:focus-visible {
  background: #ffffff;
  color: var(--clay);
}

.foot-col {
  min-width: 0;
}

.foot-name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.foot-desc {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
}

.foot-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-col li {
  margin-bottom: 6px;
}

.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  color: var(--soft);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.18s ease;
}

.foot-col a:hover,
.foot-col a:focus-visible {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.foot-bar {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 20px;
  border-top: 2px solid var(--line);
  text-align: center;
}

.foot-bar p {
  margin: 0;
  color: var(--soft);
  font-size: 16px;
}

/* 滚动出场 */
.rv-on .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s cubic-bezier(0.22, 0.7, 0.3, 1) var(--d, 0ms),
    transform 0.5s cubic-bezier(0.22, 0.7, 0.3, 1) var(--d, 0ms);
}

.rv-on .rv.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 860px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
  }

  .rail {
    position: static;
  }

  .rail-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .rail-list a {
    border-color: var(--line);
  }

  .stage-body {
    max-width: none;
  }

  .foot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-art {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 17px;
    padding-bottom: 124px;
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero {
    padding-top: 68px;
  }

  .foot-cta {
    padding: 22px 20px;
  }

  .dock {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

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

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