/* 
 * 山徑競走比賽網站樣式
 * 主色: #000000 (黑色)
 * 輔色: #dbdb24 (黃綠色)
 */

/* 全域設定 */
:root {
    --primary-color: #000000;
    --secondary-color: #dbdb24;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-light: rgba(255, 255, 255, 0.7);
}

/* 導航列 */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--secondary-color);
}

.navbar-brand {
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    /* 移除黃色背景 */
}

.navbar-brand img {
    
}

.navbar-brand .text-warning {
    color: var(--primary-color) !important;
    font-weight: 700;
}

/* 滾動時的導航列效果 */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 4px solid var(--secondary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 手機版導航選單 */
.navbar-toggler {
    border-color: var(--secondary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    font-weight: 600;
    background: rgba(219, 219, 36, 0.1);
    border-radius: 6px;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
    background: rgba(219, 219, 36, 0.15);
    border-radius: 6px;
    padding: 0.5rem 1rem !important;
    border: 1px solid rgba(219, 219, 36, 0.3);
    position: relative;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* 主要內容區域 */
.main-content {
    margin-top: 76px; /* 導航列高度 */
}

/* 輪播區域 */
.hero-slide {
    height: 60vh;
    min-height: 430px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-slide .container .row {
    position: relative;
    z-index: 3;
}

.carousel-indicators button {
    background-color: var(--secondary-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px;
}

/* 按鈕樣式 */
.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #c8c820;
    border-color: #c8c820;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-dark {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* 分隔線 */
.divider {
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 1rem auto;
}

/* 比賽卡片 */
.race-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
}

.race-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.race-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.race-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.race-card:hover .race-image img {
    transform: scale(1.05);
}

.race-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.race-card:hover .race-overlay {
    opacity: 1;
}

.race-title {
    color: var(--primary-color);
    font-weight: 700;
}

.race-details .detail-item {
    font-size: 0.9rem;
}

.race-description {
    line-height: 1.6;
}

/* 特色卡片 */
.feature-card {
    background: #fff;
    border-radius: 10px;
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 服務卡片 */
.service-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

/* 流程步驟 */
.process-step {
    position: relative;
}

.step-number .badge {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/* 頁面標題 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), #333);
    padding: 4rem 0;
}

/* 聯絡資訊卡片 */
.info-card {
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
}

/* 表單樣式 */
.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(219, 219, 36, 0.25);
}

/* 地圖容器 */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 頁腳 */
.text-light-50 {
    color: var(--text-light) !important;
}

footer .social-links a {
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: #fff !important;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .hero-slide {
        height: 47vh;
        min-height: 330px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .race-image {
        height: 200px;
    }
    
    .main-content {
        margin-top: 66px;
    }
}

@media (max-width: 576px) {
    .hero-slide {
        height: 40vh;
        min-height: 300px;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

/* 載入動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* 滾動條樣式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c8c820;
} 