/* 圖文編輯器內使用之CSS */

.quantity-btn {
    display: block;
}

.quantity-btn input {
    width: 24px;
    margin-bottom: 0;
}

.quantity-btn .bmd-form-group {
    margin-bottom: 0;
}

.inquiry-list .table td,
.inquiry-list .table th {
    table-layout: fixed;
    vertical-align: middle;
}

.inquiry-list .modal-dialog {
    max-width: 768px;
}

.inquiry-list .imgInner {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    display: block;
    background-color: #f8f8f8;
}

.inquiry-list .imgInner img {
    position: absolute;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    display: block;
}

.index-product-container .col-padding.col-md-3:nth-child(n+9) {
    display: none;
}

.category-container .row {
    align-items: center;
}


.video-list {
    margin-top: 30px;
}

.video-card {
    height: 100%;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #e7ebf0;
    box-shadow: 0 16px 40px rgba(20, 35, 60, .08);
    transition: .3s ease;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(20, 35, 60, .14);
}

.video-frame {
    background: #111;
    overflow: hidden;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    position: relative;
    padding: 24px 26px 26px;
}

.video-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 26px;
    width: 56px;
    height: 4px;
    border-radius: 99px;
    background: #0b5ed7;
}

.video-info span {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #0b5ed7;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.video-info h3 {
    margin: 0;
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
}

@media (max-width: 991px) {
    .video-info {
        padding: 20px;
    }

    .video-info::before {
        left: 20px;
    }

    .video-info h3 {
        font-size: 18px;
    }
}

.video-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    transition: .3s;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
}

/* 影片區 */
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #000;
    overflow: hidden;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* 內容區 */
.video-info {
    padding: 25px 30px;
    background: #fff;
}

.video-info h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    color: #1f2937;
}

/* 編號 */
.video-info span {
    display: inline-block;
    color: var(--primary-color-100);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: .05em;
}

/* 手機 */
@media (max-width: 768px) {

    .video-frame {
        aspect-ratio: 16 / 9;
    }

    .video-info {
        padding: 20px;
    }

    .video-info h3 {
        font-size: 18px;
    }
}

/* ================================
   Yeh Der Product Detail
   White Industrial Grid Style
================================ */

:root {
    --yd-yellow: #FFCC33;
    --yd-orange: #D27D00;
    --yd-text: #222;
    --yd-muted: #666;
    --yd-bg: #f8f9fb;
    --yd-white: #fff;
    --yd-border: #e8e8e8;
    --yd-shadow: 0 12px 32px rgba(0, 0, 0, .06);
}

/* page */
.page-container {
    position: relative;
    overflow: hidden;
    padding: 45px 0 75px;
    background: var(--yd-bg);
}

.page-container::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(210, 125, 0, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(210, 125, 0, .05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.page-container>.container {
    position: relative;
    z-index: 1;
}

/* side menu */
.side-container {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
}

#sideMenu>li>a {
    position: relative;
    display: block;
    padding: 15px 18px;
    color: #333;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    transition: .3s;
}

#sideMenu>li>a:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #FFCC33;
    transition: .3s;
}

#sideMenu>li>a:hover,
#sideMenu>li.active>a {
    color: #1E3A5F;
    background: #F7FAFC;
}

#sideMenu>li>a:hover:before,
#sideMenu>li.active>a:before {
    width: 4px;
}

#sideMenu .activeS a {
    background-color: #FFCC33;
}

/* breadcrumb */
.breadcrumb-container {
    margin-bottom: 20px;
}

.breadcrumb-container ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-container li,
.breadcrumb-container li a {
    color: #888;
    font-size: 14px;
}

.breadcrumb-container li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #bbb;
}

.breadcrumb-container .active {
    color: var(--yd-orange);
}

/* product main card */
.productDtTopInfo {
    position: relative;
    overflow: hidden;
    padding: 40px;
    background: var(--yd-white);
    border: 1px solid var(--yd-border);
    border-radius: 12px;
    box-shadow: var(--yd-shadow);
}

