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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --display: "Bodoni Moda", "Songti SC", "Noto Serif SC", Georgia, serif;
  --text: "Jost", "Helvetica Neue", Helvetica, Arial, "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(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ——— 侧边书脊 ——— */
.masthead {
  position: fixed;
  inset: 0 auto 0 0;
  width: 264px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 24px 24px;
  background: var(--paper);
  border-right: 1px solid var(--ink);
}

.ticker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 1rem;
  letter-spacing: 0.16em;
}

.ticker-brand { font-weight: 500; }

.motif-s { display: inline-flex; gap: 3px; }

.motif-s span {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--ink);
}

.navline {
  counter-reset: item;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.navline a {
  display: block;
  padding: 11px 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease;
}

.navline a::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
  display: inline-block;
  width: 2.2em;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  vertical-align: 1px;
}

.navline a:hover { transform: translateX(4px); }

.brandmark {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  text-decoration: none;
}

.brandmark .mark {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ——— 主栏 ——— */
.shell { margin-left: 264px; }

main {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  max-width: 1440px;
  padding: 24px 32px 72px;
}

article {
  grid-column: 4 / 13;
  grid-row: 1;
  min-width: 0;
}

/* ——— 左栏索引 ——— */
.side {
  grid-column: 1 / 4;
  grid-row: 1;
  position: sticky;
  top: 24px;
  align-self: start;
}

.side-title {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}

.subtitle {
  margin: 0 0 16px;
  font-size: 1rem;
  letter-spacing: 0.2em;
}

.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.side-list li { border-bottom: 1px solid rgba(0, 0, 0, 0.15); }

.side-list a {
  display: block;
  padding: 10px 0;
  font-size: 1rem;
  text-decoration: none;
}

.side-list a:hover { text-decoration: underline; }

.side-list a.cur {
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ——— 正文 ——— */
article > section {
  padding: 40px 0;
  border-top: 1px solid var(--ink);
}

article > section:first-child {
  padding-top: 0;
  border-top: 0;
}

article > section[id] { scroll-margin-top: 24px; }

article h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

article h3 {
  margin: 32px 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
}

article p {
  margin: 0 0 16px;
  max-width: 64ch;
}

article ul,
article ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

article li { margin: 0 0 8px; }

article img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ——— 首屏 ——— */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  min-height: 70vh;
  padding: 56px 0;
  text-align: right;
}

.hero-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6.6vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
}

.lead {
  margin: 0;
  max-width: 38ch;
  font-size: 1.05rem;
}

.motif { display: flex; gap: 8px; }

.motif span {
  display: block;
  width: 20px;
  height: 20px;
  background: var(--ink);
}

.badge {
  position: absolute;
  left: 0;
  top: 20%;
  transform: rotate(-3deg);
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 1rem;
  letter-spacing: 0.2em;
}

/* ——— 入口卡片 ——— */
.cards h2 { margin-bottom: 4px; }

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card-grid li { margin: 0; }

.card-grid a {
  display: block;
  padding: 22px 20px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.4s ease;
}

.card-grid a:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.card-grid .num {
  display: block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

.js .card-grid li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.js .card-grid li.in {
  opacity: 1;
  transform: none;
}

.js .card-grid li:hover { transition-delay: 0s !important; }

/* ——— 页脚 ——— */
.foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 24px;
  max-width: 1440px;
  padding: 48px 32px 32px;
  border-top: 1px solid var(--ink);
}

.foot-cta {
  grid-column: 1 / -1;
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.cta-brand {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1;
}

.foot-cta a {
  display: inline-block;
  padding: 10px 0;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

.foot-col {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.foot-col a {
  display: block;
  padding: 10px 0;
  font-size: 1rem;
  text-decoration: none;
}

.foot-col a:hover { text-decoration: underline; }

.foot-note {
  grid-column: 1 / -1;
  display: block;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  text-align: center;
  font-size: 0.95rem;
}

/* ——— 窄屏 ——— */
@media (max-width: 900px) {
  .masthead {
    position: static;
    inset: auto;
    width: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .ticker {
    grid-column: 1;
    grid-row: 1;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 0.95rem;
  }

  .brandmark {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    width: 40px;
    height: 40px;
  }

  nav {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
  }

  .navline {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .navline a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 10px 8px 0;
    border-bottom: 0;
  }

  .navline a::before { display: none; }

  .shell { margin-left: 0; }

  main {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 0;
    padding: 0 16px 48px;
  }

  article {
    grid-column: 1;
    grid-row: 1;
    order: 1;
  }

  article > section { padding: 28px 0; }

  article h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

  .side {
    grid-column: 1;
    grid-row: 2;
    order: 2;
    position: static;
    margin: 32px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--ink);
  }

  .side-list a {
    display: flex;
    align-items: center;
    min-height: 40px;
  }

  .hero {
    min-height: 0;
    padding: 20px 0 28px;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
  }

  .hero-title {
    order: 1;
    font-size: clamp(1.9rem, 8.5vw, 2.6rem);
  }

  .motif { order: 2; }

  .lead { order: 3; }

  .badge {
    position: static;
    order: 4;
    transform: none;
    align-self: flex-start;
  }

  .card-grid { grid-template-columns: 1fr; }

  .foot {
    grid-template-columns: 1fr 1fr;
    padding: 32px 16px;
  }

  .foot-col a {
    display: flex;
    align-items: center;
    min-height: 40px;
  }
}

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

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

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