@charset "utf-8";

/* 移动端响应式样式 - 仅在小屏生效，不影响 PC */

@media (max-width: 992px) {
    /* 移动端固定 1px 基准，避免 vw 缩放导致字号过小 */
    :root {
        --base-px: 1px;
        --m-gap: 20px;
        --m-text: 16px;
        --m-text-sm: 14px;
        --m-title: 26px;
        --m-subtitle: 20px;
        --m-line: 1.75;
    }

    body {
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
        font-size: var(--m-text);
        line-height: var(--m-line);
    }

    body.nav-body-lock {
        overflow: hidden;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* 统一页面左右边距 */
    header .W1520,
    .W1520,
    .W1344,
    .W1440 {
        width: 100% !important;
        max-width: 100%;
        padding-left: var(--m-gap) !important;
        padding-right: var(--m-gap) !important;
        box-sizing: border-box;
    }

    /* 全宽背景区块：内部内容也留边距 */
    .contact-main,
    .join-main,
    .culture-box {
        padding-left: var(--m-gap);
        padding-right: var(--m-gap);
        box-sizing: border-box;
    }

    /* ========== Header ========== */
    header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    header .header-bar {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        position: relative;
        min-height: 56px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    header .header-bar.align-center {
        justify-content: flex-start;
    }

    /* PC 版 header-tools 隐藏，使用 header-right 内的副本 */
    header .header-bar > .header-tools {
        display: none;
    }

    .header-right {
        display: flex;
        align-items: center;
        margin-left: auto;
        gap: 4px;
    }

    .Logo > a > img {
        width: 100px;
        height: auto;
    }

    .Logo {
        flex-shrink: 0;
    }

    .header-tools {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .search-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }

    .search-icon > img {
        width: 20px;
        height: 20px;
    }

    .translate-text {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        height: 40px;
        margin-left: 0 !important;
        font-size: 15px;
        font-weight: 600;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        margin-left: 4px;
        flex-shrink: 0;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        gap: 5px;
    }

    .nav-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: #2B2D3B;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-toggle.nav-toggle-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.nav-toggle-active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.nav-toggle-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav {
        display: none;
        order: 10;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: auto;
        flex-direction: column;
        background: #fff;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        padding: 8px 0 12px;
        z-index: 999;
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }

    .nav.nav-open {
        display: flex;
    }

    .nav > li {
        float: none;
        width: 100%;
        justify-content: center;
    }

    .nav > li:nth-child(1) {
        margin-left: 0;
    }

    .nav > li a {
        width: 100%;
        margin: 0;
        padding: 14px var(--m-gap);
        height: auto;
        font-size: 16px;
        line-height: 1.4;
        border-radius: 0;
        box-sizing: border-box;
    }

    .nav > li a.selected,
    .nav > li a:hover {
        border-radius: 0;
    }

    /* ========== Banner ========== */
    .swiper2 {
        width: 100%;
        overflow: hidden;
        background: #e8f2f6;
    }

    .swiper2,
    .swiper2 .swiper-slide {
        height: 52vw !important;
        min-height: 190px;
        max-height: 260px;
    }

    .swiper2 .swiper-slide {
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
    }

    .banner,
    .banner1 {
        width: 100%;
        height: 40vw;
        min-height: 120px;
        max-height: 200px;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-color: #e8f2f6;
    }

    .banner > div,
    .banner1 > div {
        font-size: 28px;
        padding: 0 var(--m-gap);
        text-align: center;
    }

    /* ========== 通用排版 ========== */
    .top-title > div {
        font-size: var(--m-title);
        line-height: 1.3;
    }

    .model-top-line {
        width: 60px;
        height: 4px;
        margin-top: 10px;
    }

    .navigation > .nav-text,
    .char-navigation > .nav-text {
        font-size: var(--m-text-sm);
        line-height: 1.5;
        margin-bottom: 16px;
        color: #888;
    }

    .navigation > .content-box > p,
    .content-box > p,
    .goal-text,
    .Novel-text,
    .switch-main1 > div,
    .detail-text,
    .blurb-box > .blurb-content > div {
        font-size: var(--m-text) !important;
        line-height: var(--m-line) !important;
    }

    .btn-more {
        width: auto;
        min-width: 150px;
        min-height: 44px;
        height: auto;
        padding: 12px 24px;
        font-size: 15px;
        box-sizing: border-box;
    }

    .btn-more > img {
        width: 16px;
        height: 16px;
        margin-left: 10px;
        padding-top: 0;
    }

    /* ========== 通用布局 ========== */
    .display-flex {
        flex-wrap: wrap;
    }

    .model1,
    .model2,
    .model-master,
    .blurb-box,
    .contact-box,
    .detail-box,
    .news-item,
    .search-box,
    .join-box,
    .character-ul {
        flex-direction: column !important;
    }

    .model1 > .model-left,
    .model2 > .model-left,
    .model1 > .model-right,
    .model2 > .model-right,
    .model4 > .model-master > .master-left,
    .model4 > .model-master > .master-right {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .model1 > .model-right > img,
    .model2 > .model-left > img,
    .navigation > .nav-img,
    .blurb-box > div > img,
    .contact-box > img,
    .news-item > img,
    .news-img,
    .detail-video,
    .model4 > .model-master > .master-left > img {
        width: 100% !important;
        height: auto !important;
        max-width: 100%;
        object-fit: contain;
        display: block;
        border-radius: 8px;
    }

    .model1 > .model-right,
    .model2 > .model-left {
        overflow: hidden;
        border-radius: 8px;
    }

    .model1,
    .model2,
    .model3,
    .model4 {
        padding: 36px 0;
    }

    .model1 > .model-left {
        margin-right: 0;
        padding-top: 0;
        margin-bottom: 24px;
    }

    .model2 > .model-left {
        margin-right: 0;
        margin-bottom: 24px;
        order: 2;
    }

    .model2 > .model-right {
        order: 1;
        margin-bottom: 20px;
    }

    .model1 > .model-left > .model-text1,
    .model2 > .model-right > .model-text1 {
        font-size: var(--m-subtitle);
        line-height: 1.4;
        margin: 20px 0 12px;
    }

    .model1 > .model-left > .model-text2,
    .model2 > .model-right > .model-text2,
    .model2 > .model-right > .model-text3 {
        font-size: var(--m-text);
        line-height: var(--m-line);
        margin-bottom: 24px;
    }

    .model2 > .model-right > .model-text2,
    .model2 > .model-right > .model-text3 {
        margin-top: 12px;
    }

    .model3 > .model-list > ul,
    .product-box > .model-list > ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .model3 > .model-list > ul > li,
    .product-box > .model-list > ul > li {
        width: calc(50% - 8px);
        height: auto;
        margin-bottom: 0;
        position: relative;
    }

    .model3 > .model-list > ul > li > .list-item,
    .product-box > .model-list > ul > li > .list-item {
        width: 100%;
        height: auto;
        padding: 12px;
    }

    .model3 > .model-list > ul > li > .list-item > img,
    .product-box > .model-list > ul > li > .list-item > img {
        width: 100%;
        height: auto;
    }

    .model3 > .model-list > ul > li > .list-item > div,
    .product-box > .model-list > ul > li > .list-item > div {
        font-size: 15px;
        line-height: 1.4;
        margin-top: 12px;
    }

    .model3 > .model-list > ul > li > .list-acitve,
    .product-box > .model-list > ul > li > .list-acitve {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        position: absolute;
        margin-top: 0;
        box-sizing: border-box;
        padding: 12px;
    }

    .model3 > .model-list > ul > li > .list-acitve > div,
    .product-box > .model-list > ul > li > .list-acitve > div {
        font-size: 14px;
        line-height: 1.5;
    }

    .model3 > .justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .model3 > .model-list {
        margin-top: 32px;
    }

    /* ========== 首页 News ========== */
    .model4 > .top-title {
        margin-bottom: 8px;
    }

    .model4 > .model-master {
        margin-top: 24px;
        gap: 24px;
    }

    .model4 > .model-master > .master-left > .model-text1 {
        font-size: 18px;
        line-height: 1.4;
        margin-top: 12px;
    }

    .model4 > .model-master > .master-left > .model-text2 {
        font-size: var(--m-text);
        line-height: var(--m-line);
        margin-top: 8px;
        margin-bottom: 20px;
    }

    .model4 > .model-master > .master-right > ul > li {
        padding: 20px;
        margin-bottom: 16px;
    }

    .model4 > .model-master > .master-right > ul > li > .li-left > .model-text1 {
        font-size: 32px;
    }

    .model4 > .model-master > .master-right > ul > li > .li-left > .model-text2 {
        font-size: var(--m-text-sm);
        margin-top: 4px;
    }

    .model4 > .model-master > .master-right > ul > li > .li-right > .model-text3 {
        font-size: 17px;
        line-height: 1.4;
    }

    .model4 > .model-master > .master-right > ul > li > .li-right > .model-text4 {
        font-size: var(--m-text-sm);
        line-height: var(--m-line);
        margin-top: 8px;
    }

    /* ========== About Us ========== */
    .navigation {
        padding: 24px 0;
    }

    .culture-box {
        height: auto;
        padding: 32px 0;
    }

    .culture-box > div > ul {
        flex-direction: column;
        padding: 0 !important;
        gap: 12px;
    }

    .culture-box > div > ul > li,
    .culture-box > div > ul > li:hover {
        width: 100% !important;
        height: auto !important;
        padding: 20px !important;
        box-sizing: border-box;
    }

    .culture-box > div > ul > li > img {
        width: 36px;
        height: auto;
        flex-shrink: 0;
    }

    .culture-box > div > ul > li > div:nth-child(2) {
        font-size: 17px;
        line-height: 1.4;
        margin: 0 0 6px;
    }

    .culture-box > div > ul > li > div:nth-child(3) {
        font-size: var(--m-text-sm);
        line-height: var(--m-line);
    }

    /* ========== R&D ========== */
    .blurb-box > .blurb-content {
        padding: 20px;
        margin-top: 16px;
    }

    .blurb-box > .blurb-content > div:nth-child(1) {
        font-size: var(--m-subtitle);
    }

    .character-title {
        font-size: var(--m-subtitle);
        line-height: 1.4;
    }

    .switch-nav {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 24px;
    }

    .switch-nav > li {
        margin-right: 0;
        margin-bottom: 0;
        font-size: var(--m-text-sm);
        padding: 10px 14px;
    }

    .Novel-title {
        font-size: var(--m-title);
    }

    /* ========== R&D / People 特色卡片 ========== */
    .character-box {
        height: auto;
        padding: 24px 0;
        margin-bottom: 8px;
    }

    .character-content {
        padding-top: 0;
    }

    .char-container {
        position: static;
        top: auto;
        height: auto;
        padding-bottom: 16px;
        margin-top: 0;
    }

    .character-ul {
        margin-right: 0 !important;
        gap: 16px;
        width: 100%;
    }

    .character-ul > li {
        width: 100% !important;
        height: auto !important;
        min-height: auto;
        padding: 20px;
        box-sizing: border-box;
        margin-bottom: 0;
        background-image: none !important;
        background-color: #fff;
        border: 1px solid #e8e8e8;
        border-top: 3px solid #40CAC0;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    }

    .character-ul > li > div {
        text-align: left;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .character-ul > li > div:nth-child(1) {
        font-size: 17px;
        font-weight: 700;
        margin-top: 0 !important;
        color: #2B2D3B;
    }

    .character-ul > li > div:nth-child(2) {
        font-size: var(--m-text-sm);
        line-height: var(--m-line);
        margin-top: 10px;
        width: 100% !important;
        margin-left: 0 !important;
        color: #666;
    }

    .people-ul > li {
        width: calc(50% - 8px);
        margin-right: 0 !important;
        margin-bottom: 16px;
    }

    .people-ul > li > img {
        width: 100%;
        height: auto;
    }

    .people-ul > li > div:nth-child(2) {
        font-size: 16px;
        margin: 12px 8px;
    }

    .people-ul > li > div:nth-child(3) {
        font-size: var(--m-text-sm);
        line-height: 1.5;
        margin: 0 8px 12px;
    }

    /* ========== Products ========== */
    .W1520 > .justify-between {
        flex-direction: column;
        gap: 12px;
    }

    .search-box {
        width: 100%;
        gap: 12px;
    }

    .search-box > .search-select {
        width: 100%;
        box-sizing: border-box;
        font-size: var(--m-text);
        padding: 14px 16px;
    }

    .search-box > .search-input {
        width: 100%;
        box-sizing: border-box;
        height: auto;
        min-height: 48px;
    }

    .search-box > .search-input > input {
        width: 100%;
        flex: 1;
        min-width: 0;
        font-size: var(--m-text);
    }

    .search-box > .search-input > div {
        font-size: var(--m-text);
        min-height: 48px;
        padding: 0 16px;
    }

    .detail-box {
        margin-top: 32px;
        margin-bottom: 48px;
    }

    .detail-box > .detail-left > div:nth-child(1) {
        width: 100%;
        box-sizing: border-box;
        padding: 24px;
    }

    .detail-box > .detail-right {
        padding-left: 0 !important;
        margin-top: 24px;
    }

    .detail-box > .detail-right > div {
        width: 100% !important;
        font-size: var(--m-text);
        line-height: var(--m-line);
    }

    .detail-box > .detail-right > div:nth-child(1) {
        font-size: var(--m-subtitle);
    }

    .detail-box > .detail-right > div:nth-child(2) {
        font-size: var(--m-text-sm);
    }

    .detail-title {
        font-size: var(--m-title);
    }

    .swiper3 {
        width: 100% !important;
        height: auto;
        min-height: 100px;
    }

    /* ========== News ========== */
    .news-item {
        flex-direction: column !important;
        padding: 16px;
    }

    .news-item > img {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 12px;
    }

    .news-item > .news-item-left {
        border-right: none;
        border-bottom: 1px solid #D8D8D8;
        margin: 0 0 12px 0 !important;
        padding: 0 0 12px 0 !important;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .news-item > .news-item-left > div:nth-child(1) {
        font-size: 36px;
        padding-top: 0;
    }

    .news-item > .news-item-left > div:nth-child(2) {
        font-size: var(--m-text-sm);
        padding-top: 0;
    }

    .news-item > .news-item-right {
        margin: 0 !important;
        width: 100%;
    }

    .news-item > .news-item-right > div:nth-child(1) {
        font-size: 17px;
        line-height: 1.4;
    }

    .news-item > .news-item-right > div:nth-child(2) {
        font-size: var(--m-text-sm);
        line-height: var(--m-line);
        margin: 10px 0;
    }

    .news-item > .news-item-right > div:nth-child(3) > a {
        font-size: var(--m-text);
    }

    .load-btn,
    .more-btn {
        min-height: 44px;
        font-size: 15px;
        padding: 12px 24px;
        width: auto;
    }

    /* ========== Contact / Join ========== */
    .contact-title {
        font-size: var(--m-title);
    }

    .contact-info {
        flex-direction: column !important;
        width: 100%;
    }

    .contact-info > div {
        width: 100% !important;
        margin-left: 0 !important;
        height: auto !important;
        font-size: var(--m-text);
    }

    .contact-info > div:nth-child(2) {
        margin-top: 16px;
    }

    .contact-info > div:nth-child(1) > div,
    .contact-info > div:nth-child(2) {
        padding: 20px;
    }

    .contact-info > div:nth-child(1) > div > input,
    .contact-info > div:nth-child(2) > input {
        font-size: var(--m-text);
        width: 100%;
    }

    .contact-submit {
        font-size: var(--m-text);
        min-height: 48px;
        line-height: 48px;
        padding: 0;
    }

    .join-main {
        height: auto;
        min-height: auto;
        padding: 32px 0;
    }

    .join-box > div {
        width: 100% !important;
        box-sizing: border-box;
        padding: 20px !important;
        margin-bottom: 12px;
    }

    .join-box > div > div:nth-child(1) {
        font-size: 18px;
    }

    .join-box > div > div:nth-child(2),
    .join-box > div > div:nth-child(3) {
        font-size: var(--m-text-sm);
        line-height: var(--m-line);
    }

    .join-box > div > div:nth-child(4) {
        font-size: var(--m-text);
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-top: 16px;
    }

    .join-box {
        flex-direction: column !important;
    }

    /* ========== Footer ========== */
    footer {
        height: auto;
        padding-bottom: 24px;
    }

    footer > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 24px;
        padding-top: 32px !important;
        font-size: var(--m-text-sm);
    }

    footer > div > div:nth-child(1) {
        display: none;
    }

    footer > div > ul {
        flex-direction: column !important;
        width: 100%;
        gap: 20px;
    }

    footer > div > ul > li,
    footer > div > ul > li:nth-child(3) {
        width: 100% !important;
    }

    footer > div > ul > li > div:nth-child(1),
    footer > div > .footer-send > .send-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    footer > div > ul > li > div {
        font-size: var(--m-text-sm);
        line-height: 1.6;
        margin-top: 8px;
    }

    footer > div > .footer-send {
        width: 100%;
    }

    footer > div > .footer-send > .send-btn {
        width: 100%;
        box-sizing: border-box;
    }

    footer > div > .footer-send .email-input {
        font-size: var(--m-text);
        min-height: 44px;
    }

    /* ========== Pagination ========== */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        font-size: var(--m-text);
        gap: 4px;
    }

    .pagination > span {
        min-width: 36px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    :root {
        --m-gap: 20px;
        --m-title: 24px;
        --m-subtitle: 18px;
    }

    .model3 > .model-list > ul > li,
    .product-box > .model-list > ul > li {
        width: 100%;
    }

    .people-ul > li {
        width: 100%;
    }

    .model4 > .model-master > .master-right > ul > li {
        flex-direction: column;
    }

    .model4 > .model-master > .master-right > ul > li > .li-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #D8D8D8;
        padding-right: 0;
        padding-bottom: 10px;
        margin-bottom: 10px;
        display: flex;
        align-items: baseline;
        gap: 10px;
    }

    .model4 > .model-master > .master-right > ul > li > .li-right {
        padding-left: 0;
    }

    .swiper2,
    .swiper2 .swiper-slide {
        height: 50vw !important;
        min-height: 175px;
        max-height: 220px;
    }

    .swiper2 .swiper-button-prev,
    .swiper2 .swiper-button-next {
        display: none;
    }

    .swiper2 .swiper-pagination-bullet {
        width: 20px;
        height: 4px;
    }

    .banner,
    .banner1 {
        height: 38vw;
        min-height: 110px;
        max-height: 160px;
    }

    .banner > div,
    .banner1 > div {
        font-size: 24px;
    }
}

/* PC 端：恢复原有 header 布局，隐藏移动端专用区域 */
@media (min-width: 993px) {
    .nav-toggle,
    .header-right {
        display: none !important;
    }

    header .header-bar > .header-tools {
        display: flex;
    }

    header .header-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}