.productDtTopInfo::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 190px;
    height: 6px;
    background: linear-gradient(90deg, var(--yd-orange), var(--yd-yellow));
}

.productDtTopInfo::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -70px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(rgba(255, 204, 51, .22), transparent 70%);
}

.productDtTopInfo>* {
    position: relative;
    z-index: 1;
}

/* title */
.productDtTopInfo>.content-title {
    margin-bottom: 32px;
}

.productDtTopInfo>.content-title {
    margin: 0;
    color: var(--yd-text);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.25;
    letter-spacing: 1px;
}


/* product image */
.productDtImg {
    position: relative;
    padding: 20px;
    background: var(--yd-white);
    border: 1px solid var(--yd-border);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .07);
}

.productDtGallery {
    position: relative;
}

.productDtGallery::after {
    content: "GEAR";
    position: absolute;
    right: 20px;
    top: 12px;
    color: rgba(210, 125, 0, .06);
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 4px;
    pointer-events: none;
}

.productDtGallery .bigImage {
    overflow: hidden;
    background: var(--yd-white);
    border-radius: 12px;
}

.productDtGallery .bigImage .img-content {
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--yd-white);
}

.productDtGallery .bigImage .img-content img {
    transition: ease-in-out .3s linear;
}

/* .productDtGallery .bigImage .item:hover img {
    transform:translate(-50%,-50%) scale(1.25);
} */

.productDtGallery .bigImage .text-container {
    padding: 14px 18px;
    color: var(--yd-muted);
    font-size: 14px;
    line-height: 1.7;
    border-top: 1px solid #eeeeee;
}

/* thumbnail */
.imgControl {
    display: none;
    margin-top: 14px;
}

.imgControl .item {
    padding: 1px;
}

.imgControl .imgContent a {
    display: block;
    overflow: hidden;
    background: var(--yd-white);
    border: 1px solid #e5e5e5 !important;
    border-radius: 10px !important;
    opacity: .65;
    transition: .25s;
}

.imgControl .imgContent a:hover,
.imgControl .imgContent a.active {
    opacity: 1;
    border-color: var(--yd-orange) !important;
    box-shadow: 0 8px 18px rgba(210, 125, 0, .16);
}

/* inquiry */
.inquiryContent {
    position: sticky;
    padding: 1rem;
    /* top: 100px;
    padding: 30px;
    min-height: 210px;
    background: linear-gradient(135deg, #fff6d8, #fffdf5);
    border: 1px solid #ffd55b;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(210, 125, 0, .12); */
}


.inquiryContent .buttonBlock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--yd-orange), var(--yd-yellow));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(210, 125, 0, .25);
    transition: .25s;
}

.inquiryContent .buttonBlock:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(210, 125, 0, .34);
}

/* description */
.productDtTopInfo>.text-container {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px dashed #000;
    color: var(--yd-text);
    font-size: 16px;
}

.productDtTopInfo>.text-container p {
    margin-bottom: 1em;
    color: #444;
}

.productDtTopInfo>.text-container img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.productDtTopInfo>.text-container table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    background: var(--yd-white);
}

.productDtTopInfo>.text-container th,
.productDtTopInfo>.text-container td {
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    color: #333;
}

.productDtTopInfo>.text-container th {
    background: #f6f7f8;
    color: var(--yd-text);
    font-weight: 700;
    border-left: 4px solid var(--yd-orange);
}

.productDtTopInfo>.text-container tr:nth-child(even) td {
    background: #fffaf0;
}

/* hashtag */
.n3-hash-tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.n3-hash-tag-group a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 14px;
    background: var(--yd-white);
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    color: var(--yd-muted);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: .25s;
}

.n3-hash-tag-group a:hover {
    color: #fff;
    background: var(--yd-orange);
    border-color: var(--yd-orange);
}

/* modal */
#inquiryModal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 16px;
}

