/* ====================================================================================
 * CSS Stylesheet - Refactored and Organized (Standalone Version)
 *
 * Description: Standalone stylesheet to replace Tailwind CSS dependencies while
 * maintaining the original design.
 * Structure:
 * 1. Global Base Settings
 * 2. Core Utilities (Tailwind CSS Replacements)
 * 3. Content Typography
 * 4. Main Layout (Header & Footer)
 * 5. Common Components (Buttons, Lists, etc.)
 * 6. Advanced Components (Swiper, Spec Tables, Selection Guide)
 * 7. Sections & Page-Specific Styles
 *
 * Date: 2025-06-19
 * ====================================================================================
 */


/* --- 1. 全局基礎設定 (Global Base Settings) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

html, body, span, div, table, input, select, textarea, button, section, header, footer, nav, article, aside, li, ul, ol, h1, h2, h3, h4, h5, h6, a, p, blockquote {
  box-sizing: border-box !important;
}

body {
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: #374151 !important;
  background-color: #f9fafb;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
strong, b {
  font-weight: 700 !important;
}
a {
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', Arial, Helvetica, sans-serif !important;
  color: #2563eb !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.2s ease-in-out;
}
a:hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}


/* --- 2. 核心工具類 (Core Utilities) --- */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem; /* 16px */
  padding-right: 1rem; /* 16px */
}
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

.block { display: block !important; }
.inline-block { display: inline-block !important; }
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid { display: grid !important; }
.hidden { display: none !important; }
.flex-col { flex-direction: column !important; }
.items-start { align-items: flex-start !important; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-8 { gap: 2rem !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.w-full { width: 100% !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }


/* --- 3. 內容排版 (Content Typography) --- */
h1, .h1title, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', Arial, Helvetica, sans-serif !important;
  color: #1f2937 !important;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.35 !important;
  text-wrap: balance;
}
h1, .h1title { font-size: 2.25rem !important; font-weight: 700 !important; }
h2 { font-size: 1.875rem !important; font-weight: 700 !important; }
h3 { font-size: 1.5rem !important; font-weight: 600 !important; }
h4 { font-size: 1.25rem !important; font-weight: 600 !important; }
h5 { font-size: 1.125rem !important; font-weight: 500 !important; }
h6 { font-size: 1rem !important; font-weight: 500 !important; }
p {
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', Arial, Helvetica, sans-serif !important;
  line-height: 1.75 !important;
  font-weight: 400 !important;
  color: #374151 !important;
  margin-bottom: 1rem;
}


/* --- 4. 主要佈局 (Main Layout) --- */

/* 4.1. 頁首 (Header) */
#header {
  position: relative;
  z-index: 1000;
}
body:not(#bodyinhome) #header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
}
body:not(#bodyinhome) #header + div {
  padding-top: 100px !important; 
}

@media only screen and (min-width: 768px) {
  .topnavbar {
    background-color: rgba(255, 255, 255, 0.75) !important;
    padding: 0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease-in-out;
  }
}
#header .topnavbar > .container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 50px !important;
}

/* 4.1.1. Logo */
#header #logo {
  flex-shrink: 0 !important;
}
div#header #logo h1 {
  margin: 0 !important;
  font-size: 1rem !important;
  display: flex;
  align-items: center;
}
#header #logo #photoLogo {
  width: auto !important;
  height: 50px !important;
  max-width: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
  vertical-align: middle !important;
  display: inline-block !important;
  min-height: 50px !important;
  object-fit: contain !important;
}

/* 4.1.2. 導覽列 (Navigation) */
#header #nav {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
}
#header #nav > ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}
#header #nav > ul > li {
  margin-left: 5px;
  position: relative;
}
#header #nav > ul > li:first-child {
  margin-left: 0;
}
#header #nav > ul > li > a {
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', Arial, Helvetica, sans-serif !important;
  color: #1f2937 !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  padding: 10px 15px !important;
  text-decoration: none !important;
  display: block !important;
  white-space: nowrap;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
#header #nav > ul > li > a:hover {
  color: #2563eb !important;
}
#header #nav > ul > li.current > a {
  color: #2563eb !important;
  font-weight: 600 !important;
}

/* 4.1.3. 子選單 (Sub Navigation) */
#nav .subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: RGBA(255, 255, 255, 0.98) !important;
  min-width: 200px;
  padding: 0.5rem 0;
  border: 1px solid #e0e0e0;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  border-radius: 0 0 0.375rem 0.375rem;
  z-index: 1001;
}
#header #nav > ul > li:hover > .subnav,
#header #nav > ul > li:focus-within > .subnav {
  display: block !important;
}
#nav .subnav > li {
  display: block !important;
  width: 100% !important;
  margin-left: 0 !important;
  position: static;
}
#nav .subnav li a,
#nav .subnav li div > a {
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', Arial, Helvetica, sans-serif !important;
  color: #333 !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  padding: 0.6rem 1rem !important;
  display: block !important;
  white-space: normal !important;
  text-align: left !important;
  transition: color 0.2s ease, background-color 0.2s ease;
}
#nav .subnav li a:hover,
#nav .subnav li div > a:hover {
  background-color: #f0f0f0 !important;
  color: #005A9C !important;
}

/* === 手機版響應式樣式 (使用原生漢堡選單) === */
@media only screen and (max-width: 767px) {
  body:not(#bodyinhome) #header {
    background-color: #fff; /* 手機版固定時也需要背景色 */
  }
  body:not(#bodyinhome) #header + div {
    padding-top: 70px !important; /* 確保與LOGO高度一致 */
  }
  .topnavbar {
    border-bottom: 1px solid #e5e7eb;
  }
  #header .topnavbar > .container {
    position: relative !important;
    display: flex !important;
    justify-content: center !important; /* 將內容(LOGO)置中 */
    align-items: center !important;
    height: 70px; /* 固定高度以利對齊 */
    padding: 10px 15px !important;
  }
  #header #logo #photoLogo {
    height: 45px !important;
    min-height: 45px !important;
  }
  /* 顯示平台漢堡選單並將其定位於左側 */
  .rwd-navbar-toggle {
    display: block !important;
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 1002 !important;
  }
  /* 隱藏右側導覽列選項 */
  #header #nav {
    display: none !important;
  }
}

/* 4.2. 頁尾 (Footer) */
div#footer {
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', Arial, Helvetica, sans-serif !important;
  color: #D1D5DB !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  background-color: #1f2937;
  padding: 2.5rem 1rem !important;
}
div#footer p, div#footer li, div#footer span, div#footer div, div#footer td, div#footer label,
div#footer div#foot-nav ul li a span, div#footer div#contact-info ul li,
div#footer div#contact-info ul li span, div#footer div#power div#counter,
div#footer div#power div#counter span, div#footer div#copyright p {
  font-family: inherit !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  background-color: transparent !important;
}
div#footer h5 {
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', Arial, Helvetica, sans-serif !important;
  color: #F9FAFB !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
}
div#footer a {
  font-family: inherit !important;
  color: #93C5FD !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.2s ease;
}
div#footer a:hover {
  color: #BFDBFE !important;
  text-decoration: underline !important;
}
div#footer div#copyright p a {
  color: #60A5FA !important;
}
div#footer div#copyright p a:hover {
  color: #93C5FD !important;
}
div#footer .footer-edit img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}


/* --- 5. 通用元件 (Common Components) --- */

/* 5.1. 按鈕 (Buttons) */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0.375rem;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', Arial, Helvetica, sans-serif !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-secondary {
  background-color: transparent !important;
  color: #005A9C !important;
  border-color: #005A9C !important;
}
.btn-secondary:hover {
  background-color: #005A9C !important;
  color: white !important;
}
.btn-contact {
  background-color: #0077CC !important;
  color: white !important;
}
.btn-contact:hover {
  background-color: #005fa3 !important;
}
a.btn-line, button.btn-line {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  background-color: #06c755 !important;
  color: white !important;
  transition: background-color 0.2s ease-in-out;
  border: none;
}
a.btn-line:hover, button.btn-line:hover {
  background-color: #05a544 !important;
  color: white !important;
}
a.btn-line i, button.btn-line i {
  margin-right: 0.5em !important;
}

