:root {
  --paper: #f3f3f3;
  --ink: #2c2c2c;
  --muted: #8f8f8f;
  --line: #d9d9d9;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-feature-settings: "palt";
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 30px;
  color: var(--paper);
  mix-blend-mode: difference;
}
.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.35;
  white-space: nowrap;
}
.brand-mark {
  width: 15px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
  flex: none;
  margin-top: 0.25em;
}
.brand-mark::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: currentColor; }
.brand-copy { display: flex; flex-direction: column; gap: 0.15em; }
.brand em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.56em;
  letter-spacing: 0.12em;
  line-height: 1.4;
  background: linear-gradient(90deg, rgba(243,243,243,0.82) 0%, rgba(243,243,243,0.2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 1.2rem; letter-spacing: 0.1em; line-height: 2rem; opacity: 0.62; transition: opacity 0.3s ease; }
.nav a:hover { opacity: 1; }
.nav a.case-link { text-decoration: underline; text-underline-offset: 4px; opacity: 1; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1a1917;
  color: var(--paper);
}
.hero-media {
  position: absolute;
  inset: 0;
  background: url("assets/case-a/hero.webp") center 42% / cover no-repeat;
  animation: heroZoom 10s ease forwards;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 14, 12, 0.22) 0%, rgba(15, 14, 12, 0.08) 42%, rgba(15, 14, 12, 0.62) 100%);
  pointer-events: none;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.05); } }
.hero-inner { position: relative; z-index: 2; width: min(100% - 60px, 1160px); margin: 0 auto; padding: 0 0 52px; }
.eyebrow { font-size: 1.1rem; letter-spacing: 0.2em; color: rgba(243, 243, 243, 0.62); }
.hero h1 {
  font-size: clamp(4rem, 7vw, 8rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 16px 0 18px;
}
.hero h1 span { display: block; font-size: 0.52em; font-weight: 400; letter-spacing: 0.01em; margin-top: 10px; opacity: 0.86; }
.hero-desc { max-width: 520px; font-size: 1.4rem; line-height: 1.9; color: rgba(243, 243, 243, 0.78); margin: 0; }
.hero-meta { margin-top: 30px; font-size: 1.1rem; letter-spacing: 0.16em; color: rgba(243, 243, 243, 0.56); }

.case-intro {
  width: min(100% - 60px, 1160px);
  margin: 0 auto;
  padding: 100px 0 76px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  border-bottom: 1px solid var(--line);
}
.case-intro h2 { margin: 0; font-size: 1.4rem; font-weight: 600; letter-spacing: 0.1em; }
.case-intro p { margin: 0 0 16px; font-size: 1.5rem; line-height: 1.95; color: #5c5c5c; max-width: 720px; }
.case-intro p:last-child { margin-bottom: 0; }

.gallery {
  width: min(100% - 60px, 1160px);
  margin: 0 auto;
  padding: 76px 0 40px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px 24px;
}
figure { margin: 0; }
.gallery figure img { width: 100%; height: 100%; display: block; object-fit: cover; background: #e6e2da; }
.gallery figure figcaption { margin-top: 12px; font-size: 1.1rem; letter-spacing: 0.12em; color: var(--muted); }
.wide { grid-column: span 12; }
.half { grid-column: span 6; }
.seven { grid-column: span 7; }
.five { grid-column: span 5; }
.ratio-tall img { aspect-ratio: 4 / 5; }
.ratio-wide img { aspect-ratio: 3 / 2; }
.ratio-square img { aspect-ratio: 1 / 1; }
.ratio-poster img { aspect-ratio: 4 / 5; }

.case-foot {
  width: min(100% - 60px, 1160px);
  margin: 0 auto;
  padding: 60px 0 100px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}
.case-foot a { color: var(--muted); transition: color 0.25s ease; }
.case-foot a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .header { padding: 18px; }
  .nav { gap: 14px; }
  .nav a:not(.case-link) { display: none; }
  .hero-inner, .case-intro, .gallery, .case-foot { width: calc(100% - 36px); }
  .hero-inner { padding-bottom: 36px; }
  .case-intro { grid-template-columns: 1fr; gap: 24px; padding: 72px 0 56px; }
  .gallery { grid-template-columns: 1fr; gap: 30px; padding-top: 56px; }
  .wide, .half, .seven, .five { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media { animation: none; }
}

/* 并列英文：中文下方的小字英文行 */
.en-line {
  display: block;
  font-size: 0.82em;
  line-height: 1.7;
  letter-spacing: 0.05em;
  font-weight: 400;
  opacity: 0.58;
  margin-top: 6px;
}
/* 浅底正文区：换成深灰 */
.case-intro .en-line { color: #8f8f8f; opacity: 1; }
.case-intro h2 .en-line { color: #9a9a9a; font-size: 0.9em; letter-spacing: 0.08em; margin-top: 4px; }

/* ICP 备案号 */
.icp-badge {
  position: fixed;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 1rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  white-space: nowrap;
  color: rgba(44, 44, 44, 0.46);
}
.icp-badge a { color: inherit; }
.icp-badge a:hover { text-decoration: underline; text-underline-offset: 2px; }
