/**
 * OEM Page Styles
 * Custom styles for the OEM/ODM services page
 * Designed to match https://www.wzbiben.com/oem-odm/
 */

/* Color Palette from Reference Site */
:root {
    --oem-primary: #2563eb;
    --oem-primary-dark: #1d4ed8;
    --oem-primary-light: #eff6ff;
    --oem-secondary: #10b981;
    --oem-accent: #f59e0b;
    --oem-text-primary: #111827;
    --oem-text-secondary: #4b5563;
    --oem-text-muted: #6b7280;
    --oem-bg-light: #f9fafb;
    --oem-bg-white: #ffffff;
    --oem-border: #e5e7eb;
    --oem-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --oem-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --oem-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --oem-radius-sm: 0.25rem;
    --oem-radius-md: 0.5rem;
    --oem-radius-lg: 0.75rem;
    --oem-radius-xl: 1rem;
}

/* Hero Section */
.oem-hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #eff6ff 100%);
    padding: 100px 0 80px;
    position: relative;
}

.oem-hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    justify-content: space-between;
}

.oem-hero-text {
    flex: 1 1 450px;
    max-width: 650px;
    padding-right: 1rem;
}

.oem-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--oem-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 1.75rem;
}

.oem-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--oem-text-primary);
    line-height: 1.25;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.oem-hero-subtitle {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--oem-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.4;
}

.oem-hero-desc {
    font-size: 1.0625rem;
    color: var(--oem-text-secondary);
    line-height: 1.85;
    margin-bottom: 2.25rem;
}

.oem-hero-desc p {
    margin-bottom: 1.25rem;
}

.oem-hero-desc p:last-child {
    margin-bottom: 0;
}

.oem-hero-desc strong {
    color: var(--oem-text-primary);
    font-weight: 600;
}

.oem-hero-image {
    flex: 0 0 420px;
    max-width: 480px;
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oem-hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 1.5rem;
    z-index: 0;
}