/* 5.2. 側邊欄 (Sidebar) */
#side ul li.current>div a {
  color: #2563eb !important;
  font-weight: 600 !important;
}

/* 5.3. 產品列表 (Product List) */
ul.product-list li a {
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', Arial, Helvetica, sans-serif !important;
  color: #1e657e !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}
ul.product-list li a:hover {
  color: #2563eb !important;
  text-decoration: underline !important;
}


/* --- 6. 進階元件 (Advanced Components) --- */

/* 6.1. Swiper 輪播 */
.swiper-container {
  display: none !important;
  height: auto !important;
}
#bodyinhome .swiper-container {
  display: block !important;
}
.swiper-wrapper, .swiper-slide { height: 0 !important; }
.swiper-slide { width: 100% !important; }

#bodyinhome .swiper-wrapper, #bodyinhome .swiper-slide {
  padding-bottom: calc(800 / 1920 * 100%);
}

/* 6.2. 互動式產品規格表 (Interactive Specification Table) */
.spec-table-container-wrapper * {
    box-sizing: border-box;
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
}
.spec-table-container-wrapper {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 41, 85, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin: 2rem auto;
    max-width: 1100px;
}
.spec-header {
    padding: 2rem 2.5rem;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.spec-header-content {
    flex: 1 1 500px;
}
.spec-header-image {
    flex-shrink: 0;
    width: 200px;
    height: 160px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spec-header-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.spec-header h2 {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 0.5rem 0 !important;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.spec-header h2 .spec-icon {
    margin-right: 0.75rem;
    font-size: 1.6rem;
}
.spec-header p {
    font-size: 1rem !important;
    color: #4b5563 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}
.catalog-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    background-color: #eef2ff !important;
    color: #1e3a8a !important;
    border: 1px solid #dbeafe;
    padding: 0.6rem 1.2rem !important;
    border-radius: 8px;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
    margin-top: 1rem;
}
.catalog-btn:hover {
    background-color: #dbeafe !important;
    border-color: #c7d2fe;
    color: #1c3383 !important;
}
/* --- (新) 隱藏型錄按鈕的樣式 --- */
.catalog-btn.hidden {
    display: none !important;
}
/* ------------------------- */
.spec-body-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}
.spec-selector-column {
    flex: 0 0 280px;
    border-right: 1px solid #e5e7eb;
    padding: 2.5rem;
    background-color: #fcfdff;
}
.pressure-selector, .model-selector {
    margin-bottom: 2rem;
}
.pressure-selector:last-child, .model-selector:last-child {
    margin-bottom: 0;
}
.pressure-selector p, .model-selector p {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin: 0 0 1rem 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pressure-buttons, .model-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.pressure-toggle-btn, .model-btn {
    width: 100%;
    text-align: left;
    background-color: transparent !important;
    border: 1px solid transparent;
    color: #374151 !important;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    
    /* --- (舊有) 修改 --- */
    position: relative;
    overflow: hidden;
    /* -------------------- */
}
.pressure-toggle-btn:hover, .model-btn:hover {
    background-color: #f0f5ff !important;
    color: #1e3a8a !important;
}
.pressure-toggle-btn.active {
    background-color: #c0392b !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}
.model-btn.active {
    background-color: #005a9c !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}
.spec-content-column {
    flex: 1 1 60%;
    padding: 2.5rem;
    min-width: 320px;
}
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.spec-table th, .spec-table td {
    text-align: left;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}
.spec-table th {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    width: 40%;
    background-color: #f9fafb;
}
.spec-table td {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    background-color: #ffffff;
}
.spec-table td.model-name {
    font-weight: 700 !important;
    color: #1f2937 !important; 
}
.application-recommendation {
    background-color: #eef2ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 2rem;
}
.application-recommendation h4 {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #1e3a8a !important;
    margin: 0 0 0.75rem 0 !important;
    display: flex;
    align-items: center;
}
.application-recommendation h4 .fa-industry {
    margin-right: 0.75rem;
    color: #3b82f6;
}
.application-recommendation p {
    font-size: 0.95rem !important;
    color: #1e40af !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}
.filter-grade-info {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
.filter-grade-info h4 {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 0.5rem 0 !important;
    display: flex;
    align-items: center;
}
.filter-grade-info h4 .fa-layer-group {
    margin-right: 0.75rem;
    color: #48c9b0;
}
.filter-grade-info .grade-description {
    font-size: 0.95rem !important;
    color: #4b5563 !important;
    line-height: 1.7 !important;
    margin: 0 0 1.5rem 0 !important;
}
.filter-train-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.filter-train-item {
    width: 40px;
    height: 60px;
    background-color: var(--filter-color, #bdc3c7);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2);
}
.filter-train-arrow {
    font-size: 1.2rem;
    color: #9ca3af;
}
.filter-grade-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.filter-grade-table th, .filter-grade-table td {
    text-align: left;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.filter-grade-table tr:last-child td {
    border-bottom: none;
}
.filter-grade-table th {
    background-color: #f9fafb;
    font-weight: 600;
    font-size: 0.9rem;
}
.filter-grade-table td {
    font-size: 0.95rem;
}
.grade-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--filter-color, #bdc3c7);
    color: white;
    font-weight: 700;
}
#spec-a-series .spec-icon { color: #d35400 !important; }
#spec-a-series .pressure-toggle-btn.active, #spec-a-series .model-btn.active { background-color: #d35400 !important; }
#spec-sav-m .spec-icon { color: #27ae60 !important; }
#spec-sav-m .model-btn.active { background-color: #27ae60 !important; }
#spec-sa .spec-icon { color: #8e44ad !important; }
#spec-sa .model-btn.active { background-color: #8e44ad !important; }
#spec-swv .spec-icon { color: #16a085 !important; }
#spec-swv .pressure-toggle-btn.active, #spec-swv .model-btn.active { background-color: #16a085 !important; }
#spec-sl .spec-icon { color: #2980b9 !important; }
#spec-sl .pressure-toggle-btn.active, #spec-sl .model-btn.active { background-color: #2980b9 !important; }
#spec-sav .spec-icon { color: #3498db !important; }
#spec-sav .pressure-toggle-btn.active, #spec-sav .model-btn.active { background-color: #3498db !important; }
#spec-gw .spec-icon { color: #95a5a6 !important; }
#spec-gw .model-btn.active { background-color: #95a5a6 !important; }
#spec-fdl .spec-icon { color: #9b59b6 !important; }
#spec-fdl .pressure-toggle-btn.active, #spec-fdl .model-btn.active { background-color: #9b59b6 !important; }
#spec-fr .spec-icon { color: #5dade2 !important; }
#spec-fr .pressure-toggle-btn.active, #spec-fr .model-btn.active { background-color: #5dade2 !important; }
#spec-ffa .spec-icon { color: #48c9b0 !important; }
#spec-ffa .pressure-toggle-btn.active, #spec-ffa .model-btn.active { background-color: #48c9b0 !important; }

@media (max-width: 900px) {
    .spec-body-layout {
        flex-direction: column;
    }
    .spec-selector-column {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        width: 100%;
        flex: 1 1 auto;
        padding: 1.5rem;
    }
    .pressure-buttons, .model-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    .pressure-toggle-btn, .model-btn {
        width: 100%;
        text-align: center;
    }
    .spec-content-column {
        padding: 2.5rem 1.5rem 1.5rem;
    }
}
@media (max-width: 768px) {
    .spec-header h2 {
        white-space: normal !important;
    }
    .filter-grade-table thead {
        display: none;
    }
    .filter-grade-table, .filter-grade-table tbody, .filter-grade-table tr, .filter-grade-table td {
        display: block;
        width: 100%;
    }
    .filter-grade-table tr {
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 4px;
        overflow: hidden;
    }
    .filter-grade-table td {
        text-align: right !important;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px dotted #e5e7eb;
    }
    .filter-grade-table tr td:last-child {
        border-bottom: none;
    }
    .filter-grade-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 1rem;
        font-weight: bold;
        text-align: left;
        color: #374151;
    }
}

/* --- (舊有) 推薦樣式 (緞帶) --- */

/* 未選取時的推薦樣式 */
.model-btn.recommended {
    background-color: #fff8f6 !important; /* 淡紅色背景 */
    border: 1px solid #e44d26 !important; /* 紅色邊框 */
    color: #c0392b !important; /* 深紅色文字 */
}

/* 未選取時的推薦樣式 (Hover) */
.model-btn.recommended:hover {
    background-color: #fff0eb !important; /* 淺紅色背景 (Hover) */
    border-color: #c0392b !important;
}

/* 推薦緞帶 (右上角) */
.model-btn.recommended::before {
    content: '推薦';
    position: absolute;
    top: 5px;
    right: -30px; 
    transform: rotate(45deg); 
    background-color: #e44d26; /* 緞帶紅色 */
    color: white;
    padding: 2px 30px; /* 調整 padding 來控制緞帶的長度 */
    font-size: 0.75rem; /* 緞帶文字大小 */
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    z-index: 1; /* 確保緞帶在背景之上 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 選取時的推薦樣式 */
#spec-sav-m .model-btn.recommended.active {
    background-color: #c0392b !important; /* 改為推薦的紅色系背景 */
    border-color: #a03224 !important; /* 更深的紅色邊框 */
    color: #ffffff !important;
}

/* --- (!!!) 變更點 (!!!) --- */
/* 選取時，緞帶改為反白配色 */
#spec-sav-m .model-btn.recommended.active::before {
    /* display: none; */ /* 移除隱藏 */
    background-color: #ffffff; /* 緞帶改為白色 */
    color: #c0392b; /* 文字改為按鈕的深紅色 */
    box-shadow: 0 1px 4px rgba(0,0,0,0.3); /* 加深陰影使其在紅色上更明顯 */
}
/* ------------------------- */


/* 確保非推薦的 .active 按鈕仍然是綠色 */
#spec-sav-m .model-btn.active:not(.recommended) {
    background-color: #27ae60 !important;
    border-color: transparent !important; /* 確保沒有紅色邊框殘留 */
}
/* --------------------------------- */

/* --- (新) SAV-M 系列切換按鈕的 Active 樣式 --- */
#spec-sav-m .pressure-toggle-btn.active {
    background-color: #27ae60 !important; /* SAV-M 主題綠色 */
    color: #ffffff !important;
    font-weight: 600 !important;
}
/* -------------------------------------- */

/* 6.3. 選型中心 (Selection Guide) */
.guide-container-v2 {
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin: 2rem auto;
    max-width: 1100px;
    overflow: hidden;
}
.guide-container-v2 .guide-header {
    background-color: #f9fafb;
    padding: 2rem 2.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.guide-container-v2 .guide-header h1 {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 0.5rem 0 !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.guide-container-v2 .guide-header h1 i.fa-compass-drafting {
    color: #3498db !important;
}
.guide-container-v2 .guide-header p {
    font-size: 1rem !important;
    color: #4b5563 !important;
    margin: 0 !important;
}
.guide-container-v2 .guide-main-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 2.5rem;
}
.guide-container-v2 .guide-tab {
    padding: 1rem 1.5rem !important;
    cursor: pointer;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    background-color: transparent !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: -1px;
}
.guide-container-v2 .guide-tab:hover {
    color: #3498db !important;
}
.guide-container-v2 .guide-tab.active {
    color: #111827 !important;
    border-bottom-color: #3498db !important;
}
.guide-container-v2 .guide-filters-container {
    padding: 2rem 2.5rem;
}
.guide-container-v2 .filters-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin: 0 0 1.5rem 0 !important;
}
.guide-container-v2 .filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.guide-container-v2 .filter-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px;
    background-color: #ffffff !important;
    cursor: pointer;
    transition: all 0.2s ease;
}
.guide-container-v2 .filter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db !important;
}
.guide-container-v2 .filter-card.active {
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
.guide-container-v2 .filter-card .card-icon-wrapper {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eaf5fc;
    color: #3498db;
    font-size: 1.5rem;
}
.guide-container-v2 .filter-card.active .card-icon-wrapper {
    background-color: #3498db !important;
    color: #fff !important;
}
.guide-container-v2 .filter-card.all-filter-card {
    justify-content: center;
}
.guide-container-v2 .all-filter-card .card-text-wrapper {
    text-align: center;
    width: 100%;
}
.guide-container-v2 .filter-card .card-text-wrapper h4 {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 0 0 0.25rem 0 !important;
    color: #111827 !important;
}
.guide-container-v2 .filter-card .card-text-wrapper p {
    font-size: 0.9rem !important;
    margin: 0 !important;
    color: #6b7280 !important;
    line-height: 1.5;
}
.guide-container-v2 .all-filter-card .card-icon-wrapper i {
    color: #f1c40f !important;
}
.guide-container-v2 .all-filter-card.active .card-icon-wrapper {
    background-color: #f1c40f !important;
}
.guide-container-v2 .guide-results-container {
    padding: 2rem 2.5rem;
    background-color: #f9fafb;
}
.guide-container-v2 .results-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin: 0 0 1.5rem 0 !important;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.75rem;
}
.guide-container-v2 .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.guide-container-v2 .result-card-v2 {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    overflow: hidden;
}
.guide-container-v2 .result-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 41, 85, 0.08);
    border-color: #d1d5db;
}
.guide-container-v2 .result-card-v2 .result-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}
.guide-container-v2 .result-card-v2 .series-icon {
    font-size: 1.25rem;
    color: #3498db;
}
.guide-container-v2 .result-card-v2 h3 {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 0 !important;
}
.guide-container-v2 .result-card-v2 .result-card-body {
    padding: 1.25rem;
    flex-grow: 1;
}
.guide-container-v2 .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.guide-container-v2 .tag {
    background-color: #eef2ff;
    color: #1e3a8a;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
}
.guide-container-v2 .specs-container {
    margin-bottom: 1rem;
    border-left: 3px solid #e5e7eb;
    padding-left: 1rem;
}
.guide-container-v2 .specs-container p {
    font-size: 0.95rem !important;
    margin: 0 0 0.5rem 0 !important;
    color: #374151 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.guide-container-v2 .specs-container p:last-child {
    margin-bottom: 0;
}
.guide-container-v2 .specs-container p i {
    color: #9ca3af !important;
}
.guide-container-v2 .description {
    font-size: 0.95rem !important;
    color: #4b5563 !important;
    line-height: 1.6;
    margin: 0 !important;
}
.guide-container-v2 .result-card-v2 .result-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    font-weight: 500;
    color: #3498db;
}
.guide-container-v2 .guide-contact-cta {
    background-color: #f0f9ff;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    border-top: 1px solid #e5e7eb;
}
.guide-container-v2 .cta-icon {
    flex-shrink: 0;
    font-size: 2.5rem;
    color: #3498db;
}
.guide-container-v2 .cta-content {
    flex-grow: 1;
}
.guide-container-v2 .cta-content h4 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
    margin: 0 0 0.5rem 0 !important;
}
.guide-container-v2 .cta-content p {
    font-size: 1rem !important;
    color: #4b5563 !important;
    margin: 0 !important;
    max-width: 500px;
}
.guide-container-v2 .cta-action {
    flex-shrink: 0;
}
.guide-container-v2 .cta-button {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    background-color: #3498db !important;
    color: #ffffff !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 8px;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}
.guide-container-v2 .cta-button:hover {
    background-color: #2980b9 !important;
}

/* --- 選型中心：高亮「節能補助優先」選項 --- */

/* 1. 特色卡片主體 */
.guide-container-v2 .filter-card--subsidy-priority {
  position: relative; /* 作為內部徽章絕對定位的基準 */
  overflow: hidden;   /* 隱藏溢出邊角的徽章部分，使其更整潔 */
  background-color: #f7fdf9 !important; /* 使用一個極淺的綠色背景來區隔 */
  border-color: #a7e0b8 !important;     /* 使用一個更明顯的綠色邊框 */
}

/* 2. 核心：右上角的推薦徽章 */
.guide-container-v2 .filter-card--subsidy-priority::after {
  content: '推薦'; /* 徽章上的文字 */
  position: absolute;
  top: 8px;       /* 與頂部的距離 */
  right: -26px;     /* 調整此數值以控制徽章的傾斜位置 */
  
  background-color: #27ae60; /* 使用一個清晰、專業的綠色 */
  color: #ffffff;
  
  padding: 4px 30px; /* 徽章的內距 */
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: rotate(45deg); /* 將徽章旋轉45度 */
  transform-origin: center;
}

/* 3. 讓圖示顏色與主題匹配 */
.guide-container-v2 .filter-card--subsidy-priority .card-icon-wrapper {
  background-color: #e3f9e9; /* 圖示背景使用同色系的淺綠色 */
  color: #27ae60;           /* 圖示本身使用徽章的綠色 */
}

/* 4. 當此卡片被選中時，強化其高亮效果 */
.guide-container-v2 .filter-card--subsidy-priority.active {
  border-color: #27ae60 !important;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2);
}

.guide-container-v2 .filter-card--subsidy-priority.active .card-icon-wrapper {
  background-color: #27ae60 !important;
  color: #ffffff !important;
}

/* --- 選型中心：高亮推薦的結果卡片 (例如 SAV-M) --- */

/* 1. 讓推薦卡片本身可以作為徽章的定位基準 */
.guide-container-v2 .result-card-v2--recommended {
  position: relative;
  overflow: hidden; /* 隱藏溢出邊角的徽章部分 */
}

/* 2. 在推薦卡片上添加與篩選器風格一致的「推薦」徽章 */
.guide-container-v2 .result-card-v2--recommended::after {
  content: '推薦'; /* 徽章上的文字 */
  position: absolute;
  top: 8px;       /* 與頂部的距離 */
  right: -26px;     /* 調整此數值以控制徽章的傾斜位置 */
  
  background-color: #27ae60; /* 使用與篩選器一致的專業綠色 */
  color: #ffffff;
  
  padding: 4px 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: rotate(45deg);
  transform-origin: center;
  z-index: 1; /* 確保徽章在內容之上 */
}

/* 3. (可選) 強化推薦卡片的 hover 效果，使其邊框變色 */
.guide-container-v2 .result-card-v2--recommended:hover {
  border-color: #27ae60;
}


@media (max-width: 768px) {
    .guide-container-v2 .guide-contact-cta {
        flex-direction: column;
        text-align: center;
    }
}


/* --- 7. 區塊與頁面樣式 (Sections & Page-Specific Styles) --- */

/* 7.1. 首頁區塊 (Homepage Sections) */
.homepage-section {
  padding: 1.5rem 0px;
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', Arial, Helvetica, sans-serif !important;
}
.homepage-section .container {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}
.section-title {
  text-align: center;
  font-size: 1.8rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin-bottom: 1.5rem;
}
.section-title-alt {
  text-align: center;
  font-size: 1.6rem !important;
  font-weight: 600 !important;
  color: #111827 !important;
  margin-bottom: 1rem;
}
.section-paragraph {
  text-align: center;
  color: #4b5563 !important;
  line-height: 1.7 !important;
  margin-bottom: 1rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400 !important;
}
.about-intro-section {
  background-color: #f9fafb;
  padding-bottom: 3rem;
  text-align: center;
}
.highlight-text {
  color: #005A9C !important;
  font-weight: 600 !important;
}
.brand-promise {
  color: #0077CC !important;
  font-weight: 700 !important;
}
.brand-promise-wrapper {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.service-features-section {
  background-color: #ffffff;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.feature-item {
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  background-color: #fff;
  padding: 2rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.feature-icon {
  font-size: 2.8rem !important;
  color: #0077CC !important;
  margin-bottom: 1rem;
}
.feature-icon i, .showcase-arrow i {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome, "FontAwesome Solid" !important;
  font-weight: 900 !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
}
.feature-title {
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin-bottom: 0.75rem;
}
.feature-description {
  font-size: 0.95rem !important;
  color: #4b5563 !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
}
.contact-prompt-section {
  background-color: #eef2f7;
  text-align: center;
}
.contact-phone {
  color: #005A9C !important;
  font-weight: 700 !important;
  font-size: 1.1em !important;
}
.homepage-product-showcase {
  padding-top: 2rem;
  padding-bottom: 0rem;
}
.homepage-product-showcase h2 {
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', Arial, Helvetica, sans-serif !important;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
}
.product-cards-wrapper {
  position: relative;
  margin-left: -15px;  /* 向左拉伸 15px，突破容器內距 */
  margin-right: -15px; /* 向右拉伸 15px，創造突出效果 */
}
.product-cards-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  margin-bottom: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-cards-container::-webkit-scrollbar {
  display: none;
}
.product-card {
  flex: 0 0 auto;
  width: 270px;
  margin-right: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
  text-align: center;
  background-color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  font-weight: 400 !important;
}
.product-card:last-child { margin-right: 0; }
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.product-card .product-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: block;
  font-weight: 400 !important;
  cursor: pointer;
}
.product-image {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  padding: 10px;
  box-sizing: border-box;
}
.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-info {
  padding: 1rem;
  min-height: 4.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-name {
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', Arial, Helvetica, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  line-height: 1.4;
}
.showcase-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #d1d5db;
  color: #374151;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-weight: normal !important;
}
.showcase-arrow:hover {
  background-color: #ffffff;
  color: #1f2937;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.showcase-arrow:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}
.showcase-arrow:disabled { opacity: 0.5; cursor: not-allowed; }
.prev-arrow { left: -22px; }
.next-arrow { right: -22px; }

@media (max-width: 768px) {
  .product-cards-wrapper { margin: 0; }
  .product-card { width: 240px; margin-right: 1rem; }
  .showcase-arrow { width: 38px; height: 38px; font-size: 1rem; }
  .prev-arrow { left: 5px; }
  .next-arrow { right: 5px; }
}

/* --- 首頁產品推薦區塊：選型建議按鈕 --- */
/* 主要容器樣式 */
.product-showcase-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  
  /* 使用柔和的淺藍色背景，融入網站整體風格 */
  background-color: #f0f7ff; 
  /* 添加一層細緻的邊框，增加質感 */
  border: 1px solid #dbeafe; 
  
  padding: 2.5rem 3rem; /* 適度的內距 */
  border-radius: 12px;
}

/* --- 內部輔助 class --- */

/* 左側文字內容 */
.cta-content {
  flex: 1 1 500px;
}

.cta-heading {
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', sans-serif !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  /* 在淺色背景上使用深色文字，確保可讀性 */
  color: #1f2937 !important; 
  margin: 0 0 0.5rem 0 !important;
  line-height: 1.3 !important;
}

.cta-subtext {
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', sans-serif !important;
  font-size: 1rem !important;
  color: #4b5563 !important; /* 使用標準的內文灰色 */
  font-weight: 400 !important;
  margin: 0 !important;
  max-width: 550px;
  line-height: 1.6 !important;
}

/* 右側行動按鈕 */
.cta-action {
  flex-shrink: 0;
}

/* --- 升級行動按鈕樣式，使其成為視覺焦點 --- */
.btn-primary-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  
  /* 使用您的主品牌藍色作為按鈕背景，創造高對比度 */
  background-color: #0077CC !important; 
  /* 按鈕文字為白色，確保清晰可見 */
  color: #ffffff !important;        
  
  padding: 1rem 2.25rem !important;
  border-radius: 50px !important; /* 膠囊形狀，更具現代感 */
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
  box-shadow: 0 4px 14px rgba(0, 119, 204, 0.2); /* 配合按鈕顏色的陰影 */
}

.btn-primary-cta:hover {
  background-color: #005fa3 !important; /* Hover 時使用更深的品牌藍色 */
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 7px 20px rgba(0, 119, 204, 0.25);
}

.btn-primary-cta i {
  font-size: 1.2em !important;
}

/* --- 響應式設計：針對手機等小螢幕調整 --- */
@media (max-width: 900px) {
  .product-showcase-cta {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
  }
  
  .cta-subtext {
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-content{
    flex-basis: auto; /* 將 flex-basis 重設為 auto，使其高度由內容決定 */
    flex-grow: 0;   /* 避免不必要的拉伸 */
  }
}

/* --- 通用聯絡按鈕：Hover 顏色修正 --- */
.btn-contact:hover {
    color: #ffffff !important;
}

/* ========== 2025 空壓機補助推廣區塊 ========== */
.subsidy-promo-section {
  background-color: #eef2f7; /* 使用柔和的淺藍灰色背景 */
  padding: 2.5rem 0;
  border-top: 1px solid #dde4ed;
  border-bottom: 1px solid #dde4ed;
}

.subsidy-promo-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.subsidy-promo-icon {
  flex-shrink: 0;
  color: #2e8540; /* 代表節能的綠色 */
  font-size: 3.5rem !important;
  line-height: 1;
  opacity: 0.8;
}

.subsidy-promo-icon i {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome, "FontAwesome Solid" !important;
  font-weight: 900 !important;
}

.subsidy-promo-content {
  flex: 1 1 500px;
}

.subsidy-promo-title {
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', sans-serif !important;
  font-size: 1.7rem !important;
  font-weight: 700 !important;
  color: #1a5632 !important; /* 使用沉穩的深綠色 */
  margin: 0 0 0.5rem 0 !important;
  line-height: 1.3 !important;
}

.subsidy-promo-text {
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', sans-serif !important;
  font-size: 1rem !important;
  color: #374151 !important;
  font-weight: 400 !important;
  margin: 0 !important;
  line-height: 1.7 !important;
}

.subsidy-promo-action {
  flex-shrink: 0;
}

.btn-promo-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  background-color: #22c55e !important; /* 鮮明的綠色，吸引點擊 */
  color: #ffffff !important;
  padding: 0.9rem 2rem !important;
  border-radius: 50px !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25);
}

