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

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
}

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

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

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

.logo h1 {
    font-size: 24px;
    color: #1a56a8;
}

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

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #1a56a8;
}

/* 轮播图区域 */
.banner {
    position: relative;
    height: 600px;
    margin-top: 80px;
    overflow: hidden;
}

.banner-slides {
    position: relative;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide:nth-child(1) {
    background-image: url('images/banner1.png');
}

.banner-slide:nth-child(2) {
    background-image: url('images/banner2.png');
}

.banner-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.banner-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.banner-control.active {
    background-color: #fff;
}

/* 关于我们部分样式 */
.about-section {
    padding: 80px 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/background.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.company-intro {
    padding: 30px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.company-intro h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
}

.company-intro p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.stat-card .number {
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.stat-card .label {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
}

/* 产品中心和工程案例共用样式 */
.product-item,
.case-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-item:hover,
.case-item:hover {
    transform: translateY(-5px);
}

.product-item img,
.case-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-item:hover .overlay,
.case-item:hover .overlay {
    opacity: 1;
}

.view-btn {
    background-color: #1a56a8;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.view-btn:hover {
    background-color: #0d3b7a;
}

/* 产品中心部分样式 */
.products-section {
    padding: 80px 0;
    background: url('images/bg2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
}

.products-section .section-title {
    color: #333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.product-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.product-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item:hover .overlay {
    opacity: 1;
}

.product-item .view-btn {
    color: #fff;
    font-size: 18px;
    padding: 10px 20px;
    border: 2px solid #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.product-item:hover .view-btn {
    background: #fff;
    color: #333;
}

/* 工程案例部分样式 */
.cases-section {
    padding: 80px 0;
    background: url('images/bg2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #333;
}

.cases-section .section-title {
    color: #333;
    margin-bottom: 40px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.case-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 16/9;
}

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

.case-item img,
.case-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-item:hover .overlay {
    opacity: 1;
}

.case-item .view-btn {
    color: #fff;
    font-size: 18px;
    padding: 10px 20px;
    border: 2px solid #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.case-item:hover .view-btn {
    background: #fff;
    color: #333;
}

/* 首页联系我们部分样式 */
.home-contact-section {
    padding: 80px 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/background.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.home-contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.home-contact-info {
    display: grid;
    gap: 20px;
}

.home-contact-item {
    background-color: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.home-contact-item h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
}

.home-contact-item ul {
    list-style: none;
}

.home-contact-item li {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.8);
}

.home-contact-item strong {
    color: #fff;
    margin-right: 10px;
}

/* 联系我们页面样式 */
.contact-section {
    padding: 80px 0;
    background: url('images/bg2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info {
    display: grid;
    gap: 20px;
}

.contact-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.contact-item ul {
    list-style: none;
}

.contact-item li {
    margin-bottom: 10px;
    color: #666;
}

.contact-item strong {
    color: #333;
    margin-right: 10px;
}

/* 数字跳动动画 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.number {
    animation: countUp 1s ease-out forwards;
}

/* 页脚 */
.footer {
    background-color: #1a56a8;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .products-grid,
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .product-item img,
    .case-item img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .main-nav ul {
        margin-top: 20px;
    }

    .main-nav li {
        margin: 0 10px;
    }

    .business-scope .scope-list {
        grid-template-columns: 1fr;
    }
    
    .company-intro h3, .company-info h3, .business-scope h3, .company-vision h3 {
        font-size: 20px;
    }

    .banner {
        height: 300px;
    }

    .banner-content h2 {
        font-size: 28px;
    }

    .products-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .product-item img,
    .case-item img {
        height: 300px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-item h3 {
        font-size: 20px;
    }
}

/* 返回按钮样式 */
.back-button {
    padding: 20px 0;
    background-color: #fff;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.back-button .container {
    text-align: left;
}

.back-link {
    display: inline-block;
    padding: 8px 20px;
    background-color: #1a56a8;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.back-link:hover {
    background-color: #0d3b7a;
}

/* 详情页面样式 */
.detail-section {
    padding: 40px 0;
    background-color: #fff;
    position: relative;
    z-index: 0;
    min-height: calc(100vh - 300px);
}

.detail-content {
    max-width: 1200px;
    margin: 0 auto;
}

.detail-image {
    text-align: center;
    max-width: 100%;
    height: auto;
}

.detail-image img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .detail-section {
        padding: 40px 0;
    }
}

/* 视频项样式 */
.video-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.video-item video {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-item video {
        height: 300px;
    }
} 