
:root {
  --color-bg-base: #F3EFEC;        /* 精品柔和米灰底色 */
  --color-text-title: #0f1c36;      
  --color-text-body: #64748b;        
  --color-navy-dark: #0f1c36;        
  --color-gold-pill: #f7d5a4;        
  --color-gold-pill-hover: #f1c78e;
  --color-gold-text: #c5a880;        

  --font-serif: 'Noto Serif TC', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--color-bg-base);
  color: var(--color-text-body);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.fw-bold {
  font-weight: 700 !important;
}

.fw-extrabold {
  font-weight: 800 !important;
  letter-spacing: -0.5px;
}

.text-dark-custom {
  color: #0f1c36 !important;
}

.text-muted-custom {
  color: #64748b !important;
}

/* ==========================================================================
   🚀 1. HERO 首屏專屬視覺系統 (頂部完美貼齊 + 手機版黃金比例重塑)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #204375 0%, #162f56 55%, #0f1c36 100%) !important;
  
  margin-top: 0 !important;
  padding-top: 3.2rem; 
  padding-bottom: 2rem;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-video-wrapper {
  position: absolute;
  top: 0 !important;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(1.15) contrast(110%) saturate(105%) drop-shadow(0 0 45px rgba(247, 213, 164, 0.35));
  -webkit-filter: brightness(1.15) contrast(110%) saturate(105%) drop-shadow(0 0 45px rgba(247, 213, 164, 0.35));
  opacity: 0.9;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 50% 40%, rgba(247, 213, 164, 0.08) 0%, rgba(22, 47, 86, 0.32) 50%, rgba(15, 28, 54, 0.75) 100%),
    linear-gradient(180deg, rgba(20, 42, 77, 0.4) 0%, rgba(22, 47, 86, 0.1) 35%, rgba(12, 23, 44, 0.85) 100%);
  mix-blend-mode: normal;
  pointer-events: none;
}

/* [獨立命名空間] 專屬 saigen-hero-inner */
.saigen-hero-inner {
  position: relative;
  z-index: 10;
  max-width: 1050px;
  margin: 0 auto;
  width: 100%;
  padding: 5px 1rem 0 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-main-title {
  font-size: clamp(1.15rem, 1.9vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin-bottom: 3px;
  text-align: center;
}

.hero-main-title .text-white {
  color: #ffffff !important;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.85);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fae2c2 0%, #f7d5a4 50%, #c5a880 100%);
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 30px rgba(247, 213, 164, 0.35);
}

.hero-sub-description {
  color: #e5e7eb !important;
  font-size: clamp(0.65rem, 0.8vw, 0.85rem);
  line-height: 1.4;
  max-width: 580px;
  margin-bottom: 4px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
  text-wrap: balance;
  text-align: center;
}

/* ==========================================================================
   📱 手機版專屬：副標題下方微型 Tab 系統 (極致毛玻璃感)
   ========================================================================== */
.hero-sub-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  max-width: 480px;
  margin: 0 auto 2px auto;
  padding: 0 0.5rem;
  z-index: 15;
  position: relative;
}

.sub-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  background: rgba(15, 28, 54, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(247, 213, 164, 0.4);
  border-radius: 50px;
  color: #f7d5a4;
  font-size: 0.46rem; 
  font-weight: 500;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.sub-tag-pill .tag-dot {
  width: 2.5px;
  height: 2.5px;
  background-color: #f7d5a4;
  border-radius: 50%;
  box-shadow: 0 0 5px #f7d5a4;
}

/* 桌面尺寸時自動隱藏手機版專屬標籤容器 */
@media (min-width: 768px) {
  .hero-sub-tags-wrapper {
    display: none !important;
  }
}

/* ==========================================================================
   🌳 大樹 Canvas 與桌機端環繞 Tab 系統 (✨ 完美容納大尺寸且不被裁切)
   ========================================================================== */
.hero-tree-box {
  width: 100%;
  max-width: 650px;
  height: 150px; /* 賦予足夠的容器高度以完整展現放大後的大樹 */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2px auto;
  overflow: visible;
}

.hero-tree-canvas {
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 20px rgba(247, 213, 164, 0.5)) drop-shadow(0 0 40px rgba(212, 175, 55, 0.3));
  opacity: 0.98;
  pointer-events: none;
}

/* 左右兩側環繞浮動 Tab 系統 (桌機端使用) */
.hero-orbital-tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
}

.orbital-tag {
  position: absolute;
  pointer-events: auto;
  animation: floatOrbital 5s ease-in-out infinite alternate;
}

