:root {
  --paper: #f5f3ee;
  --white: #ffffff;
  --ink: #111111;
  --muted: #73716b;
  --line: #d8d5ce;
  --red: #df392f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: rgba(245, 243, 238, .92);
  border-bottom: 1px solid rgba(17,17,17,.12);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; letter-spacing: .04em; }
.brand-mark { width: 29px; height: 7px; border-radius: 10px; background: var(--red); }
.topbar nav { display: flex; gap: 30px; font-size: 14px; font-weight: 650; }
.topbar nav a { transition: color .2s ease; }
.topbar nav a:hover { color: var(--red); }

.hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr);
  gap: 6vw;
  align-items: end;
  padding: clamp(90px, 12vw, 190px) 5vw clamp(70px, 8vw, 130px);
}
.eyebrow, .section-number { margin: 0 0 28px; color: var(--red); font-size: 13px; line-height: 1; font-weight: 800; letter-spacing: .12em; }
.hero h1 { margin: 0; font-size: clamp(48px, 5.6vw, 108px); line-height: .98; letter-spacing: -.055em; font-weight: 850; white-space: nowrap; }
.hero-red { margin: 22px 0 0; color: var(--red); font-size: clamp(34px, 4.7vw, 78px); line-height: 1.05; letter-spacing: -.05em; font-weight: 850; white-space: nowrap; }
.hero-description { max-width: 720px; margin: 42px 0 0; color: var(--muted); font-size: clamp(18px, 1.6vw, 26px); line-height: 1.7; }
.hero-meta { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.hero-meta div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.hero-meta span { font-size: clamp(28px, 3vw, 52px); font-weight: 850; letter-spacing: -.04em; white-space: nowrap; }
.hero-meta small { color: var(--muted); font-size: 14px; text-align: right; }

.deck-section, .gallery-section { padding: clamp(72px, 9vw, 140px) 5vw; }
.deck-section { color: var(--white); background: var(--ink); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin: 0 auto 42px; max-width: 1680px; }
.section-heading h2 { margin: 0; font-size: clamp(38px, 5.2vw, 78px); line-height: 1; letter-spacing: -.055em; font-weight: 850; }
.deck-heading .section-number { color: #ff5a50; }
.pdf-button { display: inline-flex; align-items: center; gap: 18px; flex: 0 0 auto; padding: 17px 22px; color: var(--white); border: 1px solid #5b5b5b; border-radius: 999px; font-size: 14px; font-weight: 700; transition: .2s ease; }
.pdf-button:hover { border-color: var(--red); background: var(--red); }
.pdf-button span { font-size: 18px; }

.deck-shell { max-width: 1680px; margin: 0 auto; }
.deck-viewport { overflow: hidden; background: #eceae5; border-radius: 4px; box-shadow: 0 30px 90px rgba(0,0,0,.35); touch-action: pan-y; }
.deck-track { display: flex; transition: transform .55s cubic-bezier(.22,.8,.24,1); }
.deck-slide { flex: 0 0 100%; margin: 0; }
.deck-slide button { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: transparent; }
.deck-slide img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.deck-controlbar { display: grid; grid-template-columns: 56px minmax(180px, 1fr) auto 56px; gap: 22px; align-items: center; padding: 24px 0; border-bottom: 1px solid #343434; }
.round-button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid #555; color: var(--white); background: transparent; cursor: pointer; font-size: 21px; transition: .2s ease; }
.round-button:hover { background: var(--red); border-color: var(--red); }
.page-status { display: flex; align-items: baseline; gap: 8px; }
.page-status strong { font-size: 27px; }
.page-status span { color: #777; font-size: 14px; }
.page-status em { margin-left: 14px; color: #aaa; font-size: 14px; font-style: normal; }
.slide-dots { display: flex; gap: 10px; }
.slide-dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 10px; background: #555; cursor: pointer; }
.slide-dots button.active { background: var(--red); }
.deck-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 26px; }
.deck-thumbnails button { padding: 0; color: #aaa; text-align: left; border: 0; background: transparent; cursor: pointer; }
.deck-thumbnails img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .55; border: 2px solid transparent; transition: .2s ease; }
.deck-thumbnails span { display: block; margin-top: 10px; font-size: 12px; }
.deck-thumbnails button.active img, .deck-thumbnails button:hover img { opacity: 1; border-color: var(--red); }

.gallery-section { background: var(--paper); }
.gallery-intro { max-width: 430px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.filter-row { position: sticky; top: 72px; z-index: 20; display: flex; gap: 10px; max-width: 1680px; margin: 0 auto 36px; padding: 16px 0; overflow-x: auto; background: rgba(245,243,238,.95); backdrop-filter: blur(14px); scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row button { flex: 0 0 auto; display: flex; align-items: center; gap: 9px; padding: 12px 17px; color: #5e5c57; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; }
.filter-row button span { color: #9b9890; font-size: 11px; }
.filter-row button.active { color: var(--white); border-color: var(--ink); background: var(--ink); }
.filter-row button.active span { color: #aaa; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1680px; margin: 0 auto; }
.gallery-card { min-width: 0; padding: 0; text-align: left; border: 1px solid var(--line); background: var(--white); cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease; }
.gallery-card:hover { transform: translateY(-4px); box-shadow: 0 20px 55px rgba(26,22,17,.11); }
.gallery-image-wrap { display: flex; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 4 / 3; background: #f9f9f7; }
.gallery-image-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.gallery-card:hover img { transform: scale(1.025); }
.gallery-caption { position: relative; display: flex; flex-direction: column; min-height: 92px; padding: 18px 52px 18px 20px; border-top: 1px solid #eceae5; }
.gallery-caption small { margin-bottom: 8px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .07em; }
.gallery-caption strong { overflow: hidden; font-size: 16px; white-space: nowrap; text-overflow: ellipsis; }
.gallery-caption i { position: absolute; top: 34px; right: 20px; font-size: 20px; font-style: normal; }

footer { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 90px 5vw; color: var(--white); background: var(--ink); }
footer p { max-width: 800px; margin: 0; color: #aaa; font-size: clamp(20px, 2.4vw, 38px); line-height: 1.35; }
footer strong { color: var(--red); font-size: clamp(24px, 3vw, 46px); white-space: nowrap; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 92px 7vw 54px; color: var(--white); background: rgba(8,8,8,.96); backdrop-filter: blur(12px); }
.lightbox[hidden] { display: none; }
.lightbox-top { position: absolute; inset: 22px 28px auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.lightbox-top div { display: flex; align-items: baseline; gap: 15px; min-width: 0; }
.lightbox-top small { color: var(--red); font-weight: 800; white-space: nowrap; }
.lightbox-top strong { overflow: hidden; font-size: 18px; white-space: nowrap; text-overflow: ellipsis; }
.lightbox-top a { flex: 0 0 auto; padding: 8px 12px; color: var(--white); border: 1px solid #555; border-radius: 999px; font-size: 12px; text-decoration: none; }
.lightbox-top a:hover { border-color: var(--white); }
.lightbox-top button { width: 46px; height: 46px; flex: 0 0 auto; color: var(--white); border: 1px solid #555; border-radius: 50%; background: transparent; cursor: pointer; font-size: 30px; font-weight: 200; line-height: 1; }
.lightbox-image { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lightbox-image img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 100px rgba(0,0,0,.55); }
.lightbox-arrow { position: absolute; top: 50%; width: 54px; height: 54px; color: var(--white); border: 1px solid #555; border-radius: 50%; background: rgba(0,0,0,.35); cursor: pointer; font-size: 22px; transform: translateY(-50%); }
.lightbox-arrow.left { left: 18px; }
.lightbox-arrow.right { right: 18px; }
.lightbox-count { position: absolute; bottom: 18px; left: 50%; color: #aaa; font-size: 13px; transform: translateX(-50%); }

@media (max-width: 900px) {
  .topbar { height: 62px; padding: 0 20px; }
  .topbar nav { gap: 16px; font-size: 12px; }
  .brand { gap: 9px; font-size: 16px; }
  .brand-mark { width: 22px; height: 6px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 68px; align-items: start; padding: 84px 20px 74px; }
  .eyebrow { margin-bottom: 22px; font-size: 11px; }
  .hero h1 { font-size: clamp(42px, 12vw, 72px); }
  .hero-red { margin-top: 18px; font-size: clamp(32px, 10vw, 58px); }
  .hero h1, .hero-red { white-space: normal; }
  .hero-description { margin-top: 30px; font-size: 17px; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta div { padding: 18px 0; }
  .hero-meta span { font-size: 32px; }
  .deck-section, .gallery-section { padding: 76px 20px; }
  .section-heading { align-items: start; flex-direction: column; gap: 26px; margin-bottom: 30px; }
  .section-heading h2 { font-size: 44px; }
  .pdf-button { padding: 14px 18px; }
  .deck-viewport { margin: 0 -20px; border-radius: 0; }
  .deck-controlbar { grid-template-columns: 46px 1fr 46px; gap: 12px; }
  .round-button { width: 44px; height: 44px; }
  .slide-dots { display: none; }
  .page-status { justify-content: center; }
  .page-status em { display: none; }
  .deck-thumbnails { display: flex; gap: 10px; margin-right: -20px; overflow-x: auto; scrollbar-width: none; }
  .deck-thumbnails::-webkit-scrollbar { display: none; }
  .deck-thumbnails button { flex: 0 0 40%; }
  .deck-thumbnails span { font-size: 10px; }
  .filter-row { top: 62px; margin-right: -20px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gallery-caption { min-height: 82px; padding: 15px 38px 15px 14px; }
  .gallery-caption strong { font-size: 14px; }
  .gallery-caption i { top: 30px; right: 13px; font-size: 17px; }
  footer { align-items: start; flex-direction: column; padding: 72px 20px; }
  footer strong { white-space: normal; }
  .lightbox { padding: 82px 12px 50px; }
  .lightbox-top { inset: 16px 14px auto; }
  .lightbox-top strong { font-size: 14px; }
  .lightbox-top a { padding: 7px 10px; font-size: 11px; }
  .lightbox-arrow { top: auto; bottom: 16px; width: 44px; height: 44px; transform: none; }
  .lightbox-arrow.left { left: 16px; }
  .lightbox-arrow.right { right: 16px; }
}

@media (max-width: 560px) {
  .topbar nav a:first-child { display: none; }
  .gallery-grid { grid-template-columns: 1fr; gap: 14px; }
  .gallery-image-wrap { aspect-ratio: 4 / 3; }
  .gallery-caption { min-height: 78px; }
  .section-heading h2 { font-size: 39px; }
}

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