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

:root {
  --ink: #1f1f1f;
  --ink-2: #4d4d4d;
  --ink-3: #767676;
  --paper: #ffffff;
  --wash: #f5f5f5;
  --line: rgba(31, 31, 31, 0.1);
  --glass: rgba(255, 255, 255, 0.82);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 12px 30px rgba(20, 20, 20, 0.05);
  --shadow-lg: 0 18px 50px rgba(20, 20, 20, 0.12);
  --r: 10px;
  --r-lg: 22px;
  --max: 1180px;
  --head: 132px;
}

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

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

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: 'Outfit', 'Work Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

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

h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 90;
  background: var(--paper);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  text-decoration: none;
  font-size: 16px;
}
.skip:focus { left: 0; }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 245, 245, 0.76);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.top-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px clamp(14px, 3vw, 26px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.menu { position: relative; justify-self: start; }

.menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 16px;
  transition: background 0.22s ease, transform 0.22s ease;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: #fff; transform: scale(1.02); }
.menu[open] summary { background: var(--ink); color: #fff; border-color: var(--ink); }

.bars { position: relative; display: block; width: 16px; height: 2px; background: currentColor; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
.bars::before { top: -5px; }
.bars::after { top: 5px; }

.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  margin: 0;
  padding: 8px;
  list-style: none;
  min-width: 226px;
  display: grid;
  gap: 2px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.menu-panel a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 16px;
}
.menu-panel a:hover { background: var(--wash); }

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 4px 2px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-t { font-size: 18px; }
.mark { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; }
.mark-dot { display: block; width: 12px; height: 12px; border-radius: 4px; background: var(--ink); }

.top-links { justify-self: end; display: flex; gap: 2px; }
.top-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16px;
  color: var(--ink-2);
  transition: background 0.2s ease, color 0.2s ease;
}
.top-links a:hover { background: var(--paper); color: var(--ink); }

.jump {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 26px) 10px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.jump::-webkit-scrollbar { display: none; }
.jump a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 16px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.jump a:hover, .jump a:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- 主体网格 ---------- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 26px) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 18px;
  align-items: start;
}

/* ---------- 首屏 ---------- */
.hero {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(90vh, 780px);
  padding: clamp(26px, 6vw, 62px) 0 clamp(18px, 4vw, 34px);
  overflow: hidden;
}

.ghost {
  position: absolute;
  top: 4%;
  left: -0.06em;
  z-index: 0;
  font-size: clamp(64px, 15vw, 196px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: rgba(31, 31, 31, 0.055);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.art {
  position: absolute;
  top: clamp(36px, 9vh, 108px);
  right: 0;
  z-index: 1;
  width: min(44%, 440px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  will-change: transform;
}

.tile {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s ease;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile:nth-child(2) { transform: translateY(38px); }
.art:hover .tile { transform: scale(1.02); }
.art:hover .tile:nth-child(2) { transform: translateY(38px) scale(1.02); }

.hero-copy { position: relative; z-index: 2; max-width: min(100%, 56%); }
.hero-copy h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 600; }

/* ---------- 正文 ---------- */
.prose { grid-column: 1 / 2; min-width: 0; }

.prose > section {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3.4vw, 40px);
  scroll-margin-top: 140px;
}
.prose > section + section { margin-top: 14px; }

.prose h2 { font-size: clamp(21px, 2.4vw, 27px); margin-bottom: 4px; }
.prose h3 { font-size: 19px; margin: 22px 0 6px; }
.prose h2 + hr, .prose h3 + hr { margin-top: 0; }

.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin: 0.3em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote {
  margin: 18px 0;
  padding: 12px 18px;
  border-left: 3px solid var(--ink);
  background: rgba(245, 245, 245, 0.7);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--ink-2);
}
.prose strong { font-weight: 600; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.94em;
  background: var(--wash);
  padding: 2px 6px;
  border-radius: 6px;
}
.prose img { border-radius: var(--r); margin: 12px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }

/* ---------- 侧栏 ---------- */
.side {
  grid-column: 2 / 3;
  position: sticky;
  top: calc(var(--head) + 12px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  box-shadow: var(--shadow);
}
.side h2 { font-size: 18px; }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side ul a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  color: var(--ink-2);
  transition: background 0.2s ease, color 0.2s ease;
}
.side ul a:hover { background: var(--wash); color: var(--ink); }
.side-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 8px;
  font-size: 16px;
  color: var(--ink-3);
  text-decoration: none;
}
.side-top:hover { color: var(--ink); }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 24px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.cta {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(38px, 7vw, 82px) clamp(14px, 3vw, 26px) clamp(26px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.cta h2 { font-size: clamp(28px, 4vw, 46px); }
.cta p { max-width: 58ch; margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.cta-btn:hover { transform: scale(1.02); opacity: 0.9; }

.foot-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px) clamp(14px, 3vw, 26px);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 22px;
}
.col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  font-size: 16px;
  color: var(--ink-2);
}
.col a:hover { color: var(--ink); }
.col-t { font-weight: 600; margin: 0 0 4px; }
.col-d { margin: 0; font-size: 16px; color: var(--ink-2); }

.foot-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px clamp(14px, 3vw, 26px) 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
}
.foot-brand { display: flex; align-items: center; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.foot-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  text-decoration: none;
  font-size: 16px;
  color: var(--ink-2);
}
.foot-nav a:hover { color: var(--ink); }
.copy { font-size: 16px; color: var(--ink-3); }

/* ---------- 断点 ---------- */
@media (max-width: 1000px) {
  main { grid-template-columns: minmax(0, 1fr); }
  .side { grid-column: 1 / -1; position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero { min-height: 0; padding-top: 20px; }
  .ghost {
    top: 0;
    bottom: auto;
    font-size: clamp(46px, 16vw, 96px);
    color: rgba(31, 31, 31, 0.07);
  }
  .art {
    position: static;
    order: -1;
    width: 100%;
    margin-bottom: 20px;
    gap: 10px;
  }
  .tile { aspect-ratio: 4 / 5; }
  .tile:nth-child(2) { transform: translateY(0); }
  .art:hover .tile:nth-child(2) { transform: scale(1.02); }
  .hero-copy { max-width: 100%; }
}

@media (max-width: 780px) {
  .top-links { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-t { font-size: 17px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .foot-bottom { justify-content: flex-start; }
}

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

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