/* 全局样式 */
* {
    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;
    padding-top: 80px; /* 为固定的顶部栏和主导航预留空间 */
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 顶部栏 */
.top-bar {
    background-color: #0066cc;
    color: white;
    padding: 10px 0;
    font-size: 14px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info .phone {
    font-weight: bold;
    font-size: 32px;
}

/* 主导航 */
.main-nav {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 40px;
    z-index: 1000;
}

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

.logo h1 {
    font-size: 24px;
    color: #0066cc;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Banner 轮播图 */
.banner-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

/* 每个轮播项的背景渐变 */
.carousel-slide:nth-child(1) {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
}

.carousel-slide:nth-child(2) {
    background: linear-gradient(135deg, #0055aa 0%, #0088ee 100%);
}

.carousel-slide:nth-child(3) {
    background: linear-gradient(135deg, #0077dd 0%, #00aaff 100%);
}

.banner-content {
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.banner-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

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

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

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: white;
    width: 15px;
    height: 15px;
    transform: scale(1.2);
}

/* 旧版 Banner 样式保留（用于其他页面） */
.banner {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

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

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

.banner-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
}

.btn-primary:hover {
    background-color: #0055aa;
}

.btn-secondary {
    background-color: white;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.btn-secondary:hover {
    background-color: #0066cc;
    color: white;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
    font-weight: bold;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #0066cc;
    margin-bottom: 10px;
}

.section-title p {
    font-size: 32px;
    font-weight: bold;
}

/* 产品部分 */
.products-section {
    padding: 80px 0;
    background-color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f0f0f0;
}

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

.product-info {
    padding: 20px;
}

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

.product-info .model {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-info .category {
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
}

.product-info .description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.more-link {
    text-align: center;
    margin-top: 30px;
}

/* 解决方案 */
.solutions-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.solution-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.solution-item {
    background: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.solution-item:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-3px);
}

/* 特点优势 */
.features-section {
    padding: 80px 0;
    background-color: white;
}

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

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background: #f9f9f9;
    transition: all 0.3s;
}

.feature-card:hover {
    background: #0066cc;
    color: white;
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #0066cc;
}

.feature-card:hover h3 {
    color: white;
}

.feature-card p {
    line-height: 1.8;
    color: #666;
}

.feature-card:hover p {
    color: white;
}

/* 案例部分 */
.cases-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.case-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.case-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f0f0f0;
}

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

.case-info {
    padding: 20px;
}

.case-category {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.case-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0066cc;
}

.case-info .customer {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.case-info .content {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 客户见证 */
.testimonials-section {
    padding: 80px 0;
    background-color: white;
}

.client-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.client-item {
    background: #f9f9f9;
    padding: 30px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    color: #0066cc;
    font-size: 18px;
    transition: all 0.3s;
}

.client-item:hover {
    background: #0066cc;
    color: white;
    transform: scale(1.05);
}

/* 联系部分 */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: white;
    text-align: center;
}

.contact-section .section-title h2,
.contact-section.section-title p {
    color: white;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

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

.contact-item .phone-number {
    font-size: 32px;
    font-weight: bold;
}

/* 页脚 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content .container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #0099ff;
}

.footer-section p {
    line-height: 1.8;
    color: #ccc;
}

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

.footer-section ul li a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #0099ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
}

/* 产品详情 */
.product-detail {
    padding: 80px 0;
    background-color: white;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-detail-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.product-detail-image img {
    width: 100%;
    height: auto;
}

.product-detail-info h2 {
    font-size: 32px;
    color: #0066cc;
    margin-bottom: 20px;
}

.product-detail-info .model,
.product-detail-info .category {
    color: #666;
    margin-bottom: 10px;
}

.product-description,
.product-features,
.product-scope,
.product-spec-table {
    margin: 30px 0;
}

.product-description h3,
.product-features h3,
.product-scope h3,
.product-spec-table h3 {
    font-size: 22px;
    color: #0066cc;
    margin-bottom: 15px;
}

.product-description p,
.product-scope p {
    line-height: 1.8;
    color: #666;
}

.product-features pre {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    white-space: pre-wrap;
    line-height: 1.8;
    color: #666;
}

/* 产品规格表格样式 */
.product-spec-table {
    margin: 30px 0;
}

/*.product-spec-table h3 {*/
/*    font-size: 22px;*/
/*    color: #0066cc;*/
/*    margin-bottom: 15px;*/
/*}*/

.product-spec-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.product-spec-table table th,
.product-spec-table table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.product-spec-table table th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}

.product-spec-table table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.product-spec-table table tr:hover {
    background-color: #f0f0f0;
}

.contact-action {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* 案例详情 */
.case-detail {
    padding: 80px 0;
    background-color: white;
}

.case-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.case-detail-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.case-detail-image img {
    width: 100%;
    height: auto;
}

.case-detail-info {
    padding: 20px;
}

.case-detail-info h2 {
    font-size: 32px;
    color: #0066cc;
    margin-bottom: 20px;
}

.case-detail-info .customer {
    color: #666;
    font-size: 16px;
    margin: 20px 0;
}

.case-description {
    margin: 30px 0;
}

.case-description h3 {
    font-size: 22px;
    color: #0066cc;
    margin-bottom: 15px;
}

.case-description p {
    line-height: 1.8;
    color: #666;
}

/* 新闻列表 */
.news-section {
    padding: 80px 0;
    background-color: white;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateX(5px);
}

.news-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

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

.news-info {
    padding: 20px;
}

.news-date,
.news-category {
    display: inline-block;
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
    margin-right: 15px;
}

.news-info h3 {
    font-size: 22px;
    color: #0066cc;
    margin-bottom: 10px;
}

.news-info .content {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 新闻详情 */
.news-detail {
    padding: 80px 0;
    background-color: white;
}

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

.news-meta {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.news-date,
.news-category {
    color: #999;
    margin-right: 20px;
}

.news-detail-text {
    line-height: 2;
    color: #333;
    font-size: 16px;
    margin: 30px 0;
}

.back-link {
    margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .banner-content h1 {
        font-size: 32px;
    }
    
    .banner-content p {
        font-size: 18px;
    }
    
    .product-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail-content,
    .case-detail-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 30px;
    }
    
    .news-item {
        grid-template-columns: 1fr;
    }
    
    /* 轮播图移动端适配 */
    .banner-carousel {
        height: 400px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .indicator.active {
        width: 12px;
        height: 12px;
    }
}
