/* Layout相關的額外樣式 */

/* Logo圖片樣式 */
.logo img {
    height: 2.5rem; /* 與原文字logo大小相符 */
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo img:hover {
    opacity: 0.8;
}

/* 社群媒體樣式 */
.social-media {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social-media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-media a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.social-media a:hover::before {
    left: 100%;
}

.social-media a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Facebook */
.social-fb {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}

.social-fb:hover {
    background: linear-gradient(135deg, #166fe5, #3b96e8);
}

/* Instagram */
.social-ig {
    background: linear-gradient(135deg, #e91e63, #f06292, #ff9800);
}

.social-ig:hover {
    background: linear-gradient(135deg, #d81b60, #ec407a, #ff8f00);
}

/* LINE */
.social-line {
    background: linear-gradient(135deg, #00c300, #4caf50);
}

.social-line:hover {
    background: linear-gradient(135deg, #00b300, #43a047);
}

/* YouTube */
.social-yt {
    background: linear-gradient(135deg, #ff0000, #f44336);
}

.social-yt:hover {
    background: linear-gradient(135deg, #e60000, #e53935);
}

/* Active Navigation Styles */
nav a.active {
    color: #6aba86 !important;
    font-weight: 600;
    background-color: rgba(106, 186, 134, 0.1);
    border-radius: 4px;
}

/* Loading狀態樣式 */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Header和Footer容器 */
#header-container,
#footer-container {
    /* 確保容器正確顯示 */
    display: block;
}

/* 頁面結構調整，確保Footer始終在底部 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}