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

:root {
  --paper: #ffffff;
  --cloud: #f5f5f5;
  --ink: #1f1f1f;
  --line: rgba(31, 31, 31, 0.16);
  --line-soft: rgba(31, 31, 31, 0.09);
  --radius: 18px;
  --serif: "Cormorant Garamond", "Libre Baskerville", Georgia, "Songti SC", "SimSun", serif;
  --body: "Libre Baskerville", Georgia, "Songti SC", "PingFang SC", "Microsoft YaHei", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
}

h2 { font-size: 27px; }
h3 { font-size: 21px; }

p { margin: 0 0 18px; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  width: 64px;
  margin: 4px 0 22px;
}

/* ── 顶部细条 ─────────────────────────── */
.announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  padding: 9px 18px;
  letter-spacing: 0.14em;
}

.an-brand { font-family: var(--serif); letter-spacing: 0.2em; }
.an-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--paper); opacity: 0.7; }
.an-word { opacity: 0.82; letter-spacing: 0.1em; }

/* ── 页头 / 主导航 ───────────────────── */
.top { border-bottom: 1px solid var(--line-soft); }

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 20px;
}

.masthead ol {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.masthead ol a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.masthead ol a:hover,
.masthead ol a:focus-visible {
  background: var(--cloud);
  border-color: var(--line);
  outline: none;
}

.brand {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  padding: 8px 18px;
  white-space: nowrap;
  border-radius: 999px;
  transition: background 0.25s ease;
}

.brand:hover { background: var(--cloud); }

/* ── 二级粘性锚点条 ───────────────────── */
.subbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.anchors {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchors::-webkit-scrollbar { display: none; }

.anchors ol {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: max-content;
}

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

.anchors a:hover,
.anchors a.is-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ── 首屏 ─────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 44px;
  min-height: 45vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 46px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  left: 26%;
  right: -12%;
  bottom: -46px;
  height: 132px;
  background: var(--cloud);
  transform: rotate(-6deg);
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero.slim { grid-template-columns: 1fr; min-height: 34vh; gap: 0; }

.hero-copy { text-align: right; }

.hero h1 {
  font-size: clamp(32px, 5.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.lede {
  margin: 0 0 0 auto;
  max-width: 40ch;
  font-size: 16.5px;
  color: rgba(31, 31, 31, 0.72);
  line-height: 1.85;
}

/* ── 拼贴图 ───────────────────────────── */
.collage {
  position: relative;
  min-height: 258px;
  height: 100%;
}

.collage .pl {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--cloud);
  animation: drift 9s ease-in-out infinite;
}

.collage .ph { width: 100%; height: 100%; object-fit: cover; }

.collage .p1 { top: 0; right: 0; width: 74%; height: 70%; }

.collage .p2 {
  bottom: 0;
  left: 0;
  width: 62%;
  height: 58%;
  animation-delay: -4.5s;
}

.collage.empty .blk {
  position: absolute;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.collage.empty .b1 {
  top: 0;
  right: 0;
  width: 74%;
  height: 70%;
  background: var(--cloud);
}

.collage.empty .b2 {
  bottom: 0;
  left: 0;
  width: 62%;
  height: 58%;
  background: repeating-linear-gradient(135deg, #fff 0 12px, var(--cloud) 12px 24px);
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ── 主体骨架 ─────────────────────────── */
main { display: block; }

.wrap {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  gap: 46px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 20px 72px;
}

.side-note {
  position: sticky;
  top: 68px;
  align-self: start;
  font-size: 16px;
}

.side-note h2 { font-size: 20px; margin-bottom: 10px; letter-spacing: 0.06em; }
.side-note hr { margin: 0 0 14px; width: 40px; }

.toc {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc a {
  display: block;
  padding: 9px 0;
  min-height: 40px;
  text-decoration: none;
  border-bottom: 1px dashed var(--line-soft);
  transition: padding-left 0.2s ease, color 0.2s ease;
}

.toc a:hover { padding-left: 6px; }

.col { min-width: 0; }

section { max-width: 74ch; }

/* ── Bento 卡片 ───────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 96px;
  gap: 14px;
  margin-bottom: 48px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  text-decoration: none;
  transition: transform 0.35s ease, background 0.35s ease;
  will-change: transform;
}

.tile:nth-child(even) { background: var(--cloud); }

.tile:hover,
.tile:focus-visible {
  transform: scale(1.02);
  background: var(--cloud);
  outline: none;
}

.tile .num {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  opacity: 0.32;
}

.tile .tname {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}

.tile.t1 { grid-column: span 2; grid-row: span 2; }
.tile.t2 { grid-column: span 2; }
.tile.t3 { grid-row: span 2; }
.tile.t4 { grid-column: span 1; }
.tile.t5 { grid-column: span 2; }

/* ── 正文排版 ─────────────────────────── */
section article {
  padding-top: 30px;
  margin-top: 34px;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 96px;
}

section article:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }

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

section h2 { margin-bottom: 8px; }

section ul, section ol {
  padding-left: 22px;
  margin: 0 0 20px;
}

section li { margin-bottom: 8px; }

section strong { font-weight: 700; }

section blockquote {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-left: 2px solid var(--ink);
  background: var(--cloud);
  border-radius: 0 var(--radius) var(--radius) 0;
}

section a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ── 页脚 ─────────────────────────────── */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 54px 20px 26px;
  margin-top: 20px;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  max-width: 1180px;
  margin: 0 auto;
}

address { font-style: normal; }

.fbig {
  display: block;
  font-family: var(--serif);
  font-size: clamp(38px, 8vw, 88px);
  line-height: 0.96;
  letter-spacing: 0.03em;
  word-break: break-all;
}

.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.foot-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  font-size: 16px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.foot-list a:hover { color: #fff; padding-left: 5px; }

.copy {
  max-width: 1180px;
  margin: 40px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}

/* ── 断点 ─────────────────────────────── */
@media (max-width: 900px) {
  .wrap { grid-template-columns: 176px minmax(0, 1fr); gap: 32px; }
  .bento { grid-auto-rows: 88px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top address { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }

  .masthead { display: flex; flex-direction: column; gap: 0; padding: 6px 14px 10px; }
  .masthead ol { display: none; }
  .brand { font-size: 24px; }

  .anchors { padding: 6px 14px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 26px 16px 52px;
    min-height: 0;
  }

  .hero-copy { order: 1; text-align: left; }
  .collage { order: 2; min-height: 210px; }
  .lede { margin-left: 0; }

  .hero::before { left: -20%; bottom: -40px; height: 96px; }

  .wrap {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 16px 56px;
  }

  .side-note { position: static; }
  .toc { display: flex; flex-wrap: wrap; gap: 8px; }
  .toc li { flex: 0 0 auto; }
  .toc a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    min-height: 40px;
  }
  .toc a:hover { padding-left: 14px; background: var(--cloud); }

  section { max-width: none; }

  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 84px; gap: 12px; margin-bottom: 36px; }
  .tile.t1 { grid-column: span 2; grid-row: span 1; }
  .tile.t2 { grid-column: span 1; grid-row: span 2; }
  .tile.t3 { grid-row: span 1; }
  .tile.t5 { grid-column: span 2; }

  .foot { padding: 44px 16px 22px; }
  .foot-top { grid-template-columns: 1fr; gap: 26px; }
  .foot-top address { grid-column: auto; }

  h2 { font-size: 24px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 42px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .tile:hover { transform: none; }
}

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