﻿/* =========================================
   factory-worker.css
   1. 全域 / 頁面背景
   2. tab21 製造業移工申請資格
   3. tab22 製造業應備文件
   4. tab24 製造業聘僱費用
   5. RWD
   ========================================= */

/* =========================================
   1. 全域 / 頁面背景
   ========================================= */

.page-helper-kai .visual-title,
.page-helper-kai .breadcrumb,
.page-helper-kai .nav-tabs .nav-link,
.page-helper-kai .demo-wrapper,
.page-helper-kai .demo-wrapper h3,
.page-helper-kai .demo-wrapper h4,
.page-helper-kai .demo-wrapper h5,
.page-helper-kai .demo-wrapper h6,
.page-helper-kai .demo-wrapper p,
.page-helper-kai .demo-wrapper li,
.page-helper-kai .table,
.page-helper-kai .table th,
.page-helper-kai .table td {
    font-family: "DFKai-SB", "BiauKai", "KaiTi", serif;
}

.page-helper-kai .content-wrapper {
    background: #f5f7fb;
    padding-top: 32px;
    padding-bottom: 56px;
}

.page-helper-kai .content-block {
    background: transparent;
}

.page-helper-kai .tab-content {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 24px;
    padding: 24px 20px 32px;
}

#tab21,
#tab22,
#tab24 {
    background: transparent;
}

/* =========================================
   2. tab21 製造業移工申請資格
   ========================================= */

#tab21 .demo-wrapper.content-block.text-center,
#tab21 .demo-wrapper.text-left {
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

#tab21 .factory-qualify-wrap {
    max-width: 1280px;
    margin: 0 auto;
}

#tab21 .factory-main-title {
    margin-bottom: 18px;
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    color: #d60000;
}

#tab21 .divider-double-border {
    margin-bottom: 28px;
}

#tab21 .factory-section {
    margin-bottom: 28px;
}

#tab21 .factory-card,
#tab21 .factory-rate-card,
#tab21 .factory-info-card,
#tab21 .factory-timeline-card,
#tab21 .factory-gallery-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

#tab21 .factory-card + .factory-card {
    margin-top: 24px;
}

#tab21 .factory-card-header,
#tab21 .factory-rate-card-header,
#tab21 .factory-info-card-header,
#tab21 .factory-timeline-header,
#tab21 .factory-gallery-header {
    background: linear-gradient(135deg, #4f46e5, #5b4df0);
    color: #ffffff;
    text-align: center;
    padding: 16px 20px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1px;
}

#tab21 .factory-card-body,
#tab21 .factory-rate-card-body,
#tab21 .factory-info-card-body,
#tab21 .factory-timeline-body {
    padding: 24px 28px;
    color: #374151;
    font-size: 18px;
    line-height: 1.9;
    text-align: left;
}

#tab21 .factory-gallery-body {
    padding: 24px 28px;
}

#tab21 .factory-card-body p,
#tab21 .factory-rate-card-body p,
#tab21 .factory-info-card-body p {
    margin: 0 0 14px 0;
}

#tab21 .factory-card-body p:last-child,
#tab21 .factory-rate-card-body p:last-child,
#tab21 .factory-info-card-body p:last-child {
    margin-bottom: 0;
}

#tab21 .factory-subtitle {
    margin: 0 0 14px 0;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    color: #d60000;
}

#tab21 .factory-note-title,
#tab21 .factory-rate-title,
#tab21 .factory-info-title {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1d4ed8;
    line-height: 1.5;
}

#tab21 .factory-highlight-text {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #374151;
    line-height: 1.8;
    text-align: left;
}

#tab21 .factory-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

#tab21 .factory-tag {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    border: 1px solid #c7d2fe;
}

#tab21 .factory-condition-box {
    margin-top: 18px;
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

#tab21 .factory-condition-box p {
    margin: 0;
    font-size: 18px;
    line-height: 1.9;
    color: #374151;
}

#tab21 .factory-condition-box strong {
    color: #1f2937;
}

/* tab21 - 核配比率 */

#tab21 .factory-rate-section + .factory-rate-section {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

#tab21 .factory-rate-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#tab21 .factory-rate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

#tab21 .factory-rate-label {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

#tab21 .factory-rate-value {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #4338ca;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

#tab21 .factory-rate-note,
#tab21 .factory-info-text {
    margin: 0;
    color: #374151;
    font-size: 18px;
    line-height: 1.9;
}

#tab21 .factory-info-list {
    margin: 0;
    padding-left: 1.4em;
}

#tab21 .factory-info-list li {
    margin-bottom: 10px;
    line-height: 1.9;
}

#tab21 .factory-info-list li:last-child {
    margin-bottom: 0;
}

#tab21 .factory-image-frame {
    margin-top: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    padding: 16px;
}

#tab21 .factory-image-frame img,
#tab21 .factory-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* tab21 - 配額使用年限 / 圖片 */

#tab21 .factory-timeline-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

#tab21 .factory-timeline-box {
    min-width: 150px;
    text-align: center;
    padding: 18px 20px;
    border-radius: 14px;
    background: #1e3a8a;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
    border: 2px solid #d97706;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.18);
}

#tab21 .factory-timeline-symbol {
    font-size: 38px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

#tab21 .factory-gallery-stack {
    display: grid;
    gap: 22px;
}

#tab21 .factory-gallery-item {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    padding: 14px;
}

