---
import { APP_NAME, APP_COMPANY } from '../config/app.ts'
---

<footer class="site-footer">
    <div class="footer-content">
        <div class="footer-logo">
            <a href="/" title={APP_NAME}>{ APP_NAME }</a>
        </div>
        <div class="footer-links">
            <div class="footer-column">
                <h4>浏览</h4>
                <ul>
                    <li><a href="/news" title="新闻专栏">新闻专栏</a></li>
                </ul>
            </div>
            <div class="footer-column">
                <h4>帮助</h4>
                <ul>
                    <li><a href="/product" title="产品介绍">产品介绍</a></li>
                    <li><a href="/faq" title="常见问题">常见问题</a></li>
                </ul>
            </div>
            <div class="footer-column">
                <h4>关于我们</h4>
                <ul>
                    <!-- <li><a href="/about" title="关于我们">关于我们</a></li> -->
                    <li><a href="/contact" title="联系我们">联系我们</a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="footer-bottom">
        <div class="copyright">
            © {new Date().getFullYear()} { APP_COMPANY }. 保留所有权利。
        </div>
        <div class="icpoo">
            <a target="_blank" rel="noopener" href="https://beian.miit.gov.cn/" title="ICP备案信息">新ICP备2023000253号</a>
            <span class="margin-oc">新B2-20230068号</span>
            <a target="_blank" rel="noopener" class="beiancil" href="https://www.beian.gov.cn/portal/registerSystemInfo?recordcode=65400402000209" title="公安备案信息">
                <span>新公网安备 65400402000209号</span>
            </a>
        </div>
    </div>
</footer>

<style>
    .site-footer {
        background-color: var(--hulu-black);
        padding: 3rem 2rem 2rem;
        margin-top: 4rem;
        color: var(--hulu-light-gray);
    }

    .footer-content {
        display: flex;
        justify-content: space-between;
        max-width: 1200px;
        margin: 0 auto;
        padding-bottom: 2rem;
        gap: 4rem;
    }

    .footer-logo {
        flex-shrink: 0;
    }

    .footer-logo a {
        color: var(--hulu-green);
        font-size: 1.5rem;
        font-weight: 700;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer-logo a:hover {
        color: var(--hulu-green-light);
    }

    .footer-links {
        display: flex;
        gap: 4rem;
        flex-wrap: wrap;
    }

    .footer-column {
        min-width: 160px;
    }

    .footer-column h4 {
        margin: 0 0 1.25rem;
        color: black;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .footer-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-column li {
        margin-bottom: 0.75rem;
    }

    .footer-column a {
        color: var(--hulu-light-gray);
        text-decoration: none;
        transition: color 0.2s ease;
        font-size: 0.95rem;
    }

    .footer-column a:hover {
        color: var(--hulu-green);
    }

    .footer-bottom {
        max-width: 1200px;
        margin: 0 auto;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    .copyright {
        color: var(--hulu-light-gray);
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .icpoo {
        color: var(--hulu-light-gray);
        font-size: 0.875rem;
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .icpoo a {
        color: var(--hulu-light-gray);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .icpoo a:hover {
        color: var(--hulu-green);
    }

    .margin-oc {
        margin: 0 0.5rem;
    }

    @media (max-width: 1024px) {
        .footer-content {
            gap: 3rem;
        }

        .footer-links {
            gap: 3rem;
        }
    }

    @media (max-width: 768px) {
        .site-footer {
            padding: 2rem 1.5rem 1.5rem;
        }

        .footer-content {
            flex-direction: column;
            gap: 2rem;
        }

        .footer-links {
            gap: 2rem;
        }

        .footer-column {
            min-width: 140px;
        }

        .icpoo {
            gap: 1rem;
        }
    }

    @media (max-width: 480px) {
        .site-footer {
            padding: 1.5rem 1rem 1rem;
            margin-top: 2rem;
        }

        .footer-content {
            gap: 1.5rem;
        }

        .footer-logo {
            text-align: center;
        }

        .footer-links {
            display: none; /* 在移动端隐藏导航链接 */
        }

        .footer-bottom {
            padding-top: 1rem;
        }

        .copyright {
            margin-bottom: 0.5rem;
            font-size: 0.8rem;
        }

        .icpoo {
            flex-direction: column;
            gap: 0.5rem;
            font-size: 0.8rem;
        }

        .margin-oc {
            display: none;
        }

        /* 移动端显示简化的底部导航 */
        .mobile-nav {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .mobile-nav a {
            color: var(--hulu-light-gray);
            text-decoration: none;
            font-size: 0.9rem;
        }

        .mobile-nav a:hover {
            color: var(--hulu-green);
        }
    }
</style>