/**
 * BCAI Theme - 导航与页脚样式
 */

/* ====================================================
 * 1. 顶部导航
 * ==================================================== */
.bcai-header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 固定顶部 */
.bcai-nav-fixed {
    position: fixed;
}

/* 随页面滚动 */
.bcai-nav-scroll {
    position: relative;
}

/* 智能隐藏 */
.bcai-nav-smart {
    position: fixed;
    transition: transform 0.3s ease;
}

.bcai-nav-smart.bcai-nav-hidden {
    transform: translateY(-100%);
}

/* 透明导航（首页大图时） */
.bcai-nav-transparent {
    background: transparent;
    box-shadow: none;
}

.bcai-nav-transparent.bcai-nav-scrolled {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bcai-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

/* Logo */
.bcai-site-logo {
    flex: 0 0 auto;
    margin-right: 30px;
}

.bcai-site-logo img {
    height: 50px;
    width: auto;
}

.bcai-site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bcai-primary);
    text-decoration: none;
}

/* 主导航菜单 */
.bcai-primary-nav {
    flex: 1;
}

.bcai-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.bcai-menu a {
    display: block;
    padding: 10px 0;
    color: var(--bcai-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.bcai-menu a:hover {
    color: var(--bcai-primary);
}

/* 多语言切换器 */
.bcai-lang-switcher {
    margin: 0 20px;
}

.bcai-lang-left {
    order: -1;
}

.bcai-lang-right {
    order: 1;
}

.bcai-lang-dropdown {
    position: relative;
}

.bcai-lang-current {
    background: none;
    border: 1px solid var(--bcai-border);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.bcai-lang-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 150px;
    list-style: none;
    margin: 0;
}

.bcai-lang-dropdown:hover .bcai-lang-options {
    display: block;
}

.bcai-lang-options a {
    display: block;
    padding: 8px 15px;
    color: var(--bcai-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.bcai-lang-options a:hover {
    background: var(--bcai-bg-light);
    color: var(--bcai-primary);
}

/* CTA按钮 */
.bcai-header-cta {
    margin-left: 20px;
}

.bcai-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.bcai-button-primary {
    background: var(--bcai-primary);
    color: white;
}

.bcai-button-primary:hover {
    background: var(--bcai-primary-dark);
    color: white;
    text-decoration: none;
}

/* 移动端菜单按钮 */
.bcai-mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.bcai-mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--bcai-text);
    transition: all 0.3s ease;
}

/* 移动端菜单 */
.bcai-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
}

.bcai-mobile-menu.bcai-active {
    display: block;
}

.bcai-mobile-menu-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: white;
    padding: 30px;
    overflow-y: auto;
}

.bcai-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bcai-mobile-menu-list li {
    margin-bottom: 15px;
}

.bcai-mobile-menu-list a {
    display: block;
    padding: 10px 0;
    color: var(--bcai-text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
}

/* ====================================================
 * 2. 底部页脚
 * ==================================================== */
.bcai-footer {
    background: var(--bcai-bg-dark);
    color: white;
    padding: 60px 0 0;
}

.bcai-footer-inner {
    display: grid;
    gap: 40px;
}

.bcai-footer-cols-1 {
    grid-template-columns: 1fr;
}

.bcai-footer-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.bcai-footer-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.bcai-footer-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.bcai-footer-col {
    margin-bottom: 30px;
}

.bcai-footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.bcai-footer-desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.bcai-footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
}

/* 联系信息 */
.bcai-footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

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

.bcai-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bcai-social-links a:hover {
    background: var(--bcai-primary);
    color: white;
}

/* 页脚菜单 */
.bcai-footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bcai-footer-menu-list li {
    margin-bottom: 10px;
}

.bcai-footer-menu-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.bcai-footer-menu-list a:hover {
    color: white;
}

/* 底部版权栏 */
.bcai-footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 40px;
}

.bcai-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bcai-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.bcai-icp {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.bcai-icp a {
    color: rgba(255, 255, 255, 0.5);
}

/* ====================================================
 * 3. 响应式
 * ==================================================== */
@media (max-width: 767px) {
    .bcai-primary-nav,
    .bcai-lang-switcher,
    .bcai-header-cta {
        display: none;
    }
    
    .bcai-mobile-menu-toggle {
        display: flex;
    }
    
    .bcai-footer-inner {
        grid-template-columns: 1fr;
    }
    
    .bcai-footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .bcai-footer-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
