/* ============================================
   壤製所｜文創 - Design System
   多頁式官網共用樣式
   ============================================ */

/* ----- 1. CSS Variables / Design Tokens ----- */
:root {
  /* 色彩 - 壤土棕系 */
  --soil-50:  #F8F5F0;
  --soil-100: #F0EAE0;
  --soil-200: #E0D3BD;
  --soil-300: #C8B190;
  --soil-400: #A88E68;
  --soil-500: #8B7355;
  --soil-600: #6B4423;
  --soil-700: #553719;
  --soil-800: #3D2817;
  --soil-900: #231811;

  /* 色彩 - 嫩芽綠系 */
  --sprout-50:  #F4F7EA;
  --sprout-100: #E6EDD0;
  --sprout-200: #CDDB9F;
  --sprout-300: #A8C266;
  --sprout-400: #7A9B3F;
  --sprout-500: #5F7E2E;
  --sprout-600: #4A6324;
  --sprout-700: #3A4D1E;

  /* 色彩 - 強調色 */
  --accent-clay: #C4683A;    /* 陶土橘（用於數據強調） */
  --accent-gold: #C4A65A;    /* 土金色（用於高光） */
  --accent-seal: #B23A2C;    /* 印章紅（用於落款、重點強調） */

  /* 色彩 - 中性 */
  --ink: #1A1410;            /* 墨黑（用於最高對比文字） */
  --paper: #FBF8F2;          /* 紙白（用於高雅背景） */
  --paper-warm: #F5EFE3;     /* 暖紙（次背景） */

  /* 字型 */
  --font-serif: "Noto Serif TC", "Songti TC", "DFKai-SB", serif;
  --font-sans:  "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

  /* 字級（流體排版）v20：全階流體化——桌機=原尺寸、手機等比縮小、中間平滑過渡，消除斷點跳行 */
  --text-2xs:  clamp(0.625rem, 0.553rem + 0.296vw, 0.6875rem);
  --text-xs:   clamp(0.6875rem, 0.61rem + 0.33vw, 0.75rem);
  --text-sm:   clamp(0.8125rem, 0.7rem + 0.46vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.82rem + 0.49vw, 1rem);
  --text-lg:   clamp(1.03rem, 0.9rem + 0.55vw, 1.125rem);
  --text-xl:   clamp(1.125rem, 0.98rem + 0.6vw, 1.25rem);
  --text-2xl:  clamp(1.3rem, 1.1rem + 0.8vw, 1.5rem);
  --text-3xl-s: clamp(1.65rem, 1.43rem + 0.9vw, 2rem);   /* v20: 原 2rem 專用槽，桌機維持 32px */
  --text-3xl:  clamp(1.75rem, 4vw, 2.25rem);
  --text-4xl:  clamp(2rem, 5vw, 3rem);
  --text-5xl:  clamp(2.5rem, 6vw, 3.75rem);
  --text-6xl:  clamp(3rem, 8vw, 5rem);
  --text-7xl:  clamp(3.5rem, 10vw, 6rem);

  /* 間距 */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* 容器寬度 */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1440px;

  /* 圓角 */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* 陰影 */
  --shadow-sm: 0 2px 8px rgba(61, 40, 23, 0.06);
  --shadow-md: 0 8px 24px rgba(61, 40, 23, 0.10);
  --shadow-lg: 0 20px 48px rgba(61, 40, 23, 0.15);

  /* 動畫 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- 2. Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--soil-50);
  color: var(--soil-900);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
button { background: none; border: none; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ----- 3. Typography ----- */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

h1, h2, h3, h4, h5 { font-family: var(--font-serif); line-height: 1.2; font-weight: 700; }
.h-display { font-family: var(--font-serif); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; }
.h-eyebrow { font-size: var(--text-xs); letter-spacing: 0.3em; color: var(--soil-600); font-weight: 500; text-transform: uppercase; }

/* ----- 4. Layout ----- */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.section { padding: 5rem 0; }
.section-lg { padding: 6rem 0; }
@media (min-width: 1024px) {
  .section { padding: 7rem 0; }
  .section-lg { padding: 9rem 0; }
}

.bg-cream { background: var(--soil-50); }
.bg-paper { background: #FDFBF7; }
.bg-white { background: #fff; }
.bg-dark { background: var(--soil-800); color: var(--soil-50); }
.bg-sprout-tint { background: var(--sprout-50); }

/* v9: 防止 fixed nav 擋住 section heading（錨點跳轉 + 滑動 anchor） */
html { scroll-padding-top: 90px; scroll-behavior: smooth; }
section[data-code] { scroll-margin-top: 90px; }
section[data-code] > .container > .section-header { padding-top: 0.5rem; }

/* ----- 5. Navigation ----- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.3s var(--ease);
  background: transparent;
}
.nav.scrolled {
  background: rgba(248, 245, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 1024px) {
  .nav-inner { height: 88px; padding: 0 2rem; }
}

.logo {
  display: flex; align-items: center; gap: 0.625rem;
}
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--soil-800);
  display: flex; align-items: center; justify-content: center;
  color: var(--soil-50);
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: var(--text-lg);
  transition: transform 0.3s var(--ease);
}
.logo:hover .logo-mark { transform: scale(1.06); }
.logo-text { line-height: 1.1; }
.logo-name { font-family: var(--font-serif); font-weight: 700; color: var(--soil-800); font-size: var(--text-lg); }
.logo-sub { font-size: var(--text-2xs); color: var(--soil-600); letter-spacing: 0.25em; margin-top: 2px; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}
.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--soil-700);
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--soil-900); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--sprout-400);
}

/* mobile menu toggle */
.menu-toggle {
  display: flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--soil-800);
}
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}
.mobile-menu {
  display: none;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--soil-100);
  background: var(--soil-50);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.875rem 0;
  color: var(--soil-700);
  font-weight: 500;
  border-bottom: 1px solid var(--soil-100);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ----- 6. Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--text-base);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--soil-800);
  color: var(--soil-50);
  box-shadow: 0 4px 14px rgba(61, 40, 23, 0.18);
}
.btn-primary:hover {
  background: var(--soil-700);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(61, 40, 23, 0.28);
}
.btn-secondary {
  background: transparent;
  color: var(--soil-800);
  border: 1.5px solid var(--soil-300);
}
.btn-secondary:hover {
  background: var(--soil-800);
  color: var(--soil-50);
  border-color: var(--soil-800);
}
.btn-ghost {
  color: var(--soil-700);
  padding: 0.875rem 0.5rem;
}
.btn-ghost:hover { color: var(--soil-900); }
.btn-sprout {
  background: var(--sprout-500);
  color: white;
}
.btn-sprout:hover {
  background: var(--sprout-600);
  transform: translateY(-2px);
}
.btn-lg { padding: 1.125rem 2.25rem; font-size: var(--text-base); }

