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

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

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

:root {
  --ink: #1f1726;
  --ink-soft: #2b2136;
  --purple: #56228b;
  --purple-soft: #a06fd0;
  --rust: #8b4513;
  --rust-soft: #d09a6a;
  --paper: #f0e8dd;
  --paper-dim: #bdb0a6;
  --line: rgba(240, 232, 221, 0.16);
  --line-strong: rgba(240, 232, 221, 0.34);
  --r-blob: 26px;
  --r-card: 4px;
  --serif: "Newsreader", Georgia, "Songti SC", "Noto Serif SC", serif;
  --sans: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 85% -12%, rgba(86, 34, 139, 0.5), transparent 68%),
    radial-gradient(880px 520px at -12% 108%, rgba(139, 69, 19, 0.34), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

:focus-visible {
  outline: 2px solid var(--rust-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 角落品牌标 ---------- */
.brand-dot {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50% 46% 52% 48%;
  border: 1px solid var(--line-strong);
  background: rgba(31, 23, 38, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-decoration: none;
  overflow: hidden;
}

.brand-dot .brand-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.brand-dot .brand-letter {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: var(--paper);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-height: 100vh;
  min-height: 100svh;
  padding: 118px clamp(18px, 5vw, 76px) 64px;
  border-bottom: 1px solid var(--line);
}

.hero-eyebrow,
.hero-title,
.hero-sub,
.hero-figure {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--rust-soft);
}

.hero-title {
  margin: 0;
  max-width: 20ch;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.25rem, 6.3vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(1rem, 1.9vw, 1.14rem);
  line-height: 1.8;
  color: var(--paper-dim);
}

.hero-figure {
  margin: 12px 0 0;
  width: 100%;
  max-width: 1020px;
  height: clamp(150px, 32vh, 330px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 30px 22px 28px 20px;
  background: rgba(240, 232, 221, 0.04);
}

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

.hero-ghost {
  position: absolute;
  right: -2vw;
  bottom: 4vh;
  z-index: 0;
  font-family: var(--serif);
  font-size: clamp(110px, 22vw, 280px);
  line-height: 0.78;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 232, 221, 0.13);
  pointer-events: none;
  user-select: none;
}

.hero-blob {
  position: absolute;
  top: -12%;
  right: -10%;
  z-index: 0;
  width: clamp(280px, 44vw, 580px);
  height: auto;
  pointer-events: none;
  animation: drift 24s ease-in-out infinite;
}

@keyframes drift {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(7deg) scale(1.05); }
  100% { transform: rotate(0deg) scale(1); }
}

/* ---------- 主区 ---------- */
.page-main {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 64px) clamp(16px, 4vw, 40px) 170px;
}

.rail {
  position: sticky;
  top: 24px;
  padding: 22px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-blob) var(--r-blob) 22px 18px;
  background: linear-gradient(158deg, rgba(86, 34, 139, 0.26), rgba(31, 23, 38, 0.12));
}

.rail-h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.4;
}

.rail .subtitle {
  margin: 0 0 16px;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--rust-soft);
}

.rail-list,
.foot-list,
.dock-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 2px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--paper-dim);
  text-decoration: none;
}

.rail-list a:hover {
  color: var(--paper);
}

/* ---------- 正文 ---------- */
.body {
  min-width: 0;
}

.body > section {
  position: relative;
  margin: 0 0 clamp(22px, 3vw, 34px);
  padding: clamp(22px, 3.4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: rgba(240, 232, 221, 0.022);
  scroll-margin-top: 26px;
  scroll-margin-bottom: 160px;
}

.body > section::after {
  content: "";
  position: absolute;
  left: clamp(22px, 3.4vw, 42px);
  bottom: -1px;
  width: 74px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-soft), var(--rust-soft));
  opacity: 0.7;
}

.body > section.hit {
  border-color: var(--rust-soft);
  outline: 1px solid rgba(208, 154, 106, 0.5);
  outline-offset: 2px;
}

.body h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.26;
  color: var(--paper);
}

.body h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple-soft), var(--rust-soft));
}

.body .subtitle {
  margin: 0 0 20px;
  font-size: 16px;
  letter-spacing: 0.09em;
  color: var(--rust-soft);
}

.body h3 {
  margin: 26px 0 8px;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.4;
}

.body p {
  margin: 0 0 1em;
  max-width: 64ch;
}