.btn-promo-cta:hover {
  background-color: #16a34a !important;
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 7px 20px rgba(34, 197, 94, 0.3);
}

.btn-promo-cta i {
  transition: transform 0.3s ease;
}

.btn-promo-cta:hover i {
  transform: translateX(4px);
}

.btn-promo-cta-2 {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  background-color: #22c55e !important; /* 鮮明的綠色，吸引點擊 */
  color: #ffffff !important;
  padding: 0.9rem 2rem !important;
  border-radius: 50px !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25);
}

.btn-promo-cta-2:hover {
  background-color: #16a34a !important;
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 7px 20px rgba(34, 197, 94, 0.3);
}

.btn-promo-cta-2 i {
  transition: transform 0.3s ease;
}

.btn-promo-cta-2:hover i {
  transform: translateX(4px);
}

/* 響應式設計：針對平板與手機調整 */
@media (max-width: 992px) {
  .subsidy-promo-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .subsidy-promo-icon {
    font-size: 3rem !important;
  }
  .subsidy-promo-title {
    font-size: 1.5rem !important;
  }
  
    /* 【修正】解決手機版多餘空白問題 */
  .subsidy-promo-content {
    flex-basis: auto; /* 將 flex-basis 重設為 auto，使其高度由內容決定 */
    flex-grow: 0;   /* 避免不必要的拉伸 */
  }

}


