/* ==========================================================================
   1. Global Styles
   ========================================================================== */
body {
    font-family: 'Montserrat','Dosis', 'Jost', 'Oswald', 'Lato', Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* 防止水平滚动 */
}

/* 防止菜单打开时背景滚动 */
body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0);
    box-sizing: border-box;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* 磨砂玻璃效果 (滚动时添加) */
header.glass-effect {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    /* Safari 支持 */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.5);
    /* 可选：添加半透明背景 */
}

.logo {
    display: flex;
    align-items: center;
    margin: 4px 20px 0 200px;
    /* 调整边距以适应布局 */
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    width: auto;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
    /* 稍微减少间距 */
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 10px 0;
    display: inline-block;
    transition: color 0.3s ease;
}

/* 导航链接 Hover 效果 */
nav ul li a:hover {
    color: #ffffff;
    /* 保持白色，但可以添加其他效果 */
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    /* 调整下划线位置 */
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
    transform: translateX(0);
}

nav ul li a.active {
    color: #ffffff;
    /* 当前活动链接样式 */
    /* 可以添加其他样式，如下划线 */
    /* font-weight: 700; */
}

/* 汉堡菜单按钮 (默认隐藏) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    margin-right: 20px;
    position: relative;
    z-index: 1001;
    /* 确保在导航菜单之上 */
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 汉堡菜单激活状态 */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* ==========================================================================
   3. Dropdown Menu
   ========================================================================== */
.dropdown {
    position: relative;
    display: inline-block;
    padding: 0;
    margin: 0 30px;
}

/* 下拉菜单容器样式 */
.dropdown {
    position: relative;
}

/* 下拉菜单内容样式 */
.dropdown-content {
    display: none;
    position: absolute;
    /* left: 50%; */
    /* transform: translateX(-50%); */
    width: 100vw;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0px;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100;
}

/* 鼠标悬停时显示下拉菜单 */
@media (hover: hover) {
    .dropdown:hover .dropdown-content {
        display: block;
        opacity: 1;
        transform: translateX(-50%) translateY(2px);
    }
}
/* 下拉菜单列样式 */
.dropdown-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* 下拉菜单项样式 */
.dropdown-content a {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.dropdown-content a:hover {
    background: #f8f8f8;
}

.dropdown-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.dropdown-content h4 {
    color: #222;
    margin: 0 0 5px 0;
    font-size: 18px;
}

.dropdown-content p {
    color: #222;
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(0, 102, 204, 0.05);
    transform: translateX(5px);
}

.dropdown-content img {
    width: 100px;
    height: 100px;
    margin-right: 15px;
    border-radius: 4px;
}


.dropdown > a i {
    margin-left: 5px;
    font-size: 0.8em;
    transition: transform 0.3s;
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -10;
    /* 确保在最底层 */
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
}

/* 如果视频加载失败或不需要视频，可以使用背景图 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./Imgs/background-lumos.jpg');
    background-size: cover;
    background-position: center;
    z-index: -11;
    /* 比视频更低层 */
}

/* Hero 内容样式 (如果需要添加文字等) */
.hero h1,
.hero p {
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
    /* 添加更多样式，如位置、字体大小等 */
}

/* ==========================================================================
   5. Features Section (Common Styles)
   ========================================================================== */
.features {
    padding: 80px 0;
}

.features h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    color: #1c1c1c;
}

.features h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #1c1c1c;
}

/* ==========================================================================
   6. Product Section
   ========================================================================== */
