/* BenQ 基金會頁腳樣式 */

/* 引入 Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

#footer {
    background-color: #ffffff;
    padding: 60px 0 40px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
     /* border: 1px solid red; */
}

.footer-content {
    width: 80%;
    /* max-width: 1200px; */
    margin: 0 auto;
}

.footer-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

/* 左側導航區域 */
.footer-left {
    flex: 1;
}

.footer-nav {
    display: flex;
    gap: 60px;
}

.nav-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-link {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: #333333;
    text-decoration: none;
}

/* 右側聯絡資訊區域 */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    min-width: 350px;
}

/* 社群媒體圖示 */
.social-icons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-icon.facebook {
    background-color: #999999;
    color: white;
}

.social-icon.youtube {
    background-color: #999999;
    color: white;
}

.social-icon.email {
    background-color: #999999;
    color: white;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.social-icon.facebook:hover {
    background-color: #1877f2;
}

.social-icon.youtube:hover {
    background-color: #ff0000;
}

.social-icon.email:hover {
    background-color: #555555;
}

/* 聯絡資訊 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #5b2a84;
    color: white;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.contact-text {
    color: #333333;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
}

/* 法律資訊按鈕 */
.legal-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.legal-btn {
    padding: 6px 16px;
    background-color: #c0bcdd;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(167, 139, 250, 0.3);
    letter-spacing: 0.2px;
}

.legal-btn:hover {
    background-color: #8B7BC7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 139, 250, 0.5);
    color: white;
    text-decoration: none;
}

/* 響應式設計 */
@media (max-width: 1024px) {
    .footer-container {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
    
    .footer-right {
        align-items: center;
        width: 100%;
    }
    
    .footer-nav {
        gap: 50px;
    }
    
    .contact-info {
        align-items: center;
    }
}

@media (max-width: 768px) {
    #footer {
        padding: 30px 0 20px 0;
    }
    
    .footer-container {
        padding: 0 20px;
    }
    
    .footer-left {
        display: none; /* 手機版隱藏左側導航 */
    }
    
    .footer-right {
        min-width: 100%;
        width: 100%;
        margin: 0 auto;
        padding: 0;
        align-items: center;
        transform: translateX(-20px);
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }
    
    .nav-column {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 15px;
    }
    
    .social-icons {
        justify-content: center;
        width: 100%;
        gap: 15px; /* 增加社群圖示間距 */
        margin: 0 auto;
    }
    
    .social-icon {
        width: 60px; /* 加大社群圖示 */
        height: 60px;
        font-size: 26px;
    }
    
    .contact-info {
        align-items: center;
        width: 100%;
        gap: 20px; /* 增加聯絡資訊間距 */
        margin: 0 auto;
    }
    
    .contact-icon {
        width: 50px; /* 加大聯絡圖示 */
        height: 50px;
        font-size: 22px;
    }
    
    .contact-text {
        font-size: 20px; /* 加大文字 */
        font-weight: 600;
        text-decoration: none;
    }
    
    .legal-buttons {
        justify-content: center;
        width: 100%;
        gap: 12px; /* 增加按鈕間距 */
        margin: 0 auto;
    }
    
    .legal-btn {
        padding: 10px 20px; /* 加大按鈕 */
        font-size: 14px;
        font-weight: 600;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-nav {
        gap: 20px;
    }
    
    .nav-column {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icon {
        width: 55px; /* 小螢幕稍微縮小但仍然比原本大 */
        height: 55px;
        font-size: 24px;
    }
    
    .contact-info {
        gap: 18px;
    }
    
    .contact-icon {
        width: 45px; /* 小螢幕稍微縮小但仍然比原本大 */
        height: 45px;
        font-size: 20px;
    }
    
    .contact-text {
        font-size: 18px;
        font-weight: 600;
        text-decoration: none;
    }
    
    .legal-buttons {
        gap: 10px;
    }
    
    .legal-btn {
        padding: 8px 16px; /* 小螢幕稍微縮小但仍然比原本大 */
        font-size: 13px;
        font-weight: 600;
    }
}

/* 頁腳圖片區域 */
.footer-image {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding: 30px 40px;
    background-color: #fff;
    /* border-top: 1px solid #e9ecef; */
    gap: 20px;
    box-sizing: border-box;
}

.footer-image > div {
    flex: 1;
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0.3px;
    padding: 0 20px;
    font-weight: 400;
}

.footer-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-img:first-child {
    max-width: 250px;
    min-width: 100px;
}

/* 頁腳 logos 容器 */
.footer-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-logos a {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logos a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

.footer-logo-item {
    height: 80px;
    width: auto;
    object-fit: contain;
    max-width: 150px;
}

/* 頁腳圖片響應式設計 */
@media (max-width: 768px) {
    .footer-image {
        margin-top: 30px;
        padding: 20px 15px;
        flex-direction: column; /* 垂直排列 */
        gap: 15px;
        text-align: center;
        align-items: center;
        /* border: 1px solid red; */
    }
    
    .footer-image > div {
        order: 2;
        padding: 0 10px;
        font-size: 12px;
        line-height: 1.4;
        color: #666;
        text-align: center;
    }
    
    .footer-img:first-child {
        order: 1;
        max-width: 300px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .footer-logos {
        order: 3;
        flex-direction: row;
        gap: 10px;
        margin-top: 10px;
        flex-wrap: nowrap;
    }
    
    .footer-logo-item {
        max-width: 150px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .footer-image {
        padding: 15px 10px;
        gap: 12px;
    }
    
    .footer-image > div {
        font-size: 11px;
        line-height: 1.3;
        padding: 0 5px;
    }
    
    .footer-img:first-child {
        max-width: 250px;
        height: 50px;
    }
    
    .footer-logos {
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .footer-logo-item {
        max-width: 120px;
        height: 35px;
    }
}