/* ============================================
   Index Page CSS - Main Content Styles
   Cangzhou Xinghui Pipeline Equipment Co., Ltd.
   ============================================ */

/* Fade In Animation */
@keyframes xinghui-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes xinghui-slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes xinghui-slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes xinghui-scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Section Title */
.xinghui-section-title {
    text-align: center;
    margin-bottom: 50px;
    animation: xinghui-fadeIn 0.8s ease-out;
}

.xinghui-section-title h2 {
    font-size: 36px;
    color: #1e3c72;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.xinghui-section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.xinghui-section-title:hover h2::after {
    width: 120px;
}

.xinghui-section-title p {
    color: #666;
    font-size: 16px;
    margin-top: 10px;
}

/* Buttons */
.xinghui-btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.xinghui-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.xinghui-btn-primary:hover::before {
    left: 100%;
}

.xinghui-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
}

.xinghui-btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.xinghui-btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.xinghui-btn-submit:hover::before {
    left: 100%;
}

.xinghui-btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
}

/* ============================================
   Hero Slider Section
   ============================================ */
.xinghui-hero-slider {
    position: relative;
    overflow: hidden;
    height: 600px;
}

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

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

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

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

.xinghui-slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.xinghui-slide-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: xinghui-fadeInUp 0.8s ease;
}

.xinghui-slide-content p {
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: xinghui-fadeInUp 0.8s ease 0.2s both;
}

@keyframes xinghui-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.xinghui-dot.xinghui-active {
    background: #fff;
    transform: scale(1.2);
}

.xinghui-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Products Section
   ============================================ */
.xinghui-products {
    padding: 80px 0;
    background: #fff;
}

.xinghui-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.xinghui-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: xinghui-fadeIn 0.6s ease-out backwards;
}

.xinghui-product-card:nth-child(1) { animation-delay: 0.1s; }
.xinghui-product-card:nth-child(2) { animation-delay: 0.2s; }
.xinghui-product-card:nth-child(3) { animation-delay: 0.3s; }
.xinghui-product-card:nth-child(4) { animation-delay: 0.4s; }
.xinghui-product-card:nth-child(5) { animation-delay: 0.5s; }
.xinghui-product-card:nth-child(6) { animation-delay: 0.6s; }

.xinghui-product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(30, 60, 114, 0.2);
}

.xinghui-product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.xinghui-product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(30, 60, 114, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.xinghui-product-card:hover .xinghui-product-image::after {
    opacity: 1;
}

.xinghui-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.xinghui-product-card:hover .xinghui-product-image img {
    transform: scale(1.15);
}

.xinghui-product-info {
    padding: 25px;
}

.xinghui-product-info h3 {
    font-size: 22px;
    color: #1e3c72;
    margin-bottom: 15px;
    font-weight: 600;
}

.xinghui-product-info p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 15px;
}

/* ============================================
   About Section
   ============================================ */
.xinghui-about {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.xinghui-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.xinghui-about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.xinghui-about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.xinghui-about-text h2 {
    font-size: 36px;
    color: #1e3c72;
    margin-bottom: 20px;
    font-weight: 700;
}

.xinghui-about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 16px;
}

.xinghui-features {
    margin-top: 30px;
    display: grid;
    gap: 20px;
}

.xinghui-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.xinghui-feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}

.xinghui-feature-text h4 {
    font-size: 18px;
    color: #1e3c72;
    margin-bottom: 5px;
    font-weight: 600;
}

.xinghui-feature-text p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* ============================================
   News Section
   ============================================ */
.xinghui-news {
    padding: 80px 0;
    background: #fff;
}

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

.xinghui-news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: xinghui-fadeIn 0.6s ease-out backwards;
}

.xinghui-news-card:nth-child(1) { animation-delay: 0.1s; }
.xinghui-news-card:nth-child(2) { animation-delay: 0.2s; }
.xinghui-news-card:nth-child(3) { animation-delay: 0.3s; }

.xinghui-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(30, 60, 114, 0.15);
}

.xinghui-news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.xinghui-news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(30, 60, 114, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.xinghui-news-card:hover .xinghui-news-image::after {
    opacity: 1;
}

.xinghui-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.xinghui-news-card:hover .xinghui-news-image img {
    transform: scale(1.12);
}

.xinghui-news-content {
    padding: 25px;
}

.xinghui-news-date {
    color: #2a5298;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}

.xinghui-news-content h3 {
    font-size: 20px;
    color: #1e3c72;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.xinghui-news-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
}

.xinghui-read-more {
    color: #2a5298;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.xinghui-read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2a5298, #1e3c72);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.xinghui-read-more:hover {
    color: #1e3c72;
    transform: translateX(5px);
}

.xinghui-read-more:hover::after {
    width: 100%;
}

/* ============================================
   Contact Section
   ============================================ */
.xinghui-contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.xinghui-contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.xinghui-contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.xinghui-contact-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.xinghui-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.xinghui-card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #1e3c72;
    height: 70px;
    width: 70px;
    line-height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.1) 0%, rgba(42, 82, 152, 0.1) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.xinghui-contact-card:hover .xinghui-card-icon {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    transform: scale(1.1);
}

.xinghui-card-icon i {
    font-size: 32px;
}

.xinghui-contact-card h3 {
    font-size: 18px;
    color: #1e3c72;
    margin-bottom: 10px;
    font-weight: 600;
}

.xinghui-contact-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Message Form */
.xinghui-message-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.xinghui-message-form h3 {
    font-size: 24px;
    color: #1e3c72;
    margin-bottom: 25px;
    font-weight: 600;
}

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

.xinghui-form-group input,
.xinghui-form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
}

.xinghui-form-group input:focus,
.xinghui-form-group textarea:focus {
    outline: none;
    border-color: #2a5298;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

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

/* Scroll Indicator */
.xinghui-scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    z-index: 9998;
    transition: width 0.1s ease;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .xinghui-hero-slider {
        height: 500px;
    }

    .xinghui-slide-content h2 {
        font-size: 36px;
    }

    .xinghui-slide-content p {
        font-size: 18px;
    }

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

    .xinghui-contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .xinghui-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .xinghui-section-title h2 {
        font-size: 28px;
    }

    .xinghui-hero-slider {
        height: 400px;
    }

    .xinghui-slide-content h2 {
        font-size: 28px;
    }

    .xinghui-slide-content p {
        font-size: 16px;
    }

    .xinghui-products-grid,
    .xinghui-news-grid {
        grid-template-columns: 1fr;
    }

    .xinghui-contact-cards {
        grid-template-columns: 1fr;
    }

    .xinghui-products,
    .xinghui-about,
    .xinghui-news,
    .xinghui-contact {
        padding: 60px 0;
    }
    
    .xinghui-industry-item {
        min-width: calc(50% - 10px);
    }
    
    .xinghui-industry-icon {
        width: 80px;
        height: 80px;
    }
    
    .xinghui-industry-icon img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .xinghui-hero-slider {
        height: 300px;
    }

    .xinghui-slide-content h2 {
        font-size: 22px;
    }

    .xinghui-slide-content p {
        font-size: 14px;
    }

    .xinghui-section-title h2 {
        font-size: 24px;
    }

    .xinghui-about-text h2 {
        font-size: 28px;
    }

    .xinghui-message-form {
        padding: 20px;
    }
}



