/* Reset and Base Styles */
 /*
Theme Name: 众友重工
Theme URI: https://www.chinazhongyou.cn
Description: 众友独立站
Author: 老丁
Author URI: https://www.dingxianren.com
Version: 1.0
Tags: 标签1,标签2
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
   background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

/* Top Bar Styles */
.top-bar {
    background-color: #003366;
    color: #fff;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #C0C0C0;
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin: 0 auto;
}

.carousel-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    text-decoration: none;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel {
        height: 400px;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .carousel {
        height: 300px;
    }
    
    .carousel-control {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* Navigation Styles */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #003366;
    padding: 5px;
    position: absolute;
    right: 20px;
    top: 20px;
}

.nav-toggle:hover {
    color: #004488;
}

.nav-container {
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    padding: 0px 5%; /* 增加了上下内边距，从15px增加到25px */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    width: auto; /* 略微增加logo尺寸 */
    height: 60px;
}

.nav-menu {
    display: flex;
    justify-content: flex-end;
    list-style: none;
}

.nav-menu li {
    margin: 0 20px;
}

.nav-menu a {
    color: #003366;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 0px 18px;
    height: 70px;
    display: inline-block;
    line-height: 70px;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a
{
    color: #FFFFFF;
    background-color: #003366;
}





/*Processing Section Styles */

pro-container
{
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
margin-top: 30px;	
}


.product-carousel {
    position: relative;
    display: flex;
    overflow: hidden;
    margin: 0 -15px;
}

.product-item {
   background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.product-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
   
}

.product-item h3 {
    color: #003366;
    margin: 10px 0;
    font-size: 1.2em;
}

.product-item p {
    color: #666;
    font-size: 0.9em;
}



.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 992px) {
    .product-item {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 768px) {
    .product-item {
        flex: 0 0 50%;
    }
}

@media (max-width: 576px) {
    .product-item {
        flex: 0 0 100%;
    }
}

/* Section Styles */
.section {
    padding: 60px 5%;
    margin: 20px 0;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 2s ease-out, transform 2s ease-out;
    position: relative;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section内部元素的动画样式 */
.section .grid-item,
.section .process-step {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 2s ease-out, transform 2s ease-out;
}

.section.visible .grid-item,
.section.visible .process-step {
    opacity: 1;
    transform: translateY(0);
}

/* 为每个元素设置不同的延迟，创造依次出现的效果 */
.section .grid-item:nth-child(1),
.section .process-step:nth-child(1) {
    transition-delay: 0.5s;
}

.section .grid-item:nth-child(2),
.section .process-step:nth-child(2) {
    transition-delay: 1s;
}

.section .grid-item:nth-child(3),
.section .process-step:nth-child(3) {
    transition-delay: 1.5s;
}

.section .grid-item:nth-child(4),
.section .process-step:nth-child(4) {
    transition-delay: 2s;
}

.section-title {
    text-align: center;
    color: #003366;
    margin-bottom: 40px;
    font-size: 2em;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.grid-item {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.grid-item h3 {
    color: #003366;
    margin: 10px 0;
    text-align: center;
}

/* Process Flow Styles */
.process-flow {
    position: relative;
    overflow: hidden;
    margin: 40px 0;
    padding: 0 50px; /* 为左右按钮留出空间 */
}

.process-steps-container {
    display: flex;
    transition: transform 0.5s ease;
    margin: 0 -10px;
    align-items: center;
}

.process-step {
    flex: 0 0 calc(25% - 30px); /* 一次显示4个步骤，减去箭头的宽度 */
    min-width: 180px;
    text-align: center;
    padding: 20px 10px;
    position: relative;
    background-color: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.process-step img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #003366;
    padding: 0 10px;
    flex: 0 0 auto;
}

/* 确保箭头在移动设备上正确显示 */
@media (max-width: 768px) {
    .process-arrow {
        font-size: 18px;
        padding: 0 5px;
    }
    
    .process-step {
        flex: 0 0 calc(50% - 20px);
        min-width: 120px;
    }
}

/* 流程控制按钮样式 */
.process-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 51, 102, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.process-control:hover {
    background: rgba(0, 51, 102, 1);
}

.process-control.prev {
    left: 5px;
}

.process-control.next {
    right: 5px;
}

/* 移动端适配 */
@media (max-width: 992px) {
    .process-step {
        flex: 0 0 33.333%; /* 平板上显示3个 */
    }
}

@media (max-width: 768px) {
    .process-step {
        flex: 0 0 50%; /* 手机上显示2个 */
    }
}

@media (max-width: 576px) {
    .process-step {
        flex: 0 0 100%; /* 小屏幕上显示1个 */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome {
        display: none; /* 在移动端隐藏欢迎信息 */
    }

    .top-bar {
        justify-content: flex-end; /* 社交图标靠右对齐 */
        padding: 5px 15px; /* 减小顶部栏的内边距 */
    }

    .social-icons a {
        margin-left: 15px; /* 减小图标间距 */
    }

    .nav-toggle {
        display: block;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        padding-top: 60px; /* 为汉堡菜单腾出空间 */
    }

    .nav-logo {
        margin-bottom: 10px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
        padding: 10px 0;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 10px 0;
        width: 100%;
    }

    .nav-menu a:hover {
        background-color: rgba(0,0,0,0.05);
    }

    .carousel {
        height: 300px;
    }

    .process-step {
        flex: 100%;
        margin: 10px 0;
    }

    .process-step::after {
        content: '↓';
        right: 50%;
        bottom: -20px;
        top: auto;
        transform: translateX(50%);
    }
}

/* Product Showcase Styles */
.product-showcase {
    margin-top: 40px;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
	
}

.product-info h3 {
    color: #003366;
    margin-bottom: 10px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #003366;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
	margin-top:10px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #004488;
}

/* Footer Styles */
.footer {
    background-color: #003366;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 5%;
}
.footer-section {
    padding: 20px;
}

.footer-section.about {
    flex: 0 0 30%;
}

.footer-section.links {
    flex: 0 0 20%;
}

.footer-section.links.navigation,
.footer-section.links.products {
    flex: 0 0 20%;
}

.footer-section.contact-form {
    flex: 0 0 30%;
}
    margin-bottom: 30px;
    width: 25%;
}

.footer-section:last-child {
    margin-right: 0;
}

.footer-section h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    color: #C0C0C0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #C0C0C0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: #C0C0C0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-details {
    flex: 1;
    margin-right: 20px;
}

.contact-details p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: #C0C0C0;
}

.contact-details i {
    margin-right: 10px;
    color: #fff;
    width: 20px;
    text-align: center;
}

.qr-code-container {
    flex: 0 0 auto;
}

.qr-code {
    max-width: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #C0C0C0;
    font-size: 14px;
}

/* Message Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-container {
    background-color: #fff;
    width: 50%;
    max-width: 600px;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #003366;
    background: none;
    border: none;
    padding: 5px;
}

.modal-close:hover {
    color: #004488;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 500;
    color: #003366;
}

.form-group input,
.form-group textarea {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 5px rgba(0, 51, 102, 0.2);
}

.submit-btn {
    background-color: #003366;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #004488;
}

.required::after {
    content: "*";
    color: red;
    margin-left: 4px;
}

@media (max-width: 768px) {
    .modal-container {
        width: 90%;
        margin: 20px;
    }
}

/* Footer Responsive Design */
@media (max-width: 992px) {
    .footer-content {
        flex-wrap: wrap;
    }
    
    .footer-section {
        flex: 0 0 calc(50% - 15px);
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .footer-section.about,
    .footer-section.links,
    .footer-section.contact-form {
        flex: 0 0 100%;
    }
    
    .footer-section, .social-links {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-details {
        margin-right: 0;
        margin-bottom: 20px;
        text-align: left;
    }

    .qr-code-container {
        text-align: center;
    }

    .qr-code {
        max-width: 120px;
    }
}

/*栏目缩略图*/
.category-thumbnail {
    margin-bottom: 20px;
    text-align: center;
}

.category-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/*自定义logo*/

.custom-logo  {
    width: auto !important; /* 略微增加logo尺寸 */
    height: 80px !important;
}

.custom-logo a {
    display: inline-block;
}