/* 7.2. 關於我們頁面 (About Us Page) */
body.about-us-page {
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', Arial, sans-serif !important;
  color: #374151 !important;
  background-color: #f4f6f8;
  line-height: 1.7 !important;
}
.main-container-about {
  padding-top: 0;
  padding-bottom: 3rem;
}
.page-header-about {
  background-color: #E0EFFF;
  padding: 2.5rem 15px;
  text-align: center;
  border-bottom: 1px solid #cdd5df;
}
.page-header-about h1 {
  font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', Arial, Helvetica, sans-serif !important;
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: #002A5C !important;
  margin: 0;
}
.page-header-about p.subtitle {
  font-size: 1.1rem !important;
  color: #005A9C !important;
  margin-top: 0.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400 !important;
}
.about-content-wrapper {
  padding-top: 2.5rem;
}
.about-section {
  margin-bottom: 3rem;
}
.about-section .container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 15px;
}
.about-content-container {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 40, 80, 0.06);
  padding: 2.5rem 3rem;
}
@media (max-width: 768px) {
  .about-content-container {
    padding: 2rem 1.5rem;
  }
}
.about-content-container h2 {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  margin-top: 0 !important;
  margin-bottom: 1.5rem !important;
  border-bottom: 2px solid #0077CC;
  padding-bottom: 0.5rem !important;
  display: inline-block !important;
}
.about-content-container h3 {
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  color: #005A9C !important;
  margin-top: 2.2rem !important;
  margin-bottom: 1rem !important;
}
.about-content-container p {
  font-size: 1rem !important;
  line-height: 1.8 !important;
  color: #4b5563 !important;
  margin-bottom: 1.35rem !important;
  text-align: left !important;
  font-weight: 400 !important;
}
.about-content-container p.closing-paragraph {
  margin-top: 1.5rem !important;
}
.about-content-container p:last-of-type {
  margin-bottom: 0;
}
.about-content-container .lead-paragraph {
  font-size: 1.1rem !important;
  color: #374151 !important;
  margin-bottom: 1.5rem !important;
  font-weight: 500 !important;
  border-left: 4px solid #0077CC;
  padding-left: 1.25rem !important;
}
.about-content-container strong {
  font-weight: 700 !important;
  color: #003366 !important;
  font-size: 1.05em !important;
}
.about-content-container ul.custom-list {
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-top: 1rem !important;
  margin-bottom: 1.5rem !important;
}
.about-content-container ul.custom-list li {
  margin-bottom: 0.9rem !important;
  color: #4b5563 !important;
  padding-left: 2.2em !important;
  position: relative;
  line-height: 1.75 !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  text-align: left !important;
}
.about-content-container ul.custom-list li::before {
  content: "\f00c" !important;
  font-family: "Font Awesome 6 Free", "FontAwesome" !important;
  font-weight: 900 !important;
  color: #0077CC !important;
  position: absolute !important;
  left: 0.25em !important;
  top: 0.2em !important;
  font-size: 0.95em !important;
}
.industry-application-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 1.25rem !important;
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}
.industry-item {
  background-color: #f0f7ff !important;
  padding: 1.25rem !important;
  border-radius: 6px !important;
  text-align: center !important;
  border: 1px solid #d6eaff !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 120px !important;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out !important;
}
.industry-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 6px 12px rgba(0, 80, 160, 0.1) !important;
}
.industry-item .industry-icon {
  font-size: 2rem !important;
  color: #005A9C !important;
  margin-bottom: 0.6rem !important;
  line-height: 1 !important;
}
 .industry-item .industry-icon i {
    font-family: "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}
.industry-item h4.industry-title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}
.cta-section-about {
  background-color: #dbeafe !important;
  color: #1e3a8a !important;
  padding: 2.5rem 0 !important;
  text-align: center !important;
  margin-top: 2.5rem !important;
  border-radius: 8px !important;
}
.cta-section-about h3.cta-title {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 0.75rem !important;
  color: #1e3a8a !important;
}
.cta-section-about p.cta-text {
  font-size: 1.05rem !important;
  margin-bottom: 1.5rem !important;
  color: #1e40af !important;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
}
.cta-button-about {
  display: inline-block !important;
  background-color: #005A9C !important;
  color: #ffffff !important;
  padding: 0.8rem 2rem !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease !important;
  border: none !important;
  box-shadow: 0 3px 8px rgba(0, 50, 100, 0.15) !important;
  margin-top: 1.5rem !important;
}
.cta-button-about:hover {
  background-color: #004a7c !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 5px 12px rgba(0, 50, 100, 0.2) !important;
}