#inquiryModal .modal-header {
    color: #fff;
    background: linear-gradient(135deg, var(--yd-orange), var(--yd-yellow));
    border-bottom: 0;
}

#inquiryModal .modal-title {
    font-weight: 700;
}

#inquiryModal .modal-body {
    padding: 30px;
}

#inquiryModal input,
#inquiryModal textarea,
#inquiryModal select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 11px 14px;
}

#inquiryModal input:focus,
#inquiryModal textarea:focus,
#inquiryModal select:focus {
    border-color: var(--yd-orange);
    box-shadow: 0 0 0 3px rgba(210, 125, 0, .14);
    outline: none;
}

.product-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .05);
}

.product-title {
    margin-bottom: 1rem;
    font-size: 24px;
    color: #D27D00;
    text-align: center;
}

.product-image {
    position: relative;
    background: #fafafa;
    border-radius: 15px;
    width: 100%;
    padding-bottom: 37.5%;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    object-fit: contain;
    display: block;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    display: block;
    position: absolute;
}

.product-detail {
    padding-left: 20px;
}

.product-detail h2 {
    font-size: 38px;
    color: #D27D00;
    font-weight: 700;
    margin-bottom: 25px;
}

.category-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 15px;
}

.process-item {
    position: relative;
    padding: 1rem;
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .06);
}

.process-item .row {
    min-height: 420px;
}

.process-image {
    transition: .5s;
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    background: #f7f7f7;
    overflow: hidden;
    border-radius: 1rem;
}

.process-image img {
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    display: block;
    position: absolute;

}

.process-content {
    position: relative;
}

.process-step {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 16px;
    border-radius: 50px;
    background: #FFCC33;
    color: #333;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.process-title {
    color: #D27D00;
    font-size: 34px;
    line-height: 1.35;
    margin-bottom: 24px;
}

.process-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    margin-top: 18px;
    background: #FFCC33;
    border-radius: 50px;
}

.process-content p {
    color: #555;
    font-size: 16px;
    line-height: 2;
    margin-bottom: 12px;
}

.process-content ul {
    padding: 0;
    margin: 0;
}

.process-content li {
    list-style: none;
    position: relative;
    padding: 10px 0 10px 32px;
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    border-bottom: 1px solid #eee;
}

.process-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    color: #D27D00;
    font-weight: 800;
}

.process-content strong {
    color: #222;
}

/* =========================================
   Process 奇偶排列
========================================= */

/* 預設：圖左文右 */
.process-item .row {
    display: flex;
    align-items: center;
}

/* 偶數：圖右文左 */


.news-container ul li {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px dashed #D27D00;
}

.news-container ul li .text-title::first-letter {
    color: #D27D00;
}

@media (min-width:992px) {

    .process-item:nth-child(even) .row {
        flex-direction: row-reverse !important;
    }

    .product-item:nth-child(even) .row {
        flex-direction: row-reverse !important;
    }

}

@media (max-width: 991px) {
    .process-item .row {
        min-height: auto;
    }

    .process-image img {
        min-height: auto;
    }

    .process-content {
        padding: 35px 28px;
    }

    .process-title {
        font-size: 28px;
    }
}

@media (max-width:991px) {

    .product-detail {
        padding-left: 0;
        margin-top: 25px;
    }

    .product-detail h2 {
        font-size: 30px;
    }

}

