/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* 主体样式  */
/* 筛选和排序表单样式 */
form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

form label {
    margin-right: 10px;
    font-weight: bold;
    color: #555;
}

form select {
    width: 150px;
    padding: 12px;
    margin-right: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 95%;
    background-position-y: 50%;
    transition: border-color 0.3s ease;
}

form select:hover {
    border-color: #007BFF;
}

form input[type="submit"] {
    padding: 12px 25px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

form input[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* 媒体查询，小屏幕下的样式 */
@media (max-width: 600px) {
    form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    form label,
    form select,
    form input[type="submit"] {
        margin-bottom: 15px;
    }
}
/* 筛选和排序表单样式结束 */

main {
    padding: 0 10px 10px;
    text-align: center;
}

main h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.tire-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px; /* 项目之间的间距 */
}

/* 添加这个样式规则以确保未检索到轮胎的提示文字在所有屏幕尺寸下都居中显示 */
.tire-container > p {
    text-align: center;
    width: 100%;
    padding: 50px 0;
    font-size: 16px;
    color: #666;
}

.tire-item {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    position: relative; 
}

.tire-item:hover {
    transform: translateY(-2px); 
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); 
}

.tire-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    width: auto;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 10px;
}



.tire-item h3 {
    margin-top: 10px;
    font-size: 1.2em;
    color: #333;
    text-align: center;  /* 添加水平居中 */
}

.tire-item p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #777;
}

.tire-item a {
    display: inline-block;
    margin: 0px 0;
    padding: 5px 15px;
    background-color: transparent; /* 改为透明背景 */
    color: #777; /* 文字颜色 */
    text-decoration: underline; /* 添加下划线 */
    transition: color 0.3s;
}

.tire-item a:hover {
    background-color: transparent; /* 悬停时保持透明 */
    color: #44484b; /* 悬停时文字颜色变深 */
}

.tire-detail {
    display: flex;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.tire-detail img {
    flex: 1;
    max-width: 300px;
    height: auto;
    margin-top: 20px;
    object-fit: contain;
    border-radius: 5px;
    width: auto;
    max-height: 300px;
    margin: 20px;
}

.tire-info {
    flex: 1;
    padding: 20px;
    text-align: left;
    max-width: 100%;
}

.tire-info h1 {
    margin-top: 0;
    font-size: 1.5em;
    color: #333;
}

.tire-info p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 10px;
}

.tire-info p:nth-child(2) {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.add-to-cart,
.tocart {
    background-color: #0071e3;
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover,
.tocart:hover {
    background-color: #0056b3;
}

.back-button {
    background-color: #ffffff;
    color: #0071e3;
    font-size: 16px;
    padding: 15px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    color: #e2e2e2;
}

/* 美化筛选按钮 */
#toggleFilterButton {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 10px auto; 
    display: block; 
}

.filter-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

#toggleFilterButton:hover .filter-icon {
    transform: scale(1.1);
}

/* 媒体查询，小屏幕下的样式 */
@media (max-width: 600px) {
    form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    form label,
    form select,
    form input[type="submit"] {
        margin-bottom: 10px;
    }

    /* 小屏幕下轮胎容器样式 */
    .tire-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    /* 小屏幕下轮胎项目样式 */
    .tire-item {
        width: 100%;
        padding: 15px;
        margin: 0;
        border: 1px solid #ccc;
        border-radius: 10px;
        display: flex;
        align-items: flex-start;
        text-align: left;
        background-color: #fff;
    }

    /* 调整图片容器样式 */
    .image-container {
        flex-shrink: 0;
        width: 40%;
        margin-right: 15px;
        position: relative;
        display: flex;
        justify-content: center;
    }

    /* 调整图片样式 */
    .tire-item img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
        width: 100%;
        max-height: 150px;
        margin-bottom: 0;
    }

    /* 调整标题和段落样式 */
    .tire-item h3 {
        font-size: 16px;
        margin-top: 0;
        margin-bottom: 5px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-align: center;  /* 添加水平居中 */
    }

    .tire-item p {
        font-size: 12px;
        margin: 3px 0;
        line-height: 1.4;
    }

    /* 调整售价样式 */
    .tire-item h4 {
        font-size: 14px;
        margin: 5px 0;
        color: #f81b2d;
        font-weight: bold;
        text-align: center;
    }

    /* 调整链接按钮样式 */
    .tire-item a {
        display: inline-block;
        margin: 8px 0 0 0;
        padding: 5px 15px;
        background-color: transparent;
        color: #777;
        text-decoration: underline;
        transition: color 0.3s;
        font-size: 12px;
    }
    
    /* 详细参数链接居中显示 */
    .tire-content a[href^="tire_detail.php"] {
        display: block;
        text-align: center;
        margin: 5px auto;
    }

    /* 小屏幕下未检索到轮胎提示文字居中 */
    .tire-container p {
        text-align: center;
        width: 100%;
    }

    .tire-detail {
        display: block;
        text-align: center;
    }

    .tire-detail img,
    .tire-info {
        width: 100%;
        height: auto;
        display: inline-block;
        text-align: left;
    }
    
    /* 确保移动端隐藏库存状态信息 */
    .hide-stock-status {
        display: none !important;
    }
}

