/* 全局样式统一规则 */
/* 确保所有页面页眉样式一致 */

.site-header {
    height: 82px !important;
    min-height: 82px !important;
    max-height: 82px !important;
    padding: 15px 32px !important;
    background-color: #ffffff !important;
    position: fixed !important;
    width: 100% !important;
    top: 0 !important;
    z-index: 1000 !important;
    border-bottom: 1px solid #eee !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important; /* 添加轻微阴影 */
}

.tesla-nav {
    height: 52px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* 固定位置页眉后，需要给内容添加顶部内边距，防止内容被页眉遮挡 */
.main-content {
    margin-top: 0 !important; /* 移除页眉与内容的间距 */
    padding-top: 82px !important; /* 与页眉高度一致，确保内容不被遮挡 */
}

/* 首页轮播图特殊处理，让其紧贴页眉 */
.hero-slider, 
.hero-section,
.slide {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 在首页特别处理，轮播图应该紧贴页眉，内容从页眉底部开始 */
body:has(.hero-slider) .main-content {
    padding-top: 0 !important;
}

.hero-slider {
    margin-top: 82px !important; /* 页眉高度 */
    padding-top: 0 !important;
}

.logo img {
    height: 48px !important;
    width: auto !important;
    /* 使用滤镜组合改为深灰色 */
    filter: brightness(0) saturate(100%) invert(24%) sepia(10%) saturate(10%) hue-rotate(172deg) brightness(97%) contrast(92%) !important;
}

/* 导航样式 */
.nav-links {
    list-style: none !important;
    display: flex !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-links a {
    color: #1C244B !important;
    text-decoration: none !important;
    font-size: 16px !important;
    transition: color 0.3s ease !important;
    font-weight: 700 !important;
    position: relative !important;
    padding: 5px 0 !important;
}

.nav-links a:hover {
    color: #1C244B !important;
}

.nav-links a.active {
    color: #1C244B !important;
    font-weight: 700 !important;
}

/* 语言切换器样式 */
.right-nav {
    display: flex !important;
    align-items: center !important;
}

.right-nav .icon-link {
    display: flex !important;
    align-items: center !important;
    color: #1C244B !important;
    font-size: 18px !important;
    margin-left: 10px !important;
}

/* 语言切换图标 - 桌面端显示 */
.right-nav .icon-link.lang-toggle {
    display: flex !important;
}

.lang-switcher {
    display: flex !important;
    align-items: center !important;
}

.lang-item {
    color: #666 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    padding: 2px 5px !important;
    margin: 0 2px !important;
}

.lang-item.active {
    color: #1C244B !important;
    font-weight: bold !important;
}

/* 特别的移动端样式覆盖 */
@media (max-width: 992px) {
    /* 在移动端隐藏语言图标 */
    .right-nav .icon-link.lang-toggle {
        display: none !important;
    }
    
    /* 移除之前的强制显示代码 */
    .right-nav > *:not(.mobile-menu-btn) {
        display: none !important;
    }
}

/* 响应式规则 */
@media (max-width: 768px) {
    .site-header {
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
        padding: 0 10px !important;
    }
    
    .logo img {
        height: 28px !important;
    }
    
    /* 移动端调整内容顶部内边距 */
    .main-content {
        padding-top: 60px !important; /* 与移动端页眉高度一致 */
    }
    
    /* 首页轮播图在移动端的特殊调整 */
    body:has(.hero-slider) .main-content {
        padding-top: 0 !important;
    }
    
    .hero-slider {
        margin-top: 60px !important; /* 移动端页眉高度 */
    }
} 

.slide-content {
    max-width: 600px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);  /* 这里是轮播内容的阴影 */
} 

/* 页脚样式 */
.site-footer {
    background-color: #1C244B !important;
    padding: 0 !important;
    text-align: center !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    margin-top: 10px !important;
}

.site-footer p {
    color: #ffffff !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
} 

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed !important;
    bottom: 20px !important;
    right: 15px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background-color: #1C244B !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1050 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top:hover {
    background-color: #2d375f !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
}

.back-to-top i {
    font-size: 20px !important;
}

/* 阿拉伯语RTL下回到顶部按钮位置适配 */
html[dir="rtl"] .back-to-top {
    left: 15px !important;
    right: auto !important;
}

/* 全局禁止选中、拖拽、右键菜单 */
body, img, video, .main-content, .slide-content {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}
img, video {
    -webkit-user-drag: none !important;
    pointer-events: auto;
} 