/* ----- 7. Decorative ----- */
.deco-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--sprout-400);
  vertical-align: middle;
}
.deco-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sprout-400);
}

/* ----- 8. Cards ----- */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--soil-100);
  transition: all 0.4s var(--ease);
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sprout-200);
}
@media (min-width: 1024px) {
  .card { padding: 2.5rem; }
}

/* ----- 9. Hero ----- */
.hero {
  padding-top: 9rem;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(168, 194, 102, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(196, 166, 90, 0.15) 0%, transparent 55%),
    linear-gradient(135deg, var(--soil-50) 0%, var(--soil-100) 100%);
}
@media (min-width: 1024px) {
  .hero { padding-top: 11rem; padding-bottom: 8rem; }
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ----- 10. Forms ----- */
.field { margin-bottom: 1.25rem; }
.field-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--soil-700);
  margin-bottom: 0.5rem;
}
.field-input,
.field-textarea,
.field-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--soil-200);
  background: white;
  font-size: var(--text-base);
  color: var(--soil-900);
  transition: all 0.2s var(--ease);
}
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  outline: none;
  border-color: var(--sprout-400);
  box-shadow: 0 0 0 4px rgba(122, 155, 63, 0.15);
}
.field-input::placeholder, .field-textarea::placeholder {
  color: var(--soil-400);
}

