﻿body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.7;
}

/* 共用 section 容器 */
.case-section {
    max-width: 1100px;
    margin: 0 auto 50px auto;
    padding: 40px 24px;
    background: #fff;
    border-radius: 14px;
}

/* ----------------------------
   HERO — 全幅橫幅
----------------------------- */
.case-hero {
    width: 100%;
    border-radius: 0;
    max-width: none;
    margin: 0;
    padding: 100px 20px;
    background: linear-gradient(135deg, #ff9035, #ff5e4d);
    color: white;
    font-size: 36px;
    text-align: center;
    font-weight: 800;
    letter-spacing: 1px;
}

/* 標題 h2 */
.case-section h2 {
    color: #e66317;
    font-size: 26px;
    margin-bottom: 18px;
    font-weight: 700;
    padding-left: 14px;
    border-left: 4px solid #ff7a1c;
}

/* 產品標題 */
.case-product-title {
    text-align: center;
}

    .case-product-title h1 {
        font-size: 40px;
        margin: 0;
        color: #e66317;
    }

    .case-product-title p {
        font-size: 18px;
        color: #666;
        margin-top: 10px;
    }

/* 產品架構 */
.case-structure {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

    .case-structure img {
        width: 45%;
        border-radius: 12px;
    }

.case-structure-text {
    flex: 1;
}

/* 關鍵技術卡片 */
.case-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 18px;
    margin-top: 20px;
}

.case-tech-card {
    display: block;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #ff7a1c;
    text-decoration: none;
    color: #b24400;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #fff8f3);
    border-bottom: 6px solid #ff7a1c;
    box-shadow: 0 4px 10px rgba(255, 110, 30, 0.25);
    transition: 0.25s ease;
}

    .case-tech-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 26px rgba(255, 120, 40, 0.35);
        border-color: #ff5400;
    }

    .case-tech-card h3 {
        color: #e66317;
        margin-bottom: 8px;
    }

/* 適用領域 */
.case-domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px;
}

.case-domain-card {
    background: #fafafa;
    padding: 20px;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    transition: .25s;
}

    .case-domain-card:hover {
        border-color: #ff8d3a;
        box-shadow: 0 8px 16px rgba(0,0,0,.08);
    }

    .case-domain-card h3 {
        margin: 0 0 10px;
    }

/* CTA */
.case-cta {
    text-align: center;
    background: #fff7f1;
}

.case-cta h2 {
    font-size: 26px;
    color: #d8561a;
    font-weight: 700;
}

.case-cta-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 14px 34px;
    background: #e66317;
    color: white;
    border-radius: 40px;
    text-decoration: none;
    font-size: 18px;
    transition: .25s;
    flex: 0 0 auto;
}

.case-cta-btn:hover {
    background: #c04c12;
}


.cta-button-row {
    display: flex;
    gap: 20px;
    justify-content: center; /* 置中，亦可改為 flex-start */
    margin-top: 20px;
    flex: 0 0 auto;
}

/* 滑動出現動畫 */
.case-fade-in {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity .6s ease, transform .6s ease;
}

.case-fade-in.case-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* RWD：手機版自動改回上下排，避免太擠 */
@media (max-width: 600px) {
    .cta-button-row {
        flex-direction: column;
        align-items: center;
    }

    .cta-button-row .case-cta-btn {
        width: 100%;
        text-align: center;
    }
}