/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #D56920;
    width: 1200px;
    margin: 0 auto;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background-color: white;
}

/* 头部导航样式 */
.header {
    background: white;
    color: #333;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 1200px;
    margin: 0 auto;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

.logo h1 {
    font-size: 32px;
    color: #D56920;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav a {
    color: #D56920;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Banner样式 */
.banner {
    height: 400px;
    width: 1200px;
    margin: 0 auto;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 横着的Banner样式 */
.horizontal-banner {
    height: 200px;
    margin: 32px auto;
    width: 1200px;
}

.horizontal-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 章节标题样式 */
.section-title {
    text-align: left;
    font-size: 40px;
    margin: 48px 0 32px;
    color: #2c3e50;
    position: relative;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 40px;
    background: #D56920;
    margin-right: 15px;
    vertical-align: middle;
}

/* 新车展示样式 */
.new-cars {
    padding: 48px 0;
    background: white;
}

/* 第一行 - 2列样式 */
.cars-grid-01 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.car-item-01 {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.car-item-01:hover {
    transform: translateY(-5px);
}

.car-image-01 {
    position: relative;
    overflow: hidden;
}

.car-image-01 img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-item-01:hover .car-image-01 img {
    transform: scale(1.05);
}

.car-info-01 {
    padding: 24px;
    text-align: center;
}

.car-info-01 h3 {
    font-size: 21px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.car-info-01 p {
    color: #7f8c8d;
    font-size: 14px;
}

/* 第二行 - 3列样式 */
.cars-grid-02 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.car-item-02 {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.car-item-02:hover {
    transform: translateY(-5px);
}

.car-image-02 {
    position: relative;
    overflow: hidden;
}

.car-image-02 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-item-02:hover .car-image-02 img {
    transform: scale(1.05);
}

.car-info-02 {
    padding: 24px;
    text-align: center;
}

.car-info-02 h3 {
    font-size: 21px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.car-info-02 p {
    color: #7f8c8d;
    font-size: 14px;
}

.car-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.car-item:hover {
    transform: translateY(-5px);
}

.car-image {
    position: relative;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-item:hover .car-image img {
    transform: scale(1.05);
}

.car-info {
    padding: 24px;
    text-align: center;
}

.car-info h3 {
    font-size: 21px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.car-info p {
    color: #7f8c8d;
    font-size: 14px;
}

/* 车型展示样式 */
.models-showcase {
    padding: 48px 0;
    background: white;
}

.models-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.model-item {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.model-item:hover {
    transform: translateY(-3px);
}

.model-item:nth-child(even) {
    flex-direction: row-reverse;
}

.model-image {
    flex: 1;
}

.model-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.model-info {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.model-info h3 {
    font-size: 29px;
    margin-bottom: 16px;
    color: #2c3e50;
}

.model-info p {
    font-size: 16px;
    line-height: 1.8;
    color: #7f8c8d;
}

/* 车型精选展示样式 */
.featured-models {
    padding: 48px 0;
    background: white;
}

.featured-grid-2x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 32px;
}

.featured-item {
    background: white;
    border-radius: 10px;
    padding: 24px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.featured-item:hover {
    transform: translateY(-5px);
}

.featured-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.featured-item h3 {
    font-size: 21px;
    margin-bottom: 12px;
    color: #2c3e50;
    text-align: left;
}

.featured-item p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    flex-grow: 1;
}

/* Mercedes介绍样式 */
.mercedes-intro {
    padding: 48px 0;
    background: white;
}

.intro-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.intro-item {
    background: white;
    padding: 32px;
    border-radius: 10px;
    text-align: center;
}

.intro-item h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #2c3e50;
}

.intro-item p {
    line-height: 1.8;
    color: #7f8c8d;
}

/* 车型网格样式 */
.models-grid {
    padding: 48px 0;
    background: white;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.grid-item h3 {
    font-size: 21px;
    margin: 16px 0 8px;
    padding: 0 16px;
    color: #2c3e50;
}

.grid-item p {
    padding: 0 16px 24px;
    color: #7f8c8d;
    line-height: 1.6;
}

/* 底部版权样式 */
.footer {
    background: #2c3e50 !important;
    background-color: #2c3e50 !important;
    color: white;
    text-align: center;
    padding: 32px 0;
    margin-top: 48px;
    width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
    background: transparent !important;
    background-color: transparent !important;
}

/* 奔驰历史介绍样式 */
.mercedes-history {
    padding: 48px 0;
    background: white;
}

.history-content {
    background: white;
    padding: 32px;
    border-radius: 10px;
    margin-bottom: 32px;
}

.history-content h3 {
    font-size: 29px;
    margin-bottom: 24px;
    color: #2c3e50;
    text-align: center;
}

.history-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #7f8c8d;
    text-indent: 2em;
    margin-bottom: 16px;
}

/* 奔驰品牌介绍样式 */
.brand-intro {
    padding: 48px 0;
    background: white;
}

.brand-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.brand-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-5px);
}

.brand-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.brand-info {
    padding: 32px;
}

.brand-info h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #2c3e50;
}

.brand-info p {
    font-size: 16px;
    line-height: 1.8;
    color: #7f8c8d;
}