/* ==========================================================================
   訃聞格式師 專業商用版（fuwen.chengyilife.com）
   暗夜黑曜石燙金版 完整視覺系統（0.5px 香檳金髮絲紋 + 點按放大燈箱 + 作品集專區）
   ========================================================================== */

/* 1. 核心設計變數 */
:root {
  --bg-dark: #07090E;
  --bg-darker: #040508;
  --bg-surface: #0E121B;
  --bg-surface-elevated: #141926;
  --bg-card: rgba(14, 18, 27, 0.88);
  --bg-card-hover: rgba(22, 28, 42, 0.96);

  --gold-primary: #C5A059;
  --gold-light: #E8D096;
  --gold-lighter: #F6E7C4;
  --gold-dark: #8C6D33;
  --gold-glow: rgba(197, 160, 89, 0.35);
  --gold-gradient: linear-gradient(135deg, #F8ECD1 0%, #DFBA73 40%, #C5A059 70%, #906F34 100%);
  --gold-gradient-subtle: linear-gradient(135deg, rgba(232, 208, 150, 0.12) 0%, rgba(197, 160, 89, 0.04) 100%);

  --text-primary: #F8F7F4;
  --text-secondary: #D4CEBF;
  --text-muted: #9E988A;
  --text-gold: #E8D096;

  /* 0.5px 香檳金髮絲紋邊框 */
  --line-gold-hairline: 0.5px solid rgba(197, 160, 89, 0.65);
  --line-gold: rgba(197, 160, 89, 0.38);
  --line-gold-bright: rgba(197, 160, 89, 0.85);
  --line-gold-faint: rgba(197, 160, 89, 0.18);

  --font-serif: "Noto Serif TC", "Songti TC", "Source Han Serif TC", Georgia, serif;
  --font-sans: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.85), 0 0 1px 1px rgba(197, 160, 89, 0.25);
  --shadow-gold-button: 0 8px 24px rgba(197, 160, 89, 0.45);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

/* 2. 全域基礎重設與防折行設定 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 50% 12%, rgba(197, 160, 89, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 80% 65%, rgba(197, 160, 89, 0.08) 0%, transparent 50%),
    linear-gradient(to bottom, #07090E 0%, #040508 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  line-height: 1.7;
  padding-bottom: 90px;
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
}

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

button {
  font-family: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  background: none;
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

.text-gold {
  color: var(--gold-light);
}

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-serif {
  font-family: var(--font-serif);
}

.nowrap {
  white-space: nowrap !important;
}

/* 3. 全站通用的「暗夜黑曜石燙金框模組」（0.5px 香檳金髮絲紋邊框） */
.gold-frame-block {
  position: relative;
  background: radial-gradient(circle at 60% 40%, rgba(24, 32, 48, 0.65) 0%, rgba(7, 9, 14, 0.98) 100%);
  border: 0.5px solid rgba(197, 160, 89, 0.55);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.25rem;
  margin-bottom: 3.5rem;
  overflow: hidden;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(197, 160, 89, 0.12);
}

@media (min-width: 768px) {
  .gold-frame-block {
    padding: 3.25rem 2.5rem;
    border-radius: var(--radius-lg);
  }
}

@media (min-width: 1024px) {
  .gold-frame-block {
    padding: 3.75rem 3.5rem 3.25rem 3.5rem;
  }
}

/* 幾何四角裝飾線 */
.frame-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
}

@media (min-width: 768px) {
  .frame-corner {
    width: 48px;
    height: 48px;
  }
}

.frame-corner.top-left {
  top: 14px;
  left: 14px;
  border-top: 1.5px solid var(--line-gold-bright);
  border-left: 1.5px solid var(--line-gold-bright);
}

.frame-corner.top-right {
  top: 14px;
  right: 14px;
  border-top: 1.5px solid var(--line-gold-bright);
  border-right: 1.5px solid var(--line-gold-bright);
}

.frame-corner.bottom-left {
  bottom: 14px;
  left: 14px;
  border-bottom: 1.5px solid var(--line-gold-bright);
  border-left: 1.5px solid var(--line-gold-bright);
}

.frame-corner.bottom-right {
  bottom: 14px;
  right: 14px;
  border-bottom: 1.5px solid var(--line-gold-bright);
  border-right: 1.5px solid var(--line-gold-bright);
}

@media (min-width: 768px) {
  .frame-corner.top-left { top: 20px; left: 20px; border-width: 2px; }
  .frame-corner.top-right { top: 20px; right: 20px; border-width: 2px; }
  .frame-corner.bottom-left { bottom: 20px; left: 20px; border-width: 2px; }
  .frame-corner.bottom-right { bottom: 20px; right: 20px; border-width: 2px; }
}

