﻿/* 麵包屑導航 */
.indicator {
    background: white;
    padding: 15px 30px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0px;
    border-left: 4px solid #e67e22;
}

    .indicator a {
        color: #2A2E33;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .indicator a:hover {
            color: #e67e22;
        }

    .indicator .w3ls_head {
        color: #2A2E33;
        font-size: 2rem;
        font-weight: bold;
        margin: 0;
        padding: 0;
        border: none;
    }

/* 主要內容區域 */
section {
    background: white;
    padding: 40px;
    border-radius: 0px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 產品資訊佈局 */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-6,
.col-sm-6,
.col-sm-12,
.col-xs-12 {
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* 產品圖片 */
section img {
    max-width: 100%;
    height: auto;
    border: 3px solid #ddd;
    border-radius: 0px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    padding: 10px;
}

    section img:hover {
        border-color: #e67e22;
        transform: scale(1.02);
        box-shadow: 0 10px 30px rgba(230, 126, 34, 0.2);
    }

/* 產品規格 */
.col-md-12 {
    margin-bottom: 15px;
    padding: 8px 0;
}

.chocolate {
    color: #e67e22 !important;
    font-weight: bold;
}

.bold {
    font-weight: bold;
}

.fa-caret-right {
    margin-right: 8px;
    color: #e67e22;
}

/* 兼容標示 */
h1[style*="rgba(255, 255, 255, 0.2)"] {
    color: #bdc3c7 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 10px;
}

/* 分隔線 */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, #e67e22, transparent);
    margin: 40px 0;
}

/* 標籤選單 */
#seriesul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #e67e22;
}

    #seriesul li {
        font-size: 1rem;
        color: #2A2E33;
        font-weight: bold;
        text-align: center;
        list-style-type: none;
        display: block;
        padding: 12px 30px;
        margin-right: 5px;
        cursor: pointer;
        transition: all 0.3s ease;
        background: #f8f9fa;
        border-radius: 0px;
        border: 2px solid #ddd;
        border-bottom: none;
    }

        #seriesul li:first-child {
            background-color: #e67e22;
            border-color: #e67e22;
        }

        #seriesul li:hover {
            background-color: #d35400;
            color: white;
            border-color: #d35400;
        }

        #seriesul li.active {
            background-color: #e67e22;
            color: white;
            border-color: #e67e22;
        }

/* 內容區域 */
#divpdf,
#div3d {
    background: #f8f9fa;
    border: 2px solid #e67e22;
    border-radius: 0px;
    padding: 40px;
    margin-top: 0;
    min-height: 400px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

    #divpdf a,
    #div3d a {
        color: #e67e22;
        text-decoration: none;
        font-weight: bold;
        font-size: 1.1rem;
        transition: color 0.3s ease;
        display: inline-block;
        padding: 10px 20px;
        border: 2px solid #e67e22;
        border-radius: 0px;
        margin: 10px 0;
    }

        #divpdf a:hover,
        #div3d a:hover {
            background: #e67e22;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
        }

/* PDF 嵌入 */
embed {
    border: 2px solid #ddd;
    border-radius: 0px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 940px;
    height: 725px;
}

/* 3D 模型區域 */
#div3d {
    text-align: center;
}

/* 響應式設計 */
@media (max-width: 768px) {
    section {
        padding: 20px;
    }

    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .indicator {
        padding: 10px 20px;
    }

        .indicator .w3ls_head {
            font-size: 1.5rem;
        }

    #seriesul {
        flex-wrap: wrap;
        justify-content: center;
    }

        #seriesul li {
            margin: 5px;
            padding: 10px 20px;
            font-size: 0.9rem;
        }

    #divpdf,
    #div3d {
        padding: 20px;
        margin-top: 20px;
    }

    embed {
        height: 500px;
    }

    section img {
        max-width: 300px;
        height: auto;
    }
}

@media (max-width: 480px) {

    section {
        padding: 15px;
    }

    .indicator {
        padding: 8px 15px;
    }

        .indicator .w3ls_head {
            font-size: 1.3rem;
        }

    .col-md-12 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    #seriesul li {
        padding: 8px 15px;
        font-size: 0.8rem;
        margin: 3px;
    }

    #divpdf,
    #div3d {
        padding: 15px;
    }

    embed {
        height: 400px;
    }

    section img {
        max-width: 250px;
    }
}

/* 特殊效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* 產品規格項目動畫 */
.col-md-12 {
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 0px;
    margin-bottom: 8px;
}

    .col-md-12:hover {
        background: #f8f9fa;
        transform: translateX(5px);
    }

/* 載入狀態 */
.loading {
    position: relative;
    pointer-events: none;
}

    .loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 30px;
        height: 30px;
        margin: -15px 0 0 -15px;
        border: 3px solid #e67e22;
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

    .tooltip:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        background: #2A2E33;
        color: white;
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 0.8rem;
        white-space: nowrap;
        z-index: 1000;
    }

/* 打印樣式 */
@media print {

    section {
        box-shadow: none;
        border: 2px solid #2A2E33;
    }

    #seriesul {
        display: none;
    }

    #div3d {
        display: none !important;
    }

    embed {
        display: none;
    }

    #divpdf a {
        display: none;
    }
}

/* JavaScript 控制的樣式 */
#div3d {
    display: none;
}

/* 當被 JavaScript 激活時 */
.tab-active {
    background-color: #e67e22 !important;
    color: white !important;
    border-color: #e67e22 !important;
}

/* 確保內容區域正確顯示 */
#divpdf.active,
#div3d.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

/* 規格項目的圖標 */
.fa {
    color: #e67e22;
    margin-right: 8px;
    font-size: 0.9em;
}

/* 優化字體大小 */
body {
    font-size: 16px !important;
}

/* Yes/No 狀態樣式 */
.col-md-12:contains("Yes") {
    color: #27ae60;
}

.col-md-12:contains("No") {
    color: #e74c3c;
}

/* 確保內容完全隱藏/顯示 */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}
