﻿/* ==========================================================================
   Articles 統一樣式表
   適用於所有技術文章與產品設計文章
   ========================================================================== */

/* 文章容器 */
.article-wrapper {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   標題區域
   ========================================================================== */
.header {
    background: #2A2E33;
    color: white;
    padding: 60px 40px;
    position: relative;
}

.article-wrapper h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: -1px;
    color: white;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.3rem;
    color: #e67e22;
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
}
/* ==========================================================================
   上一篇、下一篇按鈕
   ========================================================================== */
.pageBtn-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto ;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    border-bottom: 3px solid #e67e22;
}

    .pageBtn-wrapper a {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        background: white;
        color: #2A2E33;
        padding: 20px 30px;
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border: 2px solid #e67e22;
        box-shadow: 0 4px 15px rgba(230, 126, 34, 0.15);
        position: relative;
        overflow: hidden;
        flex: 1;
        max-width: 480px;
    }

        .pageBtn-wrapper a:hover {
            background: #e67e22;
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
        }

        .pageBtn-wrapper a:active {
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(230, 126, 34, 0.2);
        }

    /* 導航標籤 (上一篇/下一篇) */
    .pageBtn-wrapper .nav-label {
        font-size: 0.9rem;
        font-weight: 600;
        color: #e67e22;
        display: flex;
        align-items: center;
        gap: 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .pageBtn-wrapper a:hover .nav-label {
        color: white;
    }

    /* 文章標題 */
    .pageBtn-wrapper .nav-title {
        font-size: 1.1rem;
        font-weight: bold;
        line-height: 1.4;
        color: #2A2E33;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .pageBtn-wrapper a:hover .nav-title {
        color: white;
    }

    /* 上一篇按鈕 - 向左箭頭 */
    .pageBtn-wrapper .btn-prev .nav-label::before {
        content: '←';
        font-size: 1.2rem;
        font-weight: bold;
    }

    /* 下一篇按鈕 - 向右箭頭 */
    .pageBtn-wrapper .btn-next {
        align-items: flex-end;
        text-align: right;
    }

    .pageBtn-wrapper .btn-next .nav-label::after {
        content: '→';
        font-size: 1.2rem;
        font-weight: bold;
    }

    /* 只有一個按鈕時居中 */
    .pageBtn-wrapper a:only-child {
        margin: 0 auto;
    }

/* 響應式設計 - 導航按鈕 */
@media (max-width: 768px) {
    .pageBtn-wrapper {
        flex-direction: column;
        padding: 30px 15px;
        margin: 40px auto 30px;
    }

        .pageBtn-wrapper a {
            width: 100%;
            max-width: 100%;
        }

        .pageBtn-wrapper .btn-next {
            align-items: flex-start;
            text-align: left;
        }
}

@media (max-width: 480px) {
    .pageBtn-wrapper {
        padding: 25px 10px;
        margin: 30px auto 20px;
    }

        .pageBtn-wrapper a {
            padding: 15px 20px;
        }

        .pageBtn-wrapper .nav-label {
            font-size: 0.85rem;
        }

        .pageBtn-wrapper .nav-title {
            font-size: 1rem;
        }
}
/* ==========================================================================
   內容區域
   ========================================================================== */
.content {
    padding: 60px 40px;
    color: #2A2E33;
}

/* 二級標題 */
.article-wrapper h2 {
    color: #2A2E33;
    font-size: 2rem;
    margin: 50px 0 30px;
    font-weight: bold;
    padding-left: 20px;
    position: relative;
    border-bottom: 3px solid #e67e22;
    padding-bottom: 15px;
}

    .article-wrapper h2::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 80%;
        background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
        border-radius: 0px;
    }

/* 三級標題 */
.article-wrapper h3 {
    color: #2A2E33;
    font-size: 1.4rem;
    margin: 30px 0 15px;
    font-weight: bold;
    border-left: 4px solid #e67e22;
    padding-left: 15px;
}

/* 四級標題 */
.article-wrapper h4 {
    color: #2A2E33;
    font-size: 1.1rem;
    margin: 20px 0 10px;
    font-weight: bold;
}

/* ==========================================================================
   段落與文字
   ========================================================================== */
.content p {
    margin-bottom: 20px;
    text-align: justify;
    line-height: 1.8;
    color: #2A2E33;
    
}

/* 引言文字 */
.intro-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #2A2E33;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 0px;
    border-left: 5px solid #e67e22;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* 引用區塊 */
.quote {
    font-size: 1.3rem;
    font-style: italic;
    color: #2A2E33;
    margin: 40px 0;
    padding: 30px 40px;
    position: relative;
    background: #f8f9fa;
    border-radius: 0px;
    border-left: 6px solid #e67e22;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .quote::before {
        content: '"';
        font-size: 4rem;
        position: absolute;
        left: 15px;
        top: -5px;
        color: #e67e22;
        opacity: 0.3;
        font-weight: bold;
    }

