/*
ELLEZ LLC - Brand Journal Design
Theme: Deep Ink Green & Champagne Gold
Version: 3.0
*/

:root {
  /* Color Palette */
  --bg-primary: #0E1614;    /* Deep Ink Green */
  --bg-secondary: #15201D;  /* Slightly lighter for contrast */
  --accent-gold: #D4C5A5;   /* Soft Champagne Gold */
  --accent-gold-dim: rgba(212, 197, 165, 0.15);
  
  --text-primary: #F5F5F0;  /* Warm Off-white */
  --text-secondary: #A0A0A0; /* Soft Gray */
  
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(212, 197, 165, 0.1);
  --card-hover-border: rgba(212, 197, 165, 0.3);
  
  /* Spacing */
  --spacing-section: 8rem;
  --spacing-card: 2rem;
  
  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Layout safety */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
img, video, canvas, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6, p, li { overflow-wrap: anywhere; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', 'Noto Sans TC', 'Noto Sans', Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative; /* 確保背景層正確定位 */
}

/* ========================================
   優雅流動背景 - 高訂絲絨質感 (Haute Couture Velvet)
   ======================================== */

.elegant-texture-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  /* 基底色：確保背景是深綠色 */
  background-color: var(--bg-primary);
  pointer-events: none;
  transform: translateZ(0);
}

/* --- 第一層：絨毛纖維 (The Fiber Nap) --- */
/* 使用高對比的噪點，模擬布料表面的粗糙感 */
.elegant-texture-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  /* 調整過的 SVG 噪點：頻率更高，更像纖維 */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
  
  /* 關鍵：Soft-light 讓噪點融入背景，而不是浮在上面 */
  mix-blend-mode: soft-light;
  opacity: 0.6; /* 提高不透明度讓質感更明顯 */
  filter: contrast(150%) brightness(120%); /* 加強對比，讓顆粒感出來 */
}

/* --- 第二層：深邃皺摺 (The Folds) --- */
/* 模擬絲絨被壓皺時的深色陰影區 */
.elegant-texture-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  
  /* 使用不規則的徑向漸層來模擬布料的起伏 */
  background: radial-gradient(
    circle at 50% 50%,
    transparent 20%,
    rgba(0, 0, 0, 0.4) 50%, /* 深色陰影 */
    transparent 80%
  );
  
  opacity: 0.8;
  mix-blend-mode: multiply; /* 加深顏色 */
  
  /* 讓陰影緩慢變形，像布料在呼吸 */
  animation: velvet-folds 20s ease-in-out infinite alternate;
}

/* --- 第三層：流動絲光 (The Sheen) --- */
/* 這是絲絨的靈魂：金色的反光 */
.elegant-texture-bg .flow-wave {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  
  /* 巨大的、柔和的光暈 */
  background: radial-gradient(
    ellipse 60% 40% at 50% 50%, 
    rgba(212, 197, 165, 0.08) 0%, /* 香檳金高光 */
    rgba(255, 255, 255, 0.02) 30%, 
    transparent 70%
  );
  
  filter: blur(80px); /* 極度模糊，製造柔焦感 */
  mix-blend-mode: overlay; /* 讓光澤疊加在深綠底色上發亮 */
  opacity: 0.7;
  
  /* 讓光澤在布料上緩慢游走 */
  animation: velvet-sheen 15s ease-in-out infinite alternate;
}

/* --- 噪點疊加層 (Micro Detail) --- */
/* 增加一層靜態的細微雜訊，讓畫面不要太「數位」 */
.elegant-texture-bg .noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.15;
  mix-blend-mode: overlay;
  pointer-events: none;
}


/* --- 動畫定義 --- */

@keyframes velvet-folds {
  0% { transform: translate(-20px, -20px) scale(1); }
  100% { transform: translate(10px, 10px) scale(1.1); }
}

@keyframes velvet-sheen {
  0% { 
    transform: translate(-30px, 30px) scale(0.9); 
    opacity: 0.6;
  }
  50% {
    opacity: 0.9; /* 光澤變亮 */
  }
  100% { 
    transform: translate(30px, -30px) scale(1.1); 
    opacity: 0.6;
  }
}

