/* === assets/css/page.css === */
/* Manufacturing Hub 区域样式 */
.our-strength-container {
    padding: 0 0 var(--section-bottom) !important;
}

.our-strength-content .strength-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.our-strength-content {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 20px;
}

.our-strength-content .strength-item:nth-child(1) {
    grid-area: 1 / 1 / 2 / 4;
}

.our-strength-content .strength-item:nth-child(2) {
    grid-area: 1 / 4 / 2 / 7;
}


.our-strength-content .strength-item:nth-child(3) {
    grid-area: 2 / 1 / 3 / 3;
}

.our-strength-content .strength-item:nth-child(4) {
    grid-area: 2 / 3 / 3 / 5;
}

.our-strength-content .strength-item:nth-child(5) {
    grid-area: 2 / 5 / 3 / 7;
}

.our-strength-content .strength-item:nth-child(6) {
    grid-area: 1 / 7 / 3 / 9;
}

.certification {
    min-height: max(25vw, 400px);
}

.certification-content {
    left: max(12vw, 120px);
    width: max(24vw, 240px);
}

.certification-content .widget-title {
    text-align: left;
}

.certification-content .widget-title h2::after {
    left: 0;
    transform: none;
}

.company-profile-module-group {
    margin-bottom: var(--section-bottom);
}

.company-profile-module-group .module-group-item {
    grid-gap: max(2vw, 20px);
}

.company-profile-module-group .module-group-item-content {
    flex: 1;
}

.company-profile-module-group .module-group-item-content img,
.company-profile-module-group .module-group-item-content video {
    width: 100%;
    height: max(300px, 22vw);
    object-fit: cover;
}

.company-profile-module-group .widget-sub-title h3,
.company-profile-rewards-content-item .widget-sub-title h3 {
    padding-bottom: 0;
}

.company-profile-module-group .widget-sub-title h3::after,
.company-profile-rewards-content-item .widget-sub-title h3::after {
    display: none;
}

.company-profile-rewards {
    background-color: #f2f3f4;
}

.company-profile-rewards-content {
    grid-template-columns: 1fr max(40vw, 400px);
    background-color: #fff;
}

.company-profile-rewards-content .company-profile-rewards-content-item {
    padding: max(7.2vw, 70px) max(2.4vw, 20px);
    min-width: auto;
}

.company-profile-our-team {
    height: max(50vw, 900px);
}

.service-system-container {
    padding: calc(var(--section-top)) 0;
}

.service-system-content {
    grid-gap: max(4vw, 40px);
    grid-template-columns: minmax(500px, 30vw) 1fr;
}

.service-system-content .service-system-content-left {
    min-height: max(500px, 26vw);
}

.service-system-content .service-system-content-left::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: max(500px, 26vw);
    height: max(500px, 26vw);
    background-color: #f2f3f4;
    z-index: 1;
}

.service-system-content .service-system-content-left img {
    z-index: 2;
}

.service-system-content-right .service-system-title {
    margin-bottom: max(2.4vw, 24px);
}

.service-system-content-right .service-system-title h2 span {
    color: var(--theme-p-color);
}

.service-system-content-right .service-system-title h2 {
    font-size: var(--widget-title-h2-fs);
    font-weight: 700;
    color: var(--theme-color);
    margin-bottom: max(1.2vw, 20px);
}

.service-system-content-right .service-system-title p {
    font-size: var(--widget-title-p-3-fs);
    font-weight: 400;
    color: var(--theme-p-color);
    margin-bottom: max(1.2vw, 20px);
}

.service-system-content-right .system-content {
    grid-template-columns: repeat(auto-fill, minmax(166px, 1fr));
    grid-gap: max(1.5vw, 20px);
}

.service-system-content-right .system-content .system-content-item {
    grid-gap: max(1vw, 10px);
}

.service-system-content-right .system-content .system-content-item::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 60%;
    transform: translateY(-50%);
    background-color: #eeeeee;
}

.service-system-content-right .system-content .system-content-item:last-child::after {
    display: none;
}

