/* 吉安貨櫃網站：鐵皮橘（logo 的橘色）＋黑＋白。目標讀者 35 歲以上，字大、按鈕大、一路往下滑。 */
:root {
  --orange: #C64A2C;
  --orange-shadow: #B84428;
  --orange-light: #CF5433;
  --orange-deep: #A83C22;
  --ink: #1B1B1B;
  --muted: #4A4A4A;
  --paper: #F3F2EF;
  --line: #DAD6CF;
  --open: #2E7D4F;
  --line-green: #0A7F3A;
  --gut: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 18px/1.75 "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* 中文斷行：一行一個 .ln，詞組 .ph 不會被切開 */
.ln { display: block; }
.ph { display: inline-block; }
.grp { display: block; }
.grp + .grp { margin-top: .8em; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #000; color: #fff; padding: 10px 14px; }
.skip:focus { left: 8px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: clamp(56px, 8vw, 100px) 0; }
.sec-head { margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; }
.sec-head p { margin-top: 10px; color: var(--muted); }

/* 按鈕：至少 54px 高，手指好按 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 24px;
  font-weight: 700; font-size: 19px; line-height: 1.3; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-black { background: #000; color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-line { background: var(--line-green); color: #fff; }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-black:hover { background: #333; }
.btn-outline:hover { background: rgba(0, 0, 0, .06); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 頁首 ---------- */
.top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.top-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px var(--gut); }
.brand img { height: 44px; width: auto; }
.nav { display: none; gap: 26px; margin-left: auto; font-weight: 500; font-size: 17px; }
.nav a { text-decoration: none; padding: 8px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; white-space: nowrap; color: #666; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.status.is-open { color: var(--open); }
.s-long { display: none; }
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; min-height: 44px; padding: 0 10px;
  border: 2px solid var(--ink); font-weight: 700; font-size: 15px; text-decoration: none;
}
@media (min-width: 640px) { .s-short { display: none; } .s-long { display: inline; } }
@media (min-width: 1000px) { .nav { display: flex; } .status { margin-left: 0; } }

/* ---------- 首頁大圖：一片橘色貨櫃鐵皮 ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); min-height: min(84vh, 760px); } }
.hero-panel {
  background: repeating-linear-gradient(90deg,
    var(--orange) 0 26px, var(--orange-shadow) 26px 34px,
    var(--orange) 34px 60px, var(--orange-light) 60px 68px);
  color: #fff;
  padding: clamp(40px, 7vw, 96px) clamp(20px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero h1 { color: #000; font-weight: 900; font-size: clamp(46px, 9vw, 104px); line-height: 1.06; }
.lang-en .hero h1 { font-size: clamp(40px, 6.4vw, 84px); line-height: 1.08; }
.stanza { margin-top: 28px; font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; max-width: 32em; }
.hero .cta { margin-top: 30px; }
.hero .btn-outline { color: #fff; }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .12); }
.hero-photo { margin: 0; min-height: 300px; background: #ddd; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* 貨櫃門上的噴漆字 */
.marking { background: #000; color: #fff; }
.marking .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 36px; padding-top: 22px; padding-bottom: 22px; }
.codes { display: flex; gap: 28px; }
.code { font-family: "Big Shoulders Stencil Display", "Noto Sans TC", sans-serif; font-weight: 800; font-size: clamp(40px, 5vw, 62px); line-height: 1; color: var(--orange-light); }
.marking p { font-weight: 700; font-size: clamp(18px, 1.9vw, 22px); }
@media (min-width: 1000px) { .marking p { margin-left: auto; } }

/* ---------- 怎麼跟我們買（三個步驟） ---------- */
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 860px) { .steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { border: 3px solid #000; padding: 22px 24px 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: start; }
.step-n { grid-row: span 2; font-family: "Big Shoulders Stencil Display", sans-serif; font-weight: 800; font-size: 64px; line-height: .9; color: var(--orange); }
.step h3 { font-size: 22px; font-weight: 900; padding-top: 4px; }
.step p { color: var(--muted); }

/* ---------- 作品 ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 860px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: #fff; border: 2px solid var(--line); }
.card a:hover { border-color: #000; }
.card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.card-title { font-weight: 900; font-size: 19px; line-height: 1.35; text-wrap: balance; }
/* 手機兩欄的卡片比較窄：字小一點，讓「高規格民宿與餐廳」這種八個字的名字一行放得下，不會剩一個字掉到下一行 */
@media (max-width: 520px) { .card-title { font-size: 17px; } .card-body { padding: 10px 10px 12px; } }
.card-more { margin-top: auto; color: var(--orange-deep); font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }
.badge { align-self: flex-start; background: var(--orange); color: #fff; font-size: 14px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.see-all { margin-top: 30px; display: flex; justify-content: center; }

/* ---------- 服務項目 ---------- */
.services { background: var(--paper); }
.svc { display: grid; gap: 22px 48px; margin: 0; }
@media (min-width: 760px) { .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc div { border-left: 6px solid var(--orange); padding-left: 16px; }
.svc dt { font-weight: 900; font-size: 21px; }
.svc dd { margin: 4px 0 0; color: var(--muted); }

/* ---------- 貨櫃尺寸 ---------- */
.spec-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spec { border: 3px solid #000; padding: 22px 24px; }
.spec-code { font-family: "Big Shoulders Stencil Display", sans-serif; font-weight: 800; font-size: 56px; line-height: 1; color: var(--orange); margin-bottom: 6px; }
.spec h3 { font-size: 22px; font-weight: 900; }
.spec dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; margin: 12px 0 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-variant-numeric: tabular-nums; }
.note { margin-top: 16px; color: var(--muted); font-size: 16px; }

/* ---------- 常見問題 ---------- */
.faq-list { max-width: 860px; }
.faq details { border: 3px solid #000; background: #fff; }
.faq details + details { margin-top: -3px; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 20px; font-weight: 700; font-size: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 24px; line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 20px; max-width: 40em; }

/* ---------- 一句話 ---------- */
.about { background: #000; color: #fff; }
.about p { font-size: clamp(22px, 2.8vw, 34px); font-weight: 700; line-height: 1.5; max-width: 24em; }

/* ---------- 聯絡我們 ---------- */
.contact { background: var(--orange); color: #fff; }
.contact-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.shop { margin: 0; }
.shop img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 4px solid #000; }
.contact h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 900; }
.addr { margin-top: 12px; font-size: 21px; font-weight: 700; }
.phones { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.phones li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.phones .who { min-width: 6.5em; font-weight: 500; }
.phones a { font-weight: 900; font-size: clamp(26px, 3vw, 34px); text-decoration: none; font-variant-numeric: tabular-nums; }
.phones a:hover { text-decoration: underline; }
.hours { margin-top: 18px; }
.contact .cta { margin-top: 24px; }

/* ---------- 頁尾 ---------- */
.foot { color: var(--muted); font-size: 15px; padding: 28px 0 32px; border-top: 1px solid var(--line); }
.foot .wrap { display: grid; gap: 4px; }
.foot strong { color: var(--ink); }

/* ---------- 手機底部固定：打電話／加 LINE ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  background: #fff; border-top: 1px solid var(--line);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.bar .btn { min-height: 58px; padding: 8px 12px; }
@media (min-width: 1000px) { .bar { display: none; } body { padding-bottom: 0; } }

/* 判斷裝置（head 裡的小程式會在 <html> 加上 is-phone 或 is-desktop）：
   手機：底部打電話列一定出現（橫著拿也一樣）；電腦：不出現打電話列，視窗寬一點就顯示完整選單 */
.is-phone .bar { display: grid; }
.is-phone body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.is-desktop .bar { display: none; }
.is-desktop body { padding-bottom: 0; }
@media (min-width: 820px) {
  .is-desktop .nav { display: flex; }
  .is-desktop .status { margin-left: 0; }
}

/* ---------- 全部作品／單一作品 ---------- */
.page-head { padding: clamp(32px, 5vw, 56px) 0 8px; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; }
.page-head > .wrap > p { margin-top: 8px; color: var(--muted); }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.works-all { padding-top: 24px; }
.work-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; color: var(--muted); }
.work-photos { padding: 20px 0 8px; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--paper); cursor: zoom-in; }
.gallery img { width: 100%; height: auto; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; }
.cta-band { background: var(--paper); margin-top: 48px; }
.cta-band .wrap { padding-top: 36px; padding-bottom: 40px; }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; }
.cta-band p { margin-top: 6px; color: var(--muted); }
.cta-band .cta { margin-top: 18px; }
.notfound { padding-bottom: 80px; }
.notfound .cta { margin-top: 24px; }

/* ---------- 照片放大 ---------- */
.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(0, 0, 0, .95); color: #fff; }
.lb::backdrop { background: rgba(0, 0, 0, .9); }
.lb-in { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; }
.lb-count { font-size: 17px; }
.lb-img { display: grid; place-items: center; min-height: 0; padding: 0 8px; }
.lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
.lb button { min-height: 56px; padding: 0 20px; border: 0; background: #fff; color: #000; font: 700 18px/1 "Noto Sans TC", sans-serif; cursor: pointer; }
.lb .lb-close { background: var(--orange); color: #fff; }
