:root {
  --ink: #101214;
  --paper: #f5f1eb;
  --paper-strong: #fffaf2;
  --muted: #746f67;
  --line: rgba(16, 18, 20, 0.12);
  --red: #d71920;
  --gold: #c5a46b;
  --green: #0e4d42;
  --white: #ffffff;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.case-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 34px;
  background: rgba(245, 241, 235, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.case-brand {
  display: inline-flex;
  align-items: center;
}

.case-brand img {
  width: 220px;
  height: auto;
  object-fit: contain;
}

.case-brand strong,
.case-brand small {
  display: block;
  line-height: 1.12;
}

.case-brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.back-link {
  color: var(--red);
  font-weight: 800;
  border-bottom: 2px solid var(--red);
}

.case-hero {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 54px;
  align-items: center;
  width: min(var(--max), calc(100% - 68px));
  min-height: 620px;
  margin: 0 auto;
  padding: 78px 0 64px;
}

.case-hero > *,
.two-column > *,
.case-section > *,
.case-footer > div > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li,
span,
.note-box {
  margin: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
p,
li,
span,
.note-box {
  word-break: break-all;
  line-break: anywhere;
}

h1 {
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
  max-width: 100%;
}

h2 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.16;
  letter-spacing: 0;
  max-width: 100%;
}

h3 {
  font-size: 22px;
  line-height: 1.28;
}

.hero-copy {
  margin-top: 24px;
  color: #4d4943;
  font-size: 20px;
}

.hero-visual {
  overflow: hidden;
  background: var(--ink);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(16, 18, 20, 0.18);
}

.hero-visual img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #101214;
}

.case-section {
  padding: 90px 34px;
}

.case-section > * {
  width: min(var(--max), 100%);
  margin-right: auto;
  margin-left: auto;
}

.dark {
  color: var(--white);
  background: var(--ink);
}

.dark .eyebrow {
  color: var(--gold);
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.lead-text {
  color: #4d4943;
  font-size: 19px;
}

.dark .lead-text {
  color: rgba(255, 255, 255, 0.7);
}

.logic-list,
.move-list,
.result-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.logic-list li,
.move-list li,
.result-list li {
  padding: 22px 24px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.dark .logic-list li,
.dark .move-list li,
.dark .result-list li {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.13);
}

.logic-list strong,
.move-list strong,
.result-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
  font-size: 14px;
}

.dark .logic-list strong,
.dark .move-list strong,
.dark .result-list strong {
  color: var(--gold);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.result-stat {
  min-height: 150px;
  padding: 26px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.result-stat strong {
  display: block;
  color: var(--red);
  font-size: 32px;
  line-height: 1.1;
}

.result-stat span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.gallery-grid img {
  height: auto;
  min-height: 0;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-grid img:first-child {
  grid-row: auto;
}

.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 34px;
}

.case-gallery-grid img {
  height: auto;
  min-height: 0;
  object-fit: contain;
  background: #101214;
  border-radius: 8px;
}

.case-gallery-grid img:nth-child(1) {
  grid-row: auto;
}

.note-box {
  padding: 28px;
  margin-top: 28px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
}

.case-footer {
  padding: 52px 34px 70px;
  color: var(--white);
  background: var(--ink);
}

.case-footer > div {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.case-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: var(--white);
  font-weight: 800;
  background: var(--red);
  border-radius: 4px;
}

@media (max-width: 900px) {
  .case-header {
    padding: 0 20px;
  }

  .case-brand img {
    width: 174px;
    height: auto;
  }

  .case-brand small {
    display: none;
  }

  .case-hero,
  .two-column,
  .gallery-grid,
  .case-gallery-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .case-hero {
    width: calc(100% - 40px);
    max-width: calc(100vw - 40px);
    min-height: 0;
    padding: 44px 0 54px;
  }

  h1 {
    font-size: 36px;
    max-width: 8.5em;
  }

  h2 {
    font-size: 30px;
    max-width: 9em;
  }

  .case-section {
    padding: 64px 20px;
  }

  .case-section > * {
    width: 100%;
    max-width: calc(100vw - 40px);
  }

  .hero-copy,
  .lead-text,
  .logic-list li,
  .move-list li,
  .result-list li,
  .result-stat,
  .note-box {
    max-width: calc(100vw - 40px);
  }

  .gallery-grid img,
  .gallery-grid img:first-child,
  .case-gallery-grid img,
  .case-gallery-grid img:nth-child(1) {
    min-height: 0;
    grid-row: auto;
  }

  .case-footer > div {
    display: grid;
  }
}