.service-system-content-right .system-content .system-content-item .system-content-item-icon {
    width: max(40px, 4vw);
    height: max(40px, 4vw);
    background-color: rgba(0, 117, 201, .05);
    border-radius: 8px;
    padding: max(0.8vw, 8px);
}

.service-system-content-right .system-content .system-content-item .system-content-item-icon img {
    object-fit: contain;
    width: 100%;
}

.service-system-content-right .system-content .system-content-item .system-content-item-title h3 {
    font-size: var(--widget-title-p-3-fs);
    font-weight: 700;
    color: var(--theme-p-color);
    white-space: nowrap;
}

.quality-management-container {
    background-color: #f2f3f4;
    --qm-bg-w: max(35vw, 650px);
}
.quality-management-container .widget-title h2::after,
.odm-service .widget-title h2::after {
    display: none;
}
.quality-management-container .quality-management-content {
    padding: max(1vw, 10px) 0 60px;
    margin-bottom: max(4vw, 40px);
}

.quality-management-content-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-55%, -110%) !important;
    text-align: center;
}

.quality-management-content-title h2 {
    font-size: max(42px, 2.8vw);
    font-weight: 700;
    color: var(--theme-p-color);
}

.quality-management-content-title p {
    font-size: var(--widget-title-h2-fs);
    color: #999;
}

.quality-management-container .quality-management-content img {
    width: var(--qm-bg-w);
    object-fit: contain;
}

.quality-management-container .quality-management-content .quality-management-content-item {
    position: absolute;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 264px;
}

.quality-management-container .quality-management-content .quality-management-content-item-title {
    font-size: var(--widget-title-p-1-fs);
    font-weight: 700;
    margin-bottom: max(0.6vw, 6px);
}

.quality-management-container .quality-management-content .quality-management-content-item-description {
    font-size: var(--widget-title-p-3-fs);
    font-weight: 700;
    color: var(--theme-p-color);
    line-height: 1.5;
}

.quality-management-container .quality-management-content .step-1 {
    transform: translate(calc(-65% + var(--qm-bg-w) * 0.55 * -1), calc(-50% + var(--qm-bg-w) * 0.4 * -1));
    text-align: right;
}

.quality-management-container .quality-management-content .step-2 {
    transform: translate(calc(-70% + var(--qm-bg-w) * 0.65 * -1), calc(-150%));
    text-align: right;
}

.quality-management-container .quality-management-content .step-3 {
    transform: translate(calc(-65% + var(--qm-bg-w) * 0.55 * -1), calc(100%));
    text-align: right;
}

.quality-management-container .quality-management-content .step-4 {
    transform: translate(calc(-60%), calc(-50% + var(--qm-bg-w) * 0.42 * 1));
    text-align: center;
}

.quality-management-container .quality-management-content .step-5 {
    transform: translate(calc(-60% + var(--qm-bg-w) * 0.6 * 1), calc(100%));
    text-align: left;
}

.quality-management-container .quality-management-content .step-6 {
    transform: translate(calc(-65% + var(--qm-bg-w) * 0.75 * 1), calc(-150%));
    text-align: left;
}

.quality-management-container .quality-management-content .step-7 {
    transform: translate(calc(-65% + var(--qm-bg-w) * 0.60 * 1), calc(-50% + var(--qm-bg-w) * 0.4 * -1));
    text-align: left;
}

.oem-odm-container .oem-odm-content {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: max(3vw, 30px);
    margin: max(1.5vw, 20px) 0 max(4vw, 30px);
}

.oem-odm-container .oem-odm-content .oem-odm-content-item .oem-odm-content-item-icon {
    padding: max(1vw, 10px);
    background-color: rgba(0, 117, 201, .05);
    border-radius: 8px;
    margin-bottom: max(1.2vw, 20px);
}

.oem-odm-container .oem-odm-content .oem-odm-content-item .oem-odm-content-item-title h3 {
    font-size: var(--widget-title-p-2-fs);
    font-weight: 700;
    color: var(--theme-p-color);
    margin-bottom: max(0.6vw, 6px);
}

