/* =========================================================
   龍豪印刷 site.css
   Mobile-first；斷點 480 / 768 / 1024 / 1200
   1200px 以上的數值沿用原站，維持桌機視覺一致
   ========================================================= */

/* ---------- 1. 設計變數 ---------- */
:root {
  --font: "PingFang TC", "Microsoft JhengHei", "Heiti TC", "Noto Sans CJK TC", "Noto Sans TC", sans-serif;
  --c-text: #000;
  --c-body: #535353;
  --c-orange: #e97730;
  --c-orange-2: #fc6500;
  --c-yellow: #ffbe00;
  --c-navy: #00015a;
  --c-red: #d5373a;
  --c-line: #dee2e6;
  --c-gray-bg: #f0f0f0;
  --c-line-green: #06c755;
  --c-shopee: #ee4d2d;
  --gutter: 16px;
  --cta-h: 56px;
}

/* ---------- 2. 基礎 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-text);
  background: #fff;
  padding-bottom: calc(var(--cta-h) + env(safe-area-inset-bottom));
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5rem;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-text);
}

p {
  margin: 0 0 15px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-body);
}

ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }

a {
  color: var(--c-text);
  text-decoration: none;
  transition: color .3s ease;
}
a:hover { color: var(--c-orange); }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible { outline: 2px solid var(--c-orange); outline-offset: 2px; }

table { border-collapse: collapse; caption-side: top; }
th { font-weight: inherit; text-align: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--c-orange);
  color: #fff;
}
.skip-link:focus { top: 8px; color: #fff; }

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- 3. 圖示（內嵌 SVG，取代圖示字型） ---------- */
.i {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
          mask: var(--i) center / contain no-repeat;
}
.i-menu  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18'/%3E%3C/svg%3E"); }
.i-close { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E"); }
.i-up    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M6 15l6-6 6 6'/%3E%3C/svg%3E"); }
.i-down  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.i-bag   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7V6a5 5 0 0 1 10 0v1h3l1 15H3L4 7h3zm2 0h6V6a3 3 0 0 0-6 0v1z'/%3E%3C/svg%3E"); }
.i-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M4 4h16v16H4zM8 12l3 3 5-6'/%3E%3C/svg%3E"); }
.i-pin   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.i-chat  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3C6.5 3 2 6.6 2 11c0 3.9 3.5 7.2 8.3 7.9.3.1.8.2.9.5.1.3.1.7 0 1l-.1.9c0 .3-.2 1 .9.5s6-3.5 8.2-6C21.6 14 22 12.6 22 11c0-4.4-4.5-8-10-8z'/%3E%3C/svg%3E"); }

/* ---------- 4. 頁首 ---------- */
.topbar { display: none; background: var(--c-yellow); }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
}
.topbar-right { display: flex; align-items: center; }
.topbar a {
  display: flex;
  align-items: center;
  margin-right: 24px;
  font-size: 1rem;
  line-height: 1.715;
  color: #212121;
}
.topbar a:hover { color: #b00002; }
.topbar a img { width: 20px; height: 20px; margin-right: 5px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #fff;
  transition: box-shadow .3s ease;
}
.site-header.is-stuck { box-shadow: 0 8px 20px 0 rgba(0, 0, 0, .1); }
.headbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
.logo { display: inline-flex; }
.logo img { width: auto; height: 50px; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  font-size: 28px;
}

.main-nav { display: none; }

/* 桌機主選單與大型下拉選單 */
.main-nav > ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}
.main-nav > ul > li { position: relative; margin: 0 4px; }
.main-nav .nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 4px;
  font-size: 1.2rem;
  line-height: 70px;
  color: #383838;
}
.main-nav .nav-link::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--c-orange);
  transition: all .4s ease;
}
.main-nav > ul > li:hover > .nav-link,
.main-nav .nav-link[aria-current="page"],
.main-nav .nav-link.is-current { color: var(--c-orange); }
.main-nav > ul > li:hover > .nav-link::after { left: 0; right: auto; width: 100%; }