/* ----- 11. Stats / Data ----- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (min-width: 1024px) {
  .stat-grid { gap: 3rem; }
}
.stat {
  border-left: 2px solid var(--soil-200);
  padding-left: 1rem;
}
.stat:first-child { border-left: none; padding-left: 0; }
@media (min-width: 1024px) {
  .stat { padding-left: 2.5rem; }
}
.stat-number {
  font-family: var(--font-serif);
  font-weight: 900;
  color: var(--soil-800);
  font-size: clamp(1.875rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
  font-feature-settings: "tnum";
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--soil-600);
  font-weight: 500;
  margin-top: 0.5rem;
}
.stat-source {
  font-size: var(--text-2xs);
  color: var(--soil-500);
  margin-top: 0.25rem;
}

/* ----- 12. Tags / Chips ----- */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  background: var(--sprout-50);
  color: var(--sprout-600);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.chip-soil { background: var(--soil-100); color: var(--soil-700); }
.chip-clay { background: rgba(196, 104, 58, 0.1); color: var(--accent-clay); }

/* ----- 13. Animations ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 300ms; }

/* ----- 14. Footer ----- */
.footer {
  background: var(--soil-900);
  color: var(--soil-300);
  padding: 4rem 0 2rem;
}
.footer a { color: var(--soil-300); transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--sprout-300); }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
}
.footer-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--soil-50);
  margin-bottom: 1.25rem;
  font-size: var(--text-base);
}
.footer-list { list-style: none; padding: 0; }
.footer-list li { margin-bottom: 0.75rem; font-size: var(--text-sm); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--soil-800);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--soil-500);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-social {
  display: flex; gap: 0.75rem;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--soil-800);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease);
}
.footer-social a:hover { background: var(--sprout-500); color: white; }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

/* ----- 15. Image Placeholders ----- */
.img-placeholder {
  background:
    linear-gradient(135deg, rgba(122, 155, 63, 0.08) 0%, rgba(196, 166, 90, 0.12) 100%),
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(107, 68, 35, 0.025) 14px, rgba(107, 68, 35, 0.025) 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soil-400);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
}

/* ----- 16. KPI Table（小西案例專用） ----- */
.kpi-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.kpi-table th, .kpi-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--soil-100);
}
.kpi-table th {
  background: var(--soil-800);
  color: var(--soil-50);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-base);
}
.kpi-table td { font-size: var(--text-base); }
.kpi-table tr:last-child td { border-bottom: none; }
.kpi-table .achieved { color: var(--sprout-500); font-weight: 700; }
.kpi-table .target { color: var(--soil-500); }

/* ----- 17. Utilities ----- */
.text-center { text-align: center; }
.text-soil-500 { color: var(--soil-500); }
.text-soil-600 { color: var(--soil-600); }
.text-soil-700 { color: var(--soil-700); }
.text-soil-800 { color: var(--soil-800); }
.text-soil-900 { color: var(--soil-900); }
.text-sprout { color: var(--sprout-500); }
.text-sprout-600 { color: var(--sprout-600); }
.text-clay { color: var(--accent-clay); }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.italic { font-style: italic; }

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

.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

/* ----- 18. Page Section Header ----- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .eyebrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-size: var(--text-5xl);
  color: var(--soil-900);
  margin-bottom: 1rem;
}
.section-header .lead {
  color: var(--soil-600);
  font-size: var(--text-lg);
  max-width: 36rem;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .section-header { margin-bottom: 5rem; }
  .section-header .lead { font-size: var(--text-xl); }
}

/* ----- 19. Breadcrumb ----- */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--soil-500);
  padding-top: 9rem;
  padding-bottom: 1.5rem;
}
.breadcrumb a { color: var(--soil-600); }
.breadcrumb a:hover { color: var(--soil-900); }
.breadcrumb .sep { color: var(--soil-300); }
@media (min-width: 1024px) {
  .breadcrumb { padding-top: 10rem; }
}

