/*
 * 二次开发服务页样式
 * ============================================================================
 * 版权所有 (C) 西安尊云信息科技有限公司，并保留所有权利。
 * 网站地址: http://www.zunyunkeji.com
 * ----------------------------------------------------------------------------
 * 许可声明：未经许可不得将本软件的整体或任何部分用于商业用途及再发布。
 * ============================================================================
 * Author: 缘境 (yvsm@zunyunkeji.com) QQ:316430983 微信：yvsm316
 */

.sec-page {
    --sec-ink: #0f172a;
    --sec-muted: #64748b;
    --sec-border: #e2e8f0;
    --sec-radius: 1rem;
    color: var(--sec-ink);
}

.sec-page .sec-eyebrow {
    letter-spacing: 0.22em;
    font-weight: 600;
}

.sec-page .sec-sec-title {
    color: var(--sec-ink);
    letter-spacing: -0.02em;
}

.sec-page .sec-sec-desc {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    color: var(--sec-muted);
}

/* Hero */
.sec-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(128deg, #1e1b4b 0%, #312e81 42%, #4338ca 78%, #6366f1 100%);
}

.sec-hero__grid {
    position: absolute;
    inset: 0;
    opacity: .14;
    background-image:
        linear-gradient(rgba(255, 255, 255, .55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .55) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
}

.sec-hero__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .18) 0, transparent 42%),
        radial-gradient(circle at 86% 78%, rgba(251, 146, 60, .22) 0, transparent 40%),
        radial-gradient(circle at 70% 18%, rgba(129, 140, 248, .24) 0, transparent 36%);
}

