:root {
    --ink: #0f172a;
    --text: #1e293b;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e2e8f0;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-soft: #eff6ff;
    --orange: #f97316;
    --radius: 8px;
    --shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

html,
body {
    width: 100%;
    min-height: 100%;
}

* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    margin: 0;
    color: var(--text);
    background: var(--soft);
    font-family: "Source Han Sans SC", "PingFang SC", "Microsoft Yahei", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}

a:hover,
a:focus {
    color: var(--blue-dark);
}

.site-shell,
.footer-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header,
.site-nav,
.brand,
.hero-actions,
.hero-meta,
.board-header,
.status-row,
.btn,
.role-card span,
.text-link {
    display: flex;
    align-items: center;
}

.site-header {
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.brand {
    gap: 12px;
    min-width: 220px;
}

.brand-mark,
.process-step > i,
.flow-node > i,
.role-card > i,
.capability-item > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
}

.brand-mark,
.role-card > i {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 12px 28px rgba(37, 99, 235, .22);
}

.brand strong,
.brand small,
.mini-card span,
.mini-card strong {
    display: block;
}

.brand strong {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.2;
}

.brand small,
.board-header span,
.mini-card span,
.capability-item p,
.usage-panel li {
    color: var(--muted);
}

.brand small {
    margin-top: 2px;
    font-size: 12px;
}

.site-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.site-nav a {
    max-width: 100%;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: #475569;
    font-size: 14px;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--blue-dark);
    background: var(--blue-soft);
    border-color: #dbeafe;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 28px;
    align-items: stretch;
    padding: 34px 0 24px;
}

.hero-copy,
.hero-board,
.section,
.usage-panel {
    max-width: 100%;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 520px;
    padding: 46px;
}

.eyebrow,
.section-heading span,
.card-label {
    color: var(--blue);
    font-weight: 700;
    letter-spacing: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 10px;
    border-radius: var(--radius);
    background: var(--blue-soft);
    font-size: 13px;
}

