/* 轮播图样式 */
.carousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-inner {
    border-radius: 8px;
    overflow: hidden;
}

.carousel-item {
    height: 400px; /* 设置轮播图高度 */
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

/* 轮播图控制按钮 */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* 轮播图指示器 */
.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators li.active {
    background-color: #ff4400;
    width: 12px;
    height: 12px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .carousel-item {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 200px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.2);
    }
}

.index-news {
    margin-bottom: 30px;
}

.index-news dl {
    margin: 0;
}

.index-news dt {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.index-news ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.index-news li {
    flex: 0 0 calc(33.333% - 10px);
    box-sizing: border-box;
}

.index-news li a {
    display: block;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.3s ease;
    height: 100%;
}

.index-news li a:hover {
    background-color: #e8e8e8;
    color: #ff4400;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .index-news li {
        flex: 0 0 100%;
    }
    
    .index-news li a {
        padding: 12px;
        font-size: 13px;
    }
}


.index-ad a {
    display: block;
    width: 100%;
    height: 100%;
}

.index-ad a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 下载中心样式 */
.index-download {
    margin-bottom: 30px;
}

.index-download dl {
    margin: 0;
}

.index-download dt {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.index-download ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.index-download li {
    flex: 0 0 calc(33.333% - 13.333px);
    box-sizing: border-box;
}

.index-download li a {
    display: block;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    height: 100%;
}

.index-download li a:hover {
    transform: translateY(-2px);
}

.download-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.index-download li a:hover .download-item {
    background-color: #e8e8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.download-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.download-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.index-download li a:hover .download-image img {
    transform: scale(1.05);
}

.download-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.download-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.download-desc {
    font-size: 12px;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.download-meta {
    font-size: 11px;
    color: #999;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .index-download li {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .index-download li {
        flex: 0 0 100%;
    }
    
    .download-image {
        height: 120px;
    }
    
    .download-info {
        padding: 12px;
    }
    
    .download-title {
        font-size: 13px;
    }
    
    .download-desc {
        font-size: 11px;
    }
}

/* 产品推荐样式 */
.index-product {
    margin-bottom: 30px;
}

.index-product dl {
    margin: 0;
}

.index-product dt {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.index-product ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.index-product li {
    flex: 0 0 calc(50% - 10px);
    box-sizing: border-box;
}

.index-product li a {
    display: block;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    height: 100%;
}

.index-product li a:hover {
    transform: translateY(-2px);
}

.product-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.index-product li a:hover .product-item {
    background-color: #e8e8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    position: relative;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.index-product li a:hover .product-image img {
    transform: scale(1.05);
}

.product-donate {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.donate-btn {
    background-color: rgba(255, 68, 0, 0.9);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.donate-btn:hover {
    background-color: rgba(255, 68, 0, 1);
    transform: scale(1.05);
}

.donate-btn i {
    font-size: 10px;
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-category {
    display: inline-block;
    background-color: #ff4400;
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    align-self: flex-start;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 1;
}

.product-message {
    font-size: 12px;
    color: #999;
    margin: 0;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-sharer {
    font-size: 11px;
    color: #999;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .index-product li {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .product-image {
        height: 150px;
    }
    
    .product-info {
        padding: 12px;
        gap: 8px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-desc {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    
    .product-message {
        font-size: 11px;
    }
    
    .donate-btn {
        padding: 4px 10px;
        font-size: 11px;
    }
}