/* css/style.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1280px;
    margin: auto;
    padding: 0 20px;
}
.section-title1 p
 {
    font-size: 16px;
    line-height: 40px;
    margin-bottom: 8px;
    text-indent: 4ch;
}
.section-title1 li
 {
margin-left: 20px;
}
.section-title1 b {
    font-weight: 400;
}
.section-title2 {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px #eccece solid;
}
.Contact22 {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* 防止边框溢出 */
}
.section-title1-1 p {
    font-size: 18px;
    margin-bottom: 10px;
}
.section-title1-1 {
    max-width: 680px;
    margin: auto;
}
input[type="submit"] {
    padding: 10px;
}
.header {
    background: #111;
    color: #fff;
}

.top-bar {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.top-contact {
    height: 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    font-size: 16px;
}
.top-contact span {margin-left: 20px;}

.navbar {
    height: 80px;
}

.nav-wrapper {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 50px;
}
.nav-left img {
    width: 280px;
    height: 60px;
}
.footer-logo img {
    width: 280px;
    height: 60px;
}

.menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.menu li {
    position: relative;
}

.menu li a {
    display: block;
    padding: 15px 18px;
    color: #fff;
    transition: .3s;
    font-size: 20px;
    margin-top: 15px;
}

.menu li a:hover {
    background: #ff6b35;
}

/* 菜单二级修改 */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1d1d1d;
    list-style: none;
    min-width: 220px;
    display: none;
    z-index: 999;
}
/* 菜单二级修改,取分类不变的值 */
.menu-item-has-children:hover .sub-menu {
    display: block;
}
/* 菜单二级修改 */
.sub-menu li a {
    padding: 15px 20px;
    display: block;
}

.social {
    display: flex;
    gap: 15px;
}
.social i {
    margin: 8px;
}

.social a {
    color: #fff;
    font-size: 25px;
}

.hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: absolute;
    top: 80px;
    left: 8%;
    color: #fff;
}

.hero-content h3 {
    font-size: 20px;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.hero-content h1 {
    font-size: 20px;
    max-width: 700px;
    line-height: 1.15;
}

.values {
    padding: 30px 0;
}

.values-wrapper {
    display: flex;
    justify-content: center;
    gap: 100px;
    text-align: center;
}

.value-item h2 {
    font-size: 60px;
    color: #ff6b35;
    margin: 50px;
}

.value-item p {
    margin-top: -20px;
    font-size: 20px;
}

.products {
    padding: 50px 0 100px 0;
    background: #fafafa;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 48px;
    background: #d2d2d2;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
}

.product-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.product-content {
    padding: 25px;
}

footer {
    background: #111;
    color: #fff;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    font-size: 36px;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 15px;
}

.footer-grid h4 {
    margin-bottom: 20px;
}

.footer-grid a {
    display: block;
    margin-bottom: 10px;
    color: #ddd;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

/* 产品页面css确保内容区域有一定的内边距 */
.products-list-section {
    padding: 60px 0;
}

/* 使用 Grid 实现 3 列布局 */
.product-grid-main {
    display: grid;
    /* 关键点：设置三列，每列占据等分空间 */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* 可选：给卡片增加一点悬停效果 */
.product-card {
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media(max-width:992px) {
    .product-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero img { height: 600px; }
    .hero-content h1 { font-size: 50px; }
    .product-grid-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:768px) {
    .nav-wrapper { flex-direction: column; height: auto; padding: 20px 0; }
    .nav-left { flex-direction: column; gap: 20px; }
    .values-wrapper { flex-direction: column; gap: 40px; }
    .product-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero img { height: 450px; }
    .hero-content { top: 50px; left: 20px; }
    .hero-content h1 { font-size: 32px; }
    .hero-content h3 { font-size: 16px; }
    .top-contact span {margin-left: 5px;}
}
/* 手机设备：1列 */
@media (max-width: 600px) {
    .product-grid-main {
        grid-template-columns: 1fr;
    }
}