/* Scope every layout change to the gallery; top content scrolls with the doors. */
.f18g-root, .f18g-root * { box-sizing: border-box; }
.f18g-root { color: #342d23; background: #f5f1e7; font: 15px/1.8 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.f18g-root :is(h1,h2,h3,p,figure) { margin: 0; }
.f18g-root a { text-decoration: none; color: inherit; }
.f18g-root button, .f18g-root select { font: inherit; touch-action: manipulation; }
.f18g-root :is(a,button,select):focus-visible { outline: 2px solid #ab8c51; outline-offset: 3px; }
.f18g-root .f18g-carousel { position: relative; background: #e9e2d5; }
.f18g-root .f18g-viewport { aspect-ratio: 16/9; overflow: hidden; touch-action: pan-y; }
.f18g-root .f18g-track { height: 100%; display: flex; transition: transform .65s ease; }
.f18g-root .f18g-slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; overflow: hidden; }
.f18g-root .f18g-slide>img { display: block; width: 100%; height: 100%; object-fit: cover; }
.f18g-root .f18g-slide:after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,#3026178c); pointer-events: none; }
.f18g-root .f18g-slide-copy { position: absolute; z-index: 1; bottom: 18px; inset-inline: 20px; color: #fff7e9; text-align: center; text-shadow: 0 2px 12px #20180c80; }
.f18g-root .f18g-slide-copy p { font-size: 10px; letter-spacing: 1px; margin-bottom: 4px; }
.f18g-root .f18g-slide-copy h2 { font: 500 clamp(15px,4.4vw,27px)/1.5 "Songti SC",serif; letter-spacing: 1px; }
.f18g-root .f18g-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 12px; background: #eae2d3; }
.f18g-root .f18g-direction { width: 34px; min-height: 44px; border: 0; background: transparent; color: #80683f; font-size: 24px; padding: 0; }
.f18g-root .f18g-dots { display: flex; align-items: center; gap: 2px; }
.f18g-root .f18g-dot { display: grid; place-items: center; width: 32px; height: 44px; padding: 0; border: 0; background: transparent; }
.f18g-root .f18g-dot:after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ac9d84; }
.f18g-root .f18g-dot.is-active:after { width: 18px; border-radius: 10px; background: #92713c; }
.f18g-root .f18g-pause { min-height: 44px; min-width: 44px; border: 0; background: transparent; color: #80683f; font-size: 11px; padding: 0 5px; }
.f18g-root .f18g-overview-content { max-width: 1080px; margin: auto; padding: 24px 16px 34px; }
.f18g-root .f18g-section-heading { margin-bottom: 20px; text-align: center; }
.f18g-root .f18g-section-heading h1, .f18g-root .f18g-section-heading h2 { font: 500 27px/1.5 "Songti SC",serif; letter-spacing: 2px; margin-top: 4px; }
.f18g-root .f18g-section-heading>p:last-child { max-width: 46em; color: #887b65; font-size: 12px; line-height: 1.9; margin: 8px auto 0; }
.f18g-root .f18g-hall-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.f18g-root .f18g-hall-card { position: relative; overflow: hidden; min-width: 0; border: 1px solid #d9cdb6; border-radius: 12px; background: #fffcf6; box-shadow: 0 5px 15px #32261409; }
.f18g-root .f18g-hall-card>img { display: block; width: 100%; aspect-ratio: 9/16; height: auto; object-fit: cover; }
.f18g-root .f18g-card-copy { padding: 11px 7px 12px; text-align: center; }
.f18g-root .f18g-card-copy h2 { font: 500 clamp(13px,3.8vw,20px)/1.5 "Songti SC",serif; white-space: nowrap; }
.f18g-root .f18g-card-copy p { color: #887b65; font-size: 10px; margin-top: 4px; }
.f18g-root .f18g-card-action { display: inline-block; font-size: 9px; color: #987844; margin-top: 8px; }
.f18g-root .f18g-breadcrumb { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 8px 16px; background: #f5f1e7; border-bottom: 1px solid #ded5c5; color: #807058; font-size: 12px; }
.f18g-root .f18g-breadcrumb a { display: flex; align-items: center; min-height: 44px; }
.f18g-root .f18g-door-content { max-width: 1080px; margin: auto; padding: 26px 16px; color: #293f35; }
.f18g-root .showroom-intro { text-align: center; }
.f18g-root .showroom-intro h1 { font: 500 31px/1.5 "Songti SC",serif; letter-spacing: 2px; }
.f18g-root .showroom-intro p:last-child { max-width: 46em; color: #708176; font-size: 13px; margin: 12px auto 0; }
.f18g-root .hall-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin: 22px 0; }
.f18g-root .hall-tabs a { display: flex; gap: 7px; align-items: center; min-height: 44px; padding: 8px 12px; border: 1px solid #dfe6d9; border-radius: 30px; background: #fff; font-size: 12px; }
.f18g-root .hall-tabs small { font-size: 10px; }
.f18g-root .hall-tabs a[aria-current="page"] { background: #245c4c; color: #fff; border-color: #245c4c; }
.f18g-root .browse-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #dfe6d9; padding: 14px 0 20px; color: #708176; font-size: 11px; }
.f18g-root .browse-bar label { display: flex; align-items: center; gap: 7px; }
.f18g-root .browse-bar select { min-height: 44px; max-width: 125px; padding: 5px 10px; background: white; border: 1px solid #dfe6d9; border-radius: 10px; }
.f18g-root .doors-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.f18g-root .door-card { min-width: 0; background: #fff; border: 1px solid #dfe6d9; border-radius: 18px; overflow: hidden; scroll-margin-top: 12px; }
.f18g-root .door-picture { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #eae6df; line-height: 0; cursor: pointer; }
.f18g-root .door-picture img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.f18g-root .zoom-tip { position: absolute; bottom: 14px; right: 14px; color: #52665a; background: #f6f7f0ec; border-radius: 30px; padding: 6px 11px; font-size: 11px; line-height: 1.5; }
.f18g-root .door-copy { padding: 22px; }
.f18g-root .door-label { display: flex; align-items: center; gap: 10px; color: #708176; font-size: 12px; margin-bottom: 10px; }
.f18g-root .door-label b { color: #a78a52; font: 25px/1.3 Georgia,serif; }
.f18g-root .door-options { display: grid; gap: 7px; margin-bottom: 17px; }
.f18g-root .door-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; background: #f8f1e4; border: 1px solid #dccaa9; border-radius: 10px; color: #725a35; font-size: 12px; }
.f18g-root .door-option strong { font: 500 19px/1.4 Georgia,serif; white-space: nowrap; }
.f18g-root .door-copy dl { display: grid; grid-template-columns: 32px 1fr; gap: 7px 12px; padding-top: 12px; border-top: 1px solid #dfe6d9; margin: 0 0 16px; font-size: 12px; }
.f18g-root .door-copy dt { color: #708176; }.f18g-root .door-copy dd { margin: 0; }
.f18g-root .appreciation-label { color: #9b895f; font-size: 10px; letter-spacing: 2px; margin-bottom: 6px; }
.f18g-root .door-appreciation h3 { font: 500 20px/1.6 "Songti SC",serif; letter-spacing: 2px; color: #425748; margin-bottom: 10px; }
.f18g-root .appreciation { color: #516758; font-size: 14px; line-height: 2; }
.f18g-root .door-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; border-top: 1px solid #dfe6d9; padding-top: 16px; }
.f18g-root .door-actions a { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 12px; border-radius: 10px; background: #eaf0e4; color: #245c4c; font-size: 12px; }
.f18g-root .door-actions small { font-size: 10px; color: #708176; }
.f18g-root .hall-end { margin-top: 30px; padding: 23px; background: #eaf0e4; border-radius: 18px; border: 1px solid #dfe6d9; }
.f18g-root .hall-end h2 { font: 500 24px/1.5 "Songti SC",serif; margin-bottom: 10px; }
.f18g-root .hall-end p { color: #708176; font-size: 12px; }
.f18g-root .hall-end a { display: inline-flex; align-items: center; min-height: 44px; background: #245c4c; color: #fff; padding: 8px 16px; border-radius: 12px; font-size: 13px; margin-top: 10px; }
.f18g-root .image-viewer { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain; scroll-behavior: auto; -webkit-overflow-scrolling: touch; border: 0; border-radius: 0; background: #f6f7f0; color: #293f35; }
.f18g-root .image-viewer::backdrop { background: #14291fe0; }
.f18g-root .viewer-close { position: fixed; top: max(12px,env(safe-area-inset-top)); right: max(12px,env(safe-area-inset-right)); z-index: 3; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #fff9; border-radius: 50%; background: #f6f7f0ed; color: #293f35; box-shadow: 0 3px 12px #0002; font: 30px/1 sans-serif; }
.f18g-root .viewer-image { display: block; width: 100%; height: auto; max-width: none; max-height: none; object-fit: contain; background: #e8e4dd; }
.f18g-root .viewer-copy { max-width: 900px; margin: auto; padding: 24px 18px; font-size: 14px; }
.f18g-root .viewer-copy>#viewer-title { font: 500 23px/1.5 "Songti SC",serif; margin: 0 0 22px; letter-spacing: 1px; }
.f18g-root .viewer-detail.door-copy { padding: 0; }
.f18g-root .viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 900px; margin: auto; padding: 0 18px max(24px,env(safe-area-inset-bottom)); font-size: 12px; }
.f18g-root .viewer-controls button { min-height: 44px; padding: 9px 12px; border: 1px solid #dfe6d9; border-radius: 10px; background: #fff; }
.f18g-root .viewer-controls button:disabled { opacity: .45; }
.f18g-root .door-copy dl { grid-template-columns: 60px minmax(0,1fr); }
.f18g-root .door-copy dd { overflow-wrap: anywhere; }
.f18g-root .door-specs h2 { font: inherit; line-height: inherit; margin: 0; letter-spacing: 0; }
.f18g-root .door-pricing { margin-top: 22px; padding-top: 18px; border-top: 1px solid #dfe6d9; }
.f18g-root .door-pricing .door-options { margin-bottom: 0; }
.f18g-root .door-option>span { min-width: 0; }
.f18g-root .door-option>strong { margin-left: auto; text-align: right; flex: none; }
@media(min-width:701px) {
  .f18g-root .f18g-slide-copy { bottom: 36px; inset-inline: 36px; }
  .f18g-root .f18g-slide-copy p { font-size: 13px; }
  .f18g-root .f18g-slide-copy h2 { font-size: 32px; }
  .f18g-root .f18g-overview-content { padding: 34px 30px 40px; }
  .f18g-root .f18g-hall-cards { gap: 20px; }.f18g-root .f18g-card-copy { padding: 20px; }
  .f18g-root .f18g-card-copy p { font-size: 13px; }.f18g-root .f18g-card-action { font-size: 12px; }
  .f18g-root .f18g-door-content { padding: 30px; }.f18g-root .doors-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}


@media(prefers-reduced-motion:reduce) { .f18g-root * { transition: none !important; scroll-behavior: auto !important; } }

/* Use a compact stacked viewer on phones and a wider two-column viewer on desktops. */
.f18g-root .image-viewer { width: min(420px, calc(100vw - 24px), calc(56.25dvh - 13.5px)); height: auto; aspect-ratio: 9/16; max-width: none; max-height: calc(100dvh - 24px); margin: auto; border: 1px solid #d9dfd3; border-radius: 16px; background: #f6f7f0; overflow: hidden; box-shadow: 0 18px 60px #07170c66; }
.f18g-root .image-viewer[open] { display: grid; grid-template-rows: 49% minmax(0,1fr) auto; }
.f18g-root .viewer-image { width: 100%; height: 100%; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; border-bottom: 1px solid #dfe6d9; background: #e8e4dd; }
.f18g-root .viewer-close { position: absolute; top: 7px; right: 7px; width: 36px; height: 36px; font-size: 25px; }
.f18g-root .viewer-copy { min-height: 0; max-width: none; width: 100%; margin: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 8px 12px 8px; font-size: 11px; }
.f18g-root .viewer-copy:focus-visible { outline: 2px solid #245c4c; outline-offset: -3px; }
.f18g-root .viewer-copy>#viewer-title { font: 500 15px/1.35 "Songti SC",serif; letter-spacing: .3px; margin: 0 0 5px; }
.f18g-root .viewer-detail.door-copy { padding: 0; }
.f18g-root .viewer-detail.door-copy dl { grid-template-columns: 32px minmax(0,1fr); gap: 1px 7px; margin: 0 0 5px; padding-top: 4px; font-size: 11px; line-height: 1.35; }
.f18g-root .viewer-detail .door-appreciation { display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: baseline; column-gap: 6px; margin-bottom: 5px; }
.f18g-root .viewer-detail .appreciation-label { margin: 0; font-size: 10px; letter-spacing: .3px; }
.f18g-root .viewer-detail .door-appreciation h3 { margin: 0; font: 500 14px/1.35 "Songti SC",serif; letter-spacing: .3px; }
.f18g-root .viewer-detail .appreciation { grid-column: 1/-1; margin: 2px 0 0; font-size: 11px; line-height: 1.45; }
.f18g-root .viewer-detail.door-copy .door-dimensions { margin-top: 5px; margin-bottom: 5px; padding-top: 4px; }
.f18g-root .viewer-detail .door-pricing { margin-top: 5px; padding-top: 5px; }
.f18g-root .viewer-detail .door-options { gap: 3px; margin: 0; }
.f18g-root .viewer-detail .door-option { padding: 3px 6px; font-size: 11px; line-height: 1.3; border-radius: 7px; }
.f18g-root .viewer-detail .door-option strong { font-size: 14px; line-height: 1.3; }
.f18g-root .viewer-controls { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr) auto; align-items: center; gap: 4px; max-width: none; width: 100%; min-height: 52px; margin: 0; padding: 4px 8px; border-top: 1px solid #dfe6d9; background: #f6f7f0; box-shadow: 0 -3px 12px #14291f12; }
.f18g-root .viewer-controls>* { min-width: 0; }
.f18g-root .viewer-controls button,.f18g-root .viewer-controls .viewer-consult { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 5px 3px; border: 1px solid #dfe6d9; border-radius: 8px; background: #fff; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.f18g-root .viewer-controls .viewer-consult { background: #eaf0e4; color: #245c4c; border-color: #d2dfce; }
.f18g-root .viewer-controls button:disabled { opacity: .45; cursor: default; }
.f18g-root .viewer-controls span { justify-self: end; text-align: right; font-size: 11px; line-height: 1.2; white-space: nowrap; }
@media(max-width:700px) { .f18g-root .viewer-copy { padding: 8px 10px; } .f18g-root .viewer-controls { padding: 4px 6px; gap: 3px; } .f18g-root .viewer-close { top: 6px; right: 6px; } }
@media(max-width:340px) { .f18g-root .viewer-controls button,.f18g-root .viewer-controls .viewer-consult { font-size: 10px; } .f18g-root .viewer-controls span { font-size: 10px; } }

@media (max-width: 700px) {
  .f18g-root .viewer-copy > #viewer-title {
    margin-bottom: 8px;
    text-align: center;
  }

  .f18g-root .viewer-detail.door-copy .door-specs,
  .f18g-root .viewer-detail .door-appreciation,
  .f18g-root .viewer-detail .door-appreciation > :is(p, h3) {
    font: 400 22px/1.35 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: normal;
  }

  .f18g-root .viewer-detail.door-copy .door-specs {
    grid-template-columns: minmax(3em, max-content) minmax(0, 1fr);
    gap: 5px 8px;
  }

  .f18g-root .viewer-detail .door-appreciation {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    margin-block: 7px;
  }

  .f18g-root .viewer-detail .door-appreciation .appreciation-label {
    color: #708176;
  }

  .f18g-root .viewer-detail .door-appreciation .appreciation {
    margin: 0;
  }

  .f18g-root .viewer-detail.door-copy .door-dimensions {
    grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr);
    align-items: center;
    column-gap: 6px;
  }

  html[lang="en"] .f18g-root .viewer-detail.door-copy .door-dimensions {
    grid-template-columns: repeat(4, max-content);
    justify-content: space-between;
    column-gap: 3px;
  }

  .f18g-root .viewer-detail .door-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .f18g-root .viewer-detail .door-option {
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    padding: 6px 8px;
    overflow-wrap: anywhere;
  }

  .f18g-root .viewer-detail .door-option > strong {
    margin-left: 0;
  }
}

@media (min-width: 320px) and (max-width: 360px) {
  html[lang="en"] .f18g-root .viewer-detail.door-copy .door-dimensions {
    margin-inline: -6px;
    letter-spacing: -.035em;
  }
}

@media (max-width: 319px), (max-width: 700px) and (max-height: 510px) {
  html[lang="en"] .f18g-root .viewer-detail.door-copy .door-dimensions {
    grid-template-columns: repeat(4, minmax(0, auto));
  }
}

@media (min-width: 701px) {
  .f18g-root .image-viewer {
    width: min(1480px, calc(100vw - 48px));
    height: min(860px, calc(100dvh - 48px));
    aspect-ratio: auto;
  }

  .f18g-root .image-viewer[open] {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }

  .f18g-root .viewer-image {
    grid-column: 1;
    grid-row: 1 / -1;
    border-right: 1px solid #dfe6d9;
    border-bottom: 0;
  }

  .f18g-root .viewer-copy {
    grid-column: 2;
    grid-row: 1;
    padding: clamp(28px, 4vw, 56px) clamp(20px, 3.4vw, 48px) 24px;
    font-size: 15px;
  }

  .f18g-root .viewer-copy > #viewer-title {
    margin: 0 28px 22px 0;
    font-size: clamp(22px, 2.5vw, 34px);
  }

  .f18g-root .viewer-detail.door-copy dl {
    grid-template-columns: minmax(70px, 22%) minmax(0, 1fr);
    gap: 7px 14px;
    margin: 0 0 18px;
    padding-top: 13px;
    font-size: 14px;
    line-height: 1.6;
  }

  .f18g-root .viewer-detail .door-appreciation {
    display: block;
    margin-bottom: 18px;
  }

  .f18g-root .viewer-detail .appreciation-label {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .f18g-root .viewer-detail .door-appreciation h3 {
    margin-bottom: 8px;
    font-size: 22px;
  }

  .f18g-root .viewer-detail .appreciation {
    font-size: 15px;
    line-height: 1.8;
  }

  .f18g-root .viewer-detail .door-pricing {
    margin-top: 16px;
    padding-top: 16px;
  }

  .f18g-root .viewer-detail .door-options {
    gap: 9px;
  }

  .f18g-root .viewer-detail .door-option {
    padding: 9px 12px;
    font-size: 14px;
    line-height: 1.5;
  }

  .f18g-root .viewer-detail .door-option strong {
    font-size: 19px;
  }

  .f18g-root .viewer-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .f18g-root .viewer-controls {
    grid-column: 2;
    grid-row: 2;
    gap: 8px;
    padding: 12px clamp(12px, 2vw, 24px);
    box-shadow: none;
  }

  .f18g-root .viewer-controls button,
  .f18g-root .viewer-controls .viewer-consult {
    padding: 6px 4px;
    font-size: 13px;
  }
}

/* Door appreciation: label, theme and copy flow together without isolated rows. */
@media (max-width: 700px) {
  .f18g-root .viewer-detail .door-appreciation {
    display: block;
    margin: 7px 0;
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: normal;
  }
  .f18g-root .viewer-detail .door-appreciation > :is(.appreciation-label, h3, .appreciation) {
    display: inline;
    margin: 0;
    font: inherit;
    letter-spacing: inherit;
  }
  .f18g-root .viewer-detail .appreciation-label {
    color: #708176;
    margin-right: .35em;
  }
  .f18g-root .viewer-detail .appreciation-label::after { content: "："; }
  .f18g-root .viewer-detail .door-appreciation h3 {
    color: #334e42;
    font-weight: 650;
    margin-right: .35em;
  }
  .f18g-root .viewer-detail .door-appreciation h3::after { content: "："; }
  .f18g-root .viewer-detail .appreciation { color: #465a50; }
}