/* v3-fix: 非首頁 navbar 預設要有背景（避免跟 breadcrumb 重疊） */
body:not([data-page="home"]) .nav {
  background: rgba(248, 245, 240, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ----- 20. Print / Accessibility ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

::selection { background: var(--sprout-200); color: var(--soil-900); }

/* ============================================
   ==== CIS v2 升級樣式 ====
   ============================================ */

/* ----- 21. Hero v2 - 直書 + 印章感 ----- */
.hero-v2 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 70% 30%, rgba(122, 155, 63, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(196, 166, 90, 0.10) 0%, transparent 60%),
    linear-gradient(135deg, var(--paper) 0%, var(--paper-warm) 100%);
}
.hero-v2::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}
@media (min-width: 1024px) {
  .hero-v2 { padding: 7rem 0 6rem; }
}

/* 直書字（傳統文化感） */
.vertical-text {
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-serif);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.15em;
  color: var(--ink);
}
.vertical-text-pair {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: center;
}
@media (min-width: 1024px) {
  .vertical-text-pair { gap: 2.5rem; }
}

/* 印章感落款 */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--accent-seal);
  color: var(--paper);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  line-height: 1;
  text-align: center;
  transform: rotate(-3deg);
  box-shadow: 0 4px 12px rgba(178, 58, 44, 0.25);
  flex-shrink: 0;
}
.seal-sm {
  width: 40px;
  height: 40px;
  font-size: var(--text-2xs);
}
.seal-square {
  border-radius: 4px;
}

/* Hero 主視覺包裝 */
.hero-display {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.hero-display .vertical-text {
  font-size: clamp(4rem, 12vw, 7rem);
}
.hero-display .divider-vertical {
  width: 1.5px;
  height: 240px;
  background: linear-gradient(to bottom, transparent, var(--soil-400) 30%, var(--soil-400) 70%, transparent);
  align-self: center;
}
@media (max-width: 767px) {
  .hero-display { flex-direction: row; justify-content: center; }
  .hero-display .vertical-text { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-display .divider-vertical { height: 180px; }
}

/* Hero 二欄佈局 */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* 種子萌芽插畫容器 */
.seed-illustration {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  position: relative;
}

/* ----- 22. Pull quote / Manifesto ----- */
.manifesto {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.manifesto .em { color: var(--accent-seal); font-weight: 700; }
.manifesto .em-sprout { color: var(--sprout-500); font-weight: 700; }

/* ----- 23. Process Timeline ----- */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--sprout-400), var(--soil-300));
}
.timeline-item {
  position: relative;
  padding: 0 0 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--sprout-500);
}

/* ----- 24. 案例卡片 v2 ----- */
.case-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--soil-100);
  transition: all 0.4s var(--ease);
  text-decoration: none;
  color: inherit;
}
.case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sprout-200);
}
.case-card-image {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.case-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(35, 24, 17, 0.4) 0%, transparent 50%);
}
.case-card-body { padding: 1.75rem 1.5rem; }
@media (min-width: 1024px) {
  .case-card-body { padding: 2rem; }
}

/* ----- 25. 文章卡（Blog） ----- */
.article-card {
  display: block;
  padding: 1.75rem;
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--soil-100);
  transition: all 0.3s var(--ease);
  color: inherit;
  text-decoration: none;
}
.article-card:hover {
  background: white;
  border-color: var(--sprout-300);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.article-meta {
  display: flex;
  gap: 0.875rem;
  color: var(--soil-500);
  font-size: var(--text-xs);
  margin-bottom: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ----- 26. 空狀態 / 開發中 ----- */
.coming-soon {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--paper-warm);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--soil-200);
}
.coming-soon .icon {
  font-size: var(--text-4xl);
  margin-bottom: 1rem;
  opacity: 0.6;
}

