.slideshow {
    height: 400px;
    object-fit: cover;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #121212;
    color: #fff;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 顶部导航栏 --- */
header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, #121212, #121212);
}

header.scrolled {
    background: #121212 !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 12px;
    text-transform: capitalize;
    transition: color 0.3s;
}

nav a:hover {
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-add-listing {
    background-color: #fff;
    color: #121212;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}

.menu-icon {
    color: #fff;
    font-size: 20px;
}

/* ==========================
           🔥 终极修复：居中 + 动画不冲突
        ========================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    width: 100%;
    height: 100vh;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, #121212, transparent);
}

/* 永久居中容器 —— 绝对不动 */
.hero-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

/* 🔥 动画只加在内部元素，绝不破坏居中 */
.hero-animate {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
}

.hero-animate.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    text-transform: lowercase;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.btn-search {
    background-color: #ffcc00;
    color: #121212;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.hero-info {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    font-size: 12px;
    color: #aaa;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-info-left {
    max-width: 250px;
}

.hero-info-right {
    background-color: #fff;
    color: #121212;
    padding: 10px;
    border-radius: 8px;
    max-width: 280px;
}

/* LOGO无限无缝滚动 */
.logo-scroll {
    padding: 30px 0;
    overflow: hidden;
    background-color: #121212;
    width: 100%;
}

.logo-scroll-inner {
    display: flex;
    width: max-content;
    animation: logoScroll 30s linear infinite;
}

.logo-track {
    display: flex;
    gap: 80px;
}

.logo-item {
    filter: grayscale(100%) brightness(0.7);
    transition: filter 0.3s;
    flex-shrink: 0;
}

.logo-item:hover {
    filter: grayscale(0%) brightness(1);
}

@keyframes logoScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-scroll-inner:hover {
    animation-play-state: paused;
}

.offer-section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
}

.offer-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;

}

.offer-left {
    flex: 1.5;
    min-width: 300px;
}

.offer-desc {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 30px;
}

.offer-list {
    list-style: none;
    margin-bottom: 30px;
}

.offer-list li {
    padding: 15px 0;
    border-bottom: 1px solid #333;
    display: flex;
    gap: 15px;
    font-size: 12px;
}

.offer-list li::before {
    content: attr(data-num);
    color: #666;
}

.btn-yellow {
    background-color: #ffcc00;
    color: #121212;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

.offer-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.offer-card {
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.offer-card img {
    width: 100%;
    /* height: auto; */
    object-fit: cover;
    height: 240px;
    display: block;
}

.offer-card-text {
    /* position: absolute; */
    top: 20px;
    left: 20px;
    padding: 15px;
}

.offer-card-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.offer-card-text p {
    font-size: 12px;
    color: #ccc;
}

.offer-stats {
    background-color: #ffcc00;
    color: #121212;
    padding: 20px;
    border-radius: 8px;
}

.offer-stats .num {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.offer-stats .desc {
    font-size: 12px;
}

.cars-section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    background-color: #222;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.tab-btn.active {
    background-color: #fff;
    color: #121212;
}

.btn-view-all {
    background-color: #ffcc00;
    color: #121212;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}
.btn-view-all:hover {
    background-color: #ffcc00;
    color: #121212;
}

/* 汽车卡片swiper容器 */
.cars-swiper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding-bottom: 50px;
}

.swiper-wrapper {
    display: flex;
    flex-wrap: nowrap !important;
}

.swiper-slide {
    flex-shrink: 0;
    width: 270px;
}

.car-card {
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
}

.car-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.car-info {
    padding: 15px;
}

.car-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
}

.car-location {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 15px;
}

.car-specs {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #aaa;
    margin-bottom: 15px;
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.car-price {
    opacity: .5;
    font-size: 12px;
    font-weight: 300;
}

.btn-view-details {
    background: none;
    border: none;
    color: #ffcc00;
    font-size: 11px;
    cursor: pointer;
}

.swiper-buttons {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    gap: 10px;
}

.swiper-btn {
    background-color: #333;
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-btn.next {
    background-color: #ffcc00;
    color: #121212;
}

.sell-section {
    padding: 60px 0;
}

.sell-banner {
    background: linear-gradient(to right, #333, #222);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.sell-content {
    max-width: 350px;
}

.sell-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.sell-content p {
    color: #ccc;
    font-size: 12px;
    margin-bottom: 30px;
}

.sell-car-img {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    max-width: 60%;
    height: auto;
}

.contact-section {
    padding: 60px 0;
}

.contact-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-left {
    flex: 1;
    min-width: 300px;
}

.contact-left h2 {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-left p {
    color: #aaa;
    font-size: 12px;
    margin-bottom: 30px;
}

.open-hours {
    background-color: #222;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.open-hours h4 {
    font-size: 14px;
    margin-bottom: 15px;
}

.hours-grid {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaa;
}

.contact-right {
    flex: 1;
    min-width: 300px;
}

.map-container {
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.map-container img {
    width: 100%;
    display: block;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #ccc;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

footer {
    background-color: #fff;
    color: #121212;
    padding: 40px 0;
    border-radius: 12px 12px 0 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 12px;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #333;
    text-decoration: none;
    font-size: 12px;
}

.footer-newsletter {
    margin-top: 15px;
}

.footer-newsletter input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 12px;
    width: 150px;
}

.footer-newsletter button {
    background-color: #121212;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 12px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-icon {
    background-color: #121212;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.copyright {
    margin-top: 30px;
    font-size: 11px;
    color: #666;
}

/* 全局页面动画 —— 不影响 Banner */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==========================
   全站统一 Hover 动画
========================== */
a,
button,
.swiper-btn,
.tab-btn,
.car-card,
.offer-card,
.logo-item,
.social-icon,
.sell-banner button,
.contact-section button,
.offer-section button {
    cursor: pointer !important;
    transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* 导航链接 hover */
nav a:hover {
    color: #ffcc00 !important;
    transform: translateY(-1px);
}

/* 所有按钮基础 hover */
button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 黄色按钮强化 */
.btn-yellow:hover,
.btn-search:hover {
    background-color: #ffd930 !important;
}

/* 白色小按钮 */
.btn-add-listing:hover {
    background-color: #eee !important;
}

/* 标签切换 */
.tab-btn:hover {
    background-color: #444 !important;
    color: #fff !important;
}

.tab-btn.active:hover {
    background-color: #fff !important;
    color: #000 !important;
}

/* 轮播箭头 */
.swiper-btn:hover {
    background-color: #ffcc00 !important;
    color: #121212 !important;
}

/* 汽车卡片 hover */
.car-card {
    transition: all 0.3s ease !important;
}

.car-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

/* 卡片里的查看详情 */
.btn-view-details:hover {
    color: #ffd930 !important;
    padding-left: 4px;
}

/* offer 卡片 */
.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* logo 滚动 */
.logo-item:hover {
    filter: grayscale(0%) brightness(1.1);
    transform: scale(1.08);
}

/* footer 链接 */
.footer-col ul li a:hover {
    color: #ffcc00 !important;
    padding-left: 3px;
}

/* 社交图标 */
.social-icon:hover {
    background-color: #ffcc00 !important;
    color: #121212 !important;
    transform: scale(1.15);
}

/* 地图气泡 */
.map-container div:hover {
    background-color: #ffcc00 !important;
    color: #121212 !important;
}


@media only screen and (max-width: 768px) {
    .hero{
        height: 40vh;
        padding-top: 75px;
    }
    .hero-slide{
        height: 40vh;
    }
}