.mega {
  position: absolute;
  top: 100%;
  left: -85px;
  z-index: 99;
  display: flex;
  width: 750px;
  padding: 28px 30px 0;
  text-align: left;
  background: #fff;
  box-shadow: 0 0 20px .4px rgba(0, 0, 0, .1);
  visibility: hidden;
  transform: rotateX(90deg);
  transform-origin: center top;
  transition: all .5s ease;
}
.has-mega:hover > .mega,
.has-mega:focus-within > .mega,
.has-mega.is-open > .mega { visibility: visible; transform: rotateX(0); }
.mega > * { flex: 0 0 33.333%; max-width: 33.333%; }
.mega li { line-height: 1; margin-bottom: 22px; }
.mega li:last-child { margin-bottom: 0; }
.mega li a { display: block; font-size: 1.2rem; font-weight: 300; color: #000; }
.mega li a:hover { color: var(--c-orange); }
.mega-img img { display: block; }

/* ---------- 5. 手機側邊選單 ---------- */
.offcanvas-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transition: all .4s ease;
}
.offcanvas {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 9999;
  width: min(320px, 86vw);
  padding: 64px 24px 40px;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 0 87px 0 rgba(0, 0, 0, .09);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform .4s ease-out, visibility 0s linear .4s;
}
.is-menu-open .offcanvas { visibility: visible; transform: none; transition: transform .4s ease-out, visibility 0s; }
.is-menu-open .offcanvas-overlay { opacity: 1; visibility: visible; }
.is-menu-open { overflow: hidden; }

.offcanvas-close {
  position: absolute;
  top: 10px; right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 18px;
  color: #fff;
  background: var(--c-orange);
}
.offcanvas-nav { border-bottom: 1px solid #ddd; margin-bottom: 20px; padding-bottom: 16px; }
.offcanvas-nav a,
.offcanvas-nav .sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 500;
  color: #383838;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}
.offcanvas-nav a[aria-current="page"] { color: var(--c-orange); }
.offcanvas-nav .i-down { font-size: 14px; transition: transform .3s; }
.offcanvas-nav .sub-toggle[aria-expanded="true"] .i-down { transform: rotate(180deg); }
.offcanvas-nav .sub { display: none; padding-left: 16px; }
.offcanvas-nav .sub.is-open { display: block; }
.offcanvas-nav .sub a { font-weight: 400; }
.offcanvas-contact { display: grid; gap: 12px; }
.offcanvas-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  font-weight: 500;
  color: #fff;
  border-radius: 6px;
}
.offcanvas-contact .btn-line { background: var(--c-line-green); }
.offcanvas-contact .btn-shop { background: var(--c-shopee); }
.offcanvas-contact a:hover { color: #fff; opacity: .9; }

/* 手機底部固定聯絡列 */
.cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 950;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .12);
}
.cta-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--cta-h);
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
}
.cta-bar a:hover { color: #fff; }
.cta-bar .i { font-size: 20px; }
.cta-bar .btn-line { background: var(--c-line-green); }
.cta-bar .btn-shop { background: var(--c-shopee); }

/* 回到頂端 */
.to-top {
  position: fixed;
  right: 16px;
  bottom: calc(var(--cta-h) + 16px + env(safe-area-inset-bottom));
  z-index: 940;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 18px;
  color: #fff;
  background: #262626;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--c-orange); }

/* ---------- 6. 共用區塊 ---------- */
.section-title { text-align: center; margin-bottom: 35px; }
.section-title h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  color: #2c2c2c;
}
.section-title h2::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -10px;
  width: 100px; height: 2px;
  margin: auto;
  background: var(--c-orange);
}

/* 內頁 Banner */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  text-align: center;
  background: url(../images/banner/businessCard_bg.jpg) left top;
}
.page-banner::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -90px;
  width: 260px; height: 260px;
  margin: 0 auto;
  border-radius: 100%;
  background: #fff;
}
.page-banner .container { position: relative; }
.page-banner h1 {
  margin: 0 0 10px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-navy);
  text-shadow: rgb(146, 169, 232) 0 4px 4px;
}
.page-banner-sub {
  margin: 0 0 .5rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.2;
  color: #424242;
}

.section-pad { padding: 40px 0; }

/* 產品頁：內容 + 側邊分類 */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.product-main,
.product-side { min-width: 0; }
.product-intro {
  margin: 0 0 15px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: #000;
}
.product-main > p { color: var(--c-body); }
.note { margin: 10px 0 0; }
.note-strong { margin: 0 0 8px; font-weight: 700; }

