/* ============================================================
 * OEM / ODM 小部件 — 与源码 styles.css 保持一致
 * ============================================================ */

/* ── 根容器：约束到主题内容宽度并居中（对应源码 .container） ── */
.oem-odm {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ── 标题区 ── */
.oem-head {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 56px;
}
.oem-head__tag {
    display: inline-block;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #103A8E;
    margin-bottom: 14px;
}
.oem-head__title {
    font-family: 'Sora', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.15;
    letter-spacing: -.5px;
    color: #0f1729;
}
.oem-head__desc {
    margin-top: 16px;
    font-size: 17px;
    color: #64748b;
}

/* ── 定制能力卡片 ── */
.custom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.custom-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 16px;
    padding: 32px 26px;
    box-shadow: 0 1px 2px rgba(15,23,41,.06), 0 4px 12px rgba(15,23,41,.05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.custom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #103A8E, #3b82f6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.custom-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(15,23,41,.10);
    border-color: transparent;
}
.custom-card:hover::before { transform: scaleX(1); }

.custom-card__no {
    position: absolute;
    top: 24px;
    right: 26px;
    font-family: 'Sora', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 26px;
    color: transparent;
    -webkit-text-stroke: 1.5px #e6e9ef;
    transition: -webkit-text-stroke-color .3s ease;
}
.custom-card:hover .custom-card__no {
    -webkit-text-stroke-color: rgba(16,58,142,.35);
}

.custom-card__ic {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    margin-bottom: 20px;
    background: rgba(16,58,142,.08);
    color: #103A8E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: background .3s ease, color .3s ease, transform .3s ease;
}
.custom-card__ic svg { width: 28px; height: 28px; fill: currentColor; }
.custom-card__ic i { font-size: 28px; }
.custom-grid .custom-card:hover .custom-card__ic {
    background: linear-gradient(135deg, #103A8E, #3b82f6);
    color: #fff;
    transform: scale(1.05);
}
.custom-card h3 {
    font-family: 'Sora', 'Inter', system-ui, sans-serif;
    font-size: 18px;
    margin: 0 0 10px;
    color: #0f1729;
}
.custom-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* ── 开发流程（深色区） ── */
.workflow {
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 0%, rgba(59,130,246,.22), transparent 42%),
        radial-gradient(circle at 90% 100%, rgba(16,58,142,.35), transparent 45%),
        linear-gradient(135deg, #0c1c45, #0f1729);
    border-radius: 22px;
    padding: 52px 48px;
    color: #fff;
}
.workflow__head {
    text-align: center;
    margin-bottom: 44px;
}
.workflow__head .block-tag {
    display: inline-block;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9db8f0;
    margin-bottom: 14px;
}
.workflow__head .block-title {
    font-family: 'Sora', 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 2.6vw, 30px);
    line-height: 1.2;
    letter-spacing: -.4px;
    color: #fff;
}
.workflow__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.wf-step {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    padding: 28px 24px;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.wf-step:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,.08);
    border-color: rgba(96,165,250,.35);
}
.wf-step__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.wf-step__no {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #103A8E, #3b82f6);
    color: #fff;
    font-family: 'Sora', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    font-size: 17px;
    box-shadow: 0 6px 16px rgba(16,58,142,.5);
}
.wf-step__line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(96,165,250,.5), transparent);
}
.wf-step h4 {
    font-family: 'Sora', 'Inter', system-ui, sans-serif;
    font-size: 18px;
    margin: 0 0 8px;
    color: #fff;
}
.wf-step p {
    margin: 0;
    color: #a9b5d1;
    font-size: 14px;
    line-height: 1.55;
}

/* CTA 按钮 */
.workflow__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 44px auto 0;
    max-width: 260px;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 15px 30px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    background: #103A8E;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(16,58,142,.30);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.workflow__cta:hover {
    background: #0c2f75;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(16,58,142,.40);
}

/* ── 入场动画 ── */
.custom-card[data-reveal],
.wf-step[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.custom-card.in,
.wf-step.in {
    opacity: 1;
    transform: none;
}
/* 入场完成后悬停位移要高于 .in 规则，否则被 transform:none 覆盖 */
.custom-card.in:hover { transform: translateY(-8px); }
.wf-step.in:hover { transform: translateY(-6px); }

/* ── 响应式 ── */
@media (max-width: 1024px) {
    .custom-grid { grid-template-columns: repeat(2, 1fr); }
    .workflow__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .custom-grid { grid-template-columns: 1fr; }
    .workflow__steps { grid-template-columns: 1fr; }
    .workflow { padding: 40px 24px; }
}
