/* ===================================
   新頁面共通樣式
   =================================== */

/* Breadcrumb Navigation */
.breadcrumb-nav {
  margin-bottom: 0;
}

.breadcrumb-nav .main {
  max-width: 1366px;
  margin: auto;
}

.breadcrumb {
  background-color: transparent;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.breadcrumb-item {
  color: #666;
}

.breadcrumb-item a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #333;
  font-weight: 500;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "/";
  color: #999;
  padding: 0 0.5rem;
}

/* 響應式調整 */
@media (max-width: 768px) {
  .breadcrumb-nav {
    padding: 0.75rem 0;
  }

  .breadcrumb {
    font-size: 0.85rem;
  }

  .breadcrumb-item+.breadcrumb-item::before {
    padding: 0 0.3rem;
  }

  .section-content table,
  .section-content thead,
  .section-content tbody,
  .section-content th,
  .section-content td,
  .section-content tr {
    display: inline;
  }

  /* 隱藏表頭，因為上下排列時表頭通常會錯位 */
  .section-content thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .section-content td {
    width: 100% !important;
    height: auto !important;
  }
}

/* Page Banner */
.page-banner {
  padding: 1rem 0 1rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin: 0;
}

/* Section 樣式 */
.content-section {
  padding: 1rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 1.5rem;
}

.section-intro {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.section-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.section-content p {
  margin-bottom: 1rem;
}

.section-content h2 {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--main-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.section-content h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.section-content h4 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.section-content ul,
.section-content ol {
  margin-bottom: 1rem;
  padding-left: 2rem;
}

.section-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.section-content strong {
  font-weight: bold;
  color: #222;
}

.section-content a {
  color: var(--main-color);
  text-decoration: none;
}

.section-content a:hover {
  text-decoration: underline;
}

.section-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
}

.section-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.section-content table th,
.section-content table td {}

.section-content table th {}

.section-content blockquote {
  border-left: 4px solid var(--main-color);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #666;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #01a2cf 0%, #0182a7 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-section h3 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-section .btn {
  background-color: white;
  color: var(--main-color);
  font-weight: bold;
  padding: 0.75rem 2rem;
}

.cta-section .btn:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ===================================
   關於我們頁面
   =================================== */

/* 品牌理念卡片 */
.concept-card {
  padding: 2rem 1rem;
  height: 100%;
  transition: transform 0.3s;
}

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

.concept-icon {
  font-size: 3rem;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.concept-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.concept-text {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* 服務特色 */
.feature-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s;
}

.feature-item:hover {
  background-color: #e9ecef;
  transform: translateX(10px);
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--main-color);
  margin-right: 1rem;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.feature-content p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

/* 據點卡片 */
.location-card {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--main-color);
  transition: all 0.3s;
}

.location-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.location-card h4 {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.location-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.location-card i {
  color: var(--main-color);
  margin-right: 0.5rem;
}

/* ===================================
   醫師團隊頁面
   =================================== */

.doctor-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.doctor-image {
  width: 100%;
  height: auto;
  overflow: hidden;
  background-color: #f8f9fa;
}

.doctor-image img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  max-height: 300px;
}

.doctor-info {
  padding: 1.5rem;
}

.doctor-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 0.5rem;
}

