/*
Author: kenrich
Time:2023-01-03 -- 2023-01-10
/* reset */
img {
    max-width: 100%;
    width: auto\9;
    height: auto;
    border: 0;
    vertical-align: middle;
    /* IE11 備用 */
    border-radius: 0;
}

a {
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    text-decoration: none !important;
    color: #333;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

a:hover,
a:focus {
    -webkit-transition: all 0.8s ease;
    transition: all 0.8s ease;
    text-decoration: none !important;
    color: #333;
    outline: none;
}

/* 連結 */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul,
li {
    margin: 0;
    padding: 0
}

li {
    list-style-type: none;
}

.left {
    float: left;
}

.right {
    float: right;
}

.dn {
    display: none;
}

.db {
    display: block;
}

.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}

.clearfix:after {
    clear: both;
    overflow: hidden;
}

.clearfix {
    zoom: 1;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    color: #333333;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
}

.nav-link {
    -webkit-transition: color 0.3s;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #b5bcab;
}

/* 垂直裝飾線 - 電腦版 */
.section-line {
    width: 1px;
    background-color: #333;
    height: auto;
    min-height: 100px;
    margin-left: 50px;
}

.setTitle {
    text-align: center;
    width: 120px !important;
    top: 100px;
    background-color: #b5bcab;
    z-index: 999;
}

.getTop {
    position: fixed;
    right: 15px;
    top: 50%;
    z-index: 999;
}

.step-icon {
    width: 38px;
}

.getTop img {
    width: 50px;
}

.process-arrow {
    margin-top: 15px !important;
    margin-bottom: 12px !important;
}

.process-arrow img {
    height: 12px;
}

@media (max-width: 768px) {
    .setTitle {
        position: relative !important;
        width: 100% !important;
        top: 0 !important;
        background-color: transparent !important;
        margin-bottom: 10px;
        padding-top: 20px;
    }
    .drying-method{
        margin-left: 0!important;
        margin-right: 0!important;
    }

    .getTop {
        display: none;
    }

    /* 手機版改為水平線 */
    .section-line {
        width: 100%;
        height: 1px;
        min-height: 1px;
        margin: 10px 0;
        margin-left: 0;
    }

    .Processing-info {
        top: 20px;
    }

    /* process step 手機版 */
    .process-step {
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-align-items: stretch;
        align-items: stretch;
        min-height: auto;
    }

    .step-badge {
        min-width: unset;
        width: 100%;
        min-height: 44px;
        border-radius: 8px 8px 0 0;
        font-size: 15px;
        padding: 10px 16px;
        -webkit-justify-content: flex-start;
        justify-content: flex-start;
    }

    .step-body {
        padding: 12px 16px;
        -webkit-flex-direction: row;
        flex-direction: row;
        gap: 10px;
    }

    .step-zh {
        font-size: 16px;
    }

    .step-en {
        font-size: 13px;
    }

    .step-img {
        width: 100%;
        height: 160px;
        border-radius: 0 0 8px 8px;
    }
}

/* 回頂部按鈕 */
.scroll-top {
    border: 1px solid #fff;
    color: #fff;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.scroll-top:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.Processing {
    position: relative
}

.Processing-info {
    position: absolute;
    left: 0;
    width: 100%;
    display: block;
    top: 80px
}

/* 隱藏/顯示手機選單 */
#mobile-menu {
    -webkit-transition: -webkit-transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
    -webkit-transform: translateY(-150%);
    -ms-transform: translateY(-150%);
    transform: translateY(-150%);
}

#mobile-menu.open {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.process-step {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    border: 1.5px solid #d6d6d6;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    min-height: 100px;
}

.step-badge {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0 18px;
    min-width: 120px;
    height: 100%;
    min-height:100px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    border-radius: 8px 0 0 8px;
}

.step-body {
    -webkit-flex: 1;
    flex: 1;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
}