/* Typography Overrides */
h1, h2 {
  font-family: 'Playfair Display', 'Noto Serif TC', 'Noto Serif', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--accent-gold);
  margin-bottom: 3rem;
}

h3, h4, h5, h6 {
  font-family: 'Inter', 'Noto Sans TC', 'Noto Sans', Arial, sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.fade-in-section {
  /* Always visible; animation is purely decorative */
  opacity: 1;
  transform: none;
  transition: none;
  animation: fadeSlideUp 1.1s cubic-bezier(0.22, 0.68, 0.52, 1.01) forwards;
  animation-delay: 0.2s;
}

.fade-in-section.visible { opacity: 1; transform: none; }

/* Animation Keyframes */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(14, 22, 20, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-img {
  height: 32px;
  width: auto;
}

.nav-logo-text {
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-gold);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Offset for fixed nav */
  background: radial-gradient(circle at 80% 20%, rgba(212, 197, 165, 0.05) 0%, transparent 40%);
  position: relative;
}

.hero-inner {
  /* match container spacing */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-family: 'Playfair Display', 'Noto Serif TC', 'Noto Serif', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 0.9;
  /* Follow h1 size to match reference */
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0 0 1rem 0;
}

.hero-label {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 2rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 2rem;
}

/* Principles Section (Values) */
.principles {
  padding: var(--spacing-section) 0;
  background-color: var(--bg-secondary);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.principle-card {
  padding: 2rem 0;
  border-top: 1px solid var(--card-border);
}

.principle-number {
  font-size: 0.9rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
  display: block;
  font-family: 'JetBrains Mono', 'Noto Sans Mono', 'Noto Sans TC', monospace;
}

.principle-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Products Section */
.products {
  padding: var(--spacing-section) 0;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 3rem;
  margin-bottom: 2rem;
  transition: all 0.4s ease;
  display: grid;
  grid-template-columns: 1fr 1.5fr; /* Z-layout within card if needed, or just block */
  gap: 3rem;
  align-items: center;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  margin-left: 1.5rem;
  font-family: 'Inter', 'Noto Sans TC', Arial, sans-serif;
}
.lang-btn {
  color: var(--text-secondary);
  background: none;
  border: none;
  font-size: 1rem;
  padding: 0.2em 0.7em;
  cursor: pointer;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.lang-btn.active,
.lang-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
  font-weight: 600;
}
.lang-divider {
  color: #b0b0b0;
  margin: 0 0.2em;
  user-select: none;
}

/* about-text uses default paragraph styles from reference */

.product-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-5px);
}

/* Generic section helpers used by HTML */
.about,
.services,
.projects,
#updates {
  padding: var(--spacing-section) 0;
}

.section-title {
  font-family: 'Playfair Display', 'Noto Serif TC', 'Noto Serif', serif;
  font-weight: 700;
  color: var(--accent-gold);
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin: 0 0 3rem 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.card-grid > * { /* default 3-up on desktop */
  grid-column: span 4;
}

@media (max-width: 1024px) {
  .card-grid > * { grid-column: span 6; }
}

@media (max-width: 640px) {
  .card-grid > * { grid-column: span 12; }
}

.service-card,
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 1.5rem;
  transition: border-color .2s ease, transform .2s ease;
}

.service-card:hover,
.project-card:hover {
  border-color: var(--card-hover-border);
  transform: translateY(-3px);
}

.fade-in-card {
  opacity: 1;
  transform: none;
  animation: fadeSlideUp .9s cubic-bezier(0.22, 0.68, 0.52, 1.01) forwards;
}

.product-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.product-meta {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--accent-gold-dim);
  color: var(--accent-gold);
  font-size: 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', 'Noto Sans Mono', 'Noto Sans TC', monospace;
}

.product-links {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
}

.btn-link {
  color: var(--text-primary);
  border-bottom: 1px solid var(--accent-gold);
  padding-bottom: 2px;
  font-size: 0.9rem;
}

.btn-link:hover {
  color: var(--accent-gold);
}

/* Updates Section */
.updates {
  padding: var(--spacing-section) 0;
  background-color: var(--bg-secondary);
}