.doctor-title {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.doctor-specialty h4,
.doctor-education h4 {
  font-size: 1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.75rem;
  margin-top: 1rem;
}

.doctor-specialty ul,
.doctor-education ul {
  list-style: none;
  padding-left: 0;
}

.doctor-specialty ul li,
.doctor-education ul li {
  font-size: 0.9rem;
  color: #666;
  padding: 0.25rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.doctor-specialty ul li:before,
.doctor-education ul li:before {
  content: "•";
  color: var(--main-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ===================================
   EECP 服務介紹頁面
   =================================== */

/* FDA 時間軸 */
.fda-timeline h4 {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 0.75rem;
}

.fda-timeline p {
  font-size: 1rem;
  line-height: 1.8;
}

/* 適應症列表 - 移除 Bootstrap 依賴 */
.indication-list {
  padding: 0;
}

.indication-list ol {
  padding-left: 1.5rem;
  margin: 0;
}

.indication-list ol li {
  font-size: 1rem;
  line-height: 2;
  color: #333;
  padding: 0.25rem 0;
}

/* 效益卡片 */
.benefits-container {
  padding: 1rem 0;
}

.benefit-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem 1rem;
  border-radius: 10px;
  transition: all 0.3s;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.benefit-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 1rem;
}

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

/* 療程步驟 */
.process-card {
  padding: 2rem 1rem;
  background-color: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s;
}

.process-card:hover {
  background-color: var(--main-color);
  color: white;
}

.process-card:hover .process-icon,
.process-card:hover h4,
.process-card:hover p {
  color: white;
}

.process-icon {
  font-size: 2.5rem;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.process-card h4 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.75rem;
}

.process-card p {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

/* FAQ */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--main-color);
}

.faq-question {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 0.75rem;
}

.faq-answer {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  margin: 0;
  padding-left: 1rem;
}

/* ===================================
   聯絡我們頁面
   =================================== */

.contact-form-section {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 10px;
}

.contact-form-section h3 {
  color: var(--main-color);
  font-weight: bold;
}

.contact-form-section label {
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.contact-form-section .form-control {
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  padding: 0.75rem;
}

.contact-form-section .form-control:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 0 0.2rem rgba(1, 162, 207, 0.25);
}

.location-detail-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  height: 100%;
  transition: all 0.3s;
}

.location-detail-card:hover {
  border-color: var(--main-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location-detail-card h4 {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.location-detail-card h4 i {
  margin-right: 0.5rem;
}

.location-info p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.location-info a {
  color: var(--main-color);
  text-decoration: none;
}

.location-info a:hover {
  text-decoration: underline;
}

/* ===================================
   部落格頁面
   =================================== */

/* 分類標籤 */
.blog-categories {
  margin-bottom: 2rem;
}

.blog-categories .btn {
  margin: 0.25rem;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
}

.blog-categories .btn.active {
  background-color: var(--main-color);
  color: white;
  border-color: var(--main-color);
}

/* 部落格卡片 */
.blog-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.blog-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-category-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--main-color);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.75rem;
}

.blog-meta i {
  margin-right: 0.25rem;
}

.blog-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-read-more {
  color: var(--main-color);
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
}

.blog-read-more:hover {
  color: #0182a7;
  text-decoration: none;
}

.blog-read-more i {
  margin-left: 0.5rem;
  transition: transform 0.3s;
}

.blog-read-more:hover i {
  transform: translateX(5px);
}

/* 分頁 */
.pagination .page-link {
  color: var(--main-color);
  border-color: #e0e0e0;
}

.pagination .page-item.active .page-link {
  background-color: var(--main-color);
  border-color: var(--main-color);
}

.pagination .page-link:hover {
  background-color: #f8f9fa;
  color: var(--main-color);
}

/* ===================================
   響應式設計
   =================================== */

@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .cta-section h3 {
    font-size: 1.5rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  .doctor-image {
    height: auto;
  }

  .benefit-number {
    font-size: 2.5rem;
  }
}

/* ===================================
   部落格文章內頁
   =================================== */

/* 麵包屑 */
.breadcrumb {
  background-color: transparent;
}

.breadcrumb-item a {
  color: var(--main-color);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #666;
}

/* 文章主體 */
.blog-article {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 文章頭部 */
.article-header {
  margin-bottom: 2rem;
}

.article-category {
  display: inline-block;
  background-color: var(--main-color);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: #999;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta i {
  color: var(--main-color);
}

/* 文章特色圖片 */
.article-featured-image {
  margin-bottom: 2rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* 文章摘要 */
.article-excerpt {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-left: 4px solid var(--main-color);
  margin-bottom: 2rem;
  border-radius: 5px;
}

.article-excerpt p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

/* 文章內容 */
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.article-content h3 {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--main-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h4 {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 2rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.article-content ul li {
  list-style-type: disc;
}

.article-content strong {
  font-weight: bold;
  color: #222;
}

.article-content a {
  color: var(--main-color);
  text-decoration: none;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.article-content table th,
.article-content table td {
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.article-content table th {
  background-color: #f8f9fa;
  font-weight: bold;
  color: #333;
}

.article-content blockquote {
  border-left: 4px solid var(--main-color);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #666;
}

/* 分享按鈕 */
.article-share {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
}

.article-share h4 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: white;
}

.share-btn.facebook {
  background-color: #1877f2;
}

.share-btn.facebook:hover {
  background-color: #0d65d9;
}

.share-btn.line {
  background-color: #00b900;
}

.share-btn.line:hover {
  background-color: #009900;
}

.share-btn.copy {
  background-color: #6c757d;
}

.share-btn.copy:hover {
  background-color: #5a6268;
}

/* 文章導航 */
.article-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
}

.article-navigation .nav-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #f8f9fa;
  color: var(--main-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s;
}

.article-navigation .nav-link:hover {
  background-color: var(--main-color);
  color: white;
  text-decoration: none;
}

.article-navigation .nav-link i {
  font-size: 0.85rem;
}

/* 側邊欄 */
.blog-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--main-color);
}

/* 搜尋框 */
.search-widget .form-control {
  border: 2px solid #e0e0e0;
  border-radius: 25px 0 0 25px;
}

.search-widget .form-control:focus {
  border-color: var(--main-color);
  box-shadow: none;
}

.search-widget .btn {
  border-radius: 0 25px 25px 0;
  background-color: var(--main-color);
  border-color: var(--main-color);
}

.search-widget .btn:hover {
  background-color: #0182a7;
  border-color: #0182a7;
}

/* 分類列表 */
.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 0.5rem;
}

.category-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #666;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
}

.category-list a:hover {
  background-color: #f8f9fa;
  color: var(--main-color);
  padding-left: 1rem;
}

/* 熱門文章 */
.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popular-post-item {
  display: flex;
  gap: 1rem;
  text-decoration: none;
  transition: all 0.3s;
}

.popular-post-item:hover {
  transform: translateX(5px);
}

.popular-post-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.popular-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-post-content {
  flex: 1;
}

.popular-post-content h5 {
  font-size: 0.95rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-post-item:hover .popular-post-content h5 {
  color: var(--main-color);
}

.popular-post-date {
  font-size: 0.85rem;
  color: #999;
}

/* CTA Widget */
.cta-widget .cta-box {
  background: linear-gradient(135deg, #01a2cf 0%, #0182a7 100%);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  color: white;
}

.cta-widget .cta-box h4 {
  color: white;
  border: none;
  margin-bottom: 0.75rem;
  padding: 0;
}

.cta-widget .cta-box p {
  margin-bottom: 1.5rem;
}

.cta-widget .btn {
  background-color: white;
  color: var(--main-color);
  font-weight: bold;
}

.cta-widget .btn:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
}

/* 相關文章 */
.related-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--main-color);
}

/* 響應式設計 - 文章內頁 */
@media (max-width: 992px) {
  .blog-sidebar {
    position: static;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .blog-article {
    padding: 1.5rem;
  }

  .article-title {
    font-size: 1.8rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .article-content h3 {
    font-size: 1.4rem;
  }

  .article-content h4 {
    font-size: 1.2rem;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-btn {
    width: 100%;
    justify-content: center;
  }

  .sidebar-widget {
    padding: 1rem;
  }

  .popular-post-image {
    width: 60px;
    height: 60px;
  }

  .popular-post-content h5 {
    font-size: 0.9rem;
  }
}