/**
 * Wayto — 解決方案線（金色視覺）
 * 僅在「解決方案」類型頁面，以及「案例作品」3D／系統開發子頁引入；建議：
 *   <body class="wayto-has-shared-nav sol-page" data-nav-current="solutions">
 *   或 <body class="wayto-has-shared-nav sol-page cases-3d-page" …>、<body class="… cases-system-page" …>（案例子頁）
 * 須先引入 shared/layout.css（提供 --layout-max 等）。
 * 底圖 CTA：在頁內以 `#底欄區塊id.foot-cta::before { background-image: url('uploads/…'); }` 覆寫（相對該 HTML）。
 * 勿僅設 :root 的 `--sol-foot-cta-bg-image: url('uploads/…')`：變數在 shared/solutions.css 內被引用時，相對路徑會錯解成 shared/uploads/ 而破圖。
 */

:root {
  --gold: #c4a35a;
  --gold-dark: #a88b4a;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e8e8e8;
  --bg-soft: #f7f7f6;
  --white: #fff;
  /* 各方案頁可選：底欄 CTA 背景圖 */
  --sol-foot-cta-bg-image: none;
  /* 流程步驟、延伸圖示、問題領域等小圖統一尺寸（調整只改此一行） */
  --sol-ico-size: clamp(60px, 8.5vw, 92px);
  /* 方案內頁與案例作品子頁（3D、系統開發）共用 Hero 區最小高度 */
  --sol-about-hero-min-height: 540px;
}

/* 與原預覽頁相同：* 特異性低於 .nav-inner 等 layout 規則，不會壓掉導覽 padding */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

.sol-page {
  font-family: "Noto Sans TC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 15px;
}

.sol-page a {
  color: inherit;
  text-decoration: none;
}

.sol-page img {
  max-width: 100%;
  display: block;
}

.sol-page .container {
  max-width: var(--layout-max, 1320px);
  margin: 0 auto;
  padding: 0 32px;
}

/* 子頁麵包屑：解決方案總覽 / 當前方案 */
.sol-breadcrumb-bar {
  padding-top: 14px;
  padding-bottom: 0;
}

.sol-breadcrumb {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.sol-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.sol-breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.sol-breadcrumb .sol-bc-sep {
  margin: 0 0.4em;
  color: #a3a3a3;
  font-weight: 400;
}

/* 解決方案總覽：常見問題導覽區 */
.sol-faq-hub {
  padding: 72px 0;
  background: var(--bg-soft);
}

.sol-faq-hub .section-head {
  text-align: center;
}

.sol-faq-hub-links {
  list-style: none;
  max-width: 720px;
  margin: 28px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.sol-faq-hub-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sol-faq-hub-links a:hover {
  border-color: #bfdbfe;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

@media (max-width: 560px) {
  .sol-faq-hub-links {
    grid-template-columns: 1fr;
  }
}

/* 設計提案頁：案例佔位區補強 */
.sol-portfolio-stub-lead {
  margin: 0;
  line-height: 1.75;
}

.sol-portfolio-stub-link {
  margin-left: 0.35em;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink);
}

.sol-portfolio-stub-link:hover {
  color: #2563eb;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
  white-space: nowrap;
}
.btn-gold:hover {
  background: var(--gold-dark);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}
.btn-dark:hover {
  background: #333;
}

.btn-outline-gold {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 6px;
  border: 2px solid var(--gold);
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}
.btn-outline-gold:hover {
  background: #fffdf8;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-family: inherit;
}
.btn-outline-light:hover {
  border-color: #fff;
}

/* `<a class="btn-*">`：`.sol-page a { color: inherit }` 特異性 (0,1,1) 會蓋過單一 `.btn-*`，需補回字色 */
.sol-page a.btn-gold,
.sol-page a.btn-dark {
  color: #fff;
}
.sol-page a.btn-outline-gold {
  color: var(--ink);
}
.sol-page a.btn-outline-light {
  color: #fff;
}

/* Hero：全寬 + min-height；拼貼圖用 contain */
.about-hero#hero {
  margin-top: 0;
  min-height: var(--sol-about-hero-min-height);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #f5f7fa;
}

/* 案例作品子頁 main#hero：與方案內頁同一 Hero 規格（見 .about-hero#hero） */
.cases-3d-page main#hero.about-hero,
.cases-system-page main#hero.about-hero {
  margin-top: 0;
  min-height: var(--sol-about-hero-min-height);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #f5f7fa;
}