/* ----- 27. Email mailto link styling ----- */
.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--soil-800);
  text-decoration: none;
  border-bottom: 1px solid var(--soil-300);
  transition: all 0.2s var(--ease);
  padding-bottom: 2px;
}
.email-link:hover {
  color: var(--sprout-600);
  border-color: var(--sprout-500);
}

/* ----- 28. 落款區（每頁底部） ----- */
.signature-block {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--soil-100);
  border-bottom: 1px solid var(--soil-100);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--soil-600);
}

/* ----- 29. Section 子標題 ----- */
.section-subtitle {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--soil-800);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

/* ----- 30. 文字大圖混排 ----- */
.split-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .split-block { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split-block.split-3-2 { grid-template-columns: 3fr 2fr; }
  .split-block.split-2-3 { grid-template-columns: 2fr 3fr; }
}

/* ----- 31. List items 帶印章感 ----- */
.fancy-list { list-style: none; padding: 0; }
.fancy-list li {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--soil-100);
  align-items: flex-start;
}
.fancy-list li:last-child { border-bottom: none; }
.fancy-list .num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sprout-100);
  color: var(--sprout-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-base);
}

/* ----- 32. 隱形連結保留 ----- */
.unstyled-link {
  color: inherit;
  text-decoration: none;
}

/* ----- 33. photo-slot 佔位框（v4 升級：像「設計過的拍攝規格說明」） ----- */
.photo-slot {
  position: relative;
  background:
    linear-gradient(135deg, rgba(176, 142, 88, 0.04) 0%, rgba(176, 142, 88, 0.08) 100%),
    repeating-linear-gradient(
      45deg,
      var(--paper-warm),
      var(--paper-warm) 12px,
      rgba(176, 142, 88, 0.03) 12px,
      rgba(176, 142, 88, 0.03) 24px
    );
  border: 1.5px dashed rgba(124, 95, 56, 0.35);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}
.photo-slot::before {
  content: "拍攝規格";
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--sprout-600);
  background: var(--paper-warm);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 95, 56, 0.2);
}
.photo-slot::after {
  content: "";
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  font-size: var(--text-2xs);
  color: var(--soil-400);
}
.photo-slot .icon {
  font-size: var(--text-3xl);
  opacity: 0.5;
  margin-top: 0.5rem;
}
.photo-slot .label {
  font-family: var(--font-serif);
  color: var(--soil-800);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.02em;
}
.photo-slot .hint {
  color: var(--soil-600);
  font-size: var(--text-sm);
  max-width: 30rem;
  line-height: 1.75;
}
.photo-slot .specs {
  color: var(--soil-500);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}


/* ============================================
   v3-floating-cta: 固定右下角諮詢按鈕（競品分析後補）
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  background: var(--accent-seal);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(178, 58, 44, 0.45);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: var(--font-sans);
}
.floating-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(178, 58, 44, 0.55);
}
.floating-cta::before {
  content: "💬";
  font-size: var(--text-lg);
}
body[data-ann-mode] .floating-cta { display: none; }
body[data-page="contact"] .floating-cta { display: none; }
@media (max-width: 640px) {
  .floating-cta {
    bottom: 16px;
    right: 16px;
    padding: 0.75rem 1rem;
    font-size: var(--text-sm);
    min-height: 44px;  /* v8 RWD: 觸控目標 */
    display: inline-flex;
    align-items: center;
  }
}

/* v8 RWD：觸控裝置（hover 不可用 + 粗指標）按鈕加大 */
@media (hover: none) and (pointer: coarse) {
  .btn, .btn-primary, .btn-secondary, .btn-ghost, .btn-sprout {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
  }
  /* 表單欄位 16px 字體避免 iOS Safari 自動縮放 */
  input[type="text"], input[type="email"], input[type="tel"], textarea, select {
    font-size: 16px !important;
  }
}