/* 窗櫺紋理 (SVG) */
.frame-lattice-grid {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 52px;
  height: 52px;
  opacity: 0.35;
  pointer-events: none;
}

@media (min-width: 768px) {
  .frame-lattice-grid {
    top: 20px;
    right: 20px;
    width: 68px;
    height: 68px;
  }
}

/* 4. 頂部導覽列 (Navbar) */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 9, 14, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid rgba(197, 160, 89, 0.3);
  transition: var(--transition-normal);
}

.header-nav.scrolled {
  background: rgba(7, 9, 14, 0.98);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9);
  border-bottom-color: var(--gold-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.diamond-logo {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--gold-light);
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
  flex-shrink: 0;
  margin: 3px;
}

.diamond-logo span {
  transform: rotate(-45deg);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--gold-lighter);
}

.brand-main {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-lighter);
  white-space: nowrap;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--gold-lighter);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.btn-nav-login {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.btn-nav-login:hover {
  color: var(--gold-lighter);
}

.btn-nav-demo {
  border: 0.5px solid rgba(197, 160, 89, 0.75);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-sm);
  color: var(--gold-lighter);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-nav-demo:hover {
  background: var(--gold-gradient);
  color: #171206;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.4);
}

/* 5. 首頁 Hero 區塊（暗夜黑曜石燙金版 1:1 精確規格） */
.hero-wrapper {
  padding-top: 96px;
  padding-bottom: 20px;
}

@media (min-width: 768px) {
  .hero-wrapper {
    padding-top: 110px;
    padding-bottom: 30px;
  }
}

.hero-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-layout-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
  }
}

.hero-tag-classical {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hero-tag-classical {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
  }
}

.hero-main-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #FFF;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero-main-title {
    font-size: 3.4rem;
    margin-bottom: 1.5rem;
  }
}

.hero-paragraph {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .hero-paragraph {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 2rem;
  }
}

/* 重點價格特色小卡（單行對齊） */
.hero-price-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .hero-price-highlights {
    grid-template-columns: 1fr 1fr;
  }
}

.highlight-price-card {
  background: rgba(14, 18, 27, 0.88);
  border: 0.5px solid rgba(197, 160, 89, 0.45);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.highlight-price-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(197, 160, 89, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  flex-shrink: 0;
}

.highlight-price-card .title {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.highlight-price-card .val {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-lighter);
  white-space: nowrap;
}

/* 底部：尊貴・專業・禮贊 —— 香檳金 CTA 按鈕 */
.hero-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid rgba(197, 160, 89, 0.3);
}

.hero-motto {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold-light);
  letter-spacing: 0.2em;
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hero-motto {
    font-size: 1.05rem;
  }
}

.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  color: #171206;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 24px rgba(197, 160, 89, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-normal);
}

@media (min-width: 768px) {
  .btn-hero-cta {
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }
}

.btn-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(197, 160, 89, 0.6);
}

/* 首頁右側：暗夜黑曜石燙金封面展台合成圖與可放大燈箱 */
.hero-showcase-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.5px solid rgba(197, 160, 89, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(197, 160, 89, 0.2);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-showcase-box:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 45px rgba(197, 160, 89, 0.35);
}

.hero-showcase-img {
  width: 100%;
  height: auto;
  display: block;
}

.zoom-hint-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  border: 0.5px solid rgba(197, 160, 89, 0.5);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  pointer-events: none;
}

/* 6. 痛點區 (Pain Points) */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pain-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.pain-card {
  background: var(--bg-card);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.35rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.pain-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.5);
  box-shadow: var(--shadow-card);
}

.pain-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(197, 160, 89, 0.12);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  border: 0.5px solid rgba(197, 160, 89, 0.4);
}

.pain-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #FFF;
}

.pain-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.pain-solution {
  padding: 0.75rem 0.9rem;
  background: rgba(197, 160, 89, 0.09);
  border: 0.5px solid rgba(197, 160, 89, 0.4);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--gold-lighter);
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.pain-solution svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold-primary);
}

/* 7. 一物多產 (Ecosystem Bento) */
.ecosystem-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .ecosystem-bento-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.bento-card {
  background: var(--bg-card);
  border: 0.5px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

@media (min-width: 768px) {
  .bento-card {
    padding: 2rem;
    border-radius: var(--radius-xl);
  }
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
  box-shadow: var(--shadow-card);
}

.bento-card.span-2 {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .bento-card.span-2 {
    grid-column: span 2;
  }
}

.bento-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(197, 160, 89, 0.15);
  border: 0.5px solid rgba(197, 160, 89, 0.45);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.bento-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFF;
}

