/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* 顶部导航栏 */
.top-nav {
    background-color: #FF8C00;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    width: 160px;
    display: block;
    object-fit: contain;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-select {
    height: 40px;
    padding: 0 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    margin-right: 1px;
}

.search-btn {
    height: 40px;
    padding: 0 20px;
    background-color: #FF6347;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #FF4500;
}

.user-menu a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 14px;
    transition: color 0.3s;
}

.user-menu a:hover {
    color: #FFFACD;
}

/* 主导航栏 */
.main-nav {
    background-color: white;
    border-bottom: 1px solid #e0e0e0;
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: space-between;
}

.nav-item {
    flex: 1;
    text-align: center;
}

.nav-item a {
    display: block;
    padding: 15px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-item a:hover,
.nav-item.active a {
    color: #FF8C00;
    border-bottom: 3px solid #FF8C00;
}

/* 车型分类导航 */
.car-type-nav {
    background-color: white;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.car-type-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.car-type-tabs::-webkit-scrollbar {
    height: 4px;
}

.car-type-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.car-type-tabs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.tab-item {
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s;
    position: relative;
}

.tab-item:hover {
    color: #FF8C00;
}

.tab-item.active {
    color: #FF8C00;
    font-weight: bold;
    background-color: #FFF3E0;
    border-radius: 4px;
}

.car-category-tabs {
    margin-top: 15px;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
}

.advertisement {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.advertisement a {
    display: block;
    width: 100%;
    height: auto;
    text-decoration: none;
}

.advertisement img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.advertisement img:hover {
    transform: scale(1.02);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .car-type-tabs {
        gap: 10px;
    }
    
    .tab-item {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .car-item {
        min-width: 100px;
        padding: 8px;
    }
    
    .car-item > span {
        font-size: 13px;
    }
    
    .car-actions a {
        font-size: 11px;
    }
}

/* 价格区间导航 */
.price-nav {
    background-color: white;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.price-nav .container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.price-item {
    padding: 8px 15px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-radius: 15px;
    transition: all 0.3s;
}

.price-item:hover,
.price-item.highlight {
    background-color: #FF8C00;
    color: white;
}

/* 主内容区 */
.main-content {
    padding: 20px 0;
}

.main-content .container {
    display: flex;
    gap: 20px;
}

/* 左侧内容 */
.left-content {
    width: 900px;
}

/* 焦点图轮播 */
.banner {
    position: relative;
    height: 400px;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.banner-item.active {
    opacity: 1;
}

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

.banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.6);
    color: white;
    padding: 20px;
}

.banner-text h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.banner-text p {
    font-size: 16px;
}

/* 今日焦点 */
.today-focus {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF8C00;
}

.section-title h2 {
    color: #FF8C00;
    font-size: 20px;
}

.news-badge {
    background-color: #FF4500;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 10px;
}

.more {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.more:hover {
    color: #FF8C00;
}

.focus-grid {
    display: flex;
    gap: 20px;
}

.focus-item {
    flex: 1;
    cursor: pointer;
    transition: transform 0.3s;
}

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

.focus-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.focus-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.focus-info p {
    font-size: 14px;
    color: #666;
}

/* 热门车型 */
.hot-cars {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.car-category {
    margin-bottom: 30px;
}

.car-category h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.car-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.car-item {
    width: 155px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

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

.car-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
    background-color: #f0f0f0;
}

.car-item span {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.car-item .price {
    color: #FF6347;
    font-weight: bold;
    font-size: 13px;
}

/* 汽车资讯 */
.car-news {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    display: flex;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item:hover {
    transform: translateX(5px);
}

.news-img img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.news-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.news-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.news-time {
    font-size: 12px;
    color: #999;
}

/* 右侧边栏 */
.right-sidebar {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sidebar-section h3 {
    color: #FF8C00;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF8C00;
}

/* 热门资讯列表 */
.hot-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-news-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.news-date {
    font-size: 12px;
    color: #999;
}

.hot-news-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.3s;
}

.hot-news-item a:hover {
    color: #FF8C00;
}

/* 经销商列表 */
.dealer-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dealer-item {
    display: flex;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.dealer-item:hover {
    transform: translateX(5px);
}

.dealer-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f0f0f0;
}

.dealer-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.dealer-info p {
    font-size: 12px;
    color: #666;
}

/* 广告区域 */
.ad-section {
    padding: 0;
    overflow: hidden;
}

.ad-section img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.ad-section img:hover {
    transform: scale(1.05);
}

/* 页脚 */
footer {
    background-color: #FF8C00;
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    width: 25%;
    padding: 0 15px;
}

.footer-section h3 {
    color: #FF8C00;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #FF8C00;
}

.footer-bottom {
    text-align: center;

    color: #ffffff;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
    
    .main-content .container {
        flex-direction: column;
    }
    
    .left-content,
    .right-sidebar {
        width: 100%;
    }
    
    .nav-list {
        flex-wrap: wrap;
    }
    
    .nav-item {
        flex: 1 0 20%;
    }
    
    .footer-content {
        flex-wrap: wrap;
    }
    
    .footer-section {
        width: 50%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .top-nav .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .search-select {
        flex: 1;
    }
    
    .focus-grid {
        flex-direction: column;
    }
    
    .nav-item {
        flex: 1 0 33.33%;
    }
    
    .car-type-nav .container {
        flex-wrap: wrap;
    }
    
    .car-type-item {
        flex: 1 0 25%;
    }
    
    .price-nav .container {
        justify-content: center;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-img img {
        width: 100%;
    }
    
    .footer-section {
        width: 100%;
    }
}