/* mobile */
@media (max-width: 767px) {
    .page-container {
        padding: 25px 0 55px;
    }

    .productDtTopInfo {
        padding: 22px;
    }

    .productDtTopInfo>.content-title h1 {
        font-size: 28px;
    }

    .productDtImg {
        padding: 12px;
        margin-bottom: 18px;
    }

    .productDtGallery::after {
        font-size: 38px;
    }

    .productDtGallery .bigImage img {
        padding: 14px;
    }

    .inquiryContent {
        position: static;
        min-height: auto;
        padding: 24px;
    }

    .productDtTopInfo>.text-container {
        padding-top: 30px;
        font-size: 15px;
    }

    .productDtTopInfo>.text-container table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.product-application {
    padding: 70px 20px;
    background:
        radial-gradient(circle at top left, rgba(255, 204, 51, 0.18), transparent 35%),
        linear-gradient(135deg, #fffdf6 0%, #f7f7f7 100%);
}

.product-application * {
    box-sizing: border-box;
}

.product-application-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.product-application-heading {
    margin-bottom: 40px;
    text-align: center;
}

.product-application-heading h2 {
    margin: 0 0 12px;
    color: #222;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: 1px;
}

.product-application-heading p {
    margin: 0;
    color: #777;
    font-size: 16px;
    line-height: 1.7;
}

.product-application-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-application-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.product-application-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #ffcc33, #d27d00);
    content: "";
}

.product-application-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* 純 CSS 文件圖示 */
.product-application-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 64px;
    margin-bottom: 24px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(145deg, #f0a000, #d27d00);
    border-radius: 8px 8px 10px 10px;
    box-shadow: 0 8px 18px rgba(210, 125, 0, 0.22);
}

/* 文件右上角折角 */
.product-application-icon::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 17px;
    height: 17px;
    background: #fff4cf;
    border-radius: 0 0 0 5px;
    content: "";
}

.product-application-card h3 {
    margin: 0 0 10px;
    color: #222;
    font-size: 21px;
    font-weight: 700;
}

.product-application-card p {
    flex-grow: 1;
    margin: 0 0 24px;
    color: #777;
    font-size: 14px;
    line-height: 1.7;
}

.product-application-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 14px 48px 14px 18px;
    color: #222;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    background: #ffcc33;
    border-radius: 10px;
    text-align: left;
    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

/* 純 CSS 下載箭頭 */
.product-application-button::before {
    position: absolute;
    top: 50%;
    right: 24px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.25s ease;
}

.product-application-button::after {
    position: absolute;
    top: 50%;
    right: 27px;
    width: 2px;
    height: 12px;
    background: currentColor;
    content: "";
    transform: translateY(-75%);
    transition: transform 0.25s ease;
}

.product-application-button:hover {
    color: #fff;
    background: #d27d00;
}

.product-application-button:hover::before {
    transform: translateY(-30%) rotate(45deg);
}

.product-application-button:hover::after {
    transform: translateY(-35%);
}

@media (max-width: 991px) {
    .product-application-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .product-application {
        padding: 50px 15px;
    }

    .product-application-heading {
        margin-bottom: 30px;
    }

    .product-application-list {
        grid-template-columns: 1fr;
    }

    .product-application-card {
        min-height: auto;
        padding: 26px 22px;
    }
}

.inspection-equipment {
    --equipment-yellow: #d2b633;
    --equipment-dark: #292d33;
}

.inspection-equipment .col-12{
    margin-bottom: 1.5rem;
}

.inspection-equipment-card {
    height: 100%;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inspection-equipment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.inspection-equipment-number {
    padding: 12px 15px;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    background-color: var(--equipment-dark);
}

.inspection-equipment-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 7 / 5;
    background-color: #f5f5f5;
}

.inspection-equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.inspection-equipment-card:hover .inspection-equipment-image img {
    transform: scale(1.06);
}

.inspection-equipment-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    margin: 0;
    padding: 15px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    background-color: var(--equipment-yellow);
}

@media (max-width: 767.98px) {
    .inspection-equipment-number {
        font-size: 21px;
    }

    .inspection-equipment-title {
        min-height: 62px;
        font-size: 18px;
    }
}

@media only screen and (max-width: 1499px) {}

@media only screen and (min-width: 1200px) {}

@media only screen and (max-width: 1199px) {}

@media only screen and (min-width: 992px) {}

@media only screen and (max-width: 991px) {}

@media only screen and (min-width: 768px) {}

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

@media only screen and (max-width: 568px) {}

@media only screen and (max-width: 440px) {}

@media only screen and (max-width: 420px) {}