/********************************************/
/* 區塊外層與基本排版                      */
/********************************************/
.feature-section {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 10px;
  }
  
  .feature-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 20px;
    gap: 5px;
    overflow-x: auto;
  }
  
  /* 用於反轉左右欄位（讓文字在右、圖片在左） */
  .feature-container.reverse {
    flex-direction: row-reverse;
  }
  
  /********************************************/
  /* 左右欄位：文字區與圖片區                */
  /********************************************/
/* 文字 (30%) */
.feature-text-wrapper {
    flex: 0 0 35%;
    max-width: 35%;
    min-width: 300px;
  }
  
  /* 圖片 (70%) */
  .feature-image-wrapper {
    flex: 0 0 60%;
    max-width: 60%;
    min-width: 300px;
  }
  
  /* 在文字區增加一個類似卡片的透明底色模組 */
  .feature-text-module {
    /* background: rgba(98, 98, 98, 0.5); */
    border-radius: 15px;
    margin-left: 120px;
    padding: 90px 30px;
    color: #fff;
    line-height: 1.7;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  /* 文字模組內的標題 */
  .feature-text-module h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: bold;
  }
  
  /* 文字模組內的段落 */
  .feature-text-module p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0;
    font-weight: bold;
  }
  
  /********************************************/
  /* 圖片容器與圖片                          */
  /********************************************/
  .feature-image-container {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px;
    border-radius: 10px;
    max-width: 80%;
    margin: 0 auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .feature-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
  }
  
  .feature-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  /********************************************/
  /* 功能卡片：四卡佈局與外觀               */
  /********************************************/
  .feature-grid {
    max-width: 1200px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-gap: 30px;
  }
  
  .feature-card {
    background: rgba(13, 27, 42, 0.95);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 12px rgba(0, 24, 48, 0.2);
  }
  
  .feature-card:hover {
    transform: translateY(-5px);
  }
  
  /* 卡片上方的 Icon 圓底區 */
  .feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(59, 130, 246, 0.3);
  }
  
  /* 卡片標題、描述 */
  .feature-title {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .feature-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
  }
  
  /********************************************/
  /* 大螢幕(>=1600px)時一行四張卡片         */
  /********************************************/
  @media (min-width: 1600px) {
    .feature-grid {
      grid-template-columns: repeat(4, 300px);
      justify-content: center;
      max-width: none;
    }
  }
  

  /* 響應式設計 */
@media screen and (max-width: 1520px) {
  .feature-container {
      flex-direction: column;
      align-items: center;
  }

  .feature-text-wrapper,
  .feature-image-wrapper {
      flex: 1;
      max-width: 100%;
      min-width: auto;
      width: 100%;
  }

  .feature-text-module {
      margin-left: 0;
      padding: 40px 20px;
      text-align: center;
      margin-bottom: 30px;
  }

  .feature-image {
      width: 100%;
      max-width: 800px;
      margin: 0 auto;
      display: block;
  }
}

@media screen and (max-width: 768px) {
  .feature-section {
      padding: 30px 15px;
  }

  .feature-text-module {
      padding: 30px 15px;
  }

  .feature-text-module h2 {
      font-size: 24px;
  }

  .feature-text-module p {
      font-size: 16px;
      line-height: 1.5;
  }

  .feature-image {
      width: 100%;
      padding: 0 15px;
  }
}