/*================================================
Blog Article Custom Styles - 優化閱讀體驗
=================================================*/

/* Blogs 標籤樣式調整 */
.products-details-area .sub-title-3 {
  margin-bottom: 40px !important;
}

/* 諮詢服務區塊樣式 */
.consultation-content {
  padding: 10px 40px 30px;
}

.consultation-content h3 {
  color: var(--mainColor2);
  font-size: 32px;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 700;
}

.consultation-intro {
  color: var(--paragraphColorSecond);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.consultation-row {
  margin-bottom: 25px;
}

.consultation-benefits {
  background: rgba(67, 165, 254, 0.05);
  padding: 30px;
  border-radius: 10px;
  height: 100%;
  border: 1px solid rgba(67, 165, 254, 0.2);
}

.consultation-benefits h4 {
  color: var(--whiteColor);
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 600;
}

.benefits-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.benefits-list li {
  color: var(--paragraphColorSecond);
  font-size: 16px;
  line-height: 2;
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
}

.benefits-list li::before {
  content: "✓";
  color: var(--mainColor2);
  font-weight: bold;
  font-size: 18px;
  position: absolute;
  left: 0;
  top: 0;
}

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

.consultation-cta {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, rgba(67, 165, 254, 0.1) 0%, rgba(67, 165, 254, 0.05) 100%);
  border-radius: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(67, 165, 254, 0.2);
}

.consultation-cta h4 {
  color: var(--whiteColor);
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 600;
}

