/* ========== Footer 基本樣式 ========== */
.footer-light {
    background-color: #f8f9fc;
    color: #4a5568;
    margin-top: 3rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 1.5rem;
}

/* 預設（手機版）：單欄直立 */
.footer-grid {
    display: block;  /* 手機版強制單欄 */
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1.8rem;
}

/* 桌面版：多欄 Grid */
@media (min-width: 768px) {
    .footer-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 2rem;
    }
}

/* 確保每個欄位內容正常 */
.footer-col {
    margin-bottom: 1.5rem;
}

/* 社群圖示水平排列（所有裝置都水平） */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.8rem;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #e9ecef;
    border-radius: 50%;
    color: #4a5568;
    font-size: 1.1rem;
    transition: all 0.2s;
    text-decoration: none;
}
.social-links a:hover {
    background-color: #0d6efd;
    color: white;
}

/* 版權區塊：預設手機版直立 */
.copyright-light {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
}
.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.trust-badge-light {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    background: #f1f5f9;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
}

/* 桌面版版權區塊改為水平排列 */
@media (min-width: 768px) {
    .copyright-light {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    .legal-links {
        justify-content: flex-start;
    }
    .trust-badge-light {
        justify-content: flex-start;
    }
}

/* 手機版微調 */
@media (max-width: 767px) {
    .footer-container {
        padding: 1.8rem 1rem;
    }
    .footer-col {
        text-align: center;
    }
    .footer-col h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
    }
    .contact-info div {
        justify-content: center;
    }
}