﻿@charset "utf-8";

/* ==================== 頁尾導航列 ==================== */
.footer-nav {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 60px 0 0;
    font-family: 'Microsoft JhengHei', 'Segoe UI', Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

.footer-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    color: #ffd700;
    position: relative;
}

.footer-column h3::after {
    content: '';
    flex: 1;
    height: 2px;
    background: rgba(255, 215, 0, 0.3);
    margin-left: 15px;
    border-radius: 1px;
}

.icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    margin-right: 15px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.3);
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.footer-column .icon img {
    border-radius: 4px;
}

.footer-column p {
    color: #bdc3c7;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 25px;
}

.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 1rem;
    color: #ecf0f1;
}

.contact-info .contact-item .icon {
    font-size: 1.3rem;
    margin-right: 12px;
    color: #ffd700;
    min-width: 24px;
}

/* ==================== 頁尾連結樣式 ==================== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block !important;
}

.footer-links li {
    display: block !important;
    width: 100% !important;
    margin-bottom: 14px !important;
    float: none !important;
}

.footer-links a {
    display: block;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 4px 0;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    font-weight: bold;
    color: #ffd700;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.footer-links a:hover {
    color: #ffd700;
    padding-left: 12px;
    background: rgba(255, 215, 0, 0.1);
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

/* ==================== 聯絡資訊不跳行處理 ==================== */
.footer-column .footer-links p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 8px;
    line-height: 1.4;
}

.footer-column .footer-links a {
    display: inline !important;
    white-space: nowrap;
}

.footer-column:nth-child(6) .footer-links p,
.footer-column:nth-child(7) .footer-links p {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

.footer-column .footer-links p a {
    display: inline !important;
    white-space: nowrap;
}

/* ==================== 社群連結 ==================== */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.social-link:hover {
    background: #ffd700;
    color: #1a1a2e;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

/* ==================== Footer Toolbar ==================== */
.footer-toolbar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 12px 0;
    color: white;
    margin-top: 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.footer-toolbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-toolbar-grid {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.footer-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
    justify-content: flex-start;
}

.footer-info a {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.footer-info a:hover {
    color: white;
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    animation: pulse 1.5s ease-in-out infinite;
}

.separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
}

.update-info, .visit-count {
    color: rgba(255, 255, 255, 0.9);
}

.visit-count {
    background: rgba(255, 215, 0, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ==================== 版權資訊 ==================== */
.footer_foot_design {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 6px 0;
    margin-top: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.footer_foot_design ul.copyright {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 0.9rem;
}

.footer_foot_design ul.copyright li {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.footer_foot_design ul.copyright li.tel,
.footer_foot_design ul.copyright li:nth-child(2) {
    order: 1;
    text-align: left;
    flex: 1;
}

.footer_foot_design ul.copyright li.webdesign {
    order: 2;
    text-align: right;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.footer_foot_design a {
    color: #ffd700;
    text-decoration: none;
    transition: all .3s ease;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.footer_foot_design a:hover {
    color: white;
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

/* ==================== 手機底部導航 ==================== */
.mobile-toolbar {
    display: none;
}

.touch-navigation {
    display: none;
}

.body_footer {
    position: fixed !important;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    padding: 8px 0;
    box-shadow: 0 -3px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.body_footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff8c00, #ff6b35);
    box-shadow: 0 1px 3px rgba(255, 140, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

.body_footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    position: relative;
    z-index: 2;
}

.body_footer ul li {
    flex: 1;
    max-width: 25%;
    text-align: center;
    padding: 4px 2px;
}

.body_footer ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.75rem;
    min-height: 50px;
    transition: all 0.3s ease;
}

.body_footer ul li a:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

.body_footer dl,
.body_footer dt,
.body_footer dd {
    margin: 0;
    padding: 0;
}

.body_footer dt img {
    width: 26px !important;
    height: 26px !important;
    margin-bottom: 4px !important;
    filter: brightness(1.0) contrast(1.3) !important;
    transition: all 0.3s ease !important;
    image-rendering: -webkit-optimize-contrast;
}

.body_footer a:hover dt img {
    filter: brightness(1.6) contrast(1.3) drop-shadow(0 0 4px rgba(255,215,0,0.3)) !important;
    transform: scale(1.12) !important;
}

.body_footer dd {
    font-size: 0.7rem;
    color: #bdc3c7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ==================== 響應式設計 - 頁尾區域 ==================== */

/* 手機版 */
@media (max-width: 768px) {
    /* 隱藏 footer_foot_design */
    .footer_foot_design { display: none !important; }
    
    /* 聯絡資訊響應式 */
    .footer-column .footer-links p {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.9rem;
    }
    
    .footer-column:nth-child(6) .footer-links,
    .footer-column:nth-child(7) .footer-links {
        text-align: center;
    }
    
    .footer-column:nth-child(6) .footer-links p,
    .footer-column:nth-child(7) .footer-links p {
        white-space: nowrap;
        overflow: visible;
        text-overflow: clip;
        text-align: center;
        justify-content: center;
    }

    /* 頁尾網格調整 */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-column h3::after { display: none; }
    .footer-column h3 { justify-content: center; }
    .contact-info .contact-item { justify-content: center; }
    .social-links { justify-content: center; }

    /* 行動裝置顯示 Mobile Toolbar */
    .mobile-toolbar { display: block !important; }
    .touch-navigation { display: block !important; }
    body { padding-bottom: 70px !important; }

    /* 隱藏 footer-toolbar */
    .footer-toolbar { display: none !important; }
}

/* 小螢幕手機優化 */
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 375px) {
    .mobile-tool-item { padding: 10px 5px; }
    .mobile-tool-icon { width: 28px; height: 28px; }
    .mobile-tool-label { font-size: 0.7rem; }
}

/* 大螢幕 - 隱藏 Mobile Toolbar */
@media (min-width: 769px) {
    .mobile-toolbar { display: none !important; }
    .touch-navigation { display: none !important; }
    body { padding-bottom: 0 !important; }
}

/* 高對比模式支持 */
@media (prefers-contrast: high) {
    .mobile-toolbar { border-top: 3px solid #000; }
    .mobile-tool-item { border-right: 2px solid #000; }
    .footer-toolbar { background: #000; }
    .footer_foot_design { background: #000; }
}

/* 可訪問性優化 */
.mobile-tool-item:focus {
    outline: 3px solid #667eea;
    outline-offset: -3px;
}

.footer-info a:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

.footer_foot_design a:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* 列印樣式 */
@media print {
    .footer-toolbar,
    .mobile-toolbar,
    .touch-navigation {
        display: none !important;
    }
}

        /* 重置链接默认样式并设置白色 */
        .webdesign a {
            color: white !important;
            text-decoration: none; /* 可选：移除下划线 */
        }
        
        .webdesign a:hover {
            text-decoration: underline; /* 可选：添加悬停效果 */
        }
 