@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 {
  --ink: #1f1f1f;
  --paper: #ffffff;
  --ash: #f5f5f5;
  --muted: #5c5c5c;
  --faint: #e2e2e2;
  --serif: "Libre Bodoni", "Songti SC", Georgia, serif;
  --sans: "Public Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ash);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
}

main { display: block; }

a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  font-weight: 600;
}

h2 { font-size: 1.3rem; letter-spacing: 0.01em; }
h3 { font-size: 1.05rem; }

ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin: 0 0 0.4em; }

h2 + p.subtitle,
h2 + p.subhead,
h2 + p.lead,
h2 + p.desc {
  margin: -0.2em 0 1em;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- 顶部：两行，品牌独占一行 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}

.brandrow {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--faint);
}

.mark {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 0;
  display: inline-block;
}

.head-acts { display: flex; align-items: center; gap: 8px; }

.chip {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 10px 18px;
  font-size: 14px;
  letter-spacing: 0.12em;
  background: var(--paper);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.chip:hover, .chip:focus-visible { background: var(--ink); color: var(--paper); }

.chip-light { border-color: var(--paper); background: transparent; color: var(--paper); }
.chip-light:hover, .chip-light:focus-visible { background: var(--paper); color: var(--ink); }

.menurow {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
}

.menu { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; }

.navrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2px;
  margin: 0;
  align-items: center;
}

.navrow a {
  display: inline-block;
  padding: 12px 11px;
  font-size: 15px;
  line-height: 1.5;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.navrow a:hover, .navrow a:focus-visible { border-bottom-color: var(--ink); }

.drop { position: relative; display: flex; align-items: center; padding: 6px 0; }

.dropbtn {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 9px 14px;
  min-height: 40px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropbtn:hover, .dropbtn:focus-visible { background: var(--ink); color: var(--paper); }

.droppanel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 60;
  min-width: 320px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.drop.open .droppanel { display: grid; }

.dcol h3 {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 6px;
  font-weight: 600;
}

.dcol a {
  display: block;
  padding: 9px 2px;
  font-size: 15px;
  border-bottom: 1px solid var(--faint);
}

.dcol a:hover, .dcol a:focus-visible { background: var(--ink); color: var(--paper); }

/* ---------- 版心 ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 24px;
  align-items: start;
}

.stage { min-width: 0; }

.sheet {
  background: var(--paper);
  border: 1px solid var(--ink);
}

/* ---------- 首屏 ---------- */
.mast {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
  padding: 56px 28px 40px;
  border-bottom: 1px solid var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(#dedede 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -10px -10px;
}

.mast h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 8.4vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 18ch;
}

.mast .subtitle {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  text-align: right;
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
  counter-reset: sec;
}

.bento > div {
  grid-column: span 2;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 22px 20px 24px;
  scroll-margin-top: 150px;
  min-width: 0;
  transition: transform 0.25s ease, background-color 0.25s ease;
  animation: rise 0.5s ease both;
}

.bento > div:nth-child(1) { grid-column: span 2; }
.bento > div:nth-child(2) { grid-column: span 2; }
.bento > div:nth-child(3) { grid-column: span 4; }
.bento > div:nth-child(4) { grid-column: span 2; }
.bento > div:nth-child(5) { grid-column: span 2; }
.bento > div:nth-child(6) { grid-column: span 4; }
.bento > div:nth-child(7) { grid-column: span 4; }

.bento > div:nth-child(2) { animation-delay: 0.05s; }
.bento > div:nth-child(3) { animation-delay: 0.1s; }
.bento > div:nth-child(4) { animation-delay: 0.15s; }
.bento > div:nth-child(5) { animation-delay: 0.2s; }
.bento > div:nth-child(6) { animation-delay: 0.25s; }
.bento > div:nth-child(7) { animation-delay: 0.3s; }

@keyframes rise {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

.bento > div::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #9a9a9a;
  margin-bottom: 12px;
}

.bento > div:hover { transform: scale(1.012); background: #fcfcfc; }

.bento > div h2 { font-size: 1.35rem; }

.bento > div > p { color: #333; }

.bento > div strong { font-weight: 600; border-bottom: 1px solid var(--ink); }

.bento > div blockquote {
  margin: 0 0 1em;
  padding: 4px 0 4px 14px;
  border-left: 2px solid var(--ink);
  color: var(--muted);
}

/* ---------- 侧栏 ---------- */
.rail { position: sticky; top: 150px; }

.rail-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 18px 16px 20px;
}

.rail-card h2 {
  font-size: 1rem;
  letter-spacing: 0.14em;
  margin: 0 0 4px;
}

.rail-card .subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

.rail-nav { display: grid; gap: 1px; }

.rail-nav a {
  display: block;
  padding: 11px 8px;
  font-size: 15px;
  border-bottom: 1px solid var(--faint);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rail-nav a:hover, .rail-nav a:focus-visible { background: var(--ink); color: var(--paper); }

/* ---------- 页脚 ---------- */
.site-foot {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px 24px;
  padding: 36px 20px 30px;
  max-width: 100%;
}

.foot-brand {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  max-width: 560px;
  flex: 1 1 260px;
}

.foot-nav a {
  padding: 11px 6px;
  font-size: 15px;
  color: #e9e9e9;
  border-bottom: 1px solid transparent;
}

.foot-nav a:hover, .foot-nav a:focus-visible { color: var(--paper); border-bottom-color: var(--paper); }

.foot-cta { padding-top: 6px; }

.foot-note {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #b6b6b6;
  margin-left: auto;
  padding-top: 10px;
}

/* ---------- 断点 ---------- */
@media (max-width: 980px) {
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rail { position: static; }
  .mast { min-height: 62vh; }
  .foot-note { margin-left: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .brandrow { padding: 8px 16px; }
  .mark { font-size: 22px; }
  .menurow { padding: 0 16px; gap: 8px; }
  .navrow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .navrow::-webkit-scrollbar { display: none; }
  .navrow a { padding: 12px 10px; white-space: nowrap; }
  .droppanel { right: auto; left: 0; min-width: min(86vw, 320px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wrap { padding: 16px 16px 40px; }
  .mast { min-height: 58vh; padding: 40px 18px 32px; }
  .mast h1 { font-size: clamp(2.1rem, 10vw, 3.4rem); }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; }
  .bento > div,
  .bento > div:nth-child(n) { grid-column: span 1; padding: 20px 16px 22px; }
  .bento > div:hover { transform: none; }
  .site-foot { padding: 28px 16px 24px; gap: 14px; }
  .foot-nav { flex: 1 1 100%; }
  .foot-nav a { padding: 11px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bento > div { animation: none; }
  .bento > div:hover { transform: none; }
  * { transition-duration: 0.01ms !important; }
}

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