.out-of-stock {
    opacity: 0.5;
}

/* 返回顶部按钮样式 */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: rgba(8, 117, 168, 0.5);
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 10px;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#backToTopBtn:hover {
    background-color: rgba(85, 85, 85, 0.8);
    transform: translateY(-2px);
}

/* 新增样式，用于居中显示查看全部轮胎部分 */
.view-all-tires {
    text-align: center;
    margin: 30px 0;
}

.view-all-tires h4 {
    font-family: Arial, sans-serif;
    color: #333;
    margin-bottom: 5px;
}

.view-all-tires h5 {
    font-family: Arial, sans-serif;
    color: #0875a8;
    margin-bottom: 5px;
}



.load-more-button:hover {
    background-color: #06587e;
    transform: translateY(-2px);
}

/* 调整重选规格输入框样式 */
h4 {
    font-family: Arial, sans-serif;
    color: #202020;
}

#changeSpecLink {
    color: #0875a8;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s ease;
}

#changeSpecLink:hover {
    color: #06587e;
}

#specInputSection {
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

#specInput {
    padding: 10px 15px;
    border: none; /* 移除所有边框 */
    border-bottom: 1px solid #ccc; /* 只显示下边框，初始颜色为灰色 */
    border-radius: 0; /* 移除圆角 */
    margin-right: 10px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    width: 300px;
}
#specInput:focus {
    outline: none; /* 移除默认的聚焦轮廓 */
    border-bottom: 1px solid #007BFF; /* 聚焦时下边框变为蓝色 */
}

#specInput:hover {
    border-color: #007BFF;
}

#confirmSpecBtn {
    background-color: #0875a8;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 5px 0px;
}

#confirmSpecBtn:hover {
    background-color: #06587e;
    transform: translateY(-2px);
}

#filterForm {
    display: none;
}

/* EV轮胎专业蓝色调 */
.ev-tire {
    border: 2px solid #3ba5e2; 
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.15); 
    transition: all 0.3s ease; 
}

.ev-tire:hover {
    transform: translateY(-2px); 
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.25);
}

.ev-badge {
    position: absolute; 
    top: 10px; 
    right: 10px; 
    background-color: rgba(22, 93, 255, 0.08); 
    color: #165DFF; 
    padding: 4px 8px; 
    border-radius: 4px; 
    font-size: 12px; 
    display: flex; 
    align-items: center; 
    z-index: 1;
}

.ev-badge span {
    font-weight: bold; 
    color: #ff6600; 
}

/* 默认隐藏移动端 EV 标识 */
.mobile-ev-badge {
    display: none;
}

/* 大屏幕上隐藏桌面端 EV 标识容器的额外空间 */
.desktop-ev-badge-container {
    display: none;
}

/* 在移动端媒体查询中显示移动端 EV 标识并隐藏桌面端 EV 标识 */
@media (max-width: 600px) {
    /* 移动端 EV 标识样式 */
    .mobile-ev-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 5px;
        padding: 3px 8px;
        background-color: #e6f7ff;
        border-radius: 10px;
        font-size: 12px;
        color: #0066cc;
    }
    
    /* 隐藏原有的 EV 标识容器，避免重复显示 */
    .tire-item > .ev-badge {
        display: none;
    }
    
    /* 确保图片容器内部元素居中对齐 */
    .image-container {
        align-items: center;
    }
}

/* 在大屏幕媒体查询中显示原有的 EV 标识 */
@media (min-width: 769px) {
    /* 恢复原有 EV 标识的显示 */
    .tire-item > .ev-badge {
        display: block;
    }
    
    /* 隐藏移动端 EV 标识 */
    .mobile-ev-badge {
        display: none;
    }
}