/* v8 RWD：列印模式優化（萬一客戶列印報價/案例頁） */
@media print {
  .floating-cta, .nav, .footer, #site-header, #site-footer { display: none !important; }
  body { background: white !important; color: black !important; }
  a { text-decoration: underline; color: black; }
  .reveal { opacity: 1 !important; transform: none !important; }
  section { page-break-inside: avoid; }
}

/* v8 RWD：小手機 < 480px 額外優化 */
@media (max-width: 479px) {
  /* 案例頁 6 張現場紀實網格從 3 欄改 2 欄 */
  section[data-code="CX-07"] [style*="grid-template-columns: repeat(3"],
  section[data-code="CB-FIELD"] [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  /* Container padding 縮小避免擠 */
  .container { padding-left: 1rem; padding-right: 1rem; }
}

/* ============================================
   v3-visual-enhance: 視覺優化（2026-05-19）
   - 強化留白
   - 提升 photo-slot 質感
   - 微調 hero 印章
   ============================================ */

/* photo-slot v5 增強：徽章 + 斜紋 + 壤字浮水印（融合 v3 與 v5 設計） */
.photo-slot {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(176, 142, 88, 0.04) 0%, rgba(176, 142, 88, 0.08) 100%),
    repeating-linear-gradient(
      45deg,
      var(--paper-warm),
      var(--paper-warm) 12px,
      rgba(176, 142, 88, 0.03) 12px,
      rgba(176, 142, 88, 0.03) 24px
    );
  border: 1.5px dashed rgba(124, 95, 56, 0.35);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  margin: 2rem 0;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.photo-slot::before {
  content: "拍攝規格";
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  z-index: 2;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--sprout-600);
  background: var(--paper-warm);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 95, 56, 0.2);
}
.photo-slot::after {
  content: "壤";
  position: absolute;
  right: -2rem;
  bottom: -4rem;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 16rem;
  color: var(--soil-300);
  opacity: 0.12;
  z-index: 0;
  user-select: none;
  pointer-events: none;
  line-height: 1;
}
.photo-slot > * { position: relative; z-index: 1; }
.photo-slot .icon {
  font-size: var(--text-3xl);
  opacity: 0.55;
  margin-top: 0.5rem;
}
.photo-slot .label {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--soil-800);
  letter-spacing: 0.02em;
}
.photo-slot .hint {
  font-size: var(--text-sm);
  color: var(--soil-600);
  max-width: 30rem;
  line-height: 1.75;
}
.photo-slot .specs {
  font-size: var(--text-xs);
  color: var(--soil-500);
  letter-spacing: 0.12em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

/* Hero 印章微調：更精緻陰影 */
.seal-square {
  box-shadow: 0 8px 24px rgba(178, 58, 44, 0.25), 
              inset 0 -2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}
.seal-square:hover { transform: rotate(-2deg) scale(1.05); }

/* 段落留白微調 */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }

/* 卡片 hover 增強 */
.card-hover {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

/* 數據區塊強化 */
.stat-number {
  font-feature-settings: 'tnum';
  letter-spacing: -0.02em;
}

/* CTA 按鈕 hover 微調 */
.btn-primary, .btn-sprout {
  transition: all 0.25s ease;
}
.btn-primary:hover, .btn-sprout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* breadcrumb 統一 */
.breadcrumb {
  padding: 1.25rem 0 0.5rem;
  font-size: var(--text-sm);
  color: var(--soil-500);
}
.breadcrumb a {
  color: var(--soil-600);
  text-decoration: none;
  border-bottom: 1px dotted var(--soil-300);
}
.breadcrumb a:hover { color: var(--sprout-600); }
.breadcrumb .sep { margin: 0 0.5rem; color: var(--soil-300); }

/* ============================================
   v20：CJK 斷行優化——標題行數平衡、內文避免孤字成行
   （text-wrap 為漸進增強，舊瀏覽器自動忽略）
   ============================================ */
h1, h2, h3, h4, .h-display,
.stat-label, .stat-source, .card-title { text-wrap: balance; }
p, li, dd, figcaption { text-wrap: pretty; }
