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

:root {
  --purple: #56228b;
  --purple-deep: #3c1263;
  --ochre: #8b4513;
  --ink: #1f1726;
  --paper: #f8f3ea;
  --paper-warm: #f1e5d5;
  --card: #fffaf2;
  --line: #e2d3c0;
  --muted: #5f5265;
  --r-lg: 26px;
  --r: 18px;
  --maxw: 1140px;
  --serif: 'EB Garamond', Georgia, 'Songti SC', 'SimSun', serif;
  --sans: 'Lato', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --shadow: 0 22px 46px -26px rgba(31, 23, 38, .55);
  --shadow-soft: 0 14px 30px -20px rgba(31, 23, 38, .5);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 10% 4%, rgba(86, 34, 139, .09), transparent 42%),
    radial-gradient(circle at 92% 16%, rgba(139, 69, 19, .10), transparent 40%),
    radial-gradient(circle at 46% 96%, rgba(86, 34, 139, .07), transparent 52%),
    repeating-linear-gradient(96deg, rgba(31, 23, 38, .022) 0 1px, transparent 1px 7px);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

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

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 243, 234, .93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mark {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  border-radius: 56% 44% 52% 48% / 48% 56% 44% 52%;
  background: linear-gradient(140deg, var(--purple), var(--purple-deep));
  box-shadow: var(--shadow-soft);
}
.mark img { width: 100%; height: 100%; object-fit: cover; }

.topnav {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  justify-content: center;
}

.navlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 999px 999px 999px 6px;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease;
}
.navlink:hover { background: rgba(86, 34, 139, .1); color: var(--purple); }

.cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  box-shadow: 0 14px 26px -16px rgba(86, 34, 139, .95);
  transition: transform .25s ease;
}
.cta:hover { transform: translateY(-1px); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 22px auto 0;
  padding: 52px 48px;
  min-height: 45vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 34px;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(140deg, #fffaF1 0%, #f4e7d6 62%, #efe0cd 100%);
  border-radius: var(--r-lg) var(--r-lg) 120px 44px / var(--r-lg) var(--r-lg) 96px 130px;
  box-shadow: var(--shadow);
}

.hero-copy { position: relative; z-index: 2; min-width: 0; }

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.18;
  letter-spacing: .01em;
  color: var(--purple-deep);
}

.lead {
  margin: 18px 0 0;
  max-width: 40ch;
  font-size: 17px;
  color: var(--muted);
  border-left: 3px solid var(--ochre);
  padding-left: 16px;
  border-radius: 0 12px 12px 0;
}

.hero-art {
  position: relative;
  z-index: 1;
  margin: 0;
  aspect-ratio: 5 / 4;
  border-radius: 48% 52% 40% 60% / 52% 44% 56% 48%;
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 28%, rgba(86, 34, 139, .34), transparent 60%),
    radial-gradient(circle at 74% 76%, rgba(139, 69, 19, .38), transparent 58%),
    #e8dac6;
  box-shadow: var(--shadow-soft);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

.hero-num {
  position: absolute;
  right: 12px;
  top: -26px;
  z-index: 0;
  font-family: var(--serif);
  font-size: clamp(130px, 19vw, 250px);
  line-height: .8;
  color: rgba(86, 34, 139, .11);
  pointer-events: none;
  user-select: none;
}

/* ---------- 正文 ---------- */
.body-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 62px 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 52px;
  align-items: start;
}

.content-col { min-width: 0; max-width: 74ch; }

.content-col > div {
  padding: 38px 0;
  border-top: 1px solid var(--line);
}
.content-col > div:first-child { border-top: 0; padding-top: 0; }

.content-col h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.26;
  color: var(--purple);
}

.content-col h3 {
  margin: 30px 0 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ochre);
}

.content-col small {
  display: block;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .2em;
  color: var(--ochre);
}

.content-col p { margin: 0 0 18px; }
.content-col ul, .content-col ol { margin: 0 0 20px; padding-left: 22px; }
.content-col li { margin: 8px 0; }
.content-col li::marker { color: var(--ochre); }

.content-col figure {
  margin: 24px 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.content-col figure img { width: 100%; }

.content-col blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--card);
  border-left: 4px solid var(--purple);
  border-radius: 6px var(--r-lg) var(--r-lg) var(--r-lg);
  color: var(--muted);
}
.content-col blockquote p:last-child { margin-bottom: 0; }

.content-col table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
}
.content-col th, .content-col td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.content-col th { color: var(--purple); font-weight: 700; }

