body {
  background-color: #f2f2f2; /* 比原本灰淺少少，睇落舒服啲 */
}

.page-title-container {
    position: relative;
    background-image: url('../apple_education/apple_education_image/accessbility_background.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-title-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.content-container {
    max-width: 1400px; /* 由 1200 加大少少 */
    margin: 0 auto;
    padding: 20px;
    min-height: 400px; /* Ensures there's some space on the page */
}

/* ===== Accessibility Core Section（Apple 核心理念）===== */
.accessibility-core {
  background-color: #f6f6f9;
  /*padding: 80px 40px; /* 加大 padding，令整個區塊更「肥」 */
  padding: 100px 60px; /* 增加 padding 令區塊更「肥」- Increased padding to make section "fatter" */
  border-radius: 20px; /* 增加圓角 - Increased border radius for softer edges */
  margin: 80px auto; /* 增加上下間距 - Increased vertical margin */
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08); /* 增強陰影效果 - Enhanced shadow for more depth */
  max-width: 1300px; /* 增加最大寬度 - Increased max-width to make section "fatter" */
  /* 如何令區塊更「肥」:
     1. 增加 max-width 使整體更寬
     2. 增加 padding 使內容區域更大
     3. 增強視覺效果如陰影和邊框
     4. 增加 margin 使區塊在頁面中更突出
  */
}

/* 主標題：「輔助使用是 Apple 的核心」 */
.core-title {
  font-size: 3.2rem; /* 增大字體 - Increased font size for more prominence */
  font-weight: 700;
  margin-bottom: 20px; /* 增加下方間距 - Increased bottom margin */
  line-height: 1.2; /* 調整行高 - Adjusted line height for better readability */
}

/* Apple 字眼加 gradient */
.apple-gradient {
  background: linear-gradient(to right, #6e6eff, #bd00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 5px; /* 為漸變文字增加少許內間距 - Added slight padding to gradient text */
}

/* 副標題：「Apple 自 1985 年…」 */
.core-subtitle {
  font-size: 1.4rem; /* 增大字體 - Increased font size */
  color: #666;
  margin-bottom: 60px; /* 增加下方間距 - Increased bottom margin */
  max-width: 800px; /* 限制寬度 - Limited width for better readability */
  margin-left: auto; /* 水平居中 - Horizontal centering */
  margin-right: auto; /* 水平居中 - Horizontal centering */
}

/* 左右圖文排版 */
.core-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 70px; /* 增加間距 - Increased gap between elements */
  flex-wrap: wrap;
  margin-top: 30px; /* 增加上方間距 - Added top margin */
}

/* 左邊圖標 */
.accessibility-icon {
  width: 250px; /* origin 250 增大圖標 - Increased icon size */
  border-radius: 25px; /* 增加圓角 - Increased border radius */
  box-shadow: 0 15px 30px rgba(0,0,0,0.18); /* 增強陰影 - Enhanced shadow */
  transition: transform 0.3s ease; /* 添加過渡效果 - Added transition effect */
}

.accessibility-icon:hover {
  transform: scale(1.05); /* 懸停時放大效果 - Scale up on hover */
}

/* 右邊文字區 */
.core-text-block {
  max-width: 580px; /* 增加文字區寬度 - Increased text block width */
  text-align: left;
  padding: 20px; /* 添加內間距 - Added padding */
}

/* 引用語句 */
.core-text-block blockquote {
  font-style: italic;
  font-size: 1.4rem; /* 增大字體 - Increased font size */
  color: #444;
  margin-bottom: 15px;
  line-height: 1.6; /* 調整行高 - Adjusted line height */
  border-left: 4px solid #6e6eff; /* 添加左邊框 - Added left border */
  padding-left: 20px; /* 添加左內間距 - Added left padding */
}

/* 引用作者 */
.core-text-block cite {
  display: block;
  font-size: 1.05rem; /* 增大字體 - Increased font size */
  color: #888;
  margin-bottom: 25px; /* 增加下方間距 - Increased bottom margin */
}

/* 說明段落文字 */
.core-description {
  font-size: 1.15rem; /* 增大字體 - Increased font size */
  color: #333;
  line-height: 1.8; /* 增加行高 - Increased line height */
}



/* ===== 新功能卡片區塊 ===== */
.accessibility-features {
  padding: 80px 20px;
  background-color: #f9f9fb;
  text-align: center;
}

.features-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.features-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 50px;
  background-color: #377DFF;
  margin: 10px auto 0;
  border-radius: 2px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden; /* 確保圓角顯示正確 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* 新增藍色上半部分 */
/* 上半部分淺藍背景區域 */
.feature-icon-container {
  background: #e0f0ff; /* 淺藍色背景 */
  padding: 10px 0; /* 減少上下 padding 空間 */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px; /* 保持容器高度 */
}


/*圖示 Icon 樣式, 圖示置中 */
.feature-icon {
  width: 100px; /* 增加圖標尺寸為 100x100 像素 */
  height: 100px;
  object-fit: contain; /* 確保圖像保持比例並完全顯示 */
}

/* 特別為 SpokenContent 圖標設置更大的尺寸 */
.feature-icon-spoken-content {
  width: 120px; /* 更大的尺寸 */
  height: 120px;
}

/* 移除單獨針對第二張卡的特殊尺寸 */
/* .feature-icon.feature-icon-large {
  width: 120px;
  height: 120px;
} */

