/* ==========================================================================
   迷卡漫 Mikaman - 全站核心統一樣式表 (style.css)
   【全新 CI 品牌識別色系】
   - 品牌大地金棕 (Ochre / Bronze Gold): #b27a3c (字體「迷」與笑臉微笑線)
   - 品牌深邃靛青 (Deep Indigo / Ocean Navy): #0c5776 (字體「卡漫」)
   - 品牌炭黑與溫潤底色: #1f272b & #faf8f5
   - LINE 綠色保留 (預約 CTA 高轉換率): #06c755
   ========================================================================== */

:root {
  /* CI 核心色彩 */
  --ci-gold: #b27a3c;
  --ci-gold-hover: #9c672e;
  --ci-gold-light: #f9f2e9;
  --ci-gold-border: #e8d3ba;

  --ci-blue: #0c5776;
  --ci-blue-hover: #08435b;
  --ci-blue-light: #eef6f9;
  --ci-blue-border: #bcd9e4;

  /* 主題語意變數分配 */
  --primary: var(--ci-blue);
  --primary-hover: var(--ci-blue-hover);
  --primary-light: var(--ci-blue-light);
  --accent: var(--ci-gold);
  --accent-hover: var(--ci-gold-hover);
  --accent-light: var(--ci-gold-light);

  --line-green: #06c755;
  --line-hover: #05a747;
  --ig-gradient: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);

  --bg-main: #fbf9f6;
  --bg-card: #ffffff;
  --bg-card-alt: #f4efe8;

  --text-main: #1f262a;
  --text-muted: #5e686e;
  --text-light: #8e989e;

  --border-light: #e8e2d8;
  --border-card: #e4ddd2;

  --shadow-sm: 0 2px 8px rgba(12, 87, 118, 0.05);
  --shadow-md: 0 8px 24px rgba(12, 87, 118, 0.08);
  --shadow-lg: 0 16px 40px rgba(12, 87, 118, 0.12);
  --shadow-hover: 0 20px 32px rgba(178, 122, 60, 0.16);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 全站最小字體不低於 16px 強制保底 */
p,
span,
a,
li,
input,
textarea,
select,
button,
label,
small,
time,
.desc,
.text {
  font-size: max(16px, 1em);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   全站共用元件 (Layout, Header, Footer, Modals, Buttons)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--bg-card-alt);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--ci-gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--ci-blue);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* 頁首 Header 導覽列 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 2em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ci-gold);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--ci-gold);
  border-radius: 2px;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-line-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--line-green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.28);
}

.btn-line-header:hover {
  background: var(--line-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 199, 85, 0.35);
}

.btn-ig-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1ede6;
  color: var(--text-main);
  transition: all 0.2s;
}

.btn-ig-icon:hover {
  background: var(--ig-gradient);
  color: #fff;
  transform: rotate(6deg) scale(1.05);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 0.5rem;
}

/* 內頁統一橫幅 (Sub-Page Hero Header: About, Gallery, FAQ 共用) */
.page-hero {
  background: linear-gradient(135deg, #f7efe4 0%, #fbf9f6 100%);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.page-hero h1 {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--ci-blue);
  margin-bottom: 0.85rem;
}

.page-hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* 頁尾 Footer */
.site-footer {
  background: #111a1f;
  color: #cbd5e1;
  padding: 4.5rem 0 2rem;
  border-top: 3px solid var(--ci-gold);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h2 {
  font-size: 1.45rem;
  color: #fff;
  font-weight: 900;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  font-size: 16px;
}

.footer-social-links a:hover {
  background: var(--ci-gold);
}

.footer-col h3 {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--ci-gold);
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.75rem;
}

.footer-nav a {
  font-size: 16px;
  color: #94a3b8;
}

.footer-nav a:hover {
  color: var(--ci-gold);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  font-size: 16px;
  color: #64748b;
}

/* 右下角固定懸浮 LINE 諮詢按鈕 */
.floating-line-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--line-green);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.4);
}

.floating-line-btn:hover {
  background: var(--line-hover);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(6, 199, 85, 0.5);
}

/* Lightbox 彈窗模組 */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background: rgba(12, 28, 36, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  background: #fff;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
}

.lightbox-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  z-index: 10;
  background: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.lightbox-close-btn:hover {
  background: var(--ci-gold);
  color: #fff;
}

.lightbox-img-wrap {
  background: #111a1f;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 90vh;
}

