
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

.header {
    background-color: #f8f8f8;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 112px;
    box-sizing: border-box;
}

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

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    width: 100%;
}



.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.nav {
    display: flex;
    gap: 30px;
    position: relative;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
}

.nav a:hover {
    color: #666;
}

.guide-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    width: 300px;
    padding: 15px;
}

.guide-menu.show {
    display: block;
}

.guide-menu-title {
    color: #333;
    font-size: 14px;
    margin: 10px 0 5px 0;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.guide-menu-item {
    padding: 5px 10px;
    color: #666;
    text-decoration: none;
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
}

.guide-menu-item:hover {
    background-color: #f5f5f5;
    color: #333;
}

.banner {
    position: relative;
    /* height: 500px; */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide {
    position: absolute;
    width: 80%;
    height: 80%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

.banner-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.banner-content h1 {
    margin-bottom: 10px;
    color: white;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-content p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.banner-dots {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.banner-dot.active {
    background: white;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.car-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #f8f8f8;
}

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

.car-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #f8f8f8;
}

.car-info {
    padding: 15px;
    flex-grow: 1;
    background-color: #f8f8f8;
}

.car-info h3 {
    color: #333;
    margin-bottom: 10px;
}

.car-info p {
    color: #666;
}

.footer {
    background-color: #f5f5f5;
    padding: 30px 0;
    margin-top: 40px;
}

.copyright-section {
    text-align: center;
    padding: 20px 0;
    /* background: rgba(0,0,0,0.05); */
    margin-bottom: 30px;
    border-radius: 8px;
    width: 100%;
}

.copyright-section p {
    margin: 5px 0;
    font-size: 28px;
    color: #333;
    line-height: 1.6;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-section {
    flex: 1;
}

.footer-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-section p {
    color: #666;
    margin: 5px 0;
}

.footer-section .content-image {
    margin-top: 15px;
}

.footer-section .ditu {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .header-content {
        /* flex-direction: column; */
        gap: 20px;
    }
    .logo-container {
        gap: 10px;
    }
    .logo-container img {
        height: 40px;
    }
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .banner-slide {
        width: 90%;
        height: 90%;
    }
   
    .car-card img {
        height: 200px;
    }
    .footer-content {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
    }
    .footer-section {
        width: 100%;
        text-align: center;
    }
    .footer-section:not(:last-child) {
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
    }
    .footer {
        padding: 20px 0;
    }
    .footer-section .content-image {
        margin: 15px auto;
        max-width: 300px;
    }
    .banner-content {
        bottom: 0; /* 增加底部间距 */
        padding: 15px;
    }
    .banner-content h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    .banner-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    .banner {
        /* margin-bottom: 100px;  */
    }
    .footer {
        padding-bottom: 100px; /* 增加页面底部的间距 */
    }
    .footer-content {
        margin-bottom: 20px;
    }
    .bottom-image {
        margin-bottom: 200px; /* 确保移动端也有相同的间距 */
    }
    .copyright-section {
        margin: 0 15px 30px 15px;
        width: calc(100% - 30px);
    }
    .copyright-section p {
        font-size: 12px;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    /* top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.phone-number {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
    color: #333;
}

.copy-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

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

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.language-switch {
    position: relative;
    margin-left: 20px;
}

.language-btn {
    background: none;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
    width: 80px;
    text-align: left;
    position: relative;
}

.language-btn::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
}

.language-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 80px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.language-menu.show {
    display: block;
}

.language-option {
    padding: 5px 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.language-option:hover {
    background-color: #f0f0f0;
}

.language-option.active {
    background-color: #e0e0e0;
}

.contact-info {
    margin: 15px 0;
    text-align: center;
}
.contact-info .copy-btn {
    margin-top: 5px;
}

.image-zoom-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.zoomed-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.zoomed-image-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.zoomed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.close-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .contact-images img,
    .contact-images-modal img {
        cursor: pointer;
    }
}

.address-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.address-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
}

.address-image {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .nav {
        gap: 15px;
    }
    .address-modal-content {
        max-width: 90%;
        padding: 20px;
    }
}

.contact-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 0px; /* 将联系方式区域底部间距从200px改为0px */
    justify-items: center;
}

.contact-images img,
.contact-images-modal img {
    width: 100%;
    max-width: 250px;
    height: 250px;
    object-fit: contain;
    border-radius: 8px;
}

.contact-images-modal {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    margin: 20px 0 0 0 !important; /* 将弹窗中的二维码底部间距从200px改为0px */
    justify-items: center !important;
    width: 100% !important;
}

@media (max-width: 768px) {
    .contact-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 0px; /* 将移动端联系方式区域底部间距从200px改为0px */
    }

    .contact-images img,
    .contact-images-modal img {
        width: 100%;
        max-width: 200px;
        height: 200px;
    }

    .contact-images-modal {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin: 20px 0 0 0 !important; /* 将移动端弹窗中的二维码底部间距从200px改为0px */
    }
}

.bottom-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 200px; /* 确保ditu.png底部有200px的间距 */
}

.map-container {
    position: absolute;
    display: flex;
    height: 100%;
    animation: slideRight 50s linear infinite;
    margin-bottom: 200px; /* 添加底部间距 */
}

.bottom-image img.map {
    height: 100%;
    width: auto;
    object-fit: cover;
}

.bottom-image img.map:nth-child(2) {
    height: 100%;
    width: auto;
    object-fit: cover;
}

@keyframes slideRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}



.japan-scene {
    width: 100%;
    height: 150px;
    background-image: url('picture/japan-scene.gif');
    background-size: cover;
    background-position: center;
    margin-bottom: 10px;
}

/* 添加固定logo样式 */
.fixed-logo {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10010;
    width: 200px;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .fixed-logo {
        width: 140px;
        top: 10px;
        right: 10px;
    }
}