/* 下半部分文字 */
.feature-content {
  padding: 20px;
  text-align: left;
}


/* 輔助使用功能詳情 Section，包括一排 tab 頁*/
.accessibility-details-section {
  padding: 80px 20px;
  background-color: #f7f8fa;
  border-radius: 20px;
  max-width: 1300px;
  margin: 80px auto;
}

.details-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  position: relative;
}

.details-title::after {
  content: '';
  display: block;
  height: 3px;
  width: 60px;
  background-color: #377DFF;
  margin: 10px auto 0;
  border-radius: 2px;
}

.details-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

.details-tabs .tab {
  font-size: 1.1rem;
  cursor: pointer;
  padding: 10px 20px;
  color: #555;
  position: relative;
}

.details-tabs .tab.active {
  color: #377DFF;
  font-weight: bold;
}

.details-tabs .tab.active::after {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  background-color: #377DFF;
  position: absolute;
  bottom: -10px;
  left: 0;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: center;
  align-items: center;
}

.tab-graphic img {
  width: 160px;
  max-width: 100%;
}

.tab-text {
  max-width: 600px;
}

.tab-text h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.tab-text ul {
  list-style: none;
  padding: 0;
}

.tab-text ul li::before {
  content: "✔";
  color: #377DFF;
  margin-right: 10px;
}


/* 第一個 tab（「App Store 營養標籤」）， CSS 畫出嘅營養標籤卡 */

.nutrition-css-box {
  width: 320px;
  background-color: #eee;
  border: 3px solid #377DFF;
  border-radius: 12px;
  padding: 20px;
  font-family: "Arial", sans-serif;
  box-sizing: border-box;
}

.nutrition-header {
  background-color: #ddd;
  padding: 10px 0;
  text-align: center;
  font-weight: bold;
  margin-bottom: 15px;
  border-radius: 6px;
}

.nutrition-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.nutrition-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nutrition-item {
  display: flex;
  align-items: center;
  background-color: #ccc;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #007aff;
  margin-right: 8px;
}


.accessibility-ecosystem {
  background-color: #eef4ff;
  padding: 80px 30px;
  border-radius: 20px;
  max-width: 1400px;
  margin: 80px auto;
}


/*生態系統 Section */
.ecosystem-title {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 50px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 強制 2 欄 */
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}


.ecosystem-card {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 20px 25px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ecosystem-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 32px;
  color: #007aff;
  flex-shrink: 0;
}

.card-content h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0 0 10px;
}

.card-content p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
}


/* 功能發展歷程 Section */
.accessibility-timeline-centered {
  display: none; /* Hide the timeline section as requested */
  background-color: #f5f5f5;
  padding: 60px 20px;
  text-align: center;
}

.timeline-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 60px;
  color: #333;
}

.timeline-centered-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* 垂直中線 */
.timeline-centered-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: #0071e3;
}

/* 每一條 item 行 */
.timeline-centered-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
  position: relative;
}

/* 左邊年份 */
.timeline-date {
  flex: 1;
  text-align: right;
  font-size: 18px;
  font-weight: bold;
  color: #0071e3;
  padding-right: 30px;
}

/* 中間圓點 */
.timeline-dot-line {
  position: relative;
  width: 20px;
  height: 20px;
  background-color: #0071e3;
  border-radius: 50%;
  z-index: 1;
  flex-shrink: 0;
}

/* 右邊內容 */
.timeline-content {
  flex: 2;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px 25px;
  text-align: left;
  font-size: 16px;
  color: #444;
  margin-left: 40px;
  max-width: 400px;  /* ✅ 控制卡片寬度 */
  word-wrap: break-word;
}

/* 針對左邊年份（非 flip） */
.timeline-label.label-left {
  padding-right: 0;           /* ✅ 移除多餘右邊距 */
  align-items: flex-end;      /* ✅ 靠右對齊 */
  text-align: right;
}


/* 左至右排列 */
.timeline-centered-item.flip {
  flex-direction: row;
}

.timeline-centered-item.flip .timeline-date {
  text-align: center;        /* ✅ 改返居中 */
  padding: 0;
}

.timeline-centered-item.flip .timeline-content {
  order: 0;
  margin-right: 40px;
  margin-left: 0;
  max-width: 395px;  /* ✅ 控制卡片寬度 */
  text-align: right;
}

/* 放大版本的卡片 */
.timeline-content.large {
  max-width: 520px;
  font-size: 18px;
  background-color: #ffffff;
  border-left: 5px solid #0071e3;
}


.timeline-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding-right: 30px;
}

.timeline-centered-item.flip .timeline-label {
  padding-left: 30px;
  padding-right: 0;
  align-items: flex-start;
}


.timeline-subtext {
  font-size: 14px;
  color: #888;
  margin-top: 5px;
  margin-bottom: 0;
  line-height: 1.4;
  text-align: center;
  max-width: 200px;
}






@media (max-width: 768px) {
  .timeline-centered-item.flip {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .timeline-centered-item.flip .timeline-date {
    text-align: center;
    padding: 0;
  }

  .timeline-centered-item.flip .timeline-content {
    margin: 20px 0 0 0;
    width: 100%;
    text-align: center;
  }

  .timeline-content.large {
    max-width: none;
    font-size: 16px;
    border-left: none;
  }
}
