/* css/global.css - 全局公共样式，所有页面共用 */
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 顶部导航栏样式 */
.header-div {
    background-color: #1a365d;
    color: white;
    padding: 15px 0;
    position: static;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
}

.logo img {
    border-radius: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-link{
    display: none;
}



.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-links a.active {
    color: #f8c630;
}

.nav-links a:hover {
    color: #f8c630;
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f8c630;
}

.header-div .logo span{
    font-size: 35px;
}
/* 语言切换器样式 */
.language-switcher {
    position: relative;
}

.lang-btn {
    background-color: transparent;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    cursor: pointer;
}

.lang-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background-color: white;
    list-style: none;
    width: 120px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}

.lang-dropdown.active {
    display: block;
}

.lang-dropdown li {
    padding: 10px 15px;
    cursor: pointer;
    color: #333;
    transition: background-color 0.3s;
}

.lang-dropdown li:hover {
    background-color: #f5f5f5;
    color: #1a365d;
}

.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* 部分标题样式 */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.section-title h2 {
    color: #1a365d;
    font-size: 32px;
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
}

/* 客服面板样式 */
.customer-service {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
}

.cs-button {
    width: 60px;
    height: 60px;
    background-color: #1a365d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.cs-button:hover {
    background-color: #f8c630;
    color: #1a365d;
}

.cs-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    display: none;
}

.cs-panel.active {
    display: block;
}

.cs-header {
    background-color: #1a365d;
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cs-close {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.cs-content {
    padding: 20px;
}

.cs-content p {
    margin-bottom: 15px;
    color: #666;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.contact-btn {
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: opacity 0.3s;
}

.contact-btn:hover {
    opacity: 0.9;
}

.contact-btn.phone {
    background-color: #28a745;
    color: white;
}

.contact-btn.wechat {
    background-color: #07c160;
    color: white;
}

.contact-btn.email {
    background-color: #007bff;
    color: white;
}

/* 页脚样式 */
footer {
    background-color: #1a365d;
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #f8c630;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #f8c630;
}

.footer-links li i {
    margin-right: 10px;
    color: #ffffff;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 14px;
}

/* 关于我们页专属样式 */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

/* 二手车页面样式 */
.filter-section {
    background-color: #f9f9f9;
    padding: 30px 0;
    margin-bottom: 40px;
}

.filter-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.filter-options select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1;
    min-width: 200px;
}

.price-tag {
    font-size: 24px;
    color: #e74c3c;
    font-weight: bold;
    margin: 10px 0;
}

.certification {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.certification span {
    font-size: 14px;
    color: #27ae60;
    background-color: #f1f9f7;
    padding: 3px 10px;
    border-radius: 12px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.advantage-item {
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #1a365d;
        flex-direction: column;
        padding: 20px;
        margin: 0;
        gap: 15px;
    }
    
    .nav-link.active{
        display: block;
        height: 160px;
    }

    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 300px;
    }
    
    .cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .slide-content h2 {
        font-size: 28px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .cs-panel {
        width: 260px;
    }
}
