﻿/* 关于页面专用样式（OEM/ODM 服务 + 工厂实力） */

.section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-6);
}

.section-title1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    color: var(--color-bg);
}

/* ========== OEM/ODM 服务介绍 ========== */
.oem-intro-section {
    padding: var(--space-16) 0;
}

.oem-intro-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-3xl);
    margin-bottom: var(--gap-3xl);
}

.oem-card {
    width: 100%;
    padding: var(--space-6);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}

.oem-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25%;
    aspect-ratio: 1 / 1;
    background: var(--color-brand);
    color: #ffffff;
    font-size: var(--text-lg);
    font-weight: 700;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.oem-card-content {
    flex: 1;
    min-width: 0;
}

.oem-card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-1);
}

.oem-card-desc {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oem-intro-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-gray-100);
}

.oem-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ========== 服务流程 ========== */
.oem-process-section {
    padding: var(--space-16) 0;
    background: var(--color-brand);
}

/* 横向步骤流程 */
.process-steps-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-2xl);
}

.step-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
}

.step-circle {
    width: 20%;
    height: auto;
    background-color: var(--color-brand);
    border-radius: var(--radius-md);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

.step-content {
    text-align: left;
    flex: 1;
}

.step-heading {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.step-info {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: 0;
}

.step-arrow {
    width: 20%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.step-arrow.arrow-down {
    transform: rotate(90deg);
}

.step-arrow.arrow-flip {
    transform: rotate(180deg);
}

/* ========== 服务优势 ========== */
.oem-advantages-section {
    padding: var(--space-16) 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-lg);
}

.advantage-item {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.advantage-content {
    position: relative;
    z-index: 1;
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 165, 149, 0.7) 100%);
}

.advantage-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-2);
}

.advantage-desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.advantage-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.advantage-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.advantage-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 165, 149, 0.2) 0%, rgba(0, 165, 149, 0.5) 100%);
}

/* ========== 合作案例 ========== */
.oem-cases-section {
    padding: var(--space-16) 0;
    background: var(--color-gray-50);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-lg);
}

.case-item {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.case-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-info {
    padding: var(--space-5);
}

.case-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.case-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ========== 工厂概况 ========== */
.factory-overview-section {
    padding-top: var(--space-16);
    background: var(--color-gray-50);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-3xl);
    align-items: start;
}

.overview-text {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.overview-text:last-child {
    margin-bottom: 0;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-md);
}

.stat-card {
    padding: var(--space-6);
    background: #ffffff;
    border-radius: var(--radius-lg);
    text-align: center;
}

.stat-number {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: var(--space-2);
}

.stat-unit {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-text-muted);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ========== 工厂展示 ========== */
.factory-showcase-section {
    padding-top: var(--space-16);
    background: var(--color-gray-50);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: var(--gap-lg);
}

/* 第 1 行：大图（3 列×2 行）+ 右侧垂直容器（1 列×2 行） */
.showcase-item:nth-child(1) {
    grid-column: span 3;
    grid-row: 1 / span 2;
}

/* 右侧垂直堆叠容器 */
.showcase-column-right {
    grid-column: span 1;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}

.showcase-column-right .showcase-item {
    flex: 1;
}

/* 第 2 行：左侧垂直容器（1 列×2 行）+ 大图（3 列×2 行） */
.showcase-column-left {
    grid-column: span 1;
    grid-row: 3 / span 2;
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}

.showcase-column-left .showcase-item {
    flex: 1;
}

.showcase-item:nth-child(4) {
    grid-column: span 3;
    grid-row: 3 / span 2;
}

