/**
 * Navigator Footer 样式
 * 包含 MainFooter 和 BottomLegalBar 的样式
 */

/* ==================== MainFooter 样式 ==================== */
.nav-main-footer {
    background-color: var(--nav-primary);
    color: white;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.nav-footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-items: center;
}

@media (min-width: 768px) {
    .nav-footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .nav-footer-content {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
}

.nav-footer-section {
    text-align: left;
    width: 100%;
    max-width: 280px;
}

/* Footer Logo 区域 */
.nav-footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    justify-content: flex-start;
}

.nav-footer-logo img {
    height: 2rem;
    margin-right: 0.5rem;
}

.nav-footer-logo-text {
    display: flex;
    flex-direction: column;
}

.nav-footer-logo-title {
    font-weight: bold;
    font-size: 1.125rem;
}

.nav-footer-logo-subtitle {
    font-size: 0.75rem;
    opacity: 0.7;
}

.nav-footer-description {
    opacity: 0.7;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.nav-footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.nav-footer-social a {
    color: white;
    opacity: 0.7;
    transition: var(--nav-transition);
    text-decoration: none;
}

.nav-footer-social a:hover {
    opacity: 1;
}

/* Font Awesome 图标字体 */
.nav-footer-social i,
.nav-footer-social .fa {
    font-family: 'FontAwesome' !important;
}

/* Footer 列标题 */
.nav-footer-section h3 {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
}

/* Footer 链接列表 */
.nav-footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-footer-section li {
    margin-bottom: 0.5rem;
}

.nav-footer-section a {
    color: white;
    opacity: 0.7;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--nav-transition);
}

.nav-footer-section a:hover {
    opacity: 1;
}

.nav-footer-section-hidden {
    display: none;
}

/* 联系方式样式 */
.nav-footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.nav-footer-contact {
    display: inline-block;
    text-align: left;
}

.nav-footer-contact i {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.nav-footer-contact span {
    opacity: 0.7;
    font-size: 0.875rem;
}

/* 二维码区域 */
.nav-footer-qr-container {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
}

.nav-footer-projects {
    display: none;
}

.nav-footer-qr-item p {
    color: white;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.nav-footer-qr-code {
    background-color: white;
    display: inline-block;
    border-radius: 0.25rem;
    padding: 0.25rem;
}

.nav-footer-qr-code img {
    width: 6rem;
    height: 6rem;
    display: block;
}

/* ==================== BottomLegalBar 样式 ==================== */
.nav-bottom-legal-bar {
    background-color: var(--nav-dark);
    color: white;
    padding: 1rem 0;
}

.nav-bottom-legal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .nav-bottom-legal-content {
        flex-direction: row;
    }
}

.nav-bottom-legal-copyright {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 0;
    text-align: center;
}


/* ==================== 响应式调整 ==================== */
@media (max-width: 480px) {
    .nav-main-footer {
        padding-top: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .nav-footer-content {
        gap: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .nav-footer-logo img {
        height: 1.75rem;
    }

    .nav-footer-logo-title {
        font-size: 1rem;
    }

    .nav-footer-qr-code img {
        width: 5rem;
        height: 5rem;
    }

    .nav-bottom-legal-bar {
        padding: 0.75rem 0;
    }

    .nav-bottom-legal-copyright {
        font-size: 0.75rem;
    }
}
