@charset "utf-8";

/* ======================================================
    全站基礎設定：字體、背景、標題與段落
   ====================================================== */
body {
  background-color: #f2f2f2;
  margin: 0;
  padding: 0;
  font-family: "Microsoft JhengHei", "PingFang TC", "Helvetica Neue", Arial, sans-serif;
  color: #222;
}

h1, h2, h3 {
  margin: 0;
  padding: 0;
}

/*  H1：頁面主題（手機版 Banner 文字） */
h1 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

/*  H2：紅標主標（區塊標題，如材質標題） */
h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #990000;
  margin: 0.4rem;
  line-height: 1.3;
}

/*  H3：藍色副標（案例子標） */
h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #153295;
  margin: 0.8rem;
}

/*  一般段落文字 */
p {
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
  margin-left: 0.8rem;
}

/*  FAQ 開頭導語文字（強調＋淺紅） */
.faq-intro {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #990000;
  margin: 0.2rem 1rem 0.8rem 1rem;
}

.faq-intro,
.faq-note-main,
.faq-note-sub {
  display: inline-block;
  padding-right: 0.6rem;
}

/* ======================================================
   FAQ Touch Friendly Upgrade（胖手指友好）
   ====================================================== */

/* FAQ 每一題 */
details {
  padding: 0.6rem 0; /* ↑↓ 多一點空間避免誤觸 */
  border-bottom: 1px solid #e0e0e0; /* 區隔更清楚 */
}

/* FAQ 點擊主標（summary） */
summary {
  cursor: pointer;
  padding: 0.8rem 0.4rem; /* 內距增加：點擊範圍加大 */
  font-size: 1rem;
  line-height: 1.5;
  list-style: none;
  user-select: none;
}

/* 隱藏預設的三角符號（避免觸控誤判） */
summary::-webkit-details-marker {
  display: none;
}

/* 點擊後展開的內容 */
details[open] summary {
  color: #0157BA;
  font-weight: 700;
}

/* FAQ CTA Link Style */
.photo-link {
  color: #0A84FF;
  font-weight: 700;
  text-decoration: underline;
  padding: 4px 2px;
  border-radius: 6px;
}

.photo-link:hover,
.photo-link:focus {
  background: #EAF3FF;
  color: #0066CC;
}

/* 錨點對齊 — 避開固定導覽列 */
#photo-form {
  scroll-margin-top: 130px; /* 這裡我精算過，含 top-bar + sticky nav */
}

html {
  scroll-behavior: smooth;
}

/*  文字 RWD：小螢幕字體微調 */
@media (max-width: 494px) {
  h2 { font-size: 1.1rem; margin: 0.3rem; }
  h3 { font-size: 1.08rem; margin: 0.4rem; }
  p  { font-size: 1rem; margin: 0.5rem; }
}

/*  手機斷行（桌機隱藏） */
@media (max-width: 640px) {
  .mobile-break {
    display: block;
  }
}

/*  桌機不需要斷行 */
@media (min-width: 641px) {
  .mobile-break {
    display: none;
  }
}

/*  分隔線 */
hr {
  border-top: 2px solid #b8b8b8;
  margin: 0.8rem 0;
}

/* ======================================================
    中央容器（最大寬 960px）
   ====================================================== */
.container-fixed {
  max-width: 960px;
  margin: 0 auto;
  background-color: #FFF8EE;
  padding: 0 8px 8px;
}

/* ======================================================
    頁首固定導覽列（回列表／回首頁）
   ====================================================== */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0157BA;
  color: #fff;
  height: 48px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
  z-index: 1000;
}