/* Category tones */
.sec-page .sec-cat-title {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.sec-page .sec-cat-title i {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
}

.sec-page .sec-cat--commerce .sec-cat-title { color: #c2410c; }
.sec-page .sec-cat--commerce .sec-cat-title i { background: #ffedd5; color: #ea580c; }
.sec-page .sec-cat--admin .sec-cat-title { color: #3730a3; }
.sec-page .sec-cat--admin .sec-cat-title i { background: #e0e7ff; color: #4f46e5; }
.sec-page .sec-cat--industry .sec-cat-title { color: #0f766e; }
.sec-page .sec-cat--industry .sec-cat-title i { background: #ccfbf1; color: #0d9488; }
.sec-page .sec-cat--lowcode .sec-cat-title { color: #0369a1; }
.sec-page .sec-cat--lowcode .sec-cat-title i { background: #e0f2fe; color: #0284c7; }
.sec-page .sec-cat--framework .sec-cat-title { color: #6d28d9; }
.sec-page .sec-cat--framework .sec-cat-title i { background: #ede9fe; color: #7c3aed; }
.sec-page .sec-cat--cms .sec-cat-title { color: #047857; }
.sec-page .sec-cat--cms .sec-cat-title i { background: #d1fae5; color: #059669; }
.sec-page .sec-cat--cmf .sec-cat-title { color: #334155; }
.sec-page .sec-cat--cmf .sec-cat-title i { background: #e2e8f0; color: #475569; }

/* Product cards */
.sec-page .sec-card {
    background: #fff;
    border: 1px solid var(--sec-border);
    border-radius: var(--sec-radius);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sec-page .sec-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .08);
}

.sec-page .sec-card__head {
    height: 6.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.sec-page .sec-card__head::after {
    content: "";
    position: absolute;
    right: -18px;
    top: -18px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}

.sec-page .sec-card__head i {
    font-size: 2rem;
    color: #fff;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(15, 23, 42, .18);
}

.sec-page .sec-cat--commerce .sec-card__head {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
}
.sec-page .sec-cat--commerce .sec-card:hover { border-color: #fdba74; }
.sec-page .sec-cat--admin .sec-card__head {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #3730a3 100%);
}
.sec-page .sec-cat--admin .sec-card:hover { border-color: #a5b4fc; }
.sec-page .sec-cat--industry .sec-card__head {
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 55%, #0f766e 100%);
}
.sec-page .sec-cat--industry .sec-card:hover { border-color: #5eead4; }
.sec-page .sec-cat--lowcode .sec-card__head {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 55%, #0369a1 100%);
}
.sec-page .sec-cat--lowcode .sec-card:hover { border-color: #7dd3fc; }
.sec-page .sec-cat--framework .sec-card__head {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 55%, #6d28d9 100%);
}
.sec-page .sec-cat--framework .sec-card:hover { border-color: #c4b5fd; }
.sec-page .sec-cat--cms .sec-card__head {
    background: linear-gradient(135deg, #34d399 0%, #10b981 55%, #047857 100%);
}
.sec-page .sec-cat--cms .sec-card:hover { border-color: #6ee7b7; }
.sec-page .sec-cat--cmf .sec-card__head {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 55%, #334155 100%);
}
.sec-page .sec-cat--cmf .sec-card:hover { border-color: #cbd5e1; }

.sec-page .sec-card__body {
    padding: 1.15rem 1.15rem 1.25rem;
}

.sec-page .sec-card__body h4 {
    margin: 0 0 .55rem;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

.sec-page .sec-card__body h4 a {
    color: inherit;
    transition: opacity .15s ease;
}

.sec-page .sec-card__body h4 a:hover {
    opacity: .8;
}

.sec-page .sec-cat--commerce .sec-card__body h4 { color: #c2410c; }
.sec-page .sec-cat--admin .sec-card__body h4 { color: #3730a3; }
.sec-page .sec-cat--industry .sec-card__body h4 { color: #0f766e; }
.sec-page .sec-cat--lowcode .sec-card__body h4 { color: #0369a1; }
.sec-page .sec-cat--framework .sec-card__body h4 { color: #6d28d9; }
.sec-page .sec-cat--cms .sec-card__body h4 { color: #047857; }
.sec-page .sec-cat--cmf .sec-card__body h4 { color: #334155; }

.sec-page .sec-card__body > p {
    margin: 0 0 .85rem;
    font-size: .875rem;
    line-height: 1.7;
    color: var(--sec-muted);
}

.sec-page .sec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.sec-page .sec-tag {
    font-size: .7rem;
    line-height: 1.3;
    padding: .22rem .5rem;
    border-radius: .4rem;
    font-weight: 500;
}

.sec-page .sec-cat--commerce .sec-tag { background: #ffedd5; color: #9a3412; }
.sec-page .sec-cat--admin .sec-tag { background: #e0e7ff; color: #3730a3; }
.sec-page .sec-cat--industry .sec-tag { background: #ccfbf1; color: #115e59; }
.sec-page .sec-cat--lowcode .sec-tag { background: #e0f2fe; color: #075985; }
.sec-page .sec-cat--framework .sec-tag { background: #ede9fe; color: #5b21b6; }
.sec-page .sec-cat--cms .sec-tag { background: #d1fae5; color: #065f46; }
.sec-page .sec-cat--cmf .sec-tag { background: #e2e8f0; color: #334155; }

/* Advantages */
.sec-adv {
    background:
        radial-gradient(ellipse at 8% 0%, rgba(255, 237, 213, .5) 0%, transparent 42%),
        radial-gradient(ellipse at 92% 100%, rgba(224, 231, 255, .55) 0%, transparent 40%),
        #f8fafc;
}

.sec-page .sec-adv-card {
    background: #fff;
    border: 1px solid var(--sec-border);
    border-radius: var(--sec-radius);
    padding: 1.35rem 1.25rem 1.4rem;
    height: 100%;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sec-page .sec-adv-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .07);
}

.sec-page .sec-adv-ico {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .9rem;
    font-size: 1.15rem;
}

.sec-page .sec-adv-ico--a { background: #ffedd5; color: #ea580c; }
.sec-page .sec-adv-ico--b { background: #e0e7ff; color: #4f46e5; }
.sec-page .sec-adv-ico--c { background: #ccfbf1; color: #0d9488; }
.sec-page .sec-adv-ico--d { background: #d1fae5; color: #059669; }

.sec-page .sec-adv-card h3 {
    margin: 0 0 .45rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sec-ink);
    text-align: center;
}

.sec-page .sec-adv-card p {
    margin: 0;
    font-size: .875rem;
    line-height: 1.7;
    color: var(--sec-muted);
}

.sec-page .sec-adv-card:nth-child(1):hover { border-color: #fdba74; }
.sec-page .sec-adv-card:nth-child(2):hover { border-color: #a5b4fc; }
.sec-page .sec-adv-card:nth-child(3):hover { border-color: #5eead4; }
.sec-page .sec-adv-card:nth-child(4):hover { border-color: #6ee7b7; }

/* Process timeline */
.sec-flow {
    background: #fff;
}

.sec-page .sec-flow-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    position: relative;
}

@media (min-width: 768px) {
    .sec-page .sec-flow-track {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }

    .sec-page .sec-flow-track::before {
        content: "";
        position: absolute;
        top: 1.55rem;
        left: 8%;
        right: 8%;
        height: 2px;
        background: linear-gradient(90deg, #fdba74, #a5b4fc, #5eead4, #6ee7b7);
        opacity: .55;
        z-index: 0;
    }
}

.sec-page .sec-flow-step {
    position: relative;
    z-index: 1;
    background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--sec-border);
    border-radius: var(--sec-radius);
    padding: 1.35rem 1.15rem 1.35rem;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sec-page .sec-flow-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .07);
    border-color: #c7d2fe;
}

.sec-page .sec-flow-num {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
    margin: 0 auto .85rem;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .12);
}

.sec-page .sec-flow-step:nth-child(1) .sec-flow-num { background: linear-gradient(145deg, #fb923c, #ea580c); }
.sec-page .sec-flow-step:nth-child(2) .sec-flow-num { background: linear-gradient(145deg, #818cf8, #4f46e5); }
.sec-page .sec-flow-step:nth-child(3) .sec-flow-num { background: linear-gradient(145deg, #2dd4bf, #0d9488); }
.sec-page .sec-flow-step:nth-child(4) .sec-flow-num { background: linear-gradient(145deg, #34d399, #059669); }

.sec-page .sec-flow-step h3 {
    margin: 0 0 .4rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sec-ink);
    text-align: center;
}

.sec-page .sec-flow-step p {
    margin: 0;
    font-size: .875rem;
    line-height: 1.7;
    color: var(--sec-muted);
}

/* CTA */
.sec-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(128deg, #312e81 0%, #4338ca 48%, #4f46e5 78%, #6366f1 100%);
}

.sec-cta__grid {
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(rgba(255, 255, 255, .55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .55) 1px, transparent 1px);
    background-size: 40px 40px;
}

.sec-cta__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .16) 0, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(251, 146, 60, .22) 0, transparent 38%);
}

@media (max-width: 767px) {
    .sec-page .sec-card__head {
        height: 5.25rem;
    }

    .sec-page .sec-card__head i {
        font-size: 1.65rem;
    }

    .sec-page .sec-card__body {
        padding: 1rem;
    }

    .sec-hero__grid {
        background-size: 36px 36px;
        mask-image: none;
    }
}
