/**
 * BEM Component Library - 新德揚專案
 * 依照 updateV2.md 規格書建立的 BEM 命名系統
 * 
 * Block: 獨立的元件 (.product-card, .hero-section, .news-article)
 * Element: 區塊內的子元素 (.product-card__title, .hero-section__content)
 * Modifier: 變體或狀態 (.product-card--featured, .hero-section--large)
 */

/* CSS 變數定義 - V2.0 更新 */
:root {
  /* 綠色系主色調 */
  --color-sage-green: #66bb6a;
  --color-forest-green: #4caf50;
  --color-earth-green: #388e3c;
  --color-mint-green: #81c784;
  --color-light-green: #e8f5e8;
  
  /* 文字顏色 - V2.0 規格：資料庫文字統一為黑色 */
  --color-text-primary: #000000; /* 主要文字顏色（資料庫內容） */
  --color-text-dark: #1b5e20; /* 特殊標題顏色 */
  --color-text-medium: #2e7d32; /* 次要標題顏色 */
  --color-text-light: #666666; /* 輔助文字顏色 */
  
  /* 背景顏色 */
  --color-gray-50: #f8fdf8;
  --color-gray-100: #f1f8e9;
  --color-gray-200: #e0e0e0;
  --color-white: #ffffff;
  
  /* 陰影效果 */
  --shadow-soft: 0 4px 20px rgba(46, 125, 50, 0.1);
  --shadow-medium: 0 8px 25px rgba(46, 125, 50, 0.15);
  --shadow-strong: 0 15px 35px rgba(46, 125, 50, 0.2);
  
  /* 轉場效果 */
  --transition: all 0.3s ease;
  
  /* 圓角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ==========================================================================
   V2.0 全局文字顏色統一規則 (Global Text Color Unification)
   ========================================================================== */

/* 基礎文字顏色設定 - 所有資料庫內容為黑色 */
body {
  color: var(--color-text-primary);
}

/* 標題元素使用主要文字顏色 */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-primary);
}

/* 段落和一般文字內容 */
p, span, div, td, th, li {
  color: inherit; /* 繼承 body 的黑色 */
}

/* 特殊元件保留原有顏色設定 */
a {
  color: var(--color-sage-green);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-forest-green);
  text-decoration: none;
}

/* 按鈕元件保留原有顏色設定 - 由各 modifier 決定文字顏色 */

/* 錯誤和狀態訊息保留特殊顏色 */
.text-success {
  color: var(--color-forest-green) !important;
}

.text-warning {
  color: #ffc107 !important;
}

.text-danger, .text-error {
  color: #dc3545 !important;
}

.text-muted {
  color: var(--color-text-light) !important;
}

/* 特殊標題保留品牌顏色 */
.brand-title, .section-title {
  color: var(--color-black) !important;
}

/* ==========================================================================
   1. 產品卡片元件 (Product Card)
   ========================================================================== */

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid var(--color-light-green);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-mint-green);
}