/* 高亮文字 */
.highlight {
    background: linear-gradient(120deg, #ffeaa7 0%, #ffeaa7 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 60%;
    padding: 3px 6px;
    font-weight: bold;
    color: #2A2E33;
}

/* ==========================================================================
   卡片系統 - 通用卡片結構
   ========================================================================== */
.info-card {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    margin: 25px 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    .info-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    .info-card.featured {
        border: 3px solid #e67e22;
    }

.card-header {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

    .card-header.default {
        background: #2A2E33;
    }

    .card-header.primary {
        background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    }

    .card-header.secondary {
        background: linear-gradient(135deg, #5f6368 0%, #80868b 100%);
    }

    .card-header.tertiary {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

.card-name {
    font-size: 1.3rem;
    font-weight: bold;
}

.card-spec {
    font-size: 1.1rem;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

.card-body {
    padding: 25px 30px;
}

/* ==========================================================================
   提示框系統
   ========================================================================== */
/* 重點提示 */
.key-insight {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 30px;
    border-radius: 0px;
    margin: 40px 0;
    border: 2px solid #e67e22;
    box-shadow: 0 5px 20px rgba(230, 126, 34, 0.2);
}

    .key-insight strong {
        color: #d35400;
        font-size: 1.1rem;
    }

/* 優勢標籤 */
.advantage-tag {
    background: #fff3cd;
    border-left: 4px solid #e67e22;
    padding: 15px;
    margin-top: 15px;
}

/* 高亮框 */
.highlight-box {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #e67e22;
    padding: 20px;
    margin: 20px 0;
    font-size: 1.1rem;
}

/* 技術註記 */
.tech-note {
    background: #fff3cd;
    border-left: 4px solid #e67e22;
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
}

/* 過渡區塊 */
.transition-section {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 0px;
    margin: 50px 0;
    border-left: 6px solid #e67e22;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .transition-section h3 {
        border: none;
        padding-left: 0;
        margin-top: 0;
    }

/* ==========================================================================
   列表系統
   ========================================================================== */
/* 應用列表 */
.application-list {
    background: #f8f9fa;
    padding: 15px;
    margin-top: 15px;
    border-radius: 0px;
}

    .application-list ul {
        list-style: none;
        padding: 0;
        margin: 10px 0 0 0;
    }

    .application-list li {
        padding: 5px 0 5px 25px;
        position: relative;
    }

        .application-list li::before {
            content: "▸";
            position: absolute;
            left: 0;
            color: #e67e22;
            font-weight: bold;
        }

/* 優點列表 */
.benefit-list,
.benefit-list ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

    .benefit-list li {
        padding: 8px 0 8px 25px;
        position: relative;
        line-height: 1.6;
    }

        .benefit-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #27ae60;
            font-weight: bold;
        }

/* 挑戰/問題列表 */
.challenge-list {
    counter-reset: challenge-counter;
    margin: 40px 0;
}

.challenge-item {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    padding: 30px;
    margin-bottom: 25px;
    position: relative;
    counter-increment: challenge-counter;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .challenge-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(230, 126, 34, 0.15);
        border-color: #e67e22;
    }

    .challenge-item::before {
        content: counter(challenge-counter);
        position: absolute;
        left: -20px;
        top: 25px;
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        font-size: 1.2rem;
        box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
    }

.challenge-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2A2E33;
    margin-bottom: 20px;
    padding-left: 10px;
}

.challenge-content ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.challenge-content li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
}

    .challenge-content li::before {
        content: "▸";
        position: absolute;
        left: 0;
        color: #e67e22;
        font-weight: bold;
        font-size: 1.2rem;
    }

/* 狀態標示顏色 */
.problem {
    color: #e74c3c;
    font-weight: bold;
}

.practical {
    color: #27ae60;
    font-weight: bold;
}

.perfect {
    color: #f39c12;
    font-weight: bold;
}

.money-icons {
    color: #f39c12;
    font-weight: bold;
    margin-left: 5px;
}

/* ==========================================================================
   網格系統
   ========================================================================== */
/* 考量因素網格 */
.consideration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.consideration-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 0px;
    border-left: 4px solid #e67e22;
    transition: all 0.3s ease;
}

    .consideration-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(230, 126, 34, 0.15);
    }

.consideration-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.consideration-item h4 {
    color: #2A2E33;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.consideration-item p {
    font-size: 1.1rem;
    margin: 0;
}

/* ==========================================================================
   表格
   ========================================================================== */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0px;
    overflow: hidden;
    background: white;
}

.content thead {
    background: #2A2E33;
    color: white;
}

.content th {
    padding: 18px 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    border-right: 1px solid #34495e;
}

    .content th:last-child {
        border-right: none;
    }

.content td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
    border-right: 1px solid #ecf0f1;
}

    .content td:last-child {
        border-right: none;
    }

.content tbody tr {
    background: white;
    transition: all 0.3s ease;
}

    .content tbody tr:nth-child(even) {
        background: #f8f9fa;
    }

    .content tbody tr:hover {
        background: #e8f4fd;
        transform: scale(1.002);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

.order-qty {
    font-weight: bold;
    color: #e67e22;
    background: #fff3cd !important;
}

    .order-qty:hover {
        background: #ffeaa7 !important;
    }

/* 比較表格 */
.comparison-table {
    margin: 20px 0;
    overflow-x: auto;
}

    .comparison-table table {
        width: 100%;
        border-collapse: collapse;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .comparison-table thead {
        background: #2A2E33;
        color: white;
    }

    .comparison-table th {
        padding: 15px;
        text-align: center;
        font-weight: bold;
    }

    .comparison-table td {
        padding: 12px 15px;
        text-align: center;
        border-bottom: 1px solid #ecf0f1;
    }

    .comparison-table tbody tr:nth-child(even) {
        background: #f8f9fa;
    }

    .comparison-table tbody tr:hover {
        background: #e8f4fd;
    }

/* 公差表格（精度、規格等技術表格） */
.tolerance-table {
    margin: 20px 0;
    overflow-x: auto;
}

    .tolerance-table table {
        width: 100%;
        border-collapse: collapse;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border-radius: 8px;
        overflow: hidden;
    }

    .tolerance-table th {
        background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
        color: white;
        padding: 15px;
        text-align: left;
        font-weight: bold;
    }

    .tolerance-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #e0e0e0;
    }

    .tolerance-table tr:nth-child(even) {
        background: #f5f5f5;
    }

    .tolerance-table tr:hover {
        background: #e3f2fd;
    }

/* ==========================================================================
   策略與技術要點
   ========================================================================== */
/* 策略選擇盒 */
.strategy-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 0px;
    margin: 30px 0;
}

.strategy-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border-left: 4px solid #e67e22;
    transition: all 0.3s ease;
}

    .strategy-item:hover {
        transform: translateX(5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.strategy-label {
    background: #e74c3c;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    margin-right: 20px;
    white-space: nowrap;
}

.strategy-solution {
    flex: 1;
    font-size: 1.1rem;
    color: #2A2E33;
}

/* 技術要點盒 */
.technique-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 0px;
    margin: 30px 0;
    border-left: 5px solid #e67e22;
}

    .technique-box h4 {
        color: #2A2E33;
        font-size: 1.2rem;
        margin-bottom: 20px;
        font-weight: bold;
    }

.technique-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.technique-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 0px;
}

.technique-icon {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ==========================================================================
   流程與步驟
   ========================================================================== */
/* 品質控制流程 */
.qc-process {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.qc-step {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    padding: 25px;
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    transition: all 0.3s ease;
}

    .qc-step:hover {
        border-color: #e67e22;
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(230, 126, 34, 0.15);
    }

.qc-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 15px;
}

.qc-step h4 {
    color: #2A2E33;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.qc-step p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.qc-arrow {
    font-size: 2rem;
    color: #e67e22;
    font-weight: bold;
}

.spc-note {
    background: #e8f4fd;
    border-left: 4px solid #3498db;
    padding: 20px;
    margin: 25px 0;
}

/* ==========================================================================
   圖片
   ========================================================================== */
.content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.content a {
    display: inline-block;
}

/* Chart.js Canvas */
.chart-canvas {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    display: block;
}

div > canvas {
    min-height:500px;
}

/* ==========================================================================
   結論區域
   ========================================================================== */
.conclusion {
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    padding: 50px;
    border-radius: 0px;
    margin-top: 60px;
    border-top: 5px solid #e67e22;
}

    .conclusion h2 {
        color: #2A2E33;
        text-align: center;
        margin-bottom: 40px;
        border-bottom: none;
        padding-left: 0;
    }

        .conclusion h2::before {
            display: none;
        }

    .conclusion h3 {
        color: #2A2E33;
        font-size: 1.3rem;
        margin-bottom: 20px;
        border: none;
        padding-left: 0;
    }

.wisdom-box {
    background: white;
    padding: 40px;
    border-radius: 0px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 30px 0;
    border-left: 5px solid #e67e22;
}

.wisdom-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .wisdom-list li {
        padding: 15px 0;
        padding-left: 35px;
        position: relative;
        font-weight: 500;
        line-height: 1.6;
    }

        .wisdom-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #27ae60;
            font-weight: bold;
            font-size: 1.3rem;
        }

