:root {
  color-scheme: light;
  --ink: oklch(20% 0.03 35);
  --pine: oklch(39% 0.14 32);
  --green: oklch(50% 0.16 34);
  --mist: oklch(96% 0.012 35);
  --line: oklch(83% 0.025 35);
  --white: oklch(100% 0 0);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--mist); color: var(--ink); font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif; }
a { color: inherit; }

.hero { min-height: 72svh; padding: 28px 22px 52px; display: flex; flex-direction: column; justify-content: space-between; background: var(--pine); color: var(--white); }
.brand-mark, .section-label { margin: 0; font-size: 11px; letter-spacing: .13em; font-weight: 700; }
.hero h1 { margin: 76px 0 18px; max-width: 10ch; font-size: clamp(38px, 11vw, 70px); line-height: 1.14; letter-spacing: -.02em; text-wrap: balance; }
.keep-together { white-space: nowrap; }
.hero-copy { max-width: 27ch; margin: 0; color: oklch(93% 0.018 35); font-size: 15px; line-height: 1.8; }
.hero-link { display: flex; justify-content: space-between; align-items: center; margin-top: 42px; padding: 15px 0; border-bottom: 1px solid oklch(100% 0 0 / .45); text-decoration: none; font-size: 15px; }
.hero-link span { font-size: 22px; }

.gallery-section { padding: 58px 16px 72px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; padding: 0 6px; }
.section-heading h2, .contact-section h2 { margin: 8px 0 0; font-size: clamp(29px, 8vw, 48px); line-height: 1.16; letter-spacing: -.03em; text-wrap: balance; }
.section-heading > p { margin: 0; max-width: 11em; color: oklch(43% 0.035 155); font-size: 12px; line-height: 1.55; text-align: right; }
.section-label { color: var(--green); }
.tile-gallery { columns: 2; column-gap: 9px; }
.tile-card { position: relative; display: block; width: 100%; margin: 0 0 9px; padding: 0; overflow: hidden; break-inside: avoid; border: 0; background: var(--line); cursor: zoom-in; }
.tile-card img { display: block; width: 100%; min-height: 130px; object-fit: cover; transition: transform 360ms cubic-bezier(.16, 1, .3, 1); }
.tile-card::after { content: "查看细节"; position: absolute; right: 9px; bottom: 9px; padding: 5px 7px; background: oklch(18% 0.025 155 / .76); color: var(--white); font-size: 10px; opacity: 0; transition: opacity 180ms ease; }
.tile-card:hover img, .tile-card:focus-visible img { transform: scale(1.035); }
.tile-card:hover::after, .tile-card:focus-visible::after { opacity: 1; }
.tile-card:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.tile-card.is-unavailable { min-height: 160px; color: var(--pine); cursor: default; font-size: 13px; }

.contact-section { padding: 54px 22px 112px; background: var(--white); }
.contact-details { margin-top: 38px; border-top: 1px solid var(--line); }
.contact-details > * { display: flex; justify-content: space-between; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-details span { color: oklch(42% 0.03 155); font-size: 13px; }
.contact-details strong { color: var(--pine); font-size: 15px; }

.mobile-contact { position: fixed; z-index: 10; right: 14px; bottom: 14px; left: 14px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; box-shadow: 0 5px 8px oklch(18% 0.025 155 / .18); }
.mobile-contact a { display: flex; min-height: 52px; align-items: center; justify-content: center; background: var(--pine); color: var(--white); text-decoration: none; font-size: 14px; font-weight: 700; }
.mobile-contact a + a { background: var(--green); }

dialog { max-width: none; width: 100%; height: 100%; margin: 0; padding: 22px; border: 0; background: oklch(10% 0.012 155 / .96); color: var(--white); }
dialog::backdrop { background: oklch(10% 0.012 155 / .7); }
dialog figure { display: grid; height: 100%; place-items: center; margin: 0; }
dialog img { max-width: 100%; max-height: calc(100svh - 88px); object-fit: contain; }
dialog figcaption { margin-top: 12px; color: oklch(86% 0.012 155); font-size: 13px; }
.dialog-close, .dialog-nav { position: fixed; z-index: 1; border: 0; background: transparent; color: var(--white); cursor: pointer; }
.dialog-close { top: 13px; right: 15px; font-size: 36px; line-height: 1; }
.dialog-nav { top: 50%; padding: 14px; font-size: 48px; line-height: 1; transform: translateY(-50%); }
.dialog-prev { left: 0; }.dialog-next { right: 0; }

@media (min-width: 760px) {
  .hero { min-height: 640px; padding: 42px max(7vw, 60px) 54px; }
  .hero h1 { margin-top: 140px; }.gallery-section { padding: 86px max(7vw, 60px); }.tile-gallery { columns: 3; column-gap: 15px; }.tile-card { margin-bottom: 15px; }.contact-section { padding: 82px max(7vw, 60px); }.mobile-contact { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.tile-card img, .tile-card::after { transition: none; } }