/* 添加到购物车提示框样式 */
.cart-notification {
    display: flex;
    justify-content: center;
    position: fixed;
    background-color: #ffffff;
    bottom: 0;
    z-index: 1000;
    padding: 0;
    animation: slideUpFromBottom 0.3s ease;
    width: 100%;
    left: 0; 
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes slideUpFromBottom {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDownToBottom {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

/* 购物车提示框内容样式 */
.cart-notification-1-1 {
    width: 1191px;
    max-width: 100%; 
    height: auto;
    display: flex; 
    justify-content: center; 
    margin: 0 auto; 
}

.cart-notification-1 {
    width: 600px;
    height: auto;
    background-color: #ffffff;
    padding: 20px;
    position: relative;
    margin: 10px;
}

.cart-notification-1 h3 {
    margin-bottom: 10px;
}

.cart-notification-1 img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}

.cart-notification-1 p {
    margin: 5px 0;
}

.cart-notification-1 button {
    margin-top: 10px;
    margin-right: 10px;
}

.cart-notification-1 button {
        margin: 10px auto 0;
        display: block;
        width: 100%;
    }

/* 数量选择器样式 */
.quantity-selector {
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-dropdown {
    width: 60px;
    height: 30px;
    padding: 5px;
    border: none;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
}

/* 调整小计样式，使其在水平布局下显示正常 */
.subtotal {
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
    display: block;
    overflow: visible;
    text-overflow: clip;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    line-height: 30px;
}

.quantity-dropdown:focus {
    outline: none;
    border-color: #0999c9;
    box-shadow: 0 0 0 2px rgba(9, 153, 201, 0.2);
}

.view-cart-button {
    background-color: #201f1f; 
    color: #ffffff; 
    padding: 10px 20px; 
    border: 2px solid #201f1f; 
    border-radius: 5px; 
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 0 0 2px #ffffff inset; 
}

.view-cart-button:hover {
    background-color: #3f3d3d; 
}

.checkout-button {
    background-color: transparent; 
    color: #0999c9; 
    padding: 5px 0;
    border: none; 
    border-radius: 0;
    cursor: pointer; 
    transition: color 0.3s ease; 
    font-size: 16px;
    text-decoration: none;
    width: auto;
    display: block;
    text-align: center;
    max-width: none;
    align-self: center;
    margin: 0 auto;
}

.confirm-button {
    background-color: #0999c9; /* 豆包蓝背景 */
    color: white; /* 白色文字 */
    padding: 10px 20px; /* 适当的内边距 */
    border: none; 
    border-radius: 5px; /* 5px圆角 */
    cursor: pointer; 
    transition: background-color 0.3s ease; 
    font-size: 16px; 
    text-decoration: none;
    width: 25%; /* 宽度缩短一半，设为25% */
    display: block;
    text-align: center; /* 文字居中 */
    max-width: none; /* 移除最大宽度限制 */
    align-self: center; /* 水平居中 */
    margin: 10px auto 0;
}

.checkout-button:hover {
    background-color: transparent; 
    color: #009acd; 
    text-decoration: underline;
}

.confirm-button:hover {
    background-color: #0088b8; /* 深色豆包蓝背景 */
    color: white; /* 白色文字 */
    text-decoration: none;
}

/* 居中清除条件按钮 */
.selectedFilters-1 {
    max-width: 100%;
    height: auto;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    margin: 10px auto;
}

.selectedFilters-1-1 {
    max-width: 100%;
    height: auto;
    text-align: center;
}

.clear-filters-container {
    width: 300px;
    height: auto;
    margin: 10px auto;
    display: flex;
    justify-content: center;
}

.clear-filters-container button {
    color: #000000;
    text-align: center;
    border: none;
    background-color: transparent; 
}

.clear-filters-container button:hover {
    color: #000000; 
    text-decoration: underline; 
    cursor: pointer; 
}

/* 小屏幕下改为垂直排列 */
@media (max-width: 600px) {
    .tire-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .tire-item {
        width: 100%;
        box-sizing: border-box;
    }
}

/* 合并并调整媒体查询，确保在601px到768px之间水平排列 */
@media (min-width: 601px) and (max-width: 1023px) {
    .tire-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .tire-item {
        width: calc(33.333% - 6.666px);
        box-sizing: border-box;
        display: block;
    }

    /* 小屏幕表单样式移到这里 */
    form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    form label,
    form select,
    form input[type="submit"] {
        margin-bottom: 10px;
    }

    /* 保持图片容器和品牌logo样式 */
    .image-container {
        flex-shrink: 0;
        width: 40%;
        margin-right: 15px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

/* 大屏幕下每行显示 5 个项目 */
@media (min-width: 1024px) {
    .tire-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }

    .tire-item {
        width: calc(20% - 8px);
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    form {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    form label,
    form select,
    form input[type="submit"] {
        margin-bottom: 10px;
    }

    /* 小屏幕下轮胎容器样式 */
    .tire-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    /* 小屏幕下轮胎项目样式 */
    .tire-item {
        width: 100%;
        padding: 15px;
        margin: 0;
        border: 1px solid #ccc;
        border-radius: 10px;
        display: flex;
        align-items: flex-start;
        text-align: left;
        background-color: #fff;
    }

    /* 调整图片容器样式 */
    .image-container {
        flex-shrink: 0;
        width: 40%;
        margin-right: 15px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* 确保品牌logo居中 */
    .image-container img[alt*="品牌 logo"] {
        margin-top: 8px;
        display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    /* 为EV标识添加样式 */
    .image-container .ev-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 5px;
        padding: 3px 8px;
        background-color: #e6ffe6;
        border-radius: 10px;
        font-size: 12px;
        color: #009900;
    }

    /* 为右侧文字内容创建容器 */
    .tire-content {
        flex: 1;
        text-align: left;
        display: flex;
        flex-direction: column;
    }

    /* 调整图片样式 */
    .tire-item img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
        width: 100%;
        max-height: 150px;
        margin-bottom: 0;
    }

    /* 调整标题和段落样式 */
    .tire-item h3 {
        font-size: 16px;
        margin-top: 0;
        margin-bottom: 5px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-align: center;  /* 添加水平居中 */
    }

    .tire-item p {
        font-size: 12px;
        margin: 3px 0;
        line-height: 1.4;
        white-space: normal;
    }

    /* 调整售价样式 */
    .tire-item h4 {
        font-size: 14px;
        margin: 5px 0;
        color: #f81b2d;
        font-weight: bold;
    }

    /* 调整链接按钮样式 */
    .tire-item a {
        display: inline-block;
        margin: 8px 0 0 0;
        padding: 5px 15px;
        background-color: transparent;
        color: #777;
        text-decoration: underline;
        transition: color 0.3s;
        font-size: 12px;
    }



    /* 调整轮胎类型标签样式 */
    .tire-type {
        display: inline-block;
        background-color: #f0f0f0;
        border-radius: 5px;
        padding: 2px 6px;
        margin-bottom: 5px;
        font-size: 10px;
    }

    /* 确保所有文字元素都显示为块级或内联块级元素 */
    .tire-content h2,
    .tire-content p,
    .tire-content h4,
    .tire-content a {
        display: block;
        width: 100%;
        clear: both;
    }
    
    /* 为.tire-type单独设置样式，保持其背景宽度不超过文字宽度并居中显示 */
.tire-content .tire-type {
    display: inline-block;
    width: auto;
    clear: none;
    background-color: #f0f0f0;
    border-radius: 5px;
    padding: 2px 6px;
    margin-bottom: 5px;
    font-size: 10px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

    /* 小屏幕下未检索到轮胎提示文字居中 */
    .tire-container p {
        text-align: center;
        width: 100%;
    }

    .tire-detail {
        display: block;
        text-align: center;
    }

    .tire-detail img,
    .tire-info {
        width: 100%;
        height: auto;
        display: inline-block;
        text-align: left;
    }
}

.out-of-stock {
    opacity: 0.5;
}

/* 新增样式，用于居中显示查看全部轮胎部分 */
.view-all-tires {
    text-align: center;
    margin: 30px 0;
}

.view-all-tires h4 {
    font-family: Arial, sans-serif;
    color: #333;
    margin-bottom: 5px;
}

.view-all-tires h5 {
    font-family: Arial, sans-serif;
    color: #0875a8;
    margin-bottom: 5px;
}

/* 美化加载更多按钮 */
.load-more-button-container {
    text-align: center;
    margin-top: 30px;
}

.load-more-button {
    color: #202020;
    background-color: transparent;
    border: none;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.3s ease;
}

.load-more-button:hover {
    background-color: #f3f6f7;
    transform: translateY(-2px);
}

/* 调整重选规格输入框样式 */
h4 {
    font-family: Arial, sans-serif;
    color: #202020;
}

#changeSpecLink {
    color: #0875a8;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s ease;
}

#changeSpecLink:hover {
    color: #06587e;
}

#specInputSection {
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

#specInput {
    padding: 10px 15px;
    border: none; /* 移除所有边框 */
    border-bottom: 1px solid #ccc; /* 只显示下边框，初始颜色为灰色 */
    border-radius: 0; /* 移除圆角 */
    margin-right: 10px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    width: 300px;
}
#specInput:focus {
    outline: none; /* 移除默认的聚焦轮廓 */
    border-bottom: 1px solid #007BFF; /* 聚焦时下边框变为蓝色 */
}

#specInput:hover {
    border-color: #007BFF;
}

#confirmSpecBtn {
    background-color: #0875a8;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 5px 0px;
}

#confirmSpecBtn:hover {
    background-color: #06587e;
    transform: translateY(-2px);
}