.update-list {
  border-left: 1px solid var(--card-border);
  padding-left: 2rem;
}

.update-item {
  margin-bottom: 3rem;
  position: relative;
  cursor: pointer;
}

.update-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.5rem;
  width: 0.6rem;
  height: 0.6rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--accent-gold);
  border-radius: 50%;
}

.update-date {
  font-family: monospace;
  color: var(--accent-gold);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.update-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.update-item:hover h3 { color: var(--accent-gold); }

.update-content-preview p {
  margin: 0;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Prevent timeline bullets from causing horizontal scroll on small screens */
@media (max-width: 640px) {
  .update-list { border-left: none; padding-left: 0; }
  .update-item::before { display: none; }
}

/* Footer */
.site-footer {
  width: 100%;
  padding: 5rem 0;
  border-top: 1px solid var(--card-border);
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
}

.footer-content { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 2rem; 
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.product-showcase {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 1.25rem;
}

.footer-section { margin-top: 2rem; }

.footer-bottom { 
  border-top: 1px solid var(--card-border); 
  margin-top: 2rem; 
  padding-top: 1.5rem; 
  text-align: center; 
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 修正：三欄平均分配 */
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

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

.footer-links p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

/* About Card Section */
.about-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  margin: 2rem auto 0 auto;
  max-width: 700px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  color: var(--text-primary);
  font-size: 1.15rem;
  line-height: 1.8;
  animation: fadeSlideUp 1.2s cubic-bezier(0.22, 0.68, 0.52, 1.01) 0.3s both;
}

.about-card strong {
  color: var(--accent-gold);
  font-weight: 600;
}

@media (max-width: 768px) {
  .about-card {
    padding: 1.5rem 1rem;
    font-size: 1rem;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .product-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr; /* 手機版改為單欄 */
    gap: 3rem;
  }
  
  .site-footer {
    padding: 3rem 0;
  }
  
  .nav-links {
    display: none; /* Simplified for now, assuming JS handles toggle */
  }
  
  /* Add mobile menu styles if needed, reusing existing logic */
  .nav-toggle:checked ~ .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-primary);
    padding: 2rem;
    border-bottom: 1px solid var(--card-border);
  }
}

/* Hamburger Menu (Mobile Nav) - Re-adding essential styles */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-label span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--accent-gold);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: flex;
  }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .fade-in-section, .about-card {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* CJK fallback for Playfair Display */
@media (lang: zh-TW), (lang: zh-Hant) {
  h1, h2 {
    font-family: 'Playfair Display', 'Noto Serif TC', 'Noto Serif', serif;
  }
}

/* --- Functional Styles for Announcement Modal & Loading (from inline <style>) --- */
.announcement-page {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-primary); z-index: 2000;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.announcement-page.active { transform: translateY(0); }
.page-header {
  padding: 24px 40px; display: flex; justify-content: flex-end; position: sticky; top: 0;
  background: rgba(14, 22, 20, 0.95); backdrop-filter: blur(5px); z-index: 10;
}
.close-btn { background: none; border: none; font-size: 2rem; color: var(--accent-gold); cursor: pointer; transition: transform 0.2s; }
.close-btn:hover { transform: rotate(90deg); }
.page-content-container { max-width: 800px; margin: 0 auto; padding: 40px 24px 100px; }
.page-meta { font-family: 'JetBrains Mono', monospace; color: var(--text-secondary); margin-bottom: 16px; display: block; }
#page-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; color: var(--text-primary); }
.article-body { margin-top: 40px; font-size: 1.1rem; color: var(--text-secondary); }
.article-body p { margin-bottom: 24px; color: var(--text-secondary); }
.article-body h3 { margin-top: 40px; color: var(--text-primary); }
.article-body ul { list-style: disc; padding-left: 20px; color: var(--text-secondary); }

.loading-text,
.error-text {
  color: var(--text-secondary);
  padding: 2rem;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}

/* ========================================
   Modal 彈出視窗樣式
======================================== */

/* 模態視窗背景 (半透明黑底) */
/* ========================================
   Modal 彈窗設計 - 品牌風格
   ======================================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 22, 20, 0.95); /* 品牌深墨綠 + 高透明度 */
  backdrop-filter: blur(8px); /* 背景模糊效果 */
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* 顯示時的狀態 */
.modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* 視窗本體 - 品牌風格 */
.modal-content {
  background: linear-gradient(135deg, #15201D 0%, #0E1614 100%); /* 品牌漸層背景 */
  border: 1px solid rgba(212, 197, 165, 0.2); /* 金色邊框 */
  padding: 3rem 2.5rem;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(212, 197, 165, 0.1); /* 雙重陰影 + 外框 */
  transform: translateY(30px);
  transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

/* 關閉按鈕 - 品牌風格 */
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(212, 197, 165, 0.1);
  border: 1px solid rgba(212, 197, 165, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(212, 197, 165, 0.2);
  border-color: var(--accent-gold);
  transform: rotate(90deg);
}

/* Modal 標題 - 品牌風格 */
#modal-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-gold); /* 金色標題 */
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(212, 197, 165, 0.2);
  letter-spacing: 0.5px;
}

/* Modal 日期 */
#modal-date {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Modal 內文 */
#modal-body {
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--text-primary);
  font-size: 1.05rem;
}

