/* 通用样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 1200px;
    margin: 0 auto;
    max-width: 100%;
    padding: 0 15px;
}

/* 顶部信息条 */
.top-bar {
    background-color: #fff;
    color: #333;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}

/* 头部 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0px;
}

.logo {
    display: block;
    text-decoration: none;
}

.logo img {
    height: 48px;
    display: block;
}

.header-phone img {
    height: 90px;
    display: block;
}

/* 导航 */
.nav {
    background-color: #0d74b7;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    display: block;
    color: rgba(255,255,255,0.85);
    padding: 16px 34px;
    font-size: 16px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.nav-list li a:hover {
    color: #fff;
    background-color: rgba(0,0,0,0.15);
}

.nav-list li.active a {
    color: #fff;
    background-color: rgba(0,0,0,0.15);
}

/* 下拉菜单 */
.has-submenu {
    position: relative;
}

.has-submenu .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0d74b7;
    min-width: 140px;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.has-submenu:hover .submenu {
    display: block;
}

.has-submenu .submenu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.has-submenu .submenu li:last-child {
    border-bottom: none;
}

.has-submenu .submenu li a {
    padding: 12px 20px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

.has-submenu .submenu li a:hover {
    background-color: rgba(0,0,0,0.2);
    color: #fff;
}

/* 轮播图 */
.banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
}

.banner-slide {
    display: none;
    width: 100%;
}

.banner-slide.active {
    display: block;
}

.banner-slide img {
    width: 100%;
    display: block;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #fff;
}

/* 通用section */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    color: #0d74b7;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.section-title p {
    color: #999;
    font-size: 14px;
    letter-spacing: 1px;
}

/* 产品展示 */
.product-display {
    background-color: #fafafa;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-item {
    text-align: center;
    text-decoration: none;
    display: block;
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.product-img:hover {
    transform: translateY(-5px);
}

.product-item p {
    color: #333;
    font-size: 14px;
    padding: 0 10px;
}

/* 公司简介 */
.company-intro {
    background-color: #0d74b7;
    color: #fff;
}

.intro-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.intro-image {
    flex: 0 0 410px;
    display: block;
    text-decoration: none;
}

.intro-img {
    width: 100%;
    height: 300px;
    border-radius: 4px;
    display: block;
}

.intro-content {
    flex: 1;
}

.intro-content h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.intro-content h3 {
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    font-weight: normal;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.intro-content p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
    line-height: 1.8;
    text-indent: 2em;
}

.btn-more {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 30px;
    background-color: #fff;
    color: #0d74b7;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: #f0f0f0;
    transform: translateX(5px);
}

/* 成功案例 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.case-item {
    text-align: center;
    text-decoration: none;
    display: block;
}

.case-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.case-img:hover {
    transform: scale(1.05);
}

.case-item p {
    color: #333;
    font-size: 14px;
}

/* 新闻中心 */
.news {
    background-color: #fafafa;
}

.news-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.news-image {
    flex: 0 0 350px;
    display: block;
    text-decoration: none;
}

.news-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.news-list {
    flex: 1;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.news-item:hover {
    background-color: rgba(26, 84, 144, 0.05);
}

.news-date {
    flex: 0 0 70px;
    text-align: center;
    background-color: #0d74b7;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    height: fit-content;
}

.news-date .day {
    display: block;
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.9;
}

.news-content {
    flex: 1;
}

.news-content h4 {
    color: #333;
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.news-item:hover .news-content h4 {
    color: #0d74b7;
}

.news-content p {
    color: #888;
    font-size: 13px;
    line-height: 1.5;
}

/* 底部 */
.footer {
    background-color: #0d74b7;
    color: #fff;
    padding: 30px 0 12px 0;
}

.footer-top {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footer-nav a {
    color: #fff;
    font-size: 14px;
}

.footer-nav a:hover {
    color: #ffd700;
}

.footer-nav span {
    color: rgba(255,255,255,0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-copyright {
    text-align: center;
    padding: 12px 0;
}

.footer-copyright p {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    margin-top: 10px;
}

.footer-info p {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qr-code {
    width: 90px;
    height: 90px;
    background-color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d74b7;
    font-size: 12px;
}

.qr-placeholder {
    padding: 5px;
    text-align: center;
}

.contact-text p {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    margin-bottom: 5px;
}



/* 响应式 */
@media (max-width: 992px) {
    .container {
        width: 100%;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-list li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-list li a {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .intro-wrapper {
        flex-direction: column;
    }
    
    .intro-image {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-wrapper {
        flex-direction: column;
    }
    
    .news-image {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}