/* 7.3. 聯絡我們頁面 (Contact Us Page) */
.contact-page-main {
    background-color: #f9fafb;
    color: #1f2937;
    font-family: 'Inter', 'Noto Sans TC', '微軟正黑體', sans-serif;
}
.contact-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.contact-container {
    max-width: 1152px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.contact-grid {
    display: grid;
    gap: 2rem 3rem;
}
.info-card {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
}
.contact-column > .info-card:last-child {
    margin-bottom: 0;
}
.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #cc0000;
    font-family: 'Roboto Condensed', sans-serif;
}
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #374151;
}
.info-item {
    display: flex;
    align-items: center;
    margin: 0;
}
.info-item .icon {
    margin-right: 0.75rem;
    color: #cc0000;
    width: 1.25em; /* 模擬 fa-fw */
    text-align: center;
}
.info-item .line-icon {
    color: #06c755;
    font-size: 1.25rem;
}
.info-link {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
.info-link:hover {
    color: #cc0000;
}
.info-group {
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid #e5e7eb;
}
.service-hours-list {
    list-style-type: disc;
    list-style-position: inside;
    margin-left: 2rem;
    font-size: 0.875rem;
}
.map-container {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}
.map-container iframe {
    border: 0;
    display: block; /* 移除 iframe 底部多餘空間 */
}
.service-flow-list {
    list-style-type: decimal;
    list-style-position: inside;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: #374151;
}
.qr-code-image {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
}
.qr-code-text {
    color: #374151;
    margin-bottom: 0.5rem;
}
.qr-code-text .highlight {
    color: #cc0000;
    font-weight: 700;
}

/* -- 響應式設計 -- */
@media (min-width: 768px) {
    .contact-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: flex-start;
    }
}

