/* 欧美性大片 — 瑞士极简 · 黑白 · 网格 */

:root {
  --ink: #000000;
  --paper: #ffffff;
  --dim: #3d3d3d;
  --hair: rgba(0, 0, 0, 0.16);
  --r: 4px;
  --maxw: 1200px;
  --gut: clamp(16px, 3vw, 32px);
  --serif: "EB Garamond", "Crimson Text", Georgia, "Songti SC", "SimSun", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { 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(--sans);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: clip;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 1.15em; }

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

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.masthead nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.nav-list {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  display: flex;
  min-width: 0;
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.nav-list li:nth-child(-n+3) { flex: 4 1 0; justify-content: center; }
.nav-list li:nth-child(n+5) { flex: 3 1 0; justify-content: center; }

.nav-list li:nth-child(1) { animation-delay: 0.02s; }
.nav-list li:nth-child(2) { animation-delay: 0.06s; }
.nav-list li:nth-child(3) { animation-delay: 0.1s; }
.nav-list li:nth-child(5) { animation-delay: 0.16s; }
.nav-list li:nth-child(6) { animation-delay: 0.2s; }
.nav-list li:nth-child(7) { animation-delay: 0.24s; }
.nav-list li:nth-child(8) { animation-delay: 0.28s; }

.nav-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.55rem 0.5rem;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  border-radius: 0;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.nav-list a:hover,
.nav-list a[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
}

.nav-list .brand { flex: 0 0 auto; }

.nav-list .brand a {
  padding: 0.55rem 1.4rem;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.14em;
  border-left: 1px solid var(--hair);
  border-right: 1px solid var(--hair);
  white-space: nowrap;
}

/* ---------- 首屏 ---------- */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) var(--gut);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 3.5vw, 56px);
  align-items: center;
  min-height: 45vh;
  border-bottom: 1px solid var(--ink);
  background-image: radial-gradient(rgba(0, 0, 0, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: 0 0;
}

.hero-text { text-align: center; }

.hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-desc {
  max-width: 32em;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--dim);
  text-wrap: pretty;
}

.hero-plate {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border: 2px solid var(--ink);
  border-radius: var(--r);
  background: var(--paper);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-plate::before {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid var(--ink);
}

.hero-plate .plate-mark {
  position: absolute;
  width: 1px;
  height: 140%;
  background: var(--ink);
  transform: rotate(38deg);
  opacity: 0.85;
}

.hero-plate .hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 内容区 ---------- */

.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px) var(--gut) clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 230px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 60px);
  align-items: start;
}

.rail {
  position: sticky;
  top: 84px;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  padding: 0.9rem 0.9rem 0.6rem;
  background: var(--paper);
}

.rail small {
  display: block;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
}

.rail-title {
  margin: 0.25rem 0 0.7rem;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--hair);
}

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

.rail-list li {
  border-top: 1px solid var(--hair);
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.rail-list li:first-child { border-top: 0; }
.rail-list li:nth-child(1) { animation-delay: 0.05s; }
.rail-list li:nth-child(2) { animation-delay: 0.1s; }
.rail-list li:nth-child(3) { animation-delay: 0.15s; }
.rail-list li:nth-child(4) { animation-delay: 0.2s; }
.rail-list li:nth-child(5) { animation-delay: 0.25s; }
.rail-list li:nth-child(6) { animation-delay: 0.3s; }
.rail-list li:nth-child(7) { animation-delay: 0.35s; }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.5rem;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  border-radius: var(--r);
  transition: background-color 0.22s ease, color 0.22s ease, padding-left 0.22s ease;
}

.rail-list a:hover,
.rail-list a[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
  padding-left: 0.9rem;
}

/* ---------- 正文 ---------- */

.prose {
  min-width: 0;
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
}

.prose div { scroll-margin-top: 96px; }
.prose div + div { margin-top: clamp(2rem, 4vw, 3.4rem); }

.prose > div:first-child > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

.prose h2 {
  margin: 2.6rem 0 0.9rem;
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.prose h3 {
  margin: 1.9rem 0 0.6rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.35;
}

.prose h2 + p,
.prose h3 + p { margin-top: 0.4rem; }

.prose p { text-wrap: pretty; }

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.prose a:hover { background: var(--ink); color: var(--paper); }

.prose ul,
.prose ol { margin: 0 0 1.2rem; padding-left: 1.4em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--dim); }

.prose blockquote {
  margin: 1.4rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--dim);
}

.prose figure {
  margin: 1.5rem 0;
  padding: 0.6rem;
  border: 1px solid var(--ink);
  border-radius: var(--r);
}

.prose figcaption {
  margin-top: 0.5rem;
  font-size: 14px;
  color: var(--dim);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  font-size: 16px;
}

.prose th,
.prose td {
  border: 1px solid var(--hair);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.prose th { border-color: var(--ink); font-weight: 600; }

.prose hr {
  border: 0;
  border-top: 1px solid var(--hair);
  margin: 2rem 0;
}

.prose code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  padding: 0.05em 0.35em;
}

.prose pre {
  overflow-x: auto;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  padding: 0.9rem 1rem;
}

.prose pre code { border: 0; padding: 0; }

.prose time {
  font-variant-numeric: tabular-nums;
  color: var(--dim);
  font-size: 15px;
}

/* ---------- 页脚 ---------- */

.foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem clamp(20px, 4vw, 64px);
  padding: clamp(34px, 6vw, 68px) clamp(20px, 8vw, 120px) clamp(26px, 4vw, 44px);
  background: var(--ink);
  color: var(--paper);
}

.foot p { margin: 0; }

.foot-cta {
  grid-column: 1 / -1;
  padding-bottom: clamp(1rem, 2vw, 1.8rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.foot-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0.35em 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--paper);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.foot-cta a:hover { opacity: 0.75; transform: translateX(4px); }

.foot-brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
  align-content: start;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 0;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.22s ease, opacity 0.22s ease;
}

.foot-links a:hover { border-color: var(--paper); opacity: 0.8; }

.foot-legal,
.foot-note {
  grid-column: 1 / -1;
  text-align: center;
}

.foot-legal {
  margin-top: clamp(1rem, 3vw, 2.2rem) !important;
  padding-top: clamp(1rem, 2vw, 1.6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.foot-note {
  display: block;
  font-size: 13px;
  letter-spacing: 0.2em;
  opacity: 0.65;
}

/* ---------- 动效 ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

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

/* ---------- 断点 ---------- */

@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .rail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 0.6rem; }
  .rail-list li:first-child { border-top: 0; }
  .prose { max-width: none; }
}

@media (max-width: 860px) {
  .nav-list { flex-wrap: wrap; padding-bottom: 6px; }
  .nav-list li:nth-child(-n+3),
  .nav-list li:nth-child(n+5) { flex: 1 1 auto; }
  .nav-list .brand {
    order: -1;
    flex: 1 0 100%;
    border-bottom: 1px solid var(--hair);
    margin-bottom: 4px;
  }
  .nav-list .brand a {
    border: 0;
    width: 100%;
    min-height: 54px;
  }
  .nav-list a { min-height: 44px; font-size: 15px; padding: 0.4rem 0.45rem; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-plate { aspect-ratio: 16 / 9; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot-brand { margin-bottom: 0.2rem; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .prose { font-size: 16px; line-height: 1.8; }
  .rail-list { grid-template-columns: minmax(0, 1fr); }
  .hero-desc { font-size: 16px; }
  .foot-links { gap: 0 0.9rem; }
}

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