/* Re·fine Studio — brand styles from Home Page 文字档案 */
:root {
  --bg: #f0ebe3;
  --paper: #f7f3ec;
  --ink: #000000;
  --muted: #2c2c2c;
  --brown: #574028;
  --accent: #8c3632;
  --accent-hover: #713028;
  --nav-active: #913833;
  --nav-color: #000000;
  --nav-font-en: "Mongolian Baiti", Georgia, "Times New Roman", serif;
  --nav-font-zh: "KaiTi", "楷体", "STKaiti", "Kaiti SC", serif;
  --nav-size: 22px;
  --nav-weight: 400;
  --nav-gap: clamp(0.75rem, 1.35vw, 1.25rem);
  --line-red: #8c3632;
  --line-gray: #b0a495;
  --line: rgba(87, 64, 40, 0.14);
  --shadow: 0 16px 40px rgba(44, 28, 28, 0.1);
  --font-brand: "Mongolian Baiti", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-zh: "KaiTi", "楷体", "STKaiti", "Kaiti SC", serif;
  --radius: 4px;
  --nav-row: 3.25rem;
  --header-h: calc(var(--nav-row) + 0.85rem);
  --inner-nav-row: var(--nav-row);
  --inner-logo-size: clamp(120px, 12.5vw, 144px);
  --header-brand-logo-height: 22px;
  --header-brand-logo-width: 184px;
  --inner-logo-overhang: max(0px, calc(var(--inner-logo-size) - var(--inner-nav-row)));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image: url("../assets/bg-texture-large.jpg");
  background-size: cover;
  background-attachment: scroll;
}

/* Chinese UI: use KaiTi for all page text */
html[lang="zh-Hans"] {
  --font-brand: "KaiTi", "楷体", "STKaiti", "Kaiti SC", serif;
}

html[lang="zh-Hans"] body {
  font-family: var(--font-zh);
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  color: var(--brown);
}

.wrap {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 236, 0.92);
  /* blur removed: sticky + backdrop-filter causes scroll jank */
  border-bottom: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  display: none;
}

.logo-zh {
  font-family: var(--font-zh);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.logo-en {
  font-family: var(--font-brand);
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  letter-spacing: 0.22em;
  font-weight: 400;
  color: var(--brown);
  line-height: 1;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 1.5vw, 1rem);
  flex-shrink: 0;
  min-width: 0;
}