.lightbox-img-wrap img {
  max-height: 85vh;
  width: auto;
  object-fit: contain;
}

.lightbox-details {
  padding: 2.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lightbox-details .tag {
  display: inline-block;
  background: var(--ci-gold-light);
  color: var(--ci-gold-hover);
  border: 1px solid var(--ci-gold-border);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.lightbox-details h2 {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--ci-blue);
  margin-bottom: 1rem;
}

.lightbox-details .desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.lightbox-story-box {
  background: var(--ci-blue-light);
  border-left: 4px solid var(--ci-blue);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 2rem;
}

.lightbox-story-box h4 {
  color: var(--ci-blue);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 0.5rem;
}

.lightbox-story-box p {
  font-size: 16px;
  color: #2c444e;
  line-height: 1.7;
}

.btn-line-modal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  background: var(--line-green);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.3);
}

.btn-line-modal:hover {
  background: var(--line-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   首頁專用元件 (Hero, Features, Preview, Order Steps, Banner)
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 5.5rem;
  background: radial-gradient(circle at 85% 15%, #f7efe4 0%, #fbf9f6 70%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--ci-gold-border);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  color: var(--ci-gold);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--ci-blue);
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: linear-gradient(135deg, #b27a3c 0%, #d4954f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.25rem;
}

.hero-btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.btn-hero-line {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--line-green);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(6, 199, 85, 0.35);
}

.btn-hero-line:hover {
  background: var(--line-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(6, 199, 85, 0.45);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1.5px solid var(--border-card);
  color: var(--ci-blue);
  font-size: 16px;
  font-weight: 700;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.btn-hero-secondary:hover {
  border-color: var(--ci-gold);
  color: var(--ci-gold-hover);
  background: var(--ci-gold-light);
}

.hero-showcase-card {
  position: relative;
}

.hero-img-main {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}

.hero-float-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--ci-gold-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-float-badge .dot-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ci-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ci-gold);
  font-size: 1.35rem;
}

.hero-float-badge h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ci-blue);
}

.hero-float-badge p {
  font-size: 16px;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: #fff;
  padding: 2.25rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--ci-gold-border);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--ci-blue-light);
  color: var(--ci-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--ci-blue-border);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--ci-blue);
}

.feature-card p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.preview-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s ease;
}

.preview-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--ci-gold-border);
}

.preview-img-wrap {
  height: 280px;
  overflow: hidden;
  background: #111a1f;
  position: relative;
}

.preview-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.preview-card:hover .preview-img-wrap img {
  transform: scale(1.06);
}

.preview-info {
  padding: 1.25rem 1.5rem;
}

.preview-info .tag {
  font-size: 16px;
  font-weight: 700;
  color: var(--ci-blue);
  background: var(--ci-blue-light);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.5rem;
  border: 1px solid var(--ci-blue-border);
}

.preview-info h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ci-blue);
  margin-bottom: 0.35rem;
}

.preview-info p {
  font-size: 16px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.step-item {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  text-align: center;
  position: relative;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ci-blue);
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 12px rgba(12, 87, 118, 0.3);
}

.step-item h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--ci-blue);
}

.step-item p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.line-cta-banner {
  background: linear-gradient(135deg, #06c755 0%, #05a747 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  text-align: center;
  box-shadow: 0 16px 36px rgba(6, 199, 85, 0.28);
  position: relative;
  overflow: hidden;
}

.line-cta-banner h2 {
  font-size: 2.3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.line-cta-banner p {
  font-size: 16px;
  opacity: 0.92;
  max-width: 650px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.btn-banner-white {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  color: #06c755;
  font-weight: 900;
  font-size: 16px;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.btn-banner-white:hover {
  background: #f8fafc;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   關於我們 (About Page) 專用元件
   ========================================================================== */
.about-story-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.about-img-box {
  position: relative;
}

.about-img-box img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 5px solid #fff;
}

.about-img-caption {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background: #fff;
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--ci-gold-border);
  font-size: 16px;
  font-weight: 800;
  color: var(--ci-gold);
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
  color: var(--ci-blue);
  line-height: 1.35;
}

.about-text p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.quote-box {
  border-left: 4px solid var(--ci-gold);
  background: var(--ci-gold-light);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ci-gold-hover);
  line-height: 1.7;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.philosophy-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
}

.philosophy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--ci-gold-border);
}

.philo-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ci-gold-light);
  color: var(--ci-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--ci-gold-border);
}

