/* 基础样式 */
body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
}

a {
    text-decoration: none !important;
}

ul,
ol {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

/* 导航链接样式 */
.nav-link {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.nav-active {
    border-bottom: 2px solid white !important;
    background-color: #ea580c !important;
}

.nav-link:hover {
    opacity: 1;
}




/* 按钮样式 */
.btn-orange {
    background-color: #f97316 !important;
    color: white !important;
    border: none;
    font-weight: 700;
}

.btn-dark {
    background-color: #111827;
    border: none;
}

.btn-dark:hover {
    background-color: #374151;
}

/* 筛选按钮样式 */
.filter-btn {
    border: 1px solid #e5e7eb;
    color: #374151;
    background: white;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #f97316;
    color: #f97316;
}

.filter-btn.active {
    background-color: #f97316 !important;
    border-color: #f97316 !important;
    color: white !important;
}

/* 车辆卡片样式 */
.car-card {
    display: block;
    background: white;
    border: none;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.car-card:hover {
    transform: translateY(-5px);
}

.car-card .img-wrapper {
    position: relative;
    padding-top: 66%;
    overflow: hidden;
    border-radius: 4px;
}

.car-card .img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover .img-wrapper img {
    transform: scale(1.05);
}

/* 图片展示样式 */
.img-wrapper {
    position: relative;
    padding-top: 66%;
    overflow: hidden;
    border-radius: 4px;
}

.img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 特色卡片样式 */
.feature-card {
    background: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: center;
}

/* 轮播图样式 */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    margin: 0 1rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-indicators li {
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.carousel-indicators .active {
    background-color: white;
}

/* 详情页面图片样式 */
.detail-thumb {
    transition: all 0.2s;
}

.detail-thumb:hover {
    cursor: pointer;
}

.detail-thumb.active {
    ring: 2px solid #f97316;
    opacity: 1;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 首页特殊样式 */
.home-filter-btn {
    border: 1px solid #e5e7eb;
    color: #374151;
    background: white;
    transition: all 0.2s;
}

.home-filter-btn:hover {
    border-color: #f97316;
    color: #f97316;
}

.home-filter-btn.active {
    background-color: #f97316 !important;
    border-color: #f97316 !important;
    color: white !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .filter-btn {
        font-size: 12px;
        padding: 0.25rem 0.5rem;
    }
}

/* 特殊边框样式 */
.dashed-border {
    border-style: dashed !important;
    border-width: 2px !important;
    border-color: #e5e7eb !important;
}

#page {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

#page .pagination {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

#page .pagination li {
    display: flex;
}

#page .pagination a,
#page .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#page .pagination a {
    background-color: #fff;
    color: #6c757d;
}

#page .pagination a:hover {
    background-color: #f3f4f6;
    color: #374151;
}

#page .pagination li.disabled span {
    background-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
}

#page .pagination li.active span {
    background-color: #f97316;
    color: #fff;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
}

#page .pagination li.active a {
    background-color: #f97316;
    color: #fff;
}