:root {
  color-scheme: light;
  --ink: #17251f;
  --ink-2: #2b211c;
  --muted: #6f7068;
  --soft: #f7f5f0;
  --paper: #fffdf8;
  --line: rgba(23, 37, 31, 0.16);
  --line-strong: rgba(23, 37, 31, 0.32);
  --green: #5f7c67;
  --blue: #2f5f75;
  --clay: #b85f43;
  --gold: #c49a4d;
  --cream: #efe8dc;
  --shadow: 0 24px 80px rgba(23, 37, 31, 0.14);
  --max: 1220px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family:
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans CJK SC",
    system-ui,
    sans-serif;
  letter-spacing: 0;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-areas: "brand nav action";
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 14px 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(23, 37, 31, 0.92);
  color: #fffdf8;
  backdrop-filter: blur(18px);
}

.brand {
  grid-area: brand;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 760;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 253, 248, 0.72);
  border-radius: 50%;
  font-family: "Songti SC", STSong, serif;
  font-size: 17px;
}

nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  gap: 30px;
  color: rgba(255, 253, 248, 0.76);
  font-size: 14px;
}

nav a,
.header-action,
.primary-button,
.secondary-button,
.text-link,
.site-footer a {
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

nav a:hover,
.site-footer a:hover {
  color: #fff;
}

.header-action,
.primary-button,
.secondary-button,
.text-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 760;
}

.header-action {
  grid-area: action;
  justify-self: end;
  padding: 0 18px;
  border: 1px solid rgba(255, 253, 248, 0.34);
  background: rgba(255, 253, 248, 0.12);
  color: #fffdf8;
}

.primary-button {
  padding: 0 22px;
  border: 1px solid #fffdf8;
  background: #fffdf8;
  color: var(--ink);
}

.secondary-button {
  padding: 0 22px;
  border: 1px solid rgba(255, 253, 248, 0.52);
  background: rgba(23, 37, 31, 0.2);
  color: #fffdf8;
}

.text-link {
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover,
.text-link:hover,
.header-action:hover {
  transform: translateY(-1px);
}

.section-shell {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: calc(92vh - 64px);
  overflow: hidden;
  background: var(--ink);
  color: #fffdf8;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 37, 31, 0.92) 0%, rgba(23, 37, 31, 0.7) 38%, rgba(23, 37, 31, 0.16) 72%),
    linear-gradient(0deg, rgba(23, 37, 31, 0.48), rgba(23, 37, 31, 0.04) 46%),
    url("assets/foyer-public.jpg") center / cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(var(--max), calc(100% - 48px));
  min-height: calc(92vh - 64px);
  grid-template-columns: minmax(340px, 0.68fr) minmax(360px, 0.42fr);
  gap: 80px;
  align-items: end;
  margin-inline: auto;
  padding: 82px 0 72px;
}

.hero-copy {
  align-self: center;
  max-width: 680px;
}

.project-label,
.section-heading span,
.plan-copy span,
.analysis-card span,
.next-copy > span,
.value-grid span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .project-label {
  color: #e7bd78;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-family: "Songti SC", STSong, serif;
  font-size: 72px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 46px;
  font-weight: 780;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: 0;
}

.hero-lede,
.section-heading p,
.next-copy .note {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.82;
}

.hero-lede {
  max-width: 650px;
  color: rgba(255, 253, 248, 0.82);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid rgba(255, 253, 248, 0.22);
  background: rgba(255, 253, 248, 0.22);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24);
}

.hero-stats div {
  min-height: 146px;
  padding: 24px;
  background: rgba(23, 37, 31, 0.62);
  backdrop-filter: blur(12px);
}