/* 標題容器（超出時截斷處理） */
.title-wrapper {
  flex: 1;
  text-align: center;
  max-width: calc(100% - 96px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.full-title { display: block; }

/* 手機縮短標題 */
.short-title {
  display: none;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 494px) {
  .full-title { display: none; }
  .short-title { display: block; }
}

/* 左右按鈕（回上一頁、回首頁） */
.top-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  text-decoration: none;
}

.top-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.top-btn:hover,
.top-btn:active {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.left-btn.placeholder {
  visibility: hidden;   /* 看不見 */
}

/* ======================================================
    Banner 首圖
   ====================================================== */
.banner {
  margin-top: 52px;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* ======================================================
    Sticky 導覽（錨點快速跳轉）
   ====================================================== */
.main-nav {
  background: #FFF8EE;
  border-bottom: 1px solid #ddd;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  width: 100%;
  margin: 0;
  position: sticky;
  top: 48px;
  z-index: 999;
}

.main-nav .nav-scroll {
  display: flex;
  gap: 5px;
  list-style: none;
  margin: 5px;
  padding: 5px;
}

.main-nav .nav-scroll a {
  display: block;
  padding: 8px 16px;
  color: #003366;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: #fff;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.main-nav .nav-scroll a:hover {
  background: #e6f0ff;
  color: #003399;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

/* ======================================================
    隱藏 OG 圖片（SEO 用）
   ====================================================== */
.hidden-og-image {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* ======================================================
    動作按鈕區：報價/拍照工具
   ====================================================== */
.action-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}

/* 方塊式動作按鈕 */
.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #fff;
  border: 2px solid #d3d3d3;
  border-radius: 10px;
  padding: 6px 10px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  color: #0066cc;
  transition: all 0.2s ease-in-out;
  height: 60px;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.action-btn img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  flex-shrink: 0;
}

.action-btn:hover,
.action-btn:active {
  background-color: #ECF3FF;
  border-color: #005bac;
  color: #003399;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.action-btn.w43 { width: 100%; }
.action-btn.w85 { width: 100%; grid-column: span 2; }

@media (min-width: 576px) {
  .action-area { grid-template-columns: 1fr 1fr 1fr; }
}

/* ======================================================
    CTA 區塊：傳照片判斷材質
   ====================================================== */

.cta-photo {
  background: #fff9e6;
  padding: 2rem 1rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  text-align: center;
}

/* 主按鈕 */
.cta-btn {
  display: inline-block;
  background: #0A84FF;
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
}

/* Hover 效果 */
.cta-btn:hover,
.cta-btn:focus {
  background: #0072E6;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* 提示文字 */
.cta-note-main {
  font-size: 0.92rem;
  color: #555;
  margin-top: 10px;
}

/* 備註文字 */
.cta-note-sub {
  font-size: 0.75rem;
  color: #999;
  margin-top: 2px;
}

/* CTA 淡入動畫 */
.fade-ready {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .fade-ready {
    animation: none;
  }
}

/* ======================================================
    圖片／案例排版
   ====================================================== */

figure {
  display: block;
  text-align: center;
  margin: 1.2em 0;
}

/* 圖說 */
figcaption {
  display: block;
  margin-top: 0.4em;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
  text-align: center;
  padding: 0 6px;
}

/* 圖片排列 */
.figure-images {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0;
  padding: 0 6px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

/* 案例對比 1:1 */
.figure-block.comparison .figure-images picture {
  flex: 0 0 calc(50% - 0.5rem);
  min-width: 0;
  max-width: 50%;
}

/* 單張案例：滿版 */
.figure-block.single .figure-images {
  display: block;
  padding: 0;
}
.figure-block.single .figure-images picture {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

/* 圖片共通樣式 */
.img-fluid {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid #ddd;
}

/* ======================================================
    圖片 RWD：小螢幕樣式
   ====================================================== */
@media (max-width: 494px) {
  .figure-images {
    gap: 0.25rem;
    padding: 0 4px;
  }

  /* 單張縮排 */
  .figure-block.single .figure-images {
    width: 100%;
  }

  /* 兩張對比緊縮 */
  .figure-block.comparison .figure-images picture {
    flex: 1 1 calc(50% - 0.125rem);
    max-width: calc(50% - 0.125rem);
  }

  figcaption {
    font-size: 0.85rem;
  }
}

/* ======================================================
    Footer 導覽
   ====================================================== */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  background: #FFF8EE;
  padding: 1rem 1rem;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.5;
  border-top: 2px solid #b8b8b8;
}

@media (max-width: 480px) {
  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-links h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: #0157BA;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0.4rem 0;
}

.footer-links a {
  color: #003366;
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
  display: inline-block;
}

.footer-links a:hover {
  background-color: #E0E0E0;
  color: #003366;
  font-weight: 700;
}

/* ======================================================
    Footer 版權區
   ====================================================== */
.footer-copyright {
  background-color: #0157BA;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: #ffffff;
  text-align: center;
  margin: 0;
}

/* Pric 區塊 */
.price-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.price-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.2rem 1.1rem;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.price-title a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: #0b66b6;
}

.price-title a:hover {
  text-decoration: underline;
}

.price-title a:hover {
  text-decoration: underline;
}

.price-title img {
  flex-shrink: 0;
}

.price-desc {
  font-size: .95rem;
  line-height: 1.6;
  margin: .4rem 0;
}

.price-range {
  font-size: .95rem;
  margin: .4rem 0 .6rem;
}

.price-more a {
  font-size: .9rem;
  color: #1e6bb8;
  text-decoration: none;
}

.price-more a:hover {
  text-decoration: underline;
}

/* ======================================================
   blog.htm｜部落格 / 社群連結清單
   ====================================================== */

.blog-link-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.blog-link-list li {
  background: #ffffff;
  border: 1px solid #e5e2dc;          /* 米色底的溫和邊框 */
  border-radius: 10px;
  padding: 12px 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.blog-link-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.blog-link-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1f4e79;                     /* 專業藍 */
  font-weight: 600;
  text-decoration: none;
}

.blog-link-list a:hover {
  text-decoration: underline;
}

.blog-link-list img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.blog-link-list .desc {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  color: #555;
  font-weight: normal;
}

/* =========================
   服務項目按鈕列表（方案 A）
   ========================= */

.service-btn-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.service-btn-list a {
  display: block;
  padding: 0.95rem 1.1rem;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.4;
  color: #222;
  transition: background-color 0.15s ease;
}

/* 觸控回饋（不吃效能） */
.service-btn-list a:active {
  background-color: #f2f2f2;
}

/* 桌機稍微拉寬一點點 */
@media (min-width: 768px) {
  .service-btn-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ======================================================
   首頁｜核心服務卡片（Google News 卡片風）
   ====================================================== */

#home-services {
  margin: 1.5rem 0;
}

#home-services .section-title {
  margin: 0.8rem 0.6rem 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #990000;
}

/* 卡片網格 */
.service-card-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* 單張卡片 */
.service-card a {
  display: block;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #222;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* hover / active */
.service-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* 圖片 */
.service-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* 標題 */
.service-card h3 {
  margin: 0.6rem 0.8rem 0.2rem;
  font-size: 1.05rem;
  color: #153295;
}

/* 說明文字 */
.service-card p {
  margin: 0 0.8rem 0.9rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #444;
}

/* 平板以上：兩欄 */
@media (min-width: 640px) {
  .service-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 桌機：四欄 */
@media (min-width: 960px) {
  .service-card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