.orbital-tag .tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: rgba(15, 28, 54, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(247, 213, 164, 0.4);
  border-radius: 50px;
  color: #f7d5a4;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.tag-pos-1 { top: 48%; left: 18%; animation-delay: 0s; }
.tag-pos-2 { top: 32%; left: 24%; animation-delay: 1.2s; }
.tag-pos-3 { top: 64%; left: 28%; animation-delay: 2.4s; }
.tag-pos-4 { top: 32%; right: 24%; animation-delay: 0.8s; }
.tag-pos-5 { top: 48%; right: 18%; animation-delay: 1.8s; }

@keyframes floatOrbital {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-4px); }
}

/* ==========================================================================
   🔘 底部按鈕群組與高奢互動按鈕系統 (✨ 完美貼合樹根下方，無過多空白)
   ========================================================================== */
.hero-cta-group {
    position: relative;
    z-index: 20;
    margin-top: 2rem;
    width: 100%;
}
.btn-primary-luxury,
.btn-secondary-luxury {
  white-space: nowrap !important;
  flex: 1;
  max-width: 150px;
  padding: 5px 10px !important;
  font-size: 0.68rem !important;
  box-sizing: border-box;
}
/* 針對 iPad 與平板尺寸（螢幕寬度介於 768px 到 1199px 之間）的精準控制 */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .hero-cta-group {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    /* 確保按鈕在平板上有合適的固定寬度或彈性，避免超出邊界 */
    .hero-cta-group .btn-primary-luxury,
    .hero-cta-group .btn-secondary-luxury {
        flex: 0 1 220px !important;
        max-width: 100% !important;
        justify-content: center !important;
    }
}

/* 手機直式螢幕（小於 767px）改為上下垂直堆疊，方便手指點擊 */
@media (max-width: 767.98px) {
    .hero-cta-group {
        flex-direction: column !important;
        width: 100% !important;
        padding: 0 1.5rem;
    }
    
    .hero-cta-group .btn-primary-luxury,
    .hero-cta-group .btn-secondary-luxury {
        width: 100% !important;
        justify-content: center !important;
    }
}
@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    padding: 0 0.75rem;
    margin-top: 2px; /* 緊貼樹根下方，消除底部多餘空白 */
  }
  .btn-primary-luxury,
  .btn-secondary-luxury {
    max-width: 100% !important;
    width: 100% !important;
    padding: 7px 10px !important;
  }
}

.btn-primary-luxury {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #0f1c36 !important;
  background: linear-gradient(135deg, #fae2c2 0%, #f7d5a4 50%, #c5a880 100%);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(247, 213, 164, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 12;
}

.btn-primary-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transition: 0.6s ease;
}

.btn-primary-luxury:hover::before {
  left: 100%;
}

.btn-primary-luxury:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(247, 213, 164, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #fff1e0 0%, #f9deba 50%, #d4b58b 100%);
}

.btn-primary-luxury:active {
  transform: translateY(-1px) scale(0.99);
}

.btn-primary-luxury .btn-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-luxury:hover .btn-icon-wrap {
  transform: translateX(4px);
}

.btn-secondary-luxury {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #f7d5a4 !important;
  background: rgba(15, 28, 54, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(247, 213, 164, 0.4);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 12;
}

.btn-secondary-luxury:hover {
  background: rgba(23, 52, 95, 0.88);
  color: #ffffff !important;
  border-color: rgba(247, 213, 164, 0.75);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(247, 213, 164, 0.25), inset 0 0 15px rgba(247, 213, 164, 0.1);
}

.btn-secondary-luxury:active {
  transform: translateY(-1px) scale(0.99);
}


.saigen-manifesto-quote {
  font-size: clamp(1rem, 1.8vw, 1.95rem);
  line-height: 1.6;
  letter-spacing: -0.2px;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9);
}

.saigen-manifesto-highlight {
  font-size: clamp(.9rem, 1.5vw, 1.4rem);
  color: var(--color-gold-pill, #f7d5a4) !important;
  text-shadow: 0 2px 15px rgba(247, 213, 164, 0.3);
}

.saigen-cta-banner-title {
  font-size: 1.05rem;
  letter-spacing: -0.2px;
}

.saigen-cta-banner-desc {
  font-size: 0.825rem;
  color: #94a3b8 !important;
}
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--color-navy-dark, #0f1c36);
    color: #f7d5a4;
    border: 1px solid rgba(247, 213, 164, 0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1040;
    box-shadow: 0 10px 25px rgba(15, 28, 54, 0.2);
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    background-color: #1a2f5a;
    border-color: #f7d5a4;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(15, 28, 54, 0.3);
}

.btn-back-to-top .top-arrow-icon {
    width: 18px;
    height: 18px;
    stroke: #f7d5a4;
}

.btn-back-to-top .top-label {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 1px;
}