/* css/style.css */

/* =========================================================================
   1. 基礎設定 (Global Styles)
   ========================================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Microsoft JhengHei", Arial, sans-serif;
    line-height: 1.6;
    color: #334155; /* 質感石板灰色 */
    background-color: #f8fafc; /* 溫和的淡灰白底 */
}
a {
    text-decoration: none;
    color: #2563eb; /* 科技感亮藍色 */
    transition: all 0.3s ease;
}
a:hover {
    color: #1d4ed8;
}
img {
    max-width: 100%;
    height: auto;
}
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 60px 20px;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #0f172a; /* 深色 */
    margin-bottom: 40px;
    position: relative;
    font-weight: 800;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #2563eb;
    margin: 15px auto 0;
    border-radius: 2px;
}
.text-center {
    text-align: center;
}
.text-muted {
    color: #64748b;
}
.mb-4 {
    margin-bottom: 1.5rem;
}
.mt-5 {
    margin-top: 3rem;
}

/* 按鈕樣式 */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}
.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

/* =========================================================================
   2. 頁首與響應式導覽列 (Header & Navigation)
   ========================================================================= */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}
.logo img {
    height: 50px;
    width: auto;
    display: block;
}
.navigation-menu {
    display: flex;
    gap: 8px;
}
.navigation-menu a {
    display: block;
    padding: 10px 18px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.navigation-menu a:hover, .navigation-menu a.active {
    background-color: #f1f5f9;
    color: #2563eb;
}

/* 隱藏原生 Checkbox 並設定漢堡按鈕 */
.d-none {
    display: none !important;
}
.menu_btn {
    display: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #2563eb;
    border: 2px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 6px;
}

/* =========================================================================
   3. 大橫幅 (Hero Banner)
   ========================================================================= */
.banner-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: #0f172a;
}
.banner-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

/* =========================================================================
   4. 分頁特定卡片樣式 (Pages Styling)
   ========================================================================= */

/* 首頁：公告表格樣式 */
.notice-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border-radius: 8px;
    overflow: hidden;
}
.notice-table th {
    background-color: #0f172a;
    color: #ffffff;
    padding: 16px;
    font-weight: 700;
    text-align: left;
}
.notice-table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}
.notice-table tr:hover {
    background-color: #f8fafc;
}

/* 成員介紹卡片 */
.profile-card, .history-section, .empty-product-box, .stream-box {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}
.profile-content {
    display: flex;
    gap: 40px;
    align-items: center;
}
.profile-text {
    flex: 1.5;
}
.profile-text h3 {
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 8px;
}
.role-badge {
    display: inline-block;
    background-color: #dbeafe;
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.profile-text p {
    margin-bottom: 15px;
    color: #475569;
}
.profile-avatar {
    flex: 1;
    display: flex;
    justify-content: center;
}
.profile-avatar img {
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* 歷史分頁：區塊與時間軸 */
.history-block {
    margin-bottom: 40px;
}
.history-block h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.history-block p {
    color: #475569;
    margin-bottom: 12px;
}
.timeline {
    list-style: none;
    border-left: 3px solid #e2e8f0;
    padding-left: 20px;
    margin-top: 20px;
}
.timeline li {
    margin-bottom: 24px;
    position: relative;
}
.timeline li::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background-color: #2563eb;
    border-radius: 50%;
    position: absolute;
    left: -28px;
    top: 6px;
    border: 3px solid #ffffff;
}
.timeline .date {
    font-weight: 800;
    color: #0f172a;
    display: block;
    margin-bottom: 4px;
}

/* 接案專區與實況專區：網格卡片 */
.services-grid, .stream-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.stream-grid {
    grid-template-columns: repeat(3, 1fr);
}
.service-card, .stream-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover, .stream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.service-icon, .card-icon {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 20px;
}
.service-card h3, .stream-card h4 {
    font-size: 1.35rem;
    color: #0f172a;
    margin-bottom: 15px;
    font-weight: 700;
}
.service-desc, .stream-card p {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 25px;
}
.service-action {
    border-top: 1px dashed #e2e8f0;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #334155;
}
.service-action p {
    margin-bottom: 8px;
}

/* 實況卡片專屬色 */
.tw-twitch .card-icon { color: #9146FF; }
.tw-donate .card-icon { color: #00A99D; }
.tw-fb .card-icon { color: #1877F2; }

/* 商品空白頁樣式 */
.empty-product-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
}
.empty-icon {
    font-size: 4rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

/* =========================================================================
   5. 頁尾樣式 (Footer)
   ========================================================================= */
.site-footer {
    background-color: #0f172a; /* 質感深色底 */
    color: #94a3b8;
    padding: 50px 0;
    border-top: 1px solid #1e293b;
    text-align: center;
}
.site-footer .copyright {
    margin-bottom: 12px;
}
.footer-address p {
    display: inline-block;
    margin: 0 15px;
    font-size: 0.95rem;
}
.footer-address i {
    color: #38bdf8; /* 天空藍 icon */
    margin-right: 6px;
}

/* =========================================================================
   6. RWD 響應式手機版面適應
   ========================================================================= */
@media (max-width: 991px) {
    .stream-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
@media (max-width: 767px) {
    .menu_btn {
        display: block; /* 手機版開啟漢堡選單 */
    }
    .navigation-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        border-top: 1px solid #e2e8f0;
        padding: 10px 0;
    }
    .navigation-menu a {
        border-radius: 0;
        padding: 12px 30px;
    }
    
    /* 漢堡選單 Checkbox 選中時展開選單 */
    #menu_control:checked ~ .site-header .navigation-menu {
        display: flex;
    }
    
    .profile-content {
        flex-direction: column;
        gap: 30px;
    }
    .profile-avatar {
        order: -1; /* 手機版將頭像排到文字上方 */
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .footer-address p {
        display: block;
        margin: 10px 0;
    }
}