.step-icon {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

.step-text {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
}

.step-zh {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.step-en {
    font-size: 16px;
    color: #888;
    letter-spacing: 0.03em;
}

.step-img {
    width: 100px;
    height: 100px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0 8px 8px 0;
}

.step-img img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.process-arrow {
    color: #888;
    font-size: 1.1rem;
    margin: 6px 0;
    text-align: center;
}

/* Step 12 */
.step12-container {
    border-radius: 10px;
    overflow: hidden;
}

.step12-header {
    -webkit-align-items: stretch;
    align-items: stretch;
    min-height: 54px;
    text-align: center;
}

.step12-badge {
    background: #485547;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    width: 100%;

    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 12px 18px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.step12-title {
    width: 100%;
    background: #fff;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 12px 0;
    border: 1px solid #ccc;
}

.step12-body {
    display: -webkit-flex;
    display: flex;
    background: #fff;
    margin-top: 10px;
}

.drying-method {
    -webkit-flex: 1;
    flex: 1;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    border-right: 1px solid #e5e5e5;
    overflow: hidden;
}

.drying-method:last-child {
    border-right: none;
}

.drying-method .drying-icon img{
    height: 40px;
    margin: 20px 0 10px 0;
}

.drying-method .drying-text {
    text-align: center;
    padding: 0 8px 10px;
    margin-bottom: 10px;
}

.drying-method .drying-zh {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.drying-method .drying-en {
    font-size: 0.7rem;
    color: #888;
    line-height: 1.4;
}

.drying-method .drying-img {
    width: 100%;
    margin-top: auto;
}

.drying-method .drying-img img {
    width: 100%;
    height: 80px;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .step12-header {
        -webkit-flex-direction: column;
        flex-direction: column;
    }

    .step12-badge {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .step12-body {
        -webkit-flex-direction: column;
        flex-direction: column;
        gap: 10px;
    }

    .drying-method {
        -webkit-flex-direction: row;
        flex-direction: row;
        border-right: none;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        -webkit-align-items: center;
        align-items: center;
        padding: 12px;
        gap: 12px;
    }

    .drying-method .drying-icon img {
        height: 32px;
        margin: 0;
    }

    .drying-method .drying-text {
        text-align: left;
        padding: 0;
        -webkit-flex: 1;
        flex: 1;
        margin-bottom: 0;
    }

    .drying-method .drying-img {
        width: 80px;
        height: 60px;
        -webkit-flex-shrink: 0;
        flex-shrink: 0;
        margin-top: 0;
        border-radius: 6px;
        overflow: hidden;
    }

    .drying-method .drying-img img {
        height: 100%;
    }
}

/* ===== Tablet 768-1023px RWD 修正 ===== */
@media (min-width: 768px) and (max-width: 1023px) {

    /* Banner 文字位置微調 */
    .Processing-info {
        top: 45px;
    }

    /* Section 標題區 */
    .setTitle {
        top: 60px;
    }

    /* Step badge 文字在平板縮小一點避免破版 */
    .step-badge {
        font-size: 15px;
        min-width: 90px;
        padding: 0 12px;
    }

    /* 讓 banner 圖保持完整 */
    .Processing img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* ===== Banner Text Animation ===== */
@-webkit-keyframes bannerFadeUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(28px);
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes bannerFadeUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(28px);
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

.Processing-info h2 {
    opacity: 0;
    -webkit-animation: bannerFadeUp 0.8s ease forwards;
    animation: bannerFadeUp 0.8s ease forwards;
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.Processing-info h3 {
    opacity: 0;
    -webkit-animation: bannerFadeUp 0.8s ease forwards;
    animation: bannerFadeUp 0.8s ease forwards;
    -webkit-animation-delay: 0.7s;
    animation-delay: 0.7s;
}

.Processing-info p {
    opacity: 0;
    -webkit-animation: bannerFadeUp 0.8s ease forwards;
    animation: bannerFadeUp 0.8s ease forwards;
    -webkit-animation-delay: 1.1s;
    animation-delay: 1.1s;
}

.banner-mobile-text h2 {
    opacity: 0;
    -webkit-animation: bannerFadeUp 0.8s ease forwards;
    animation: bannerFadeUp 0.8s ease forwards;
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
}

.banner-mobile-text h3 {
    opacity: 0;
    -webkit-animation: bannerFadeUp 0.8s ease forwards;
    animation: bannerFadeUp 0.8s ease forwards;
    -webkit-animation-delay: 0.7s;
    animation-delay: 0.7s;
}

.banner-mobile-text p {
    opacity: 0;
    -webkit-animation: bannerFadeUp 0.8s ease forwards;
    animation: bannerFadeUp 0.8s ease forwards;
    -webkit-animation-delay: 1.0s;
    animation-delay: 1.0s;
}

/* ===== Process Step Slide-in ===== */
.process-step,
.process-arrow,
.step12-container,
.process-finish {
    opacity: 0;
    -webkit-transform: translateX(-40px);
    -ms-transform: translateX(-40px);
    transform: translateX(-40px);
    -webkit-transition: opacity 0.55s ease, -webkit-transform 0.55s ease;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.process-step.slide-in,
.process-arrow.slide-in,
.step12-container.slide-in,
.process-finish.slide-in {
    opacity: 1;
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
}

/* Finish */
.process-finish {
    text-align: center;
    padding: 18px 0 4px;
}

.finish-zh {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.2em;
}

.finish-en {
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 0.25em;
}
