﻿/* =========================================
   成果專區專屬樣式 (result-cases.css)
   ========================================= */

/* 頂部橫幅 (Page Header) */
.page-header-section {
    background: linear-gradient(135deg, #ff8c42 0%, #f7ca3e 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

    .page-header-section h1 {
        font-size: 2.5rem;
        font-weight: 900;
        margin: 0 0 15px 0;
        letter-spacing: 2px;
    }

    .page-header-section p {
        font-size: 1.15rem;
        font-weight: bold;
        margin: 0;
        opacity: 0.9;
    }

/* 內容容器 */
.cases-container {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

/* 案例卡片網格 (Grid) */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* 單一卡片設計 */
.case-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none; /* 如果未來卡片要能點擊 */
    color: inherit;
}

    .case-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.1);
        border-color: #ff8c42;
    }

/* 卡片圖片區 (預留給未來放照片) */
.case-image {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* 產業類別標籤 */
.case-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #209d7e;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* 卡片文字內容區 */
.case-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-year {
    font-size: 0.9rem;
    color: #ff8c42;
    font-weight: bold;
    margin-bottom: 10px;
}

.case-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.case-company {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.case-desc {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

/* =========================================
   返回首頁按鈕區塊
   ========================================= */
.back-action-area {
    text-align: center;
    margin-bottom: 60px; /* 與頁尾 Footer 保持呼吸空間 */
}

.btn-return-home {
    display: inline-block;
    padding: 12px 35px;
    background-color: #ffffff;
    color: #555;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #ddd;
    border-radius: 30px; /* 圓角膠囊形狀 */
    transition: all 0.3s ease;
}

    /* 滑鼠移過去的特效 */
    .btn-return-home:hover {
        background-color: #ff8c42;
        color: #ffffff;
        border-color: #ff8c42;
        transform: translateY(-3px); /* 微微向上浮起 */
        box-shadow: 0 6px 15px rgba(255, 140, 66, 0.3); /* 橘色光暈陰影 */
    }