.header-tagline {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(1rem, 1.85vw, 1.32rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.page-home .header-tagline {
  display: none;
}

body:not(.page-home) .logo-en {
  display: none;
}

/* Inner pages — unified header (Gallery reference) */
body:not(.page-home) {
  --header-h: calc(var(--inner-nav-row) + 0.85rem);
}

body:not(.page-home) .site-header {
  overflow: visible;
}

body:not(.page-home) .header-inner {
  min-height: var(--header-h);
  align-items: center;
  overflow: visible;
  padding-top: 0.85rem;
  padding-bottom: 0;
  box-sizing: border-box;
}

body:not(.page-home) main {
  position: relative;
}

/* Logo + tagline in header left column (same on every page) */
.header-inner--nav-only {
  justify-content: flex-end;
}

/* Hide any legacy page-brand left in main content areas */
main .page-brand {
  display: none !important;
}

.site-header .page-brand {
  display: flex !important;
  align-items: flex-end;
  gap: 1rem;
  margin: 0;
  min-width: 0;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.page-home .site-header .page-brand {
  display: none !important;
}

.site-header .page-brand .logo {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  line-height: 0;
  height: 41px;
  margin-bottom: 3px;
}

.site-header .page-brand .logo-img {
  width: var(--header-brand-logo-width) !important;
  height: var(--header-brand-logo-height) !important;
  max-width: min(184px, 28vw);
  object-fit: contain;
  display: block;
  margin-top: 5px;
  margin-bottom: 0;
}

.site-header .page-brand .logo-en {
  display: none;
}

body:not(.page-home) .services-hero-inner,
body:not(.page-home) .faq-hero-inner,
body:not(.page-home) .gallery-hero-inner,
body:not(.page-home) .contact-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body:not(.page-home) .header-brand {
  display: none;
}

@media (max-width: 960px) {
  body:not(.page-home) {
    --inner-nav-row: 3.25rem;
    --inner-logo-size: clamp(104px, 14vw, 120px);
  }

  body:not(.page-home) .header-tagline {
    font-size: 1.05rem;
  }
}

.header-inner--nav-only .site-nav {
  flex-wrap: nowrap;
  gap: var(--nav-gap);
  white-space: nowrap;
}

.header-inner--nav-only .lang {
  flex-shrink: 0;
}

/* Desktop: brand left / nav right on every page */
@media (min-width: 861px) {
  .header-inner--nav-only {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 2rem;
    align-items: center;
  }

  .header-inner--nav-only .page-brand,
  .site-header .page-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    align-self: center;
  }

  .header-inner--nav-only .nav-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .header-inner--nav-only .site-nav {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    /* Pack Home…Contact + EN|中文 as one group on the right */
    justify-content: flex-end;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding-top: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  /* Same row as nav links; small gap before the language switcher */
  .header-inner--nav-only .lang {
    position: static;
    inset: auto;
    transform: none;
    margin-left: 1rem;
    flex-shrink: 0;
    align-self: center;
  }

  /* Home has no header brand — keep nav in the right column so it
     doesn't sit over the hero logo; content still right-aligned */
  .page-home .header-inner--nav-only {
    grid-template-columns: minmax(0, 1fr) minmax(0, 650px);
  }

  .page-home .header-inner--nav-only .site-nav {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  .header-inner--nav-only {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .header-inner .page-brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-inner--nav-only .nav-toggle {
    flex-shrink: 0;
    margin-left: auto;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a.nav-link,
.site-nav .nav-link--static {
  color: var(--nav-color);
  font-size: var(--nav-size);
  font-weight: var(--nav-weight);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.12em;
}

html[lang="en"] .site-nav a.nav-link,
html[lang="en"] .site-nav .nav-link--static {
  font-family: var(--nav-font-en);
}

html[lang="zh-Hans"] .site-nav a.nav-link,
html[lang="zh-Hans"] .site-nav .nav-link--static {
  font-family: var(--nav-font-zh);
}

/* Chinese labels are wider — slightly tighter gaps keep layout stable */
html[lang="zh-Hans"] {
  --nav-gap: clamp(0.5rem, 1.05vw, 0.95rem);
}

.site-nav .nav-link--static {
  cursor: default;
  user-select: none;
}

.site-nav a.nav-link:hover:not(.is-active) {
  color: var(--nav-color);
  text-decoration: none;
}

.site-nav a.nav-link.is-active {
  color: var(--nav-active);
  border-bottom-color: var(--nav-active);
  text-decoration: none;
}

.site-nav .nav-link--static:hover {
  color: var(--nav-color);
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.25rem;
}

.lang-btn {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--nav-color);
  font-size: var(--nav-size);
  font-weight: var(--nav-weight);
  padding: 0.2rem 0.35rem 0.12em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border-bottom: 2px solid transparent;
}

.lang-btn[data-lang="en"] {
  font-family: var(--nav-font-en);
}

.lang-btn[data-lang="zh"] {
  font-family: var(--nav-font-zh);
}

.lang-btn:hover:not(.is-active) {
  color: var(--nav-color);
  text-decoration: none;
}

.lang-btn.is-active {
  color: var(--nav-active);
  border-bottom-color: var(--nav-active);
  text-decoration: none;
}

.lang-sep {
  color: #999;
  font-size: var(--nav-size);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-brand);
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

a.btn {
  font-weight: 600;
  border-width: 1px;
  border-image: none;
  border-color: rgba(140, 54, 50, 0.9);
  flex-wrap: wrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: rgba(140, 54, 50, 1);
  border-color: rgba(140, 54, 50, 1);
}

.btn-outline:hover {
  background: rgba(140, 54, 50, 0.06);
}

.btn-contact {
  background: var(--brown);
  border-color: var(--brown);
}

.btn-contact:hover {
  background: #463320;
  border-color: #463320;
}

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy .eyebrow {
  font-family: var(--font-brand);
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  font-weight: 400;
  margin: 0 0 0.55rem;
  line-height: 1.15;
}

.hero-title {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.28;
  margin: 0 0 1rem;
}

.hero-lead {
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 1.1rem;
  font-size: 0.98rem;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Mongolian Baiti", Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  margin: 0 0 1.35rem;
  position: relative;
  min-height: 24px;
}

html[lang="zh-Hans"] .hero-location {
  font-family: var(--font-zh);
}

.pin-icon {
  width: 12.6px;
  height: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 0;
}

.hero-location > span {
  display: block;
  position: absolute;
  left: 26px;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}

.hero-location .brand-dot {
  display: inline;
  position: static;
  left: auto;
  top: auto;
  font-family: "Noto Serif SC", serif;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-visual {
  width: 100%;
}

.compare-static {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-pane {
  margin: 0;
  position: relative;
}

.compare-pane img {
  width: 100%;
  aspect-ratio: 5 / 6;
  min-height: clamp(240px, 34vw, 360px);
  object-fit: cover;
  object-position: center;
}

.compare-pane figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.45rem 0.65rem;
  font-family: var(--font-brand);
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
}

.compare-before figcaption {
  background: rgba(53, 53, 53, 0.88);
  color: #fff;
}

.compare-after figcaption {
  background: rgba(235, 228, 215, 0.94);
  color: #353535;
}

/* Value section */
.value-section {
  position: relative;
  height: 275px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--paper) 55%, transparent 55%);
  overflow: hidden;
}

.value-section::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(48%, 520px);
  height: 100%;
  background: url("../assets/bg-accent.jpg") right center / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.value-grid {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2rem;
  align-items: stretch;
}

.value-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 700px;
  height: fit-content;
  padding-left: 0;
}

.deco-line {
  width: 120px;
  height: auto;
  margin: 0.55rem 0 0.85rem;
}

.deco-line img {
  width: 100%;
  height: auto;
  display: block;
}

.deco-line.center {
  margin-left: auto;
  margin-right: auto;
}

.value-title {
  font-family: var(--font-brand);
  font-size: 30px;
  font-weight: 400;
  color: var(--accent);
  margin: 5px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}

.value-copy .deco-line {
  width: 240px;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  margin-left: auto;
  margin-right: auto;
}

.value-copy .deco-line img {
  width: 200px;
  height: fit-content;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.value-body {
  margin: 10px auto;
  width: 500px;
  max-width: none;
  font-size: 23px;
  text-align: center;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  vertical-align: middle;
}

.value-features {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  column-gap: 0;
  justify-content: flex-start;
  max-width: 300px;
  margin-left: 0;
  margin-right: auto;
}

.value-feature {
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 0.75rem;
  row-gap: 0;
  align-items: start;
  text-align: left;
}

.value-icon {
  width: 72px;
  height: 72px;
  margin: 0;
  grid-row: 1 / 3;
  align-self: center;
  background: transparent;
  border-radius: 50%;
  overflow: hidden;
}

.value-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.value-feature h3 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--brown);
  margin: 10px 0 -10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  align-items: flex-start;
}

.value-feature p {
  margin: -10px 0 0;
  width: 300px;
  height: 20px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}

/* Section heads */
.section-head {
  margin-bottom: 2rem;
}

.section-head.centered {
  text-align: center;
}

.deco-square {
  width: 9px;
  height: 9px;
  background: var(--accent);
  margin-bottom: 0.65rem;
}

.deco-square.center {
  margin-inline: auto;
}

.section-head h2 {
  font-family: var(--font-brand);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  margin: 0;
  font-weight: 400;
}

.section-head .deco-line {
  margin-top: 0.45rem;
  margin-bottom: 0;
}

.section-sub {
  margin: 0.45rem 0 0;
  color: var(--ink);
}

/* Services */
.services {
  padding: 3rem 0 3.25rem;
  background: var(--paper);
}

.card-grid.four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.service-img {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: var(--paper);
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-card h3 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0.75rem 0.85rem 0.25rem;
}

.service-list {
  margin: 0 0.85rem 0.85rem;
  font-size: 0.88rem;
  color: var(--ink);
}

.section-cta {
  margin-top: 1.75rem;
}

.section-cta.centered {
  text-align: center;
}

/* Gallery */
.gallery-section {
  padding: 3rem 0 3.25rem;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 30px;
}

.filter-tab {
  border: 1px solid rgba(135, 117, 102, 0.5);
  background: #fff;
  color: var(--ink);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-family: var(--font-brand);
  font-size: 0.85rem;
  cursor: pointer;
}

.filter-tab:hover {
  border-color: var(--accent);
}

.filter-tab.is-active {
  background-color: rgba(135, 117, 102, 1);
  color: #fff;
  border-color: rgba(135, 117, 102, 0.5);
}

.gallery-grid {
  column-count: 3;
  column-gap: 1.25rem;
}

.gallery-item {
  content-visibility: auto;
  contain-intrinsic-size: 520px;
  display: inline-block;
  width: 100%;
  margin-bottom: 1.25rem;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  background-color: rgba(241, 237, 232, 1);
  border: 1px solid var(--line-gray);
  border-radius: 10px;
  padding: 0.65rem 0.65rem 0.75rem;
  height: auto;
  box-sizing: border-box;
}

.gallery-item.is-hidden {
  display: none;
}

.compare-slider {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ddd;
  user-select: none;
  touch-action: none;
}

/* 竖图 / 横图两种固定比例（与原始案例图一致） */
.gallery-item.layout-vertical .compare-slider {
  aspect-ratio: 195 / 293;
}

.gallery-item.layout-horizontal .compare-slider {
  aspect-ratio: 445 / 220;
}

.compare-after-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.compare-before-layer {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 50%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  border-right: 2px solid #fff;
}

.compare-before-layer img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left center;
}

.compare-range {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.22));
}