/* 自定義捲軸 - 品牌配色 */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(212, 197, 165, 0.05);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(212, 197, 165, 0.3);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* 文章列表樣式 (讓它看起來像可點擊) */
.update-item {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
}

.update-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(212, 197, 165, 0.15);
  border-color: rgba(212, 197, 165, 0.3);
}

/* 響應式設計 */
@media (max-width: 768px) {
  .modal-content {
    padding: 2rem 1.5rem;
    max-width: 95%;
    max-height: 90vh;
  }
  
  #modal-title {
    font-size: 1.5rem;
  }
  
  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
}

/* ====================================
   Careers Page Styles - 職缺卡片
   ==================================== */

/* 職缺卡片容器 */
.job-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03); /* 極淡的背景 */
  border: 1px solid var(--card-border);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

/* 懸停效果：邊框變亮，稍微浮起 */
.job-card:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 197, 165, 0.05);
  transform: translateX(10px); /* 往右滑動一點點，很有動感 */
  box-shadow: 0 4px 20px rgba(212, 197, 165, 0.15);
}

/* 部門標籤 */
.job-department {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

/* 職稱 */
.job-card h3 {
  font-family: 'Inter', sans-serif; /* 職缺用無襯線字體比較現代 */
  font-size: 1.5rem;
  margin: 0;
  color: var(--text-primary);
  font-weight: 600;
}

/* 職位資訊區塊 */
.job-info {
  flex: 1;
}

/* 標籤 (Remote, Full-time) */
.job-tags {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.job-tags span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(212, 197, 165, 0.2);
}

/* 箭頭圖標 */
.job-arrow {
  font-size: 1.5rem;
  color: var(--accent-gold);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
  margin-left: 2rem;
  flex-shrink: 0;
}

/* 懸停時箭頭出現 */
.job-card:hover .job-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* 特別強調的「通用申請」卡片 */
.job-card.highlight {
  border: 1px dashed var(--card-border); /* 虛線邊框，表示「未定」 */
  background: rgba(212, 197, 165, 0.02);
}

.job-card.highlight:hover {
  border-color: var(--accent-gold);
  border-style: solid; /* 懸停變實線 */
  background: rgba(212, 197, 165, 0.08);
}

/* 響應式設計 */
@media (max-width: 768px) {
  .job-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }
  
  .job-card h3 {
    font-size: 1.25rem;
  }
  
  .job-arrow {
    margin-left: 0;
    margin-top: 1rem;
    align-self: flex-end;
  }
  
  .job-card:hover {
    transform: translateY(-2px); /* 手機上改為向上移動 */
  }
}

/* ========================================
   Partnership Page Styles
   ======================================== */

/* 夥伴卡片網格佈局 */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

/* 夥伴卡片基本樣式 */
.partner-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 3rem;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* 懸停效果 */
.partner-card:hover {
  border-color: rgba(212, 197, 165, 0.4);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(212, 197, 165, 0.1);
}