.oem-hero-image img {
    position: relative;
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center;
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    z-index: 1;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.oem-hero-image:hover img {
    transform: translateY(-8px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.15);
}

.btn-oem-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.5rem;
    background-color: var(--oem-primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-oem-primary:hover {
    background-color: var(--oem-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Section Header */
.oem-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.oem-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--oem-text-primary);
    margin-bottom: 1rem;
}

.oem-section-desc {
    font-size: 1rem;
    color: var(--oem-text-secondary);
    line-height: 1.75;
    max-width: 700px;
    margin: 0 auto 1rem;
}

.oem-section-desc strong {
    color: var(--oem-primary);
}

/* Services Section */
.oem-services-section {
    padding: 6rem 0;
    background-color: var(--oem-bg-white);
}

.oem-services-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.oem-service-card {
    background-color: var(--oem-bg-light);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.oem-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.oem-service-oem {
    border-top: 4px solid var(--oem-primary);
}

.oem-service-odm {
    border-top: 4px solid var(--oem-secondary);
}

.oem-service-icon-wrap {
    margin-bottom: 1.5rem;
}

.oem-service-icon {
    width: 4rem;
    height: 4rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--oem-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oem-service-icon svg {
    width: 2rem;
    height: 2rem;
}

.oem-service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--oem-text-primary);
    margin-bottom: 0.5rem;
}

.oem-service-subtitle {
    font-size: 0.875rem;
    color: var(--oem-text-muted);
    margin-bottom: 1.5rem;
}

.oem-service-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.oem-feature {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
    background-color: var(--oem-bg-white);
    border-radius: 0.5rem;
}

.oem-feature-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--oem-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.oem-feature-value {
    font-size: 0.875rem;
    color: var(--oem-text-primary);
    line-height: 1.5;
}

.oem-services-cta {
    text-align: center;
}

.btn-oem-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.5rem;
    background-color: transparent;
    color: var(--oem-primary);
    font-weight: 600;
    border: 2px solid var(--oem-primary);
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-oem-secondary:hover {
    background-color: rgba(37, 99, 235, 0.05);
    border-color: var(--oem-primary-dark);
}

/* Products Section */
.oem-products-section {
    padding: 6rem 0;
    background-color: var(--oem-bg-light);
}

.oem-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.oem-product-card {
    background-color: var(--oem-bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.oem-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.oem-product-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.oem-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.oem-product-card:hover .oem-product-image img {
    transform: scale(1.05);
}

.oem-product-content {
    padding: 1.5rem;
}

.oem-product-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--oem-text-primary);
    margin-bottom: 0.75rem;
}

.oem-product-content p {
    font-size: 0.875rem;
    color: var(--oem-text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.oem-product-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.oem-product-list li {
    padding: 0.375rem 0.75rem;
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--oem-primary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

.oem-product-link {
    display: inline-flex;
    align-items: center;
    color: var(--oem-primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.oem-product-link:hover {
    color: var(--oem-primary-dark);
}

.oem-product-link::after {
    content: '\2192';
    margin-left: 0.5rem;
    font-size: 0.75rem;
}

/* Materials Section */
.oem-materials-section {
    padding: 6rem 0;
    background-color: var(--oem-bg-white);
}

.oem-materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.oem-material-card {
    background-color: var(--oem-bg-light);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.oem-material-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.oem-material-icon-wrap {
    margin-bottom: 1.5rem;
}

.oem-material-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oem-material-icon svg {
    width: 2rem;
    height: 2rem;
}

.oem-material-icon.cotton {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--oem-secondary);
}

.oem-material-icon.canvas {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--oem-accent);
}

.oem-material-icon.polyester {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--oem-primary);
}

.oem-material-icon.nylon {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.oem-material-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--oem-text-primary);
    margin-bottom: 1rem;
}

.oem-material-pros,
.oem-material-suitable,
.oem-material-specs,
.oem-material-variations {
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem;
}

.oem-material-pros:last-child,
.oem-material-suitable:last-child,
.oem-material-specs:last-child,
.oem-material-variations:last-child {
    margin-bottom: 0;
}

.oem-pros-label,
.oem-suitable-label,
.oem-spec-label,
.oem-variation-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--oem-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.25rem;
    min-width: 70px;
    flex-shrink: 0;
}

.oem-pros-value,
.oem-suitable-value,
.oem-spec-value,
.oem-variation-value {
    font-size: 0.875rem;
    color: var(--oem-text-secondary);
    line-height: 1.6;
    flex: 1;
    min-width: 0;
}

/* Material Card Image Styles */
.material-image-area {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    background-color: var(--oem-bg-white);
}

.material-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.oem-material-card:hover .material-img {
    transform: scale(1.05);
}

.material-content {
    padding-top: 0;
}

/* Contact Section */
.oem-contact-section {
    padding: 6rem 0;
    background-color: #111827;
    color: #ffffff;
}

.oem-contact-section .oem-section-title {
    color: #ffffff;
}

.oem-contact-section .oem-section-desc {
    color: #9ca3af;
}

.oem-contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.oem-contact-info {
    flex: 1 1 300px;
}

.oem-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.oem-contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.oem-contact-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(37, 99, 235, 0.15);
    color: #60a5fa;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.oem-contact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.oem-contact-method h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.oem-contact-method p {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

.oem-contact-form-wrapper {
    flex: 1 1 400px;
}

.oem-contact-form {
    background-color: var(--oem-bg-white);
    padding: 2.5rem;
    border-radius: 1.5rem;
}

.oem-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.oem-form-group {
    flex: 1 1 200px;
}

.oem-form-group.full {
    flex: 1 1 100%;
}

.oem-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--oem-text-primary);
    margin-bottom: 0.5rem;
}

.oem-form-group input,
.oem-form-group select,
.oem-form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--oem-border);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: var(--oem-text-primary);
    background-color: var(--oem-bg-white);
    transition: all 0.3s ease;
}