.compare-handle svg {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-caption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.65rem 0 0;
  line-height: 1.35;
}

.gallery-caption-title {
  margin-left: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  letter-spacing: 0;
}

.gallery-caption-vehicle {
  margin-left: 0;
  text-align: center;
  margin-top: -3px;
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(44, 44, 44, 0.8);
}

.gallery-caption .muted {
  color: var(--muted);
}

/* FAQ */
.faq {
  padding: 2.5rem 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.faq-list {
  max-width: 720px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1rem;
  margin-bottom: 0.55rem;
  background: #fff;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.85rem 0;
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Contact */
.contact-cta {
  padding: 2.75rem 0;
  background: var(--bg);
  border-top: 1px solid var(--line-gray);
}

.contact-bar .contact-intro {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
}

.contact-bar .contact-intro h2 {
  font-family: var(--font-brand);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  margin: 0;
}

.contact-bar .contact-intro .deco-line {
  margin-top: 0.45rem;
  margin-bottom: 0.65rem;
}

.contact-bar .contact-intro p {
  margin: 0 0 1.75rem;
  color: var(--ink);
}

.contact-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
}

.contact-block {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-top: -20px;
}

.contact-icon {
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
}

.icon-svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.footer-logo-img {
  width: min(230px, 100%);
  height: auto;
  display: block;
  margin-top: 15px;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.social a .icon-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.social a span {
  margin-left: 10px;
}

.social li + li {
  margin-top: 10px;
}

.contact-block p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--brown);
  line-height: 1.5;
  height: 49px;
}

