/* ==========================================================================
   唐岩設計 — components.css
   首頁輪播、據點列、服務卡、作品卡、篩選、流程、資料表、CTA、表單、Lightbox
   ========================================================================== */

/* --- 首頁滿版輪播 -------------------------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s var(--ease), visibility 1.2s var(--ease);
}
.hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7s linear;
}
.hero__slide.is-active .hero__img { transform: scale(1); }

/* 中間兩個色階刻意壓深（.34/.38）：字幕垂直置中，正好落在漸層最淡的位置，
   原本的 .16/.20 讓白字對比只有約 3:1。 */
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(28, 26, 23, .46) 0%,
    rgba(28, 26, 23, .34) 34%,
    rgba(28, 26, 23, .38) 62%,
    rgba(28, 26, 23, .62) 100%);
}

.hero__caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 var(--gut);
  pointer-events: none;
}
.hero__cat {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .42em;
  text-transform: uppercase;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .55);
}
.hero__title {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: .34em;
  color: rgba(255, 255, 255, .92);
}
.hero__caption > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease) .25s, transform .9s var(--ease) .25s;
}
.hero__caption.is-shown > * { opacity: 1; transform: none; }
/* 不要加 .hero__slide.is-active ~ .hero__caption 這種 sibling 選擇器：
   字幕永遠排在 slide 後面，條件恆真，移除 .is-shown 根本不會淡出。 */

/* 箭頭 */
.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 54px; height: 54px;
  margin-top: -27px;
  display: grid;
  place-items: center;
  color: #fff;
  opacity: .68;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero__arrow:hover { opacity: 1; color: #fff; }
.hero__arrow--prev { left: 18px; }
.hero__arrow--next { right: 18px; }
.hero__arrow--prev:hover { transform: translateX(-4px); }
.hero__arrow--next:hover { transform: translateX(4px); }
.hero__arrow svg { width: 26px; height: 26px; }

/* 暫停 / 播放（WCAG 2.2.2：自動播放內容必須提供停止機制） */
.hero__pause {
  position: absolute;
  left: 34px; bottom: 132px;
  z-index: 4;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  color: #fff;
  opacity: .8;
  transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
}
.hero__pause:hover { opacity: 1; color: #fff; background: rgba(255, 255, 255, .16); }
.hero__pause svg { width: 13px; height: 13px; }

/* 頁碼 01 / 04 */
.hero__count {
  position: absolute;
  right: 34px;
  bottom: 128px;
  z-index: 4;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .2em;
  color: rgba(255, 255, 255, .8);
}
.hero__count b { font-weight: 400; font-size: 22px; color: #fff; }
.hero__count span { margin: 0 6px; opacity: .5; }

/* 向下箭頭 */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 118px;
  z-index: 4;
  transform: translateX(-50%);
  color: #fff;
  opacity: .8;
  animation: bob 2.4s var(--ease) infinite;
}
.hero__scroll svg { width: 28px; height: 28px; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 9px); }
}

/* --- 首頁底部據點資訊列（承襲參考站的分公司列形制）------------------------ */

.locbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  background: rgba(250, 248, 245, .94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.locbar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.locbar__places { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.locbar__place {
  position: relative;
  font-size: 14px;
  letter-spacing: .12em;
  padding-bottom: 5px;
}
.locbar__place::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
}
.locbar__place--muted { color: var(--ink-soft); }
.locbar__place--muted::after { background: var(--line); }

.locbar__right { display: flex; align-items: center; gap: 22px; }
.locbar__tel { display: flex; align-items: baseline; gap: 12px; }
.locbar__tel small { font-size: 12.5px; color: var(--ink-soft); letter-spacing: .12em; }
.locbar__tel a {
  font-family: var(--font-en);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* --- 圖文並列（首頁品牌敘述）--------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__body .sect-head { text-align: left; margin-bottom: 30px; }
.split__body .sect-head__zh::after { left: 0; transform: none; }
.split__body p { color: var(--ink-soft); margin-bottom: 18px; }
.split__body p:last-of-type { margin-bottom: 32px; }

/* --- 三大服務／理念卡 ---------------------------------------------------- */

.pillar { text-align: center; padding: 0 12px; }
/* 用 --accent-dk 而非 --accent：這些小字常出現在 .section--alt 上，
   --accent 在該底色只有 4.2:1，深一階才過 AA。 */
.pillar__no {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--accent-dk);
}
.pillar__title {
  margin: 12px 0 14px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: .16em;
}
.pillar__title::after {
  content: "";
  display: block;
  width: 28px; height: 2px;
  background: var(--line);
  margin: 14px auto 0;
}
.pillar__text { font-size: 14.5px; color: var(--ink-soft); line-height: 2.1; }

/* 分類卡（住宅／商業／辦公）*/
.catcard { position: relative; display: block; overflow: hidden; background: var(--ink); }
.catcard img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 1.1s var(--ease), opacity var(--dur) var(--ease);
  opacity: .86;
}
.catcard:hover img { transform: scale(1.06); opacity: .7; }
.catcard__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px 26px;
  color: #fff;
  background: linear-gradient(to top, rgba(28, 26, 23, .72), transparent);
}
.catcard__en {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  opacity: .8;
}
.catcard__zh { display: block; margin-top: 6px; font-size: 20px; letter-spacing: .18em; }