.philosophy-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  color: var(--ci-blue);
}

.philosophy-card p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   作品賞析 (Gallery Page) 專用元件
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: #fff;
  border: 1.5px solid var(--border-card);
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--ci-gold);
  color: var(--ci-gold-hover);
  background: var(--ci-gold-light);
}

.filter-btn.active {
  background: var(--ci-blue);
  border-color: var(--ci-blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(12, 87, 118, 0.35);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-item {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-hover);
  border-color: var(--ci-gold-border);
}

.gallery-thumb {
  height: 320px;
  position: relative;
  background: #111a1f;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-thumb img {
  transform: scale(1.08);
}

.gallery-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 28, 36, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-hover-overlay {
  opacity: 1;
}

.overlay-pill {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: var(--ci-blue);
  font-weight: 800;
  font-size: 16px;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transform: translateY(10px);
  transition: transform 0.3s ease;
  border: 1px solid var(--ci-gold-border);
}

.gallery-item:hover .overlay-pill {
  transform: translateY(0);
}

.gallery-content {
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-content .tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.gallery-content .cat-tag {
  font-size: 16px;
  font-weight: 700;
  color: var(--ci-blue);
  background: var(--ci-blue-light);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--ci-blue-border);
}

.gallery-content h3 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ci-blue);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.gallery-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.gallery-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: var(--text-light);
  font-weight: 600;
}

.read-more-text {
  color: var(--ci-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
}

/* ==========================================================================
   常見問題 (FAQ Page) 專用元件
   ========================================================================== */
.faq-layout {
  max-width: 860px;
  margin: 0 auto;
}

.faq-category-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ci-blue);
  margin: 2.5rem 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.faq-category-title:first-child {
  margin-top: 0;
}

.faq-category-title::before {
  content: "";
  width: 4px;
  height: 1.2rem;
  background: var(--ci-gold);
  border-radius: 2px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: var(--ci-gold-border);
}

.faq-item.active {
  border-color: var(--ci-blue);
  box-shadow: 0 4px 16px rgba(12, 87, 118, 0.12);
}

.faq-question {
  padding: 1.35rem 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ci-blue);
  line-height: 1.4;
  padding-right: 1rem;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ci-gold-light);
  color: var(--ci-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  border: 1px solid var(--ci-gold-border);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--ci-blue);
  color: #fff;
  border-color: var(--ci-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: #fbf9f6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 1.25rem 1.6rem 1.5rem;
  border-top: 1px solid var(--border-light);
}

.faq-answer p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.65rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: var(--ci-blue);
}

.faq-contact-card {
  margin-top: 4.5rem;
  background: #fff;
  border: 2px dashed var(--ci-gold-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.faq-contact-card h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--ci-blue);
}

.faq-contact-card p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   響應式斷點 (Responsive Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-btn-group {
    justify-content: center;
  }

  .hero-float-badge {
    left: 1rem;
    bottom: 1rem;
  }

  .features-grid,
  .preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .about-img-caption {
    right: 1rem;
    bottom: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--border-light);
  }

  .main-nav.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .header-cta-group .btn-line-header {
    display: none;
  }

  .lightbox-content {
    grid-template-columns: 1fr;
    max-height: 85vh;
  }

  .lightbox-img-wrap {
    max-height: 40vh;
  }

  .lightbox-details {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .features-grid,
  .preview-grid,
  .steps-row,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .line-cta-banner {
    padding: 2.5rem 1.5rem;
  }

  .line-cta-banner h2 {
    font-size: 1.75rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .floating-line-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.65rem 1rem;
    font-size: 16px;
  }

  .filter-bar {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.45rem 1rem;
    font-size: 16px;
  }
}

/* ==========================================================================
   GSAP 滾動視差優化與無障礙相容
   ========================================================================== */
.hero-section {
  overflow: hidden;
  position: relative;
}

.hero-text-content,
.hero-showcase-card,
.hero-float-badge {
  will-change: transform, opacity;
}

.preview-img-wrap {
  overflow: hidden;
  position: relative;
}

.preview-img-wrap img {
  will-change: transform;
  transform-origin: center center;
}

.feature-card,
.step-item,
.line-cta-banner {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {

  .hero-text-content,
  .hero-showcase-card,
  .hero-float-badge,
  .preview-img-wrap img,
  .feature-card,
  .step-item,
  .line-cta-banner {
    transform: none !important;
    opacity: 1 !important;
    will-change: auto !important;
  }
}