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

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333333;
    --accent-color: #ff2d2d;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --gray-dark: #666666;
    --border-color: #dddddd;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--text-light);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* 移动端顶部透明容器 */
.mobile-header-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 105px;
    background-color: transparent;
    border-bottom: 2px solid var(--accent-color);
    z-index: 99; /* 在banner上层，在语言切换和菜单按钮下层 */
    display: flex;
    align-items: center;
    padding: 20px 20px;
}

/* 移动端logo容器 */
.mobile-logo-container {
    height: 60px;
}

/* 移动端logo图片 */
.mobile-logo-img {
    height: 100%;
    width: auto;
    display: block;
}

/* 语言切换样式 - 基础样式 */
.language-switch-container {
    display: flex;
    align-items: center;
}

.language-switch {
    font-size: 14px;
    color: var(--text-light);
    background-color: rgba(26, 26, 26, 0.7);
    padding: 3px 4px;
    border-radius: 4px;
}

.language-switch a {
    color: var(--text-light);
    margin: 0 5px;
}

.language-switch a:hover,
.language-switch a.active {
    color: var(--accent-color);
}

.language-switch span {
    margin: 0 5px;
    opacity: 0.5;
}

/* 遮罩层样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998; /* 在侧滑菜单下层，在页面内容上层 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 菜单按钮样式 - 基础样式 */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 24px;
    position: fixed;
    z-index: 10002; /* 菜单按钮在弹出菜单上层 */
    top: 20px;
    right: 20px;
}

/* 桌面端语言组件和菜单按钮位置 */
@media (min-width: 769px) {
    .mobile-header-container {
        display: none; /* 桌面端隐藏 */
    }

    .language-switch-container {
        position: absolute;
        top: 50px;
        right: 110px;
        z-index: 100;
        padding: 8px 0;
    }

    .menu-toggle {
        top: 60px;
        right: 60px;
    }
}

/* 移动端语言组件和菜单按钮位置 */
@media (max-width: 768px) {
    .mobile-header-container {
        display: flex; /* 移动端显示为flex布局 */
    }

    .language-switch-container {
        position: absolute;
        top: 35px;
        right: 80px;
        z-index: 100;
    }

    .menu-toggle {
        top: 36px;
        right: 20px;
    }
}

.menu-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

.top-line {
    top: 0;
}

.bottom-line {
    bottom: 0;
}

.menu-toggle.active .top-line {
    transform: rotate(45deg);
    top: 11px;
}

.menu-toggle.active .bottom-line {
    transform: rotate(-45deg);
    bottom: 11px;
}
/* 侧滑菜单样式 */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #5A6065;
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

/* 桌面端侧滑菜单宽度 */
@media (min-width: 769px) {
    .side-menu {
        width: 510px;
        right: -510px;
    }
    .side-menu.active {
        right: 0;
    }
}

.side-menu.active {
    right: 0;
}


.side-menu-content {
    padding: 80px 30px;
}

/* 新容器样式 */
.side-menu-footer {
    padding: 30px 0px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin: 30px 0;
}

.side-menu-footer nav ul {
    list-style: none;
}

.side-menu-footer nav ul li {
    margin: 15px 0;
}

.side-menu-footer nav ul li a {
    color: white;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0;
    display: block;
}

.side-menu-footer nav ul li a:hover {
    color: var(--accent-color);
}

/* 版权信息样式 */
.side-menu-copyright {
    margin-top: auto;
    /*padding: 20px 30px;*/
    text-align: center;
}

.side-menu-copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin: 0;
}

/* 侧滑菜单导航容器 */
.side-menu-nav {
    margin-bottom: 40px;
}

/* 导航菜单容器样式 */
.nav-menu-container {
    margin: 30px 0; /* 上下外间距30px */
}

.nav-menu-container ul {
    list-style: none;
}

.nav-menu-container li {
    margin-bottom: 20px;
}

.nav-menu-container a {
    color: white; /* 文字白色 */
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
    text-align: left; /* 文字居左 */
    display: block;
}

.nav-menu-container a:hover {
    color: var(--accent-color);
}

/* 侧滑菜单搜索框 */
.side-search {
    margin-bottom: 30px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding-bottom: 0px;
}