/* =========================================
   3. tab22 製造業應備文件
   ========================================= */

#tab22 .demo-wrapper.content-block.text-center {
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

#tab22 .demo-wrapper.content-block.text-center > h3 {
    margin-bottom: 18px;
    font-size: 42px;
    font-weight: 700;
}

#tab22 .divider-double-border {
    margin-bottom: 32px;
}

#tab22 .factory-doc-wrap {
    max-width: 1280px;
    margin: 0 auto;
}

#tab22 .factory-doc-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

#tab22 .factory-doc-card + .factory-doc-card {
    margin-top: 24px;
}

#tab22 .factory-doc-card-header {
    background: linear-gradient(135deg, #4f46e5, #5b4df0);
    color: #ffffff;
    text-align: center;
    padding: 16px 20px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1px;
}

#tab22 .factory-doc-card-body {
    padding: 24px 28px;
    color: #374151;
    font-size: 18px;
    line-height: 1.9;
    text-align: left;
}

#tab22 .factory-doc-list {
    margin: 0;
    padding-left: 1.4em;
}

#tab22 .factory-doc-list li {
    margin-bottom: 14px;
    line-height: 1.9;
    padding-bottom: 4px;
}

#tab22 .factory-doc-list li + li {
    margin-top: 4px;
}

#tab22 .factory-doc-list li:last-child {
    margin-bottom: 0;
}

#tab22 .factory-doc-desc {
    margin: 0 0 16px 0;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #374151;
    font-size: 17px;
    line-height: 1.85;
    text-align: left;
}

#tab22 .factory-doc-alert {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #d60000;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.8;
    text-align: left;
}

/* =========================================
   4. tab24 製造業聘僱費用
   ========================================= */

#tab24 .demo-wrapper.content-block.pb-0 {
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

#tab24 .demo-wrapper.content-block.pb-0 > h3 {
    margin-bottom: 18px;
    font-size: 42px;
    font-weight: 700;
}

#tab24 .factory-fee-wrap {
    max-width: 1280px;
    margin: 0 auto;
}

#tab24 .factory-fee-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 28px;
}

#tab24 .factory-fee-summary-card,
#tab24 .factory-fee-table-panel {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

#tab24 .factory-fee-summary-card-header,
#tab24 .factory-fee-table-panel-header {
    background: linear-gradient(135deg, #4f46e5, #5b4df0);
    color: #ffffff;
    text-align: center;
    padding: 16px 20px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1px;
}

#tab24 .factory-fee-summary-card-body,
#tab24 .factory-fee-table-panel-body {
    padding: 24px 28px;
    color: #374151;
    font-size: 18px;
    line-height: 1.9;
    text-align: left;
}

#tab24 .factory-fee-summary-list {
    margin: 0;
    padding-left: 1.4em;
}

#tab24 .factory-fee-summary-list li {
    margin-bottom: 12px;
    line-height: 1.9;
}

#tab24 .factory-fee-summary-list li:last-child {
    margin-bottom: 0;
}

#tab24 .factory-fee-section-title {
    margin: 30px 0 16px;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    color: #374151;
}

#tab24 .factory-fee-alert {
    margin: 20px auto 24px;
    padding: 18px 20px;
    border: 1px solid #fecaca;
    background: #fff5f5;
    color: #d60000;
    border-radius: 12px;
    line-height: 1.8;
    text-align: center;
    font-size: 16px;
}

#tab24 .factory-fee-alert p {
    margin: 0 0 10px 0;
}

#tab24 .factory-fee-alert p:last-child {
    margin-bottom: 0;
}

#tab24 .factory-fee-table-panel-body .data-table {
    margin: 0;
}

#tab24 .factory-fee-table-panel-body .table {
    width: 100%;
    margin-bottom: 0;
    background: #ffffff;
    font-size: 16px;
    line-height: 1.75;
    border-collapse: collapse;
}

#tab24 .factory-fee-table-panel-body .table thead th,
#tab24 .factory-fee-table-panel-body .table .bg-secondary {
    background: #ff6436 !important;
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
    padding: 14px 12px;
    border-color: #ff6436 !important;
}

#tab24 .factory-fee-table-panel-body .table th,
#tab24 .factory-fee-table-panel-body .table td {
    padding: 14px 12px;
    vertical-align: middle;
    border-color: #e5e7eb;
}

#tab24 .factory-fee-table-panel-body .table tbody td,
#tab24 .factory-fee-table-panel-body .table tbody th {
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

#tab24 .factory-fee-table-panel-body .table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* =========================================
   5. RWD
   ========================================= */

@media (max-width: 992px) {
    #tab21 .factory-rate-list,
    #tab24 .factory-fee-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #tab21 .factory-timeline-body {
        padding: 20px 18px;
    }

    #tab21 .factory-timeline-flow {
        flex-direction: column;
        gap: 12px;
    }

    #tab21 .factory-timeline-box {
        width: 100%;
        max-width: 260px;
        min-width: 0;
        margin: 0 auto;
    }

    #tab21 .factory-timeline-symbol {
        font-size: 30px;
        line-height: 1;
    }

    #tab21 .factory-info-card-body,
    #tab21 .factory-gallery-body {
        padding: 20px 18px;
    }

    #tab21 .factory-image-frame,
    #tab21 .factory-gallery-item {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #tab21 .factory-image-frame img {
        width: 720px;
        max-width: none;
    }

    #tab21 .factory-gallery-item img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}