/* --- 服務項目圓形圖示卡 -------------------------------------------------- */

.svc { text-align: center; }
.svc__icon {
  width: 82px; height: 82px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform var(--dur) var(--ease);
}
.svc:hover .svc__icon { transform: translateY(-5px); }
.svc__icon svg { width: 34px; height: 34px; }
.svc__title { font-size: 16px; font-weight: 500; letter-spacing: .12em; margin-bottom: 8px; }
.svc__text { font-size: 13.5px; color: var(--ink-soft); line-height: 1.95; }

/* --- 篩選 pill ----------------------------------------------------------- */

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 46px;
}
.filter {
  min-height: 42px;
  padding: 0 26px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--ink-soft);
  transition: all var(--dur) var(--ease);
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* --- 作品卡 -------------------------------------------------------------- */

.work {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.work:hover {
  transform: translateY(-4px);
  border-color: #D8CFC1;
  box-shadow: 0 16px 40px rgba(28, 26, 23, .09);
  color: inherit;
}
/* 卡片內部都是 <span>（<button> 只接受 phrasing content），所以要明確轉成 block，
   否則 position/overflow/padding 在 inline 盒上不會如預期生效。 */
.work__figure { display: block; position: relative; overflow: hidden; background: var(--bg-alt); }
.work__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.work:hover .work__figure img { transform: scale(1.05); }
.work__count {
  position: absolute;
  right: 12px; bottom: 12px;
  padding: 3px 10px;
  background: rgba(28, 26, 23, .66);
  color: #fff;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .12em;
}
.work__body { display: block; padding: 20px 22px 22px; }
.work__title { display: block; font-size: 17px; font-weight: 500; letter-spacing: .1em; }
.work__title small {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: .08em;
}
.work__meta {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: .06em;
}
.work__tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.work__tags span { white-space: nowrap; }
.work__tags span::before { content: "#"; opacity: .5; }

.works-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--ink-soft);
}

/* --- 作業流程 ------------------------------------------------------------ */

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; }
.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.step__no {
  flex: none;
  width: 40px; height: 40px;
  border: 1px solid var(--accent-dk);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--accent-dk);
}
.step__title { font-size: 16px; font-weight: 500; letter-spacing: .1em; margin-bottom: 6px; }
.step__text { font-size: 14px; color: var(--ink-soft); line-height: 2; }

/* 首頁的四步精簡版 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.flow__item { text-align: center; position: relative; }
.flow__item::after {
  content: "";
  position: absolute;
  top: 20px; right: -15px;
  width: 30px; height: 1px;
  background: var(--line);
}
.flow__item:last-child::after { content: none; }
.flow__no {
  width: 42px; height: 42px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 14px;
}
.flow__title { font-size: 16px; font-weight: 500; letter-spacing: .14em; margin-bottom: 8px; }
.flow__text { font-size: 13.5px; color: var(--ink-soft); }

/* --- 公司登記資料表 ------------------------------------------------------ */

.datatable {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--line);
}
.datatable th, .datatable td {
  text-align: left;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.datatable tr:last-child th, .datatable tr:last-child td { border-bottom: 0; }
.datatable th {
  width: 190px;
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--bg-alt);
  letter-spacing: .1em;
}
.datatable td { letter-spacing: .04em; }
.datatable .num { font-family: var(--font-en); letter-spacing: .08em; }

