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

:root {
  --white: #ffffff;
  --paper: #f5f5f5;
  --ink: #1f1f1f;
  --ink-soft: #4b4b4b;
  --line: rgba(31, 31, 31, 0.13);
  --glass: rgba(255, 255, 255, 0.82);
  --e1: 0 1px 2px rgba(31, 31, 31, 0.06), 0 3px 10px rgba(31, 31, 31, 0.05);
  --e2: 0 6px 16px rgba(31, 31, 31, 0.09), 0 14px 34px rgba(31, 31, 31, 0.07);
  --e3: 0 10px 24px rgba(31, 31, 31, 0.12), 0 24px 56px rgba(31, 31, 31, 0.1);
  --e4: 0 18px 40px rgba(31, 31, 31, 0.16), 0 40px 90px rgba(31, 31, 31, 0.14);
  --serif: "Libre Bodoni", "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
}

body.no-scroll {
  overflow: hidden;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- 顶部 ---------- */
.site-head {
  position: relative;
  z-index: 20;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 22px;
}

.head-left,
.head-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.head-right {
  justify-content: flex-end;
}

.burger,
.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.burger:hover,
.drawer-close:hover {
  background: var(--white);
  box-shadow: var(--e2);
  transform: translateY(-1px);
}

.head-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.head-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.head-nav a:hover {
  color: var(--ink);
  background: var(--paper);
}

.brand {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  white-space: nowrap;
}

.search {
  flex: 0 1 auto;
}

.search input {
  width: 132px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  transition: width 0.25s ease, box-shadow 0.25s ease;
}

.search input:focus {
  width: 190px;
  box-shadow: var(--e1);
}

/* ---------- 遮罩菜单 ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(245, 245, 245, 0.96);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.drawer-inner {
  max-width: 760px;
  height: 100%;
  margin: 0 auto;
  padding: 20px 22px 48px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 4px 6px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.4vw, 1.85rem);
  text-decoration: none;
  transition: padding-left 0.25s ease, color 0.25s ease;
}

.drawer-nav a:hover {
  padding-left: 16px;
}

/* ---------- 锚点条 ---------- */
.anchorbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(245, 245, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--e1);
}

.anchorbar-inner {
  display: flex;
  gap: 4px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 4px 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchorbar-inner::-webkit-scrollbar {
  display: none;
}

.anchorbar-inner a {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.anchorbar-inner a:hover {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--e1);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  min-height: 100svh;
  padding: clamp(40px, 7vw, 88px) clamp(22px, 5vw, 64px);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(31, 31, 31, 0.16) 1px, transparent 1px),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.95), transparent 58%);
  background-size: 22px 22px, cover;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 32ch;
  margin: 0 auto;
  text-align: center;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.hero-desc {
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-decoration: none;
  box-shadow: var(--e3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--e4);
}

.hero-figure {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  max-height: 64svh;
  margin: 0 auto;
  will-change: transform;
}

.hero-img {
  position: relative;
  z-index: 4;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--e4);
}

.plate {
  position: absolute;
  display: block;
  border-radius: 4px;
}

.plate-a {
  inset: 16px -16px -16px 16px;
  z-index: 1;
  background: var(--white);
  box-shadow: var(--e2);
}

.plate-b {
  inset: 34px -34px -34px 34px;
  z-index: 0;
  background: rgba(31, 31, 31, 0.07);
  will-change: transform;
}

.plate-c {
  inset: 0;
  z-index: 2;
  background: linear-gradient(150deg, #ffffff 0%, #ececec 100%);
  box-shadow: var(--e3);
}

/* ---------- 主体 ---------- */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 236px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 22px clamp(56px, 8vw, 96px);
}

.rail {
  position: sticky;
  top: 74px;
  z-index: 3;
  padding: 20px 18px;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--e1);
}

.rail-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.rail hr {
  margin: 12px 0 10px;
  border: 0;
  border-top: 1px solid var(--line);
}

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

.rail-nav li {
  counter-increment: rail;
}

.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 2px 4px;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

.rail-nav a::before {
  content: counter(rail, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 12px;
  color: rgba(31, 31, 31, 0.42);
  letter-spacing: 0.06em;
}

.rail-nav a:hover {
  color: var(--ink);
  background: var(--white);
  padding-left: 10px;
}

.art {
  min-width: 0;
}

.art section {
  position: relative;
  z-index: 1;
  margin: 0 0 26px;
  padding: clamp(20px, 3.4vw, 38px);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--e1);
  scroll-margin-top: 116px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.art section:hover {
  box-shadow: var(--e2);
  transform: translateY(-2px);
}

.art section:nth-child(even) {
  background: var(--paper);
}

.art h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

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

.art hr {
  margin: 0 0 18px;
  border: 0;
  border-top: 1px solid var(--line);
}

.art p {
  margin: 0 0 1em;
}

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

.art ul,
.art ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.art li {
  margin-bottom: 0.4em;
}

.art strong {
  font-weight: 600;
}

.art blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--ink);
  background: rgba(31, 31, 31, 0.04);
  border-radius: 0 4px 4px 0;
}

.art img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: var(--e1);
}

.art a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 页脚 ---------- */
.site-foot {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 60px) 22px clamp(22px, 3vw, 34px);
}

.foot-mark {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.08em;
}

.foot-nav {
  display: contents;
}

.foot-grid dl {
  margin: 0;
}

.foot-grid dt {
  margin-bottom: 8px;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: rgba(245, 245, 245, 0.55);
}

.foot-grid dd {
  margin: 0;
}

.foot-grid dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--paper);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.foot-grid dd a:hover {
  border-bottom-color: rgba(245, 245, 245, 0.7);
}

.foot-copy {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 22px 26px;
  border-top: 1px solid rgba(245, 245, 245, 0.16);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: rgba(245, 245, 245, 0.62);
}

.is-filtered {
  display: none !important;
}

/* ---------- 断点 ---------- */
@media (max-width: 1060px) {
  .head-nav {
    display: none;
  }

  .head-inner {
    gap: 10px;
  }
}

@media (max-width: 880px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 28px;
  }

  .rail {
    position: static;
    order: -1;
  }

  .rail-nav ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .rail-nav li {
    flex: 0 0 auto;
  }

  .rail-nav a {
    padding: 0 10px;
    border: 1px solid var(--line);
    background: var(--white);
  }

  .rail-nav a::before {
    content: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-block: 44px 64px;
    text-align: center;
  }

  .hero-figure {
    max-width: 320px;
    margin-top: 34px;
  }
}

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

  .brand {
    font-size: 21px;
  }

  .search input {
    width: 104px;
    padding: 0 10px;
  }

  .search input:focus {
    width: 128px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

  .hero-desc {
    font-size: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .hero-figure,
  .plate-b {
    transform: none !important;
  }
}

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