

/* 通用区块样式 */
section {
    padding: 60px 0;
}

section h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #333;
}

/* 产品展示样式 */
.products {
    background-color: #fff;
}

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

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

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

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

.product-item .no-image {
    width: 100%;
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
}

.product-item h4 {
    padding: 20px;
    font-size: 18px;
}

.product-item h4 a {
    text-decoration: none;
    color: #333;
}

.product-item h4 a:hover {
    color: #2196F3;
}

/* 首页产品参数样式 */
.product-item .product-params {
    padding: 0 20px 20px;
}

.product-item .product-params h5 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: bold;
}

.product-item .product-params table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.product-item .product-params table td {
    padding: 6px 8px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.product-item .product-params table tr:nth-child(even) {
    background-color: #f5f5f5;
}

.product-item .product-params table td:first-child {
    font-weight: bold;
    color: #666;
    width: 40%;
}

/* 新闻动态样式 */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.news-item h4 {
    margin-bottom: 15px;
}

.news-item h4 a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

.news-item h4 a:hover {
    color: #2196F3;
}

.news-item p {
    color: #666;
    line-height: 1.8;
}

/* 图片展示样式 */
.gallery {
    background-color: #fff;
}

.gallery-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

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

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

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-item .no-image {
    width: 100%;
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
}

.gallery-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    text-align: center;
}

.gallery-item a {
    text-decoration: none;
}

/* 联系我们样式 */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 250px;
}

/* 底部样式 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* 更多链接样式 */
.more-link {
    text-align: center;
}

.more-link a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.more-link a:hover {
    background-color: #1976D2;
}

/* 产品详情页样式 */
.product-detail {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-detail h2 {
    margin-bottom: 20px;
    color: #333;
}

.product-detail .product-image {
    margin-bottom: 30px;
    text-align: center;
}

.product-detail .product-image img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
}

.product-detail .product-content {
    line-height: 1.8;
}

.product-detail .product-content h3 {
    text-align: left;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 22px;
}

.product-detail .product-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.product-detail .product-content table td {
    padding: 12px;
    border: 1px solid #ddd;
}

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

/* 新闻详情页样式 */
.news-detail {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-detail h2 {
    margin-bottom: 10px;
    color: #333;
}

.news-detail .news-date {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.news-detail .news-content {
    line-height: 1.8;
}

.news-detail .news-content img {
    max-width: 100%;
    margin: 20px 0;
    border-radius: 8px;
}

/* 图片详情页样式 */
.gallery-detail {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.gallery-detail h2 {
    margin-bottom: 20px;
    color: #333;
}

.gallery-detail .gallery-image {
    margin-bottom: 30px;
}

.gallery-detail .gallery-image img {
    max-width: 100%;
    max-height: 600px;
    border-radius: 8px;
}

.gallery-detail .gallery-description {
    line-height: 1.8;
    color: #666;
}

/* 留言表单样式 */
.contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

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

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

.form-group .verification-code {
    display: flex;
    gap: 10px;
}

.form-group .verification-code input {
    flex: 1;
}

.form-group .verification-code button {
    padding: 10px 15px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.form-group .verification-code button:hover {
    background-color: #1976D2;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #1976D2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px;
    }
    
    .banner h2 {
        font-size: 28px;
    }
    
    .product-list,
    .news-list,
    .gallery-list {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .product-detail,
    .news-detail,
    .gallery-detail,
    .contact-form {
        padding: 20px;
    }

    /* 隐藏漂浮客服在移动端 */
    .floating-customer-service {
        display: none;
    }
}

/* 右侧漂浮客服 */
.floating-customer-service {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.service-item {
    display: block;
    width: 50px;
    height: 50px;
    background-color: #2196F3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.5);
}

.service-item:hover {
    background-color: #1976D2;
    transform: scale(1.1);
}

.service-item .icon {
    font-size: 24px;
}

.service-tooltip {
    position: absolute;
    right: 60px;
    background-color: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.service-item:hover .service-tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

.service-item.qq {
    background-color: #12B7F5;
}

.service-item.qq:hover {
    background-color: #0FA0E0;
}

.service-item.wechat {
    background-color: #07C160;
}

.service-item.wechat:hover {
    background-color: #06A352;
}

.service-item.phone {
    background-color: #FF9800;
}

.service-item.phone:hover {
    background-color: #F57C00;
}

.service-item.top {
    background-color: #666;
}

.service-item.top:hover {
    background-color: #444;
}