.service {
    padding: 30px 15px;
}

.service h1 {
    font-size: 2.250em;
    color: #333;
    line-height: 60px;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 10px;
}

.service h2 {
    font-size: 1.875em;
    color: #333;
    line-height: 65px;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
}

.s-subtitle {
    font-size: 1.25em;
    color: #666;
    letter-spacing: 0.05em;
}

.s-subtitle span {
    font-weight: 900;
    padding: 0 4px;
}

.text-content {
    color: red;
    font-size: 1.250em;
}

/* Video Start  */

.eboard-video-box {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.eboard-video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eboard-video-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.eboard-video-text h1 {
    color: white;
    font-size: 3rem;
    letter-spacing: 0.05em;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
}

.eboard-video-text p {
    color: #eee;
    display: block;
    font-size: 1.2em;
    letter-spacing: 0.05em;
    font-weight: 900;
    text-align: center;
    padding: 0 30px;
    max-width: 800px;
}

/* Video End */

/* s-block0 Start */

.s-block0 {
    padding: 50px 0;
}

/* s-block0 End */

/* s-block1 Start */

.img-switch-box {
    position: relative;
}

.img-switch-box img {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
}

@keyframes isb {
    0% {
        opacity: 0;
    }

    3% {
        opacity: 1;
    }

    15% {
        opacity: 1;
    }

    18% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.img-switch-box img:nth-child(1) {
    position: relative;
    animation: isb 10s ease-in-out 0s infinite;
    opacity: 0;
}

.img-switch-box img:nth-child(2) {
    animation: isb 10s ease-in-out 1.4s infinite;
    opacity: 0;
}

.img-switch-box img:nth-child(3) {
    animation: isb 10s ease-in-out 2.8s infinite;
    opacity: 0;
}

.img-switch-box img:nth-child(4) {
    animation: isb 10s ease-in-out 4.2s infinite;
    opacity: 0;
}

.img-switch-box img:nth-child(5) {
    animation: isb 10s ease-in-out 5.6s infinite;
    opacity: 0;
}

.img-switch-box img:nth-child(6) {
    animation: isb 10s ease-in-out 7s infinite;
    opacity: 0;
}

.img-switch-box img:nth-child(7) {
    animation: isb 10s ease-in-out 8.4s infinite;
    opacity: 0;
}

/* Windows 安裝 開始 */

.img-install-box {
    position: relative;
}

.img-install-box img {
    float: none;
    width: 100%;
}

.img-install-box img.s-block-img2-img {
    position: absolute;
    top: 32%;
    left: 15%;
    width: 70%;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.install-line {
    width: 64.55%;
    height: 5.3%;
    background-color: #169c16;
    position: absolute;
    top: 50%;
    left: 17.8%;
    animation: install-line 5s ease-in-out 0s infinite;
}

@keyframes install-line {
    0% {
        width: 0%;
    }

    40% {
        width: 64.55%;
    }

    100% {
        width: 64.55%;
    }
}

@media screen and (max-width: 992px) {
    .install-line {
        height: 5.4%;
        top: 49.9%;
    }
}


.ipad-border {
    border: 24px #000 solid;
    border-radius: 10px;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

/* s-block1 End */

/* s-block2 Start */

.s-block2 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.s2-img-box {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 700px;
    position: relative;
}

.s-block2 .pc-left {
    width: 40%;
    display: block;
    margin: 0 auto;
    position: absolute;
    left: 13%;
    top: 20%;
}

.s-block2 .pc-right {
    width: 40%;
    display: block;
    margin: 0 auto;
    position: absolute;
    position: absolute;
    right: 13%;
    top: 30%;
}

.s-block2 .text-content {
    text-align: center;
}

@media screen and (max-width: 1200px) {
    .s2-img-box {
        height: 600px;
    }
}

@media screen and (max-width: 992px) {
    .s2-img-box {
        height: 500px;
    }
}

@media screen and (max-width: 767px) {
    .s2-img-box {
        height: 400px;
    }
}

/* s-block2 End */


/* s-block3 Start */

.s-block3 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 30px 15px;
}

.s-block3.grey {
    background-color: #fcfcfc;
    border-radius: 8px;
}

.s-block3 .sb3-img {
    float: left;
    width: 60%;
}

.s-block3 .sb3-img img {
    width: 80%;
    border: 20px rgba(0, 0, 0, 0.8) solid;
    padding: 5px;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.s-block3 .text-content {
    float: left;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 500px;
}

.s-block3 img.img-right {
    float: right;
}

@media screen and (max-width: 992px) {

    .s-block3 .sb3-img {
        width: 100%
    }

    .s-block3 img {
        float: none;
        width: 60%;
        display: block;
        margin: 0 auto;
        margin-bottom: 20px;
    }

    .s-block3 .text-content {
        float: none;
        width: 100%;
        display: block;
        height: auto;
        text-align: center;
    }

    .s-block3 img.img-right {
        float: none;
    }

}

/* s-block3 End */


/* 製作流程 Start */

.process-section {
    background-color: #fcfcfc;
    padding: 50px 0;
}

.process-list {
    list-style: none;
    text-align: center;
    margin: 50px 0 90px 0;

}

.process-list li {
    display: block;
    width: 300px;
    max-width: 100%;
    height: 66px;
    text-align: center;
    font-size: 1.375em;
    color: #fff;
    font-weight: 900;
    padding: 14px 0 0 45px;
    letter-spacing: 0.1em;
    margin: 0 auto;
    margin-bottom: 12px;
    position: relative;
}

.process-list li span {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.750em;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 900;
    margin-bottom: 3px;
    position: absolute;
    top: 0;
    left: 20px;
}

.process-list li i {
    font-size: 0.625em;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.6)
}

.process-list li:nth-child(1) {
    background: url("/front/images/step1.png");
    background-size: cover;
    line-height: 50px;
    left: -150px;
}

.process-list li:nth-child(1) span {
    top: 0;
}

.process-list li:nth-child(2) {
    background: url("/front/images/step2.png");
    background-size: cover;
    line-height: 45px;
    left: -75px;
}

.process-list li:nth-child(2) span {
    top: 8px;
}

.process-list li:nth-child(3) {
    background: url("/front/images/step3.png");
    background-size: cover;
    line-height: 38px;
}

.process-list li:nth-child(3) span {
    top: 15px;
}

.process-list li:nth-child(4) {
    background: url("/front/images/step4.png");
    background-size: cover;
    line-height: 28px;
    left: 75px;
}

.process-list li:nth-child(4) span {
    top: 20px;
}

.process-list li:nth-child(5) {
    background: url("/front/images/step5.png");
    background-size: cover;
    line-height: 22px;
    left: 150px;
}

.process-list li:nth-child(5) span {
    top: 26px;
}

/* 製作流程 End */

/* Service Button Start */

a.s-btn {
    display: block;
    margin: 0 auto;
    width: 200px;
    height: 40px;
    border: 1px #85a4d0 solid;
    border-radius: 6px;
    text-align: center;
    line-height: 38px;
    letter-spacing: 0.05em;
    color: #85a4d0 !important;
    transition: all 0.3s;
    cursor: pointer;
}

a.s-btn:hover {
    background-color: #85a4d0;
    color: #fff !important;
}

/* Service Button End */

/* Service Form Start */

.s-title {
    text-align: center;
    color: #333;
}

/* Service Form End */

/* Works Start */

.works-section {
    padding: 50px 0;
}

/* Works End */

/* banner-slider Start */

.eborad-box {
    display: block;
    margin-bottom: 100px;
}

.eb-content {
    float: left;
    padding: 10px;
    width: 20%;
}

.eborad-img {
    width: 100%;
    border-radius: 2px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.eborad-box .eb-content:nth-child(1) {
    animation: CSSAnimationFadeIn1 0.6s ease-in-out 0.1s forwards;
    opacity: 0;
}

.eborad-box .eb-content:nth-child(2) {
    animation: CSSAnimationFadeIn1 0.6s ease-in-out 0.2s forwards;
    opacity: 0;
}

.eborad-box .eb-content:nth-child(3) {
    animation: CSSAnimationFadeIn1 0.6s ease-in-out 0.3s forwards;
    opacity: 0;
}

.eborad-box .eb-content:nth-child(4) {
    animation: CSSAnimationFadeIn1 0.6s ease-in-out 0.4s forwards;
    opacity: 0;
}

.eborad-box .eb-content:nth-child(5) {
    animation: CSSAnimationFadeIn1 0.6s ease-in-out 0.5s forwards;
    opacity: 0;
}

@keyframes CSSAnimationFadeIn1 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}


/* banner-slider End */


.h100px {
    height: 100px !important;
}

.h200px {
    height: 200px !important;
}

.h300px {
    height: 300px !important;
}

.h400px {
    height: 400px !important;
}

.h500px {
    height: 500px !important;
}

.works-name {
    text-align: center;
    color: #7a7a7a;
    font-size: 1.250em;
    line-height: 30px;
    letter-spacing: 0.05em;
    font-weight: 900;
    margin-top: 10px;
}

.mt5 {
    margin-top: 5% !important;
}

.services-works {
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}



/* 基本架構 開始 */

#ds_structure {
    background-color: #f9f9f9;
}

.architecture-box {
    width: 20%;
    margin: 0 auto;
    margin-bottom: 15px;
    float: left;
    margin-bottom: 20px;
    padding: 5px;
}

.architecture-content {
    padding: 20px 25px;
    min-height: 380px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.architecture-content img {
    width: 50%;
}

.architecture-box-title {
    font-size: 1.125em;
    letter-spacing: 0.05em;
    color: #1170b7;
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 0px;
    letter-spacing: 0.1em;
    font-weight: 900;
}

.architecture-box-title-span {
    color: #ccc;
    line-height: 20px;
    font-size: 0.9em;
    display: block;
    margin-bottom: 10px;
}

.architecture-box ul {
    padding: 0;
    list-style-type: none;
}

.architecture-box ul li {
    color: #888;
    line-height: 32px;
    text-align: center;
    width: 120px;
    margin: 0 auto;
}

.remark-text {
    color: #999;
    font-size: 1.125em;
    text-align: right;
    letter-spacing: 0.1em;
}

@media screen and (max-width: 992px) {
    .architecture-box {
        width: 33.3%;
    }

    .architecture-content img {
        width: 30%;
    }

    .architecture-content {
        min-height: 340px;
    }

}

@media screen and (max-width: 767px) {
    .architecture-box {
        width: 50%;
    }

    .architecture-content {
        height: auto;
    }
}

.service .s-block0 {
    max-width: 1200px !important;
    font-size: 1.250em;
    color: #666;
}

/* 基本架構 結束 */

.s-subtitle {
    text-align: justify;
}

@media only screen and (min-width: 1px) and (max-width: 576px) {

    .service h1,
    .service h2 {
        font-size: 1.625em;
    }

    .s-subtitle {
        font-size: 1.125em;
    }

    .s-block0 {
        padding-top: 0px;
    }

    .s-block1 img {
        width: 100%;
    }

    .s2-img-box {
        height: 270px;
    }
}

@media only screen and (min-width: 1px) and (max-width: 767px) {

    .eb-content {
        width: 50%;
    }
}


/* 電子錶板作品 */

.eboard-works div {
    position: relative;
}

.eboard-works div:hover img {
    transition: all 0.3s;
}

.eboard-works div:hover img {
    filter: brightness(0.2);
}

.eboard-works div span {
    opacity: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: all 0.3s;
}

.eboard-works div:hover span {
    opacity: 1;
}

.gray-box {
    width: 50%;
    margin-left: 25%;
    height: 180px;
    background-color: #f3f3f3;
}

.gray-box::after {
    content: "";
    display: block;
    width: 1px;
    height: 100%;
    background-color: #fff;
    position: absolute;
    top: 0;
    left: 50%;
}

@media screen and (min-width: 768px) and (max-width: 979px) {
    .gray-box {
        width: 33%;
        margin-left: 33%;
        height: 180px;
    }

    .gray-box::after {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .gray-box {
        height: 0px;
    }

    .gray-box::after {
        display: none;
    }
}


/* 比較表格 */

#compare-table {
    background: url(../images/service/setion-bg6.jpg);
}

.compare-table {
    margin: 0 auto;
    width: 90%;
    border: 1px #ccc solid;
    box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
    table-layout: fixed;
    border-collapse: collapse;
    text-align: center;
    background-color: #fff;
}

.compare-table .top-th th:nth-child(1) {
    border-bottom: #ccc 1px solid;
    background-color: #1170b7;
    color: #fff;
}

.compare-table .top-th th:nth-child(3) {
    border-bottom: #ccc 1px solid;
    background-color: #009474;
    color: #fff;
}

.compare-table col.middle {
    width: 120px;
}

.compare-table col.auto {
    width: calc((100% - 120px) / 2);
}

.compare-table tr th,
.compare-table tr td {
    padding: 20px 10px;
    letter-spacing: 0.05em;
    font-size: 1em;
    border-bottom: #ccc 1px solid;
    border-right: 1px #ddd solid;
    border-left: 1px #ddd solid;
    font-weight: 900;
    color: #555;
    position: relative;
}


.compare-table tr th {
    font-size: 1.2em;
}


@media screen and (max-width: 767px) {

    .compare-table col.middle {
        width: 100px;
    }

    .compare-table col.auto {
        width: calc((100% - 100px) / 2);
    }

    .compare-table tr th,
    .compare-table tr td {
        padding: 15px 8px;
        font-size: 0.9em;
    }
}

.compare-table tr th {
    text-align: center;
    background-color: #f3f3f3;
}

.compare-table tr td.t-l {
    border-bottom: 1px #ccc dashed;
    color: #666;
}

.compare-table tr td.t-r {
    border-bottom: 1px #ccc dashed;
    color: #666;
}

.win1 {
    display: inline-block;
    width: 30px;
    height: 15px;
    background: url(../images/service/works/icon1.png) no-repeat center center;
    background-size: contain;
    position: relative;
    top: -15px;
    right: 0px;
    transform: rotate(30deg);
}

.win2 {
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 26px;
    font-weight: 900;
    color: #db0202;
    border: 2px #db020266 solid;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(219, 2, 2, 0.5);
    border-radius: 50%;
    position: absolute;
    top: -5px;
    left: -10px;
    transform: rotate(-15deg);
    opacity: 0.7;
    font-size: 0.95em;
}


@media screen and (max-width: 767px) {
    .compare-table tr td {
        position: relative;
    }

    .win2 {
        position: absolute;
        top: -8px;
        left: -15px;
        font-size: 0.9em;
    }
}

.eboard-line-btn {
    display: block;
    width: 200px;
    height: 46px;
    line-height: 46px;
    border-radius: 5px;
    line-height: 46px;
    text-align: center;
    background-color: #00c300;
    color: #fff;
    margin: 0 auto;
    font-weight: 900;
    letter-spacing: 0.05em;
    transition: all 0.3s;
}


.eboard-line-btn:hover {
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.eboard-line-btn img {
    width: 30px;
    margin-right: 5px;
    margin-bottom: 3px;
}

/*新區塊start*/
.service_new_box {
    max-width: 1200px;
    margin: auto;
    margin-top: 8rem;
    margin-bottom: 8rem;
}

.service_new_box p {
    font-size: 1.25rem;
    text-align: justify;
    line-height: 1.75;
}

.service_new_box img {
    margin-top: 15px;
}

.service_new_box h2 {
    margin-bottom: 0px;
}

.service_new_box h3 {
    font-size: 1.45rem;
    color: #333333;
    margin-bottom: 18px;
}

@media (min-width: 992px) {
    .service_new_box .order-lg-1 p {
        padding-right: 3.25rem;
    }

    .service_new_box .order-lg-2 {
        padding-left: 3.25rem;
    }
}

/*新區塊end*/


/* ============================
   外包流程時間軸樣式
   ============================ */

.outsource-process {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.process-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 每個流程項目 */
.timeline-item {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(17, 112, 183, 0.08);
    overflow: hidden;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1170b7, #3097D1, #64b5f6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.timeline-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(17, 112, 183, 0.15);
}

.timeline-item:hover::before {
    transform: scaleX(1);
}

/* 步驟數字 */
.timeline-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #1170b7, #3097D1);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(17, 112, 183, 0.3);
}

/* 圖示區塊 */
.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(17, 112, 183, 0.1), rgba(48, 151, 209, 0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.timeline-icon svg {
    width: 30px;
    height: 30px;
    color: #1170b7;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    background: linear-gradient(135deg, #1170b7, #3097D1);
    transform: scale(1.05);
}

.timeline-item:hover .timeline-icon svg {
    color: #fff;
}

/* 內容區塊 */
.timeline-content h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.4;
}

.timeline-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

/* 平板樣式 */
@media screen and (max-width: 992px) {
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .timeline-item {
        padding: 25px 20px;
    }

    .timeline-content h3 {
        font-size: 1.15rem;
    }
}

/* 手機樣式 */
@media screen and (max-width: 576px) {
    .outsource-process {
        padding: 20px 10px 40px;
    }

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline-item {
        padding: 25px 20px;
    }

    .timeline-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
        top: 15px;
        right: 15px;
    }

    .timeline-icon {
        width: 50px;
        height: 50px;
    }

    .timeline-icon svg {
        width: 24px;
        height: 24px;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.95rem;
    }
}

/* 外包流程時間軸樣式 結束 */