.bento-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.bento-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.bento-features-item {
  font-size: 0.85rem;
  color: var(--gold-lighter);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.bento-features-item svg {
  color: var(--gold-primary);
  flex-shrink: 0;
}

/* 8. 六大真實版型 360° 互動區 (Templates Showcase) */
.filter-button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  transition: var(--transition-fast);
}

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

.filter-btn.active {
  background: var(--gold-gradient);
  color: #171206;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.4);
}

.showcase-viewer {
  background: var(--bg-card);
  border: 0.5px solid var(--line-gold-bright);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .showcase-viewer {
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2.5rem;
  }
}

.viewer-top-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 0.5px solid rgba(197, 160, 89, 0.25);
}

@media (min-width: 640px) {
  .viewer-top-bar {
    flex-direction: row;
  }
}

.viewer-info-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  white-space: nowrap;
}

.viewer-side-toggle {
  display: inline-flex;
  padding: 3px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-full);
  border: 0.5px solid rgba(197, 160, 89, 0.35);
}

.side-toggle-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition-fast);
}

.side-toggle-btn.active {
  background: var(--gold-gradient);
  color: #171206;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.viewer-display-area {
  position: relative;
  background: #040508;
  border-radius: var(--radius-md);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  min-height: auto;
  cursor: zoom-in;
  max-width: 100%;
}

@media (min-width: 768px) {
  .viewer-display-area {
    padding: 1.25rem;
  }
}

.viewer-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.viewer-badge-overlay {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(8px);
  border: 0.5px solid rgba(197, 160, 89, 0.45);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--gold-light);
  white-space: nowrap;
}

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

@media (min-width: 640px) {
  .template-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .template-cards-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.template-card-btn {
  background: rgba(14, 18, 27, 0.75);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.65rem;
  text-align: center;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.template-card-btn:hover {
  border-color: rgba(197, 160, 89, 0.6);
  background: rgba(24, 32, 48, 0.9);
  transform: translateY(-3px);
}

.template-card-btn.active {
  border-color: var(--gold-light);
  background: rgba(197, 160, 89, 0.15);
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.25);
}

.template-thumb-preview {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.65rem;
  background: #000;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
}

.template-thumb-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.template-code-badge {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 0.2rem;
  white-space: nowrap;
}

.template-name {
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-bottom: 0.2rem;
  white-space: nowrap;
}

.template-scope {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   ★ 9. 全新「精選實例作品集 (Portfolio Gallery)」專區 ★
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.gallery-card {
  background: var(--bg-card);
  border: 0.5px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-light);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(197, 160, 89, 0.25);
}

.gallery-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
  overflow: hidden;
}

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

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.05);
}

.gallery-category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  border: 0.5px solid rgba(197, 160, 89, 0.4);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--gold-lighter);
  font-weight: 600;
  white-space: nowrap;
}

.gallery-body {
  padding: 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 0.4rem;
}

.gallery-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

.gallery-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 600;
  padding-top: 0.65rem;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   ★ 10. 高清圖片點按放大燈箱 (Lightbox Modal) ★
   ========================================================================== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 5, 8, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  border: 0.5px solid rgba(197, 160, 89, 0.6);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(197, 160, 89, 0.3);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1rem;
  color: var(--gold-lighter);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.05em;
}

.lightbox-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 0.5px solid rgba(197, 160, 89, 0.5);
  color: #FFF;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

/* 11. 4 大儲值方案 (Top-up Pricing) */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .pricing-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .pricing-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pricing-card {
  background: var(--bg-card);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.35rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}

@media (min-width: 768px) {
  .pricing-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-xl);
  }
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(197, 160, 89, 0.5);
  box-shadow: var(--shadow-card);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(24, 32, 48, 0.95) 0%, rgba(14, 18, 27, 0.95) 100%);
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 20px 45px -10px rgba(197, 160, 89, 0.35);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.pricing-card-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: #1A1305;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 1.1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(197, 160, 89, 0.45);
  white-space: nowrap;
}

.pricing-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 0.35rem;
  text-align: center;
  white-space: nowrap;
}

.pricing-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.35rem;
  white-space: nowrap;
}

.pricing-amount-box {
  text-align: center;
  padding-bottom: 1.35rem;
  margin-bottom: 1.35rem;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}

.pricing-currency {
  font-size: 1.1rem;
  color: var(--text-secondary);
  vertical-align: super;
}

