:root {
    color-scheme: light;
    --bg: #f6f7f9;
    --panel: #ffffff;
    --text: #18202b;
    --muted: #657181;
    --line: #dfe4ea;
    --ink: #0d326b;
    --accent: #1167b1;
    --green: #18715d;
    --orange: #a94e12;
    --blue: #2258a8;
    --red: #a63434;
    --shadow: 0 18px 45px rgba(23, 32, 48, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background:
        linear-gradient(180deg, #eef2f6 0%, var(--bg) 36%, #ffffff 100%);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

a {
    color: inherit;
}

.shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 36px 0 28px;
}

.topbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0 28px;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
}

h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(34px, 7vw, 72px);
    line-height: 0.95;
    letter-spacing: 0;
}

.summary {
    max-width: 560px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.server-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
}

.server-card strong,
.server-card span {
    display: block;
}

.server-card strong {
    font-size: 16px;
}

.server-card span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.status-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    border-radius: 999px;
    background: #1f9d72;
    box-shadow: 0 0 0 5px rgba(31, 157, 114, 0.12);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 28px 0;
}

.project {
    display: flex;
    min-height: 260px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 8px 24px rgba(23, 32, 48, 0.05);
}

.project.primary {
    border-color: rgba(17, 103, 177, 0.35);
    background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
}

.project.muted {
    background: #f9fafb;
}

.project-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 8px;
    background: #e5eef8;
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
}

.mark.green {
    background: #e4f3ee;
    color: var(--green);
}

.mark.orange {
    background: #f8ece3;
    color: var(--orange);
}

.mark.blue {
    background: #e6edf8;
    color: var(--blue);
}

.mark.red {
    background: #f7e8e8;
    color: var(--red);
}

.mark.gray {
    background: #e9edf2;
    color: #4c5967;
}

.type {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

h2 {
    margin: 0;
    color: #1d2734;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: 0;
}

.project p {
    flex: 1;
    margin: 14px 0 22px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.project a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid #c7d3df;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.project a:hover,
.project a:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(17, 103, 177, 0.14);
    outline: none;
    transform: translateY(-1px);
}

.link-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 900px) {
    .topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .server-card {
        min-width: 0;
    }

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

@media (max-width: 620px) {
    .shell {
        width: min(100% - 24px, 1180px);
        padding-top: 24px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project {
        min-height: 230px;
    }

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

    footer {
        flex-direction: column;
    }
}