.product-card__image-wrapper {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-card__image {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-sage-green);
  color: var(--color-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.product-card__badge--featured {
  background: var(--color-earth-green);
}

.product-card__badge--new {
  background: #ff6b6b;
}

.product-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 5px;
  line-height: 1.4;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.product-card__title a:hover {
  color: var(--color-sage-green);
  text-decoration: none;
}

.product-card__description {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 12px;
  margin-top: 0;
  flex: 1;
  /* 單行顯示，超出部分用省略號 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-earth-green);
  margin-bottom: 15px;
}

.product-card__original-price {
  text-decoration: line-through;
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-right: 8px;
  font-weight: normal;
}

.product-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.product-card__feature-tag {
  background: var(--color-light-green);
  color: var(--color-text-medium);
  padding: 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: normal;
  word-spacing: normal;
  line-height: 1.2;
}

.product-card__button {
  background: linear-gradient(135deg, var(--color-sage-green), var(--color-forest-green));
  color: var(--color-white);
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: var(--transition);
  display: inline-block;
  cursor: pointer;
}

.product-card__button:hover {
  background: linear-gradient(135deg, var(--color-forest-green), var(--color-earth-green));
  transform: translateY(-2px);
  color: var(--color-white);
  text-decoration: none;
  box-shadow: var(--shadow-medium);
}

/* ==========================================================================
   2. 英雄區塊元件 (Hero Section)
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-section--fullscreen {
  min-height: 100vh;
}

.hero-section__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-light-green) 0%, var(--color-gray-100) 100%);
  z-index: 1;
}

.hero-section__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(46, 125, 50, 0.4), rgba(102, 187, 106, 0.3));
  z-index: 2;
}

.hero-section__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-section__title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-section__title--light {
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-section__subtitle {
  font-size: 1.3rem;
  color: var(--color-text-medium);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-section__subtitle--light {
  color: var(--color-white);
  opacity: 0.95;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-section__features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.hero-section__feature {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--color-light-green);
}

.hero-section__feature--transparent {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.2);
}

.hero-section__feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.hero-section__feature-icon {
  font-size: 1.2rem;
}

.hero-section__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   3. 按鈕元件 (Button)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
  line-height: 1;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-sage-green), var(--color-forest-green));
  color: var(--color-white);
  box-shadow: var(--shadow-medium);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-forest-green), var(--color-earth-green));
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
  color: var(--color-white);
  text-decoration: none;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  color: var(--color-white);
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  color: var(--color-sage-green);
  border: 2px solid var(--color-sage-green);
}

.btn--outline:hover {
  background: var(--color-sage-green);
  color: var(--color-white);
  text-decoration: none;
}

.btn--large {
  padding: 18px 35px;
  font-size: 1.1rem;
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ==========================================================================
   4. 新聞文章元件 (News Article)
   ========================================================================== */

.news-article {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid var(--color-light-green);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-mint-green);
}

.news-article__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.news-article:hover .news-article__image {
  transform: scale(1.05);
}

.news-article__placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--color-light-green), var(--color-gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage-green);
  font-size: 3rem;
}

.news-article__body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-article__meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--color-sage-green);
}

.news-article__date {
  font-weight: 600;
}

.news-article__category {
  background: var(--color-light-green);
  color: var(--color-text-medium);
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
  border: 1px solid var(--color-mint-green);
}

.news-article__title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 15px;
  line-height: 1.4;
  flex: 1;
}

.news-article__title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.news-article__title a:hover {
  color: var(--color-sage-green);
  text-decoration: none;
}

.news-article__excerpt {
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 15px;
}

.news-article__link {
  color: var(--color-sage-green);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.news-article__link:hover {
  color: var(--color-forest-green);
  text-decoration: none;
  transform: translateX(3px);
}

/* ==========================================================================
   5. 服務卡片元件 (Service Card)
   ========================================================================== */

.service-card {
  text-align: center;
  padding: 40px 25px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 2px solid transparent;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-mint-green);
}

.service-card__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--color-light-green), var(--color-gray-100));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-sage-green);
  border: 3px solid var(--color-mint-green);
}

.service-card__title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 15px;
}

.service-card__description {
  color: var(--color-text-medium);
  line-height: 1.6;
}

/* ==========================================================================
   6. 網格系統 (Grid System)
   ========================================================================== */

.grid {
  display: grid;
  gap: 30px;
}

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

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

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

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

