/* 基礎樣式 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Hero 區塊 */
.hero-section {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('./assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content .subtitle {
    font-size: 1.8rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* 介紹區塊 */
.intro-section {
    padding: 100px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.intro-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
}

.intro-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 特色區塊 */
.features-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 繼承原有的全局樣式 */
.page-banner {
    height: 300px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../assets/images/about-banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.breadcrumb {
    font-size: 1rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.content-wrapper {
    display: flex;
    gap: 2rem;
    padding: 3rem 0;
}

.sidebar {
    flex: 0 0 250px;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #eee;
}

.side-nav li {
    border-bottom: 1px solid #eee;
}

.side-nav li:last-child {
    border-bottom: none;
}

.side-nav a {
    display: block;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.side-nav li.active a,
.side-nav a:hover {
    background-color: #007bff;
    color: white;
}

.main-content {
    flex: 1;
}

.content-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.content-box img {
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

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

.mission-item {
    text-align: center;
    padding: 2rem;
}

.mission-item i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

/* Tab 樣式 */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 1rem 2rem;
    border: none;
    background: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: #007bff;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.tab-btn.active {
    color: #007bff;
}

.tab-btn.active::after {
    transform: scaleX(1);
}

/* Tab 內容樣式 */
.tab-content {
    margin-top: 2rem;
}

#about.tab-pane ,#structure.tab-pane{
    display: none;
}

#about.tab-pane.active ,#structure.tab-pane.active {
    display: block;
}

/* 關於本會內容樣式 */
#about h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem;
    color: #333;
}

#about p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #666;
}

/* 組織架構區塊美化（新版） */
#organization {
  margin: 40px auto 60px auto;
  text-align: center;
  background: transparent;
  padding: 60px 0;
  border-radius: 20px;
  box-shadow: none;
  width: 100%;
  max-width: 2000px;
  overflow-x: hidden;
}

#organization h2 {
  font-size: 2rem;
  margin-bottom: 50px;
  letter-spacing: 2px;
  color: #1e293b;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

#organization h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

#organization-honorary h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  letter-spacing: 2px;
  color: #1e293b;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

#organization-honorary h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

#organization-gba-honorary h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  letter-spacing: 2px;
  color: #1e293b;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

#organization-gba-honorary h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

#organization-life-honorary h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  letter-spacing: 2px;
  color: #1e293b;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

#organization-life-honorary h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding: 2rem 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.org-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 0;
  flex-wrap: wrap;
  position: relative;
}

.org-row::before,
.org-row:not(:last-child)::after {
  display: none !important;
}

.org-row-center {
  justify-content: center;
}

.org-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 32px 24px 24px 24px;
  min-width: 200px;
  max-width: 240px;
  margin: 0 8px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* 組織架構區（非名譽顧問）在桌面固定卡片寬度，統一視覺 */
@media (min-width: 901px) {
  #organization .org-card {
    width: 240px;
  }
  #organization-gba-honorary .org-card {
    width: 240px;
  }
  /* 會長卡片同樣固定寬度 */
  #organization .org-president {
    width: 240px;
  }
}

.org-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.org-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 8px 16px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(59, 130, 246, 0.2);
}

.org-card:hover::before {
  opacity: 1;
}

.org-president {
  border: 1px solid rgba(59, 130, 246, 0.1);
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: none;
}

.org-president:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(59, 130, 246, 0.2);
}

.org-photo {
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
  min-width: 120px !important;
  min-height: 120px !important;
  margin: 0 auto 16px auto;
  position: relative;
  border-radius: 50%;
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.org-card:hover .org-photo {
  transform: scale(1.05);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.16),
    0 4px 12px rgba(0, 0, 0, 0.12);
}

.org-photo img {
  width: 100% !important;
  height: 100% !important;
  max-width: 120px !important;
  max-height: 120px !important;
  min-width: 120px !important;
  min-height: 120px !important;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: block;
}

.org-card:hover .org-photo img {
  border-color: #3b82f6;
}

.org-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.org-president .org-title {
  color: #1d4ed8;
  font-weight: 800;
}

.org-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

.org-president .org-name {
  color: #1e293b;
  font-weight: 700;
}

.org-role {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.5;
  font-weight: 500;
  /* 保持卡片一致高度：角色區域最小高度約兩行 */
  min-height: 3em;
}

.org-president .org-role {
  color: #475569;
  font-weight: 600;
}

.org-role a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: none;
}

.org-role a:hover {
  color: #64748b;
  text-decoration: underline;
}

/* 連接線效果 */
.org-row:not(:last-child)::after {
  display: none !important;
}

/* 最底一層與上層保持一致：置中、固定卡片寬度與間距 */
.org-chart > .org-row:last-child {
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  gap: 30px;
}
.org-chart > .org-row:last-child .org-card {
  min-width: 200px;
  max-width: 240px;
  flex: 0 0 auto;
}

/* 針對零售餐飲科技行業名譽顧問的5個卡片平排顯示 */
#organization-honorary .org-row {
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
}

#organization-honorary .org-card {
  min-width: 0;
  max-width: 18%;
  flex: 1 1 0;
}
@media (max-width: 1200px) {
  .org-chart > .org-row:last-child .org-card {
    max-width: 240px;
  }
  #organization-honorary .org-card {
    max-width: 20%;
  }
}
@media (max-width: 900px) {
  /* 組織架構與大灣區名譽顧問：平板統一每卡約半版寬 */
  #organization .org-row,
  #organization-gba-honorary .org-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
  #organization .org-card,
  #organization-gba-honorary .org-card {
    flex: 0 0 45%;
    max-width: 45%;
    min-width: 160px;
  }
  #organization .org-president {
    flex: 0 0 45%;
    max-width: 45%;
    min-width: 160px;
  }
  .org-chart > .org-row:last-child {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
  .org-chart > .org-row:last-child .org-card {
    max-width: 45%;
    min-width: 160px;
  }
  #organization-honorary .org-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
  #organization-honorary .org-card {
    max-width: 45%;
    min-width: 160px;
  }
}
@media (max-width: 600px) {
  #organization {
    padding: 40px 0;
  }
  .org-chart {
    width: 100vw;
    padding: 0.5rem 0;
  }
  /* 手機寬度統一為整行 */
  #organization .org-row,
  #organization-gba-honorary .org-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  #organization .org-card,
  #organization-gba-honorary .org-card {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 140px;
  }
  #organization .org-president {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 140px;
  }
  .org-chart > .org-row:last-child {
    flex-wrap: wrap;
    gap: 10px;
  }
  .org-chart > .org-row:last-child .org-card {
    max-width: 95vw;
    min-width: 140px;
  }
  #organization-honorary .org-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  #organization-honorary .org-card {
    max-width: 95vw;
    min-width: 140px;
  }
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .subtitle {
        font-size: 1.3rem;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .intro-section,
    .features-section {
        padding: 50px 0;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        flex: none;
        width: 100%;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .tab-btn {
        text-align: center;
    }

    .level-2, .level-3 {
        flex-direction: column;
        align-items: center;
    }

    .org-unit {
        min-width: 200px;
    }

    .org-tree::before,
    .level-2::before,
    .level-3::before {
        display: none;
    }

    .member-photo {
        width: 100px;
        height: 100px;
    }
} 