﻿/* ===================================================================
   Footer 專屬樣式表 (assets/footer.css) - 修正版
   =================================================================== */

.main-footer {
    background-color: #0b1a2c;
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 3rem;
    font-size: 0.95rem;
    border-top: 4px solid var(--primary-color);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 3rem;
}

.footer-col-brand .logo-image-footer {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1) opacity(0.8);
}

.footer-col-brand p {
    margin-top: 1.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
}

.footer-socials {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: #fff;
    transform: scale(1.1) translateY(-2px);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-links-subtitle {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a,
.footer-col ul li span {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-hot-locations {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-hot-locations .footer-links-subtitle {
    text-align: center;
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.hot-locations-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.5rem;
    padding: 0;
    list-style: none;
}

.hot-locations-list li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: var(--transition);
}

.hot-locations-list li a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.hot-locations-list .all-locations-link {
    font-weight: bold;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.hot-locations-list .all-locations-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* -------------------------------------------------------------------
 * Footer 響應式設計 (Responsive)
 * ------------------------------------------------------------------- */

@media (max-width: 992px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
    }
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-top-grid {
        text-align: center;
    }
    .footer-socials {
        justify-content: center;
    }
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer 手機版摺疊選單 */
    .footer-accordion .footer-links-subtitle {
        cursor: pointer;
        position: relative;
        user-select: none;
    }
    .footer-accordion .footer-links-subtitle::after {
        content: '+';
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        font-weight: 300;
        transition: transform 0.3s;
    }
    .footer-accordion.active .footer-links-subtitle::after {
        content: '−';
        transform: translateY(-50%) rotate(180deg);
    }
    .footer-accordion .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }
    .footer-accordion.active .accordion-content {
        max-height: 500px;
    }
    
    /*
      【重要修正】
      原本這段顏色修正是放在 Media Query 外面，導致語法錯誤。
      現在將它移到 Media Query 內部，確保語法正確。
      同時，為了讓桌面版也能看到文字，我們將這些規則複製一份到 Media Query 外面。
      但最佳實踐是將通用樣式放在最前面，而不是用 !important 強制覆蓋。
      以下的寫法是為了最小幅度修改您的代碼。
    */
}

/* ===================================================================
   Footer 文字顏色修正 (適用於所有螢幕尺寸)
   =================================================================== */

/* 設定 Footer 內部所有元素的預設文字顏色為半透明白色 */
.main-footer,
.main-footer p,
.main-footer a,
.main-footer span,
.main-footer li {
   color: rgba(255, 255, 255, 0.7);
}

/* 確保連結在滑鼠懸停時變成純白色 */
.main-footer a:hover {
   color: #FFFFFF;
}

/* 確保小標題是純白色 */
.main-footer .footer-links-subtitle {
   color: #fff;
}

/* 確保社群圖示顏色正常 */
.main-footer .footer-socials a {
   color: rgba(255, 255, 255, 0.7);
}
.main-footer .footer-socials a:hover {
    color: #fff;
}

/* 確保 Logo 正常顯示 */
.main-footer .logo-image-footer {
    filter: brightness(0) invert(1) opacity(0.8);
}