.hero h1 {
    max-width: 720px;
    margin: 18px 0 16px;
    color: var(--ink);
    font-size: 44px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.hero-lead {
    max-width: 720px;
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    max-width: 100%;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 700;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn-primary {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .22);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background: var(--blue-dark);
}

.btn-secondary {
    color: var(--text);
    background: #fff;
    border-color: #cbd5e1;
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: var(--blue-dark);
    border-color: #93c5fd;
    background: var(--blue-soft);
}

.hero-meta {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.hero-meta span,
.status {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius);
    font-size: 13px;
}

.hero-meta span {
    gap: 6px;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid var(--line);
    color: #475569;
    background: var(--soft);
}

.hero-meta b {
    color: var(--ink);
    font-size: 17px;
}

.hero-board {
    min-height: 520px;
    padding: 24px;
}

.board-header {
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.board-header strong {
    color: var(--ink);
    font-size: 20px;
}

.status-row {
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.status {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.status.published {
    color: #166534;
    background: #dcfce7;
}

.status.closed {
    color: #475569;
    background: #f1f5f9;
}

.status.draft {
    color: #9a3412;
    background: #ffedd5;
}

.project-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius);
}

.primary-card {
    color: #fff;
    background: var(--ink);
}

.project-card h2 {
    max-width: 360px;
    margin: 8px 0 0;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.project-card .card-label {
    color: #93c5fd;
    font-size: 13px;
}

.project-card > i {
    flex: 0 0 auto;
    color: var(--orange);
    font-size: 34px;
}

.board-grid,
.role-grid,
.info-layout,
.capability-list {
    display: grid;
}

.board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.mini-card,
.process-step,
.flow-node,
.role-card,
.capability-item {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.mini-card {
    min-height: 100px;
    padding: 16px;
    background: var(--soft);
}

.mini-card span {
    font-size: 13px;
}

.mini-card strong {
    margin-top: 10px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.section {
    margin: 24px 0;
    padding: 28px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-heading span {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.flow-timeline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    min-width: 120px;
    min-height: 200px;
    padding: 20px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    text-align: center;
}

.flow-role {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: var(--radius);
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.flow-node > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 14px 0;
    border-radius: var(--radius);
    color: var(--blue-dark);
    background: var(--blue-soft);
    font-size: 20px;
}

.flow-node h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.flow-node p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.flow-arrow {
    flex: 0 0 auto;
    color: #93c5fd;
    font-size: 24px;
}

.process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.process-step {
    position: relative;
    min-height: 218px;
    padding: 18px;
    overflow: hidden;
}

.process-step:before {
    content: "";
    position: absolute;
    top: 28px;
    right: -24px;
    width: 64px;
    height: 1px;
    background: #bfdbfe;
}

.process-step:last-child:before {
    display: none;
}

.step-index {
    display: inline-flex;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
}

.process-step > i {
    margin-top: 18px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    font-size: 18px;
}

.process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.process-step {
    position: relative;
    min-height: 218px;
    padding: 18px;
    overflow: hidden;
}

.process-step:before {
    content: "";
    position: absolute;
    top: 28px;
    right: -24px;
    width: 64px;
    height: 1px;
    background: #bfdbfe;
}

.process-step:last-child:before {
    display: none;
}

.step-index {
    display: inline-flex;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
}

.process-step > i {
    margin-top: 18px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    font-size: 18px;
}

.role-card h3 {
    margin: 14px 0 8px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.process-step p,
.role-card h3,
.capability-item h3,
.usage-panel h3 {
    margin: 14px 0 8px;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.process-step p,
.role-card p {
    margin: 0;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.role-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.role-card {
    display: flex;
    flex-direction: column;
    min-height: 230px;
    padding: 20px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.role-card:hover,
.role-card:focus {
    color: inherit;
    border-color: #93c5fd;
    background: #fbfdff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, .1);
}

.role-card > i {
    font-size: 18px;
}

.role-card span {
    gap: 6px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--blue-dark);
    font-weight: 700;
}

.info-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
}

.capability-list {
    gap: 12px;
}

.capability-item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
}

.capability-item > i {
    color: #c2410c;
    background: #ffedd5;
    font-size: 18px;
}

.capability-item h3,
.usage-panel h3 {
    margin-top: 0;
}

.usage-panel {
    padding: 22px;
}

.usage-panel ol {
    margin: 0;
    padding-left: 20px;
}

.usage-panel li {
    margin: 0 0 10px;
}

.text-link {
    gap: 8px;
    margin-top: 14px;
    color: var(--blue-dark);
    font-weight: 800;
}

.footer {
    margin-top: 36px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-inner {
    padding: 18px 0;
    color: var(--muted);
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .hero,
    .info-layout {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .hero-board {
        min-height: auto;
    }

    .flow-timeline {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 6px 0;
    }

    .flow-node {
        width: 100%;
    }

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

    .process-step:before {
        display: none;
    }
}

@media (max-width: 760px) {
    body {
        min-width: 0;
    }

    .site-shell,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .brand {
        min-width: 0;
    }

    .site-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .site-nav a {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 12px;
    }

    .hero-copy,
    .hero-board,
    .section {
        padding: 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-lead {
        font-size: 15px;
        line-height: 1.75;
    }

    .hero-actions .btn {
        min-width: 0;
        width: 100%;
    }

    .hero-meta span {
        justify-content: space-between;
        width: 100%;
    }

    .project-card {
        flex-direction: column;
    }

    .project-card h2 {
        font-size: 20px;
    }

    .board-grid,
    .process,
    .role-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: block;
    }

    .section-heading h2 {
        font-size: 22px;
    }

    .process-step,
    .role-card,
    .flow-node {
        min-height: auto;
    }
}

@media (max-width: 420px) {
    .site-nav a {
        flex-basis: 100%;
    }

    .capability-item {
        grid-template-columns: 1fr;
    }

    .flow-node {
        padding: 16px 14px;
    }
}