.about-hero-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #f5f7fa;
}

.about-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  display: block;
}

.about-hero-img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* 左側遮罩加強、延伸更寬，利於標題與內文在照片上閱讀 */
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.99) 8%,
    rgba(255, 255, 255, 0.97) 16%,
    rgba(255, 255, 255, 0.93) 26%,
    rgba(255, 255, 255, 0.86) 38%,
    rgba(255, 255, 255, 0.72) 50%,
    rgba(255, 255, 255, 0.52) 62%,
    rgba(255, 255, 255, 0.28) 74%,
    rgba(255, 255, 255, 0.1) 86%,
    rgba(245, 247, 250, 0) 100%
  );
}

.about-hero-left {
  position: relative;
  z-index: 2;
  max-width: var(--layout-max);
  margin: 0 auto;
  padding: 100px 80px;
  width: 100%;
}

.about-hero-inner {
  max-width: 560px;
}

.about-hero-tag {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
}

.about-hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.35;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
}

.about-hero-desc {
  font-size: 15px;
  color: #1e293b;
  line-height: 2;
  font-weight: 400;
  margin-bottom: 36px;
}

/* Hero「展場金」：頂部標籤與兩顆按鈕與展覽互動頁同色（各方案子頁可加 .about-hero--accent-exh） */
.about-hero.about-hero--accent-exh .about-hero-tag {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: #a68257;
}
.about-hero.about-hero--accent-exh .hero-actions .btn-gold {
  background: #a68257;
}
.about-hero.about-hero--accent-exh .hero-actions .btn-gold:hover {
  background: #8f6f47;
}
.about-hero.about-hero--accent-exh .hero-actions .btn-outline-gold {
  border-color: #a68257;
  color: #0a0a0a;
  background: #fff;
}
.about-hero.about-hero--accent-exh .hero-actions .btn-outline-gold:hover {
  background: #fffdf8;
  border-color: #8f6f47;
  color: #0a0a0a;
}

.about-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  #hero.about-hero .about-hero-img img {
    object-fit: cover;
    object-position: 65% center;
  }

  .about-hero-left {
    padding: 56px 24px 72px;
  }
}

@media (max-width: 600px) {
  .about-hero-left {
    padding: 48px 20px 64px;
  }
}

/* Section 共通 */
.sol-page section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 15px;
}

/* Pain：金色編號卡片 */
.pain {
  background: #f7f7f5;
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 24px;
}

