/* ============================================================
   紀謙的自在空間 - Footer 共用樣式 (footer-style.css)
   與 footer-component.php 配套使用
   使用 global-style.css 的 CSS 變數
   ============================================================ */

/* ===== Footer 主容器 ===== */
.footer {
    background: linear-gradient(135deg, #1c1917 0%, #292524 100%);
    color: white;
    padding: 60px 0 30px;
}

/* ===== Footer 內容區 ===== */
.footer .container {
    max-width: var(--container-2xl, 1200px);
    margin: 0 auto;
    padding: 0 var(--space-5, 20px);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* ===== 品牌區塊 ===== */
.footer-brand h3 {
    font-family: var(--font-primary, 'Noto Sans TC', sans-serif);
    font-size: var(--text-xl, 1.25rem);
    font-weight: var(--font-semibold, 600);
    margin-bottom: var(--space-4, 15px);
    color: var(--jc-gold-main, #d4af37);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm, 0.95rem);
    line-height: var(--leading-relaxed, 1.7);
    margin-bottom: var(--space-3, 10px);
}

/* ===== 連結區塊 ===== */
.footer-section h4 {
    font-family: var(--font-primary, 'Noto Sans TC', sans-serif);
    font-size: var(--text-base, 1rem);
    font-weight: var(--font-semibold, 600);
    margin-bottom: var(--space-4, 15px);
    color: var(--jc-gold-main, #d4af37);
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--text-sm, 0.9rem);
    margin-bottom: var(--space-3, 10px);
    transition: color var(--transition-fast, 150ms) ease;
}

.footer-section a:hover {
    color: var(--jc-gold-main, #d4af37);
}

/* ===== 底部版權區 ===== */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6, 25px);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-xs, 0.85rem);
    margin-bottom: var(--space-2, 8px);
    line-height: var(--leading-normal, 1.6);
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* ===== RWD 響應式設計 ===== */

/* 平板 */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

/* 手機 */
@media (max-width: 768px) {
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-section a {
        display: inline-block;
        margin: 0 8px 10px;
    }
}

/* 小手機 */
@media (max-width: 480px) {
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-brand h3 {
        font-size: var(--text-lg, 1.125rem);
    }
    
    .footer-section h4 {
        font-size: var(--text-sm, 0.9rem);
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}