/* 图片项基础样式 */
.showcase-item {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== 生产设备（安全检测） ========== */
.factory-equipment-section {
    padding-top: var(--space-16);
    background: #f9fafb;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto auto;
    gap: var(--gap-lg);
    align-items: stretch;
}

.equipment-card {
    position: relative;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.equipment-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.equipment-card:hover img {
    transform: scale(1.05);
}

/* 第 1 张：占 3 列 (3/5)，3:2 比例 - 决定第 1 行高度 */
.equipment-card:nth-child(1) {
    grid-column: span 3;
    grid-row: 1;
    aspect-ratio: 3 / 2;
}

/* 第 2 张：占 2 列 (2/5)，与第 1 张同行等高 */
.equipment-card:nth-child(2) {
    grid-column: span 2;
    grid-row: 1;
    height: 100%;
}

/* 第 3 张：占 2 列 (2/5)，与第 4 张同行等高 */
.equipment-card:nth-child(3) {
    grid-column: span 2;
    grid-row: 2;
    height: 100%;
}

/* 第 4 张：占 3 列 (3/5)，3:2 比例 - 决定第 2 行高度 */
.equipment-card:nth-child(4) {
    grid-column: span 3;
    grid-row: 2;
    aspect-ratio: 3 / 2;
}

/* ========== 质量体系 ========== */
.factory-quality-section {
    padding: var(--space-16) 0;
    background: var(--color-gray-50);
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-lg);
}

.quality-item {
    padding: var(--space-6);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    text-align: center;
}

.quality-cert {
    display: inline-block;
    width: clamp(88px, 10vw, 128px);
    height: clamp(88px, 10vw, 128px);
    object-fit: contain;
    margin-bottom: var(--space-4);
}

.quality-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.quality-desc {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ========== 合作伙伴模块 ========== */
.partners-section {
    padding: var(--space-16) 0;
    background-color: var(--color-bg-subtle);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.section-header .section-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.section-header .section-slogan {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--gap-sm);
    align-items: center;
}

.partner-logo {
    padding: var(--space-1);
    background-color: #ffffff;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* ========== CTA ========== */
.oem-cta-section,
.factory-cta-section {
    padding: var(--space-16) 0;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-4);
}

.cta-desc {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--gap-md);
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    background: #ffffff;
    color: var(--color-brand);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
}

.btn-cta-primary:hover {
    background: var(--color-brand-light);
    color: var(--color-brand-dark);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quality-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .oem-intro-wrapper {
        grid-template-columns: 1fr;
        gap: var(--gap-xl);
        margin-bottom: var(--gap-xl);
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: var(--gap-xl);
    }

    .overview-stats {
        width: 100%;
        margin: 0 auto;
    }

    /* 工厂展示：2 列网格 */
    .showcase-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: auto !important;
        gap: var(--gap-lg);
    }

    /* 容器在 1024px 下解散，直接显示图片 */
    .showcase-column-right,
    .showcase-column-left {
        display: contents;
    }

    .showcase-item,
    .showcase-item.large {
        grid-column: span 1 !important;
        grid-row: auto !important;
        width: 100% !important;
        aspect-ratio: 3 / 2 !important;
    }

    .showcase-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 安全检测：2x2 网格，所有图片等宽，3:2 比例 */
    .equipment-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        grid-template-rows: auto !important;
        gap: var(--gap-lg);
        align-items: stretch;
    }

    .equipment-card {
        grid-column: auto !important;
        grid-row: auto !important;
        width: 100% !important;
        aspect-ratio: 3 / 2 !important;
        height: auto !important;
    }

    .equipment-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 合作伙伴：4 列布局 */
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    /* 工厂展示：单列布局 */
    .showcase-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--gap-lg);
    }

    /* 容器解散，图片直接垂直排列 */
    .showcase-column-right,
    .showcase-column-left {
        display: contents;
    }

    .showcase-item,
    .showcase-item.large {
        width: 100% !important;
        aspect-ratio: 3 / 2 !important;
    }

    .showcase-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 安全检测：单列布局 */
    .equipment-grid {
        display: flex;
        flex-direction: column;
    }

    .equipment-card {
        width: 100%;
        aspect-ratio: 4 / 3;
    }

    .stat-card {
        padding: var(--space-4);
    }

    .section-title,
    .section-title1 {
        font-size: var(--text-3xl);
    }

    .process-steps-horizontal {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .step-item {
        justify-content: flex-start;
    }

    .step-arrow,
    .step-arrow.arrow-down,
    .step-arrow.arrow-flip {
        display: none;
    }

    .step-circle {
        width: 44px;
        height: 44px;
        font-size: var(--text-sm);
    }

    .step-heading {
        font-size: var(--text-base);
        margin-bottom: 0;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 合作伙伴：2 列布局 */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }



    .cta-title {
        font-size: var(--text-2xl);
    }

    .cta-actions {
        flex-direction: column;
        gap: var(--space-3);
    }

    .btn-cta-primary,
    .btn-cta-outline {
        width: 100%;
    }
}

/* ========== 联系我们页面 ========== */

.contact-form-section {
    padding: var(--space-16) 0;
}

.form-wrapper {
    width: 100%;
}

.form-wrapper .section-title {
    text-align: center;
}

.form-desc {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--space-8);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.form-input {
    padding: var(--space-3) var(--space-4);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(0, 165, 149, 0.1);
}

.form-input::placeholder {
    color: var(--color-gray-400);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-family-sans);
}

.form-submit {
    display: flex;
    justify-content: center;
    padding-top: var(--space-4);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4) var(--space-12);
    background: var(--color-brand);
    color: #ffffff;
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-submit:hover {
    background: var(--color-brand-dark);
    transform: translateY(-2px);
}

.form-notice {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-4);
    line-height: var(--leading-relaxed);
}

.form-notice a {
    color: var(--color-brand);
    text-decoration: underline;
}

.form-notice a:hover {
    color: var(--color-brand-dark);
}

/* ========== 地图区域 ========== */
.contact-map-section {
    padding: var(--space-16) 0;
    background: var(--color-bg-subtle);
}

.map-wrapper .section-title {
    text-align: center;
    margin-bottom: var(--space-8);
}

.map-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.map-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-gray-100);
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-6);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.map-info {
    color: #ffffff;
}

.map-info h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.map-info p {
    font-size: var(--text-sm);
    margin-bottom: 0;
    opacity: 0.9;
}

/* ========== 联系我们 CTA ========== */
.contact-cta-section {
    padding: var(--space-16) 0;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
}

@media (max-width: 768px) {
    .contact-form-section {
        padding: var(--space-10) 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .map-placeholder {
        aspect-ratio: 4 / 3;
    }

    .contact-cta-section {
        padding: var(--space-10) 0;
    }

    .cta-title {
        font-size: var(--text-2xl);
    }

    .cta-actions {
        flex-direction: column;
        gap: var(--space-3);
    }

    .btn-cta-primary,
    .btn-cta-outline,
    .btn-submit {
        width: 100%;
    }
}