.consultation-cta > p {
  color: var(--paragraphColorSecond);
  font-size: 16px;
  margin-bottom: 25px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .default-btn {
  padding: 14px 35px;
  min-width: 180px;
  font-size: 16px;
}

.cta-buttons .btn-primary {
  background: var(--mainColor2);
  color: var(--whiteColor);
  border: 2px solid var(--mainColor2);
}

.cta-buttons .btn-primary:hover {
  background: transparent;
  color: var(--mainColor2);
}

.cta-buttons .btn-outline {
  background: transparent;
  border: 2px solid var(--mainColor2);
  color: var(--mainColor2);
}

.cta-buttons .btn-outline:hover {
  background: var(--mainColor2);
  color: var(--whiteColor);
}

.consultation-note {
  background: rgba(255, 193, 7, 0.1);
  padding: 15px 20px;
  border-radius: 8px;
  border-left: 4px solid #ffc107;
}

.consultation-note p {
  margin: 0;
  color: var(--paragraphColorSecond);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.6;
}

.consultation-note i {
  color: #ffc107;
  font-size: 20px;
  flex-shrink: 0;
}

/* 參考資料區塊樣式 */
.reference-list {
  padding: 10px 40px 30px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(67, 165, 254, 0.2);
}

.reference-list h3 {
  color: var(--mainColor2);
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 700;
}

.reference-list > p {
  color: var(--paragraphColorSecond);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.reference-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.reference-links li {
  margin-bottom: 25px;
  padding-bottom: 10px;
  padding-top: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reference-links li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.reference-links li strong {
  color: var(--whiteColor);
  font-size: 18px;
  display: inline-block;
  margin-bottom: 5px;
  line-height: 1.5;
}

.reference-links li strong + br {
  display: block;
  content: "";
  margin-bottom: -10px;
  line-height: 0.3;
}

.reference-links li a {
  color: var(--mainColor2);
  font-size: 15px;
  word-break: break-all;
  text-decoration: none;
  transition: all 0.3s ease;
}

.reference-links li a:hover {
  color: var(--whiteColor);
  text-decoration: underline;
}

/* 參考資料 tab 寬度覆寫 */
#references-tab-pane {
  width: 100% !important;
  max-width: 100% !important;
}

@media only screen and (max-width: 767px) {
  .consultation-content {
    padding: 10px 20px 25px;
  }
  
  .consultation-content h3 {
    font-size: 26px;
  }
  
  .consultation-intro {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .consultation-row {
    margin-bottom: 20px;
  }

  .consultation-benefits {
    padding: 20px;
    margin-bottom: 20px;
  }

  .consultation-benefits h4 {
    font-size: 20px;
  }

  .benefits-list li {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 6px;
    padding-left: 22px;
  }
  
  .benefits-list li::before {
    font-size: 16px;
  }

  .consultation-cta {
    padding: 25px 20px;
  }

  .consultation-cta h4 {
    font-size: 22px;
  }

  .consultation-cta > p {
    font-size: 15px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .default-btn {
    width: 100%;
  }

  .reference-list {
    padding: 20px 15px;
  }
  
  .reference-list h3 {
    font-size: 24px;
  }
  
  .reference-list > p {
    font-size: 16px;
  }
  
  .reference-links li strong {
    font-size: 17px;
  }
  
  .reference-links li a {
    font-size: 14px;
  }
}

/* 產品詳情描述區優化 */
.products-details-desc {
  padding-left: 30px;
}

.products-details-desc h3 {
  font-size: 36px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.products-details-desc p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--paragraphColorSecond);
}

.products-details-desc .products-review {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.products-details-desc .products-review .rating span {
  font-size: 15px;
}

.products-details-desc .products-review .rating-count {
  font-size: 15px;
}

.products-details-desc .products-review .in-stock {
  font-size: 15px;
}

.products-details-desc .products-meta {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.products-details-desc .products-meta span {
  font-size: 15px;
  margin-bottom: 8px;
}

/* 文章內容區域整體優化 - 動態寬度適應 */
.products-details-tabs .tab-content .tab-pane {
  max-width: 1000px;
  width: 85%;
  margin: 0 auto;
  padding: 40px 20px;
}

/* 超大螢幕優化 (>1400px) */
@media only screen and (min-width: 1400px) {
  .products-details-tabs .tab-content .tab-pane {
    max-width: 1100px;
    width: 80%;
  }
}

/* 大螢幕優化 (1200px - 1399px) */
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .products-details-tabs .tab-content .tab-pane {
    max-width: 1000px;
    width: 82%;
  }
}

/* 主標題樣式優化 */
.products-details-tabs .tab-content .tab-pane h2 {
  font-size: 32px;
  color: var(--whiteColor);
  margin-top: 50px;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.4;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(67, 165, 254, 0.3);
}

/* 第一個標題上方不需要太多空間 */
.products-details-tabs .tab-content .tab-pane h2:first-child {
  margin-top: 0;
}

/* 副標題樣式優化 */
.products-details-tabs .tab-content .tab-pane h3 {
  font-size: 24px;
  color: var(--whiteColor);
  /* margin-top: 40px; */
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.5;
}

/* 段落文字優化 - 增加可讀性 */
.products-details-tabs .tab-content .tab-pane p {
  color: var(--paragraphColorSecond);
  font-size: 18px;
  line-height: 1.9;
  margin-bottom: 25px;
  text-align: justify;
  letter-spacing: 0.3px;
}

/* 列表容器樣式優化 */
.products-details-tabs .tab-content .tab-pane .dectip-1 {
  background: rgba(67, 165, 254, 0.05);
  border-left: 4px solid var(--mainColor2);
  padding: 30px 35px;
  margin: 35px 0;
  border-radius: 8px;
}

/* 列表項目優化 */
.products-details-tabs .tab-content .tab-pane .dectip-1 ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.products-details-tabs .tab-content .tab-pane .dectip-1 ul li {
  color: var(--paragraphColorSecond);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 30px;
  padding-left: 0;
  position: relative;
}

.products-details-tabs .tab-content .tab-pane .dectip-1 ul li:last-child {
  margin-bottom: 0;
}

/* 列表項目的粗體標題 */
.products-details-tabs .tab-content .tab-pane .dectip-1 ul li strong {
  color: var(--mainColor2);
  font-size: 19px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 10px;
  line-height: 1.5;
}

/* 縮小子標題後 br 的間距 */
.products-details-tabs .tab-content .tab-pane .dectip-1 ul li strong + br {
  display: block;
  content: "";
  margin-bottom: -8px;
  line-height: 0.5;
}

/* 分隔線優化 */
.products-details-tabs .tab-content .tab-pane hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(67, 165, 254, 0.3), transparent);
  margin: 50px 0;
}

/* 為圖片預留空間 */
.blog-article-image {
  margin: 40px 0;
  text-align: center;
}

.blog-article-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.blog-article-image img:hover {
  transform: scale(1.02);
}

.blog-article-image figcaption {
  color: var(--paragraphColor);
  font-size: 15px;
  font-style: italic;
  margin-top: 15px;
  text-align: center;
}

/* 引用區塊樣式 */
.blog-quote {
  background: rgba(255, 255, 255, 0.03);
  border-left: 5px solid var(--mainColor2);
  padding: 25px 30px;
  margin: 35px 0;
  font-style: italic;
  border-radius: 5px;
}

.blog-quote p {
  color: var(--whiteColor);
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* 重點提示框 */
.blog-highlight {
  background: linear-gradient(135deg, rgba(102, 0, 255, 0.1), rgba(67, 165, 254, 0.1));
  border: 1px solid rgba(67, 165, 254, 0.3);
  padding: 25px 30px;
  margin: 35px 0 15px 0;
  border-radius: 10px;
}

.products-details-tabs .tab-content .tab-pane .blog-highlight p {
  color: var(--whiteColor);
  font-size: 17px;
  margin-bottom: 0 !important;
}

/* 中等螢幕優化 (992px - 1199px) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  .products-details-tabs .tab-content .tab-pane {
    max-width: 900px;
    width: 85%;
  }
}

/* 響應式設計 - 平板 */
@media only screen and (max-width: 991px) {
  .products-details-tabs .tab-content .tab-pane {
    width: 95%;
    padding: 30px 15px;
  }
  
  .products-details-tabs .tab-content .tab-pane h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 25px;
  }
  
  .products-details-tabs .tab-content .tab-pane h3 {
    font-size: 22px;
    margin-top: 35px;
  }
  
  .products-details-tabs .tab-content .tab-pane p {
    font-size: 17px;
    line-height: 1.8;
  }
  
  .products-details-tabs .tab-content .tab-pane .dectip-1 {
    padding: 25px 20px;
    margin: 30px 0;
  }
  
  .products-details-tabs .tab-content .tab-pane .dectip-1 ul li {
    font-size: 16px;
    margin-bottom: 25px;
  }
  
  .products-details-tabs .tab-content .tab-pane .dectip-1 ul li strong {
    font-size: 18px;
    margin-bottom: 4px;
  }
}

/* 響應式設計 - 手機 */
@media only screen and (max-width: 767px) {
  .products-details-tabs .tab-content .tab-pane {
    width: 100%;
    padding: 20px 10px;
  }
  
  .products-details-tabs .tab-content .tab-pane h2 {
    font-size: 24px;
    margin-top: 35px;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }
  
  .products-details-tabs .tab-content .tab-pane h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  
  .products-details-tabs .tab-content .tab-pane p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 20px;
    text-align: left;
  }
  
  .products-details-tabs .tab-content .tab-pane .dectip-1 {
    padding: 20px 15px;
    margin: 25px 0;
  }
  
  .products-details-tabs .tab-content .tab-pane .dectip-1 ul li {
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.7;
  }
  
  .products-details-tabs .tab-content .tab-pane .dectip-1 ul li strong {
    font-size: 17px;
    margin-bottom: 4px;
  }
  
  .products-details-tabs .tab-content .tab-pane hr {
    margin: 35px 0;
  }
  
  .blog-article-image {
    margin: 30px 0;
  }
}

/* 改善閱讀體驗的額外優化 */
.products-details-tabs .tab-content .tab-pane .dectip-1 ul li::before {
  display: none;
}

/* 為未來的圖片內容預留樣式 */
.blog-inline-image {
  margin: 30px 0;
  text-align: center;
}

.blog-inline-image.left {
  float: left;
  margin: 10px 30px 20px 0;
  max-width: 45%;
}

.blog-inline-image.right {
  float: right;
  margin: 10px 0 20px 30px;
  max-width: 45%;
}

@media only screen and (max-width: 767px) {
  .blog-inline-image.left,
  .blog-inline-image.right {
    float: none;
    margin: 20px 0;
    max-width: 100%;
  }
}

/* Tab 標籤樣式優化 */
.products-details-tabs .nav .nav-item .nav-link {
  font-size: 16px;
  letter-spacing: 0.5px;
}

/* 分享按鈕優化 */
.products-details-desc .products-share {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.products-details-desc .products-share .social li span {
  font-size: 16px;
  font-weight: 600;
}

.products-details-desc .products-share .social li a {
  transition: all 0.3s ease;
}

.products-details-desc .products-share .social li a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(67, 165, 254, 0.3);
}

/* 文章內數字列表樣式 */
.products-details-tabs .tab-content .tab-pane ol {
  padding-left: 20px;
  margin: 25px 0;
}

.products-details-tabs .tab-content .tab-pane ol li {
  color: var(--paragraphColorSecond);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 15px;
  padding-left: 10px;
}

/* 滑鼠懸停效果 - 提升互動性 */
.products-details-tabs .tab-content .tab-pane .dectip-1 {
  transition: all 0.3s ease;
}

.products-details-tabs .tab-content .tab-pane .dectip-1:hover {
  background: rgba(67, 165, 254, 0.08);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transform: translateX(5px);
}

/* 改善整體視覺層次 */
.products-details-area {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* 上半部寬度限制 - 與內文寬度一致 */
.products-details-area > .container > .row {
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
}

/* 超大螢幕優化 (>1400px) */
@media only screen and (min-width: 1400px) {
  .products-details-area > .container > .row {
    max-width: 1300px;
    width: 90%;
  }
}

/* 大螢幕優化 (1200px - 1399px) */
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  .products-details-area > .container > .row {
    max-width: 1200px;
    width: 92%;
  }
}

@media only screen and (max-width: 767px) {
  .products-details-area {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  
  .products-details-desc {
    padding-left: 0;
    margin-top: 30px;
  }
  
  .products-details-desc h3 {
    font-size: 28px;
  }
  
  .products-details-desc p {
    font-size: 16px;
  }
  
  .products-details-image {
    margin-bottom: 20px;
  }
}

/* 改善產品圖片在各尺寸下的顯示 */
.products-details-image a img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Tab 導航在移動裝置的優化 */
@media only screen and (max-width: 767px) {
  .products-details-tabs .nav .nav-item {
    margin-left: 8px;
    margin-right: 8px;
  }
  
  .products-details-tabs .nav .nav-item .nav-link {
    font-size: 14px;
    padding-bottom: 15px;
  }
}
