/* ===== oem.css - OEM 定制服务页面样式 ===== */

/* Hero 区 */
.oem-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--primary);
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.15);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 信任数据区 */
.trust-stats {
    padding: 40px 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 优势卡片 */
.why-choose {
    padding: 60px 0;
    background: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.advantage-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: transform 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.advantage-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
    text-transform: capitalize
}

/* 定制流程 */
.oem-process {
    padding: 60px 0;
    background: var(--bg-light);
}

.process-timeline {
    max-width: 800px;
    margin: 40px auto 0;
}

.process-step {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    background: white;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border);
}

.step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 70px;
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}

.step-output {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

/* 定制选项表 */
.custom-options {
    padding: 60px 0;
    background: white;
}

.options-table-wrapper {
    overflow-x: auto;
    margin-top: 30px;
}

.options-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.options-table th,
.options-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.options-table th {
    background: var(--bg-light);
    font-weight: 600;
}

/* 案例卡片 */
.case-studies {
    padding: 60px 0;
    background: var(--bg-light);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.case-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.case-header {
    background: var(--bg-light);
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.case-badge {
    font-size: 0.7rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.case-header h3 {
    font-size: 1.2rem;
    margin-top: 8px;
}

.case-content {
    padding: 20px;
}

.case-detail {
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.case-label {
    font-weight: 600;
    display: inline-block;
    width: 65px;
    color: var(--text);
}

.case-quote {
    margin-top: 15px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 12px;
    font-style: italic;
}

.case-quote i {
    color: var(--primary);
    margin-right: 8px;
    font-size: 0.8rem;
}

.case-quote p {
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.quote-author {
    font-size: 0.75rem;
    color: var(--text-lighter);
}

/* FAQ 区 */
.oem-faq {
    padding: 60px 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    background: white;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 20px;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

.faq-item.active .faq-answer {
    display: block;
}

/* 询盘表单区域 */
.inquiry-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.inquiry-wrapper {
    max-width: var(--container-max);  /* 使用与头部相同的最大宽度变量 */
    margin: 0 auto;                    /* 水平居中 */
    text-align: center;
    width: 100%;
    padding: 0 20px;                  /* 可选，与头部内边距一致 */
}

.inquiry-wrapper h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.inquiry-wrapper p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

/* 表单容器 */
.inquiry-form {
    background: white;
    padding: 40px 35px;
    border-radius: 24px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 每个表单组 */
.inquiry-form .form-group {
    margin-bottom: 24px;
}

/* 标签样式 */
.inquiry-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.9rem;
}

.required {
    color: #dc3545;
    margin-left: 2px;
}

/* 输入框样式 */
.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    background: #fff;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(215, 23, 24, 0.1);
}

/* 全宽字段 */
.inquiry-form .full-width {
    grid-column: span 2;
}

/* 按钮样式 */
.inquiry-form .btn-primary {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 14px;
    margin-top: 8px;
}

/* 表单底部提示 */
.form-note {
    text-align: center;
    margin-top: 24px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.form-note span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 30px;
}

/* ========== Toast 提示（右侧顶部滑出） ========== */
.toast-message {
    position: fixed;
    top: 20px;
    right: 20px;
    transform: translateX(400px);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 350px;
    line-height: 1.4;
}

.toast-message.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-message.success {
    background: var(--primary);
}

.toast-message.error {
    background: #dc3545;
}

@media (max-width: 768px) {
    .toast-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        text-align: center;
        padding: 10px 20px;
    }
}

/* 底部 CTA */
.bottom-cta {
    padding: 60px 0;
    background: var(--bg-light);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-content p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 25px;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 0.85rem;
    color: var(--text-lighter);
}

/* 响应式 */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .case-grid {
        grid-template-columns: 1fr;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    .inquiry-form {
        padding: 25px 20px;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .process-step {
        flex-direction: column;
        gap: 10px;
    }
    .step-number {
        min-width: auto;
    }
}

/* ===== 按钮样式 ===== */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(215, 23, 24, 0.3);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: 1px solid var(--border);
    color: var(--text);
}

/* 深色背景上的 outline 按钮 */
.bg-dark .btn-outline,
.oem-hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.bg-dark .btn-outline:hover,
.oem-hero .btn-outline:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* 大按钮 */
.btn-large {
    padding: 14px 40px;
    font-size: 1.1rem;
}

.site-footer {
    margin-top: 0;
}

/* 表单行布局：PC 上两列并排，移动端堆叠 */
.inquiry-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.inquiry-form .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* 移动端适配：小屏幕下改为堆叠 */
@media (max-width: 768px) {
    .inquiry-form .form-row {
        flex-direction: column;
        gap: 20px;
    }
    .inquiry-form .form-row .form-group {
        margin-bottom: 0;
    }
}

/* 提交按钮样式 - 限制宽度并居中 */
.inquiry-form .full-width {
    text-align: center;  /* 让按钮在父容器中居中 */
}

.inquiry-form .btn-primary {
    display: inline-block;   /* 改为行内块，宽度由内容撑开 */
    width: auto;
    min-width: 360px;
    max-width: 500px;        /* 限制最大宽度 */
    padding: 14px 32px;
    margin: 0 auto;          /* 居中 */
}