@media (max-width: 900px) {
  .cards-4 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .num-card {
    padding: 18px 12px 16px;
    border-radius: 12px;
  }

  .num-card .num {
    top: 12px;
    left: 12px;
    font-size: 20px;
  }

  .num-card-visual {
    height: 96px;
    margin: 30px 0 12px;
    border-radius: 8px;
  }

  .num-card h3 {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
  }

  .num-card p {
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .num-card-files {
    gap: 4px;
    padding: 8px;
    font-size: 9px;
    min-width: 0;
  }

  .num-card-files span {
    padding: 4px 6px;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
  }

  .num-card-chat {
    gap: 4px;
    padding: 8px;
  }

  .num-card-chat .bubble {
    padding: 5px 7px;
    font-size: 9px;
    overflow-wrap: anywhere;
  }
}

.num-card {
  position: relative;
  border: 1px solid #e8e8e6;
  border-radius: 14px;
  padding: 22px 20px 26px;
  background: #fff;
  transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.num-card:hover {
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.07);
  border-color: #ddd;
}

.num-card .num {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 2;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0;
}

.num-card-visual {
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  margin: 40px 0 18px;
  background: #eceae6;
}

.num-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.num-card-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  height: 100%;
}
.num-card-split > div {
  min-height: 0;
  overflow: hidden;
}
.num-card-split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.num-card-files {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  font-size: 11px;
  font-family: ui-monospace, monospace;
  color: #555;
  background: linear-gradient(180deg, #fafafa, #f0f0ee);
}
.num-card-files span {
  padding: 6px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e0e0e0;
}
.num-card-files span.is-final {
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
  background: #fffdf6;
}

.num-card-chat {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  background: linear-gradient(165deg, #eef4ff, #f5f7fb);
}
.num-card-chat .bubble {
  max-width: 88%;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.45;
  color: #333;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.num-card-chat .bubble.alt {
  align-self: flex-end;
  background: #e8f0fe;
  border-color: #c7d7f0;
}

.num-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--ink);
}
.num-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

/* Process */
.process {
  background: #fff;
  padding: 72px 0 80px;
}

.process-split {
  display: flex;
  align-items: stretch;
  gap: 0 48px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.process-left {
  flex: 1.22;
  min-width: 0;
  padding-right: 12px;
}

.process-left h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.process-left .process-sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 26px;
  max-width: 520px;
}

.process-track {
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  background: #fafafa;
  padding: 18px 10px 20px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 2px 4px;
  overflow: hidden;
}

.p-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 2px;
}

.p-step .p-ico-img {
  width: var(--sol-ico-size);
  height: var(--sol-ico-size);
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.p-step span {
  font-size: clamp(10px, 1.65vw, 12px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  white-space: normal;
  word-break: keep-all;
}

.p-arrow {
  flex: 0 0 auto;
  align-self: center;
  color: #b0b0b0;
  font-size: 12px;
  font-weight: 300;
  padding: 0 1px;
  user-select: none;
  line-height: 1;
  flex-shrink: 0;
}

.process-right {
  flex: 1;
  min-width: 0;
  display: flex;
}

.feat-col {
  flex: 1;
  padding: 0 18px 8px;
  text-align: center;
  border-right: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feat-col:last-child {
  border-right: 0;
}

.feat-col .feat-ico-img {
  width: var(--sol-ico-size);
  height: var(--sol-ico-size);
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
}

.feat-col h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
  line-height: 1.45;
}
.feat-col p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  text-align: center;
}

@media (max-width: 900px) {
  .process-split {
    flex-direction: column;
    gap: 36px;
  }
  .process-right {
    flex-direction: column;
    padding-top: 28px;
  }
  .feat-col {
    border-right: 0;
    border-bottom: 1px solid #eee;
    padding: 20px 12px;
  }
  .feat-col:last-child {
    border-bottom: 0;
  }
  .p-arrow {
    transform: rotate(90deg);
    padding: 2px 0;
  }
  .process-track {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px 0;
    padding: 20px 16px;
  }
}

/* Service types */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 22px;
}