.section.product {
       padding-top: 80px;
       padding-bottom: 20px;
       background-color: #f8f9fa;
   }
   
   .section-header {
       text-align: center;
       margin-bottom: 60px;
   }

   .section-header h2{
    font-size: 48px;
}
   
   .section-subtitle {
       color: #6c757d;
       font-size: 18px;
       margin-top: 15px;
   }
   
   /* 产品卡片布局调整 */
   .product-grid {
       display: grid;
       grid-template-columns: repeat(3, 1fr);
       gap: 20px;
       /* max-width: 1980px; */
       margin: 0 20px;
       padding: 0 ;
   }
   
   /* 合并后的产品卡片样式 */
   .product-card {
       position: relative;
       height: 500px;
       overflow: hidden;
       transition: transform 0.3s ease;
       color: white;
       border-radius: 10px;
   }
   
   .product-image-wrapper {
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
   }
   
   .product-image-wrapper img {
       width: 100%;
       height: 100%;
       object-fit: cover;
       transition: transform 0.5s ease;
   }
   
   .product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

   .product-content {
       position: absolute;
       bottom: 0;
       left: 0;
       width: 100%;
       padding: 30px;
       background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
   }
   
   .product-content h3 {
       font-size: 24px;
       margin-bottom: 10px;
       background: linear-gradient(270deg,#a29ad3 4.25%,#9bcef6 51.61%,#f5be66 80.43%,#f1d4c3 93.03%);
       background-clip: text;
       color: transparent;
   }
   
   .product-content p {
       color: white;
       margin-bottom: 20px;
       opacity: 0.9;
   }
   
   .btn-outline {
       background: transparent;
       /* border: 1px solid white; */
       color: white;
       transition: all 0.3s ease;
   }
   
   .btn-outline:hover {
       background: white;
       /* color: #0066cc; */
   }
   
   /* 响应式调整 */
   @media (max-width: 768px) {
       .product-grid {
           grid-template-columns: 1fr;
       }
       .product-content {
           padding: 25px;
       }
   }

   
   .product-content {
       padding: 25px;
   }
   
   .product-content h3 {
       font-size: 32px;
       margin-bottom: 15px;
   }
   
   .product-content p {
       color: white;
       font-size: 20px;
       margin-bottom: 20px;
       line-height: 1.6;
   }
   
   .btn-outline {
       background: transparent;
       /* border: 1px solid #0066cc; */
       color: #ffffff;
   }
   
   .btn-outline:hover {
       background: transparent;
       color: white;
       opacity: 0.7;
   }

.features#product {
    background-color: #f8f8f8;
}

.product-container {
    display: flex;
    flex-direction: column;
    gap: 100px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.product-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
}

/* 偶数项反向排列 */
.product-item:nth-child(even) {
    flex-direction: row-reverse;
}

.product-image {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image img {
    width: 100%;
    height: auto;
}



 .btn {
    display: inline-block;
    padding: 12px 0px;
    /* background-color: #0066cc; */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
}

.product-info .btn:hover {
    background-color: #0055aa;
}

/* 响应式调整 */
@media (max-width: 992px) {

    .product-item,
    .product-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .product-info {
        padding: 0 20px;
    }
}

.product-item {
    width: 30%;
    min-width: 300px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: #fff;
    /* 添加背景色 */
    border-radius: 8px;
    /* 添加圆角 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* 调整阴影 */
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
    display: block;
    border-top-left-radius: 8px;
    /* 匹配父元素圆角 */
    border-top-right-radius: 8px;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    /* 统一内边距 */
    text-align: left;
}

.product-info h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #1c1c1c;
}

.product-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    /* 增加与按钮的间距 */
}

.product-link {
    display: inline-block;
    margin-top: 15px;
    color: #1c1c1c;
    font-weight: 500;
    text-decoration: none;
    position: relative;
}

.product-link:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.product-link:hover:after {
    transform: translateX(5px);
}

/* ==========================================================================
   7. About Section
   ========================================================================== */
.features#about {
    background-color: #fff;
    padding: 100px 0;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
    /* 垂直居中对齐 */
}

.about-image {
    flex: 1;
    min-width: 300px;
    padding-right: 50px;
    box-sizing: border-box;
}

.about-image img {
    width: 100%;
    height: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    /* 添加圆角 */
}

.about-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.about-content h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1c1c1c;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 40px;
    gap: 30px;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #1c1c1c;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #666;
}

/* ==========================================================================
   8. Career & Contact Sections (Shared Background Structure)
   ========================================================================== */
#career,
#contact {
    text-align: left;
    padding: 0;
    /* 移除 features 的默认 padding */
    margin: 0;
    /* 移除默认 margin */
}

.career-background,
.contact-background {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    padding: 150px 0 150px 300px;
    /* 统一内边距结构 */
    box-sizing: border-box;
    color: white;
}

.career-background {
    background-image: url('./Imgs/bg.gif');
    padding-bottom: 200px;
    /* 保持 career 特有的底部距离 */
}

.contact-background {
    background-image: url('./Imgs/map.png');
    padding-bottom: 100px;
    /* 调整 contact 的底部距离 */
}