/* 特別強調的卡片 (Path B) */
.partner-card.highlight {
  background: linear-gradient(
    135deg,
    rgba(212, 197, 165, 0.05) 0%,
    rgba(212, 197, 165, 0.02) 100%
  );
  border-color: rgba(212, 197, 165, 0.3);
}

.partner-card.highlight:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 15px 50px rgba(212, 197, 165, 0.2);
}

/* 路徑標籤 (Path A / Path B) */
.card-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  width: fit-content;
}

/* 金色標籤 (Path B) */
.card-badge.gold {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(212, 197, 165, 0.1);
}

/* 卡片標題 */
.partner-card h3 {
  font-family: 'Playfair Display', 'Noto Serif TC', serif;
  font-size: 2rem;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

/* 卡片描述 */
.card-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.card-desc strong {
  color: var(--accent-gold);
  font-weight: 600;
}

/* 角色列表區塊 */
.role-list {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-grow: 1;
}

.role-list h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.role-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.role-list li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}

.role-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

.role-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.role-list li:last-child {
  margin-bottom: 0;
}

/* CTA 區塊 */
.card-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

/* 合作類型標籤 */
.deal-type {
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}

/* 行動按鈕 */
.action-btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: 1px solid var(--accent-gold);
  border-radius: 6px;
  color: var(--accent-gold);
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-gold);
  transition: left 0.4s ease;
  z-index: -1;
}

.action-btn:hover {
  color: var(--bg-primary);
}

.action-btn:hover::before {
  left: 0;
}

/* 填充樣式按鈕 (Path B) */
.action-btn.filled {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
}

.action-btn.filled::before {
  background: transparent;
  border: 1px solid var(--accent-gold);
}

.action-btn.filled:hover {
  background: transparent;
  color: var(--accent-gold);
}

/* 響應式設計 */
@media (max-width: 900px) {
  .partner-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .partner-card {
    padding: 2rem;
  }
  
  .partner-card h3 {
    font-size: 1.75rem;
  }
  
  .card-desc {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .partner-card {
    padding: 1.5rem;
  }
  
  .partner-card h3 {
    font-size: 1.5rem;
  }
  
  .role-list {
    padding: 1rem;
  }
  
  .action-btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* ========================================
   Manifesto Box & Warning Cards
   (Anti-Pitch / Filter Design)
   ======================================== */

/* DNA Grid - Base Layout */
.dna-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

/* DNA Item - Base Card Style */
.dna-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  text-align: center;
}

.dna-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: block;
  color: var(--accent-gold);
}

.dna-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dna-item:hover .dna-icon {
  color: #ff6b6b;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.dna-item h3 {
  font-family: 'Playfair Display', 'Noto Serif TC', serif;
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.dna-item p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* 1. Manifesto Box (拒絕白嫖聲明) */
.manifesto-box {
  border: 1px solid var(--accent-gold);
  background: rgba(212, 197, 165, 0.05); /* 極淡的金色背景 */
  padding: 3rem;
  border-radius: 4px;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* 左側裝飾線，增加嚴肅感 */
.manifesto-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-gold);
}

.manifesto-box h3 {
  font-family: 'Playfair Display', 'Noto Serif TC', serif;
  color: var(--accent-gold);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.manifesto-box p {
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.8;
}

.manifesto-box strong {
  color: #fff;
  font-weight: 600;
}

/* 2. Warning Cards (壓力測試區) - 已改為正面風格 */
.dna-item {
  border-color: rgba(212, 197, 165, 0.15);
  background: rgba(255, 255, 255, 0.02);
}

.dna-item:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 197, 165, 0.05);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 197, 165, 0.1);
}

.dna-item h3 {
  color: var(--accent-gold);
}

/* 3. Card Footer for simplified partner cards */
.card-footer {
  margin-top: auto;
  padding-top: 2rem;
}

/* Responsive: Manifesto Box */
@media (max-width: 768px) {
  .manifesto-box {
    padding: 2rem;
  }
  
  .manifesto-box h3 {
    font-size: 1.5rem;
  }
  
  .manifesto-box p {
    font-size: 1rem;
  }
  
  /* DNA Grid responsive */
  .dna-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .dna-item {
    padding: 2rem;
  }
  
  .dna-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .dna-item h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .dna-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
