@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400&family=Playfair+Display:ital@1&display=swap');

:root {
  --plum: #56228b;
  --brown: #8b4513;
  --ink: #1f1726;
  --paper: #f7f2ea;
  --paper-2: #efe5d8;
  --line: #ddd0c0;
  --muted: #6b5d58;
  --lilac: #e9ddf6;
  --clay: #f0e0d1;
  --r-xl: 26px;
  --r-lg: 20px;
  --r-sm: 10px;
  --shadow: 0 22px 44px -30px rgba(31, 23, 38, 0.55);
  --wrap: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --disp: "Playfair Display", Georgia, "Songti SC", "SimSun", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.78;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(86, 34, 139, 0.07), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(139, 69, 19, 0.08), transparent 46%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img { max-width: 100%; }

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

h1, h2, h3 {
  font-family: var(--disp);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  z-index: 90;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- 顶部 ---------- */
.masthead {
  background: linear-gradient(118deg, var(--ink) 0%, #3b1450 46%, var(--plum) 100%);
  color: #f8efe6;
}

.ticker {
  margin: 0;
  padding: 7px 20px;
  font-size: 15px;
  letter-spacing: 0.16em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d9c6ee;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 52% 48% 60% 40% / 46% 58% 42% 54%;
  background: var(--brown);
}

.brandrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: #fbf3ea;
  text-decoration: none;
}

.mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  font-family: var(--disp);
  font-size: 21px;
  color: #fff;
  background: linear-gradient(142deg, var(--brown), var(--plum) 78%);
  border-radius: 48% 52% 60% 40% / 54% 42% 58% 46%;
  box-shadow: inset 0 -6px 14px -8px rgba(0, 0, 0, 0.6);
}

.brandname {
  font-family: var(--disp);
  font-style: italic;
  font-size: 21px;
  letter-spacing: 0.02em;
}

/* ---------- 锚点条 ---------- */
.anchorbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 242, 234, 0.94);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}

.anchorbar > nav {
  max-width: var(--wrap);
  margin: 0 auto;
}

.pills {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 10px 16px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.pills::-webkit-scrollbar { display: none; }

.pills a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fffdfa;
  color: var(--plum);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pills a:hover,
.pills a:focus-visible,
.pills a[aria-current="true"] {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
}

/* ---------- 头图 ---------- */
.hero {
  position: relative;
  min-height: clamp(248px, 45vh, 430px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(158deg, #2a123e 0%, var(--plum) 48%, var(--brown) 100%);
}

.hero-media {
  position: absolute;
  inset: -12% 0 -12% 0;
  will-change: transform;
}

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

.hero-fallback {
  background:
    radial-gradient(38% 62% at 22% 30%, rgba(233, 221, 246, 0.34), transparent 68%),
    radial-gradient(46% 60% at 82% 72%, rgba(139, 69, 19, 0.46), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(31, 23, 38, 0.66), rgba(31, 23, 38, 0.34) 46%, rgba(31, 23, 38, 0.74));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  padding: 26px 20px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-style: italic;
  font-size: clamp(28px, 7.2vw, 54px);
  line-height: 1.18;
  color: #fdf7f0;
  text-shadow: 0 3px 26px rgba(12, 6, 18, 0.6);
}

/* ---------- 主体 ---------- */
main { display: block; }

.sheet {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 30px 18px 68px;
  display: grid;
  gap: 26px;
}

.sheet > section {
  position: relative;
  background: #fffdfa;
  border: 1px solid #eadfd2;
  border-radius: var(--r-xl) var(--r-lg) var(--r-xl) var(--r-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.sheet > section:nth-child(2n) {
  border-radius: var(--r-lg) var(--r-xl) var(--r-lg) var(--r-xl);
}

.sheet > section[id] { scroll-margin-top: 122px; }

.sheet h2 {
  margin: 0 0 10px;
  font-size: clamp(23px, 4.4vw, 33px);
  line-height: 1.28;
  color: var(--plum);
}

.sheet h2 + p.subtitle,
.sheet h2 + p.lead,
.sheet h2 + p.subhead,
.sheet h2 + p.desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
}

.sheet h3 {
  margin: 26px 0 8px;
  font-size: 20px;
  color: var(--brown);
}

.sheet p { margin: 0 0 1.05em; }
.sheet p:last-child { margin-bottom: 0; }

.sheet ul, .sheet ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}
.sheet li { margin: 0 0 0.5em; }

.sheet blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--clay);
  border-left: 4px solid var(--brown);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: #4a3b34;
}

.sheet time {
  display: inline-block;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.sheet strong { color: var(--ink); }

.intro {
  background: linear-gradient(158deg, #ffffff 20%, #f2e9fb 100%) !important;
  overflow: hidden;
}

.intro::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -60px;
  width: 210px;
  height: 190px;
  background: radial-gradient(circle at 40% 40%, rgba(86, 34, 139, 0.16), transparent 70%);
  border-radius: 62% 38% 44% 56% / 48% 62% 38% 52%;
  pointer-events: none;
}

.chips {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.chip {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--brown);
  border-radius: var(--r-sm);
  background: #fdf8f2;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip:hover,
.chip:focus-visible {
  transform: translateY(-3px);
  background: #fff;
  border-bottom-color: var(--plum);
}

.pagehead { padding-bottom: 4px; }

.pagehead h1 {
  margin: 0;
  font-style: italic;
  font-size: clamp(27px, 6vw, 42px);
  line-height: 1.22;
  color: var(--plum);
}

.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--brown);
  border-radius: var(--r-sm);
  background: #fdf8f2;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover { background: #fff; border-bottom-color: var(--plum); }
.card-t { font-weight: 700; color: var(--plum); font-size: 18px; }
.card-d { font-size: 16px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.foot {
  background: var(--ink);
  color: #e9dfd6;
  padding: 42px 18px 22px;
  border-top: 5px solid var(--brown);
}

.foot-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}

.fcol h3 {
  margin: 0 0 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #c6a6e8;
}

.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #e9dfd6;
  text-decoration: none;
  font-size: 16px;
}
.fcol a:hover { color: #fff; text-decoration: underline; }

.brand-foot {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: #fbf3ea;
  text-decoration: none;
}
.mark.big {
  width: 52px;
  height: 52px;
  font-size: 24px;
}
.fbrand { font-family: var(--disp); font-style: italic; font-size: 21px; margin: 0; }
.fkw { margin: 8px 0 0; font-size: 16px; color: #b6a89e; }

.foot-base {
  max-width: var(--wrap);
  margin: 26px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}
.copy, .note { margin: 4px 0; font-size: 15px; color: #b0a29a; }

/* ---------- 断点 ---------- */
@media (min-width: 620px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .sheet { padding: 36px 24px 76px; }
  .sheet > section { padding: 28px 28px; }
}

@media (min-width: 860px) {
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .sheet { gap: 32px; padding: 44px 28px 90px; }
  .hero-inner { padding: 34px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .hero-media { transform: none !important; }
}

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