@media (max-width: 900px) {
  .svc-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .svc-card {
    border-radius: 10px;
  }

  .svc-card .ph {
    aspect-ratio: 1 / 0.78;
  }

  .svc-card .body {
    padding: 12px 10px 14px;
  }

  .svc-card h3 {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
  }

  .svc-card p {
    font-size: 12px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .num-card,
  .svc-card,
  .room-cell,
  .faq-item {
    min-width: 0;
  }

  .cards-4,
  .svc-grid {
    gap: 10px;
  }

  .num-card {
    padding: 16px 10px 14px;
  }

  .num-card-visual {
    height: 82px;
  }

  .num-card-files {
    gap: 3px;
    padding: 6px;
    font-size: 8px;
  }

  .num-card-files span {
    padding: 2px 4px;
    line-height: 1.2;
  }

  .svc-card .body {
    padding: 11px 9px 13px;
  }

  .svc-card .ph {
    aspect-ratio: 1 / 0.72;
  }
}

.svc-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.svc-card .ph {
  aspect-ratio: 4/3;
  background: #ddd;
}
.svc-card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.svc-card .body {
  padding: 20px 18px 22px;
}
.svc-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.svc-card p {
  font-size: 13px;
  color: var(--muted);
}

/* Estimator */
.estimator {
  background: #f0f0ed;
  border-top: 1px solid #e0e0dc;
  padding: 80px 0 100px;
}

.estimator .container {
  max-width: min(100%, 1440px);
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
}

.estimator-head {
  text-align: center;
  margin-bottom: 44px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.estimator-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.estimator-head p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

.est-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, min(400px, 32vw));
  gap: 32px 40px;
  align-items: start;
}

@media (max-width: 1024px) {
  .est-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.est-summary-sticky {
  min-width: 0;
}

.est-white-panel {
  background: #fff;
  border: 1px solid #e4e4e0;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  min-width: 0;
  overflow: hidden;
}

.est-inputs {
  display: grid;
  grid-template-columns: minmax(168px, 0.78fr) minmax(300px, 1.7fr) minmax(240px, 1fr);
  gap: 0;
  align-items: stretch;
}

@media (min-width: 1400px) {
  .est-inputs {
    grid-template-columns: 200px minmax(440px, 1fr) 288px;
  }
}

@media (max-width: 1180px) {
  .est-inputs {
    grid-template-columns: 1fr;
  }
}

.est-col {
  padding: 28px 28px 32px;
  min-width: 0;
}

@media (min-width: 1181px) {
  .est-col + .est-col {
    border-left: 1px solid #ecece8;
  }
}

@media (max-width: 1180px) {
  .est-col + .est-col {
    border-top: 1px solid #ecece8;
  }
}

.est-step-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.est-step-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #fffdf8;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.est-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.space-type-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.space-type-stack button {
  width: 100%;
  padding: 14px 14px;
  border-radius: 10px;
  border: 1px solid #d5d5d2;
  background: #fafaf8;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: 0.15s;
  text-align: center;
}
.space-type-stack button:hover {
  border-color: #b8b8b4;
  background: #fff;
}
.space-type-stack button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.est-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #f6f6f3;
  border-radius: 10px;
  border: 1px solid #eaeae6;
  font-size: 12px;
  color: #454545;
}

.est-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}

.est-legend .dot-open {
  background: #8b6914;
}
.est-legend .dot-private {
  background: #c4a574;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 14px;
}