.contact-block a {
  color: var(--brown);
}

.contact-action {
  display: flex;
  justify-content: flex-end;
}

/* Footer */
.site-footer {
  position: relative;
  padding: 0;
  background-color: transparent;
}

.site-footer::before {
  content: "";
  display: block;
  height: 2px;
  background: var(--line-red);
  margin-bottom: 0;
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr));
  gap: 0;
  align-items: start;
  padding: 20px 0 15px;
}

.footer-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/footer-bg.jpg") center bottom / cover no-repeat;
  /* 顶部 + 左右渐变遮罩：消除深色底图矩形硬边，与页面底色融合 */
  -webkit-mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.12) 16%,
      rgba(0, 0, 0, 0.45) 38%,
      rgba(0, 0, 0, 0.85) 62%,
      #000 78%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      #000 7%,
      #000 93%,
      transparent 100%
    );
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.12) 16%,
      rgba(0, 0, 0, 0.45) 38%,
      rgba(0, 0, 0, 0.85) 62%,
      #000 78%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      #000 7%,
      #000 93%,
      transparent 100%
    );
  mask-composite: intersect;
  pointer-events: none;
  z-index: 0;
}

.footer-grid > * {
  position: relative;
  z-index: 1;
}

.footer-brand {
  padding-right: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-col {
  position: relative;
  padding-right: 1rem;
  padding-top: 10px;
  font-size: 18px;
  height: 160px;
}

.footer-col:nth-child(2) {
  padding-left: 50px;
  border-left: 1px solid var(--line-gray);
}

.footer-col:nth-child(4) {
  padding-left: 1.75rem;
  border-left: 1px solid var(--line-gray);
}

.footer-col:nth-child(5) {
  width: 230px;
  padding-left: 30px;
  margin-left: 30px;
  margin-right: 30px;
  border-left: 1px solid var(--line-gray);
}

.footer-col:nth-child(3) {
  padding-left: 1.25rem;
}

.footer-col:last-child {
  padding-right: 0;
}

.footer-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.logo-mark--footer {
  width: 48px;
  height: 48px;
}

.footer-logo-en {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--brown);
  margin: 0;
}

.footer-tagline {
  margin: 20px auto 0;
  font-size: 15px;
  text-align: center;
  width: 230px;
  color: var(--brown);
  line-height: 1.45;
}

.footer-tagline-rule {
  display: block;
  width: 48px;
  height: 2px;
  margin: 10px auto;
  background: var(--line-red);
}

.footer-tag-italic {
  margin: 0 auto;
  font-style: italic;
  font-size: 0.88rem;
  text-align: center;
  color: var(--brown);
}