.source-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* 41 項所營事業摺疊清單 */
.scope { margin-top: 34px; border: 1px solid var(--line); background: #fff; }
.scope > summary {
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: .1em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.scope > summary::-webkit-details-marker { display: none; }
.scope > summary::after {
  content: "＋";
  color: var(--accent);
  font-size: 18px;
  flex: none;
}
.scope[open] > summary::after { content: "－"; }
.scope > summary:hover { color: var(--accent); }
.scope__body { padding: 4px 22px 22px; border-top: 1px solid var(--line); }
.scope__list {
  columns: 3;
  column-gap: 30px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 2.1;
  margin-top: 16px;
}
.scope__list li { break-inside: avoid; }
.scope__list code {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--accent);
  margin-right: 8px;
}

/* --- 常見問題 ------------------------------------------------------------ */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.7;
  list-style: none;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after {
  content: "＋";
  flex: none;
  color: var(--accent-dk);
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}
.faq__item[open] > summary::after { content: "－"; }
.faq__item > summary:hover { color: var(--accent-dk); }
.faq__answer {
  padding: 0 4px 26px;
  max-width: 62em;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2.05;
}
.faq__answer p { margin-bottom: 14px; }
.faq__answer p:last-child { margin-bottom: 0; }
.faq__answer a { color: var(--accent-dk); border-bottom: 1px solid var(--line); }
.faq__answer ul { margin: 4px 0 14px; }
.faq__answer li { padding-left: 1.1em; position: relative; }
.faq__answer li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--accent);
}

@media (max-width: 768px) {
  .faq__item > summary { font-size: 15.5px; padding: 18px 2px; gap: 14px; }
  .faq__answer { font-size: 14.5px; padding: 0 2px 22px; }
}

/* --- CTA 色帶 ------------------------------------------------------------ */

