* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    position: relative;
    width: 100%;
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #87CEEB;
    background-image: url('img/htmlbg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: block;
    padding: 20px;
    margin: 0;
}

.page-wrapper {
    background-color: white;
    border: 10px solid #4682B4;
    border-radius: 20px;
    max-width: 1200px;
    width: 100%;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

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

/* 顶部导航栏 */
.header {
    background-color: white !important;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid transparent;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 导航和语言切换器容器 */
.nav-language-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* 语言切换器样式 */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 版权信息样式 */
.copyright-info {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    position: relative;
    z-index: 1001;
    display: block;
    width: 100%;
}

/* 语言标签样式 */
.language-label {
    font-size: 14px;
    color: #333;
    margin-right: 5px;
}

#language-selector {
    padding: 8px 16px;
    border: 1px solid #333;
    background-color: transparent;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

#language-selector:hover {
    background-color: #333;
    color: white;
}

#language-selector:focus {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.logo h1 {
    font-size: 36px;
    color: #4682B4;
    font-weight: bold;
    text-shadow: 2px 2px 4px white;
    margin: 0;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #2E8B57;
}

/* 产品轮播 */
.carousel-section {
    background-color: #4682B4;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('img/loopbg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    position: relative;
    background-color: rgba(128, 128, 128, 0.3);
    display: flex;
    height: 350px;
    padding: 20px;
    border-radius: 10px;
}

.carousel-item img {
    width: 50%;
    height: 90%;
    object-fit: cover;
    border: 8px solid white;
    border-radius: 15px;
    margin-right: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    align-self: flex-start;
    margin-top: 5px;
}

.carousel-caption {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background-color: transparent;
    color: white;
    padding: 5px 20px 0;
    text-align: left;
    border-radius: 0;
    max-width: 50%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.carousel-caption h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: white;
    font-weight: bold;
    margin-top: 0;
    padding-top: 5px;
}

.carousel-caption p {
    font-size: 16px;
    margin-bottom: 15px;
    color: white;
    line-height: 1.6;
    flex: 1;
}

.carousel-btn {
    background-color: #FFA500;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    width: 200px;
    align-self: flex-start;
    margin-bottom: 25px;
}

.carousel-btn:hover {
    background-color: #FF8C00;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
    z-index: 2;
    padding: 0;
    border-radius: 0;
}

.carousel-prev {
    left: 20px;
    background-image: url('img/LeftArrow.png');
}

.carousel-next {
    right: 20px;
    background-image: url('img/RightArrow.png');
}

.carousel-prev:hover, .carousel-next:hover {
    transform: translateY(-50%) scale(1.2);
    opacity: 0.8;
}

/* 公司简介 */
.company-intro {
    background-color: #FFD700;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.company-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    background-image: url('https://via.placeholder.com/1920x20?text=波浪装饰');
    background-size: cover;
}

.company-intro .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
    color: #666;
    font-weight: bold;
}

.company-intro .intro-text {
    max-width: 1000px;
    margin: 0 auto;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.company-intro .intro-text p {
    margin-bottom: 15px;
    text-align: left;
    color: #666;
}

.company-intro .intro-text p:last-child {
    margin-bottom: 0;
}

/* 核心团队 */
.team-section {
    background-color: #FF8C00;
    padding: 40px 0;
    overflow: hidden;
}

.team-section .section-title {
    text-align: center;
    color: white;
    margin-bottom: 20px;
    font-size: 32px;
    font-weight: bold;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.team-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.team-member img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.1);
}

.team-member p {
    font-weight: bold;
    color: white;
    font-size: 16px;
    margin: 0;
}



/* 底部 */
.footer {
    background-color: white;
    color: #333;
    padding: 20px 0 0;
    position: relative;
    margin-top: 0;
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    overflow: hidden;
    z-index: 1;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.contact-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #2E8B57;
}

.contact-info p {
    margin-bottom: 5px;
    color: #333;
}

.record-info p {
    color: #666;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    /* 轮播模块手机布局调整 */
    .carousel {
        padding: 0;
    }
    
    .carousel-inner {
        width: 100%;
    }
    
    .carousel-item {
        flex-direction: column;
        height: auto;
        padding: 15px;
        min-width: 100%;
        width: 100%;
    }
    
    .carousel-item img {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }
    
    .carousel-caption {
        padding: 10px 0;
        max-width: 100%;
        text-align: center;
    }
    
    .carousel-caption h2 {
        font-size: 20px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
    
    /* 轮播按钮居中 */
    .carousel-btn {
        align-self: center;
    }
    
    .company-intro .intro-text {
        padding: 0 10px;
    }
    
    .company-intro .intro-text p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .team-grid {
        gap: 20px;
    }
    
    .team-member img {
        width: 80px;
        height: 80px;
    }
    
    .competitive-grid {
        gap: 20px;
    }
    
    .competitive-item {
        min-width: 100px;
        padding: 15px;
    }
    
    .competitive-icon {
        font-size: 36px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .nav ul {
        gap: 10px;
    }
    
    .nav a {
        font-size: 14px;
    }
    
    .intro-icons {
        gap: 15px;
    }
    
    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .team-grid {
        gap: 15px;
    }
}