/**
 * Footer 樣式（國內版專用）
 */

/* 國內版 Footer 容器 */
.main-footer-domestic {
    background-color: #f8f9fa;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
}

/* 富文本內容區 */
.footer-rich-content {
    margin-bottom: 30px;
    padding: 20px;
    line-height: 1.8;
    color: #333;
}


.footer-rich-content a {
    color: #007bff;
    text-decoration: none;
}

.footer-rich-content a:hover {
    text-decoration: underline;
}

.footer-rich-content h1,
.footer-rich-content h2,
.footer-rich-content h3,
.footer-rich-content h4,
.footer-rich-content h5,
.footer-rich-content h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-rich-content ul,
.footer-rich-content ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

/* 備案資訊區 */
.footer-filing-info {
    text-align: center;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.footer-filing-info a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-filing-info a:hover {
    color: #007bff;
    text-decoration: underline;
}

.footer-filing-info .filing-separator {
    margin: 0 10px;
    color: #ccc;
}

/* 響應式設計 - 手機版 */
@media (max-width: 768px) {

    /* ⭐ 手機版默認隱藏 Footer */
    .main-footer,
    .main-footer-domestic {
        display: none !important;
    }

    /* ⭐ 只有首頁顯示 Footer */
    body:has(.home-page) .main-footer,
    body:has(.home-page) .main-footer-domestic {
        display: block !important;
    }

    .main-footer-domestic {
        padding: 30px 0 15px;
        margin-top: 40px;
    }

    .footer-rich-content {
        padding: 15px;
        font-size: 14px;
        margin-bottom: 20px;
    }

    .footer-filing-info {
        padding: 12px 15px;
        font-size: 12px;
        line-height: 1.8;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    /* 手機版備案資訊隱藏分隔符 */
    .footer-filing-info .filing-separator {
        display: none;
    }

    /* 手機版每個備案號獨立一行 */
    .footer-filing-info a,
    .footer-filing-info>span {
        display: block;
        text-align: center;
    }
}

/* 響應式設計 - 平板 */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-footer-domestic {
        padding: 35px 0 18px;
    }

    .footer-rich-content {
        padding: 18px;
        font-size: 15px;
    }

    .footer-filing-info {
        font-size: 12px;
    }
}

/* 與現有國際版 Footer 的兼容性調整 */
.main-footer {
    min-height: 200px;
}

/* 確保國內版 Footer 與原有樣式協調 */
.main-footer-domestic .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 備案號圖標支援（如果需要添加公安備案圖標） */
.footer-filing-info .filing-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* 系統版本號區域 */
.footer-version-section {
    text-align: center;
    padding: 10px 0;
    color: #999;
    font-size: 12px;
    border-top: 1px solid #eee;
    margin-top: 10px;
    background-color: rgba(0, 0, 0, 0.02);
}

.footer-version-section span {
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 0.5px;
}

/* 響應式設計 - 手機版版本號 */
@media (max-width: 768px) {
    .footer-version-section {
        font-size: 11px;
        padding: 8px 0;
    }
}

/* 響應式設計 - 平板版本號 */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-version-section {
        font-size: 11px;
    }
}