.cta {
  position: relative;
  padding: 92px 0;
  text-align: center;
  overflow: hidden;
  background: var(--ink);
}
.cta__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .34;
}
.cta__inner { position: relative; z-index: 1; color: #fff; }
.cta__zh { font-size: 26px; font-weight: 500; letter-spacing: .2em; }
.cta__text { margin: 16px auto 32px; max-width: 560px; color: rgba(255, 255, 255, .76); font-size: 15px; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* --- 聯絡：主要轉換按鈕 -------------------------------------------------- */

/* 三張聯絡方式（電話／Email／LINE）。auto-fit 讓它在桌機排一列、窄螢幕自己折。
   minmax 給到 280px 是為了讓 Email 那串字不會被擠到換行。 */
.reach { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.reach__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.reach__item:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(28, 26, 23, .07);
  color: inherit;
}
.reach__icon {
  flex: none;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
}
.reach__icon svg { width: 24px; height: 24px; }
/* flex 子項預設 min-width:auto，長字串（Email）撐開後會把卡片推到超出容器 */
.reach__item > div { min-width: 0; }
.reach__label { font-size: 13px; color: var(--ink-soft); letter-spacing: .16em; }
.reach__value {
  font-family: var(--font-en);
  font-size: 25px;
  letter-spacing: .06em;
  color: var(--ink);
  line-height: 1.4;
}
.reach__value--sm { font-size: 19px; overflow-wrap: anywhere; }

/* --- 社群圖示列 ----------------------------------------------------------- */

.social { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.social__link {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.social__link svg { width: 18px; height: 18px; }
.social__link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 頁尾是深底，圖示要反過來 */
.footer .social__link { border-color: rgba(250, 248, 245, .28); color: rgba(250, 248, 245, .72); }
.footer .social__link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.social--label { gap: 16px; margin-top: 26px; justify-content: center; }
.social--label .social__caption {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: .12em;
}

/* --- LINE 加入好友（QR + 按鈕）------------------------------------------- */

.lineblock {
  margin-top: 22px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 30px;
}
.lineblock__qr {
  flex: none;
  width: 132px; height: 132px;
  border: 1px solid var(--line);
}
.lineblock__body { min-width: 0; }
.lineblock__title { font-size: 17px; font-weight: 500; letter-spacing: .14em; margin-bottom: 8px; }
.lineblock__text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 2;
  margin-bottom: 18px;
}

@media (max-width: 560px) {
  .lineblock { flex-direction: column; align-items: flex-start; gap: 22px; padding: 24px; }
  .lineblock__qr { width: 120px; height: 120px; }
}

/* --- 表單 ---------------------------------------------------------------- */

.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field > label { font-size: 14px; letter-spacing: .1em; }
.field > label .req { color: var(--accent); margin-left: 4px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  font-size: 15px;
  transition: border-color var(--dur) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.9; }
.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236F6961' stroke-width='1.4' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); outline: none; }
.field input:user-invalid,
.field textarea:user-invalid { border-color: #C0492E; }

.form__note { grid-column: 1 / -1; font-size: 13px; color: var(--ink-soft); }
.form__actions { grid-column: 1 / -1; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.form__status { font-size: 14px; color: var(--accent); }

/* --- 聯絡資訊卡 + 地圖 --------------------------------------------------- */

.infocard { border: 1px solid var(--line); background: #fff; padding: 34px; }
.infocard__title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .16em;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.infolist { display: grid; gap: 18px; }
.infolist dt {
  font-family: var(--font-en);
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.infolist dd { margin: 0; font-size: 15px; line-height: 1.9; }
.infolist dd a[href^="tel:"], .infolist dd a[href^="mailto:"] { font-family: var(--font-en); letter-spacing: .05em; }

/* 注意：不要對這個 iframe 套 CSS filter。對跨網域 iframe 加 filter 會強制它
   進入獨立合成層，實測會讓 Google Maps 的 frame 直接崩潰、變成一片空白。 */
.map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
}

/* --- Lightbox ------------------------------------------------------------ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(20, 18, 16, .95);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  color: #fff;
}
.lightbox__title { font-size: 17px; letter-spacing: .14em; }
.lightbox__title small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .08em;
}
.lightbox__close { color: #fff; padding: 4px 8px; font-size: 13px; letter-spacing: .2em; }
.lightbox__close:hover { color: var(--accent); }

.lightbox__stage {
  flex: 1;
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 70px 12px;
  min-height: 0;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  color: #fff;
  opacity: .7;
}
.lightbox__nav:hover { opacity: 1; color: #fff; }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

.lightbox__foot {
  padding: 14px 26px 24px;
  text-align: center;
  color: rgba(255, 255, 255, .7);
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .2em;
}

/* --- 回到頂端 ------------------------------------------------------------ */

.gotop {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 70;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--dur) var(--ease);
}
.gotop.is-shown { opacity: 1; visibility: visible; transform: none; }
.gotop:hover { background: var(--accent); color: #fff; }
.gotop svg { width: 18px; height: 18px; }

/* --- RWD ----------------------------------------------------------------- */

@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .flow__item:nth-child(2)::after { content: none; }
  .scope__list { columns: 2; }
  .reach { grid-template-columns: 1fr; }
  .hero__count { bottom: 150px; }
  .hero__pause { bottom: 152px; }
  .hero__scroll { bottom: 140px; }
}

@media (max-width: 768px) {
  .hero { height: 100svh; min-height: 480px; }
  .hero__cat { font-size: 11px; letter-spacing: .3em; }
  .hero__title { font-size: 14px; letter-spacing: .24em; }
  .hero__arrow { width: 42px; height: 42px; }
  .hero__arrow--prev { left: 2px; }
  .hero__arrow--next { right: 2px; }
  .hero__count { right: 20px; bottom: 176px; }
  .hero__count b { font-size: 18px; }
  .hero__pause { left: 20px; bottom: 174px; width: 34px; height: 34px; }
  .hero__scroll { display: none; }

  .locbar__inner { padding: 14px var(--gut); gap: 12px; justify-content: center; }
  .locbar__places { gap: 16px; justify-content: center; }
  .locbar__place { font-size: 13px; }
  .locbar__tel a { font-size: 20px; }

  /* 窄螢幕左右兩欄會互相擠到換行（「主臥」被拆成兩行、標籤疊兩層），改成上下堆疊 */
  .work__meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .work__tags { justify-content: flex-start; }

  .flow { grid-template-columns: 1fr; }
  .flow__item::after { content: none; }
  .scope__list { columns: 1; }
  .form { grid-template-columns: 1fr; }
  .datatable th, .datatable td { padding: 13px 15px; font-size: 14px; }
  .datatable th { width: 118px; }
  .infocard { padding: 26px 22px; }
  .cta { padding: 66px 0; }
  .cta__zh { font-size: 21px; }
  .lightbox__stage { padding: 0 12px 12px; }
  .lightbox__nav--prev { left: -2px; }
  .lightbox__nav--next { right: -2px; }
}

@media (max-width: 480px) {
  .locbar__right { width: 100%; justify-content: center; }
  .reach__item { padding: 22px; gap: 16px; }
  /* 用 :not() 排除 --sm，否則這條會蓋掉 Email 的縮小字級，在 375px 以下溢出 */
  .reach__value:not(.reach__value--sm) { font-size: 21px; }
  .reach__value--sm { font-size: 17px; }
}