.hero-stats dt {
  margin-bottom: 18px;
  color: #e7bd78;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 253, 248, 0.88);
  line-height: 1.6;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading.split {
  display: flex;
  max-width: none;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.value-section,
.plan-section,
.analysis-section,
.style-section,
.gallery-section,
.next-section {
  padding: 96px 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.value-grid article {
  min-height: 280px;
  padding: 30px;
  background: var(--paper);
}

.value-grid p,
.plan-copy p,
.analysis-card p,
.style-card p,
.render-card p,
.next-copy .note {
  margin: 0;
  color: var(--muted);
  line-height: 1.74;
}

.plan-section,
.gallery-section {
  background: #fffdf8;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.plan-feature,
.analysis-card,
.style-card,
.render-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.plan-feature {
  display: grid;
  gap: 20px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(23, 37, 31, 0.08);
}

.plan-copy {
  padding: 12px 12px 0;
}

.image-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-align: left;
}

.image-frame,
.analysis-card button,
.style-card button,
.render-card button,
.overview {
  overflow: hidden;
  border-radius: var(--radius);
  background: #f4f1eb;
}

.image-frame {
  border: 1px solid var(--line);
}

.image-frame img,
.analysis-card img,
.style-card img,
.overview img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f6f3ed;
  transition: transform 0.35s ease;
}

.render-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.image-button:hover img {
  transform: scale(1.018);
}

.analysis-section {
  background:
    linear-gradient(180deg, rgba(95, 124, 103, 0.14), rgba(47, 95, 117, 0.08)),
    var(--soft);
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.analysis-card {
  display: grid;
  gap: 15px;
  align-content: start;
  padding: 14px;
}

.analysis-card.priority {
  grid-column: span 2;
  grid-row: span 2;
}

.analysis-card.priority img {
  aspect-ratio: 16 / 10;
}

.style-section {
  background: var(--ink);
  color: #fffdf8;
}

.style-section .section-heading p {
  color: rgba(255, 253, 248, 0.72);
}

.style-section .section-heading span {
  color: #e7bd78;
}

.progress-pill {
  display: grid;
  min-width: 132px;
  min-height: 86px;
  place-items: center;
  border: 1px solid rgba(255, 253, 248, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.1);
}

.progress-pill strong {
  font-size: 36px;
  line-height: 1;
}

.progress-pill span {
  color: rgba(255, 253, 248, 0.72);
  font-size: 13px;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.style-card {
  display: grid;
  min-height: 100%;
  gap: 14px;
  padding: 14px;
  background: #fffdf8;
  color: var(--ink);
}

.style-card h3 {
  margin: 0;
}

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

.render-card {
  display: grid;
  gap: 15px;
  align-content: start;
  padding: 14px;
}

.render-card.large {
  grid-column: span 2;
}

.render-card.hidden {
  display: none;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-tabs button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.filter-tabs button.active,
.filter-tabs button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffdf8;
}

.next-section {
  background:
    linear-gradient(90deg, rgba(47, 95, 117, 0.12), rgba(184, 95, 67, 0.08)),
    #f7f5f0;
}

.next-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 56px;
  align-items: center;
}

.overview {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 14px;
  height: 2px;
  background: var(--blue);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 44px;
  border-top: 1px solid var(--line);
  background: #fffdf8;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 36px;
  background: rgba(9, 15, 12, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  width: min(96vw, 1500px);
  max-height: 90vh;
  margin: 0;
}

.lightbox img {
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.lightbox figcaption {
  padding-top: 14px;
  color: #fffdf8;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 253, 248, 0.4);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.12);
  color: #fffdf8;
  font-size: 30px;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand action"
      "nav nav";
    padding: 14px 22px;
  }

  nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-inner,
  .plan-grid,
  .next-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: end;
    gap: 34px;
  }

  .value-grid,
  .style-grid,
  .analysis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .render-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .section-shell,
  .hero-inner {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    gap: 12px;
  }

  .brand {
    font-size: 14px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(23, 37, 31, 0.92) 0%, rgba(23, 37, 31, 0.68) 62%, rgba(23, 37, 31, 0.3) 100%),
      url("assets/foyer-public.jpg") center / cover no-repeat;
  }

  .hero-inner {
    min-height: 760px;
    padding: 58px 0 38px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-actions,
  .filter-tabs,
  .section-heading.split,
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .primary-button,
  .secondary-button,
  .text-link {
    width: 100%;
  }

  .hero-stats,
  .value-grid,
  .analysis-grid,
  .style-grid,
  .render-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats div {
    min-height: auto;
    padding: 18px;
  }

  .analysis-card.priority,
  .render-card.large {
    grid-column: auto;
    grid-row: auto;
  }

  .value-section,
  .plan-section,
  .analysis-section,
  .style-section,
  .gallery-section,
  .next-section {
    padding: 64px 0;
  }

  .lightbox {
    padding: 16px;
  }
}

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