.oem-odm-container .oem-odm-content .oem-odm-content-item .oem-odm-content-item-title p {
    font-size: var(--widget-title-p-3-fs);
    font-weight: 400;
    color: #999;
}

.odm-service {
    background-color: #f2f3f4;
    padding-bottom: max(4vw, 30px);
}

.odm-service .odm-service-content {
    margin-top: max(2.4vw, 20px);
    grid-gap: max(2vw, 20px);
    position: relative;
}

.odm-service .odm-service-content .odm-service-left {
    flex: 1;
    position: relative;
}

.odm-service .odm-service-content .odm-service-right {
    position: relative;
    width: max(30vw, 520px);
}

.odm-service .odm-service-content .odm-service-right img {
    object-fit: contain;
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
}

.odm-service .odm-service-content .odm-service-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    z-index: 1;
    background-color: #fafafa;
}

.odm-service .odm-service-content .odm-sub-title {
    font-size: var(--widget-title-p-1-fs);
    font-weight: 700;
    margin-bottom: max(1.2vw, 20px);
    color: var(--theme-p-color);
}

.odm-service .odm-service-content .odm-service-container {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: max(2vw, 20px) max(3vw, 40px);
}

.odm-service .odm-service-content .odm-service-container .odm-service-item .odm-service-item-icon {
    padding: max(0.6vw, 10px);
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: max(0.8vw, 10px);
    width: fit-content;
}

.odm-service .odm-service-content .odm-service-container .odm-service-item .odm-service-item-icon img {
    object-fit: contain;
    width: 24px;
    height: 24px;
}

.odm-service .odm-service-content .odm-service-container .odm-service-item .odm-service-item-title {
    font-size: var(--widget-title-p-2-fs);
    font-weight: 700;
    color: var(--theme-p-color);
    margin-bottom: max(0.4vw, 4px);
}