.side-title { margin: 0 0 12px; font-size: 1.2rem; font-weight: 500; }
.side-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.side-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 15px;
  font-size: 1rem;
  font-weight: 300;
  border: 1px solid #ccc;
}
.side-menu a:hover { color: #fff; background: #b5c9e5; border-color: #b5c9e5; }
.side-menu a[aria-current="page"] { color: #fff; background: var(--c-orange); border-color: var(--c-orange); }

/* 價目表 */
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 4px;
}
.table-scroll + .table-scroll,
.table-hint + .table-scroll,
.table-hint + .note-strong,
.table-scroll + .note-strong,
.table-hint + .block-title,
.table-scroll + .block-title { margin-top: 30px; }
.table-hint + .table-joined { margin-top: 0; }
.table-hint { margin: 6px 0 0; font-size: 14px; color: #888; }
.price-table {
  width: 100%;
  min-width: 560px;
  font-size: 1rem;
  border: 1px solid var(--c-line);
}
.price-table caption {
  padding: 8px 0;
  font-weight: 700;
  color: #6c757d;
  text-align: left;
}
.price-table thead {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-red);
  text-align: center;
  vertical-align: middle;
  background: #f9f9f9;
  border-bottom: 1px solid #171717;
}
.price-table th,
.price-table td {
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
  border-left: 1px solid var(--c-line);
}
.price-table td,
.price-table tbody th { border-bottom: 1px solid var(--c-line); }
.price-table tbody th { font-weight: 400; }
.price-table tbody { border-right: 1px solid var(--c-line); }
.price-table .cell-img { width: 25%; }
.price-table .cell-img img { width: 100%; }
.buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 18px;
}

