/* ============== Custom Development ============== */
:root {
    --cd-primary: #29b6f6;
    --cd-deep: #04205F;
    --cd-ink: #101828;
    --cd-muted: #475467;
    --cd-bg: #f6f7fb;
    --cd-card: #ffffff;
    --cd-border: rgba(16, 24, 40, 0.10);
    --cd-shadow: 0 14px 46px rgba(16, 24, 40, 0.10);
    --cd-ok: #15b79e;
}

.cd-hero {
    position: relative;
    padding: 120px 0 96px;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(900px 520px at 70% 20%, rgba(41, 182, 246, 0.24), rgba(0, 0, 0, 0)),
        radial-gradient(900px 520px at 18% 32%, rgba(179, 136, 255, 0.18), rgba(0, 0, 0, 0)),
        linear-gradient(135deg, rgba(3, 18, 58, 1) 0%, rgba(4, 32, 95, 1) 55%, rgba(11, 59, 107, 1) 100%);
}

.cd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.34;
    pointer-events: none;
    mask-image: radial-gradient(circle at 40% 40%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 72%);
}

.cd-hero .container {
    position: relative;
    z-index: 2;
}

.cd-hero h1 {
    font-size: 3.1rem;
    font-weight: 950;
    line-height: 1.12;
    margin: 0 0 14px 0;
    color: #fff;
    letter-spacing: 0.2px;
}

.cd-hero .subtitle {
    font-size: 1.25rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 300;
    margin: 0 0 18px 0;
    max-width: 880px;
}

.cd-hero .subtitle strong {
    color: #fff;
    font-weight: 950;
}

.cd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.cd-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    border: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.cd-btn.primary {
    background: var(--cd-primary);
    color: #fff !important;
}

.cd-btn.primary:hover {
    background: #039be5;
    transform: translateY(-2px);
    text-decoration: none;
}

.cd-btn.secondary {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: #fff !important;
}

.cd-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Hero visual: 左侧锁定芯片 + 右侧发光代码行 */
.cd-visual {
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    position: relative;
}

.cd-visual-grid {
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 14px;
    align-items: stretch;
    min-height: 260px;
}

.cd-chip {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cd-chip::before {
    content: '';
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 50% 50%, rgba(41, 182, 246, 0.12), rgba(0, 0, 0, 0) 55%);
    pointer-events: none;
}

.cd-chip .icon-wrap {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 0 24px rgba(41, 182, 246, 0.08);
    position: relative;
    z-index: 1;
}

.cd-chip i.material-symbols-outlined {
    font-size: 44px;
    color: rgba(255, 255, 255, 0.9);
}

.cd-chip .label {
    position: absolute;
    left: 12px;
    bottom: 12px;
    font-weight: 950;
    font-size: 11px;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cd-codelines {
    position: relative;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.28);
    padding: 14px 16px;
    overflow: hidden;
}

.cd-codelines::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(41, 182, 246, 0.06) 50%, transparent 100%);
    pointer-events: none;
}

.cd-line {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    line-height: 1.85;
    color: rgba(41, 182, 246, 0.95);
    text-shadow: 0 0 12px rgba(41, 182, 246, 0.4);
    margin-bottom: 2px;
}

.cd-line .key {
    color: rgba(179, 136, 255, 0.95);
}

.cd-line .str {
    color: rgba(129, 199, 132, 0.95);
}

.cd-line .comment {
    color: rgba(255, 255, 255, 0.5);
}

/* content sections */
.cd-wrap {
    background: var(--cd-bg);
    padding: 64px 0;
}

.cd-title h2 {
    color: var(--cd-deep);
    font-weight: 950;
    margin: 0 0 10px 0;
}

.cd-title p {
    margin: 0;
    color: var(--cd-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.cd-cards {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}

.cd-card {
    background: var(--cd-card);
    border: 1px solid var(--cd-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
    padding: 22px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.cd-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, rgba(41, 182, 246, 0.9), rgba(4, 32, 95, 0.9));
    opacity: 0.60;
}

.cd-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(41, 182, 246, 0.12);
    border: 1px solid rgba(41, 182, 246, 0.22);
    margin-bottom: 14px;
}

.cd-card .icon-box i.material-symbols-outlined {
    font-size: 26px;
    color: var(--cd-primary);
}

.cd-card h3 {
    font-weight: 950;
    color: var(--cd-deep);
    font-size: 1.18rem;
    margin: 0 0 8px 0;
}

.cd-card .value {
    color: var(--cd-muted);
    line-height: 1.85;
    margin: 0;
    font-size: 0.98rem;
}

/* Service models: 2 columns */
.cd-two-cards {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.cd-big-card {
    background: var(--cd-card);
    border: 1px solid var(--cd-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
    padding: 24px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.cd-big-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, rgba(41, 182, 246, 0.9), rgba(4, 32, 95, 0.9));
    opacity: 0.60;
}

.cd-big-card .head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.cd-big-card .head .icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(41, 182, 246, 0.12);
    border: 1px solid rgba(41, 182, 246, 0.22);
    flex-shrink: 0;
}

.cd-big-card .head .icon-box i.material-symbols-outlined {
    font-size: 28px;
    color: var(--cd-primary);
}

.cd-big-card .head h3 {
    font-weight: 950;
    color: var(--cd-deep);
    font-size: 1.22rem;
    margin: 0 0 6px 0;
}

.cd-big-card .head .tagline {
    color: var(--cd-muted);
    font-size: 0.95rem;
    font-style: italic;
    margin: 0;
}

.cd-big-card .pr-list {
    margin: 12px 0 0 0;
    padding-left: 1.2rem;
    color: #344054;
    line-height: 1.9;
}

.cd-big-card .pr-list li {
    margin-bottom: 8px;
}

.cd-big-card .fee {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--cd-border);
    font-weight: 950;
    color: var(--cd-deep);
}