.body ul,
.body ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
  max-width: 64ch;
}

.body li {
  margin-bottom: 0.45em;
}

.body li::marker {
  color: var(--rust-soft);
}

.body a {
  color: var(--purple-soft);
  text-decoration-color: rgba(160, 111, 208, 0.5);
  text-underline-offset: 3px;
}

.body a:hover {
  color: var(--rust-soft);
}

.body blockquote {
  margin: 0 0 1.1em;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--rust);
  color: var(--paper-dim);
}

.body strong,
.body b {
  color: var(--paper);
  font-weight: 600;
}

.body code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.94em;
  background: rgba(240, 232, 221, 0.08);
  padding: 1px 5px;
  border-radius: var(--r-card);
}

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

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

.body th {
  background: rgba(86, 34, 139, 0.22);
}

.body figure {
  margin: 0 0 1.1em;
}

.body img {
  border-radius: var(--r-card);
  border: 1px solid var(--line);
}

.body figcaption {
  font-size: 16px;
  color: var(--paper-dim);
  padding-top: 6px;
}

/* ---------- 页脚 ---------- */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.7fr) auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 150px;
}

.foot-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 22px;
  border-radius: var(--r-blob) var(--r-blob) 20px 16px;
  background: linear-gradient(150deg, rgba(86, 34, 139, 0.62), rgba(139, 69, 19, 0.4));
  border: 1px solid var(--line-strong);
}

.foot-mark {
  display: inline-flex;
}

.foot-mark .brand-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.foot-big {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.3;
}

.foot-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--paper);
  background: rgba(31, 23, 38, 0.5);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
}

.foot-top:hover {
  background: rgba(31, 23, 38, 0.8);
}

.foot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}

.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 0;
  font-size: 16px;
  line-height: 1.4;
  color: var(--paper-dim);
  text-decoration: none;
}

.foot-list a:hover {
  color: var(--paper);
}

.foot-copy {
  font-size: 16px;
  color: var(--paper-dim);
  white-space: nowrap;
}

.foot-copy p {
  margin: 0;
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 60;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px clamp(12px, 3vw, 26px) calc(10px + env(safe-area-inset-bottom));
  background: rgba(31, 23, 38, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r-blob) var(--r-blob) 0 0;
}

.dock-find {
  display: flex;
  gap: 8px;
}

.dock-find input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--paper);
  background: rgba(240, 232, 221, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
}

.dock-find input::placeholder {
  color: var(--paper-dim);
}

.dock-find input.miss {
  animation: shake 0.42s ease;
  border-color: var(--rust-soft);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.dock-find button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 20px;
  font-family: var(--sans);
  font-size: 16px;
  color: #fdf7ef;
  background: var(--rust);
  border: 1px solid rgba(208, 154, 106, 0.5);
  border-radius: 999px;
  cursor: pointer;
}

.dock-find button:hover {
  background: #a3551a;
}

.dock-nav {
  min-width: 0;
}

.dock-list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

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

.dock-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--paper-dim);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
}

.dock-list a:hover,
.dock-list a:focus-visible {
  color: var(--paper);
  border-color: var(--line-strong);
  background: rgba(240, 232, 221, 0.06);
}

/* ---------- 滚动显现 ---------- */
.js .body > section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .body > section.in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  .page-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .rail {
    position: static;
    border-radius: 20px;
  }

  .rail .subtitle {
    margin-bottom: 12px;
  }

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

  .rail-list li + li {
    border-top: 0;
  }

  .rail-list a {
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--paper);
  }

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

  .foot-copy {
    padding-top: 4px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 96px 18px 48px;
    gap: 16px;
  }

  .hero-title {
    font-size: clamp(1.95rem, 9vw, 2.6rem);
    max-width: 100%;
  }

  .hero-ghost {
    font-size: 96px;
    bottom: 2vh;
  }

  .hero-blob {
    top: -8%;
    right: -22%;
    width: 300px;
  }

  .hero-figure {
    height: 154px;
    border-radius: 22px 16px 22px 16px;
  }

  .page-main {
    padding-bottom: 200px;
  }

  .foot {
    padding-bottom: 190px;
  }

  .body > section {
    padding: 20px 18px;
  }

  .body > section::after {
    left: 18px;
  }
}

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

  .hero-blob {
    animation: none;
  }

  .js .body > section {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .dock-find input.miss {
    animation: none;
  }
}

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