.footer-col h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--brown);
  margin: 0 0 0.65rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0px;
  height: 30px;
  line-height: 1;
  font-size: 15px;
}

.footer-col a {
  color: var(--brown);
  font-size: 15px;
  margin-top: 5px;
  margin-bottom: 5px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-hours-appt {
  margin: 0 0 0.75rem;
  font-family: "Mongolian Baiti", Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--brown);
  line-height: 1.45;
}

html[lang="zh-Hans"] .footer-hours-appt,
html[lang="zh-Hans"] .footer-hours-schedule {
  font-family: var(--font-zh);
}

.footer-hours-rule {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0 0 0.75rem;
  background: var(--line-gray);
}

.footer-hours-schedule {
  display: grid;
  grid-template-columns: max-content auto max-content;
  column-gap: 0.45rem;
  row-gap: 0;
  align-items: baseline;
  font-family: "Mongolian Baiti", Georgia, "Times New Roman", serif;
  font-size: 15px;
  color: var(--brown);
  line-height: 1.45;
}

.footer-hours-day,
.footer-hours-time {
  white-space: nowrap;
}

.footer-bottom-section {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-top: 1px solid var(--line-gray);
}

.footer-bottom-section > .footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-bottom {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.85rem 0 1.25rem;
  border-top: none;
  font-size: 15px;
  color: var(--ink);
  text-align: center;
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 2px;
  background: var(--line-red);
}

.footer-bottom p {
  margin: 0;
}

/* 品牌名中间的「·」统一用 Noto Serif SC */
.brand-dot {
  font-family: "Noto Serif SC", serif;
}

.footer-legal {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.45rem;
}

.footer-legal::before {
  content: "|";
  margin: 0 0.45rem;
  color: var(--ink);
}

.footer-bottom a {
  color: var(--ink);
}

.footer-location-icon {
  display: inline-block;
  vertical-align: -0.15em;
  width: 11px;
  height: auto;
  margin: 0 0.25em;
}

.footer-legal a {
  text-decoration: none;
  padding-top: 0;
}

.footer-legal a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid {
    column-count: 2;
  }

  .card-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .value-grid {
    flex-direction: column;
  }

  .hero-visual {
    order: -1;
  }

  .value-section {
    background: var(--paper);
  }

  .value-section::after {
    width: 100%;
    opacity: 0.18;
  }

  .value-features {
    max-width: min(100%, 300px);
    margin-inline: auto;
  }

  .value-copy {
    padding: 1rem 0 0.5rem;
  }

  .contact-columns {
    grid-template-columns: 1fr 1fr;
  }

  .contact-action {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    padding-bottom: 1.5rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--line-gray);
  }

  .footer-col {
    border-left: none;
    padding: 1.25rem 0 0;
  }

  .footer-col:nth-child(2),
  .footer-col:nth-child(4) {
    padding-right: 1rem;
  }

  .footer-col:nth-child(3) {
    padding-left: 1rem;
  }

  .footer-col:nth-child(5) {
    padding-left: 1rem;
    border-left: 1px solid var(--line-gray);
  }
}

@media (max-width: 640px) {
  :root {
    --header-brand-logo-height: 18px;
    --header-brand-logo-width: 144px;
  }

  body:not(.page-home) {
    --inner-nav-row: 4.25rem;
    --inner-logo-overhang: 0px;
  }

  body:not(.page-home) .header-brand {
    margin-bottom: 0;
    gap: 0.65rem;
  }

  .site-header .page-brand {
    margin: 0;
  }

  .site-header .page-brand .logo-img {
    width: var(--header-brand-logo-width) !important;
    height: var(--header-brand-logo-height) !important;
  }

  .site-header .page-brand .logo-en {
    display: none;
  }

  .header-tagline {
    display: none;
  }

  body:not(.page-home) .logo-en {
    display: block;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(247, 243, 236, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .lang {
    margin-left: 0;
    margin-top: 0.5rem;
    justify-content: center;
  }

  .compare-static {
    grid-template-columns: 1fr;
  }

  .card-grid.four {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    column-count: 1;
  }

  .contact-columns,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    border-bottom: 1px solid var(--line-gray);
    padding-bottom: 1.25rem;
    margin-bottom: 0;
  }

  .footer-col {
    border-left: none;
    padding: 1.15rem 0 0;
  }

  .footer-col:nth-child(3),
  .footer-col:nth-child(5) {
    border-left: none;
    padding-left: 0;
  }

  .footer-col:not(:last-child) {
    border-bottom: 1px solid var(--line-gray);
    padding-bottom: 1.15rem;
  }
}
