body {
    background-color: #181e24;
    color: #e0d9cd;
    font-family: 'Noto Sans TC', Arial, sans-serif;
  }

  @media (max-width: 768px) {
    .consultant-header-inner {
      max-width: 98%;
    }
  }
  
  .production-section {
    padding: 3rem 0;
    text-align: center;
  }

  .production-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffe27a;
    margin-bottom: 1rem;
  }

  .production-content {
    font-size: 1rem;
    font-weight: bold;
    color: #e0d9cd;
    text-align: center;
    margin-bottom: 2rem;
  }

  .production-footer {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff5c5c;
    margin-bottom: 0.5rem;
  }

  .production-subfooter {
    font-size: 1rem;
    color: #d3d3d3;
  }


  .consult-section {
    padding: 2rem 0;
  }

  .consult-card {
    background: linear-gradient(145deg, #23272e, #1a1e24);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.55);
    padding: 2rem 1.2rem 1.5rem 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .consult-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7);
  }

  .consult-card img {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #272c34;
    box-shadow: 0 4px 12px rgba(54, 195, 244, 0.10);
    object-fit: contain;
  }

  .consult-title {
    font-size: 1.22rem;
    font-weight: bold;
    color: #36c3f4;
    margin-bottom: 0.6rem;
  }

  .consult-detail {
    color: #e0d9cd;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    flex: 1;
  }

  .env-section {
    padding: 2rem 0 1.5rem 0;
  }

  .env-title {
    font-size: 1.25rem;
    color: #ffe27a;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 1px 1px 8px rgba(255, 226, 122, 0.2);
  }

  .env-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .env-img {
    background: #23272e;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    width: 180px;
    height: 320px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s, box-shadow 0.25s;
  }

  .env-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .env-img:hover {
    transform: scale(1.04) translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  }

  .order-section {
    background: linear-gradient(120deg, #23272e 60%, #1a1e24 100%);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.46);
    max-width: 540px;
    margin: 2.5rem auto 2rem auto;
    padding: 2.2rem 1.5rem 2rem 1.5rem;
    text-align: center;
  }

  .order-title {
    color: #36c3f4;
    font-size: 1.18rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
  }

  .order-price-range {
    font-size: 2.1rem;
    color: #e04c4c;
    font-weight: bold;
    margin-bottom: 1.2rem;
    letter-spacing: 0.04em;
    text-shadow: 1px 1px 10px rgba(224, 76, 76, 0.15);
  }

  .order-desc {
    color: #e0d9cd;
    margin-bottom: 2rem;
    font-size: 1.08rem;
  }

  .order-btn {
    font-size: 1.15rem;
    font-weight: bold;
    padding: 0.9rem 2.5rem;
    border-radius: 32px;
    background: linear-gradient(90deg, #36c3f4 40%, #e04c4c 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(54, 195, 244, 0.15);
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  }

  .order-btn:hover {
    background: linear-gradient(90deg, #e04c4c 30%, #36c3f4 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(224, 76, 76, 0.18);
    transform: translateY(-3px) scale(1.03);
  }

  /* Responsive Design */
  @media (max-width: 992px) {
    .env-gallery {
      gap: 1rem;
    }

    .env-img {
      width: 46vw;
      max-width: 180px;
      height: 54vw;
      max-height: 320px;
    }
  }

  @media (max-width: 768px) {

    .consult-section {
      padding: 1.2rem 0;
    }

    .consult-card {
      padding: 1.2rem 0.6rem 1.1rem 0.6rem;
    }

    .env-section {
      padding: 1.2rem 0 0.8rem 0;
    }

    .env-img {
      width: 44vw;
      max-width: 150px;
      height: 54vw;
      max-height: 210px;
    }

    .order-section {
      padding: 1.2rem 0.6rem 1.1rem 0.6rem;
    }

    .order-price-range {
      font-size: 1.45rem;
    }

    .order-btn {
      font-size: 1rem;
      padding: 0.7rem 1.5rem;
    }
  }

  .compare-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffe27a;
    letter-spacing: 0.03em;
    text-shadow: 1px 1px 8px rgba(255, 226, 122, 0.18);
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .compare-icon {
    font-size: 1.6rem;
  }

  .compare-table {
    background: #23272e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  }

  .compare-table th,
  .compare-table td {
    vertical-align: middle !important;
    background: #23272e !important;
    color: #e0d9cd !important;
    border-color: #32363c !important;
  }

  .compare-table th {
    font-size: 1.08rem;
    color: #36c3f4 !important;
    font-weight: 600;
    border-bottom: 2px solid #36c3f4 !important;
    background: #181e24 !important;
  }

  @media (max-width: 768px) {
    .compare-title {
      font-size: 1.1rem;
    }

    .compare-icon {
      font-size: 1.2rem;
    }

    .compare-table th,
    .compare-table td {
      font-size: 0.91rem;
      padding: 0.7rem 0.4rem !important;
    }
  }


  .faq-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffe27a;
    letter-spacing: 0.03em;
    text-shadow: 1px 1px 8px rgba(255, 226, 122, 0.18);
    display: flex;
    align-items: center;
  }

  .faq-icon {
    font-size: 1.6rem;
  }

  .faq-accordion .faq-card {
    background: #23272e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    border: none;
  }

  .faq-header {
    background: #1a1e24;
    border-bottom: 1px solid #32363c;
    padding: 0;
  }

  .faq-btn {
    font-size: 1.08rem;
    color: #36c3f4;
    font-weight: 700;
    text-decoration: none;
    background: none;
    padding: 1.1rem 1rem;
    box-shadow: none;
    transition: color 0.2s;
    border-radius: 0;
  }

  .faq-btn:focus,
  .faq-btn:hover {
    color: #ffe27a;
    background: #23272e;
    outline: none;
    text-decoration: none;
  }

  .faq-body {
    color: #e0d9cd;
    font-size: 1rem;
    background: #23272e;
    border-radius: 0 0 10px 10px;
    padding: 1.2rem 1.4rem 1.1rem 1.4rem;
  }

  @media (max-width: 768px) {
    .faq-title {
      font-size: 1.1rem;
    }

    .faq-icon {
      font-size: 1.2rem;
    }

    .faq-btn {
      font-size: 0.97rem;
      padding: 1rem 0.7rem;
    }

    .faq-body {
      font-size: 0.95rem;
      padding: 1rem 0.7rem;
    }
  }

  .consultant-header-section-dark {
  background: linear-gradient(120deg, #181e24 80%, #23272e 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  border-radius: 0 0 28px 28px;
}

.consultant-header-inner {
  max-width: 700px;
  margin-top: 0;
  margin-bottom: 0;
}

.consultant-main-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffe27a;
  text-shadow: 1.5px 1.5px 14px rgba(255, 226, 122, 0.18);
}

.consultant-main-subtitle {
  font-size: 1.25rem;
  color: #36c3f4;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 1px 1px 10px rgba(54,195,244,0.13);
}

.consultant-main-desc {
  font-size: 1.08rem;
  line-height: 2;
  color: #e0d9cd;
  background: rgba(35,39,46,0.82);
  border-radius: 10px;
  margin-top: 1rem;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 2px 12px rgba(54,195,244,0.07);
  font-weight: 400;
}

@media (max-width: 768px) {

  .consultant-main-title {
    font-size: 1.5rem;
  }
  .consultant-main-subtitle {
    font-size: 1.03rem;
  }
  .consultant-main-desc {
    font-size: 0.97rem;
    padding: 1rem 0.5rem;
  }
  .consultant-header-section-dark {
    border-radius: 0 0 14px 14px;
    padding: 2.2rem 0 1.4rem 0;
  }
}
/* 基础样式重置与兼容性处理 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.algorithm-section {
    padding: 3rem 0;
}

.section-title {
    color: #FFD700;
    font-weight: 700;
}

.section-desc {
    color: #EAEAEA;
    font-size: 1.1rem;
}

.algorithm-card {
    background: #23272e;
    border: 1px solid #333;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.algorithm-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.algorithm-title {
    color: #EAEAEA;
    font-weight: 600;
    padding: 1rem;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    border-radius: 15px 15px 0 0;
    text-align: center;
}

.algorithm-title .fab, .algorithm-title .fas {
    color: #D4AF37;
    margin-right: 0.5rem;
}

.algorithm-svg-container {
    padding: 2rem 1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
}


/* --- [關鍵修正] --- */
.algorithm-step {
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    /* 新增下面這兩行，指定變形的中心點 */
    transform-origin: center;
    transform-box: fill-box; /* 確保變形參考物件的邊界框 */
}


.algorithm-step .step-number {
    font-size: 32px;
    font-weight: bold;
    fill: #1A1A1A;
    text-anchor: middle;
    pointer-events: none; /* 讓點擊事件穿透到 <g> */
}

.algorithm-step .step-title {
    font-size: 16px;
    fill: #EAEAEA;
    font-weight: 500;
    text-anchor: middle;
    pointer-events: none;
}

.optimize-footer {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    border-radius: 0 0 15px 15px;
    padding: 1rem;
}

.optimize-footer .text-muted {
    color: #fff !important;
    text-align: center;
    font-weight:700;
}


/* --- [新增] 黑金風格彈跳視窗樣式 --- */
.algorithm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.algorithm-modal.active {
    opacity: 1;
    visibility: visible;
}

.algorithm-modal-content {
    background: #181E24;
    border: 1px solid #D4AF37;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
    color: #EAEAEA;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.algorithm-modal.active .algorithm-modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.close-btn:hover {
    color: #FFD700;
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #444;
    padding-bottom: 1rem;
}

#modal-icon {
    font-size: 2rem;
    color: #FFD700; /* 金色Icon */
    margin-right: 1rem;
    width: 40px;
    text-align: center;
}

#modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #D4AF37; /* 金色標題 */
    margin: 0;
}

#modal-desc {
    font-size: 1.1rem;
    line-height: 1.8;
}