* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #88a563;
    font-size: 16px;
    color: #333;
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    /* min-width: 1200px;
    overflow-x: scroll; */

}

a {
    text-decoration: none;
    color: #333;
}

h2 {
    font-size: 28px;
    margin-bottom: 40px;
}

img {
    vertical-align: middle;
}

.goldenratio {
    width: calc(100% - 2 * 6.18%);
    margin-left: auto;
    margin-right: auto;
}


header {
    height: 80px;
    width: 100%;
}

header .goldenratio {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    height: inherit;
    width: 50%;
}

nav ul {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul li {
    width: 25%;
    text-align: center;
    list-style-type: none;
}

nav ul li a {
    display: block;
    height: inherit;
    line-height: 80px;
    font-size: 20px;
    color: #f9f0c7;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

.about-container {
    background-image: url(../img/car_009.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 1120px;
    color: #f9f0c7;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-content {
    width: calc(100% - 4 * 6.18%);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5),
        -1px 1px 2px rgba(0, 0, 0, 0.5),
        1px -1px 2px rgba(0, 0, 0, 0.5),
        -1px -1px 2px rgba(0, 0, 0, 0.5);
}

.about-content h2 {
    font-size: 48px;

    padding-bottom: 40px;
}

.about-content li {
    font-size: 24px;
    line-height: 40px;
    margin-bottom: 20px;
}




.service {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #f9f0c7;
    padding: 80px 6.18% 0 6.18%;
    /* background-image: url(../img/wallhaven-rq75r7_1920x1200.png);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover; */
}

.service section {
    width: 47.5%;
    height: 400px;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;

    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.image-card {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;

    position: relative;
    height: 275px;
    overflow: hidden;
}

.image-card img {
    width: 100%;
}

.details-container {
    height: 100px;
}

.details-container h2 {
    padding-left: 6.18%;
    padding-right: 6.18%;
    line-height: 50px;
}






.image-container {
    width: 50%
}

.image-container img {
    width: 100%;
    height: 640px;
}

.logo-container {
    height: inherit;
}

.logo-container h1 {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.logo-container img {
    max-height: 80px;
}

.language-selector {
    width: 100px;
}

.lists {
    background-color: #f9f0c7;
}

.lists ul {
    width: 87.64%;
    margin-left: auto;
    margin-right: auto;

}

.lists ul li {
    font-size: 24px;
    line-height: 40px;
    padding-bottom: 20px;
}


.passage {
    background-image: url(../img/wallhaven-rq75r7_1920x1200.png);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    height: 1200px;
    position: relative;
}

.passage::before {

    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    /* 渐变羽化效果的高度 */
    background: linear-gradient(to bottom,
            rgba(249, 240, 199, 1) 0%,
            /* service 区域的背景色 */
            rgba(249, 240, 199, 0.8) 20%,
            rgba(249, 240, 199, 0.6) 40%,
            rgba(249, 240, 199, 0.4) 60%,
            rgba(249, 240, 199, 0.2) 80%,
            rgba(249, 240, 199, 0) 100%);
    z-index: 1;
}


footer {
    background-color: #445d4a;
    height: 320px;
    width: 100%;
    color: #f9f0c7;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: left;
    position: relative;
}

.footer-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 160px;
}

.footer-content {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: inherit;
}

.footer-content p {
    text-decoration: underline;
}

.footer-social {
    width: 60%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 20px 0;
}

.footer-social a {
    color: #f9f0c7;
    display: block;
    margin: 0 40px;
}

.footer-social img {
    width: 128px;
    height: 128px;
}

.footer-social img+span {
    display: block;
    text-align: center;
}


.footer-copyright {
    width: calc(100% - 2 * 6.18%);
    left: 6.18%;
    right: 6.18%;
    text-align: right;
    position: absolute;
    bottom: 0;
    height: 40px;
    line-height: 40px;
}















/* 语言选择器样式 */
.language-selector {
    position: relative;
    width: 100px;
    z-index: 1000;
}

.language-selector-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: white;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.language-selector-trigger:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.language-flag {
    font-size: 16px;
    margin-right: 5px;
}

.language-text {
    font-size: 12px;
    font-weight: 500;
}

.language-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.language-selector.open .language-arrow {
    transform: rotate(180deg);
}

.language-selector-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
}

.language-selector.open .language-selector-options {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 12px;
}

.language-option:hover {
    background-color: #f9f0c7;

}

.language-option:hover .language-text {
    color: #445d4a;
    font-weight: 600;
}

/* 在头部样式之后添加汉堡菜单按钮样式 */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    text-align: left;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #f9f0c7;
    margin: 6px auto;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 修改语言选择器样式，确保它在桌面端也是正确的 */
.language-selector {
    position: relative;
    z-index: 1000;
}

/* 响应式设计 - 移动端优化 */
@media (max-width: 768px) {

    /* 基础样式调整 */
    body {
        font-size: 14px;
    }

    .goldenratio {
        width: calc(100% - 2 * 4%);
        margin-left: auto;
        margin-right: auto;
    }


    /* 头部导航调整 - 新布局 */
    header {
        height: auto;
        padding: 15px 0;
        position: relative;
    }

    header .goldenratio {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    /* 显示汉堡菜单按钮 */
    .mobile-menu-btn {
        display: block;
    }

    /* 导航菜单默认隐藏 */
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background-color: #88a563;
        z-index: 1000;
        transition: all 0.3s ease;
        padding-top: 80px;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
    }

    nav ul li a {
        line-height: 30px;
        font-size: 18px;
        padding-left: 20px;
    }

    .gr {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Logo居中 */
    .logo-container {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo-container img {
        max-height: 50px;
    }

    /* 语言选择器放在最右边 */
    .language-selector {
        width: 120px;
        margin-top: 0;
        display: flex;
        justify-content: flex-end;
        flex-shrink: 0;
    }

    /* 修复移动端下拉列表太窄的问题 */
    .language-selector .language-selector-options {
        width: 120px;
        /* 增加宽度以适应所有语言选项 */
        left: auto;
        /* 确保下拉列表从右侧对齐 */
        right: 0;
    }

    .language-selector .language-text {
        font-size: 14px;
        /* 稍微增大文本大小以提高可读性 */
    }

    /* 关于我们部分调整 */
    .about-container {
        height: auto;
        min-height: 600px;
        padding: 40px 0;
    }

    .about-content h2 {
        font-size: 28px;
        padding-bottom: 20px;
    }

    .about-content li {
        font-size: 18px;
        line-height: 32px;
        margin-bottom: 15px;
    }

    /* 服务部分调整 */
    .service {
        padding: 40px 4% 0 4%;
    }

    .service section {
        width: 100%;
        height: 300px;
        margin-bottom: 40px;
    }

    .image-card {
        height: 200px;
    }

    .details-container h2 {
        font-size: 20px;
        line-height: 40px;
        margin-bottom: 0;
    }

    /* 列表部分调整 */
    .lists ul {
        width: 92%;
    }

    .lists ul li {
        font-size: 16px;
        line-height: 30px;
        padding-bottom: 15px;
    }

    /* 底部调整 */
    footer {
        height: auto;
        padding-top: 30px;
        padding-bottom: 60px;
    }

    .footer-contact {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }

    .footer-content {
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-social {
        width: 100%;
        flex-wrap: wrap;
        margin: 10px 0;
    }

    .footer-social a {
        display: block;
        margin: 10px 20px 10px 0;
    }

    .footer-social img {
        width: 64px;
        height: 64px;
    }

    .footer-copyright {
        text-align: center;
        position: relative;
        bottom: auto;
        margin-top: 20px;
    }
}

/* 平板端优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 15px;
    }

    .service section {
        width: 48%;
        height: 350px;
    }

    .image-card {
        height: 225px;
    }

    nav {
        width: 60%;
    }

    .about-content h2 {
        font-size: 36px;
    }

    .about-content li {
        font-size: 20px;
    }
}