* {
    margin: 0;
    padding: 0;
}
.box {
    background: #ffffff;
}

/* 主要内容 */
main {
    box-sizing: border-box;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main section {
    display: flex;
    align-items: center;
    justify-content: center;
}

main section h2 {
    /* width: 60%; */
    font-family: Helvetica, Helvetica;
    font-weight: bold;
    font-size: 40px;
    color: #3f2f2f;
    line-height: 60px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    margin: 60px 0;
}

/* Blog Banner */
.blog-banner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 60px 20px;
    box-sizing: border-box;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%); */
}

.blog-banner h1 {
    font-family: Helvetica;
    font-size: 36px;
    color: #333333;
    line-height: 46px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-align: center;
}

.blog-banner .subtitle {
    font-family: Helvetica;
    font-size: 18px;
    color: #555555;
    line-height: 28px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    width: 70%;
    max-width: 800px;
}

/* 商品详情 */
.product-page {
    display: flex;
    padding: 0 200px;
    gap: 30px;
    background: #fff;
    margin: 40px auto;
}

/* 左侧商品图区域 */
.product-img-section {
    width: 600px;
    /* height: 600px; */
}
.main-img-container {
    position: relative;
    /* border: 1px solid #e0e0e0; */
    padding: 10px;
    height: 600px;
}
.main-img {
    width: 100%;
    height: 100%;
    display: block;
    /* object-fit: contain; */
}
.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    /* overflow-x: auto; */
}
.thumbnail {
    width: 60px;
    height: 60px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail:hover {
    border-color: #a01212;
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #a01212;
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右侧商品信息区域 */
.product-info-section {
    width: 60%;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    max-height: 600px;
    overflow-y: auto;
}
.product-title {
    font-family: Helvetica, Helvetica;
    font-weight: bold;
    font-size: 28px;
    color: #333333;
    line-height: 60px;
}
.product-overview {
    background: #fcf5f5;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    font-family: Helvetica;
    font-size: 18px;
    color: #555555;
    line-height: 28px;
}
.product-overview h4 {
    font-family: Helvetica, Helvetica;
    font-weight: bold;
    font-size: 16px;
    color: #333333;
    line-height: 28px;
}
.product-overview p {
    font-family: Helvetica;
    font-size: 16px;
    color: #555555;
    line-height: 20px;
}
.product-overview .contact {
    font-family: Helvetica;
    font-size: 16px;
    color: #555555;
    line-height: 28px;
    text-align: left;
    margin: 20px 0;
}
.cta-button {
    background: #c81623;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin: 20px 0;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #a0101c;
    color: #fff;
}
.product-description h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.product-description ul {
    list-style: disc;
    /* padding-left: 20px; */
    line-height: 1.6;
    font-family: Helvetica;
    font-size: 18px;
    color: #555555;
    line-height: 28px;
}

/* recommended */
.recommended {
    padding: 40px 20px;
    /* max-width: 1200px; */
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.recommended h3 {
    font-family: Helvetica, Helvetica;
    font-weight: bold;
    font-size: 32px;
    color: #333333;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

/* .recommended h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #a01212;
} */

.recommendeds {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}

.recommended-item {
    flex: 0 0 calc(25% - 15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, #fafafa 0%, #eae8e8 100%);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recommended-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.recommended-item img {
    width: 100%;
    height: 326px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.recommended-item p {
    font-family: Helvetica;
    font-size: 16px;
    color: #333333;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

/* 产品分类样式 */
.product-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 40px auto;
    /* max-width: 1200px; */
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    gap: 20px;
}

/* 分类项容器 */
.category-item {
    flex: 0 0 calc(25% - 15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.category-item a {
    width: 100%;
    text-decoration: none;
}
.category-item .category-image {
    width: 100%;
    height: 100%;
    /* object-fit: contain; */
    border-radius: 10px;
}

.category {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: linear-gradient(180deg, #fafafa 0%, #eae8e8 100%); */
    border-radius: 10px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    /* height: 326px; */
    height: auto;
    margin-bottom: 15px;
}

.category:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12); */
}

.category-item p {
    font-family: Helvetica;
    font-size: 18px;
    color: #333333;
    line-height: 26px;
    letter-spacing: 1px;
    text-align: center;
    margin: 0;
}

.pagination-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    box-sizing: border-box;
    background-color: #fff;
}

/* 中等屏幕适配 */
@media (max-width: 1024px) {
    .recommended-item {
        flex: 0 0 calc(50% - 10px); /* 中等屏幕下一行两个 */
    }
}

/* 探索更多 */
.explore-box {
    width: 100%;
    padding: 20px 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: #f3f3f3;
}

.explore-box h2 {
    font-family: Helvetica;
    font-size: 22px;
    color: #333333;
    line-height: 26px;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-align: center;
}

@media (max-width: 1400px) {
    .product-page {
        padding: 0 20px;
    }
}

@media (max-width: 1200px) {
    /* 商品详情响应式优化 */
    .product-page {
        flex-direction: column;
        padding: 0 20px;
    }

    .product-img-section {
        width: 100%;
    }

    .main-img-container {
        height: 400px;
    }

    .product-info-section {
        width: 100%;
    }
}

/* 响应式适配：小屏幕下堆叠排列 */
@media (max-width: 768px) {
    /* Recommended Products 响应式优化 */
    .recommended {
        padding: 30px 15px;
    }

    .recommended h3 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .recommendeds {
        gap: 15px;
    }

    .recommended-item {
        flex: 0 0 100%; /* 小屏幕下一行一个 */
        padding: 15px;
    }

    .recommended-item img {
        height: 200px;
    }

    .recommended-item p {
        font-size: 16px;
    }

    /* Product Categories 响应式优化 */
    .product-categories {
        gap: 15px;
    }

    .category-item {
        flex: 0 0 100%; /* 小屏幕下一行一个 */
    }

    .category {
        height: 250px;
    }

    .category-item p {
        font-size: 16px;
    }

    /* Blog Banner响应式优化 */
    .blog-banner {
        padding: 40px 15px;
    }

    .blog-banner h1 {
        font-size: 28px;
        line-height: 36px;
    }

    .blog-banner .subtitle {
        font-size: 16px;
        line-height: 24px;
        width: 90%;
    }

    /* Explore-box响应式优化 - 中等屏幕 */
    .explore-box {
        padding: 20px 40px;
    }

    .explore-box h2 {
        font-size: 20px;
        margin-bottom: 30px;
    }

    /* Footer响应式优化 */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 20px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 500px) {
    header .left h1 {
        max-width: 120px;
        font-size: 12px;
    }

    header .right .phone {
        display: none; /* 在极小屏幕隐藏电话号码 */
    }

    nav ul {
        width: 100%;
        justify-content: space-around;
    }

    nav ul li a {
        margin-right: 5px;
        font-size: 12px;
    }
}

/* 极小屏幕适配 */
@media (max-width: 320px) {
    /* Blog Banner响应式优化 - 极小屏幕 */
    .blog-banner {
        padding: 20px 8px;
    }

    .blog-banner h1 {
        font-size: 20px;
        line-height: 28px;
    }

    .blog-banner .subtitle {
        font-size: 14px;
        line-height: 20px;
        width: 98%;
    }
}