#filterForm {
    display: none;
}

/* EV轮胎专业蓝色调 */
.ev-tire {
    border: 2px solid #3ba5e2; 
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.15); 
    transition: all 0.3s ease; 
}

.ev-tire:hover {
    transform: translateY(-2px); 
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.25);
}

.ev-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(22, 93, 255, 0.08); 
    color: #165DFF; 
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    z-index: 1;
}

.ev-badge span {
    font-weight: bold; 
    color: #ff6600; 
}



/* 添加到购物车提示框样式 */
.cart-notification {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5); /* 透明灰色背景 */
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 0 30px 0;
    animation: fadeIn 0.3s ease;
    width: 100%;
}

/* 背景遮罩动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 禁止页面滚动 */
body.cart-notification-open {
    overflow: hidden;
}

@keyframes slideUpFromBottom {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDownToBottom {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

/* 购物车提示框内容样式 */
.cart-notification-1-1 {
    width: 100%;
    max-width: 1191px;
    height: auto;
    display: flex; 
    justify-content: center; 
    margin: 0 auto;
    box-sizing: border-box;
}

.cart-notification-1 {
    width: 100%;
    max-width: 600px;
    height: auto;
    background-color: #ffffff;
    padding: 20px;
    position: relative;
    margin: 0 20px;
    box-sizing: border-box;
    border-radius: 12px; /* 卡片圆角 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* 卡片阴影 */
    border: 1px solid rgba(0, 0, 0, 0.05); /* 轻微边框 */
}

.cart-notification-1 h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.cart-notification-1 img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}

.cart-notification-1 p {
    margin: 5px 0;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-notification-1 > div > div > p {
    overflow: visible;
    text-overflow: clip;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    white-space: nowrap;
}

/* 将购物车提示框中的轮胎规格和价格水平显示 */
.cart-notification-1 > div > div > p:nth-child(2),
.cart-notification-1 > div > div > p:nth-child(3) {
    display: inline-block;
    margin-right: 20px;
    vertical-align: middle;
}

.cart-notification-1 button {
    margin-top: 10px;
    margin-right: 10px;
}

.cart-notification-1 button.checkout-button {
    margin: 10px 0 0 0; /* 移除auto居中 */
    display: block;
    width: auto; /* 恢复auto宽度 */
    max-width: none; /* 移除最大宽度限制 */
}

/* 数量选择器样式 */
.quantity-selector {
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.quantity-dropdown {
    width: 60px;
    height: 30px;
    padding: 5px;
    border: none;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
}

.quantity-dropdown:focus {
    outline: none;
    border-color: #0999c9;
    box-shadow: 0 0 0 2px rgba(9, 153, 201, 0.2);
}

/* 调整小计样式，使其在水平布局下显示正常 */
.subtotal {
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
}

.view-cart-button {
    background-color: transparent; 
    color: #0999c9; 
    padding: 5px 0;
    border: none; 
    border-radius: 0;
    cursor: pointer;
    transition: color 0.3s ease;
    font-size: 16px;
    text-decoration: none;
    width: auto;
    display: block;
    text-align: center;
}

.view-cart-button:hover {
    background-color: transparent; 
    color: #009acd; 
    text-decoration: underline;
}

.checkout-button {
    background-color: transparent; 
    color: #0999c9; 
    padding: 5px 0;
    border: none; 
    border-radius: 0;
    cursor: pointer; 
    transition: color 0.3s ease; 
    font-size: 16px; 
    text-decoration: none;
    width: auto;
    display: block;
    text-align: center;
    align-self: center;
    margin: 0 auto;
}

.checkout-button:hover {
    background-color: transparent; 
    color: #009acd; 
    text-decoration: underline;
} 

/* 居中清除条件按钮 */
.selectedFilters-1 {
    max-width: 100%;
    height: auto;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    margin: 10px auto;
}

.selectedFilters-1-1 {
    max-width: 100%;
    height: auto;
    text-align: center;
}

.clear-filters-container {
    width: 300px;
    height: auto;
    margin: 10px auto;
    display: flex;
    justify-content: center;
}

.clear-filters-container button {
    color: #000000;
    text-align: center;
    border: none;
    background-color: transparent; 
}

.clear-filters-container button:hover {
    color: #000000; 
    text-decoration: underline; 
    cursor: pointer; 
}

/* 屏幕宽度大于 600px 且小于 1200px 时，每行显示 3 个项目 */
@media (min-width: 601px) and (max-width: 1023px) {
    .tire-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px; 
    }

    .tire-item {
        width: calc(33.333% - 6.666px); 
        box-sizing: border-box;
    }
}

/* 大屏幕下每行显示 5 个项目 */
@media (min-width: 1024px) {
    .tire-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px; 
    }

    .tire-item {
        width: calc(20% - 8px); 
        box-sizing: border-box;
    }
}

/* 小屏幕下保持原来的布局 */
@media (max-width: 600px) {
    /* 购物车通知弹窗样式调整 */
    .cart-notification {
        width: 100%;
        left: 0;
        right: 0;
        padding: 0 0 30px 0;
    }
    
    .cart-notification-1-1 {
        padding: 0;
        margin: 0;
    }
    
    .cart-notification-1 {
        width: 100%;
        margin: 0 10px;
        padding: 15px;
        border-radius: 12px;
    }
    
    .cart-notification-1 > div:first-child {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }
    
    .cart-notification-1 img {
        width: 40px;
        height: 40px;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .cart-notification-1 > div:first-child > div {
        flex: 1;
        min-width: 0;
    }
    
    .cart-notification-1 p {
        font-size: 12px;
        line-height: 1.4;
        margin: 3px 0;
    }
    
    .cart-notification-1 p:nth-child(1) {
        font-size: 13px;
        font-weight: 500;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    /* 在移动端将购物车提示框中的轮胎规格和价格水平显示 */
    .cart-notification-1 > div > div > p:nth-child(2),
    .cart-notification-1 > div > div > p:nth-child(3) {
        display: inline-block;
        margin-right: 15px;
        vertical-align: middle;
        white-space: nowrap;
    }
    
    /* 数量选择器样式调整 */
    .quantity-selector {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        margin: 5px 0;
    }
    
    .quantity-dropdown {
        width: 50px;
        height: 28px;
        font-size: 12px;
    }
    
    .subtotal {
        font-size: 12px;
        margin: 0;
        display: block;
        overflow: visible;
        text-overflow: clip;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
        line-height: 28px;
    }
    
    /* 按钮样式调整 */
    .cart-notification-1 button {
        font-size: 14px;
        padding: 8px 12px;
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
    
    /* 为confirm-button设置例外，保持25%宽度并水平居中 */
    .cart-notification-1 button.confirm-button {
        width: 25%;
        align-self: center;
        margin: 10px auto 0;
    }
    
    .cart-notification-1 > div:nth-child(2) {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
        align-items: center;
    }
    
    .tire-container {
        display: flex;
        flex-direction: column;
        gap: 15px; 
        padding: 1px;
    }

    .tire-item {
    width: 100%;
    padding: 5px;
    margin: 0;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    display: flex;
    align-items: flex-start;
    text-align: left;
    background-color: #fff;
}

    /* 调整图片容器样式 */
    .image-container {
        flex-shrink: 0;
        width: 40%;
        margin-right: 15px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    /* 确保品牌logo居中 */
    .image-container img[alt*="品牌 logo"] {
        margin-top: 8px;
        display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    /* EV标识样式 */
    .image-container .ev-badge {
         display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 5px;
        padding: 3px 8px;
        background-color: #e6ffe6; /* 改为淡绿色 */
        border-radius: 10px;
        font-size: 12px;
        color: #009900;
    }

    /* 调整图片样式 */
    .tire-item img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
        width: 100%;
        max-height: 150px;
        margin-bottom: 0;
    }

    /* 调整标题和段落样式 */
    .tire-item h3 {
        font-size: 16px;
        margin-top: 0;
        margin-bottom: 5px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        text-align: center;  /* 添加水平居中 */
    }

    .tire-item p {
        font-size: 12px;
        margin: 3px 0;
        line-height: 1.4;
    }

    /* 调整售价样式 */
    .tire-item h4 {
        font-size: 14px;
        margin: 5px 0;
        color: #f81b2d;
        font-weight: bold;
    }

    /* 调整链接按钮样式 */
    .tire-item a {
        display: inline-block;
        margin: 8px 0 0 0;
        padding: 5px 15px;
        background-color: transparent;
        color: #777;
        text-decoration: underline;
        transition: color 0.3s;
        font-size: 12px;
    }



    /* 调整轮胎类型标签样式 */
    .tire-type {
        display: inline-block;
        background-color: #f0f0f0;
        border-radius: 5px;
        padding: 2px 6px;
        margin-bottom: 5px;
        font-size: 10px;
    }
}
/* 轮胎品牌logo布局样式 */
.image-container {
    position: relative;
    display: inline-block;
}

.brand-logo {
    position: absolute;
    bottom: -14px;
    left: 20px;
    z-index: 1;
}

/* 隐藏折扣信息的类 */
.hide-discount .bubble-wrapper,
.hide-discount .discounted-price {
    display: none !important;
}

.hide-discount .original-price {
    display: inline-block !important;
}

/* 折后价格旁气泡球样式 */
.bubble-wrapper {
    display: inline-block;
    position: relative;
    margin-right: 8px;
    vertical-align: top; 
    margin-top: -3px; 
}

.bubble {
    display: inline-block;
    background: #f81b2d; 
    color: white;
    font-weight: bold;
    padding: 2px 8px;
    font-size: 10px;
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

/* 价格样式 */
.discounted-price {
    color: #f81b2d; 
    font-weight: bold;
    font-size: 22px;
    margin-right: 8px;
}

.original-price {
    /* text-decoration: line-through; */
    color: #000000; 
    margin-left: 10px; 
    font-size: 0.9em; 
}

/* 售价样式 */
.tire-item h4 {
    color: #000000; 
    font-size: 14px;
    margin: 5px 0;
}

.discount-tip {
    color: #333; 
    font-size: 12px;
}
/* 设置轮胎类型的显示样式 */
.tire-type {
    display: inline-block;
    background-color: #f0f0f0;
    border-radius: 5px;
    padding: 2px 6px;
    margin-bottom: 5px;
    font-size: 10px;
}
/* 隐藏轮胎库存的显示样式 */
.hide-stock-status {
    display: none;
}
/* 搜索图标的显示样式 */
#changeSpecLink i {
    color: #333; /* 图标颜色 */
    font-size: 20px; /* 图标大小 */
}
/* 搜索关键词的显示样式 */
.keyword {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 3px;
}

.close-keyword {
    margin-left: 5px;
    cursor: pointer;
    color: #999;
}

.close-keyword:hover {
    color: #333;
}
/* 弹窗相关样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 桌面端弹窗样式 */
.tire-details-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: white;
    border-radius: 8px;
    padding: 0;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    z-index: 1001;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 移动端底部滑出窗口样式 */
.tire-details-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    max-height: 80vh;
    overflow: hidden;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

/* 弹窗头部样式 */
.modal-header,
.bottom-sheet-header {
    padding: 16px 20px;
    border-bottom: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: transparent;
}

/* 关闭按钮样式 */
.close-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
    line-height: 1;
    color: #666;
}

.close-button:hover {
    background-color: #e0e0e0;
    color: #333;
}

/* 弹窗内容区域样式 */
.modal-body,
.bottom-sheet-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.bottom-sheet-body {
    max-height: calc(80vh - 60px);
}

/* 加载状态样式 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #009acd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误提示样式 */
.error {
    color: #d32f2f;
    text-align: center;
    padding: 20px;
}

/* 轮胎参数样式 */
.tire-params {
    margin-top: 15px;
}

.tire-params p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* 详细参数按钮样式 */
.tire-details-button {
    background-color: transparent;
    color: #777;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.tire-details-button:hover {
    background-color: transparent;
    color: #44484b;
}