@charset "utf-8";
/* CSS Document */

/* ===========================================
   1. 基础样式 (Base Styles) - 移动优先
   =========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container2 {
    width: 95%;
   
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 20px; /* 移动端减小间距 */
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

/* ===========================================
   2. 头部导航 (Header & Navigation)
   =========================================== */

.header {
    background-color: #ffffff;
    color: #000000;
    width: 100%;
    position: relative; /* 作为移动菜单绝对定位的参考 */
    z-index: 100;
}

.img img {
    
   width: 100%;
   max-width: 1920px；
}
.top-bar {
    display: flex;
    flex-direction: column; /* 移动端垂直排列 */
    align-items: flex-start;
    padding: 15px 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #000; /* 确保颜色正确 */
}

.contact-phone {
    font-size: 18px;
    color: #ff6600;
    margin-top: 10px;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: block; /* 移动端默认显示 */
    background: none;
    border: none;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.nav-bar {
    background-color: #0241b5;
    padding: 0px 20px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 菜单基础样式 (移动端) */
.menu {
    list-style: none;
	
    display: none; /* 默认隐藏 */
    flex-direction: column;
    background: #0241b5;
}

/* 显示菜单的样式 */
.menu.show {
    display: flex;
}

.menu li {
    margin: 5px 0;
	
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu li a {
    display: block;
	font-size: 18px;
    color: white;
    text-decoration: none;
    padding: 10px 40px;
    transition: background-color 0.3s;
    border-radius: 4px;
}

.menu li a:hover {
    background-color: #3079ff;
}

/* ===========================================
   3. Banner 轮播 (Banner Carousel)
   =========================================== */

.banner-container {
    position: relative;
    width: 100%;
	overflow: hidden;
    background-color: #f5f5f5;
    z-index: 10; /* 确保在菜单下方 */
    /* 取消固定高度，由子元素撑起 */
    height: auto;
    /* 限制最大宽度，实现1920px以上居中 */
    max-width: 1920px;
    /* 水平居中 */
    margin: 0 auto;
}

/* 响应式断点：视口宽度大于1920px时保持居中，小于等于时满屏 */
@media (max-width: 1920px) {
    .banner-container {
        max-width: 100%; /* 满屏显示 */
    }
}

.banner-slider {
    display: flex;
    transition: transform 0.5s ease;
    /* 高度由slide子元素决定 */
    height: 100%;
}

.banner-slide {
    flex: 0 0 100%;
    /* 高度由图片决定 */
    height: auto;
    position: relative;
}

.banner-slide img {
    width: 100%;
    /* 取消固定高度，让图片自然显示 */
    height: auto;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.banner-slide:hover .slide-caption {
    transform: translateY(0);
}

.slide-caption h2 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.slide-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.banner-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.banner-indicators {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* ===========================================
   4. 公司简介 (Company Introduction)
   =========================================== */

.main-content {
    padding: 2rem 0 0 0;
}

.company-intro {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.intro-title {
    font-size: 1.7rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0241b5;
}

.intro-content {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.intro-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.company-values {
    display: grid;
    grid-template-columns: 1fr; /* 移动端单列 */
    gap: 1rem;
    margin-top: 2rem;
}

.value-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #0241b5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* ===========================================
   5. 产品展示 (Product Display)
   =========================================== */

.products-container {
    display: grid;
    grid-template-columns: 1fr; /* 移动端单列 */
    gap: 15px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.product-content {
    display: flex;
    flex-direction: column; /* 移动端垂直排列 */
    flex: 1;
}

.product-image {
    width: 100%;
    overflow: hidden;
    padding: 10px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1; /* 图片在上 */
}

.product-image img {
    width: 100%;
    height: 200px; /* 移动端图片固定高度 */
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-text {
    width: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===========================================
   6. 页脚 (Footer)
   =========================================== */

.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 2rem 0 1rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.copyright {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.record-info {
    font-size: 0.85rem;
    color: #bdc3c7;
}

.record-info a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.record-info a:hover {
    color: #0241b5;
}

/* ===========================================
   7. 响应式样式 (Responsive Styles)
      - 平板 (Tablet)
   =========================================== */

@media (min-width: 768px) {
    .top-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .contact-phone { margin-top: 0; }


    /* 菜单变为水平 */
    .mobile-menu-btn { display: none; }
    .menu {
        display: flex;
		
        flex-direction: row;
        justify-content: center;
    }
    .menu li {
        margin: 0 15px;
        border-bottom: none;
    }

    .banner-container { height: 400px; }

    .company-values {
        grid-template-columns: repeat(2, 1fr); /* 平板双列 */
    }

    .products-container {
        grid-template-columns: repeat(2, 1fr); /* 平板双列 */
    }
    .product-content {
        flex-direction: row; /* 平板水平排列 */
    }
    .product-text { width: 50%; }
    .product-image { order: 0; } /* 图片在右 */
   .product-image img { height: 200px;width: 200px; }
}

/* ===========================================
   8. 响应式样式 (Responsive Styles)
      - 桌面 (Desktop)
   =========================================== */

@media (min-width: 1024px) {
    .menu li { margin: 0 25px; }

    .banner-container { height: 500px; }

    .company-intro { padding: 2.5rem; }
    .intro-title { font-size: 2rem; }

    .company-values {
        grid-template-columns: repeat(4, 1fr); /* 桌面四列 */
    }

    .products-container {
        grid-template-columns: repeat(4, 1fr); /* 桌面四列 */
        gap: 20px;
    }
}