.search-icon {
    width: 18px;
    height: 18px;
    color: white;
    margin-right: 10px;
    flex-shrink: 0;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 16px;
    width: 100%;
    padding: 8px 0;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: white;
    transition: background-color 0.3s ease;
}

.search-input:focus + .search-underline {
    background-color: var(--accent-color);
    height: 2px;
}
/* 侧滑菜单导航容器 - 桌面端间距 */
.side-menu-nav {
    margin-top: 60px; /* 距离上边距60px */
    margin-left: 60px; /* 左侧距60px */
    margin-right: 60px; /* 右侧距60px */
}

/* 导航栏 */
.navbar {
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 210px;
    height: 100vh;
    z-index: 1000;
    border-right: 1px solid var(--accent-color);
}

.navbar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 15px 30px;
    height: 100%;
}

.nav-brand {
    position: fixed;
    top: 50px;
    left: 0;
    width: 210px;
    display: flex;
    justify-content: center;
}

.nav-brand .logo img {
    display: block;
    width: 100px;
    height: auto;
}

.nav-menu {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 210px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: flex-start;
    padding-left: 50px;
}

.nav-menu li a {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 3px 0;
    transition: all 0.3s ease;
}

/* Hero区域 */
.hero {
   /* width: 100vw;*/
    width: 100%;
    height: 100vh;
    min-height: 990px;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.hero-banner {
    width: 100vw;
    height: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, filter 0.8s ease-in-out;
    pointer-events: none;
    filter: blur(5px);
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    filter: blur(0);
}

.hero-slide:not(.active) .hero-title,
.hero-slide:not(.active) .hero-description {
    animation: none;
    opacity: 0;
}

/* 标记点控制器 */
.hero-indicator {
    position: absolute;
    bottom: 80px;
    right: 110px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.indicator-prev,
.indicator-next {
    background: none;
    border: none;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s ease;
}

.indicator-prev::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M732.66069 12.590164q12.590164 12.590164 12.590164 27.278688t-12.590164 27.278689L287.808231 512l444.852459 444.852459q12.590164 12.590164 12.590164 27.278689t-12.590164 27.278688q-12.590164 12.590164-29.377049 12.590164t-25.180328-12.590164L203.873805 541.377049q-12.590164-12.590164-12.590164-29.377049t12.590164-29.377049L678.103313 12.590164q8.393443-12.590164 25.180328-12.590164t29.377049 12.590164z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transition: all 0.3s ease;
}

.indicator-next::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath d='M291.33931 12.590164q12.590164-12.590164 29.377049-12.590164t25.180328 12.590164l474.229508 470.032787q12.590164 12.590164 12.590164 29.377049t-12.590164 29.377049L345.896687 1011.409836q-8.393443 12.590164-25.180328 12.590164t-29.377049-12.590164q-12.590164-12.590164-12.590164-27.278688t12.590164-27.278689l444.852459-444.852459L291.33931 67.147541q-12.590164-12.590164-12.590164-27.278689t12.590164-27.278688z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transition: all 0.3s ease;
}

.indicator-prev:hover::before,
.indicator-next:hover::before {
    transform: scale(1.1);
}

.indicator-numbers {
    display: flex;
    gap: 10px;
    font-size: 22px;
    color: #888888;
    font-weight: 500;
    letter-spacing: 1px;
}

.indicator-number {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 2px 4px;
}

.indicator-number:hover {
    color: #cccccc;
}

.indicator-number.active {
    color: #ffffff;
    font-weight: normal;
}

.hero-slide.active .hero-title {
    animation: slideFromCenter 1s ease-out 0.5s both;
}

.hero-slide.active .hero-description {
    animation: slideFromCenter 1s ease-out 0.7s both;
}

.hero-slide .hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

/* 灰色半透明遮罩层 */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-image-desktop {
    display: block;
}

.hero-image-mobile {
    display: none;
}

.hero-content {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    text-align: right;
    color: var(--text-light);
    z-index: 3;
    padding: 0 40px;
}

.hero-title {
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 3px;
    margin-bottom: 15px;
    opacity: 0;
}

