* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 导航栏样式 */
.nav {
    background-color: #000;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav li a:hover {
    color: #e6002e; /* adidas红作为hover色 */
}

/* Banner区域 */
.banner-container {
    max-width: 1400px;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.banner .overlay-text {
    margin-top: 3%;
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(0, 0, 0);
    text-align: center;
    font-size: 3em;
    padding: 10px 10px;
    border-radius: 8px;
    z-index: 10;
}
.nowrap {
    white-space: nowrap;
}
/* .company-intro {
    padding: 40px;
    background: rgba(5, 5, 5, 0.95);
    margin-top: -100px;
    position: relative;
    z-index: 1;
    border-radius: 8px;
} */

.company-text h2 {
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #000; /* 修改为黑色强调色 */
    padding-bottom: 10px;
}

.company-text p {
    line-height: 1.8;
    color: #555;
}

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');
.handwriting {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5em;
    line-height: 1.6;
}

/* 产品展示区域 */
#learn {
    max-width: 11800x;  /*下面图片整体大小*/
    /* margin-top: 10%; */
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr)); /* 调整列数和最小宽度 */
    gap: 20px;
    padding: 0 10px;
    /* background-color: #f0f0f0; */
    border-radius: 8px;
    padding: 20px;
}


.all-products-container {
    position: relative;
    /* border-radius: 8px; */
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    /* background-color: #fff; */
    /* box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.all-products-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.product-text {
    color: black;
    font-size: 14px; /* 字体大小 */
    text-align: center;
    padding: 5px 10px; /* 内边距 */
    width: 100%;
    margin-top: 5px;
    white-space: nowrap; /* 文本不换行 */
    overflow: hidden;
    text-decoration: none; /* 去除下划线 */
    /* background-color: #f0f0f0; 设置背景颜色，使所有产品的背景一致 */
    box-sizing: border-box; /* 确保padding和border包含在元素的总宽度和高度内 */
}

/* 确保链接内的文本没有下划线 */
.all-products-container a {
    text-decoration: none;
}

@media (max-width: 768px) {
    #learn {
        grid-template-columns: repeat(2, minmax(150px, 1fr)); /* 小屏幕两列布局 */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #learn {
        grid-template-columns: repeat(3, minmax(150px, 1fr)); /* 中等屏幕三列布局 */
    }
}

hr {
    border: 0;
    height: 1px;
    background: #444;
    margin: 20px 0;
}

img {
    margin-top: 8%;
    margin: 10px 2;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s;
}

img:hover {
    transform: scale(1.02);
}

.footer {
    background-color: #f1f1f1;
    padding: 20px 0;
    text-align: center;
}
.footer-top, .footer-bottom {
    width: 100%;
}
.footer-section {
    margin: 0 auto;
    padding: 10px;
}
.footer-section p, .footer-section a {
    margin: 5px 0;
    text-align: center;
}
hr {
    width: 80%;
    margin: 10px auto;
    border: 1px solid #ddd;
}