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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.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;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #2c5aa0;
    font-size: 24px;
    font-weight: 700;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: #2c5aa0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c5aa0;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 轮播图样式 */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-top: 70px;
}

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

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

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

.carousel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    background: rgba(0,0,0,0.5);
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
}

.carousel-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.carousel-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}

.carousel-btn {
    background: rgba(255,255,255,0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #333;
}

.carousel-btn:hover {
    background: #2c5aa0;
    color: white;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

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

.indicator.active {
    background: white;
}

/* 产品页：页面头部与分类模块间距优化 */
.page-header + .product-categories {
    padding-top: 20px; /* 默认80，缩小上内边距 */
    margin-top: -30px; /* 抵消部分上一个区块的下内边距，减少视觉空隙 */
}

/* 关于我们页：页面头部与公司简介模块间距优化 */
.page-header + .company-intro {
    padding-top: 40px; /* 默认80，缩小上内边距 */
    margin-top: -40px; /* 抵消部分上一个区块的下内边距，减少视觉空隙 */
}

/* 企业文化样式 */
.company-culture {
    background: #f8f9fa;
}

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

.culture-item {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.culture-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.culture-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
}

.culture-item:hover .culture-icon {
    transform: scale(1.1);
}

.culture-icon i {
    font-size: 2rem;
    color: white;
}

.culture-item h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.culture-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .culture-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .culture-item {
        padding: 30px 20px;
    }
    
    .culture-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }
    
    .culture-icon i {
        font-size: 1.8rem;
    }
    
    .culture-item h3 {
        font-size: 1.2rem;
    }
}

/* 服务流程样式 */
.service-process {
    background: #fff;
    padding: 80px 0;
}

.process-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 60px;
    position: relative;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 150px;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
    transition: all 0.3s ease;
}

.step-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(44, 90, 160, 0.4);
}

.step-icon i {
    font-size: 1.8rem;
    color: white;
}

.step-content h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 120px;
}

.process-arrow {
    flex: 0 0 auto;
    margin: 0 10px;
    color: #2c5aa0;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.process-arrow:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .process-timeline {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .process-arrow {
        display: none;
    }
    
    .process-step {
        margin: 20px 15px;
        min-width: 140px;
    }
}

@media (max-width: 768px) {
    .service-process {
        padding: 60px 0;
    }
    
    .process-timeline {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        overflow-x: auto;
        padding: 20px 0;
        -webkit-overflow-scrolling: touch;
    }
    
    .process-step {
        margin: 0;
        min-width: 120px;
        flex: 0 0 auto;
        width: auto;
        max-width: none;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
    
    .step-icon i {
        font-size: 1.2rem;
    }
    
    .step-content h3 {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .step-content p {
        font-size: 0.75rem;
        max-width: 100px;
        line-height: 1.3;
    }
    
    .process-arrow {
        display: block;
        transform: none;
        margin: 0 5px;
        font-size: 1rem;
        align-self: center;
        flex: 0 0 auto;
    }
}

@media (max-width: 480px) {
    .process-timeline {
        gap: 5px;
        padding: 15px 0;
    }
    
    .process-step {
        min-width: 100px;
        max-width: none;
    }
    
    .step-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 6px;
    }
    
    .step-icon i {
        font-size: 1rem;
    }
    
    .step-content h3 {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .step-content p {
        font-size: 0.7rem;
        max-width: 90px;
        line-height: 1.2;
    }
    
    .process-arrow {
        font-size: 0.9rem;
        margin: 0 3px;
    }
}

@media (max-width: 360px) {
    .process-timeline {
        gap: 3px;
        padding: 10px 0;
    }
    
    .process-step {
        min-width: 85px;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 5px;
    }
    
    .step-icon i {
        font-size: 0.9rem;
    }
    
    .step-content h3 {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }
    
    .step-content p {
        font-size: 0.65rem;
        max-width: 80px;
        line-height: 1.1;
    }
    
    .process-arrow {
        font-size: 0.8rem;
        margin: 0 2px;
    }
}

/* 公司设施展示 */
.facilities-showcase {
    background: #f8f9fa;
    padding: 80px 0;
}

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

.facility-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

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

.facility-item h3 {
    padding: 20px 25px 10px;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.facility-item p {
    padding: 0 25px 25px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .facility-item img {
        height: 200px;
    }
}

/* 公司资质轮播（关于我们页） */
.qualifications {
    background: #f8f9fa;
}

.qualifications .carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    height: 520px;
}

.qualifications .carousel-image {
    object-fit: contain;
    background: #fff;
    padding: 20px;
}

.carousel-caption {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .qualifications .carousel-container {
        height: 380px;
    }
}

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

.btn-primary {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.btn-primary:hover {
    background: #1e3f73;
    border-color: #1e3f73;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #2c5aa0;
    border-color: #2c5aa0;
}

.btn-outline:hover {
    background: #2c5aa0;
    color: white;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* 公司简介样式 */
.about-preview {
    background: #f8f9fa;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

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

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

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.stat-item h3 {
    font-size: 1.1rem;
    color: #2c5aa0;
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-item p {
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
    margin: 0;
}

.feature {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.feature i {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.feature p {
    color: #666;
    font-size: 0.9rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 产品分类标签样式 */
.product-categories {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.product-categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #4a90e2, #2c5aa0);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    border: 2px solid #e1e5e9;
    color: #666;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    transition: left 0.3s ease;
    z-index: -1;
}

.tab-btn:hover {
    color: white;
    border-color: #2c5aa0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.tab-btn:hover::before {
    left: 0;
}

.tab-btn.active {
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    border-color: #2c5aa0;
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.tab-btn.active::before {
    left: 0;
}

.tab-btn i {
    margin-right: 8px;
    font-size: 14px;
}

.tab-btn .count {
    font-size: 12px;
    opacity: 0.8;
    margin-left: 4px;
}

/* 产品展示样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

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

.product-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3纵横比 */
    overflow: hidden;
}

.product-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

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

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

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

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

/* 页脚样式 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #2c5aa0;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .carousel-content h1 {
        font-size: 2rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .carousel-content {
        padding: 20px;
        max-width: 90%;
    }

    /* 产品分类标签响应式 */
    .category-tabs {
        gap: 15px;
        padding: 0 20px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
        flex: 1;
        min-width: 120px;
        text-align: center;
    }

    .about-content {
        text-align: center;
        max-width: 100%;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .features {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .message-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .carousel-content h1 {
        font-size: 1.5rem;
    }

    .carousel-content p {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .features {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .feature {
        padding: 15px 10px;
    }
    
    .feature i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .feature h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .feature p {
        font-size: 0.8rem;
    }
    
    .stat-item h3 {
        font-size: 1rem;
    }
    
    .stat-item p {
        font-size: 1.3rem;
    }

    /* 产品分类标签小屏幕样式 */
    .category-tabs {
        gap: 8px;
        padding: 0 5px;
    }

    .tab-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 80px;
    }
}
