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

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

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

/* 顶部区域 */
.top-header {
    padding: 20px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

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

.top-left .logo {
    width: 355px;
    height: 52px;
}

.top-right {
    text-align: right;
}

.service-hotline {
    font-size: 14px;
    color: #000;
    margin-bottom: 5px;
}

.phone-number {
    font-size: 24px;
    color: #0066cc;
    font-weight: bold;
}

/* Banner区域 */
.banner {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
}

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

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.slider-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background-color: rgba(255, 255, 255, 1);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background-color: rgba(255, 255, 255, 1);
    width: 30px;
    border-radius: 5px;
}

/* 导航栏 */
.main-nav {
    background-color: #0066cc;
    position: relative;
}

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

.nav-menu li {
    flex: 1;
    text-align: center;
}

.nav-menu li a {
    display: block;
    padding: 15px 0;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background-color: #0052a3;
}

/* 移动端导航菜单按钮 */
.menu-toggle {
    display: none;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    padding: 15px;
    text-align: right;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #0066cc;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        flex: 0 0 100%;
    }
    
    .nav-menu li a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* 产品中心 */
.product-center {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #0066cc;
    margin: 10px auto 0;
}

.product-slider {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.product-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.product-item {
    flex: 0 0 calc(33.333% - 13.333px);
    text-align: center;
}

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

.product-desc {
    font-size: 16px;
    color: #333;
}

.product-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.product-controls button,
.cert-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0066cc;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-controls button:hover,
.cert-controls button:hover {
    background-color: #0052a3;
}

/* 优势模块 */
.advantages {
    padding: 60px 0;
}

.advantage-item {
    display: flex;
    margin-bottom: 60px;
    align-items: center;
}

.advantage-item.odd {
    flex-direction: row;
}

.advantage-item.even {
    flex-direction: row-reverse;
}

.advantage-image {
    flex: 0 0 40%;
}

.advantage-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.advantage-content {
    flex: 0 0 55%;
}

.advantage-title {
    font-size: 24px;
    color: #0066cc;
    margin-bottom: 20px;
    font-weight: bold;
}

.advantage-list {
    list-style: none;
}

.advantage-list li {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
}

/* 客户见证 */
.testimonials {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

.testimonial-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 4px;
}

.testimonial-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.testimonial-content {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #0052a3;
}

/* 关于我们 */
.about-us {
    padding: 60px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 0 0 40%;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.about-text {
    flex: 0 0 55%;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.about-buttons {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 15px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0052a3;
}

/* 工厂展示和研发团队 */
.factory-rd {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.factory-rd .container {
    display: flex;
    gap: 40px;
}

.factory-section,
.rd-section {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.factory-section img,
.rd-section img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 4px;
}

.factory-text,
.rd-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* 资质认证 */
.certifications {
    padding: 60px 0;
}

.cert-slider {
    overflow: hidden;
    margin-bottom: 30px;
}

.cert-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.cert-item {
    flex: 0 0 calc(25% - 15px);
}

.cert-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.cert-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 广告横幅 */
.ad-banner {
    padding: 40px 0;
}

.ad-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* 资讯模块 */
.news-modules {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.news-modules .container {
    display: flex;
    gap: 30px;
}

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

.module-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.module-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #0066cc;
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.news-list {
    list-style: none;
}

.news-list li {
    display: flex;
    margin-bottom: 20px;
    gap: 15px;
}

.news-list li img {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.news-content {
    flex: 1;
}

.news-content h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.news-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h4 a:hover {
    color: #0066cc;
}

.news-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-date {
    font-size: 12px;
    color: #999;
}

/* 底部 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-info {
    flex: 0 0 60%;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-text {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-qrcode {
    flex: 0 0 30%;
    text-align: center;
}

.footer-qrcode img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
}

.qrcode-text {
    font-size: 14px;
}

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

.copyright {
    font-size: 14px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .top-left .logo {
        width: 300px;
        height: auto;
    }
    
    .phone-number {
        font-size: 20px;
    }
    
    .banner {
        height: 400px;
    }
    
    .advantage-image img {
        height: 250px;
    }
    
    .testimonial-item img {
        height: 180px;
    }
    
    .about-image img {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .top-header .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-menu li {
        flex: 0 0 33.333%;
    }
    
    .product-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .advantage-item {
        flex-direction: column !important;
        text-align: center;
    }
    
    .advantage-image,
    .advantage-content {
        flex: 0 0 100%;
    }
    
    .advantage-image {
        margin-bottom: 30px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-image,
    .about-text {
        flex: 0 0 100%;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .factory-rd .container {
        flex-direction: column;
    }
    
    .cert-item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .news-modules .container {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .footer-info,
    .footer-qrcode {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 300px;
    }
    
    .nav-menu li {
        flex: 0 0 50%;
    }
    
    .product-item {
        flex: 0 0 100%;
    }
    
    .advantage-image img {
        height: 200px;
    }
    
    .about-image img {
        height: 250px;
    }
    
    .factory-section img,
    .rd-section img {
        height: 200px;
    }
    
    .cert-item {
        flex: 0 0 100%;
    }
    
    .ad-banner img {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 200px;
    }
    
    .nav-menu li {
        flex: 0 0 100%;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .advantage-title {
        font-size: 20px;
    }
    
    .about-buttons .btn {
        display: block;
        margin: 0 0 10px 0;
        text-align: center;
    }
    
    .ad-banner img {
        height: 100px;
    }
}

/* 其他页面通用样式 */
.page-banner {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner h1 {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 36px;
    transform: translateY(-50%);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.page-content {
    padding: 60px 0;
}

/* 产品详情页 */
.product-detail {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.product-detail-image {
    flex: 0 0 50%;
}

.product-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.product-detail-content {
    flex: 0 0 45%;
}

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

.product-detail-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
}

/* 案例详情页 */
.case-detail {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.case-detail-image {
    flex: 0 0 50%;
}

.case-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.case-detail-content {
    flex: 0 0 45%;
}

.case-detail-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.case-detail-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
}

/* 新闻详情页 */
.news-detail h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.news-meta {
    text-align: center;
    margin-bottom: 30px;
    color: #999;
    font-size: 14px;
}

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

.news-detail-content p {
    margin-bottom: 20px;
}

/* 联系我们页面 */
.contact-info {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.contact-details {
    flex: 0 0 50%;
}

.contact-details h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.contact-icon {
    font-size: 24px;
    color: #0066cc;
}

.contact-text {
    font-size: 16px;
    color: #333;
}

.contact-map {
    flex: 0 0 45%;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border-radius: 8px;
}

/* 表单样式 */
.contact-form {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
}

.contact-form h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

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

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

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #0052a3;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .product-detail,
    .case-detail,
    .contact-info {
        flex-direction: column;
    }
    
    .product-detail-image,
    .product-detail-content,
    .case-detail-image,
    .case-detail-content,
    .contact-details,
    .contact-map {
        flex: 0 0 100%;
    }
    
    .product-detail-image,
    .case-detail-image,
    .contact-details {
        margin-bottom: 30px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 102, 204, 0.3);
    border-radius: 50%;
    border-top-color: #0066cc;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 按钮悬停效果 */
.btn,
.read-more,
.submit-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after,
.read-more::after,
.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::after,
.read-more:hover::after,
.submit-btn:hover::after {
    left: 0;
}

/* 卡片悬停效果 */
.testimonial-item,
.factory-section,
.rd-section,
.module-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item:hover,
.factory-section:hover,
.rd-section:hover,
.module-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* 图片悬停效果 */
.product-item img,
.advantage-image img,
.testimonial-item img,
.about-image img,
.factory-section img,
.rd-section img,
.cert-item img {
    transition: transform 0.3s ease;
}

.product-item img:hover,
.advantage-image img:hover,
.testimonial-item img:hover,
.about-image img:hover,
.factory-section img:hover,
.rd-section img:hover,
.cert-item img:hover {
    transform: scale(1.05);
}

/* 导航链接动画 */
.nav-menu li a {
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

/* 常见问题页面样式 */
.faq-section {
    padding: 60px 0;
}

.faq-title {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 40px;
    position: relative;
}

.faq-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #0066cc;
    margin: 10px auto 0;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.faq-toggle {
    font-size: 20px;
    color: #0066cc;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 15px;
    color: #666;
}

.faq-answer ol {
    margin-left: 20px;
}

.faq-answer li {
    margin-bottom: 10px;
    color: #666;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .faq-title {
        font-size: 24px;
    }
    
    .faq-question h3 {
        font-size: 14px;
    }
}