﻿/* 頁面組件樣式 */
/* 頭部固定樣式 */
.header {
    width: 100%;
    background-color: #121212;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
}

/* 移動端按鈕樣式 */
.mobile-auth-buttons {
    display: none;
    width: 100%;
    padding: 10px 0;
    background-color: #1a1a1a;
    text-align: center;
    border-top: 1px solid #333;
}

/* 為固定頭部添加動畫效果 */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* 當頭部固定時，為內容添加上邊距，防止內容被遮擋 */
body.header-fixed {
    padding-top: 120px; /* 根據您的頭部高度調整 */
}

/* 響應式調整 */
@media (max-width: 768px) {
    .mobile-auth-buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    
    .auth-buttons {
        display: none; /* 在移動端隱藏頭部原有的註冊登錄按鈕 */
    }
    
    body.header-fixed {
        padding-top: 140px; /* 移動端頭部高度較大，包含了移動端按鈕 */
    }
}

/* 當移動端按鈕固定時，為內容添加下邊距，防止內容被遮擋 */
body.mobile-buttons-fixed {
    padding-bottom: 60px; /* 根據您的按鈕高度調整 */
}

/* 響應式調整 */
@media (max-width: 768px) {
    body.header-fixed {
        padding-top: 70px; /* 移動端頭部高度較小 */
    }
}
/* 麵包屑導航 */
.breadcrumb {
    margin: 20px 0;
    font-size: 14px;
    color: #b0b0b0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    color: #666;
}

.breadcrumb-link {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #ffcc00;
}

.breadcrumb-current {
    color: #ffcc00;
}

/* 按鈕樣式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 16px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #e60000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn-secondary {
    background-color: #ffcc00;
    color: #121212;
}

.btn-secondary:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* 卡片樣式 */
.card {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-text {
    font-size: 14px;
    color: #b0b0b0;
    margin-bottom: 15px;
}

/* 提示框樣式 */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-info {
    background-color: #1a3b5c;
    color: #8bb8e8;
    border-left: 4px solid #3498db;
}

.alert-success {
    background-color: #1a472a;
    color: #8be88b;
    border-left: 4px solid #2ecc71;
}

.alert-warning {
    background-color: #5c4a1a;
    color: #e8d28b;
    border-left: 4px solid #f1c40f;
}

.alert-danger {
    background-color: #5c1a1a;
    color: #e88b8b;
    border-left: 4px solid #e74c3c;
}

/* 表單元素 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #e0e0e0;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    background-color: #252525;
    color: #e0e0e0;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    background-color: #333;
}

.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    background-color: #252525;
    color: #e0e0e0;
    font-size: 14px;
    min-height: 150px;
    resize: vertical;
    transition: background-color 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    background-color: #333;
}

/* 分隔線 */
.divider {
    height: 1px;
    background-color: #333;
    margin: 30px 0;
}

/* 標籤 */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}

.badge-primary {
    background-color: #e60000;
    color: #fff;
}

.badge-secondary {
    background-color: #ffcc00;
    color: #121212;
}

.badge-dark {
    background-color: #252525;
    color: #e0e0e0;
}