.final-thought {
    text-align: center;
    font-size: 1.15rem;
    color: #2A2E33;
    margin-top: 40px;
    padding: 35px;
    background: white;
    border-radius: 0px;
    border: 3px solid #e67e22;
    box-shadow: 0 5px 20px rgba(230, 126, 34, 0.15);
    line-height: 1.8;
}

/* ==========================================================================
   響應式設計
   ========================================================================== */
@media (max-width: 768px) {
    .header {
        padding: 40px 20px;
    }

    .article-wrapper h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .content {
        padding: 40px 20px;
    }

    .article-wrapper h2 {
        font-size: 1.6rem;
        padding-left: 15px;
    }

    .article-wrapper h3 {
        font-size: 1.2rem;
    }

    .consideration-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .qc-process {
        flex-direction: column;
    }

    .qc-arrow {
        transform: rotate(90deg);
    }

    .strategy-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .strategy-label {
        margin-right: 0;
    }

    .comparison-table,
    .content table {
        font-size: 1.1rem;
        display: block;
        overflow-x: auto;
    }

    .challenge-item {
        padding: 20px;
        margin-left: 10px;
    }

        .challenge-item::before {
            left: -15px;
            width: 30px;
            height: 30px;
            font-size: 1.1rem;
        }

    .quote {
        padding: 20px 25px;
        font-size: 1.1rem;
    }

    .intro-text,
    .key-insight,
    .transition-section,
    .conclusion,
    .wisdom-box {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 15px;
    }

    .article-wrapper h1 {
        font-size: 1.8rem;
    }

    .subtitle {

    }

    .content {
        padding: 30px 15px;
    }

    .card-body {
        padding: 20px;
    }

    .consideration-item,
    .technique-box,
    .strategy-box {
        padding: 20px;
    }

    .wisdom-box,
    .final-thought {
        padding: 25px;
    }

    .conclusion {
        padding: 30px 20px;
    }

    .content th,
    .content td {
        padding: 10px 8px;
        min-width: 80px;
    }
}

/* ==========================================================================
   標籤與徽章系統 (v3.0)
   ========================================================================== */