.block-title {
  position: relative;
  margin: 0 0 15px;
  padding-left: 35px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  color: #4a4a4a;
}
.block-title::before,
.block-title::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  background: var(--c-orange);
}
.block-title::before { left: 0; top: 2px; }
.block-title::after { left: 7px; top: 7px; border: 2px solid #fff; }
.mt-30 { margin-top: 30px; }

/* 產品範例圖庫（信封、資料夾、大圖） */
.gallery { display: grid; grid-template-columns: 1fr; gap: 0 30px; align-items: start; }
.gallery-item { position: relative; margin-bottom: 50px; }
.gallery-img { overflow: hidden; }
.gallery-img img { width: 100%; transition: transform .4s ease; }
.gallery-item:hover .gallery-img img { transform: scale(1.1); }
.gallery-item figcaption {
  position: absolute;
  right: 16px; bottom: -30px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 40px;
  padding: 0 6px;
  font-size: 18px;
  font-weight: 500;
  line-height: 20px;
  color: #3b3b3b;
  background: #fff;
  border: 2px solid #e2e2e2;
}

/* 頁尾 */
.site-footer { background: url(../images/bg/footer_bg.jpg); }
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 30px;
  padding-top: 56px;
  padding-bottom: 16px;
}
address { font-style: normal; }
.footer-col { margin-bottom: 40px; }
.footer-logo img { width: 250px; }
.footer-about p {
  margin: 23px 0 20px;
  font-size: 1rem;
  line-height: 28px;
  color: #151515;
}
.footer-title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 500;
  color: #323232;
}
.footer-list li { margin-bottom: 4px; }
.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  color: #292929;
}
.footer-list a:hover { color: var(--c-orange); }
.footer-address li { margin: 0 0 6px; font-size: 16px; font-weight: 300; }
.footer-address li span { font-weight: 500; color: #4a4a4a; }
.footer-address a { display: inline-block; padding: 8px 0; }
.footer-address .footer-line { font-weight: 500; color: var(--c-line-green); }
.footer-address .footer-line:hover { color: var(--c-orange); }
.open-time { margin: 20px 0 0; }
.open-time p { margin: 0 0 2px; font-size: 16px; font-weight: 300; color: #4a4a4a; }
.open-time span { color: var(--c-orange); }
.copyright { padding: 14px 0 12px; background: var(--c-gray-bg); }
.copyright p {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  color: #333;
  text-align: center;
}

/* ---------- 7. 首頁 ---------- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero-slides { position: relative; }
.hero-slide { opacity: 0; transition: opacity 1s ease-in-out; }
.hero-slide + .hero-slide { position: absolute; inset: 0; }
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide a,
.hero-slide img { display: block; width: 100%; }
.hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  z-index: 10;
  display: flex;
  justify-content: center;
}
.hero-dots button {
  position: relative;
  width: 44px;
  height: 32px;
  margin: 0 -13px;
}
.hero-dots button::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  opacity: .6;
  transform: translate(-50%, -50%);
  transition: all .3s;
}
.hero-dots button[aria-current="true"]::before {
  width: 24px;
  border-radius: 5px;
  background: #ffb400;
  opacity: 1;
}

.hero-text { padding: 24px 0 8px; text-align: center; }
.hero-text h1 { margin: 0 0 8px; font-size: 22px; font-weight: 700; line-height: 1.35; }
.hero-text p { margin: 0 0 16px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  font-weight: 500;
  color: #fff;
  border-radius: 24px;
}
.hero-cta .btn-line { background: var(--c-line-green); }
.hero-cta .btn-home { background: var(--c-orange); }
.hero-cta a:hover { color: #fff; opacity: .9; }

.promo { padding: 40px 0 20px; }
.promo-grid { display: grid; gap: 30px; }
.promo-card { position: relative; overflow: hidden; }
.promo-card > a { display: block; }
.promo-card img { width: 100%; transition: transform .4s ease; }
.promo-card:hover img { transform: scale(1.05); }
.promo-body { position: absolute; left: 24px; bottom: 20px; }
.promo-kicker { margin: 0; font-size: 1rem; font-weight: 500; color: #000; line-height: 1.2; }
.promo-body h3 { margin: 7px 0 12px; font-size: 20px; font-weight: 500; }
.promo-body .more {
  display: inline-block;
  padding: 6px 0;
  font-weight: 500;
  line-height: 1;
  border-bottom: 1px solid #000;
}
.promo-body .more:hover { border-color: var(--c-orange); }

.process { padding-bottom: 20px; }
.process-grid { display: grid; gap: 0 30px; }
.process-item { margin-bottom: 30px; text-align: center; }
.process-item h3 {
  position: relative;
  margin: 20px 0 34px;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--c-orange-2);
}
.process-item h3::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -20px;
  width: 50px; height: 2px;
  margin: auto;
  background: #e4e4e4;
}
.process-item p { margin: 0; font-size: 1.1rem; line-height: 28px; color: #444; }

.showcase { padding: 30px 0 20px; }
.showcase-grid { display: grid; gap: 20px 22px; }
.showcase-grid a { display: block; overflow: hidden; }
.showcase-grid img { width: 100%; transition: transform .4s ease; }
.showcase-grid a:hover img { transform: scale(1.05); }

.about { padding-bottom: 70px; }
.about-grid { display: grid; gap: 30px; align-items: center; }
.about-content h2 { margin: 0; font-size: 26px; color: var(--c-orange); }
.about-content .about-lead,
.about-content h3 {
  margin: 12px 0 10px;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--c-orange);
}
.about-content p { margin: 0 0 16px; font-size: 1rem; line-height: 1.7; color: #5e5e5e; }
.about-img { text-align: center; }
.about-img img { transition: transform .4s ease; }
.about-img:hover img { transform: scale(.9); }

.clients-title { margin-bottom: 35px; }
.marquee {
  position: relative;
  max-width: 1200px;
  height: 100px;
  margin: 30px auto 50px;
  overflow: hidden;
  border: 1px solid #eee;
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; margin-right: 20px; }
.marquee-track img { width: auto; max-height: 56px; transition: all .2s ease-out; }
.marquee-track img:hover { opacity: .5; transform: scale(1.2); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 8. 內頁 ---------- */
/* 取件與付款 */
.pay-block { margin-bottom: 40px; }
.pay-head { margin-bottom: 20px; }
.pay-head h2,
.pay-card h2 {
  margin: 0 0 8px;
  padding-left: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a202c;
  border-left: 5px solid var(--c-yellow);
}
.pay-head p { margin: 0; }

.pickup-steps { display: grid; gap: 12px; margin-bottom: 24px; }
.pickup-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  font-weight: 700;
  color: #fff;
  background: var(--c-orange);
  border-radius: 50%;
}
.pickup-steps h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 700; }
.pickup-steps p { margin: 0; }