/* DIY scenarios: 3 panels */
.cd-scenarios {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.cd-scenario {
    background: #fff;
    border: 1px solid var(--cd-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.cd-scenario::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--cd-primary), var(--cd-deep));
    opacity: 0.6;
}

.cd-scenario h4 {
    font-weight: 950;
    color: var(--cd-deep);
    font-size: 1.08rem;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cd-scenario h4 i.material-symbols-outlined {
    font-size: 20px;
    color: var(--cd-primary);
}

.cd-scenario .need {
    font-size: 0.92rem;
    color: var(--cd-muted);
    margin-bottom: 8px;
    line-height: 1.7;
}

.cd-scenario .solve {
    font-size: 0.95rem;
    color: #344054;
    line-height: 1.75;
    margin: 0;
}

/* Process: steps */
.cd-steps {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.cd-step {
    flex: 1 1 160px;
    max-width: 200px;
    background: #fff;
    border: 1px solid var(--cd-border);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.cd-step .num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cd-primary), var(--cd-deep));
    color: #fff;
    font-weight: 950;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.cd-step .name {
    font-weight: 950;
    color: var(--cd-deep);
    font-size: 1rem;
    margin: 0 0 6px 0;
}

.cd-step .desc {
    font-size: 0.88rem;
    color: var(--cd-muted);
    line-height: 1.6;
    margin: 0;
}

/* FAQ */
.cd-faq {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

details.cd-faq-item {
    background: #fff;
    border: 1px solid var(--cd-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
    padding: 14px 16px;
    overflow: hidden;
}

details.cd-faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 950;
    color: var(--cd-deep);
    outline: none;
}

details.cd-faq-item summary::-webkit-details-marker {
    display: none;
}

.cd-faq-item .a {
    margin-top: 10px;
    color: #344054;
    line-height: 1.9;
}

.cd-faq-item .chev {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(4, 32, 95, 0.05);
    border: 1px solid rgba(4, 32, 95, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

details[open].cd-faq-item .chev {
    transform: rotate(180deg);
}

/* final CTA */
.cd-final {
    margin-top: 34px;
    background: linear-gradient(135deg, rgba(4, 32, 95, 1) 0%, rgba(41, 182, 246, 1) 150%);
    color: #fff;
    border-radius: 18px;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    box-shadow: 0 18px 56px rgba(16, 24, 40, 0.18);
}

.cd-final .t {
    font-weight: 950;
    font-size: 1.18rem;
    margin-bottom: 6px;
}

.cd-final .d {
    opacity: 0.92;
    line-height: 1.7;
    margin: 0;
}

.cd-final .right a {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff !important;
    border-radius: 999px;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 950;
    transition: transform 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    margin-top:30px;
}

.cd-final .right a.primary {
    background: #fff;
    color: var(--cd-deep) !important;
    border-color: rgba(255, 255, 255, 0.40);
}

.cd-final .right a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.20);
}

.cd-final .right a.primary:hover {
    background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 992px) {
    .cd-hero h1 {
        font-size: 2.25rem;
    }

    .cd-hero {
        padding: 105px 0 70px;
    }

    .cd-visual-grid {
        grid-template-columns: 1fr;
    }

    .cd-cards {
        grid-template-columns: 1fr;
    }

    .cd-two-cards {
        grid-template-columns: 1fr;
    }

    .cd-scenarios {
        grid-template-columns: 1fr;
    }

    .cd-steps {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .cd-hero {
        padding: 96px 0 56px;
    }

    .cd-hero .subtitle {
        font-size: 1.05rem;
    }

    .cd-final {
        flex-direction: column;
        align-items: flex-start;
    }

    .cd-final .right {
        justify-content: flex-start;
    }
}