/* 現代化 Footer 樣式 - 與新主題協調 */
.modern-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
    margin-top: auto;
    border-top: 1px solid rgba(226, 232, 240, 0.1);
}

/* 波浪形頂部設計 */
.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

.footer-wave-shape {
    fill: #ffffff;
}

/* Footer 內容區域 */
.footer-content {
    padding: 140px 0 10px 0;
    position: relative;
    z-index: 2;
}

/* 品牌介紹區域 */
.footer-brand {
    margin-bottom: 30px;
}

.brand-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.brand-logo h4 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-description {
    color: #d1d5db;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* 社群媒體連結 */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

.social-link.facebook::before {
    background: #1877f2;
}

.social-link.instagram {
    background: rgba(225, 48, 108, 0.1);
    color: #e1306c;
}

.social-link.instagram::before {
    background: linear-gradient(45deg, #f09433, #e1306c, #833ab4);
}

.social-link.line {
    background: rgba(0, 195, 0, 0.1);
    color: #00c300;
}

.social-link.line::before {
    background: #00c300;
}

.social-link.youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

.social-link.youtube::before {
    background: #ff0000;
}

.social-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-link i {
    position: relative;
    z-index: 2;
}

/* Footer 區塊標題 */
.footer-title {
    color: #f9fafb;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 2px;
}

/* Footer 連結 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.footer-links a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #f59e0b;
    padding-left: 8px;
}

.footer-links a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* 聯繫資訊 */
.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #d1d5db;
    font-size: 0.9rem;
}

.contact-item i {
    width: 20px;
    text-align: center;
    margin-right: 12px;
    color: #f59e0b;
    font-size: 1rem;
}

/* 電子報訂閱 */
.newsletter-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.newsletter-title {
    color: #f9fafb;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.newsletter-desc {
    color: #d1d5db;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.newsletter-form .input-group {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.newsletter-form .input-group:focus-within {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.newsletter-input {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.9rem;
    padding: 12px 16px;
    flex: 1;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    background: transparent;
    color: white;
}

.newsletter-btn {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border: none;
    color: white;
    padding: 12px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Footer 底部 */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.footer-bottom-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #f59e0b;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .footer-content {
        padding: 120px 0 40px 0;
    }
    
    .brand-logo {
        justify-content: center;
        text-align: center;
    }
    
    .brand-description {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
        margin-bottom: 40px;
    }
    
    .footer-section {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .footer-wave {
        height: 80px;
    }
    
    .footer-wave svg {
        height: 80px;
    }
    
    .footer-content {
        padding: 100px 0 30px 0;
    }
    
    .brand-logo h4 {
        font-size: 1.5rem;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .newsletter-section {
        padding: 20px;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

/* 載入動畫 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-brand,
.footer-section {
    animation: fadeInUp 0.6s ease-out;
}

.footer-section:nth-child(2) { animation-delay: 0.1s; }
.footer-section:nth-child(3) { animation-delay: 0.2s; }
.footer-section:nth-child(4) { animation-delay: 0.3s; }