@media (max-width: 520px) {
  .room-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

.room-cell {
  border: 1px solid #e2e2de;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fcfcfa;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  min-height: 0;
}

.room-cell input[type="checkbox"] {
  grid-row: 1 / span 2;
  align-self: center;
  width: 18px;
  height: 18px;
  accent-color: #7a5c1e;
  cursor: pointer;
  margin: 0;
}

.room-cell .rn {
  grid-column: 2;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.room-cell .rt {
  grid-column: 2;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* 選取態依賴 :has()（Safari 15.4+）；更舊瀏覽器僅核取方塊仍可操作，外框高亮可能降級 */
.room-cell:has(input:checked) {
  border-color: #c4a574;
  background: #fffdf6;
  box-shadow: inset 0 0 0 1px rgba(196, 163, 90, 0.2);
}

.room-cell:hover:not(:has(input:checked)) {
  border-color: #d0d0cc;
  background: #fafaf8;
}

.est-step3 .counter-group {
  margin-bottom: 16px;
}
.est-step3 .counter-group:last-of-type {
  margin-bottom: 0;
}

.counter-lbl-above {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 8px;
}

.est-step3 .counter-block {
  border: 1px solid #e4e4e0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 0;
  background: #fafaf8;
}

.counter-row-est {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: nowrap;
}

.counter-row-est .subp {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-dark);
  white-space: nowrap;
}

.counter-row-est .counter-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.counter-ctrl button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d0d0cc;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.counter-ctrl button:hover {
  background: #f3f3f1;
  border-color: #bbb;
}

.counter-ctrl .cv {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.est-notes {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f5f5f2;
  border-radius: 10px;
  border: 1px solid #e8e8e4;
  font-size: 12px;
  color: #5a5a5a;
  line-height: 1.7;
}
.est-notes ul {
  margin: 0;
  padding-left: 1.1em;
}
.est-notes li {
  margin-bottom: 5px;
}
.est-notes li:last-child {
  margin-bottom: 0;
}

.est-summary {
  position: static;
  width: 100%;
  background: linear-gradient(165deg, #2d2d2d 0%, #181818 100%);
  color: #fff;
  border-radius: 20px;
  padding: 26px 24px 28px;
  border: 1px solid #3a3a3a;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.est-summary .sum-h {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.est-summary-lines {
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.9;
  margin-bottom: 4px;
}

.est-summary-lines .line {
  display: flex;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0;
}
.est-summary-lines .line:last-child {
  border-bottom: none;
}
.est-summary-lines .line span:first-child {
  opacity: 0.88;
}
.est-summary-lines .line span:last-child {
  font-weight: 600;
  white-space: nowrap;
}

.est-summary-div {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 16px 0 18px;
}

.est-summary-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.est-summary-total-row .tl {
  font-size: 15px;
  font-weight: 600;
}

.est-summary-total-row .tv {
  font-size: 34px;
  font-weight: 700;
  color: #e8c96b;
  letter-spacing: -0.02em;
  line-height: 1;
}

.est-summary .btn-est-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #c9a86a 0%, #a88b4a 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: filter 0.2s, transform 0.2s;
}
.est-summary .btn-est-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.est-summary .btn-est-cta svg {
  flex-shrink: 0;
  opacity: 0.95;
}

/* FAQ */
.faq {
  background: var(--bg-soft);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}

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

details.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 16px;
}

details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-size: 18px;
  color: var(--gold);
  font-weight: 400;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item .ans {
  padding: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

/* 案例區塊佔位（較緊湊，覆蓋 .sol-page section 預設上下距） */
section.sol-portfolio-stub {
  padding: 40px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
section.sol-portfolio-stub .container {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
section.sol-portfolio-stub strong {
  color: var(--ink);
}

/* Footer CTA — 背景圖由 --sol-foot-cta-bg-image 提供 */
.sol-page .foot-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  padding: 30px 0 50px;
  text-align: left;
  background-color: #141414;
}

.foot-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--sol-foot-cta-bg-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 72%;
}

.foot-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
      to bottom,
      rgba(10, 9, 8, 0.42) 0%,
      rgba(10, 9, 8, 0.12) 30%,
      transparent 52%
    ),
    linear-gradient(
      to right,
      rgba(12, 10, 8, 0.94) 0%,
      rgba(12, 10, 8, 0.78) 28%,
      rgba(12, 10, 8, 0.45) 52%,
      rgba(12, 10, 8, 0.18) 72%,
      rgba(12, 10, 8, 0) 100%
    );
}

.foot-cta .container {
  position: relative;
  z-index: 2;
}

.foot-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 42px;
}

.foot-cta-copy {
  flex: 1 1 260px;
  min-width: 0;
  max-width: 640px;
}

.foot-cta h2 {
  font-size: clamp(22px, 3.2vw, 32px);
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.foot-cta .foot-cta-lead {
  margin: 0;
  font-size: clamp(15px, 1.8vw, 17px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.foot-cta .row {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: flex-end;
  align-items: center;
}

@media (max-width: 720px) {
  .foot-cta-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .foot-cta .row {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .sol-page .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

