.not-found-page {
    background: #f8fafc;
    min-height: 100vh;
}

.not-found-main {
    padding-top: 112px;
    padding-bottom: 72px;
}

.not-found-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.not-found-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #e5edf7;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    padding: 56px 40px;
    text-align: center;
}

.not-found-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.not-found-title {
    margin: 18px 0 12px;
    color: #0f172a;
    font-size: 42px;
    line-height: 1.2;
    font-weight: 800;
}

.not-found-desc {
    max-width: 680px;
    margin: 0 auto;
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}

.not-found-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.not-found-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    padding: 12px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.not-found-btn-primary {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
}

.not-found-btn-primary:hover {
    background: #1d4ed8;
}

.not-found-btn-secondary {
    background: #ffffff;
    border-color: #dbe6f3;
    color: #334155;
}

.not-found-btn-secondary:hover {
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.not-found-recommend {
    margin-top: 36px;
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
    padding: 28px 28px 30px;
}

.not-found-recommend-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.not-found-recommend-title {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
}

.not-found-recommend-subtitle {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.not-found-recommend-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.not-found-recommend-link:hover {
    text-decoration: underline;
}

.not-found-project-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.not-found-project-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e5edf7;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.not-found-project-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.08);
}

.not-found-project-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e2e8f0;
}

.not-found-project-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.not-found-project-body {
    padding: 14px 14px 16px;
}

.not-found-project-name {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.not-found-project-meta {
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.not-found-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 28px 20px;
    color: #64748b;
    text-align: center;
    font-size: 14px;
    background: #f8fafc;
}

@media (max-width: 1280px) {
    .not-found-project-row {
        grid-template-columns: repeat(5, minmax(220px, 1fr));
        overflow-x: auto;
        padding-bottom: 8px;
    }
}

@media (max-width: 768px) {
    .not-found-main {
        padding-top: 96px;
        padding-bottom: 56px;
    }

    .not-found-shell {
        padding: 0 16px;
    }

    .not-found-hero {
        padding: 42px 22px;
        border-radius: 20px;
    }

    .not-found-title {
        font-size: 30px;
    }

    .not-found-recommend {
        padding: 22px 18px 22px;
        border-radius: 20px;
    }

    .not-found-recommend-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .not-found-project-row {
        gap: 14px;
    }
}
