/**
 * 星辰當舖 - Footer 樣式
 * 包含頁尾樣式設定
 */

/* 頁尾區域樣式 */
.site-footer {
    position: relative;
    color: #fff;
    padding: 0px 0 0;
    margin-top: 150px;
    z-index: 1;
    font-family: 'Huninn', 'jf-openhuninn', 'Noto Sans TC', sans-serif;
}

.site-footer * {
    font-family: 'Huninn', 'jf-openhuninn', 'Noto Sans TC', sans-serif;
}

/* 自定義四欄寬度 */
.col-footer-1 {
    width: 33% !important;
    flex: 0 0 33% !important;
    max-width: 33% !important;
}

.col-footer-2 {
    width: 17% !important;
    flex: 0 0 17% !important;
    max-width: 17% !important;
    padding-left: 1px !important;
    padding-right: 1px !important;
}

.col-footer-3 {
    width: 30% !important;
    flex: 0 0 30% !important;
    max-width: 30% !important;
}

.col-footer-4 {
    width: 20% !important;
    flex: 0 0 20% !important;
    max-width: 20% !important;
}

.site-footer:before {
    content: "";
    position: absolute;
    top: -180px;
    left: 0;
    width: 100%;
    height: calc(100% + 150px);
    background: url('../images/footer/footer_bg.png') no-repeat center top;
    background-size: cover;
    z-index: -1;
}

.site-footer .container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 95%;
}

/* 頁尾標誌 */
.footer-logo {
    max-width: 300px;
    margin-bottom: 15px;
    display: block;
}

.company-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* 頁尾標題 */
.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #e68e3b;
    position: relative;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-title-icon {
    width: 24px;
    height: auto;
    vertical-align: middle;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, #f7c96e, #e9a63b);
}

/* 聯絡資訊容器 */
.footer-contact-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 5px;
}

.footer-qrcode {
    flex: 0 0 100px;
    margin-bottom: 0;
}

.qrcode-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid #f7c96e;
}

.footer-contact-info {
    flex: 1;
    min-width: 0;
    padding-top: 0;
    color: #000;
}

/* 聯絡項目 */
.contact-item {
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.4;
    position: relative;
    padding-left: 0;
    font-weight: 500;
}

/* 人氣計數器 */
.visitor-counter {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.counter-digit {
    height: 20px;
    width: auto;
    margin: 0 1px;
}

/* 地址信息 */
.footer-info address {
    font-style: normal;
    margin-bottom: 20px;
}

.footer-info address p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.footer-info address i {
    margin-right: 10px;
    color: #f7c96e;
    font-size: 16px;
}

/* 社交媒體鏈接 */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(to right, #f7c96e, #e9a63b);
    color: #0a1128;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(233, 166, 59, 0.3);
}

/* 站內連結 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 5px;
}

.footer-links li {
    position: relative;
    padding-left: 0;
}

.footer-links li::before {
    display: none;
}

.footer-links a {
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Huninn', 'jf-openhuninn', 'Noto Sans TC', sans-serif;
    font-weight: 500;
}

.footer-links a:hover {
    color: #f7c96e;
    padding-left: 0;
}

/* Facebook 粉絲專頁容器 */
.fb-page-container {
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
}

/* 版權信息 */
.copyright {
    margin-top: 10px;
    padding: 15px 0;
    font-size: 14px;
    background: linear-gradient(to right, #f5c15c, #f1a30a);
    position: relative;
    z-index: 2;
}

.copyright-content {
    color: #000;
    text-align: center;
    margin: 0;
    padding: 0 15px;
    font-size: 14px;
    line-height: 1.5;
}

.copyright-content span {
    display: inline;
}

.security-text, .copyright-text, .designer-text {
    white-space: normal;
}

.main-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.main-copyright span {
    display: inline;
}

.designer {
    white-space: nowrap;
}

.copyright a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #333;
    text-decoration: underline;
}

.security-icon {
    width: 16px;
    height: auto;
    vertical-align: middle;
    margin-right: 5px;
}

.text-right {
    text-align: right;
}

/* 回到頂部按鈕 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    background-color: transparent;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top img {
    width: 60px;
    height: auto;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* 手機版固定按鈕 */
.mobile-fixed-buttons {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 70px;
}

.mobile-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    height: 100%;
    padding: 8px 4px;
}

.mobile-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mobile-btn img {
    width: 32px;
    height: 32px;
}

.mobile-btn span {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}

.mobile-btn-line {
    background: #5bb512;
    color: #ffffff;
}

.mobile-btn-phone {
    background: linear-gradient(to right, #f8ca7a, #e39f35);
}

.mobile-btn-map {
    background: #8c8c8c;
    color: #ffffff;
}

/* 響應式設計 */
@media (max-width: 991px) {
    .site-footer:before {
        background: url('../images/footer/footer_bg10802.png') no-repeat center top;
        background-size: 130% auto; /* 將 cover 改為 100% auto，確保圖片寬度符合容器而高度自適應，不強制拉伸 */
    }

    .site-footer {
        padding: 20px 0 0;
    }

    /* 手機版欄位寬度設為100% */
    .col-footer-1,
    .col-footer-2,
    .col-footer-3,
    .col-footer-4 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px;
    }
    
    .footer-info {
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 10px;
    }
    
    .footer-title {
        justify-content: center;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact-container {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .footer-qrcode {
        flex: 0 0 120px;
        margin-bottom: 0px;
    }
    
    .footer-contact-info {
        text-align: left;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 10px;
    }
    
    .footer-links {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .footer-links li {
        padding-left: 0;
        margin-bottom: 10px;
    }
    
    .footer-links li::before {
        display: none;
    }
    
    .fb-page-container {
        display: flex;
        justify-content: center;
        margin-bottom: -10px;
        width: 79%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .fb-page-container iframe {
        width: 100% !important;
        max-width: 500px;
    }
    
    .copyright {
        padding-bottom: 80px !important;/* 增加底部間距，避免被固定按鈕遮擋 */
        padding-top: 5px;
    }

    .copyright-content {
        font-size: 13px;
        line-height: 1.6;
        padding: 0 15px;
        word-break: break-word;
        overflow-wrap: break-word;
        width: 100%;
        box-sizing: border-box;
    }

    .main-copyright {
        display: inline;
    }

    .main-copyright span {
        display: inline;
    }

    .designer {
        display: inline;
    }

    .security-icon {
        width: 14px;
        height: auto;
        vertical-align: middle;
        margin-right: 3px;
    }

    .copyright a {
        display: inline;
    }

    .back-to-top {
        right: 15px;
        bottom: 90px;
        width: 40px;
        height: 40px;
    }

    .back-to-top img {
        width: 40px;
    }

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }

    .mobile-fixed-buttons {
        display: flex;
    }

    .footer-links {
        gap: 5px; /* 連結上下間距設為5px */
        grid-template-columns: repeat(2, 1fr); /* 改為兩欄排列 */
        text-align: center;
    }
    
    .footer-links li {
        margin-bottom: 0;
    }
}

@media (max-width: 767px) {
    .footer-contact-container {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-qrcode {
        margin-bottom: 0px;
    }
    
    .footer-contact-info {
        text-align: center;
    }
} 

/* 借款須知 */
.col-footer-3 p {
    color: #000;
    font-family: 'Huninn', 'jf-openhuninn', 'Noto Sans TC', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
} 