/* 全局样式-jn169.cn */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
    padding-top: 100px; /* 固定导航栏 */
}

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

/* 头部导航样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 20px 0;
    transition: all 0.3s ease;
}

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

.logo img {
    height: 60px;
    max-height: 60px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* 桌面端导航菜单 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item a:hover,
.nav-item a.active {
    color: #0066cc;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.nav-item a:hover::after,
.nav-item a.active::after {
    width: 100%;
}

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

/* 移动端导航菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    padding: 80px 20px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 20px;
}

.mobile-menu a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: #0066cc;
}

/* 移动端菜单关闭按钮 */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background-color: #f0f0f0;
    color: #0066cc;
    transform: rotate(90deg);
}

.mobile-menu-close:focus {
    outline: none;
}

.mobile-menu-close i {
    margin: 0;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.carousel-inner {
    position: relative;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 轮播图黑色覆盖层 */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

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

.carousel-caption {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.carousel-caption h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.carousel-caption p {
    font-size: 24px;
    animation: fadeInUp 1.5s ease;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

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

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

/* 企业理念样式 */
.philosophy {
    padding: 80px 0;
    background-color: #fff;
}

.philosophy h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.philosophy h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0066cc;
}

.philosophy-items {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.philosophy-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.philosophy-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.philosophy-item .icon {
    width: 80px;
    height: 80px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.philosophy-item:hover .icon {
    background-color: #0052a3;
    transform: scale(1.1);
}

.philosophy-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.philosophy-item p {
    font-size: 16px;
    color: #666;
}

/* 企业愿景样式 */
.vision {
    padding: 100px 0;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #fff;
    text-align: center;
}

.vision h2 {
    font-size: 36px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.vision h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #fff;
}

.vision-content p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 产品中心样式 */
.products-preview {
    padding: 80px 0;
    background-color: #fff;
}

.products-preview h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.products-preview h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0066cc;
}

.product-items {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.product-item {
    flex: 1;
    min-width: 300px;
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

.product-item p {
    font-size: 16px;
    color: #666;
    margin: 0 20px 20px;
}

.more-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: table;
}

.more-btn:hover {
    background-color: #0052a3;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

/* 成功案例样式 */
.cases-preview {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.cases-preview h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.cases-preview h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0066cc;
}

.case-items {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.case-item {
    flex: 1;
    min-width: 400px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.case-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.case-item h3 {
    font-size: 20px;
    margin: 20px;
    color: #333;
}

.case-item p {
    font-size: 16px;
    color: #666;
    margin: 0 20px 20px;
    flex-grow: 1;
}

/* 新闻中心样式 */
.news-preview {
    padding: 80px 0;
    background-color: #fff;
}

.news-preview h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.news-preview h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0066cc;
}

.news-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.news-item {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.news-item .date {
    display: inline-block;
    padding: 5px 15px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.news-item h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item h3 a:hover {
    color: #0066cc;
}

.news-item p {
    font-size: 16px;
    color: #666;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info,
.footer-links,
.footer-social {
    flex: 1;
    min-width: 250px;
}

.footer-info h3, .footer-links h3, .footer-social h3 {
        font-size: 20px;
        margin-bottom: 20px;
        position: relative;
        padding-bottom: 10px;
    }
    
    /* 公司联系方式 */
.companies-container {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* 公司联系方式板块样式 */
.company-contact {
    flex: 1;
    min-width: 300px;
    margin-bottom: 30px;
    padding: 30px;
    background-color: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
    
    /* 确保留言板块宽度与公司联系方式板块一致 */
    .footer-info,
    .footer-links,
    .footer-social {
        flex: 1;
        min-width: 250px;
        width: 100%;
    }
    
    .company-title {
        font-size: 24px;
        margin-bottom: 25px;
        color: #0066cc;
        position: relative;
        padding-bottom: 15px;
    }
    
    .company-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 2px;
        background-color: #0066cc;
    }

.footer-info h3::after,
.footer-links h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #0066cc;
}

.footer-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-info p i {
    margin-right: 10px;
    color: #0066cc;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 16px;
}

.footer-links a:hover {
    color: #0066cc;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #444;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #0066cc;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 50px; /* 增加底部内边距，为移动端底部导航留出空间 */
    border-top: 1px solid #444;
}

.footer-bottom p {
    font-size: 14px;
    color: #ddd;
}

/* 移动端底部固定导航栏 */
.mobile-footer-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    justify-content: space-around;
    padding: 10px 0;
}

.mobile-footer-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    padding: 10px 0;
    font-size: 14px;
    transition: color 0.3s ease;
}

.mobile-footer-nav a:hover,
.mobile-footer-nav a.active {
    color: #0066cc;
}

.mobile-footer-nav i {
    font-size: 20px;
    margin-bottom: 5px;
}

/* 联系页面样式 */
.contact-info {
    width: 100%;
    margin-bottom: 40px;
}

.contact-form-container {
    width: 100%;
}

.contact-form {
    width: 100%;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* 验证码相关样式 */
.captcha-group .captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-input {
    flex: 1;
    max-width: 200px;
}

.captcha-image {
    width: 150px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    letter-spacing: 3px;
    user-select: none;
    transition: background-color 0.3s ease;
}

.captcha-image:hover {
    background-color: #e0e0e0;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 992px) {
    .companies-container {
        flex-direction: column;
    }
    
    .company-contact {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .contact-form {
        padding: 25px;
    }
    
    .captcha-group .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-input {
        max-width: none;
    }
    
    .captcha-image {
        width: 100%;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .carousel {
        height: 500px;
    }
    
    .carousel-caption h1 {
        font-size: 36px;
    }
    
    .carousel-caption p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .carousel {
        height: 400px;
    }
    
    .carousel-caption h1 {
        font-size: 28px;
    }
    
    .carousel-caption p {
        font-size: 18px;
    }
    
    .philosophy-items,
    .product-items,
    .case-items {
        justify-content: center;
    }
    
    .philosophy-item,
    .product-item,
    .case-item {
        min-width: 100%;
    }
    
    .footer-content {
        justify-content: center;
    }
    
    .mobile-footer-nav {
        display: flex;
    }
    
    /* 为移动端底部导航栏留出空间 */
    footer {
        padding-bottom: 50px;
    }
}

@media (max-width: 576px) {
    .carousel {
        height: 300px;
    }
    
    .carousel-caption h1 {
        font-size: 24px;
    }
    
    .carousel-caption p {
        font-size: 16px;
    }
    
    .philosophy h2,
    .vision h2,
    .products-preview h2,
    .cases-preview h2,
    .news-preview h2 {
        font-size: 28px;
    }
    
    .vision-content p {
        font-size: 18px;
    }
}

/* 滚动到顶部按钮 */
.scroll-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #0052a3;
    transform: translateY(-3px);
}