.hero-description {
    font-size: 48px;
    margin-bottom: 0;
    opacity: 0;
}

@keyframes slideFromCenter {
    0% {
        transform: translate(-50%, -50%);
        opacity: 0;
    }
    100% {
        transform: translate(0, -50%);
        opacity: 1;
    }
}


/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 35px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-light);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
}

/* 通用区块样式 */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: normal;
    margin-bottom: 50px;
    color: var(--text-dark);
}

/* 在售车型容器 */
.models-container {
    height: 810px;
    background-color: #f3f3f3;
    padding: 100px 0 120px 210px;
}

.models-content-wrapper {
    padding: 0 80px;
}

.models-title {
    font-size: 28px;
    font-weight: normal;
    color: var(--text-dark);
    margin: 0 0 60px 0;
}

.models-layout {
    display: flex;
    width: 100%;
    align-items: center;
}

.models-left {
    width: 50px;
    flex-shrink: 0;
}

.models-center {
    flex: 1;
    position: relative;
}

.models-slider {
    width: 100%;
    height: 580px;
    position: relative;
    overflow: hidden;
}

/* 桌面端滑块 */
.models-slide-desktop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    pointer-events: none;
}

.models-slide-desktop.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.models-slide-desktop.prev {
    opacity: 0;
    transform: translateX(-100%);
}

/* 移动端卡片容器 */
.models-slide-mobile-wrapper {
    display: none;
    width: 100%;
    height: 100%;
    gap: 20px;
}

.models-prev-btn,
.models-next-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.models-prev-btn:hover,
.models-next-btn:hover {
    transform: scale(1.1);
}

.models-prev-btn svg,
.models-next-btn svg {
    display: block;
}

.models-indicator {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: -50px;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.models-indicator-desktop {
    display: flex;
}

.models-indicator-mobile {
    display: none;
}

.models-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cccccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.models-dot.active {
    background-color: var(--text-dark);
    width: 35px;
    border-radius: 6px;
}

.models-grid {
    display: flex;
    gap: 30px;
    width: 100%;
    justify-content: center;
}

.car-card {
    width: 415px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.car-title {
    font-size: 22px;
    font-weight: normal;
    color: var(--text-dark);
    margin: 0 0 20px 0;
}

.car-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.car-description {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.desc-line {
    font-size: 14px;
    color: var(--gray-dark);
    margin: 0 0 10px 0;
}

.desc-line:last-child {
    margin-bottom: 0;
}

.car-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.car-btn:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
}

.models-right {
    width: 50px;
    flex-shrink: 0;
}

/* 锐野新闻区块（已删除）*/

/* 新闻动态容器 */
.news-container {
    /*height: 1585px;*/
    padding: 100px 0 100px 210px;
    background-color: #ffffff;
}

.news-content-wrapper {
    padding: 0 80px;
}

.news-title {
    font-size: 28px;
    font-weight: normal;
    color: var(--text-dark);
    margin: 0 0 60px 0;
}

.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.news-card-image {
    width: 100%;
    height: 0;
    padding-bottom: 55.81%; /* 412/738.5 * 100 */
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.news-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.news-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%);
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.news-card-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    line-height: 1.5;
    transition: color 0.3s ease;
    text-decoration: none;
}

.news-card:hover .news-card-image::before {
    opacity: 0;
}

.news-card:hover .news-card-title {
    color: var(--accent-color);
}

.news-divider {
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;
    margin-bottom: 15px;
}

.news-card-date {
    font-size: 14px;
    color: var(--gray-dark);
    text-align: right;
    margin: 0 0 20px 0;
}

.news-more-btn {
    display: block;
    width: 100%;
    padding: 15px 0;
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.news-more-btn:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
}

/* 媒体发声区块 */
.media-section {
    position: relative;
    height: 940px;
    padding: 100px 0 100px 210px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.media-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.media-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
}

.media-content-wrapper {
    position: relative;
    z-index: 1;
    padding: 0 80px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.media-title {
    font-size: 28px;
    font-weight: normal;
    color: #ffffff;
    margin: 0 0 60px 0;
}

.media-list {
    flex: 1;
}

.media-item {
    height: 50px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    transition: transform 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
    text-decoration: none;
    opacity: 0;
    transform: translateX(-30px);
}

.media-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.media-item:hover {
    transform: translateX(10px);
}

.media-item-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: #ffffff;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.media-item:hover .media-item-title {
    color: var(--accent-color);
}

.media-more-btn {
    display: block;
    width: 100%;
    padding: 15px 0;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 3px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.media-more-btn:hover {
    background-color: #ffffff;
    color: var(--text-dark);
}

/* 简易页脚 */
.footer-simple {
    height: 600px;
    background-color: #5a6065;
    padding: 60px 0 60px 210px;
}

.footer-simple-content {
    padding: 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo {
    width: 230px;
    height: 60px;
}

.footer-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-social-icons {
    display: flex;
    gap: 2px;
    align-items: flex-start;
}

.footer-social-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-social-icon:hover {
    color: var(--accent-color);
}

/* 微信二维码提示框 */
.social-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-bottom: 15px;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 150px;
}

.social-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffffff;
}

.social-tooltip img {
    width: 120px;
    height: 120px;
    display: block;
    margin: 0 auto 10px;
}

.social-tooltip span {
    display: block;
    color: var(--text-dark);
    font-size: 14px;
}

/* 鼠标悬停显示二维码 */
.footer-social-icon:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 移动端特殊处理 */
.footer-social-icon:hover .social-tooltip.mobile {
    transform: translateX(-50%) translateY(0);
}

/* 新容器卡片 */
.footer-cards {
    height: 210px;
    padding-top: 80px;
    display: flex;
    justify-content: center;
    gap: 60px;
}

.footer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
    object-fit: contain;
}