.oem-form-group input:focus,
.oem-form-group select:focus,
.oem-form-group textarea:focus {
    outline: none;
    border-color: var(--oem-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.oem-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.oem-form-error {
    display: none;
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.375rem;
    line-height: 1.4;
}

.oem-form-error.show {
    display: block;
}

.oem-form-group.error input,
.oem-form-group.error select,
.oem-form-group.error textarea {
    border-color: #ef4444;
}

.oem-form-required {
    color: #ef4444;
    margin-left: 0.25rem;
}

.oem-form-captcha-wrapper {
    position: relative;
    width: 70%;
    height: 44px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 0.75rem;
}

.oem-form-captcha {
    display: block;
    width: 100%;
    height: 44px;
    object-fit: fill;
    object-position: center;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

.oem-form-captcha:hover {
    opacity: 0.9;
}

.oem-form-captcha-refresh {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--oem-text-secondary);
    transition: all 0.3s ease;
    padding: 0;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(2px);
}

.oem-form-captcha-wrapper:hover .oem-form-captcha-refresh {
    opacity: 1;
    visibility: visible;
}

.oem-form-captcha-refresh:hover {
    background-color: var(--oem-primary);
    color: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.oem-form-captcha-refresh svg {
    width: 18px;
    height: 18px;
}

.oem-form-row.oem-form-captcha-row {
    gap: 0.75rem;
}

.oem-form-row.oem-form-captcha-row .oem-form-group {
    flex: 1;
    margin-bottom: 0;
}

.oem-form-row.oem-form-captcha-row .oem-form-group:first-child input#oem-checkcode {
    height: 44px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 44px;
}

.oem-form-group.oem-form-captcha-group {
    margin-bottom: 0;
    padding-bottom: 0;
}

.oem-form-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--oem-primary);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.oem-form-submit:hover {
    background-color: var(--oem-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Case Card Styles */
.case-card {
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .oem-hero-content {
        gap: 3rem;
    }
    
    .oem-hero-image {
        flex: 0 0 380px;
        min-height: 420px;
    }
    
    .oem-hero-image img {
        height: 420px;
    }
    
    .oem-hero-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 992px) {
    .oem-hero-content {
        gap: 2.5rem;
        flex-direction: column-reverse;
    }
    
    .oem-hero-text {
        flex: 1 1 100%;
        max-width: 100%;
        padding-right: 0;
        text-align: center;
    }
    
    .oem-hero-text .oem-badge,
    .oem-hero-text .oem-hero-title,
    .oem-hero-text .oem-hero-subtitle {
        text-align: center;
    }
    
    .oem-hero-text .oem-hero-desc {
        text-align: left;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .oem-hero-text .oem-hero-desc p {
        text-align: left;
    }
    
    .oem-hero-image {
        flex: 0 0 350px;
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
        min-height: 350px;
    }
    
    .oem-hero-image img {
        height: 350px;
    }
    
    .oem-hero-title {
        font-size: 2rem;
    }
    
    .oem-hero-subtitle {
        font-size: 1.25rem;
    }
    
    .oem-section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .oem-hero-section {
        padding: 70px 0 50px;
    }
    
    .oem-hero-title {
        font-size: 1.625rem;
    }
    
    .oem-hero-subtitle {
        font-size: 1.125rem;
    }
    
    .oem-hero-desc {
        font-size: 1rem;
    }
    
    .oem-hero-image {
        flex: 0 0 280px;
        max-width: 350px;
        min-height: 280px;
    }
    
    .oem-hero-image img {
        height: 280px;
    }
    
    .oem-services-comparison {
        grid-template-columns: 1fr;
    }
    
    .oem-contact-content {
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .oem-hero-section {
        padding: 50px 0 30px;
    }
    
    .oem-hero-title {
        font-size: 1.375rem;
    }
    
    .oem-badge {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }
    
    .btn-oem-primary,
    .btn-oem-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .oem-hero-image {
        flex: 0 0 240px;
        max-width: 100%;
        min-height: 240px;
    }
    
    .oem-hero-image img {
        height: 240px;
    }
    
    .oem-product-image {
        height: 150px;
    }
    
    .oem-contact-form {
        padding: 1.5rem;
    }
    
    .oem-form-row {
        gap: 1rem;
    }
}