.content-col strong { color: var(--purple-deep); }
.content-col a { color: var(--ochre); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.content-col a:hover { color: var(--purple); }

/* ---------- 侧栏 ---------- */
.side {
  position: sticky;
  top: 92px;
  padding: 24px 20px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 8px;
  box-shadow: var(--shadow-soft);
}

.side small {
  display: block;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--ochre);
  margin-bottom: 4px;
}

.side h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--purple);
}

.side ol {
  list-style: none;
  counter-reset: s;
  margin: 0;
  padding: 0;
}

.side li {
  counter-increment: s;
  border-top: 1px dashed var(--line);
}
.side li:first-child { border-top: 0; }

.side li a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  font-size: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: color .2s ease;
}
.side li a::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ochre);
  letter-spacing: .06em;
}
.side li a:hover { color: var(--purple); }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 84px;
  padding: 58px max(22px, calc((100% - var(--maxw)) / 2)) 30px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px 52px;
  color: #efe6dc;
  background:
    radial-gradient(circle at 12% 0%, rgba(139, 69, 19, .42), transparent 48%),
    radial-gradient(circle at 86% 22%, rgba(86, 34, 139, .55), transparent 52%),
    var(--ink);
  border-radius: 120px 44px 0 0 / 78px 44px 0 0;
}

.foot-brand { grid-area: 1 / 1 / 2 / 2; }
.foot-links { grid-area: 1 / 2 / 2 / 3; }
.foot-form { grid-area: 2 / 1 / 3 / 2; }
.foot-copy { grid-area: 3 / 1 / 4 / 3; }

.foot-word {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 27px;
  line-height: 1.3;
  color: #fdf7ef;
}

.foot-desc {
  margin: 0;
  max-width: 40ch;
  font-size: 16px;
  color: #c9bcd4;
}

.foot small {
  display: block;
  font-size: 13px;
  letter-spacing: .18em;
  color: #c39a71;
  margin-bottom: 4px;
}

.foot-form h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  color: #fdf7ef;
}

.sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.sub input {
  flex: 1 1 150px;
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: #f7f0e7;
  background: #2c2138;
  border: 1px solid #4b3a5e;
  border-radius: 999px;
}
.sub input::placeholder { color: #a99bb6; }
.sub input:focus { outline: 2px solid #b184d6; outline-offset: 1px; }

.sub button {
  min-height: 44px;
  padding: 0 24px;
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: var(--ochre);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.sub button:hover { background: #a4561c; }

.foot nav dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 14px;
  margin: 0;
}

.foot dt {
  align-self: center;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: .1em;
  color: #b28f6b;
}

.foot dd { margin: 0; }

.foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 16px;
  text-decoration: none;
  color: #f0e7dd;
  border-bottom: 1px solid transparent;
}
.foot dd a:hover { color: #fff; border-color: var(--ochre); }

.foot-copy {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
}
.foot-copy p {
  margin: 0;
  font-size: 14px;
  letter-spacing: .06em;
  color: #a99bb6;
}

/* ---------- 动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .body-wrap { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .side { position: static; border-radius: var(--r-lg); }
  .hero { grid-template-columns: 1fr; padding: 40px 34px 48px; }
  .hero-art { aspect-ratio: 16 / 9; border-radius: var(--r-lg) var(--r-lg) 90px 40px / var(--r-lg) var(--r-lg) 70px 90px; }
  .foot { grid-template-columns: 1fr; gap: 32px; border-radius: 78px 40px 0 0 / 56px 30px 0 0; }
  .foot-brand, .foot-links, .foot-form, .foot-copy { grid-area: auto; }
}

@media (max-width: 760px) {
  html { scroll-behavior: smooth; }
  main [id] { scroll-margin-top: 132px; }

  .topbar-in { padding: 8px 16px; gap: 8px; }
  .mark { width: 42px; height: 42px; font-size: 18px; }
  .cta { margin-left: auto; padding: 0 16px; }

  .topnav {
    order: 3;
    flex: 1 0 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .navlink { padding: 0 10px; }

  .hero { margin: 14px 14px 0; padding: 32px 22px 40px; border-radius: var(--r-lg) var(--r-lg) 84px 32px / var(--r-lg) var(--r-lg) 64px 84px; }
  .lead { font-size: 16px; }
  .hero-num { font-size: 128px; right: 4px; top: -10px; }

  .body-wrap { padding: 44px 16px 0; }
  .content-col > div { padding: 28px 0; }
  .foot { padding: 46px 18px 26px; margin-top: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cta { transition: none; }
}

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