/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #333;
}

.layout_wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航样式 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.navigation {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ff6b35;
}

.nav-link.active {
    color: #ff6b35;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #ff6b35;
    border-radius: 2px;
}

/* 主内容区域 */
.main_background {
    flex: 1;
}

.main {
    width: 100%;
}

/* 视频区域样式 */
.video-part {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 宽高比 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 20px;
}

.title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sec-title {
    font-size: 24px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 合作伙伴区域样式 */
.partner {
    padding: 80px 20px;
    background: #f8f9fa;
    text-align: center;
}

.box-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #444;
}

.box-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.parnter-content {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.parnter-part {
    width: 100%;
    overflow: hidden;
}

.partner-scroll {
    display: flex;
    animation: scroll 20s linear infinite;
    width: fit-content;
}

.partner-scroll > div {
    flex: 0 0 auto;
    margin: 0 20px;
}

.parnter-img {
    height: 95px;
    width: auto;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}

.parnter-img:hover {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.mask {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.left-mask {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}

.right-mask {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}

/* 页脚样式 */
.footer {
    background: #333;
    color: white;
    padding: 30px 0 0 0;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 20px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 8px;
}

.footer-domain {
    font-size: 14px;
    color: #ccc;
}

.footer-contact {
    flex: 1;
    max-width: 600px;
}

.contact-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-label {
    color: #ccc;
    min-width: 80px;
}

.contact-value {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding: 15px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wraper {
        padding: 10px 0;
    }
    
    .nav_a {
        margin: 0 10px;
        font-size: 14px;
    }
    
    .title {
        font-size: 32px;
    }
    
    .sec-title {
        font-size: 18px;
    }
    
    .box-title {
        font-size: 28px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .partner-scroll > div {
        margin: 0 10px;
    }
    
    .parnter-img {
        height: 40px;
    }
    
    /* 移动端视频优化 */
    .video-part {
        padding-bottom: 75%; /* 4:3 宽高比，适合移动端 */
    }
    
    .video {
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 480px) {
    .topimg {
        padding: 0 10px;
    }
    
    .nav_a {
        margin: 0 5px;
        font-size: 12px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .sec-title {
        font-size: 16px;
    }
    
    .box-title {
        font-size: 24px;
    }
    
    .partner {
        padding: 40px 10px;
    }
    
    /* 小屏幕视频优化 */
    .video-part {
        padding-bottom: 100%; /* 1:1 宽高比，适合小屏幕 */
    }
}

/* Google翻译组件样式 */
.translate-widget {
    margin-left: 20px;
}

/* 更具体的选择器确保样式生效 */
#google_translate_element .goog-te-gadget {
    font-family: inherit !important;
    font-size: 14px !important;
}

#google_translate_element .goog-te-gadget-simple {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    color: white !important;
    white-space: nowrap !important;
}

#google_translate_element .goog-te-gadget-simple:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

#google_translate_element .goog-te-gadget-simple span {
    color: white !important;
}

#google_translate_element .goog-te-gadget-simple a {
    color: white !important;
    text-decoration: none !important;
}

#google_translate_element .goog-te-gadget-simple a span {
    color: white !important;
}

/* 翻译图标样式 */
#google_translate_element .goog-te-gadget-icon {
    margin-right: 5px !important;
}

/* 下拉箭头样式 */
#google_translate_element .goog-te-gadget-simple a span[aria-hidden="true"] {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* 隐藏Google翻译横幅 */
/* .goog-te-banner-frame {
    display: none !important;
} */

body {
    top: 0px !important;
}

/* 翻译下拉菜单样式优化 */
.goog-te-menu-frame {
    max-height: 400px !important;
    overflow-y: auto !important;
}

/* 响应式设计 - 翻译组件 */
@media (max-width: 768px) {
    .translate-widget {
        margin-left: 10px;
    }
    
    .translate-widget .goog-te-gadget-simple {
        padding: 3px 8px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .translate-widget {
        margin-left: 5px;
    }
    
    .translate-widget .goog-te-gadget-simple {
        padding: 2px 6px !important;
        font-size: 11px !important;
    }
}