.footer-card p {
    color: #ffffff;
    font-size: 14px;
    margin: 0;
}

/* 新容器联系方式 */
.footer-contact {
    height: 50px;
    margin: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

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

.contact-icon {
    font-size: 20px;
}

.contact-text {
    color: #ffffff;
    font-size: 14px;
}

/* 页脚底部导航 */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-nav-link {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav-link:hover {
    color: var(--accent-color);
}

.footer-nav-divider {
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin: 0;
    text-align: center;
}

/* 新悬浮按钮容器 */
.floating-buttons-container {
    position: fixed;
    right: 30px;
    bottom: 120px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 返回顶部按钮 */
.back-to-top-btn {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.6);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

/* 新浮动按钮组 */
.floating-buttons-group {
  width: 50px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  overflow: visible;
}

.float-btn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
    min-height: 60px;
}

.float-btn-icon {
    font-size: 20px;
    margin-bottom: 0px;
    transition: all 0.3s ease;
}

.float-btn-text {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.9;
}

.float-btn-item:hover {
    background-color: rgba(201, 169, 98, 0.1);
    color: var(--accent-color);
}

.float-btn-item:hover .float-btn-icon {
    transform: scale(1.2);
}

/* 二维码弹出层 */
.qr-code-tooltip {
  position: absolute;
  right: 100%;
  margin-right: 10px;
  background-color: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1001;
  min-width: 140px;
  text-align: center;
  pointer-events: none;
}

.qr-code-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid white;
}

.float-btn-item:hover .qr-code-tooltip {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.qr-code-image {
    width: 120px;
    height: 120px;
    display: block;
    margin: 0 auto 8px;
}

.qr-code-text {
    font-size: 12px;
    color: var(--text-dark);
    text-align: center;
    font-weight: 500;
}

/* 客服弹窗 */
.customer-service-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1002;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.customer-service-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.modal-content {
    text-align: center;
    margin-bottom: 25px;
}

.phone-number {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-call {
    background-color: var(--accent-color);
    color: white;
}

.btn-call:hover {
    background-color: #b89a58;
}

.btn-copy {
    background-color: #f0f0f0;
    color: var(--text-dark);
}

.btn-copy:hover {
    background-color: #e0e0e0;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--gray-dark);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-dark);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .floating-buttons-container {
        right: 15px;
        bottom: 90px;
        gap: 12px;
    }

    .back-to-top-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .floating-buttons-group {
        width: 45px;
        height: 270px;
        padding: 12px 0;
    }

    .float-btn-icon {
        font-size: 18px;
    }

    .float-btn-text {
        font-size: 11px;
    }

    .qr-code-tooltip {
        right: 100%;
        margin-right: 10px;
        min-width: 120px;
        max-width: 150px;
        width: auto;
        text-align: center;
        white-space: nowrap;
    }
    
    .qr-code-tooltip::after {
        top: 50%;
        right: -8px;
        transform: translateY(-50%);
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 8px solid white;
    }
    
    .float-btn-item:hover .qr-code-tooltip,
    .float-btn-item.touch-active .qr-code-tooltip {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    .qr-code-image {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

    .customer-service-modal {
        min-width: 280px;
        padding: 25px;
        margin: 0 20px;
    }

    .phone-number {
        font-size: 20px;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .modal-btn {
        padding: 10px 20px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .floating-buttons-container {
        right: 10px;
        bottom: 70px;
    }

    .back-to-top-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .floating-buttons-group {
        width: 40px;
        height: 270px;
    }

    .float-btn-icon {
        font-size: 16px;
    }

    .float-btn-text {
        font-size: 10px;
    }
}

/* 平板适配 */
@media (max-width: 992px) {
    .hero {
        min-height: 700px;
    }

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

    .hero-indicator {
        right: 30px;
        bottom: 30px;
    }

    .indicator-prev,
    .indicator-next {
        font-size: 18px;
    }

    .indicator-numbers {
        font-size: 18px;
    }

    .hero-content {
        padding-right: 30px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-description {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }
}

/* 手机适配 */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .navbar {
        display: none;
    }

    .hero-image-desktop {
        display: none;
    }

    .hero-image-mobile {
        display: block;
    }

    /* 移动端保持300px宽度 */
    .side-menu {
        width: 300px;
        right: -300px;
    }
    .side-menu.active {
        right: 0;
    }

    /* 移动端导航容器间距调整 */
    .side-menu-nav {
        margin-top: 80px; /* 移动端上边距减小 */
        margin-left: 30px; /* 移动端左侧距减小 */
        margin-right: 30px; /* 移动端右侧距减小 */
    }

    /* 在售车型移动端适配 */
    .models-container {
        padding: 60px 0;
        height: auto;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }

    .models-content-wrapper {
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .models-title {
        text-align: left;
        margin-bottom: 40px;
    }

    .models-layout {
        flex-direction: row;
        width: 100%;
    }

    .models-left,
    .models-right {
        display: none;
    }

    .models-center {
        width: 100%;
        overflow: hidden;
        padding: 0;
    }

    /* 隐藏桌面端滑块，显示移动端卡片 */
    .models-slide-desktop {
        display: none;
    }

    .models-slide-mobile-wrapper {
        display: flex;
        height: auto;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 0;
        gap: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .models-slide-mobile-wrapper::-webkit-scrollbar {
        display: none;
    }

    .models-slide-mobile-wrapper .car-card {
        scroll-snap-align: center;
        flex-shrink: 0;
        width: calc(100vw - 40px);
        height: auto;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .models-slide-mobile-wrapper .car-card .car-image {
        max-width: 350px;
        margin: 0 auto;
    }

    .models-slide-mobile-wrapper .car-card .car-description {
        max-width: 350px;
        margin: 0 auto 20px;
    }

    .models-slide-mobile-wrapper .car-card .car-title {
        text-align: center;
        max-width: 350px;
        margin: 0 auto 20px;
    }

    .models-slide-mobile-wrapper .car-card .car-btn {
        max-width: 350px;
        display: block;
        margin: 0 auto;
    }

    .models-indicator-desktop {
        display: none;
    }

    .models-indicator-mobile {
        display: flex;
        gap: 8px;
        justify-content: center;
        width: 100%;
        max-width: 240px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 50px;
        flex-wrap: wrap;
    }

    .models-indicator-mobile .models-dot {
        width: 10px;
        height: 10px;
        flex-shrink: 0;
    }

    .models-indicator-mobile .models-dot.active {
        width: 30px;
        border-radius: 5px;
    }

    .models-slider {
        height: auto;
        overflow: visible;
        width: 100%;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .media-section {
        padding: 60px 0;
        height: auto;
    }

    .media-content-wrapper {
        padding: 0 20px;
    }

    .media-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .media-item {
        height: 50px;
        margin-bottom: 10px;
        position: relative;
        outline: none;
        transform: translateX(-20px);
    }

    .media-item.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .media-item:focus {
        transform: translateX(10px);
    }

    .media-item:focus .media-item-title {
        color: var(--accent-color);
    }

    .media-item:not(:first-child)::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: rgba(255, 255, 255, 0.3);
    }

    .navbar .container {
        padding: 15px;
    }

    .nav-brand .logo {
        font-size: 20px;
    }

    .hero {
        min-height: 932px;
    }

    .hero-banner {
        width: 100%;
        height: 100%;
        max-width: 430px;
        margin: 0 auto;
    }

    .hero-content {
        padding-right: 30px;
    }

    .news-container {
        padding: 60px 0;
        height: auto;
    }

    .news-content-wrapper {
        padding: 0 20px;
    }

    .news-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .news-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-card-image {
        height: 200px;
    }

    /* 移动端移除新闻图片灰色遮罩 */
    .news-card-image::before {
        display: none;
    }

    .news-card-title {
        font-size: 18px;
    }

    .footer-simple {
        height: 815px;
        padding: 60px 0;
    }

    .footer-simple-content {
        flex-direction: row;
        align-items: center;
        gap: 40px;
        padding: 0 20px 30px;
        position: relative;
    }

    .footer-simple-content::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 20px;
        right: 20px;
        height: 1px;
        background-color: rgba(255, 255, 255, 0.2);
    }

    .footer-logo {
        width: 150px;
        height: 40px;
    }

    .footer-logo img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .footer-social-icons {
        gap: 2px;
    }

    .footer-social-icon {
        width: 36px;
        height: 36px;
    }

    .social-tooltip {
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        min-width: 140px;
    }

    .social-tooltip::after {
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #ffffff;
        bottom: -6px;
    }

    .social-tooltip img {
        width: 100px;
        height: 100px;
    }

    .footer-cards {
        height: auto;
        padding-top: 60px;
        padding-bottom: 40px;
        gap: 30px;
        flex-wrap: wrap;
        position: relative;
    }

    .footer-cards::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 20px;
        right: 20px;
        height: 1px;
        background-image: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.3) 0, rgba(255, 255, 255, 0.3) 3px, transparent 3px, transparent 6px);
    }

    .footer-card img {
        width: 75px;
        height: 75px;
        margin-bottom: 12px;
    }

    .footer-card p {
        font-size: 12px;
    }

    .footer-contact {
        height: auto;
        margin: 40px 0;
        padding: 0 20px 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        position: relative;
    }

    .footer-contact::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 20px;
        right: 20px;
        height: 1px;
        background-image: repeating-linear-gradient(to right, rgba(255, 255, 255, 0.3) 0, rgba(255, 255, 255, 0.3) 3px, transparent 3px, transparent 6px);
    }

    .footer-contact-item {
        flex-direction: row;
        gap: 15px;
    }

    .contact-icon {
        font-size: 18px;
    }

    .contact-text {
        font-size: 14px;
    }

    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 20px;
    }

    .footer-nav {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .footer-nav-link {
        color: #ffffff;
        font-size: 14px;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer-nav-link:hover {
        color: var(--accent-color);
    }

    .footer-nav-divider {
        color: rgba(255, 255, 255, 0.5);
    }

    .footer-copyright p {
        color: rgba(255, 255, 255, 0.6);
        font-size: 12px;
        margin: 0;
        text-align: center;
    }

    .hero-title {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 28px;
    }

    .hero-indicator {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        bottom: 30px;
    }

    .indicator-prev,
    .indicator-next {
        font-size: 16px;
    }

    .indicator-numbers {
        font-size: 18px;
    }

    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .floating-buttons {
        right: 20px;
        bottom: 30px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 11px;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content {
        padding-right: 20px;
    }

    .hero-title {
        font-size: 16px;
    }

    .hero-description {
        font-size: 24px;
    }

    .section-title {
        font-size: 20px;
    }
}

