/* 全局樣式 */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Microsoft JhengHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Hero Section */
section.hero-section {
    background: linear-gradient(135deg, rgba(28, 40, 51, 0.95), rgba(28, 40, 51, 0.95)), url('images/hero-bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

section.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

section.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Styles */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

/* 導航欄 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* 卡片樣式 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* 文章卡片 */
.article-card {
    height: 100%;
}

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* 時間軸樣式 */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    padding: 25px;
    background: white;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.timeline-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* FAQ 樣式 */
.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.accordion-button::after {
    background-size: 1rem;
}

/* 資源連結 */
.list-group-item {
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 10px;
    border-radius: 8px !important;
}

.list-group-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(10px);
}

.list-group-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 按鈕樣式 */
.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 社交媒體連結 */
.social-links .btn {
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links .btn:hover {
    transform: translateY(-2px);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 100px 0;
    }
    
    .timeline-item {
        margin: 15px 0;
    }
    
    .card {
        margin-bottom: 15px;
    }
}

/* 動畫效果 */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 頁腳樣式 */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
}

/* 返回頂部按鈕 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
} 