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

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

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

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

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

.logo h1 {
    font-size: 24px;
    color: #2c3e50;
}

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

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

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #3498db;
}

/* 轮播图样式 */
.banner {
    position: relative;
    height: 60vh; /* 减小轮播图高度，让页面更紧凑 */
    margin-top: 70px;
    overflow: hidden;
    color: #fff;
}

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

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

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

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    z-index: 1;
}

.banner-slide .banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.banner-slide .banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* 轮播图导航按钮 */
.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(0,0,0,0.8);
}

/* 轮播图指示器 */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

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

.banner-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 轮播图内容样式 */
.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
}

.banner-content .btn {
    background: #3498db;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
    display: inline-block;
    margin-top: 20px;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #2980b9;
}

/* 通用section样式 */
section {
    padding: 60px 0; /* 减少上下内边距，让页面更紧凑 */
}

section h2 {
    text-align: center;
    margin-bottom: 30px; /* 减少标题底部间距 */
    font-size: 32px; /* 减小标题字体大小 */
    color: #2c3e50;
}

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

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

.product-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.product-item h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* 关于我们样式 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    font-size: 16px;
}

/* 服务项目样式 */
.services {
    background: #f9f9f9;
}

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

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.service-item h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* 技术文章样式 */
.articles {
    background: #fff;
}

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

.article-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: left;
}

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

.article-content {
    padding: 20px;
}

.article-item h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 20px;
}

.article-meta {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
}

.article-meta span {
    margin-right: 15px;
}

.article-item p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 联系我们样式 */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-item h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact-form h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* 应用领域样式 */
.applications {
    background: #f9f9f9;
}

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

.application-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.application-image {
    height: 200px;
    overflow: hidden;
}

.application-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.application-content {
    padding: 25px;
}

.application-content h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 20px;
}

.application-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.application-content p:last-child {
    margin-bottom: 0;
}

/* 页脚样式 */
.footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .banner-content h2 {
        font-size: 32px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .product-grid,
    .service-grid,
    .application-grid {
        grid-template-columns: 1fr;
    }
}