/* 基础样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

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

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo img {
    height: 50px;
}

/* 导航菜单 */
nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
    margin-left: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-link:hover {
    color: #0056b3;
}

.nav-link i {
    margin-left: 5px;
    font-size: 12px;
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    list-style: none;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 1000;
    display: none;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 0 15px;
}

.dropdown-link {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-link:hover {
    background-color: #f8f9fa;
    color: #0056b3;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* 导航栏滚动效果 */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header.scrolled .nav-link {
    color: #333;
    text-shadow: none;
}

header.hidden {
    transform: translateY(-100%);
}

/* 轮播图样式 */
.carousel {
    position: relative;
    overflow: hidden;
    height: 800px;
    background-color: #000;
    margin-top: 0;
}

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

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.carousel-item.active .carousel-caption {
    opacity: 1;
}

.carousel-btn {
    display: inline-block;
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

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

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    width: 80%;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-caption h2 {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: bold;
}

.carousel-caption p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

/* 控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

/* 内容区域样式 */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #0056b3;
    margin: 15px auto 0;
}

/* 关于我们样式 */
.about {
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0056b3;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 产品中心样式 */
.products {
    background-color: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-img {
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
}

.product-btn {
    display: inline-block;
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.product-btn:hover {
    background-color: #004494;
}

/* 成功案例样式 */
.cases {
    background-color: #fff;
}

.cases-slider {
    position: relative;
    overflow: hidden;
}

.cases-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.case-item {
    min-width: 100%;
    padding: 0 15px;
}

.case-content {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.case-img {
    height: 300px;
}

.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.case-info p {
    color: #666;
    margin-bottom: 15px;
}

/* 招贤纳士样式 */
.careers {
    background-color: #f8f9fa;
}

.jobs-list {
    max-width: 800px;
    margin: 0 auto;
}

.job-item {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.job-item:hover {
    transform: translateY(-5px);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.job-title {
    font-size: 20px;
    color: #0056b3;
}

.job-salary {
    color: #e65100;
    font-weight: bold;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    color: #666;
}

.job-desc {
    margin-bottom: 15px;
    color: #333;
}

.job-btn {
    display: inline-block;
    background-color: #0056b3;
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.job-btn:hover {
    background-color: #004494;
}

/* 联系我们样式 */
.contact {
    background-color: #fff;
}

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #0056b3;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-icon {
    font-size: 20px;
    color: #0056b3;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.contact-text {
    color: #333;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #0056b3;
    outline: none;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    display: inline-block;
    background-color: #0056b3;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #004494;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #0056b3;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #004494;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .carousel-caption h2 {
        font-size: 28px;
    }

    .carousel-caption p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .carousel {
        height: 400px;
    }

    .carousel-caption {
        bottom: 10%;
    }

    .carousel-caption h2 {
        font-size: 24px;
    }

    .carousel-caption p {
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }
}