.career-background h1,
.contact-background h1 {
    font-size: 40px;
    text-align: left;
    text-transform: uppercase;
    line-height: 60px;
    margin: 0 0 20px 0;
    /* 调整标题下边距 */
    padding: 0;
    /* 内边距已在外层容器设置 */
}

.career-background p,
.contact-background p {
    text-align: left;
    margin: 0 0 10px 0;
    /* 调整段落下边距 */
    padding: 0;
}

.career-background .btn {
    color: white;
    /* background-color: rgb(157, 191, 229); */
    background: transparent;
    /* 确保按钮样式 */
    margin-top: 10px;
    /* 调整按钮上边距 */
    margin-left: 0;
    /* 外层容器已处理左边距 */
}

.contact-background a {
    color: #6aa1dc;
    text-align: left;
    text-decoration: none;
    display: block;
    /* 确保链接独占一行 */
    margin-bottom: 10px;
    padding: 0;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
footer {
    background-color: #010d27;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

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

footer p {
    margin-bottom: 20px;
    font-size: 14px;
    /* 调整字体大小 */
    color: #e5ecf5;
}

footer p a {
    color: #e5ecf5;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer p a:hover {
    color: #6aa1dc;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* 调整图标间距 */
    margin-top: 1rem;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    color: white;
    text-decoration: none;
    font-size: 18px;
    /* 调整图标大小 */
    transition: all 0.3s ease;
}

.social-media a:hover {
    background-color: #555;
    transform: translateY(-3px);
    color: white;
    /* 保持图标颜色 */
}

/* ==========================================================================
   10. Utility Classes
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 10px 0px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-weight: 500;
}

/* 示例：主要按钮样式 */
.btn-primary {
    /* background-color: rgb(157, 191, 229); */
    background: transparent;
    color: white;
    /* 注意：原 career 按钮是黑色文字 */
}

.btn-primary:hover {
    background-color: rgb(130, 170, 210);
    /* 添加悬停效果 */
}

/* 示例：次要按钮样式 (如果需要) */
.btn-secondary {
    background-color: #1c1c1c;
    color: white;
}

.btn-secondary:hover {
    background-color: #333;
}



/* ==========================================================================
   12. Language Switcher (如果需要)
   ========================================================================== */
/* 语言切换按钮固定在右下角 */
#lang-switch {
    position: fixed;
    /* 固定定位，相对于视口 */
    bottom: 20px;
    /* 距离底部 20px */
    right: 20px;
    /* 距离右侧 20px */
    z-index: 1000;
    /* 确保按钮在其他内容之上 */
    padding: 8px 15px;
    /* 调整内边距 */
    background-color: rgba(0, 0, 0, 0.7);
    /* 半透明黑色背景 */
    color: white;
    /* 白色文字 */
    border: none;
    border-radius: 5px;
    /* 圆角 */
    cursor: pointer;
    font-size: 14px;
    /* 调整字体大小 */
    transition: background-color 0.3s ease;
    /* 添加悬停过渡效果 */
}

#lang-switch:hover {
    background-color: rgba(0, 0, 0, 0.9);
    /* 悬停时背景变深 */
}

/* 可选：在小屏幕上调整位置或样式 */
@media (max-width: 768px) {
    #lang-switch {
        bottom: 15px;
        right: 15px;
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* 修改语言切换按钮样式 */
.lang-switch-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin: 15px auto 0;
    display: block;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* 移除原来的固定定位样式 */
#lang-switch {
    position: static;
    bottom: auto;
    right: auto;
    z-index: auto;
    margin: 15px auto 0;
    display: block;
}

.lang-switch-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Adjust button position in mobile view if necessary */
@media (max-width: 1100px) {
    nav {
        /* ... existing mobile nav styles ... */
        position: relative;
        /* Ensure button stays within nav */
    }

    .lang-switch-btn {
        /* Position the button appropriately in the mobile menu */
        margin: 15px auto;
        /* Center it or place it at the bottom */
        display: block;
        /* Make it a block element */
        width: fit-content;
        /* Adjust width */
    }

    /* Ensure the button is visible when the mobile menu is active */
    nav.active .lang-switch-btn {
        display: block;
        /* Or inline-block depending on layout */
    }


}