/* =================================================================
   7.4 補助頁面 CSS 樣式
================================================================== */

/* --- 基礎設定與專屬容器 --- */
.subsidy-section {
    padding: 3.5rem 0;
}
.subsidy-section--light-bg {
    background-color: #f9fafb;
}
.text-center {
    text-align: center;
}
.subsidy-page-container {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* --- 統一的視覺中軸 --- */
.section-title, .section-subtitle, .table-title {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section-title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-top: 0;
    margin-bottom: 0.75rem;
}
.section-subtitle {
    font-size: 1.1rem !important;
    color: #4b5563 !important;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* --- 1. 英雄區塊 --- */
.subsidy-hero {
    padding: 2rem 0;
}
.subsidy-hero .subsidy-page-container {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0c4a6e;
    padding: 4.5rem 1rem;
    text-align: center;
    border-radius: 12px;
}
.subsidy-hero__tag {
    display: inline-block;
    background-color: rgba(0, 90, 156, 0.1);
    color: #005A9C;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 90, 156, 0.2);
}
.subsidy-hero__title {
    /* --- 關鍵修正點 1：使用 clamp() 實現響應式字體 --- */
    font-size: clamp(2.25rem, 1.8rem + 2vw, 2.75rem) !important;
    font-weight: 800 !important;
    color: #1e3a8a !important;
    margin: 0 auto 1rem auto;
    max-width: 1000px;
    line-height: 1.3;
}
.subsidy-hero__subtitle {
    font-size: 1.15rem !important;
    color: #075985 !important;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}
.btn-primary-subsidy {
    display: inline-flex !important;
    align-items: center;
    gap: 0.75rem;
    background-color: #0077CC !important;
    color: #ffffff !important;
    padding: 0.9rem 2rem !important;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 119, 204, 0.25);
}
.btn-primary-subsidy:hover {
    background-color: #005fa3 !important;
    /* --- 關鍵修正點 2：強制設定 hover 時的文字顏色為白色，避免被覆蓋 --- */
    color: #ffffff !important; 
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 7px 20px rgba(0, 119, 204, 0.3);
}

/* --- 2. 核心資訊速覽 --- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.info-grid__item {
    background-color: #ffffff;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.info-grid__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 41, 85, 0.07);
}
.info-grid__icon { font-size: 2.5rem; color: #0077CC; margin-bottom: 1rem; }
.info-grid__title { font-size: 1.25rem !important; font-weight: 600 !important; color: #1f2937 !important; margin: 0 0 0.5rem 0; }
.info-grid__text { font-size: 0.95rem !important; color: #4b5563 !important; line-height: 1.6; margin: 0; }

/* --- 3. 補助金額詳情 --- */
.table-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #dee2e6; border-radius: 8px; margin-bottom: 1.5rem; }
.subsidy-table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 0.95rem; }
.subsidy-table th, .subsidy-table td { padding: 1rem; text-align: center; border-bottom: 1px solid #dee2e6; vertical-align: middle; }
.subsidy-table thead th { background-color: #f8f9fa; font-weight: 600; color: #495057; }
.subsidy-table tbody tr:last-child td { border-bottom: none; }
.subsidy-table tbody td:first-child { text-align: left; font-weight: 500; }
.table-note { background-color: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 1rem 1.5rem; border-radius: 8px; display: inline-block; margin-top: 1rem; }
.table-note p { margin: 0; font-weight: 500; }
.table-note i { margin-right: 0.5rem; }

/* --- 4. 申請流程 --- */
.process-flow {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: nowrap;
}
.process-flow__step {
    flex: 1 1 200px;
    min-width: 180px;
}
.process-flow__icon { width: 50px; height: 50px; line-height: 50px; border-radius: 50%; background-color: #dbeafe; color: #1e40af; font-size: 1.5rem; font-weight: 700; margin: 0 auto 1rem auto; }
.process-flow__title { font-size: 1.1rem !important; font-weight: 600 !important; margin: 0 0 0.5rem 0; }
.process-flow__arrow { font-size: 2rem; color: #9ca3af; align-self: center; margin: -2.5rem 0.5rem 0 0.5rem; }
@media (max-width: 1024px) {
    .process-flow { flex-wrap: wrap; flex-direction: column; align-items: center; }
    .process-flow__arrow { display: none; }
    .process-flow__step { max-width: 450px; }
}

/* --- 5. 最終行動呼籲 --- */
.final-cta {
    padding: 2rem 0;
}
.final-cta .subsidy-page-container {
    background-color: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    padding: 3.5rem 1rem;
    border-radius: 12px;
}
.final-cta__title { font-size: 2.25rem !important; color: #111827 !important; margin-bottom: 1rem; }
.final-cta__text { font-size: 1.15rem !important; color: #374151 !important; max-width: 650px; margin: 0 auto 2.5rem auto; }
.btn-primary-subsidy--large { padding: 1.25rem 3rem !important; font-size: 1.25rem !important; border-radius: 50px !important; }
.official-links { margin-top: 2rem; }
.official-links a { color: #4b5563 !important; font-size: 0.9rem !important; margin: 0 0.75rem; text-decoration: underline !important; }
.official-links a i { font-size: 0.8em; }

/* 7.6 案例頁面 */
/* 案例頁面主容器 */
.msc-cases-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero區塊 - 白色漸層設計 */
.msc-cases-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid #e3e7ff;
  border-radius: 24px;
  margin: 20px;
  color: #1e3c72;
  text-align: center;
  padding: 60px 40px 50px;
  position: relative;
  box-shadow: 0 12px 40px rgba(30, 60, 114, 0.08);
}

.msc-cases-hero__title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
  color: #1e3c72;
}

.msc-cases-hero__subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #5a7fcf;
  font-weight: 500;
}

/* 統計數字區塊 */
.msc-cases-hero__stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.msc-cases-stat {
  text-align: center;
}

.msc-cases-stat__number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2a5298;
  transition: all 0.3s ease;
}

.msc-cases-stat__label {
  font-size: 0.9rem;
  color: #5a7fcf;
  font-weight: 500;
}

/* 介紹文字區塊 */
.msc-cases-intro {
  padding: 60px 0;
  background-color: #f8f9fa;
}

.msc-cases-intro__text {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: #222222;
}

/* 地區案例區塊 */
.msc-cases-regions {
  padding: 80px 0;
  background-color: white;
}

.msc-cases-regions__title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #1e3c72;
  font-weight: 700;
}

/* 網格佈局 - 確保卡片等高 */
.msc-cases-regions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
  align-items: stretch;
}

/* 卡片設計 - Flex容器確保內容與按鈕垂直排列 */
.msc-region-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #f0f0f0;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.msc-region-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* 卡片標題區 */
.msc-region-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 15px;
}

.msc-region-card__title {
  color: #1e3c72;
  font-size: 1.4rem;
  margin: 0;
  font-weight: 700;
}

.msc-region-card__count {
  background: #28a745;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* 內容區域彈性擴展 */
.msc-region-card__content {
  flex-grow: 1;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
}

.msc-region-card__description {
  color: #333333;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* 服務列表 */
.msc-service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.msc-service-list__item {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: #333333;
  font-size: 0.95rem;
}

.msc-service-list__item:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

/* 按鈕自動推至底部、對齊一致 - 修正藍色連結問題 */
.msc-region-card__link {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 25px;
  background: #1e3c72;
  color: white !important; /* 強制白色文字 */
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important; /* 移除下劃線 */
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  box-sizing: border-box;
  line-height: 1.2;
  font-size: 0.95rem;
}

/* 按鈕狀態修正 */
.msc-region-card__link:link,
.msc-region-card__link:visited,
.msc-region-card__link:hover,
.msc-region-card__link:active {
  color: white !important; /* 所有狀態保持白色 */
  text-decoration: none !important; /* 所有狀態移除下劃線 */
}

.msc-region-card__link:hover {
  background: #2a5298;
  transform: translateY(-2px);
}

/* 服務優勢區塊 */
.msc-cases-advantages {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.msc-cases-advantages__title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #1e3c72;
  font-weight: 700;
}

/* 優勢網格佈局 */
.msc-cases-advantages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

/* 優勢項目樣式 */
.msc-advantage-item {
  text-align: center;
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.msc-advantage-item:hover {
  transform: translateY(-5px);
}

.msc-advantage-item__icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.msc-advantage-item__title {
  color: #1e3c72;
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 700;
}

.msc-advantage-item__text {
  color: #333333;
  line-height: 1.6;
}

/* CTA行動呼籲區塊 - 深藍漸層設計 */
.msc-cases-cta {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border: 2px solid #0f1b36;
  border-radius: 24px;
  margin: 20px;
  color: #ffffff; /* 整個區塊文字顏色為白色 */
  text-align: center;
  padding: 60px 40px;
  box-shadow: 0 12px 40px rgba(30, 60, 114, 0.25);
}

.msc-cases-cta__title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #ffffff; /* 標題白色 */
  font-weight: 700;
}

.msc-cases-cta__text {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 50px;
  color: rgba(255, 255, 255, 0.9); /* 文字白色帶透明度 */
}

/* 聯絡資訊網格 */
.msc-contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.msc-contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 20px;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.msc-contact-item__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #ffffff;
}

.msc-contact-item__details {
  flex: 1;
}

.msc-contact-item__label {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  font-weight: 600;
}

.msc-contact-item__value {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

/* CTA按鈕 - 金色漸層設計 */
.msc-cases-cta__button {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1e3c72;
  border: 2px solid #ffd700;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

.msc-cases-cta__button:hover {
  background: linear-gradient(135deg, #ffed4e 0%, #fff176 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  border-color: #ffed4e;
}

/* 響應式設計 - 平板尺寸 */
@media (max-width: 768px) {
  .msc-cases-hero,
  .msc-cases-cta {
    margin: 10px;
    padding: 40px 20px;
    border-radius: 16px;
  }
  
  .msc-cases-hero__title {
    font-size: 2rem;
  }
  
  .msc-cases-hero__stats {
    gap: 30px;
  }
  
  .msc-cases-stat__number {
    font-size: 2rem;
  }
  
  .msc-cases-regions__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .msc-region-card {
    padding: 25px;
  }
  
  .msc-cases-advantages__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .msc-contact-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .msc-contact-item {
    flex-direction: column;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
  }
  
  .msc-cases-regions__title,
  .msc-cases-advantages__title {
    font-size: 1.8rem;
  }
  
  .msc-cases-cta__title {
    font-size: 1.8rem;
  }
}

/* 響應式設計 - 手機尺寸 */
@media (max-width: 480px) {
  .msc-cases-container {
    padding: 0 15px;
  }
  
  .msc-cases-hero,
  .msc-cases-cta {
    margin: 5px;
    padding: 30px 15px;
    border-radius: 12px;
  }
  
  .msc-cases-hero__title {
    font-size: 1.8rem;
  }
  
  .msc-cases-hero__subtitle {
    font-size: 1rem;
  }
  
  .msc-cases-stat__number {
    font-size: 1.8rem;
  }
  
  .msc-region-card {
    padding: 20px;
  }
  
  .msc-region-card__title {
    font-size: 1.2rem;
  }
  
  .msc-advantage-item {
    padding: 30px 20px;
  }
  
  .msc-advantage-item__icon {
    font-size: 2.5rem;
  }
  
  .msc-advantage-item__title {
    font-size: 1.1rem;
  }
  
  .msc-cases-regions__title,
  .msc-cases-advantages__title {
    font-size: 1.6rem;
  }
  
  .msc-cases-cta__title {
    font-size: 1.6rem;
  }
  
  .msc-cases-intro__text {
    font-size: 1rem;
  }
  
  .msc-cases-cta__text {
    font-size: 1rem;
  }
}

/* 超小螢幕優化 */
@media (max-width: 360px) {
  .msc-cases-hero__stats {
    gap: 20px;
  }
  
  .msc-cases-stat {
    min-width: 120px;
  }
  
  .msc-contact-item {
    padding: 15px;
  }
  
  .msc-cases-cta__button {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

/* 案例分頁(彰化) */

.msc-region-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid #e3e7ff;
  border-radius: 24px;
  margin: 20px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(30, 60, 114, 0.08);
}
.msc-region-hero__title {
  font-size: 2.5rem;
  color: #1e3c72;
  margin-bottom: 15px;
  font-weight: 700;
}
.msc-region-hero__subtitle {
  font-size: 1.2rem;
  color: #5a7fcf;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.msc-region-hero__stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}
.msc-region-stat {
  text-align: center;
}
.msc-region-stat__number {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: #2a5298;
  margin-bottom: 5px;
}
.msc-region-stat__label {
  font-size: 0.9rem;
  color: #5a7fcf;
  font-weight: 500;
}

.msc-region-cases {
  padding: 80px 0;
  background-color: white;
}
.msc-region-cases__title {
  text-align: center;
  font-size: 2.2rem;
  color: #1e3c72;
  margin-bottom: 50px;
  font-weight: 700;
}
.msc-region-cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}
.msc-case-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid #f0f0f0;
}
.msc-case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}
.msc-case-card__image {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.msc-case-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.msc-case-card:hover .msc-case-card__photo {
  transform: scale(1.05);
}
.msc-case-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}
.msc-case-card__content {
  padding: 30px;
}
.msc-case-card__title {
  font-size: 1.4rem;
  color: #1e3c72;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}
.msc-case-card__info {
  margin-bottom: 20px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #1e3c72;
}
.msc-case-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}
.msc-case-info-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}
.msc-case-info-item__label {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
  min-width: 80px;
}
.msc-case-info-item__value {
  color: #1e3c72;
  font-weight: 500;
  text-align: right;
  flex: 1;
  margin-left: 16px;
}
.msc-case-card__description {
  margin-bottom: 25px;
}
.msc-case-card__description p {
  color: #333333;
  line-height: 1.7;
  margin: 0;
}
.msc-case-card__results {
  background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #28a745;
}
.msc-case-card__results-title {
  color: #155724;
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-weight: 700;
}
.msc-case-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.msc-case-results-list__item {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  color: #155724;
  font-size: 0.95rem;
  line-height: 1.5;
}
.msc-case-results-list__item:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
  font-size: 1.1rem;
}

/* 補助說明區塊 */
.msc-subsidy-explanation {
  background: #f0f8ff;
  border-radius: 16px;
  padding: 30px;
  margin: 40px 0;
  border-left: 4px solid #1e3c72;
}
.msc-subsidy-explanation__title {
  color: #1e3c72;
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}
.msc-subsidy-criteria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 20px;
}
.msc-subsidy-criterion {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.msc-subsidy-criterion__title {
  color: #2a5298;
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}
.msc-subsidy-details {
  list-style: none;
  padding: 0;
  margin: 0;
}
.msc-subsidy-details li {
  padding: 8px 0;
  border-bottom: 1px dashed #e9ecef;
}
.msc-subsidy-details li:last-child {
  border-bottom: none;
  font-weight: 700;
  color: #155724;
  margin-top: 10px;
}
.msc-subsidy-note {
  text-align: center;
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 20px;
}
/* 官方補助辦法連結：強制白色字體不隨超連結變藍 */
.msc-subsidy-link,
.msc-subsidy-link:visited,
.msc-subsidy-link:active,
.msc-subsidy-link:focus,
.msc-subsidy-link:hover {
  display: inline-block;
  background: #1e3c72;
  color: #fff !important;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 15px;
  transition: all 0.3s ease;
  font-weight: 500;
}
.msc-subsidy-link:hover {
  background: #2a5298;
  transform: translateY(-2px);
}

/* CTA區塊 */
.msc-cases-cta {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border: 2px solid #0f1b36;
  border-radius: 24px;
  margin: 20px;
  color: #ffffff !important;
  text-align: center;
  padding: 60px 40px;
  box-shadow: 0 12px 40px rgba(30, 60, 114, 0.25);
}
.msc-cases-cta__title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #ffffff !important;
  font-weight: 700;
}
.msc-cases-cta__text {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #ffffff !important;
}
.msc-cases-cta__button {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1e3c72;
  border: 2px solid #ffd700;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}
.msc-cases-cta__button:hover {
  background: linear-gradient(135deg, #ffed4e 0%, #fff176 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* 響應式設計 */
@media (max-width: 768px) {
  .msc-region-hero {
    margin: 10px;
    padding: 40px 20px;
  }
  .msc-region-hero__title {
    font-size: 2rem;
  }
  .msc-region-hero__stats {
    gap: 30px;
  }
  .msc-region-cases__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .msc-case-card__content {
    padding: 24px;
  }
  .msc-subsidy-criteria {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .msc-region-hero {
    margin: 5px;
    padding: 30px 15px;
  }
  .msc-region-hero__title {
    font-size: 1.8rem;
  }
  .msc-case-card__content {
    padding: 20px;
  }
  .msc-case-info-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .msc-case-info-item__value {
    margin-left: 0;
    margin-top: 4px;
    text-align: left;
  }
}

/* ==========================================================================
   知識庫頁面樣式 (Knowledge Base Styles - v2)
   ========================================================================== */

/* --- 1. 基礎與容器設定 --- */
.kb-page-body {
    background-color: #f8f9fa;
    font-family: 'Noto Sans TC', sans-serif;
}

.kb-container-v2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* --- 2. 頁面標頭 --- */
.kb-header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 2rem;
}

.kb-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0D47A1;
    margin: 0 0 1rem 0;
}

.kb-header p {
    font-size: 1.1rem;
    color: #495057;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- 3. 控制項 (篩選與搜尋) --- */
.kb-controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.kb-filters-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.kb-filter-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid #ced4da;
    border-radius: 50px;
    background-color: #ffffff;
    color: #495057;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.kb-filter-btn:hover {
    background-color: #f1f3f5;
    border-color: #adb5bd;
}

.kb-filter-btn.active {
    background-color: #0D47A1;
    color: #ffffff;
    border-color: #0D47A1;
}

.kb-search-wrapper {
    min-width: 250px;
}

.kb-search-input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 50px;
    font-size: 0.95rem;
}

/* --- 4. 結果與文章列表 --- */
.kb-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.kb-result-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.kb-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #dee2e6;
}

.kb-card-image-wrapper {
    height: 200px;
    overflow: hidden;
}

.kb-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kb-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.kb-card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333333;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.kb-card-content .kb-card-category {
    color: #0D47A1;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.kb-card-content .kb-card-excerpt {
    font-size: 0.95rem;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.kb-card-footer {
    margin-top: auto;
    color: #F7941D;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kb-no-results {
    text-align: center;
    padding: 4rem 0;
    color: #6c757d;
}

.kb-no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- 5. 單篇文章檢視 --- */
.kb-article-view-container {
    background-color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}

.kb-article-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: #0D47A1;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.kb-article-back-btn:hover {
    color: #F7941D;
}

.kb-article-header img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.kb-article-header .kb-article-category {
    display: inline-block;
    background-color: #e7f0ff;
    color: #0D47A1;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.kb-article-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 1rem 0;
}

.kb-article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
}

