@charset "UTF-8";

/* ==========================================================================
   皓緯工業靜態官網 - 全域與客製化樣式
   ========================================================================== */

/* 平滑捲動與字型設定 */
html {
    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #f9fafb;
    color: #1f2937;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* 頂部導覽列 Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .header-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .header-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    height: 4rem;
    align-items: center;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-logo-img {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.025em;
}

/* 導覽列選單 */
.desktop-nav {
    display: none;
    gap: 2rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.nav-link:hover {
    color: #2563eb;
}

.mobile-menu-btn-wrapper {
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .mobile-menu-btn-wrapper {
        display: none;
    }
}

.mobile-menu-btn {
    color: #4b5563;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu-dropdown {
    background-color: #ffffff;
    border-top: 1px solid #f3f4f6;
    padding: 0.5rem 1rem 1rem 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    color: #374151;
    text-decoration: none;
}

.mobile-nav-link:hover {
    color: #2563eb;
}

.hidden {
    display: none !important;
}

/* 主視覺 Hero Section */
.hero-section {
    position: relative;
    /* 設定背景圖片並拉滿填滿區塊 */
    background-image: url('images/screw-conveyor-welding-fabrication.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

/* 深色防干擾遮罩 (Dark Overlay) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 使用深藍黑色的半透明漸層，壓暗背景讓白字浮出來 */
    background: linear-gradient(
        135deg, 
        rgba(15, 23, 42, 0.85) 0%,   /* 左側較暗，突出文字 */
        rgba(30, 58, 138, 0.75) 100%  /* 右側透出些許金屬光澤與火花 */
    );
    z-index: 1;
}

/* 內容層級（必須高於遮罩才不會被壓暗） */
.hero-container {
    position: relative;
    z-index: 2;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero-content {
    max-width: 42rem; /* 限制文字寬度，提升大螢幕閱讀舒適度 */
    text-align: center;
}

@media (min-width: 768px) {
    .hero-content {
        text-align: left;
    }
}

.hero-badge {
    display: inline-block;
    background-color: rgba(37, 99, 235, 0.5);
    border: 1px solid rgba(147, 197, 253, 0.4);
    color: #93c5fd;
    font-size: 0.875rem;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(4px); /* 毛玻璃質感 */
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: #ffffff;
    /* 給標題微加文字陰影，確保強烈對比 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: #f1f5f9;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .hero-actions {
        justify-content: flex-start;
    }
}

.btn-primary {
    background-color: #eab308;
    color: #172554;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #facc15;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 營業項目 Sections */
.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.section-subtitle {
    color: #6b7280;
    margin-top: 0.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #f3f4f6;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.service-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 3rem;
    height: 3rem;
    background-color: #dbeafe;
    color: #2563eb;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card-desc {
    color: #4b5563;
    margin: 0;
}

/* 表單區塊 */
.inquiry-section {
    background-color: #eff6ff;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.form-container {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.form-card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .form-card {
        padding: 2.5rem;
    }
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .form-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-sizing: border-box;
    font-size: 1rem;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn-submit {
    width: 100%;
    background-color: #2563eb;
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #1d4ed8;
}

/* 頁尾 Footer */
/* ==========================================================================
   頁尾 Footer 三欄式加圖地圖樣式
   ========================================================================== */

.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding-top: 4rem;
    padding-bottom: 2rem;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1.1fr 1.2fr;
    }
}

/* 欄位 1：品牌與 LOGO */
.footer-logo {
    max-width: 180px;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.footer-brand-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.footer-brand-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* 欄位 2：聯絡清單 */
.footer-sub-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2563eb;
    display: inline-block;
}

.footer-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.95rem;
}

.footer-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-icon {
    color: #38bdf8;
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #38bdf8;
}

/* 欄位 3：響應式地圖包裹容器 */
.map-responsive-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #334155;
}

.map-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 底部版權宣告條 */
.footer-bottom {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1e293b;
    text-align: center;
}

.copyright-text {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* 新增通用樣式 */
.mr-2 {
    margin-right: 0.5rem;
}

/* 應用領域區塊 (Applications) */
.app-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.app-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.app-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-top: 0;
    margin-bottom: 1rem;
}

.app-list {
    padding-left: 1.25rem;
    margin: 0;
    color: #374151;
}

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

.warning-box {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 1rem 1.25rem;
    border-radius: 0.375rem;
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.warning-icon {
    font-size: 1.25rem;
    color: #ef4444;
}

/* 螺旋型式與料管配置 (Specifications) */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.spec-box {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.spec-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1d4ed8;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.gap-control-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.gap-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.gap-comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .gap-comparison {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gap-item {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.gap-item.negative {
    border-top: 3px solid #f59e0b;
}

.gap-item h4 {
    margin: 0 0 0.5rem 0;
    color: #b45309;
}

.gap-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #4b5563;
}

/* 常見問題 FAQ */
.faq-accordion {
    max-width: 50rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1rem 1.25rem;
    text-align: left;
    background: transparent;
    border: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: #6b7280;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.25rem;
    background-color: #ffffff;
    color: #4b5563;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.25rem 1.25rem 1.25rem;
}

.faq-answer p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* ==========================================================================
   新增區塊：關於皓緯、核心技術、斜式頁籤折疊與圖片預留樣式
   ========================================================================== */

/* 關於皓緯 - 左圖右文白底卡片 */
.about-card-wrapper {
    max-width: 68rem;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .about-card-wrapper {
        grid-template-columns: 45% 55%;
    }
}

.about-card-image {
    position: relative;
    height: 100%;
    min-height: 260px;
    background-color: #f1f5f9;
}

.about-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-tag {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
    border-radius: 0.375rem;
}

.about-card-text {
    padding: 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-card-text p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.about-card-text p:last-child {
    margin-bottom: 0;
}

/* 核心設備與技術 */
.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tech-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.75rem;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #2563eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tech-icon {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.tech-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.tech-desc {
    color: #4b5563;
    margin: 0;
    font-size: 0.95rem;
}

/* 斜式頁籤折疊樣式 (Tab Accordion) */
.tab-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tab-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #ffffff;
}

.tab-header {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background: #f8fafc;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    /* 斜切防護與視覺點綴 */
    position: relative;
}

.tab-header:hover {
    background-color: #f1f5f9;
    color: #2563eb;
}

/* 斜切圖示風格 */
.tab-icon-skew {
    margin-right: 0.5rem;
    color: #2563eb;
    transform: skewX(-12deg);
    display: inline-block;
}

.toggle-icon {
    font-size: 0.875rem;
    color: #64748b;
    transition: transform 0.3s ease;
}

.tab-item.active .toggle-icon {
    transform: rotate(180deg);
}

.tab-item.active .tab-header {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-bottom: 1px solid #dbeafe;
}

.tab-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.tab-item.active .tab-content {
    max-height: 800px; /* 足夠展示圖片與規格 */
}

.tab-content-inner {
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .tab-content-inner {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* 產品規格圖片容器 */
.product-img-box {
    width: 100%;
    max-width: 220px;
    height: 150px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.25rem;
}

/* 多圖並排容器（適用於槳型與帶狀葉片） */
.product-img-group {
    display: flex;
    gap: 0.5rem;
    max-width: 280px;
    flex-shrink: 0;
}

.product-img-group .product-spec-img {
    width: 50%;
    height: 130px;
}

.product-spec-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0.375rem;
}

/* 規格清單 */
.spec-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.6;
}

.spec-list li {
    margin-bottom: 0.35rem;
}

.spec-list ul {
    margin-top: 0.35rem;
    padding-left: 1.25rem;
}

/* 應用領域新版補充卡片樣式 */
.app-intro-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

/* 應用領域 4欄位網格 */
.industry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .industry-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.industry-item {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.industry-item.highlight-item {
    background-color: #f0f9ff;
    border-color: #bae6fd;
}

.industry-item h4 {
    margin: 0 0 0.5rem 0;
    color: #1e3a8a;
    font-size: 1.05rem;
    font-weight: 700;
}

.industry-item p {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.5;
}

.app-list-custom {
    margin: 0;
    padding-left: 1.15rem;
    color: #334155;
    font-size: 0.875rem;
    line-height: 1.6;
}

.app-list-custom li {
    margin-bottom: 0.35rem;
}

.warning-box {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 1rem 1.25rem;
    border-radius: 0.375rem;
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.warning-icon {
    font-size: 1.25rem;
    color: #ef4444;
    flex-shrink: 0;
}

/* 服務與技術 4卡片網格佈局 */
.services-tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .services-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-tech-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.service-tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    border-color: #bfdbfe;
}

.card-icon-box {
    width: 3.25rem;
    height: 3.25rem;
    background-color: #eff6ff;
    color: #2563eb;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.service-tech-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.service-tech-card .card-desc {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}

/* 服務與技術 4卡片帶圖網格佈局 */
.services-tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .services-tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-tech-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #bfdbfe;
}

/* 頂部圖片容器 */
.card-image-box {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-tech-card:hover .card-img {
    transform: scale(1.05); /* 懸浮時圖片微放大效果 */
}

/* 文字內容容器 */
.card-content-box {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-icon-box {
    width: 2.75rem;
    height: 2.75rem;
    background-color: #eff6ff;
    color: #2563eb;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-tech-card .card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.service-tech-card .card-desc {
    color: #4b5563;
    font-size: 0.925rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   圖片裁切與 Lightbox (Fancybox 風格) 樣式
   ========================================================================== */

/* 1. 圖片容器與裁切顯示 */
.product-img-box,
.product-img-group {
    cursor: pointer; /* 滑鼠移上去顯示手勢 */
    position: relative;
}

.product-spec-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 裁切填滿容器 */
    object-position: center;
    display: block;
    border-radius: 0.375rem;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* 懸浮效果：提示可點擊 */
.product-img-box:hover .product-spec-img,
.product-img-group:hover .product-spec-img {
    transform: scale(1.03);
    filter: brightness(0.95);
}

/* 2. Lightbox 燈箱遮罩層 */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    pointer-events: auto;
}

/* 燈箱大圖 */
.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-img {
    transform: scale(1);
}

/* 關閉按鈕 */
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: #ffffff;
    font-size: 2.25rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #eab308;
}

/* ==========================================================================
   部件與規格 - 響應式卡片摺疊 (Accordion Card) 樣式
   ========================================================================== */

.spec-accordion-grid {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* 桌面大螢幕呈現 2 欄位卡片網格 */
@media (min-width: 1024px) {
    .spec-accordion-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
    }
}

.spec-group-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.spec-group-card.active {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

/* 卡片頂部標題點擊按鈕 */
.spec-group-header {
    width: 100%;
    padding: 1.25rem;
    background-color: #ffffff;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background-color 0.2s;
}

.spec-group-header:hover {
    background-color: #f8fafc;
}

.header-title-box {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon {
    font-size: 1.5rem;
    color: #2563eb;
    flex-shrink: 0;
}

.group-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
}

.group-subtitle {
    display: block;
    font-size: 0.825rem;
    color: #64748b;
    margin-top: 0.15rem;
}

.group-toggle-icon {
    font-size: 1rem;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.spec-group-card.active .group-toggle-icon {
    transform: rotate(180deg);
    color: #2563eb;
}

/* 卡片收合內容區 */
.spec-group-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.25rem;
    background-color: #ffffff;
    border-top: 1px solid transparent;
}

.spec-group-card.active .spec-group-body {
    max-height: 2000px; /* 寬裕高度讓細節全部展開 */
    padding: 1.25rem;
    border-top-color: #f1f5f9;
}

/* 子項目卡片子網格 */
.spec-sub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .spec-sub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.spec-item {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spec-item.full-width {
    grid-column: 1 / -1;
}

@media (min-width: 640px) {
    .spec-item.full-width {
        flex-direction: row;
        align-items: center;
    }
}

/* 子圖與多圖樣式 */
.spec-img-box,
.spec-img-group {
    width: 100%;
    height: 150px; /* 固定高度，可依需求微調 */
    display: flex;
    gap: 0.5rem;
    cursor: pointer; /* 1. 滑鼠懸浮顯示點擊手勢 */
    border-radius: 0.375rem;
    overflow: hidden;
}

/* 2. 多圖自動等分寬度與裁切 */
.spec-img-group .product-spec-img {
    flex: 1; /* 2. 不限圖片數量，自動均分剩餘寬度 */
    width: 0;
    height: 100%;
    object-fit: cover; /* 裁切填滿 */
    object-position: center;
    border-radius: 0.375rem;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* 懸浮放大與微暗提示 */
.spec-img-box:hover .product-spec-img,
.spec-img-group:hover .product-spec-img {
    transform: scale(1.03);
    filter: brightness(0.95);
}

/* 3. 卡片結構：統一讓圖片在上、文字在下方 */
.spec-item {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column; /* 強制上下排列 */
    gap: 0.75rem;
}

/* 跨欄 (Full Width) 卡片同樣保持「圖在上、文在下」 */
.spec-item.full-width {
    grid-column: 1 / -1;
    flex-direction: column; /* 3. 取消橫向排列，讓文字順利排到圖片下方 */
}

.spec-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.975rem;
    color: #1e3a8a;
    font-weight: 700;
}

.spec-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.5;
}

/* ==========================================================================
   FAQ 輸送量參考表專用樣式
   ========================================================================== */

/* 允許 accordion 內容隨表格動態高度擴展 */
.faq-item.active .faq-answer {
    max-height: 2500px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-top: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.faq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    text-align: center;
    background-color: #ffffff;
}

.faq-table th {
    background-color: #1e3a8a;
    color: #ffffff;
    padding: 0.65rem 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.faq-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    color: #334155;
}

.faq-table tr:hover {
    background-color: #f8fafc;
}

.faq-table td strong {
    color: #1d4ed8;
}