/* 响应式导航 */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    nav.active {
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    nav ul li {
        margin: 15px 0;
        text-align: center;
        width: 100%;
    }

    nav ul li a {
        font-size: 20px;
        color: white;
        display: inline-block;
        padding: 10px 0;
    }

    /* 移动端下拉菜单样式 */
    .dropdown {
        width: 100%;
    }

    .dropdown>a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        max-width: 100%;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin: 10px 0;
        padding: 0;
        display: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transition: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 12px 20px;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        justify-content: center;
    }

    .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .dropdown-content img {
        width: 40px;
        height: 40px;
    }

    .dropdown-content div h4,
    .dropdown-content div p {
        color: white;
    }

    .dropdown>a i.fa-chevron-down {
        transition: transform 0.3s;
        margin-left: 5px;
    }

    .dropdown.active>a i.fa-chevron-down {
        transform: rotate(180deg);
    }

    /* 语言切换按钮在移动端的样式 */
    .lang-switch-btn {
        margin: 20px auto;
        display: block;
        width: fit-content;
    }
}

/* 响应式产品布局 */
@media (max-width: 992px) {
    .product-item {
        width: 45%;
    }
}

/* Medium Devices (Tablets, etc.) */
@media screen and (max-width: 1200px) {
    .logo {
        margin-left: 100px;
    }

    .career-background,
    .contact-background {
        padding-left: 150px;
    }

    .career-background h1,
    .contact-background h1 {
        font-size: 32px;
        line-height: 48px;
    }
}

/* Small Devices (Landscape Phones, Tablets) */
@media screen and (max-width: 992px) {
    .logo {
        margin-left: 50px;
    }

    nav ul li {
        margin: 0 15px;
    }

    .product-item {
        width: 45%;
    }

    .about-container {
        flex-direction: column;
    }

    .about-image {
        padding-right: 0;
        margin-bottom: 40px;
    }
}

/* Extra Small Devices (Portrait Phones) */
@media screen and (max-width: 768px) {
    header {
        padding: 15px 20px;
        justify-content: space-between;
    }

    .logo {
        margin-left: 0;
        z-index: 1002;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
    }

    nav.active {
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    nav ul li {
        margin: 15px 0;
        text-align: center;
        width: 100%;
    }

    nav ul li a {
        font-size: 20px;
        color: white;
        display: inline-block;
        padding: 10px 0;
    }

    /* 移动端下拉菜单样式 */
    .dropdown {
        width: 100%;
    }

    .dropdown>a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        max-width: 100%;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.1);
        margin: 10px 0;
        padding: 0;
        display: none;
        border-radius: 0;
        opacity: 1;
        visibility: visible;
        transition: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 12px 20px;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        justify-content: center;
    }

    .dropdown-content a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .dropdown-content img {
        width: 40px;
        height: 40px;
    }

    .dropdown-content div h4,
    .dropdown-content div p {
        color: white;
    }

    .dropdown>a i.fa-chevron-down {
        transition: transform 0.3s;
        margin-left: 5px;
    }

    .dropdown.active>a i.fa-chevron-down {
        transform: rotate(180deg);
    }

    /* 语言切换按钮在移动端的样式 */
    .lang-switch-btn {
        margin: 20px auto;
        display: block;
        width: fit-content;
    }
}