:root {
    --process-border: rgba(51, 60, 91, 0.12);
    --process-soft: rgba(124, 93, 247, 0.12);
    --process-soft-2: rgba(95, 140, 255, 0.12);
}

.hero {
    margin: 22px 0 16px;
    padding: 22px 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(209, 123, 255, 0.18), rgba(95, 140, 255, 0.16));
    border: 1px solid rgba(209, 123, 255, 0.22);
    box-shadow: var(--shadow);
}

.hero-title {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0.2px;
}

.hero-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.toc a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--process-border);
    color: #334056;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toc a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.section {
    margin-top: 16px;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(230, 232, 240, 0.85);
}

.section-header {
    padding: 18px 20px 12px;
    border-bottom: 1px solid rgba(231, 234, 245, 0.9);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.section-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.section-body {
    padding: 16px 20px 20px;
}

.flow {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.flow::-webkit-scrollbar {
    height: 10px;
}

.flow::-webkit-scrollbar-thumb {
    background: rgba(51, 60, 91, 0.18);
    border-radius: 999px;
}

.step-card {
    position: relative;
    padding: 16px 16px 14px;
    border-radius: 16px;
    border: 1px solid var(--process-border);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 253, 0.96));
    min-height: 138px;
}

.step-card::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -14px;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(124, 93, 247, 0.7);
    border-left: 0;
    border-bottom: 0;
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.8;
}

.step-card:last-child::after {
    display: none;
}

.step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.step-index {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #2c3143;
}

.step-index span {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #5f8cff);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    box-shadow: 0 12px 26px rgba(124, 93, 247, 0.22);
}

.step-chip {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--process-soft);
    border: 1px solid rgba(124, 93, 247, 0.26);
    color: #463bd2;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.step-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1px;
}

.step-desc {
    margin: 8px 0 0;
    color: #4b5166;
    font-size: 13px;
    line-height: 1.6;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
}

.panel {
    border-radius: 16px;
    border: 1px solid var(--process-border);
    background: rgba(248, 249, 253, 0.9);
    padding: 14px 14px;
}

.panel h4 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
}

.panel ul {
    margin: 0;
    padding-left: 18px;
    color: #4b5166;
    font-size: 13px;
    line-height: 1.7;
}

.panel code,
.section-body code,
.section-body pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.code {
    margin: 0;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(51, 60, 91, 0.14);
    background: rgba(31, 36, 48, 0.04);
    color: #2b3143;
    overflow-x: auto;
    font-size: 12.5px;
    line-height: 1.6;
}

.table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(51, 60, 91, 0.14);
}

.table th,
.table td {
    padding: 12px 12px;
    border-bottom: 1px solid rgba(51, 60, 91, 0.1);
    text-align: left;
    vertical-align: top;
    font-size: 13px;
    line-height: 1.6;
}

.table th {
    background: rgba(124, 93, 247, 0.08);
    font-weight: 800;
}

.table tr:last-child td {
    border-bottom: 0;
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.kpi {
    padding: 14px 14px 12px;
    border-radius: 16px;
    border: 1px solid var(--process-border);
    background: linear-gradient(135deg, rgba(124, 93, 247, 0.1), rgba(95, 140, 255, 0.08));
}

.kpi .kpi-label {
    color: #4b5166;
    font-size: 12px;
    font-weight: 700;
}

.kpi .kpi-value {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 900;
}

@media (max-width: 980px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .kpi-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .page {
        padding: 0 16px 22px;
    }

    .topbar {
        padding: 16px 16px;
    }

    .kpi-row {
        grid-template-columns: 1fr;
    }
}