/* 標籤組容器 */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.tag {
    display: inline-block;
    background: #f8f9fa;
    color: #2A2E33;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

    .tag:hover {
        background: #e67e22;
        color: white;
        border-color: #e67e22;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(230, 126, 34, 0.2);
    }

/* 彩色徽章 */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-blue {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-green {
    background: #e8f5e9;
    color: #388e3c;
}

.badge-orange {
    background: #fff3e0;
    color: #e67e22;
}

.badge-red {
    background: #ffebee;
    color: #d32f2f;
}

.badge-purple {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-gray {
    background: #ecf0f1;
    color: #5f6368;
}

/* IT等級專用徽章（CNC加工精度） */
.grade-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

.grade-it7 {
    background: #e3f2fd;
    color: #1565c0;
}

.grade-it8 {
    background: #e8f5e9;
    color: #2e7d32;
}

.grade-it9 {
    background: #fff3e0;
    color: #ef6c00;
}

.grade-it10 {
    background: #fce4ec;
    color: #c2185b;
}

.grade-it11 {
    background: #f3e5f5;
    color: #7b1fa2;
}

.grade-it12 {
    background: #eceff1;
    color: #455a64;
}

/* 成本指示器 */
.cost-indicator {
    font-weight: bold;
    font-size: 1.1em;
}

.cost-low {
    color: #4caf50;
}

.cost-medium {
    color: #ff9800;
}

.cost-high {
    color: #f44336;
}

/* 決策流程容器 */
.decision-flow {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

/* 流程箭頭 */
.flow-arrow {
    text-align: center;
    font-size: 2em;
    color: #667eea;
    margin: 10px 0;
}

/* 比較卡片網格 */
.comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.comparison-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .comparison-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

/* 卡片規格項目 */
.card-spec {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

    .card-spec:last-child {
        border-bottom: none;
    }

.spec-label {
    font-weight: bold;
    color: #7f8c8d;
    font-size: 0.9em;
}

.spec-value {
    color: #2c3e50;
    font-size: 1.1em;
    margin-top: 5px;
}

/* 案例比較容器 */
.case-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.case-option {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

    .case-option h4 {
        color: white;
        margin-top: 0;
        margin-bottom: 15px;
    }

.case-result {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
    font-size: 1.2em;
}

/* 警告提示框 */
.alert-box {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
}

    .alert-box strong {
        color: #856404;
        display: block;
        margin-bottom: 10px;
        font-size: 1.1em;
    }

/* 產業指南網格 */
.industry-guide {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.industry-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.industry-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.industry-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #2c3e50;
}

.industry-tolerance {
    font-size: 1.3em;
    color: #667eea;
    font-weight: bold;
}

/* 術語表專用樣式 */
.consideration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.consideration-item {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

    .consideration-item h4 {
        margin-top: 10px;
        color: #1976d2;
    }

.consideration-icon {
    font-size: 2em;
}

/* 模具鋼材卡片（MoldSteelSelectionGuide 專用） */
.steel-card {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.steel-header {
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

    .steel-header.p20 {
        background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
    }

    .steel-header.skd61 {
        background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    }

    .steel-header.stavax {
        background: linear-gradient(135deg, #2196f3 0%, #64b5f6 100%);
    }

.steel-name {
    font-size: 1.2em;
}

.steel-hardness {
    background: rgba(255,255,255,0.3);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.95em;
}

.steel-body {
    padding: 20px;
    background: white;
}

/* 優勢與警告標籤 */
.advantage-tag, .warning-tag {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
}

/* 挑戰項目卡片 */
.challenge-item {
    margin: 15px 0;
    border-radius: 8px;
    /*overflow: hidden;*/
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.challenge-title {
    background: #f44336;
    color: white;
    padding: 12px 20px;
    font-weight: bold;
}

.challenge-content {
    background: #ffebee;
    padding: 15px 20px;
}

    .challenge-content ul {
        margin: 10px 0;
        padding-left: 20px;
    }

    .challenge-content li {
        margin: 8px 0;
    }

/* DFM 檢查清單專用樣式（PlasticProductDFMChecklist） */
    .checklist-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.checklist-category {
    margin-bottom: 40px;
}

.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-icon {
    font-size: 2em;
}

.category-title {
    font-size: 1.3em;
    font-weight: bold;
    margin: 0;
}

.checklist-item {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #e0e0e0;
    transition: all 0.3s ease;
}

    .checklist-item:hover {
        border-left-color: #667eea;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
        transform: translateX(5px);
    }

.item-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 10px;
}

.item-checkbox {
    font-size: 1.5em;
    color: #667eea;
    margin-top: 2px;
}

.item-content {
    flex: 1;
}

.item-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.item-standard {
    background: #e3f2fd;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #1565c0;
}

.item-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.item-warning {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 0.95em;
}

.item-tip {
    background: #e8f5e9;
    border-left: 3px solid #4caf50;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 4px;
    font-size: 0.95em;
}

/* 紅綠燈評分系統 */
.traffic-light-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.traffic-light-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

    .traffic-light-card:hover {
        transform: translateY(-5px);
    }

.traffic-light {
    font-size: 3em;
    margin-bottom: 15px;
}

.light-label {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.light-green { color: #4caf50; }
.light-yellow { color: #ffc107; }
.light-red { color: #f44336; }

/* 比較網格（好vs壞設計） */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.comparison-bad {
    background: #ffebee;
    border-left: 5px solid #f44336;
}

.comparison-good {
    background: #e8f5e9;
    border-left: 5px solid #4caf50;
}

.comparison-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-icon {
    font-size: 1.5em;
}

/* 成本分析框 */
.cost-breakdown {
    background: #fff3e0;
    border-left: 5px solid #ff9800;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ffe0b2;
}

    .cost-item:last-child {
        border-bottom: none;
        font-weight: bold;
        font-size: 1.1em;
        color: #e65100;
    }

/* 響應式設計 */
@media (max-width: 768px) {
    .case-comparison {
        grid-template-columns: 1fr;
    }

    .comparison-cards {
        grid-template-columns: 1fr;
    }

    .industry-guide {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .category-header {
        padding: 12px 20px;
    }

    .category-icon {
        font-size: 1.5em;
    }

    .category-title {
        font-size: 1.1em;
    }
}

/* ==========================================================================
   引述與推薦系統 (v3.0)
   ========================================================================== */
/* 客戶推薦語 */
.testimonial {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .testimonial:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    }

.testimonial-header {
    margin-bottom: 20px;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
}

.star {
    color: #ddd;
    font-size: 1.5rem;
}

    .star.filled {
        color: #f39c12;
    }

    .star.half {
        background: linear-gradient(90deg, #f39c12 50%, #ddd 50%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2A2E33;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-footer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 20px;
    border-top: 2px solid #ecf0f1;
}

    .testimonial-footer strong {
        font-size: 1.1rem;
        color: #2A2E33;
    }

.testimonial-title {
    color: #666;
    font-size: 0.95rem;
}

.testimonial-company {
    color: #e67e22;
    font-weight: 600;
    font-size: 0.95rem;
}

/* 專家引述 */
.expert-quote {
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    border-left: 5px solid #e67e22;
    border-radius: 0px;
    padding: 30px;
    margin: 40px 0;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.2;
}

.quote-content {
    margin-bottom: 25px;
}

    .quote-content p {
        font-size: 1.15rem;
        line-height: 1.8;
        color: #2A2E33;
        font-style: italic;
    }

.expert-info {
    padding-top: 20px;
    border-top: 2px solid rgba(0,0,0,0.1);
}

.expert-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2A2E33;
    margin-bottom: 5px;
}

.expert-title {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 3px;
}

.expert-credential {
    font-size: 0.9rem;
    color: #e67e22;
    font-weight: 600;
}

/* ==========================================================================
   下載與資源系統 (v3.0)
   ========================================================================== */
/* 文件下載卡片 */
.download-card {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    padding: 25px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .download-card:hover {
        border-color: #e67e22;
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(230, 126, 34, 0.15);
    }

.download-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

    .download-info h4 {
        margin: 0 0 10px 0;
        color: #2A2E33;
        font-size: 1.2rem;
    }

.download-description {
    color: #666;
    margin: 0 0 10px 0;
    font-size: 0.95rem;
}

.download-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.file-format,
.file-size {
    font-size: 0.85rem;
    padding: 4px 12px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
}

.download-button {
    padding: 12px 30px;
    background: #e67e22;
    color: white;
    text-decoration: none;
    border-radius: 0px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

    .download-button:hover {
        background: #d35400;
        transform: scale(1.05);
    }

/* 下載列表 */
.download-list {
    background: #f8f9fa;
    border-radius: 0px;
    padding: 30px;
    margin: 30px 0;
}

    .download-list h3 {
        margin-top: 0;
        margin-bottom: 20px;
        border: none;
        padding-left: 0;
    }

.file-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    margin-bottom: 10px;
    border-radius: 0px;
    transition: all 0.3s ease;
}

    .file-item:hover {
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.file-icon {
    font-size: 1.8rem;
}

.file-name {
    flex: 1;
    font-weight: 600;
    color: #2A2E33;
}

.file-meta {
    color: #666;
    font-size: 0.9rem;
}

.file-download {
    padding: 8px 20px;
    background: #e67e22;
    color: white;
    text-decoration: none;
    border-radius: 0px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

    .file-download:hover {
        background: #d35400;
    }

/* 相關文章卡片 */
.related-articles {
    margin: 50px 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 0px;
}

    .related-articles h3 {
        margin-top: 0;
        margin-bottom: 30px;
        text-align: center;
        border: none;
        padding-left: 0;
    }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.article-card {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    padding: 25px;
    text-decoration: none;
    color: #2A2E33;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .article-card:hover {
        border-color: #e67e22;
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(230, 126, 34, 0.15);
    }

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background: #e67e22;
    color: white;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    align-self: flex-start;
}

.article-card h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #2A2E33;
}

.article-card p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.read-more {
    color: #e67e22;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

/* 外部資源連結 */
.resources-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 0px;
}

    .resources-section h3 {
        margin-top: 0;
        margin-bottom: 20px;
        border: none;
        padding-left: 0;
    }

.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-item {
    margin-bottom: 15px;
}

    .resource-item a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 15px;
        background: white;
        border-radius: 0px;
        color: #2A2E33;
        text-decoration: none;
        transition: all 0.3s ease;
        border-left: 3px solid #e67e22;
    }

        .resource-item a:hover {
            background: #e67e22;
            color: white;
            transform: translateX(5px);
        }

            .resource-item a:hover .resource-type {
                color: white;
            }

.resource-icon {
    font-size: 1.5rem;
}

.resource-type {
    margin-left: auto;
    font-size: 0.85rem;
    color: #666;
    padding: 4px 12px;
    background: #f8f9fa;
    border-radius: 12px;
}
/* ==========================================================================
   Articles CSS v3.0 新增樣式補充
   此文件包含所有 v3.0 新增元素的樣式
   請將此內容合併到 articles.css 中
   ========================================================================== */

/* ==========================================================================
   時間線與流程系統 (v3.0)
   ========================================================================== */
/* 時間軸 */
.timeline-container {
    position: relative;
    padding: 40px 0;
    margin: 40px 0;
}

    .timeline-container::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(180deg, #e67e22 0%, #d35400 100%);
        transform: translateX(-50%);
    }

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.timeline-marker {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(230, 126, 34, 0.4);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    padding: 25px;
    width: calc(50% - 80px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .timeline-content:hover {
        border-color: #e67e22;
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(230, 126, 34, 0.15);
    }

    .timeline-content h4 {
        margin: 0 0 15px 0;
        color: #2A2E33;
        font-size: 1.2rem;
    }

    .timeline-content p {
        margin: 0;
        color: #666;
        line-height: 1.6;
    }

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

/* 橫向流程圖 */
.flow-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.flow-step {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    padding: 25px;
    text-align: center;
    flex: 1;
    min-width: 180px;
    max-width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .flow-step:hover {
        border-color: #e67e22;
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(230, 126, 34, 0.15);
    }

.flow-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.flow-step h4 {
    margin: 0 0 10px 0;
    color: #2A2E33;
    font-size: 1.1rem;
}

.flow-step p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

.flow-arrow {
    font-size: 2rem;
    color: #e67e22;
    font-weight: bold;
    flex-shrink: 0;
}

/* 垂直步驟指南 */
.step-guide {
    margin: 40px 0;
}

.step-item {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

.step-content {
    flex: 1;
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .step-content h4 {
        margin: 0 0 15px 0;
        color: #2A2E33;
        font-size: 1.2rem;
    }

    .step-content p {
        margin: 0 0 15px 0;
        color: #666;
        line-height: 1.6;
    }

    .step-content img {
        max-width: 100%;
        height: auto;
        margin-top: 15px;
        border-radius: 0px;
    }

.step-connector {
    position: absolute;
    left: 29px;
    top: 60px;
    bottom: -40px;
    width: 2px;
    background: linear-gradient(180deg, #e67e22 0%, #d35400 100%);
}

.step-item:last-child .step-connector {
    display: none;
}

/* ==========================================================================
   對比與比較系統 (v3.0)
   ========================================================================== */
/* 並排對比框 */
.compare-container {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    align-items: stretch;
}

/* 支援 compare-section 別名 */
.compare-section {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    align-items: stretch;
}

.compare-option {
    flex: 1;
    background: white;
    border: 3px solid #ecf0f1;
    border-radius: 0px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* 支援 compare-item 別名 */
.compare-item {
    flex: 1;
    background: white;
    border: 3px solid #ecf0f1;
    border-radius: 0px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .compare-option:hover,
    .compare-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

/* compare-label 樣式 */
.compare-label {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 5px;
    color: white;
}

    .compare-label.problem {
        background: #e74c3c;
    }

    .compare-label.solution {
        background: #27ae60;
    }

/* compare-content 樣式 */
.compare-content {
    margin-top: 15px;
}

    .compare-content p {
        margin-bottom: 10px;
    }

    .compare-content ul {
        margin-top: 10px;
        padding-left: 20px;
    }

/* compare-item left/right 特殊樣式 */
.compare-item.left {
    border-color: #e74c3c;
}

.compare-item.right {
    border-color: #27ae60;
}

.option-a {
    border-color: #27ae60;
}

    .option-a:hover {
        border-color: #229954;
    }

.option-b {
    border-color: #e67e22;
}

    .option-b:hover {
        border-color: #d35400;
    }

.compare-option h3 {
    margin: 0 0 25px 0;
    font-size: 1.5rem;
    padding-left: 0;
    border: none;
}

.pros,
.cons {
    margin-bottom: 20px;
    list-style: none;
}

    .pros h4,
    .cons h4 {
        margin: 0 0 15px 0;
        font-size: 1.1rem;
    }

    .pros h4 {
        color: #27ae60;
    }

    .cons h4 {
        color: #e74c3c;
    }

    .pros ul,
    .cons ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .pros li,
    .cons li {
        padding: 8px 0 8px 25px;
        position: relative;
        line-height: 1.6;
    }

    .pros li::before {
        content: "✓";
        position: absolute;
        left: 0;
        color: #27ae60;
        font-weight: bold;
        font-size: 1.2rem;
    }

    .cons li::before {
        content: "✗";
        position: absolute;
        left: 0;
        color: #e74c3c;
        font-weight: bold;
        font-size: 1.2rem;
    }

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #2A2E33;
    padding: 0 10px;
}

/* 優缺點卡片 */
.pros-cons-card {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    margin: 30px 0;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.pros-cons-header {
    background: #2A2E33;
    color: white;
    padding: 20px 30px;
    font-size: 1.3rem;
    font-weight: bold;
}

.pros-cons-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.pros-section,
.cons-section {
    padding: 30px;
}

.pros-section {
    border-right: 2px solid #ecf0f1;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.pros-header {
    color: #27ae60;
}

.cons-header {
    color: #e74c3c;
}

    .section-header .icon {
        font-size: 1.5rem;
        font-weight: bold;
    }

    .section-header h4 {
        margin: 0;
        font-size: 1.2rem;
    }

.pros-section ul,
.cons-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-section li,
.cons-section li {
    padding: 10px 0 10px 30px;
    position: relative;
    line-height: 1.6;
}

.pros-section li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.3rem;
}

.cons-section li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.3rem;
}

/* 前後對照 */
.before-after-container {
    margin: 40px 0;
}

    .before-after-container h3 {
        text-align: center;
        margin-bottom: 30px;
        border: none;
        padding-left: 0;
    }

.before-after-content {
    display: flex;
    gap: 30px;
    align-items: center;
}

.before-section,
.after-section {
    flex: 1;
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.ba-label {
    display: inline-block;
    padding: 8px 20px;
    background: #f8f9fa;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.before-section .ba-label {
    background: #ffebee;
    color: #e74c3c;
}

.after-section .ba-label {
    background: #e8f5e9;
    color: #27ae60;
}

.before-after-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 0px;
}

.before-after-content h4 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.problem-list,
.improvement-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.problem-list li,
.improvement-list li {
    padding: 8px 0 8px 25px;
    position: relative;
}

.problem-list li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

.improvement-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.ba-arrow {
    font-size: 3rem;
    color: #e67e22;
    font-weight: bold;
}

/* ==========================================================================
   互動元素系統 (v3.0)
   ========================================================================== */
/* 手風琴 */
.accordion {
    margin: 30px 0;
}

.accordion-item {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.accordion-header {
    /*display: flex;*/
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

    .accordion-header:hover {
        background: #e67e22;
        color: white;
    }

    .accordion-header h4 {
        margin: 0;
        font-size: 1.1rem;
    }

.accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 20px 25px;
    max-height: 5000px; /* 增加到 5000px 以容納較長的內容 */
}

/* 標籤頁系統 */
.tabs-container {
    margin: 40px 0;
}

.tabs-nav {
    display: flex;
    gap: 10px;
    border-bottom: 3px solid #ecf0f1;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 15px 30px;
    background: #f8f9fa;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    top: 3px;
}

    .tab-button:hover {
        background: #e67e22;
        color: white;
    }

    .tab-button.active {
        background: white;
        color: #e67e22;
        border-bottom-color: #e67e22;
    }

.tab-content {
    display: none;
    padding: 30px;
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .tab-content.active {
        display: block;
    }

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 2px dotted #e67e22;
    cursor: help;
    color: #e67e22;
    font-weight: 600;
}

.tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #2A2E33;
    color: white;
    text-align: center;
    border-radius: 0px;
    padding: 12px 15px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: normal;
}

    .tooltip-text::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -8px;
        border-width: 8px;
        border-style: solid;
        border-color: #2A2E33 transparent transparent transparent;
    }

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ==========================================================================
   數據展示系統 (v3.0)
   ========================================================================== */
/* 統計卡片組 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.stat-card {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }

/* 統計數據網格佈局（用於多個統計卡片） */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

/* 統計卡片內部元素 */
.stat-label {
    font-size: 0.95em;
    opacity: 0.95;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    font-size: 1.6em;
    font-weight: bold;
    margin: 10px 0;
}

.stat-desc {
    font-size: 0.9em;
    opacity: 0.9;
    line-height: 1.5;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2A2E33;
    margin-bottom: 10px;
}

.stat-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #2A2E33;
}

.stat-card p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.stat-blue {
    border-color: #3498db;
}

    .stat-blue:hover {
        border-color: #2980b9;
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    }

.stat-orange {
    border-color: #e67e22;
}

    .stat-orange:hover {
        border-color: #d35400;
        background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    }

.stat-green {
    border-color: #27ae60;
}

    .stat-green:hover {
        border-color: #229954;
        background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    }

/* 進度指示器 */
.progress-item {
    margin: 25px 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2A2E33;
}

.progress-value {
    color: #e67e22;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #ecf0f1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e67e22 0%, #d35400 100%);
    border-radius: 15px;
    transition: width 1s ease;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.4);
}

.progress-green {
    background: linear-gradient(90deg, #27ae60 0%, #229954 100%);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4);
}

.progress-blue {
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
}

/* 數據儀表板 */
.metrics-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 0px;
}

.metric-card,
.metric {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* Dashboard header 樣式 */
.dashboard-header {
    grid-column: 1 / -1;
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    padding: 15px;
    background: white;
    border-left: 5px solid #e67e22;
    margin-bottom: 10px;
}

/* Metric 顏色變化 */
.metric.blue,
.metric-card.blue {
    border-left: 5px solid #3498db;
}

.metric.green,
.metric-card.green {
    border-left: 5px solid #27ae60;
}

.metric.orange,
.metric-card.orange {
    border-left: 5px solid #e67e22;
}

.metric.purple,
.metric-card.purple {
    border-left: 5px solid #9b59b6;
}

.metric.teal,
.metric-card.teal {
    border-left: 5px solid #1abc9c;
}

.metric.primary,
.metric-card.primary {
    border-left: 5px solid #2c3e50;
}

/* Featured metric 特殊樣式 */
.metric.featured,
.metric-card.featured {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
    border: 3px solid #3498db;
}

/* Highlight metric 特殊樣式 */
.metric.highlight,
.metric-card.highlight {
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    transform: scale(1.05);
}

/* metric-number 樣式 */
.metric-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 10px;
}

/* metric-label 樣式 */
.metric-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* metric-description 樣式 */
.metric-description {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.6;
}

/* metric-highlight 樣式 */
.metric-highlight {
    display: inline-block;
    background: #fff3cd;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
    color: #856404;
}

    .metric-card:hover,
    .metric:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }

/* 避免 featured 和 highlight 的 hover 再次縮放 */
    .metric.featured:hover,
    .metric.highlight:hover {
        transform: scale(1.05) translateY(-5px);
    }

.metric-card h4 {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
    color: #2A2E33;
    margin-bottom: 10px;
}

.metric-unit {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

.metric-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.trend-up {
    color: #27ae60;
}

.trend-down {
    color: #e74c3c;
}

.trend-icon {
    font-size: 1.2rem;
}

.metric-large {
    grid-column: span 2;
}

    .metric-large .metric-value {
        font-size: 2.8rem;
    }

/* ==========================================================================
   特殊內容區塊 (v3.0)
   ========================================================================== */
/* 案例研究 */
.case-study {
    background: white;
    border: 3px solid #e67e22;
    border-radius: 0px;
    margin: 50px 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.2);
}

.case-header {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    padding: 30px;
}

    .case-header h3 {
        margin: 0 0 15px 0;
        font-size: 1.5rem;
        border: none;
        padding-left: 0;
        color: white;
    }

.case-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.case-client,
.case-tag {
    font-size: 0.95rem;
    padding: 6px 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
}

.case-content {
    padding: 40px;
}

.case-section {
    margin-bottom: 35px;
}

    .case-section h4 {
        margin: 0 0 15px 0;
        font-size: 1.2rem;
        color: #2A2E33;
        padding-bottom: 10px;
        border-bottom: 2px solid #ecf0f1;
    }

.challenge-section h4 {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.solution-section h4 {
    color: #3498db;
    border-bottom-color: #3498db;
}

.result-section h4 {
    color: #27ae60;
    border-bottom-color: #27ae60;
}

.result-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .result-list li {
        padding: 10px 0 10px 30px;
        position: relative;
        font-weight: 500;
        color: #27ae60;
    }

        .result-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            font-size: 1.3rem;
            font-weight: bold;
        }

/* FAQ 區塊 */
.faq-section {
    margin: 40px 0;
}

.faq-item {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    .faq-item:hover {
        border-color: #e67e22;
        box-shadow: 0 8px 25px rgba(230, 126, 34, 0.15);
    }

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e67e22;
    flex-shrink: 0;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.15rem;
    color: #2A2E33;
}

.faq-answer {
    /*display: flex;*/
    align-items: flex-start;
    gap: 15px;
}

    .faq-answer ul li{
        list-style:none;
    }

    .faq-content {
        flex: 1;
    }

    .faq-content p {
        margin: 0 0 15px 0;
        line-height: 1.7;
    }

    .faq-content ul {
        list-style: none;
        padding: 0;
        margin: 0 0 15px 0;
    }

    .faq-content li {
        padding: 8px 0 8px 25px;
        position: relative;
    }

        .faq-content li::before {
            content: "▸";
            position: absolute;
            left: 0;
            color: #e67e22;
            font-weight: bold;
        }

.faq-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 警告/注意事項框 */
.alert {
    /*display: flex;*/
    gap: 15px;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 0px;
    border-left: 5px solid;
}

.alert-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
    line-height: 1.6;
}

    .alert-content strong {
        display: block;
        margin-bottom: 5px;
        font-size: 1.05rem;
    }

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

    .alert-warning .alert-icon {
        color: #ffc107;
    }

.alert-danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

    .alert-danger .alert-icon {
        color: #dc3545;
    }

.alert-info {
    background: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

    .alert-info .alert-icon {
        color: #17a2b8;
    }

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

    .alert-success .alert-icon {
        color: #28a745;
    }

/* ==========================================================================
   排版控制系統 (v3.0)
   ========================================================================== */
    /* 分欄佈局 */
    .columns-layout {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.column {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    padding: 25px;
}

/* 分隔線樣式 */
.divider {
    border: none;
    margin: 40px 0;
    height: 2px;
}

.divider-solid {
    background: #ecf0f1;
}

.divider-dashed {
    background: repeating-linear-gradient( 90deg, #ecf0f1 0px, #ecf0f1 10px, transparent 10px, transparent 20px );
    height: 2px;
}

.divider-dotted {
    background: repeating-linear-gradient( 90deg, #ecf0f1 0px, #ecf0f1 5px, transparent 5px, transparent 10px );
    height: 2px;
}

.divider-gradient {
    background: linear-gradient(90deg, transparent 0%, #e67e22 50%, transparent 100%);
    height: 3px;
}

.divider-wave {
    background: url("data:image/svg+xml,%3Csvg width='100%25' height='8px' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,4 Q10,0 20,4 T40,4 T60,4 T80,4 T100,4' stroke='%23e67e22' fill='none' stroke-width='2'/%3E%3C/svg%3E") repeat-x;
    height: 8px;
}

/* 顏色/背景強調區塊 */
.highlight-section {
    padding: 40px;
    margin: 40px 0;
    border-radius: 0px;
    border-left: 5px solid;
}

.bg-blue {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
}

.bg-orange {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #e67e22;
}

.bg-green {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #4caf50;
}

.bg-purple {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-color: #9c27b0;
}

.bg-gray {
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    border-color: #95a5a6;
}

.bg-light {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: #dee2e6;
}

/* 文字框/邊框區塊 */
.text-box {
    padding: 25px;
    margin: 25px 0;
    border-radius: 0px;
}

.text-box-border {
    border: 2px solid #ecf0f1;
    background: white;
}

.text-box-shadow {
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.text-box-accent {
    border: 3px solid #e67e22;
    background: white;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.15);
}

.text-box-minimal {
    border-left: 4px solid #e67e22;
    background: #f8f9fa;
    padding-left: 20px;
}

/* 圖文混排 */
.media-text {
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 40px 0;
}

.media-text-left {
    flex-direction: row;
}

.media-text-right {
    flex-direction: row-reverse;
}

.media-text-top {
    flex-direction: column;
}

.media-text img {
    max-width: 400px;
    height: auto;
    border-radius: 0px;
}

.media-text-content {
    flex: 1;
}

/* ==========================================================================
   進階多媒體系統 (v3.0)
   ========================================================================== */
/* 音訊播放器 */
.audio-player {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .audio-player h4 {
        margin: 0 0 10px 0;
        color: #2A2E33;
    }

.audio-description {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
}

.audio-player audio {
    width: 100%;
}

/* PDF 預覽 */
.pdf-embed {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .pdf-embed h4 {
        margin: 0 0 20px 0;
        color: #2A2E33;
    }

    .pdf-embed iframe {
        border: 1px solid #ecf0f1;
        border-radius: 0px;
    }

/* 影片嵌入 */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 30px 0;
    border-radius: 0px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

    .video-container iframe,
    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

/* 圖片輪播 */
.carousel-container {
    margin: 40px 0;
    overflow: hidden;
    border-radius: 0px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

    .carousel-slide img {
        width: 100%;
        height: auto;
        display: block;
    }

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 20px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.carousel-btn {
    padding: 10px 20px;
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

    .carousel-btn:hover {
        background: #d35400;
    }

/* 圖片網格 */
.image-grid {
    display: grid;
    gap: 20px;
    margin: 40px 0;
}

.image-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.image-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.image-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .image-grid img:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

/* 圖片對比滑桿 */
.image-slider-container {
    margin: 40px 0;
}

    .image-slider-container h3 {
        text-align: center;
        margin-bottom: 30px;
        border: none;
        padding-left: 0;
    }

.image-slider {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: 0px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.slider-images {
    position: relative;
    width: 100%;
    height: 500px;
}

.slider-after {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-before {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
}

    .slider-before img {
        width: 200%;
        height: 100%;
        object-fit: cover;
    }

.slider-control {
    width: 100%;
    margin-top: 20px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-weight: 600;
}

.label-before {
    color: #e74c3c;
}

.label-after {
    color: #27ae60;
}

/* ==========================================================================
   商業元素系統 (v3.0)
   ========================================================================== */
/* 價格方案表 */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.pricing-plan {
    background: white;
    border: 3px solid #ecf0f1;
    border-radius: 0px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

    .pricing-plan:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }

    .pricing-plan.featured {
        border-color: #e67e22;
        border-width: 4px;
        transform: scale(1.05);
        box-shadow: 0 10px 40px rgba(230, 126, 34, 0.25);
    }

        .pricing-plan.featured:hover {
            transform: scale(1.08) translateY(-10px);
        }

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #e67e22;
    color: white;
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.plan-header h3 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    color: #2A2E33;
    border: none;
    padding-left: 0;
}

.plan-price {
    margin-bottom: 30px;
}

.price-amount {
    font-size: 3rem;
    font-weight: bold;
    color: #e67e22;
}

.price-unit {
    font-size: 1.2rem;
    color: #666;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

    .plan-features li {
        padding: 12px 0 12px 30px;
        position: relative;
        border-bottom: 1px solid #ecf0f1;
    }

        .plan-features li:last-child {
            border-bottom: none;
        }

        .plan-features li::before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #27ae60;
            font-weight: bold;
            font-size: 1.3rem;
        }

/* 規格對照表 */
.spec-table {
    margin: 40px 0;
}

    .spec-table h3 {
        margin-bottom: 25px;
        text-align: center;
        border: none;
        padding-left: 0;
    }

.specification-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
}

    .specification-table thead {
        background: #2A2E33;
        color: white;
    }

    .specification-table th {
        padding: 20px 15px;
        text-align: center;
        font-weight: bold;
        font-size: 1.1rem;
        border-right: 1px solid #34495e;
    }

        .specification-table th:first-child {
            text-align: left;
        }

        .specification-table th:last-child {
            border-right: none;
        }

    .specification-table td {
        padding: 18px 15px;
        text-align: center;
        border-bottom: 1px solid #ecf0f1;
        border-right: 1px solid #ecf0f1;
    }

        .specification-table td:first-child {
            text-align: left;
            background: #f8f9fa;
            font-weight: bold;
        }

        .specification-table td:last-child {
            border-right: none;
        }

    .specification-table tbody tr:hover {
        background: #e8f4fd;
    }

.rating {
    color: #f39c12;
    font-size: 1.1rem;
}

/* 評分/星級顯示 */
.rating-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.rating-label {
    font-weight: 600;
    color: #2A2E33;
    min-width: 120px;
}

.rating-stars {
    display: flex;
    gap: 3px;
}

.rating-value {
    color: #666;
    font-size: 0.95rem;
    margin-left: 10px;
}

/* 認證/獎項展示 */
.certifications-section {
    margin: 50px 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 0px;
}

    .certifications-section h3 {
        text-align: center;
        margin-bottom: 40px;
        border: none;
        padding-left: 0;
    }

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.cert-item {
    background: white;
    border: 2px solid #ecf0f1;
    border-radius: 0px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .cert-item:hover {
        transform: translateY(-5px);
        border-color: #e67e22;
        box-shadow: 0 10px 25px rgba(230, 126, 34, 0.15);
    }

    .cert-item img {
        max-width: 120px;
        height: auto;
        margin-bottom: 20px;
    }

    .cert-item h4 {
        margin: 0 0 10px 0;
        font-size: 1.1rem;
        color: #2A2E33;
    }

    .cert-item p {
        margin: 0 0 15px 0;
        color: #666;
        font-size: 0.95rem;
    }

.cert-year {
    display: inline-block;
    padding: 5px 15px;
    background: #e67e22;
    color: white;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* ==========================================================================
   程式碼與技術元素 (v3.0)
   ========================================================================== */
/* 程式碼區塊 */
.code-block {
    margin: 30px 0;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2A2E33;
    padding: 12px 20px;
}

.code-language {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.copy-btn {
    padding: 6px 15px;
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .copy-btn:hover {
        background: #d35400;
    }

.code-block pre {
    margin: 0;
    padding: 25px;
    background: #1e1e1e;
    overflow-x: auto;
}

    .code-block pre code {
        color: #d4d4d4;
        font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
        font-size: 0.95rem;
        line-height: 1.6;
    }

/* 行內程式碼 */
code {
    background: #f8f9fa;
    color: #e74c3c;
    padding: 3px 8px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

/* 終端機指令 */
.terminal {
    background: #1e1e1e;
    color: #00ff00;
    padding: 25px;
    margin: 30px 0;
    border-radius: 0px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    position: relative;
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-red {
    background: #ff5f56;
}

.btn-yellow {
    background: #ffbd2e;
}

.btn-green {
    background: #27c93f;
}

.terminal pre {
    margin: 0;
    color: #00ff00;
    font-size: 0.95rem;
}

.command-line {
    display: block;
    margin-bottom: 10px;
}

.prompt {
    color: #3498db;
    margin-right: 8px;
}

/* ==========================================================================
   裝置專用元素 (v3.0)
   ========================================================================== */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

.no-print {
    display: block;
}

.print-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

@media print {
    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }
}

/* ==========================================================================
   動畫效果 (v3.0)
   ========================================================================== */
/* 基礎動畫類別 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.animate-fadeIn {
    animation-name: fadeIn;
}

.animate-fadeInUp {
    animation-name: fadeInUp;
}

.animate-fadeInDown {
    animation-name: fadeInDown;
}

.animate-slideInLeft {
    animation-name: slideInLeft;
}

.animate-slideInRight {
    animation-name: slideInRight;
}

.animate-zoomIn {
    animation-name: zoomIn;
}

/* 滾動觸發動畫 */
.scroll-animate {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .scroll-animate.active {
        opacity: 1;
    }

/* ==========================================================================
   響應式設計增強 - v3.0新元素 (平板)
   ========================================================================== */
@media (max-width: 768px) {
    /* 時間線 */
    .timeline-container::before {
        left: 30px;
    }

    .timeline-marker {
        left: 30px;
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }

    .timeline-content {
        width: calc(100% - 100px);
        margin-left: 100px !important;
        margin-right: 0 !important;
    }

    /* 流程圖 */
    .flow-chart {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .flow-step {
        max-width: 100%;
    }

    /* 對比系統 */
    .compare-container {
        flex-direction: column;
    }

    .vs-divider {
        transform: rotate(90deg);
        padding: 10px 0;
    }

    .before-after-content {
        flex-direction: column;
    }

    .ba-arrow {
        transform: rotate(90deg);
    }

    .pros-cons-body {
        grid-template-columns: 1fr;
    }

    .pros-section {
        border-right: none;
        border-bottom: 2px solid #ecf0f1;
    }

    /* 分欄佈局 */
    .columns-layout {
        grid-template-columns: 1fr !important;
    }

    /* 圖文混排 */
    .media-text {
        flex-direction: column !important;
    }

        .media-text img {
            max-width: 100%;
        }

    /* 圖片網格 */
    .image-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 價格表 */
    .pricing-table {
        grid-template-columns: 1fr;
    }

    .pricing-plan.featured {
        transform: scale(1);
    }

    /* 統計卡片 */
    .stats-cards {
        grid-template-columns: 1fr;
    }

    /* 儀表板 */
    .metrics-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric-large {
        grid-column: span 2;
    }

    /* 認證網格 */
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 相關文章 */
    .articles-grid {
        grid-template-columns: 1fr;
    }

    /* 標籤頁 */
    .tabs-nav {
        flex-direction: column;
        border-bottom: none;
    }

    .tab-button {
        width: 100%;
        border-bottom: 2px solid #ecf0f1;
        border-left: 3px solid transparent;
    }

        .tab-button.active {
            border-left-color: #e67e22;
        }
}

/* ==========================================================================
   響應式設計增強 - v3.0新元素 (手機)
   ========================================================================== */
@media (max-width: 480px) {
    /* 時間線 */
    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
        left: 20px;
    }

    .timeline-container::before {
        left: 25px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        padding: 20px;
    }

    /* 步驟指南 */
    .step-item {
        flex-direction: column;
        gap: 15px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .step-connector {
        display: none;
    }

    /* 圖片網格 */
    .image-grid {
        grid-template-columns: 1fr !important;
    }

    /* 儀表板 */
    .metrics-dashboard {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .metric-large {
        grid-column: span 1;
    }

    /* 認證網格 */
    .cert-grid {
        grid-template-columns: 1fr;
    }

    /* 下載卡片 */
    .download-card {
        flex-direction: column;
        text-align: center;
    }

    /* 案例研究 */
    .case-header,
    .case-content {
        padding: 20px;
    }

    .case-meta {
        flex-direction: column;
        gap: 10px;
    }

    /* 統計卡片 */
    .stat-number {
        font-size: 2rem;
    }

    /* 價格表 */
    .price-amount {
        font-size: 2.5rem;
    }

    /* 程式碼區塊 */
    .code-block pre {
        padding: 15px;
        font-size: 0.85rem;
    }

    /* 警告框 */
    .alert {
        flex-direction: column;
        text-align: center;
    }
}