.kb-article-body h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f3f5;
}

.kb-article-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.kb-article-body .kb-article-code-block {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    font-family: monospace;
    margin: 1.5rem 0;
}

.kb-article-body .kb-article-expert-tip {
    border-left: 4px solid #F7941D;
    padding-left: 1rem;
    margin-top: 2rem;
    font-style: italic;
    color: #495057;
}

/* --- 6. 通用與響應式 --- */
.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .kb-controls-container {
        flex-direction: column;
        align-items: stretch;
    }
    .kb-header h1 { font-size: 2rem; }
    .kb-article-view-container { padding: 1.5rem; }
    .kb-article-header h1 { font-size: 1.8rem; }
}


/* ==========================================================================
   比較型表格專用樣式 (Comparison Table Styles)
   ========================================================================== */

/* --- 1. 表格響應式外框 --- */
.comparison-table-wrapper {
    overflow-x: auto; /* 在小螢幕上啟用水平滾動 */
    -webkit-overflow-scrolling: touch; /* 在 iOS 上提供流暢的滾動體驗 */
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 2rem 0;
}

/* --- 2. 表格主體 --- */
.comparison-table {
    width: 100%;
    min-width: 600px; /* 確保在滾動時，表格內容不會過於擠壓 */
    border-collapse: collapse; /* 讓邊框合併，更美觀 */
    font-size: 1rem;
}

