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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --r: 28px;
  --pad: clamp(16px, 3.5vw, 48px);
  --maxw: 1320px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { overflow-wrap: break-word; }

h1, h2, h3 {
  font-family: 'Cormorant', Georgia, 'Songti SC', serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .01em;
}

.skip {
  position: absolute;
  left: 10px;
  top: -80px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  transition: top .2s ease;
}
.skip:focus { top: 10px; }

/* 顶部细条 */
.notice {
  background: var(--ink);
  color: var(--paper);
  padding: 9px 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .3em;
}
.notice-text { text-transform: uppercaps; }

/* 页头 */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.masthead-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px var(--pad);
}
.dock {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
.side { display: flex; flex-wrap: wrap; gap: 8px; }
.side-l { justify-content: flex-end; }
.side-r { justify-content: flex-start; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.pill:hover,
.pill:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
  font-family: 'Cormorant', Georgia, serif;
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.15;
}
.brand-logo { width: auto; height: 26px; }

/* 主体网格 */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}
article { min-width: 0; }

/* 首屏 */
.hero {
  position: relative;
  min-height: 45vh;
  display: grid;
  place-items: center;
  padding: 56px var(--pad) 92px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  overflow: hidden;
  scroll-margin-top: 118px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 54px), 0 100%);
}
.hero-bg { position: absolute; inset: 0; }
.hero-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .38;
  filter: grayscale(1);
}
.hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 880px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 20px;
  border: 1px solid var(--paper);
  border-radius: 999px;
  color: var(--paper);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: .16em;
  animation: bob 6s ease-in-out infinite;
  transition: background .18s ease, color .18s ease;
}
.hero-tag:hover,
.hero-tag:focus-visible { background: var(--paper); color: var(--ink); }
.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: .02em;
  font-weight: 700;
}

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

/* 正文分区 */
article > div:not(.hero) {
  padding: clamp(40px, 7vw, 76px) var(--pad);
  border-top: 1px solid var(--ink);
  scroll-margin-top: 118px;
}
article > div:not(.hero):nth-child(odd) { background: var(--paper); }
article > div:not(.hero):nth-child(even) { background: #f4f4f4; }

article h2 {
  margin: 0 0 .55em;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}
article h2 > span,
article h3 > span {
  display: inline-block;
  padding-bottom: .1em;
  border-bottom: 2px solid currentColor;
}
article h3 {
  margin: 1.6em 0 .5em;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}
article p,
article ul,
article ol,
article dl,
article blockquote,
article table { margin: 0 0 1.15em; max-width: 68ch; }
article ul,
article ol { padding-left: 1.25em; }
article li { margin: .35em 0; }
article a { text-underline-offset: .22em; }
article strong { font-weight: 600; }
article img { border-radius: var(--r); margin: 1.4em 0; }
article blockquote {
  padding: 22px 26px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r);
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.45;
}
article blockquote p { margin: 0; max-width: none; }
article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
article th,
article td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink);
  text-align: left;
  vertical-align: top;
}
article code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .94em;
  background: #eaeaea;
  padding: 1px 6px;
  border-radius: 6px;
}

/* 右栏 */
.rail {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 40px 24px 60px;
}
.card { border-radius: var(--r); padding: 22px; }
.card-a { background: var(--ink); color: var(--paper); }
.card-b { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }

.rail-h {
  margin: 0 0 14px;
  font-size: 1.2rem;
  letter-spacing: .02em;
}
.rail-h span {
  display: inline-block;
  padding-bottom: .12em;
  border-bottom: 2px solid currentColor;
}
.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  counter-reset: rail;
}
.rail-list li { counter-increment: rail; }
.rail-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 0;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  transition: opacity .18s ease;
}
.rail-list a::before {
  content: counter(rail, decimal-leading-zero);
  font-family: 'Cormorant', Georgia, serif;
  font-size: .95rem;
  letter-spacing: .06em;
  opacity: .65;
}
.rail-list a:hover { opacity: .55; }
.rail-brand {
  margin: 0;
  font-family: 'Cormorant', Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: .06em;
}

/* 页脚 */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 30px var(--pad);
}
.foot-in {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 34px;
}
.foot-addr {
  font-style: normal;
  font-size: 16px;
  letter-spacing: .04em;
}
.foot-nav dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin: 0;
}
.foot-nav dt {
  font-size: 13px;
  letter-spacing: .24em;
  line-height: 1.5;
  opacity: .6;
}
.foot-nav dd { margin: 0; }
.foot-nav a,
.foot-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .38);
  transition: border-color .18s ease;
}
.foot-nav a:hover,
.foot-nav a:focus-visible,
.foot-list a:hover,
.foot-list a:focus-visible { border-bottom-color: var(--paper); }
.foot-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
}

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

/* 断点 */
@media (max-width: 980px) {
  main { grid-template-columns: minmax(0, 1fr); }
  .rail {
    position: static;
    order: 2;
    padding: 32px var(--pad) 56px;
  }
  .rail-list { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .hero { scroll-margin-top: 108px; }
  article > div:not(.hero) { scroll-margin-top: 108px; }
}

@media (max-width: 820px) {
  .masthead-in { padding: 8px 12px; }
  .dock {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dock::-webkit-scrollbar { display: none; }
  .side { display: contents; }
  .brand { order: -1; flex: 0 0 auto; font-size: 18px; padding: 6px 14px; }
  .pill { flex: 0 0 auto; font-size: 15px; padding: 10px 14px; }
  .notice { font-size: 12px; letter-spacing: .2em; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 44px var(--pad) 78px; }
  .rail-list { grid-template-columns: 1fr; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .stagger { opacity: 1; transform: none; }
}

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