:root {
  --bg: #fbfbfa;
  --paper: #ffffff;
  --ink: #101010;
  --ink-2: #2d2d2d;
  --muted: #686868;
  --line: rgba(16, 16, 16, 0.14);
  --line-strong: rgba(16, 16, 16, 0.32);
  --soft: #f1f1ef;
  --soft-2: #e8e8e4;
  --red: #a61826;
  --red-soft: rgba(166, 24, 38, 0.09);
  --red-line: rgba(166, 24, 38, 0.34);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
  --serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(rgba(16, 16, 16, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 16, 16, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
figure { margin: 0; }

.page {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
  padding-bottom: 88px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  background: rgba(251, 251, 250, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1;
}

.brand::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  transform: translateY(-1px);
}

.brand span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.eyebrow,
.section-kicker,
.card-tag {
  color: var(--red);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 800px;
  font-size: clamp(44px, 6.5vw, 82px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(31px, 4.2vw, 52px);
  line-height: 1.08;
}

h3 {
  font-size: 27px;
  line-height: 1.18;
}

p {
  margin: 0;
  color: var(--muted);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  gap: 34px;
  align-items: center;
  min-height: calc(92vh - 74px);
  padding: 58px 0 70px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.hero-lead {
  max-width: 720px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 11px 18px;
  font-size: 14px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--red);
  border-color: var(--red);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.button.secondary:hover {
  color: var(--red);
  background: var(--red-soft);
  border-color: var(--red);
}

.visual-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.55 / 1;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.visual-frame img,
.direction-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.95) contrast(1.03);
}

.visual-frame::after,
.direction-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.62);
  pointer-events: none;
}

.section {
  padding-top: 76px;
}

.section-head {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 30px;
}

.section-kicker {
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.section-desc {
  max-width: 850px;
  margin-top: 14px;
  font-size: 18px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.summary-card,
.direction-card,
.next-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.summary-card {
  min-height: 170px;
  padding: 24px;
}

.summary-card:hover,
.direction-card:hover,
.next-card:hover {
  border-color: var(--red-line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.summary-card h3 {
  margin-bottom: 14px;
  font-size: 25px;
}

.direction-grid {
  display: grid;
  gap: 18px;
}

.direction-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  min-height: 360px;
}

.direction-card.reverse {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
}

.direction-card.reverse .direction-visual {
  order: 2;
  border-width: 0 0 0 1px;
}

.direction-visual {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  background: var(--paper);
  border-right: 1px solid var(--line);
}

.direction-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px;
}

.card-tag {
  margin-bottom: 14px;
}

.direction-body p {
  margin-top: 14px;
  font-size: 16px;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.flow-item {
  min-height: 108px;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 12px;
}

.flow-label {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flow-item span:last-child {
  display: block;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.next-card {
  display: flex;
  min-height: 158px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.next-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.18;
}

.next-card span {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 76px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1020px) {
  .detail-hero,
  .section-head,
  .summary-grid,
  .direction-card,
  .direction-card.reverse,
  .next-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    min-height: auto;
    padding-top: 44px;
  }

  .direction-card.reverse .direction-visual {
    order: 0;
    border-width: 0 0 1px;
  }

  .direction-visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .visual-frame,
  .direction-visual {
    min-height: 320px;
  }

  .nav-links { display: none; }
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 36px, 1240px);
    padding-bottom: 72px;
  }

  .brand {
    align-items: center;
    font-size: 23px;
  }

  .brand span { display: none; }
  .detail-hero { gap: 24px; }
  h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-lead, .section-desc { font-size: 16px; }
  .direction-body, .summary-card, .next-card { padding: 20px; }
  .flow-list { grid-template-columns: 1fr; }
  .flow-item { min-height: auto; }
  .visual-frame {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1.25 / 1;
  }
}