/* --- 3. 表頭 (thead) --- */
.comparison-table thead {
    background-color: #f8f9fa;
}

.comparison-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

/* --- 4. 內容行 (tbody) --- */
.comparison-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    color: #343a40;
    line-height: 1.6;
}

/* 使用斑馬條紋，增加可讀性 */
.comparison-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none; /* 最後一行不需要底線 */
}

/* --- 5. 第一欄位的特殊樣式 --- */
.comparison-table td:first-child {
    font-weight: 500;
    color: #212529;
}

/* --- (新) Showcase 緞帶樣式 --- */
.product-card {
position: relative;
overflow: hidden;
}
.showcase-ribbon-wrap {
position: absolute;
top: 0;
left: 0;
width: 150px;
height: 150px;
overflow: hidden;
z-index: 10;
}
.showcase-ribbon {
position: absolute;
width: 220px;
transform: rotate(-45deg);
color: white;
text-align: center;
font-weight: bold;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.showcase-ribbon.recommend {
left: -90px;
top: 5px;
background-color: #ef4444;
font-size: 0.875rem;
padding: 4px 0;
}
.showcase-ribbon.warranty {
left: -70px;
top: 25px;
background-color: #3b82f6;
font-size: 0.875rem;
padding: 4px 0;
}
.showcase-ribbon.new-model {
    left: -70px;
    top: 25px;
    background-color: #27ae60; /* SAV-M 主題綠色 */
    font-size: 0.875rem;
    padding: 4px 0;
}
/* ----------------------------- */