/* 首页特定样式 */

.HB-auto {
  padding: 4rem 0;
}

.HB-auto h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.cards-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
}

.HB-auto-card {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: calc(33.33% - 20px);
    box-sizing: border-box;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.HB-auto-card:nth-child(2) {
    background-color: #f9f9f9;
}

.card-icon {
    margin-bottom: 10px;
    transform: scale(0.8);
}

.HB-auto-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.HB-auto-card p {
    font-size: 14px;
    line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .HB-auto-card {
        width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
    }
    
    .HB-auto-card {
        width: 100%;
    }
}

.our-advantage {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.our-advantage h2 {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.8rem;
}

.our-advantage h2 + p {
    margin-bottom: 1rem;
    text-align: center;
    font-size: 23px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.advantage-item {
    padding: 50px 30px;
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-item-num {
    font-size: 160px;
    color: #f9c29e;
    position: absolute;
    top: -20px;
    right: 0;
    opacity: 0.2;
    font-weight: bold; /* 加粗 */
    font-style: italic; /* 斜体 */
}

.advantage-item p {
    font-size: 20px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .advantage-item {
        padding: 40px 20px;
    }
    
    .advantage-item-num {
        font-size: 120px;
    }
    
    .advantage-item p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
    }
    
    .advantage-item {
        padding: 30px 15px;
    }
    
    .advantage-item-num {
        font-size: 100px;
    }
    
    .advantage-item p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-item {
        padding: 30px 20px;
    }
    
    .advantage-item-num {
        font-size: 80px;
    }
    
    .advantage-item p {
        font-size: 16px;
    }
}

.purchase-to-delivery {
    padding: 50px 0;
    box-sizing: border-box;
}

.purchase-to-delivery h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.step-item {
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.step-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.step-image {
    width: 100%;
    height: auto;
    display: block;
}

.step-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    padding: 10px;
    border-radius: 8px;
    width: 60%;
    transition: opacity 0.3s ease;
}

.step-item:hover .step-content {
    opacity: 0;
}

.step-hover-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 18px;
    line-height: 1.5;
}

.step-item:hover .step-hover-content {
    opacity: 1;
}

.step-num {
    font-size: 45px;
    font-weight: bold;
    margin-bottom: 10px;
}

.step-num + p {
   font-size: 28px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}