.pricing-number {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.pricing-points-reward {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-lighter);
  background: rgba(197, 160, 89, 0.18);
  border: 0.5px solid rgba(197, 160, 89, 0.45);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.pricing-feature-item {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.pricing-feature-item svg {
  color: var(--gold-primary);
  flex-shrink: 0;
}

/* 12. 互動式點數試算計算機 (5 大項目) */
.calculator-box {
  background: var(--bg-card);
  border: 0.5px solid var(--line-gold-bright);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-card);
  max-width: 1040px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .calculator-box {
    padding: 2.75rem 2.5rem;
    border-radius: var(--radius-xl);
  }
}

.calc-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 480px) {
  .calc-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .calc-items-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .calc-items-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.calc-item-card {
  background: rgba(7, 9, 14, 0.85);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.15rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.calc-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 0.25rem;
  white-space: nowrap;
}

.calc-item-rate {
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-bottom: 0.85rem;
  white-space: nowrap;
}

.calc-stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-full);
  padding: 3px;
}

.calc-btn-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.15);
  color: var(--gold-lighter);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.calc-btn-step:hover {
  background: var(--gold-gradient);
  color: #171206;
}

.calc-qty-display {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  width: 24px;
  text-align: center;
  color: #FFF;
}

.calc-result-summary {
  background: rgba(14, 18, 27, 0.95);
  border: 0.5px solid rgba(197, 160, 89, 0.5);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .calc-result-summary {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 2rem;
  }
}

.calc-points-total {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.calc-points-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.calc-points-value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

.calc-recommendation-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.calc-rec-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.calc-rec-pack-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-lighter);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

/* 13. FAQ 手風琴 */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(197, 160, 89, 0.45);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.35rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 600;
  color: #FFF;
  cursor: pointer;
  background: none;
}

.faq-icon-arrow {
  width: 20px;
  height: 20px;
  color: var(--gold-light);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
  padding: 0 1.35rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 1.35rem 1.25rem 1.35rem;
}

/* 14. 品牌保證 */
.guarantee-box {
  background: linear-gradient(135deg, rgba(24, 32, 48, 0.85) 0%, rgba(14, 18, 27, 0.85) 100%);
  border: 0.5px solid rgba(197, 160, 89, 0.45);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .guarantee-box {
    padding: 3.5rem;
    border-radius: var(--radius-xl);
  }
}

.guarantee-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .guarantee-title {
    font-size: 2.2rem;
  }
}

.guarantee-desc {
  max-width: 700px;
  margin: 0 auto 2rem auto;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
}

/* 15. 頁尾 */
.site-footer {
  background: #040508;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  padding: 50px 0 30px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.footer-desc {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

/* 16. 手機端常駐浮動導購列 */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(7, 9, 14, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 0.5px solid rgba(197, 160, 89, 0.45);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.85);
  padding: 0.65rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

@media (min-width: 1024px) {
  .mobile-sticky-cta {
    display: none;
  }
}

.sticky-promo-text {
  font-size: 0.76rem;
  color: var(--gold-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-weight: 600;
  white-space: nowrap;
}

.sticky-btn-group {
  display: flex;
  gap: 0.5rem;
}

.sticky-btn-group .btn-secondary,
.sticky-btn-group .btn-primary {
  flex: 1;
  padding: 0.6rem 0.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
  justify-content: center;
}

/* 17. 儲值彈窗 Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-dialog {
  background: var(--bg-surface);
  border: 0.5px solid var(--gold-light);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 0.3rem;
  white-space: nowrap;
}

.modal-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.modal-tier-select {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.modal-tier-card {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-tier-card:hover {
  border-color: rgba(197, 160, 89, 0.5);
  background: rgba(197, 160, 89, 0.08);
}

.modal-tier-card.selected {
  border-color: var(--gold-light);
  background: rgba(197, 160, 89, 0.15);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.25);
}

.modal-tier-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #FFF;
  white-space: nowrap;
}

.modal-tier-pts {
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 600;
  white-space: nowrap;
}

.modal-tier-price {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-lighter);
  white-space: nowrap;
}

.modal-action-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 0.95rem;
}

/* 18. 按鈕通用類別 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  background: var(--gold-gradient);
  color: #171206;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-gold-button);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(197, 160, 89, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  background: rgba(197, 160, 89, 0.09);
  border: 0.5px solid rgba(197, 160, 89, 0.55);
  color: var(--gold-lighter);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-normal);
}

.btn-secondary:hover {
  background: rgba(197, 160, 89, 0.2);
  border-color: var(--gold-light);
  color: #FFF;
  transform: translateY(-2px);
}

.toast-container {
  position: fixed;
  top: 85px;
  right: 15px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: rgba(14, 18, 27, 0.96);
  backdrop-filter: blur(12px);
  border: 0.5px solid rgba(197, 160, 89, 0.55);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  color: #FFF;
  font-size: 0.92rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* 15. 教學指引專區 */
.section-tutorial {
  padding: 30px 0;
}