.odm-service .odm-service-content .odm-service-container .odm-service-item .odm-service-item-description {
    font-size: var(--widget-title-p-3-fs);
    font-weight: 400;
    color: #999;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

@media (max-width: 1200px) {

    .quality-management-content-title,
    .quality-management-container .quality-management-content img {
        display: none;
    }

    .quality-management-container .quality-management-content {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        grid-gap: 20px;
        justify-items: center;
    }

    .quality-management-container .quality-management-content .quality-management-content-item {
        position: static;
        transform: none;
        text-align: center;
    }
    .odm-service .odm-service-content .odm-service-right::before {
        display: none;
    }
    .odm-service .odm-service-content .odm-service-container,
    .oem-odm-container .oem-odm-content {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .odm-service .odm-service-content .odm-service-right {
        display: none;
    }
    .odm-service .odm-service-content .odm-service-container .odm-service-item .odm-service-item-description {
        white-space: normal;
    }
}

/* 响应式样式 */
@media (max-width: 991px) {
    .our-strength-content {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }

    .our-strength-content .strength-item {
        grid-area: auto !important;
    }

    .company-profile-our-team {
        height: max(50vw, 700px);
    }

    .service-system-content {
        grid-template-columns: minmax(350px, 24vw) 1fr;
    }

    .service-system-content .service-system-content-left::before {
        display: none;
    }

    .service-system-content-right .system-content .system-content-item::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .company-profile-module-group .module-group-item {
        flex-direction: column;
    }

    .company-profile-our-team {
        height: max(50vw, 400px);
    }

    .service-system-content {
        grid-template-columns: 1fr;
    }

    .service-system-content .service-system-content-left {
        display: none;
    }
}

/* === assets/css/footer.css === */
/* 图标hover效果 */
.footer-icon {
    position: relative;
    display: inline-block;
}

.footer-icon img {
    height: 40px;
    transition: all 0.3s ease;
}

.footer-icon .icon-default {
    opacity: 1;
}

.footer-icon:hover img {
    transform: scale(1.2);
}

/* Newsletter / Get in touch */
.newsletter-section {
    margin-top: 0;
    max-width: 100%;
}

.newsletter-section .wpcf7 {
    margin: 0;
}

.newsletter-section .wpcf7-form {
    position: relative;
    max-width: 100%;
    margin: 0;
}

.newsletter-section .wpcf7-form > p {
    margin: 0;
    position: relative;
}

/* 隐藏 honeypot，避免撑开布局 */
.newsletter-section .honeynone,
.newsletter-section .wpcf7-form-control-wrap[data-name^="honeypot"],
.newsletter-section .wpcf7-form-control-wrap[class*="honeypot"] {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.newsletter-section .wpcf7-form-control-wrap[data-name="your-email"] {
    display: block;
    width: 100%;
}

.newsletter-section .wpcf7-form .newsletter-input,
.newsletter-section .wpcf7-form .wpcf7-email {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 8px 108px 8px 16px;
    background: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #333333;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.newsletter-section .wpcf7-form .newsletter-input::placeholder,
.newsletter-section .wpcf7-form .wpcf7-email::placeholder {
    color: #999999;
}

.newsletter-section .wpcf7-form .newsletter-input:focus,
.newsletter-section .wpcf7-form .wpcf7-email:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 0 0 2px rgba(0, 117, 201, 0.2);
}

.newsletter-section .wpcf7-form .newsletter-submit,
.newsletter-section .wpcf7-form .wpcf7-submit {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    z-index: 2;
    min-width: 96px;
    height: auto;
    padding: 0 16px;
    background: var(--theme-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.25s ease, opacity 0.25s ease;
}

.newsletter-section .wpcf7-form .newsletter-submit:hover,
.newsletter-section .wpcf7-form .wpcf7-submit:hover {
    background: var(--theme-color-dark);
}

.newsletter-section .wpcf7-form .newsletter-submit:disabled,
.newsletter-section .wpcf7-form .wpcf7-submit:disabled,
.newsletter-section .wpcf7-form[data-status="submitting"] .wpcf7-submit {
    opacity: 0.7;
    cursor: wait;
}

/* 校验提示（企业邮箱等） */
.newsletter-section .wpcf7-not-valid-tip {
    display: block;
    margin: 8px 0 0;
    padding: 0;
    color: #ff6b6b;
    font-size: 12px;
    line-height: 1.4;
    background: none;
    border: none;
}

.newsletter-section .wpcf7-form .wpcf7-not-valid {
    border-color: #ff4d4f !important;
    animation: newsletter-shake 0.45s ease;
}

@keyframes newsletter-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* 成功 / 失败提示（适配深色 footer） */
.newsletter-section .wpcf7-form .wpcf7-response-output {
    display: none;
    margin: 10px 0 0;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
}

.newsletter-section .wpcf7-form.sent .wpcf7-response-output,
.newsletter-section .wpcf7-form.failed .wpcf7-response-output,
.newsletter-section .wpcf7-form.invalid .wpcf7-response-output,
.newsletter-section .wpcf7-form.spam .wpcf7-response-output {
    display: block;
}

.newsletter-section .wpcf7-form.sent .wpcf7-response-output {
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.45);
    color: #8fefad;
}

.newsletter-section .wpcf7-form.failed .wpcf7-response-output,
.newsletter-section .wpcf7-form.invalid .wpcf7-response-output,
.newsletter-section .wpcf7-form.spam .wpcf7-response-output {
    background: rgba(255, 77, 79, 0.12);
    border-color: rgba(255, 77, 79, 0.4);
    color: #ffb3b3;
}

.newsletter-section .wpcf7-spinner {
    position: absolute;
    right: 108px;
    top: 50%;
    margin: -8px 0 0;
    z-index: 2;
}

@media (max-width: 480px) {
    .newsletter-section .wpcf7-form .newsletter-input,
    .newsletter-section .wpcf7-form .wpcf7-email {
        padding-right: 96px;
        font-size: 13px;
    }

    .newsletter-section .wpcf7-form .newsletter-submit,
    .newsletter-section .wpcf7-form .wpcf7-submit {
        min-width: 84px;
        padding: 0 12px;
        font-size: 13px;
    }

    .newsletter-section .wpcf7-spinner {
        right: 96px;
    }
}