.grid--products {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ==========================================================================
   7. 產品選項元件 (Product Option) - 解決 .product-block 遺失問題
   ========================================================================== */

.product-option {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  cursor: pointer;
  border: 1px solid var(--color-light-green);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: var(--color-white);
}

.product-option:hover {
  background-color: var(--color-gray-50);
  border-color: var(--color-mint-green);
}

.product-option--active {
  background: var(--color-light-green);
  border-color: var(--color-sage-green);
}

.product-option__color-preview {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  margin-right: 1rem;
  border: 2px solid var(--color-light-green);
}

.product-option__name {
  font-size: 1rem;
  color: var(--color-text-dark);
  font-weight: 500;
}

/* 舊的 .product-block 相容性支援 - 重新導向到新的 BEM 命名 */
.product-block {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  cursor: pointer;
  border: 1px solid var(--color-light-green);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: var(--color-white);
}

.product-block:hover {
  background-color: var(--color-gray-50);
  border-color: var(--color-mint-green);
}

.product-block.active {
  background: var(--color-light-green);
  border-color: var(--color-sage-green);
}

/* ==========================================================================
   8. 響應式設計 (Responsive Design) - 依照 updateV2.md 修復手機版問題
   ========================================================================== */

/* 平板尺寸 */
@media (max-width: 1200px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid--products {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* 手機尺寸 - 主要修復區域 */
@media (max-width: 768px) {
  /* 英雄區塊響應式 */
  .hero-section {
    min-height: 50vh;
    padding: 2rem 0;
  }
  
  .hero-section__title {
    font-size: 2.5rem;
  }
  
  .hero-section__subtitle {
    font-size: 1.1rem;
  }
  
  .hero-section__actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-section__features {
    gap: 15px;
    justify-content: center;
  }
  
  .hero-section__feature {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  /* 網格系統響應式 */
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .grid--products {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  /* 卡片元件響應式 */
  .service-card {
    padding: 30px 20px;
    margin-bottom: 1rem;
  }
  
  .product-card__image,
  .news-article__image {
    height: 220px;
  }
  
  .product-card__body,
  .news-article__body {
    padding: 1.25rem;
  }
  
  /* 按鈕響應式 */
  .btn {
    padding: 12px 25px;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .btn--large {
    padding: 15px 30px;
    font-size: 1.1rem;
  }
  
  /* 手機版頁籤確保正常顯示 */
  .mobile-tabs {
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .mobile-tabs::-webkit-scrollbar {
    display: none;
  }
  
  .mobile-tabs__tab {
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  /* 修復手機版分類頁籤問題 */
  .products-page__sidebar,
  .portfolios-page__sidebar {
    display: none !important;
  }
  
  /* 確保手機版內容區域正常顯示 */
  .products-page__container,
  .portfolios-page__container {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}

/* 小手機尺寸 */
@media (max-width: 480px) {
  /* 英雄區塊小手機優化 */
  .hero-section__title {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .hero-section__subtitle {
    font-size: 1rem;
  }
  
  .hero-section__content {
    padding: 0 1rem;
  }
  
  .hero-section__features {
    gap: 10px;
  }
  
  .hero-section__feature {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  /* 卡片元件小手機優化 */
  .product-card__body,
  .news-article__body {
    padding: 1rem;
  }
  
  .product-card__image,
  .news-article__image {
    height: 200px;
  }
  
  .service-card__icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  
  .service-card__title {
    font-size: 1.2rem;
  }
  
  .service-card {
    padding: 1.5rem 1rem;
  }
  
  /* 按鈕小手機優化 */
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .btn--large {
    padding: 12px 25px;
    font-size: 1rem;
  }
  
  /* 網格系統小手機優化 */
  .grid {
    gap: 1rem;
  }
  
  .grid--products {
    grid-template-columns: 1fr;
  }
  
  /* 手機版頁籤小手機優化 */
  .mobile-tabs {
    padding: 0.25rem;
    margin-bottom: 1rem;
  }
  
  .mobile-tabs__tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}

/* 超小手機尺寸 */
@media (max-width: 360px) {
  .hero-section__title {
    font-size: 1.8rem;
  }
  
  .hero-section__subtitle {
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  
  .service-card__icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
  
  .mobile-tabs__tab {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   9. 動畫效果 (Animations)
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.8s ease-out;
}

/* ==========================================================================
   10. Banner Component (橫幅組件)
   符合 updateV2.md V2.0 規範
   ========================================================================== */

.banner {
  position: relative;
  width: 100%;
  min-height: 850px;
  overflow: hidden;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner__container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner__image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.banner__placeholder {
  width: 100%;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-200);
  color: var(--color-text-medium);
}

.banner__placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.banner__placeholder-text {
  font-size: 1.2rem;
  font-weight: 500;
}

.banner__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.banner__text-wrapper {
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem 3rem;
  border-radius: 12px;
  text-align: center;
  max-width: 600px;
  margin: 0 1rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.banner__title {
  color: #ffffff !important;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner__subtitle {
  color: #ffffff !important;
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  color: #000000 !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.banner__cta:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #000000 !important;
  text-decoration: none;
}

.banner__cta i {
  transition: transform 0.3s ease;
}

.banner__cta:hover i {
  transform: translateX(4px);
}

/* Banner 響應式設計 */
@media (max-width: 768px) {
  .banner {
    min-height: 300px;
  }
  
  .banner__image,
  .banner__placeholder {
    height: 300px;
  }
  
  .banner__text-wrapper {
    padding: 1.5rem 2rem;
    margin: 0 0.5rem;
  }
  
  .banner__title {
    font-size: 2rem;
  }
  
  .banner__subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .banner {
    min-height: 250px;
  }
  
  .banner__image,
  .banner__placeholder {
    height: 250px;
  }
  
  .banner__text-wrapper {
    padding: 1rem 1.5rem;
  }
  
  .banner__title {
    font-size: 1.8rem;
  }
  
  .banner__subtitle {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .banner__cta {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   11. Image Placeholder Component (圖片佔位符組件)
   符合 updateV2.md V2.0 規範
   ========================================================================== */

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-gray-100), var(--color-gray-200));
  border: 2px dashed var(--color-text-light);
  border-radius: var(--radius-sm);
  color: var(--color-text-medium);
  font-family: inherit;
  transition: all 0.3s ease;
  overflow: hidden;
}

.image-placeholder:hover {
  background: linear-gradient(135deg, var(--color-gray-200), var(--color-light-green));
  border-color: var(--color-sage-green);
  transform: scale(1.02);
}

.image-placeholder__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1rem;
}

.image-placeholder__icon {
  font-size: 2.5rem;
  opacity: 0.7;
  display: block;
}

.image-placeholder__text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-medium);
  line-height: 1.2;
}

/* 尺寸變體 */
.image-placeholder--small {
  min-height: 80px;
}

.image-placeholder--small .image-placeholder__content {
  padding: 0.5rem;
  gap: 0.25rem;
}

.image-placeholder--small .image-placeholder__icon {
  font-size: 1.5rem;
}

.image-placeholder--small .image-placeholder__text {
  font-size: 0.75rem;
}

.image-placeholder--medium {
  min-height: 200px;
}

.image-placeholder--large {
  min-height: 300px;
}

.image-placeholder--large .image-placeholder__icon {
  font-size: 3.5rem;
}

.image-placeholder--large .image-placeholder__text {
  font-size: 1.1rem;
}

.image-placeholder--xl {
  min-height: 400px;
}

.image-placeholder--xl .image-placeholder__icon {
  font-size: 4rem;
}

.image-placeholder--xl .image-placeholder__text {
  font-size: 1.2rem;
}

/* 寬高比變體 */
.image-placeholder--square {
  aspect-ratio: 1 / 1;
}

.image-placeholder--wide {
  aspect-ratio: 16 / 9;
}

.image-placeholder--tall {
  aspect-ratio: 3 / 4;
}

/* 類型特定樣式 */
.image-placeholder--product {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-color: var(--color-sage-green);
}

.image-placeholder--product:hover {
  background: linear-gradient(135deg, var(--color-light-green), var(--color-sage-green));
  border-color: var(--color-forest-green);
}

.image-placeholder--news {
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  border-color: #ffa726;
  color: #ef6c00;
}

.image-placeholder--news:hover {
  background: linear-gradient(135deg, #ffecb3, #ffd54f);
  border-color: #ff9800;
}

.image-placeholder--brand {
  background: linear-gradient(135deg, #e8f5e8, #c8e6c8);
  border-color: var(--color-earth-green);
  color: var(--color-earth-green);
}

.image-placeholder--brand:hover {
  background: linear-gradient(135deg, var(--color-light-green), var(--color-sage-green));
  border-color: var(--color-forest-green);
}

.image-placeholder--banner {
  background: linear-gradient(135deg, #f3e5f5, #e1bee7);
  border-color: #ab47bc;
  color: #7b1fa2;
}

.image-placeholder--banner:hover {
  background: linear-gradient(135deg, #e1bee7, #ce93d8);
  border-color: #9c27b0;
}

.image-placeholder--user {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-color: #42a5f5;
  color: #1976d2;
  border-radius: 50%;
}

.image-placeholder--user:hover {
  background: linear-gradient(135deg, #bbdefb, #90caf9);
  border-color: #2196f3;
}

.image-placeholder--portfolio {
  background: linear-gradient(135deg, #fce4ec, #f8bbd9);
  border-color: #e91e63;
  color: #c2185b;
}

.image-placeholder--portfolio:hover {
  background: linear-gradient(135deg, #f8bbd9, #f48fb1);
  border-color: #e91e63;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .image-placeholder--large {
    min-height: 250px;
  }
  
  .image-placeholder--xl {
    min-height: 300px;
  }
  
  .image-placeholder__icon {
    font-size: 2rem;
  }
  
  .image-placeholder--large .image-placeholder__icon {
    font-size: 3rem;
  }
  
  .image-placeholder--xl .image-placeholder__icon {
    font-size: 3.5rem;
  }
}

@media (max-width: 480px) {
  .image-placeholder {
    min-height: 150px;
  }
  
  .image-placeholder--large {
    min-height: 200px;
  }
  
  .image-placeholder--xl {
    min-height: 250px;
  }
}

/* ==========================================================================
   12. Banner Carousel Component (橫幅輪播組件)
   支持多個 Banner 輪播展示
   ========================================================================== */

.banner-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-gray-100);
}

.banner-carousel__container {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-carousel__wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-carousel__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-carousel__slide.active {
  opacity: 1;
  visibility: visible;
}

/* 繼承原有 Banner 樣式 */
.banner-carousel__slide .banner__image,
.banner-carousel__slide .image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.banner-carousel__slide .banner__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.banner-carousel__slide .banner__text-wrapper {
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem 3rem;
  border-radius: 12px;
  text-align: center;
  max-width: 600px;
  margin: 0 1rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.banner-carousel__slide .banner__title {
  color: #ffffff !important;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-carousel__slide .banner__subtitle {
  color: #ffffff !important;
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-carousel__slide .banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  color: #000000 !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.banner-carousel__slide .banner__cta:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #000000 !important;
  text-decoration: none;
}

/* 輪播控制按鈕 */
.banner-carousel__controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 3;
  pointer-events: none;
}

.banner-carousel__btn {
  pointer-events: all;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: #000000;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.banner-carousel__btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.banner-carousel__btn:active {
  transform: scale(0.95);
}

/* 輪播指示器 */
.banner-carousel__indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.banner-carousel__indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-carousel__indicator:hover {
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.banner-carousel__indicator.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 1);
  transform: scale(1.2);
}

/* 輪播響應式設計 */
@media (max-width: 768px) {
  .banner-carousel__container {
    height: 300px;
  }
  
  .banner-carousel__slide .banner__image,
  .banner-carousel__slide .image-placeholder {
    height: 300px;
  }
  
  .banner-carousel__slide .banner__text-wrapper {
    padding: 1.5rem 2rem;
    margin: 0 0.5rem;
  }
  
  .banner-carousel__slide .banner__title {
    font-size: 2rem;
  }
  
  .banner-carousel__slide .banner__subtitle {
    font-size: 1rem;
  }
  
  .banner-carousel__btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .banner-carousel__controls {
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .banner-carousel__container {
    height: 250px;
  }
  
  .banner-carousel__slide .banner__image,
  .banner-carousel__slide .image-placeholder {
    height: 250px;
  }
  
  .banner-carousel__slide .banner__text-wrapper {
    padding: 1rem 1.5rem;
  }
  
  .banner-carousel__slide .banner__title {
    font-size: 1.8rem;
  }
  
  .banner-carousel__slide .banner__subtitle {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .banner-carousel__slide .banner__cta {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .banner-carousel__indicator {
    width: 10px;
    height: 10px;
  }
}

/* ==========================================================================
   13. Pagination Component (分頁組件) - 新德揚美術設計 V3.0
   Laravel 預設分頁樣式美化，採用現代化設計風格，完全符合專案美學
   ========================================================================== */

/* 分頁容器包裝 */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4rem 0;
  padding: 0 1rem;
}

/* Laravel Navigation 容器整體設計 */
nav[role="navigation"] {
  width: 100%;
  max-width: 800px;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  border: 2px solid var(--color-light-green);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

nav[role="navigation"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-sage-green), var(--color-forest-green), var(--color-earth-green));
}

/* 手機版分頁設計 */
.flex.justify-between.flex-1.sm\\:hidden {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.flex.justify-between.flex-1.sm\\:hidden a,
.flex.justify-between.flex-1.sm\\:hidden span {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 50px;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  border-radius: 25px !important;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 2px solid var(--color-sage-green) !important;
  background: var(--color-white) !important;
  color: var(--color-sage-green) !important;
}

.flex.justify-between.flex-1.sm\\:hidden a:hover {
  background: var(--color-sage-green) !important;
  color: var(--color-white) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(102, 187, 106, 0.4) !important;
}

.flex.justify-between.flex-1.sm\\:hidden span {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  border-color: var(--color-gray-200) !important;
  color: var(--color-text-light) !important;
}

/* 桌面版分頁設計 */
.hidden.sm\\:flex-1.sm\\:flex.sm\\:items-center.sm\\:justify-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* 分頁信息文字美化 */
.hidden.sm\\:flex-1.sm\\:flex.sm\\:items-center.sm\\:justify-between p {
  background: var(--color-light-green) !important;
  color: var(--color-text-dark) !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 20px !important;
  font-weight: 500 !important;
  font-size: 0.95rem !important;
  border: 1px solid var(--color-mint-green) !important;
  margin: 0 !important;
}

/* 分頁按鈕容器 */
.relative.z-0.inline-flex.shadow-sm.rounded-md {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-gray-50);
  padding: 0.75rem;
  border-radius: 50px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 上一頁/下一頁按鈕樣式 */
.pagination__btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 52px !important;
  height: 52px !important;
  background: linear-gradient(135deg, var(--color-white), var(--color-gray-100)) !important;
  border: 2px solid var(--color-mint-green) !important;
  border-radius: 50% !important;
  color: var(--color-earth-green) !important;
  text-decoration: none !important;
  font-weight: bold !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.pagination__btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, var(--color-sage-green), var(--color-forest-green));
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.pagination__btn:hover {
  color: var(--color-white) !important;
  text-decoration: none !important;
  transform: translateY(-4px) scale(1.1) !important;
  box-shadow: 0 12px 28px rgba(102, 187, 106, 0.5) !important;
  border-color: var(--color-sage-green) !important;
}

.pagination__btn:hover::before {
  width: 120%;
  height: 120%;
}

.pagination__btn svg {
  width: 20px !important;
  height: 20px !important;
  fill: currentColor !important;
}

/* 禁用狀態 */
.pagination__btn--disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  border-color: var(--color-gray-200) !important;
  color: var(--color-text-light) !important;
}

.pagination__btn--disabled:hover {
  transform: none !important;
  box-shadow: none !important;
  background: linear-gradient(135deg, var(--color-white), var(--color-gray-100)) !important;
}

.pagination__btn--disabled::before {
  display: none;
}

/* 分頁數字連結 */
.pagination__link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 48px !important;
  height: 48px !important;
  padding: 0.75rem 1rem !important;
  color: var(--color-text-primary) !important;
  background: var(--color-white) !important;
  border: 2px solid transparent !important;
  border-radius: 50% !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  margin: 0 2px !important;
}

.pagination__link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--color-sage-green) 0%, var(--color-forest-green) 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.pagination__link:hover {
  color: var(--color-white) !important;
  text-decoration: none !important;
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 8px 20px rgba(102, 187, 106, 0.4) !important;
  border-color: var(--color-sage-green) !important;
}

.pagination__link:hover::before {
  width: 100%;
  height: 100%;
}

/* 當前頁面樣式 - 最突出的設計 */
.pagination__link--current {
  color: var(--color-white) !important;
  background: linear-gradient(135deg, var(--color-sage-green), var(--color-earth-green)) !important;
  border-color: var(--color-earth-green) !important;
  font-weight: 800 !important;
  transform: translateY(-3px) scale(1.1) !important;
  box-shadow: 0 8px 24px rgba(56, 142, 60, 0.6) !important;
  animation: currentPagePulse 2s ease-in-out infinite !important;
}

@keyframes currentPagePulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(56, 142, 60, 0.6);
  }
  50% {
    box-shadow: 0 12px 32px rgba(56, 142, 60, 0.8);
  }
}

.pagination__link--current::before {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-forest-green), var(--color-earth-green));
}

.pagination__link--current:hover {
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 0 10px 28px rgba(56, 142, 60, 0.7) !important;
}

/* 省略號樣式 */
.relative.inline-flex.items-center.px-4.py-2.-ml-px.text-sm.font-medium.text-gray-700.bg-white.border.border-gray-300.cursor-default.leading-5 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 48px !important;
  height: 48px !important;
  background: transparent !important;
  border: none !important;
  color: var(--color-sage-green) !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
  cursor: default !important;
  margin: 0 4px !important;
}

/* 響應式設計優化 */
@media (max-width: 768px) {
  nav[role="navigation"] {
    padding: 1rem;
    border-radius: 15px;
  }
  
  .pagination__btn {
    width: 44px !important;
    height: 44px !important;
  }
  
  .pagination__link {
    min-width: 40px !important;
    height: 40px !important;
    font-size: 0.9rem !important;
    margin: 0 1px !important;
  }
  
  .pagination__link--current {
    transform: translateY(-2px) scale(1.05) !important;
  }
  
  /* 隱藏部分頁碼以適應小螢幕 */
  .pagination__link:not(.pagination__link--current) {
    display: none !important;
  }
  
  /* 保留當前頁和相鄰頁 */
  .pagination__link--current,
  .pagination__link--current + .pagination__link,
  .pagination__link + .pagination__link--current {
    display: flex !important;
  }
}

@media (max-width: 480px) {
  nav[role="navigation"] {
    padding: 0.75rem;
    border-radius: 12px;
  }
  
  .flex.justify-between.flex-1.sm\\:hidden a,
  .flex.justify-between.flex-1.sm\\:hidden span {
    min-width: 100px !important;
    height: 44px !important;
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
  }
  
  .pagination__btn {
    width: 40px !important;
    height: 40px !important;
  }
  
  .pagination__btn svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  .pagination__link {
    min-width: 36px !important;
    height: 36px !important;
    font-size: 0.85rem !important;
  }
}

/* 載入狀態 */
.pagination-loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.pagination-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border: 3px solid var(--color-sage-green);
  border-top: 3px solid transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: paginationSpin 1s linear infinite;
}

@keyframes paginationSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 分頁容器懸浮效果 */
.pagination-wrapper:hover nav[role="navigation"] {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
  border-color: var(--color-sage-green);
}

/* 額外的視覺增強 */
nav[role="navigation"]:hover::before {
  background: linear-gradient(90deg, var(--color-forest-green), var(--color-sage-green), var(--color-earth-green), var(--color-forest-green));
  background-size: 200% 100%;
  animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}