/* 头部导航栏 */
.info-ol-nav {
    width: 100%;
    padding: 20px 10px;
    background-color: #F8F9FA;
}

.info-ol-nav>ol {
    list-style: none;
    display: flex;
    width: 70%;
    margin: 0 auto;
    gap: 10px;
    flex-wrap: wrap;
}

.info-ol-nav>ol>li>a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.6);
}

.info-ol-nav>ol>li>a:hover {
    color: #008cff;
}

/* 产品详情信息 */
.product-info {
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #F8F9FA;
    padding: 10px 5px;
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    margin-bottom: 20px;
}

h1 {
    background-color: #F8F9FA;
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 20px;
    font-size: 24px;
    padding: 10px 20px;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.6);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* 图片模块 */
.img-box {
    width: 50%;
}

.img-box>img {
    display: block;
    margin: 0 auto;
}

.img-box>.big-img {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.img-box>.big-img>button {
    position: absolute;
    height: 30px;
    width: 30px;
    transform: translateY(-50%);
    z-index: 100;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    cursor: pointer;
    top: 50%;
}

.img-box>.big-img>button:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.img-box>.big-img>button:active {
    background-color: rgba(0, 0, 0, 0.1);
}

.img-box>.big-img>.zuo {
    left: 5px;
}

.img-box>.big-img>.you {
    right: 5px;
}

.img-box>.big-img>img {
    width: 100%;
    cursor: zoom-in;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.img-box>.small-img {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    position: relative;
}

.img-box>.small-img>img {
    width: 96px;
    height: 72px;
    border-radius: 3px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: 0.3s;
}

.img-box>.small-img>img.active {
    border: 2px solid #008cff;
}

.img-box>.small-img>img:hover {
    transform: scale(1.1);
}

/* 产品信息模块 */
.info-box {
    width: 50%;
    padding: 0px 20px;
}

.info-box>ul>li {
    padding: 8px 0px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    display: flex;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
}

.info-box>ul>li>b {
    width: 40%;
    line-height: 100%;
    display: flex;
    align-items: center;
    min-width: 120px;
}

/* 价格模块 */
.price-box {
    margin-top: 20px;
}

.price-box>p {
    font-size: 16px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 10px;
}

.price-box>p>.original {
    font-size: 22px;
    font-weight: normal;
    color: #DB5A6B;
    text-decoration: line-through;
    margin-left: 10px;
}

.price-box>p>.special {
    font-size: 24px;
    font-weight: bold;
    color: #DD3333;
    margin-left: 10px;
}

/* 购物车模块购买数量 */
.cart-box {
    margin-top: 20px;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: bold;
}

.cart-box>button {
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    border-radius: 3px;
    margin-top: 20px;
    width: 70%;
    min-width: 300px;
    background-color: #E23E57;
    color: #FFFFFF;
    cursor: pointer;
}

.cart-box>button>i {
    margin-right: 5px;
    font-size: 22px;
}

.cart-box>button:hover {
    background-color: #D43A51;
}

.cart-box>button:active {
    background-color: #E23E57;
}

.cart-box>div {
    display: flex;
}

.cart-box>div>button {
    width: 30px;
    height: 30px;
    font-size: 24px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.cart-box>div>button:hover {
    background-color: #F8F9FA;
}

.cart-box>div>button:active {
    background-color: #F0F0F0;
}

.cart-box>div>input {
    width: 50px;
    text-align: center;
    height: 30px;
    font-size: 18px;
    outline: none;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* 产品主体描述 */
.product-text {
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 50px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #F8F9FA;
}

.product-text>ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.product-text>ul>li {
    background-color: #EBEDEE;
    padding: 20px 30px;
    flex: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 1);
    min-width: 0;
}

.product-text>ul>li:hover {
    color: #008cff;
}

.product-text>ul>li {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.6);
    text-align: center;
    cursor: pointer;
}

.product-text>ul>.active {
    border: none;
    color: rgba(0, 0, 0, 1);
    font-weight: bold;
    border-top: 3px solid rgba(0, 0, 0, 1);
    border-radius: 3px 3px 0px 0px;
    background-color: #F8F9FA;
}

.product-text>.tab {
    padding: 20px 20px;
}

.product-text>.tab>h2 {
    padding: 10px 20px;
    background-color: #D63031;
    margin-top: 10px;
    color: #FFFFFF;
    font-size: 20px;
    margin-bottom: 10px;
}

.product-text>.tab>h3 {
    padding: 15px 0px 5px 0px;
    font-size: 18px;
}

.product-text>.tab>p {
    line-height: 28px;
    font-size: 14px;
}

.product-text>.tab>ul>li {
    line-height: 28px;
    font-size: 14px;
}

.product-text>.tab a {
    color: #49adff;
    text-decoration: none;
}

.product-text>.tab a:hover {
    color: #008cff;
    text-decoration: underline;
}

.product-text>.tab2>ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.product-text>.tab2>ul>li {
    width: 25%;
    border-bottom: 1px dashed rgba(0, 0, 0, 1);
    padding: 10px 0px;
}

.product-text>.tab2>ul>li>span {
    color: #000;
}

/* 相关产品 */
.related-product {
    display: flex;
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    background-color: #FFFFFF;
    padding: 0px 10px;
    margin-bottom: 20px;
}

.related-product>img {
    width: 20%;
    min-width: 200px;
}

.related-product>div {
    display: flex;
    flex-direction: column;
    width: 80%;
    padding: 20px;
    justify-content: space-between;
    gap: 5px;
}

.related-product>div>ul {
    display: flex;
    flex-wrap: wrap;
}

.related-product>div>ul>li {
    padding: 3px 15px 3px 0px;
}

.related-product>div>p {
    font-size: 16px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.6);
}

.related-product>div>p>span {
    font-size: 24px;
    font-weight: bold;
    color: #E23E57;
}

.related-product>div>button {
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    color: #FFFFFF;
    background-color: #E23E57;
    width: 70%;
    max-width: 300px;
    border-radius: 3px;
    cursor: pointer;
}

.related-product>div>button:hover {
    background-color: #D43A51;
}

/* 运输表格整体样式 */
.my-table {
    width: 100%;
    margin: 20px auto;
    /* 水平居中 */
    border-collapse: collapse;
    /* 合并边框 */
    font-family: "Arial", sans-serif;
}

.my-table th {
    background-color: #2c3e50;
    color: white;
    padding: 12px 0px;
    text-align: left;
    width: 25%;
    text-align: center;
    box-sizing: border-box;
    font-size: 14px;
}

.my-table td {
    padding: 10px 0px;
    border-bottom: 1px solid #eee;
    color: #333;
    text-align: center;
    font-size: 12px;
    box-sizing: border-box;
}

tr>td:nth-child(3) {
    color: red;
}

.my-table tbody tr:nth-child(even) {
    background-color: #FFFFFF;
}

.my-table tbody tr:hover {
    background-color: #e9ecef;
    cursor: pointer;
}

.aboutus-content a {
    color: rgb(85, 85, 204);
}

.aboutus-content a:hover {
    color: blue;
}

.aboutus-cont {
    font-size: 12px;
}

.aboutus-cont-span {
    font-size: 14px;
}

/* 支付表格整体样式 */
.pay-table {
    width: 100%;
    border: 1px solid #ccc;
    margin-top: 10px;
    border-collapse: collapse;
}

.pay-table tr {
    border: 1px solid #ccc;
}

.pay-table td {
    border: 1px solid #ccc;
    padding: 8px;
}

.pay-table td img {
    max-height: 80px;
    min-width: 30px;
}

.pay-table td .img-p {
    font-size: 12px;
}

.text-cocor {
    color: rgba(0, 0, 0, 0.6);
}

.text-weight {
    font-size: 14px;
    font-weight: 700;
}

/* 问题区域 */
.questions-div {
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 20px;
    background-color: #F8F9FA;
    padding: 10px 20px;
    border-radius: 5px;
}

.questions-div>h2 {
    font-size: 20px;
    padding: 10px 0px;
}

.questions-list {
    padding: 10px 20px;
    background-color: #EBEDEE;
    border-radius: 5px;
    margin-bottom: 20px;
}

.questions-list>.ask {
    font-size: 14px;
    padding: 5px 0%;
}

.questions-list>.answer {
    font-size: 14px;
    padding: 5px 0%;
    color: rgba(0, 0, 0, 0.6);
}

.questions-list>.ask>span {
    font-size: 16px;
    color: #3388FF;
    font-weight: bold;
}

.questions-list>.answer>span {
    font-size: 16px;
    color: #28A745;
    font-weight: bold;
}

/* 热门推荐 */
.hot-recommend {
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #F8F9FA;
}

.hot-recommend>h2 {
    font-size: 20px;
    padding: 10px 0px;
    text-align: center;
}

.hot-recommend>h3 {
    font-size: 18px;
    padding: 10px 0px;
    text-align: center;
}

.hot-recommend>.hot-img {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1%;
}

.hot-recommend>.hot-img>li {
    width: 24%;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    background-color: #FFFFFF;
    margin-bottom: 1%;
    min-height: 280px;
}

.hot-recommend>.hot-img>li>a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hot-recommend>.hot-img>li>a>img {
    width: 100%;
}

.hot-recommend>.hot-img>li>a>p {
    font-size: 14px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    text-align: center;
    padding: 10px 10px;
}

.hot-link {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.hot-link>li {
    margin: 5px 0px;
}

.hot-link>li>a {
    text-decoration: none;
    background-color: #EBEDEE;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
}

.hot-link>li>a:hover {
    background-color: #D43A51;
    color: #FFFFFF;
}

/* BEST-SELLING BATTERIES 轮播样式 */
.best-selling-carousel {
    position: relative;
    margin: 20px 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
}

.carousel-slide {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide.active {
    display: grid;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.best-selling-item {
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.best-selling-item:hover {
    transform: translateY(-5px);
}

.best-selling-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.best-selling-item a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.best-selling-item a:hover {
    color: #007bff;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
    font-size: 18px;
    transition: background 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Viewed 网格布局样式 */
.viewed-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.viewed-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.viewed-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.viewed-item a {
    text-decoration: none;
    color: #333;
    display: block;
    width: 100%;
}

.viewed-name {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    display: block;
}

.viewed-item:hover a {
    color: #007bff;
}

.item-info {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    font-weight: normal;
    line-height: 1.3;
}

@media screen and (max-width: 768px) {

    /* 头部标题 */
    h1 {
        width: 98%;
        font-size: 20px;
    }

    /* 产品信息与图片响应式布局 */
    .product-info {
        width: 98%;
        flex-direction: column;
    }

    .img-box {
        width: 98%;
    }

    .info-box {
        width: 98%;
    }

    .product-text {
        width: 98%;
    }

    .img-box>.small-img {
        justify-content: center;
    }

    .img-box>.small-img>img {
        width: 80px;
        height: 60px;
    }

    .info-box>ul>li {
        font-size: 12px;
    }

    /* 主体文字区域响应式布局 */

    .product-text>.tab>h2 {
        font-size: 18px;
    }

    .product-text>.tab>h3 {
        font-size: 16px;
    }

    .product-text>ul {
        flex-direction: column;
    }

    .product-text>ul>li {
        width: 100%;
    }

    /* 价格模块响应式 */
    .price-box {
        text-align: center;
    }

    .cart-box {
        text-align: center;
    }

    .cart-box>div {
        justify-content: center;
    }

    /* 头部导航栏响应式布局 */
    .info-ol-nav>ol {
        width: 100%;
        font-size: 12px;
    }

    .info-ol-nav>ol>li>a,
    .info-ol-nav>ol>li {
        font-size: 12px;
    }

    /* 相关产品响应式布局 */
    .related-product {
        flex-direction: column;
        align-items: center;
        font-size: 12px;
    }

    .related-product>img {
        width: 40%;
        min-width: 250px;
    }

    .related-product>div {
        padding: 10px 0px;
        width: 98%;
        align-items: center;
    }

    .related-product>div>ul {
        justify-content: center;
    }

    /* 支付表格响应式布局 */
    .pay-table {
        width: 100%;
        border: 1px solid #ccc;
        border-collapse: collapse;
    }

    .pay-table tr {
        border: 1px solid #ccc;
    }

    .pay-table .product-header-main .product-title {
        font-size: 18px;
    }

    .pay-table td {
        border: 1px solid #ccc;
        padding: 8px;
    }

    .pay-table td img {
        width: 100%;
        max-height: 55px;
    }

    .pay-table td .img-p {
        font-size: 12px;
    }

    /* 问题区域响应式布局 */
    .questions-div {
        width: 98%;
    }

    /* 热门推荐响应式布局 */
    .hot-recommend {
        width: 98%;
    }

    .hot-recommend>.hot-img>li {
        width: 32%;
        min-height: 170px;
    }

    .hot-recommend>.hot-img>li>a>p {
        font-size: 12px;
        padding: 5px 0px;
    }

    .hot-recommend>h3 {
        font-size: 16px;
    }

    .hot-link>li>a {
        font-size: 12px;
    }

    /* BEST-SELLING 轮播响应式 */
    .carousel-slide {
        grid-template-columns: repeat(2, 1fr);
    }

    .best-selling-item img {
        height: 150px;
    }

    /* Viewed 网格响应式 */
    .viewed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 1200px) {
    h1 {
        width: 85%;
    }

    .product-info {
        width: 85%;
    }

    .product-text {
        width: 85%;
    }

    .questions-div {
        width: 85%;
    }

    .hot-recommend {
        width: 85%;
    }

    /* Viewed 网格响应式 */
    .viewed-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 980px) {
    h1 {
        width: 95%;
    }

    .product-info {
        width: 95%;
    }

    .product-text {
        width: 95%;
    }

    .questions-div {
        width: 95%;
    }

    .hot-recommend {
        width: 95%;
    }

    /* Viewed 网格响应式 */
    .viewed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {}

/* Compatibility 样式 */
.compat-intro {
    margin: 15px 0 10px;
    font-size: 14px;
    color: #333;
}

.compat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    padding: 10px 0;
}

.compat-item {
    padding: 6px 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: #f9f9f9;
}

.compat-item.show-more {
    cursor: pointer;
    color: #008cff;
    background: #e6f3ff;
}

.compat-item.show-more:hover {
    background: #cce6ff;
}