.store-cards { display: grid; gap: 20px; }
.store-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--c-orange);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.store-card h3 { margin: 0 0 8px; font-size: 1.4rem; font-weight: 700; }
.store-info { margin-bottom: 16px; }
.store-info li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 0;
  color: #333;
  overflow-wrap: anywhere;
  border-bottom: 1px dashed #e2e8f0;
}
.store-label { color: #888; }
.store-info a { display: inline-flex; align-items: center; min-height: 44px; }
.store-actions { display: grid; margin-top: auto; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 500;
  border-radius: 22px;
  transition: all .3s ease;
}
.btn-outline { color: var(--c-orange); border: 1px solid var(--c-orange); }
.btn-outline:hover { color: #fff; background: var(--c-orange); }

.pay-grid { display: grid; gap: 20px; }
.pay-card {
  padding: 24px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.pay-card h2 { margin-bottom: 16px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; color: #333; }
.check-list .i { margin-top: 4px; font-size: 18px; color: #3cb371; }
.pay-methods { display: grid; gap: 12px; }
.pay-methods li { padding: 14px 16px; background: #f8f9fa; border-radius: 8px; }
.pay-methods h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 700; }
.pay-methods p { margin: 0; }
.pay-methods a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-orange); text-decoration: underline; }


/* FAQ */
.faq-group + .faq-group { margin-top: 0; }
.faq-cat {
  margin: 0 0 20px;
  padding-left: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a202c;
  border-left: 5px solid var(--c-yellow);
}
.faq-cat a { color: inherit; }
.faq-cat a:hover { color: var(--c-orange); }
.faq-item {
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .02);
  transition: border-color .2s ease;
}
.faq-item:hover { border-color: #cbd5e1; }
.faq-item > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item h3 { margin: 0; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #2d3748; }
.faq-item > summary .i { font-size: 1.1rem; color: var(--c-yellow); transition: transform .3s ease; }
.faq-item[open] > summary .i { transform: rotate(180deg); }
.faq-answer {
  padding: 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: #4a5568;
  background: #f8fafc;
  border-top: 1px dashed #e2e8f0;
}
.faq-answer p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }

/* 最新優惠 */
.news-item {
  margin: 0 0 33px;
  padding: 0 0 34px;
  border-bottom: 1px solid #ebebeb;
}
.news-item h2 { margin: 0 0 18px; font-size: 20px; font-weight: 500; line-height: 1.3; color: #f90357; }
.news-body { display: flex; gap: 16px; align-items: flex-start; }
.news-body img { width: 100px; flex: none; }
.news-body time { display: block; margin: 0 0 8px; font-size: 1.1rem; }
.news-body p { margin: 0; font-size: 1rem; line-height: 1.6; }

/* 精選案例 */
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-bottom: 30px;
}
.tabs button {
  min-height: 44px;
  font-size: 1.05rem;
  color: #8a8a8a;
}
.tabs button[aria-selected="true"] { color: var(--c-orange); }
.tabs button:hover { color: var(--c-orange); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 16px;
}
.work-grid figure { overflow: hidden; }
.work-grid img { width: 100%; transition: transform .4s ease; }
.work-grid figure:hover img { transform: scale(1.1); }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: zoomIn .5s cubic-bezier(.26, .69, .37, .96); }
@keyframes zoomIn {
  from { opacity: 0; transform: scale(.85); }
  to { opacity: 1; transform: scale(1); }
}

/* 404 */
.notfound { padding: 80px 0; text-align: center; }
.notfound h1 { font-size: 28px; font-weight: 700; }

/* ---------- 9. 進場動畫（取代 AOS） ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
}

/* =========================================================
   ≥ 480px
   ========================================================= */
@media (min-width: 480px) {
  .side-menu { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-methods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-text h1 { font-size: 24px; }
}

/* =========================================================
   ≥ 768px
   ========================================================= */
@media (min-width: 768px) {
  .container { max-width: 720px; padding: 0 15px; }
  .page-banner { padding: 50px 0; }
  .page-banner::before { width: 260px; height: 260px; bottom: -25px; }
  .page-banner h1 { font-size: 30px; margin-bottom: 15px; }
  .page-banner-sub { font-size: 1.15rem; }
  .section-title { margin-bottom: 60px; }
  .section-title h2 { font-size: 30px; }
  .section-title h2::before { bottom: -17px; }
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-grid .wide { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pickup-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .store-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 80px; padding-bottom: 35px; }
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 30px; }
  .tabs { gap: 4px 23px; margin-bottom: 55px; }
  .news-body { gap: 30px; }
  .marquee { height: 150px; }
  .marquee-track img { max-height: none; }
  .table-hint { display: none; }
  .price-table { min-width: 0; }
  .price-table th, .price-table td { padding: 10px 0; }
}

/* =========================================================
   ≥ 1024px：桌機版版面（主選單、側欄、多欄）
   ========================================================= */
@media (min-width: 1024px) {
  :root { --cta-h: 0px; }
  body { padding-bottom: 0; }
  .container { max-width: 960px; }
  .cta-bar, .menu-btn, .offcanvas, .offcanvas-overlay { display: none; }
  .topbar { display: block; }
  .main-nav { display: block; }
  .headbar-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; min-height: 90px; }
  .headbar-inner::after { content: ""; }
  .main-nav > ul > li > .nav-link,
  .main-nav > ul > li > .nav-trigger { font-size: 1.1rem; }
  .to-top { right: 30px; bottom: 53px; width: 50px; height: 50px; }

  .page-banner { padding: 101px 0 102px; }
  .page-banner::before { width: 280px; height: 280px; }
  .page-banner h1 { font-size: 40px; }

  .section-pad { padding: 50px 0; }
  .product-layout {
    grid-template-columns: minmax(0, 270fr) minmax(0, 870fr);
    gap: 30px;
    align-items: start;
  }
  .product-main { grid-column: 2; grid-row: 1; }
  .product-side { grid-column: 1; grid-row: 1; }
  .side-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .side-menu { display: block; }
  .side-menu a {
    display: block;
    min-height: 0;
    font-size: 1.1rem;
    border-bottom: none;
  }
  .side-menu li:last-child a { border-bottom: 1px solid #ccc; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .promo { padding: 50px 0 80px; }
  .promo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .showcase-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .showcase-grid > * { grid-column: span 3; }
  .showcase-grid .wide { grid-column: span 6; }
  .about { padding-bottom: 100px; }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-content { order: 2; }
  .about-img { order: 1; }
  .store-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-methods { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: minmax(0, 270fr) minmax(0, 270fr) minmax(0, 170fr) minmax(0, 370fr); }
  .footer-list li { margin-bottom: 12px; }
  .footer-list a { display: inline; min-height: 0; }
  .footer-address a { padding: 0; }
  .js [data-reveal] { transform: translateY(100px); }
}

/* =========================================================
   ≥ 1200px：與原站桌機版數值一致
   ========================================================= */
@media (min-width: 1200px) {
  body { font-size: .875rem; }
  p { font-size: 14px; line-height: 24px; }
  .container { max-width: 1200px; }
  .main-nav > ul > li > .nav-link,
  .main-nav > ul > li > .nav-trigger { font-size: 1.2rem; }
  .headbar-inner { grid-template-columns: 270px 670px 1fr; }
  .logo-wrap { line-height: 0; }

  .page-banner { padding: 20px 0; }
  .page-banner::before { width: 342px; height: 342px; }
  .page-banner h1 { font-size: 3.5rem; margin-bottom: 10px; }
  .page-banner-sub { font-size: 1.3rem; }

  .section-title { margin-bottom: 75px; }
  .section-title h2 { font-size: 36px; }

  .product-intro { font-size: 18px; line-height: 1.2; }
  .price-table { font-size: 1.1rem; }
  .price-table thead { font-size: 1.2rem; }
  .price-table caption { font-size: 14px; }
  .buy-btn { min-width: 0; min-height: 0; font-size: 14px; }
  .block-title { font-size: 24px; }
  .note, .note-strong { font-size: 14px; }

  .promo-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .1px; }
  .promo-body { bottom: 24px; }
  .promo-body h3 { margin: 7px 0 15px; font-size: 24px; }
  .promo-body .more { padding: 0; font-size: 14px; }

  .hero-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .about-content h2 { font-size: 30px; }
  .about-content .about-lead,
  .about-content h3 { line-height: 1.2; }
  .about-content p { margin: 0 0 26px; font-size: 1rem; line-height: 26px; }
  .about-img { margin: 0 37px; }
  .about-img img { width: 100%; }

  .marquee { width: 1200px; margin: 50px auto; }
  .marquee-track { align-items: flex-end; height: auto; padding-top: 20px; }

  .footer-col.has-indent-1 { margin-left: 50px; }
  .footer-col.has-indent-2 { margin-left: 20px; }
  .footer-list a { font-size: 1.1rem; }
  .copyright p { font-size: 14px; line-height: 24px; }

  .pickup-steps { gap: 30px; }
  .store-cards { gap: 30px; }
  .store-card { padding: 24px; }
  .store-info li { font-size: 15px; }
  .pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .pay-methods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pay-card { padding: 28px; }

  .faq-cat { font-size: 1.5rem; }
  .faq-item > summary { padding: 16px 20px; min-height: 0; }
  .faq-item h3 { font-size: 1.05rem; }
  .faq-answer { padding: 16px 20px; font-size: .98rem; }

  .news-item h2 { margin: 0 0 29px; font-size: 1.75rem; line-height: 20px; }
  .news-body time { margin: 11px 0 8px; }
  .news-body p { font-size: 1.2rem; line-height: 25px; }

  .tabs button { min-height: 0; font-size: 1.2rem; color: #b9b9b9; }
  .work-grid { gap: 60px 30px; }
}
